license_manager 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +9 -0
- data/LICENSE +201 -0
- data/README.md +96 -0
- data/Rakefile +10 -0
- data/docs/ConnectStripe.md +18 -0
- data/docs/CreateCustomer.md +20 -0
- data/docs/CreateIntegrationMapping.md +20 -0
- data/docs/CreateLicense.md +36 -0
- data/docs/CreatePolicy.md +30 -0
- data/docs/CreatePortalLink.md +18 -0
- data/docs/CreateProduct.md +20 -0
- data/docs/CreateProductWithPolicy.md +24 -0
- data/docs/CreateRelease.md +20 -0
- data/docs/CreateToken.md +20 -0
- data/docs/Customer.md +30 -0
- data/docs/CustomerList.md +20 -0
- data/docs/CustomersApi.md +385 -0
- data/docs/Error.md +18 -0
- data/docs/ErrorError.md +22 -0
- data/docs/ErrorErrorIssuesInner.md +20 -0
- data/docs/ErrorErrorIssuesInnerPathInner.md +15 -0
- data/docs/Event.md +34 -0
- data/docs/EventActor.md +55 -0
- data/docs/EventActorOneOf.md +26 -0
- data/docs/EventActorOneOf1.md +24 -0
- data/docs/EventActorOneOf2.md +22 -0
- data/docs/EventActorOneOf3.md +18 -0
- data/docs/EventActorOneOf4.md +22 -0
- data/docs/EventList.md +20 -0
- data/docs/EventMachine.md +22 -0
- data/docs/EventType.md +15 -0
- data/docs/EventsApi.md +173 -0
- data/docs/FixedMaxVersion.md +20 -0
- data/docs/Integration.md +38 -0
- data/docs/IntegrationMapping.md +38 -0
- data/docs/IntegrationStatus.md +15 -0
- data/docs/IntegrationsApi.md +587 -0
- data/docs/License.md +50 -0
- data/docs/LicenseList.md +20 -0
- data/docs/LicenseMaxVersion.md +22 -0
- data/docs/LicenseMaxVersionInput.md +22 -0
- data/docs/LicenseStats.md +26 -0
- data/docs/LicenseStatsActivationsByMachineInner.md +24 -0
- data/docs/LicenseStatsActivationsByVersionInner.md +20 -0
- data/docs/LicenseStatus.md +15 -0
- data/docs/LicenseToken.md +18 -0
- data/docs/LicensesApi.md +817 -0
- data/docs/ListPolicyEventsTypeParameter.md +15 -0
- data/docs/ListStripePrices200Response.md +18 -0
- data/docs/LockMaxVersion.md +22 -0
- data/docs/LockMaxVersionMajorAfter.md +49 -0
- data/docs/LockMaxVersionMajorAfterOneOf.md +20 -0
- data/docs/LockMaxVersionMajorAfterOneOf1.md +20 -0
- data/docs/LockMaxVersionMinorAfter.md +20 -0
- data/docs/Machine.md +36 -0
- data/docs/MachineList.md +20 -0
- data/docs/MachinesApi.md +246 -0
- data/docs/Pagination.md +24 -0
- data/docs/PoliciesApi.md +388 -0
- data/docs/Policy.md +40 -0
- data/docs/PolicyDuration.md +20 -0
- data/docs/PolicyList.md +20 -0
- data/docs/PolicyMaxVersion.md +24 -0
- data/docs/PolicySettings.md +24 -0
- data/docs/PolicySettingsDuration.md +20 -0
- data/docs/PolicySettingsDurationAnyOf.md +20 -0
- data/docs/PolicySettingsDurationAnyOf1.md +20 -0
- data/docs/PolicySettingsMaxVersion.md +24 -0
- data/docs/Portal.md +30 -0
- data/docs/PortalApi.md +289 -0
- data/docs/PortalLink.md +22 -0
- data/docs/PortalNotFound.md +22 -0
- data/docs/PortalSettings.md +26 -0
- data/docs/Price.md +20 -0
- data/docs/PriceInput.md +20 -0
- data/docs/Product.md +32 -0
- data/docs/ProductList.md +20 -0
- data/docs/ProductStats.md +54 -0
- data/docs/ProductStatsActivationsByVersionInner.md +20 -0
- data/docs/ProductStatsActiveMachinesByPlatformInner.md +20 -0
- data/docs/ProductStatsActiveMachinesByVersionInner.md +20 -0
- data/docs/ProductStatsNewLicensesByPolicyInner.md +22 -0
- data/docs/ProductsApi.md +666 -0
- data/docs/Release.md +28 -0
- data/docs/ReleaseList.md +20 -0
- data/docs/ReleasesApi.md +388 -0
- data/docs/RequestPortalLink.md +20 -0
- data/docs/Revenue.md +34 -0
- data/docs/SendLicenseKeys.md +18 -0
- data/docs/SendPortalLink.md +18 -0
- data/docs/SigningKey.md +27 -0
- data/docs/StripeIntegration.md +26 -0
- data/docs/StripePermission.md +22 -0
- data/docs/StripePrice.md +28 -0
- data/docs/Token.md +24 -0
- data/docs/TokensApi.md +235 -0
- data/docs/UpdateCustomer.md +20 -0
- data/docs/UpdateIntegrationMapping.md +18 -0
- data/docs/UpdateLicense.md +28 -0
- data/docs/UpdatePolicy.md +30 -0
- data/docs/UpdateProduct.md +22 -0
- data/docs/UpdateProductPortal.md +26 -0
- data/docs/UpdateRelease.md +20 -0
- data/docs/ValidateKey.md +26 -0
- data/docs/ValidateKeyError.md +18 -0
- data/docs/ValidateKeyErrorError.md +24 -0
- data/git_push.sh +54 -0
- data/lib/license_manager/api/customers_api.rb +398 -0
- data/lib/license_manager/api/events_api.rb +207 -0
- data/lib/license_manager/api/integrations_api.rb +559 -0
- data/lib/license_manager/api/licenses_api.rb +885 -0
- data/lib/license_manager/api/machines_api.rb +257 -0
- data/lib/license_manager/api/policies_api.rb +412 -0
- data/lib/license_manager/api/portal_api.rb +310 -0
- data/lib/license_manager/api/products_api.rb +653 -0
- data/lib/license_manager/api/releases_api.rb +408 -0
- data/lib/license_manager/api/tokens_api.rb +244 -0
- data/lib/license_manager/api_client.rb +441 -0
- data/lib/license_manager/api_error.rb +58 -0
- data/lib/license_manager/api_model_base.rb +88 -0
- data/lib/license_manager/configuration.rb +400 -0
- data/lib/license_manager/models/connect_stripe.rb +187 -0
- data/lib/license_manager/models/create_customer.rb +222 -0
- data/lib/license_manager/models/create_integration_mapping.rb +222 -0
- data/lib/license_manager/models/create_license.rb +361 -0
- data/lib/license_manager/models/create_policy.rb +347 -0
- data/lib/license_manager/models/create_portal_link.rb +196 -0
- data/lib/license_manager/models/create_product.rb +244 -0
- data/lib/license_manager/models/create_product_with_policy.rb +270 -0
- data/lib/license_manager/models/create_release.rb +208 -0
- data/lib/license_manager/models/create_token.rb +237 -0
- data/lib/license_manager/models/customer.rb +308 -0
- data/lib/license_manager/models/customer_list.rb +206 -0
- data/lib/license_manager/models/error.rb +177 -0
- data/lib/license_manager/models/error_error.rb +215 -0
- data/lib/license_manager/models/error_error_issues_inner.rb +205 -0
- data/lib/license_manager/models/error_error_issues_inner_path_inner.rb +103 -0
- data/lib/license_manager/models/event.rb +340 -0
- data/lib/license_manager/models/event_actor.rb +108 -0
- data/lib/license_manager/models/event_actor_one_of.rb +251 -0
- data/lib/license_manager/models/event_actor_one_of1.rb +239 -0
- data/lib/license_manager/models/event_actor_one_of2.rb +257 -0
- data/lib/license_manager/models/event_actor_one_of3.rb +201 -0
- data/lib/license_manager/models/event_actor_one_of4.rb +243 -0
- data/lib/license_manager/models/event_list.rb +206 -0
- data/lib/license_manager/models/event_machine.rb +216 -0
- data/lib/license_manager/models/event_type.rb +46 -0
- data/lib/license_manager/models/fixed_max_version.rb +240 -0
- data/lib/license_manager/models/integration.rb +412 -0
- data/lib/license_manager/models/integration_mapping.rb +435 -0
- data/lib/license_manager/models/integration_status.rb +42 -0
- data/lib/license_manager/models/license.rb +542 -0
- data/lib/license_manager/models/license_list.rb +206 -0
- data/lib/license_manager/models/license_max_version.rb +208 -0
- data/lib/license_manager/models/license_max_version_input.rb +202 -0
- data/lib/license_manager/models/license_stats.rb +292 -0
- data/lib/license_manager/models/license_stats_activations_by_machine_inner.rb +244 -0
- data/lib/license_manager/models/license_stats_activations_by_version_inner.rb +206 -0
- data/lib/license_manager/models/license_status.rb +42 -0
- data/lib/license_manager/models/license_token.rb +178 -0
- data/lib/license_manager/models/list_policy_events_type_parameter.rb +104 -0
- data/lib/license_manager/models/list_stripe_prices200_response.rb +179 -0
- data/lib/license_manager/models/lock_max_version.rb +240 -0
- data/lib/license_manager/models/lock_max_version_major_after.rb +105 -0
- data/lib/license_manager/models/lock_max_version_major_after_one_of.rb +245 -0
- data/lib/license_manager/models/lock_max_version_major_after_one_of1.rb +246 -0
- data/lib/license_manager/models/lock_max_version_minor_after.rb +104 -0
- data/lib/license_manager/models/machine.rb +383 -0
- data/lib/license_manager/models/machine_list.rb +206 -0
- data/lib/license_manager/models/pagination.rb +260 -0
- data/lib/license_manager/models/policy.rb +425 -0
- data/lib/license_manager/models/policy_duration.rb +104 -0
- data/lib/license_manager/models/policy_list.rb +206 -0
- data/lib/license_manager/models/policy_max_version.rb +104 -0
- data/lib/license_manager/models/policy_settings.rb +244 -0
- data/lib/license_manager/models/policy_settings_duration.rb +104 -0
- data/lib/license_manager/models/policy_settings_duration_any_of.rb +245 -0
- data/lib/license_manager/models/policy_settings_duration_any_of1.rb +246 -0
- data/lib/license_manager/models/policy_settings_max_version.rb +104 -0
- data/lib/license_manager/models/portal.rb +281 -0
- data/lib/license_manager/models/portal_link.rb +232 -0
- data/lib/license_manager/models/portal_not_found.rb +204 -0
- data/lib/license_manager/models/portal_settings.rb +304 -0
- data/lib/license_manager/models/price.rb +206 -0
- data/lib/license_manager/models/price_input.rb +224 -0
- data/lib/license_manager/models/product.rb +333 -0
- data/lib/license_manager/models/product_list.rb +206 -0
- data/lib/license_manager/models/product_stats.rb +682 -0
- data/lib/license_manager/models/product_stats_activations_by_version_inner.rb +193 -0
- data/lib/license_manager/models/product_stats_active_machines_by_platform_inner.rb +190 -0
- data/lib/license_manager/models/product_stats_active_machines_by_version_inner.rb +190 -0
- data/lib/license_manager/models/product_stats_new_licenses_by_policy_inner.rb +235 -0
- data/lib/license_manager/models/release.rb +308 -0
- data/lib/license_manager/models/release_list.rb +206 -0
- data/lib/license_manager/models/request_portal_link.rb +216 -0
- data/lib/license_manager/models/revenue.rb +401 -0
- data/lib/license_manager/models/send_license_keys.rb +198 -0
- data/lib/license_manager/models/send_portal_link.rb +187 -0
- data/lib/license_manager/models/signing_key.rb +282 -0
- data/lib/license_manager/models/stripe_integration.rb +276 -0
- data/lib/license_manager/models/stripe_permission.rb +253 -0
- data/lib/license_manager/models/stripe_price.rb +280 -0
- data/lib/license_manager/models/token.rb +274 -0
- data/lib/license_manager/models/update_customer.rb +215 -0
- data/lib/license_manager/models/update_integration_mapping.rb +186 -0
- data/lib/license_manager/models/update_license.rb +268 -0
- data/lib/license_manager/models/update_policy.rb +340 -0
- data/lib/license_manager/models/update_product.rb +246 -0
- data/lib/license_manager/models/update_product_portal.rb +274 -0
- data/lib/license_manager/models/update_release.rb +201 -0
- data/lib/license_manager/models/validate_key.rb +362 -0
- data/lib/license_manager/models/validate_key_error.rb +177 -0
- data/lib/license_manager/models/validate_key_error_error.rb +226 -0
- data/lib/license_manager/version.rb +15 -0
- data/lib/license_manager.rb +142 -0
- data/license_manager.gemspec +41 -0
- data/openapi.json +9825 -0
- data/spec/api/customers_api_spec.rb +102 -0
- data/spec/api/events_api_spec.rb +68 -0
- data/spec/api/integrations_api_spec.rb +134 -0
- data/spec/api/licenses_api_spec.rb +200 -0
- data/spec/api/machines_api_spec.rb +77 -0
- data/spec/api/policies_api_spec.rb +105 -0
- data/spec/api/portal_api_spec.rb +87 -0
- data/spec/api/products_api_spec.rb +148 -0
- data/spec/api/releases_api_spec.rb +105 -0
- data/spec/api/tokens_api_spec.rb +74 -0
- data/spec/models/connect_stripe_spec.rb +36 -0
- data/spec/models/create_customer_spec.rb +42 -0
- data/spec/models/create_integration_mapping_spec.rb +42 -0
- data/spec/models/create_license_spec.rb +90 -0
- data/spec/models/create_policy_spec.rb +72 -0
- data/spec/models/create_portal_link_spec.rb +36 -0
- data/spec/models/create_product_spec.rb +42 -0
- data/spec/models/create_product_with_policy_spec.rb +54 -0
- data/spec/models/create_release_spec.rb +42 -0
- data/spec/models/create_token_spec.rb +46 -0
- data/spec/models/customer_list_spec.rb +42 -0
- data/spec/models/customer_spec.rb +72 -0
- data/spec/models/error_error_issues_inner_path_inner_spec.rb +21 -0
- data/spec/models/error_error_issues_inner_spec.rb +42 -0
- data/spec/models/error_error_spec.rb +48 -0
- data/spec/models/error_spec.rb +36 -0
- data/spec/models/event_actor_one_of1_spec.rb +58 -0
- data/spec/models/event_actor_one_of2_spec.rb +56 -0
- data/spec/models/event_actor_one_of3_spec.rb +40 -0
- data/spec/models/event_actor_one_of4_spec.rb +56 -0
- data/spec/models/event_actor_one_of_spec.rb +64 -0
- data/spec/models/event_actor_spec.rb +32 -0
- data/spec/models/event_list_spec.rb +42 -0
- data/spec/models/event_machine_spec.rb +48 -0
- data/spec/models/event_spec.rb +84 -0
- data/spec/models/event_type_spec.rb +30 -0
- data/spec/models/fixed_max_version_spec.rb +46 -0
- data/spec/models/integration_mapping_spec.rb +100 -0
- data/spec/models/integration_spec.rb +100 -0
- data/spec/models/integration_status_spec.rb +30 -0
- data/spec/models/license_list_spec.rb +42 -0
- data/spec/models/license_max_version_input_spec.rb +48 -0
- data/spec/models/license_max_version_spec.rb +48 -0
- data/spec/models/license_spec.rb +132 -0
- data/spec/models/license_stats_activations_by_machine_inner_spec.rb +54 -0
- data/spec/models/license_stats_activations_by_version_inner_spec.rb +42 -0
- data/spec/models/license_stats_spec.rb +60 -0
- data/spec/models/license_status_spec.rb +30 -0
- data/spec/models/license_token_spec.rb +36 -0
- data/spec/models/list_policy_events_type_parameter_spec.rb +21 -0
- data/spec/models/list_stripe_prices200_response_spec.rb +36 -0
- data/spec/models/lock_max_version_major_after_one_of1_spec.rb +46 -0
- data/spec/models/lock_max_version_major_after_one_of_spec.rb +46 -0
- data/spec/models/lock_max_version_major_after_spec.rb +32 -0
- data/spec/models/lock_max_version_minor_after_spec.rb +21 -0
- data/spec/models/lock_max_version_spec.rb +52 -0
- data/spec/models/machine_list_spec.rb +42 -0
- data/spec/models/machine_spec.rb +94 -0
- data/spec/models/pagination_spec.rb +54 -0
- data/spec/models/policy_duration_spec.rb +21 -0
- data/spec/models/policy_list_spec.rb +42 -0
- data/spec/models/policy_max_version_spec.rb +21 -0
- data/spec/models/policy_settings_duration_any_of1_spec.rb +46 -0
- data/spec/models/policy_settings_duration_any_of_spec.rb +46 -0
- data/spec/models/policy_settings_duration_spec.rb +21 -0
- data/spec/models/policy_settings_max_version_spec.rb +21 -0
- data/spec/models/policy_settings_spec.rb +54 -0
- data/spec/models/policy_spec.rb +102 -0
- data/spec/models/portal_link_spec.rb +48 -0
- data/spec/models/portal_not_found_spec.rb +48 -0
- data/spec/models/portal_settings_spec.rb +60 -0
- data/spec/models/portal_spec.rb +72 -0
- data/spec/models/price_input_spec.rb +42 -0
- data/spec/models/price_spec.rb +42 -0
- data/spec/models/product_list_spec.rb +42 -0
- data/spec/models/product_spec.rb +78 -0
- data/spec/models/product_stats_activations_by_version_inner_spec.rb +42 -0
- data/spec/models/product_stats_active_machines_by_platform_inner_spec.rb +42 -0
- data/spec/models/product_stats_active_machines_by_version_inner_spec.rb +42 -0
- data/spec/models/product_stats_new_licenses_by_policy_inner_spec.rb +48 -0
- data/spec/models/product_stats_spec.rb +144 -0
- data/spec/models/release_list_spec.rb +42 -0
- data/spec/models/release_spec.rb +66 -0
- data/spec/models/request_portal_link_spec.rb +42 -0
- data/spec/models/revenue_spec.rb +84 -0
- data/spec/models/send_license_keys_spec.rb +36 -0
- data/spec/models/send_portal_link_spec.rb +36 -0
- data/spec/models/signing_key_spec.rb +58 -0
- data/spec/models/stripe_integration_spec.rb +60 -0
- data/spec/models/stripe_permission_spec.rb +52 -0
- data/spec/models/stripe_price_spec.rb +66 -0
- data/spec/models/token_spec.rb +62 -0
- data/spec/models/update_customer_spec.rb +42 -0
- data/spec/models/update_integration_mapping_spec.rb +36 -0
- data/spec/models/update_license_spec.rb +66 -0
- data/spec/models/update_policy_spec.rb +72 -0
- data/spec/models/update_product_portal_spec.rb +60 -0
- data/spec/models/update_product_spec.rb +48 -0
- data/spec/models/update_release_spec.rb +42 -0
- data/spec/models/validate_key_error_error_spec.rb +54 -0
- data/spec/models/validate_key_error_spec.rb +36 -0
- data/spec/models/validate_key_spec.rb +60 -0
- data/spec/spec_helper.rb +111 -0
- metadata +532 -0
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
# LicenseManager::CustomersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.licensemanager.dev*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_customer**](CustomersApi.md#create_customer) | **POST** /v1/products/{productId}/customers | Create a customer |
|
|
8
|
+
| [**delete_customer**](CustomersApi.md#delete_customer) | **DELETE** /v1/customers/{id} | Delete a customer |
|
|
9
|
+
| [**get_customer**](CustomersApi.md#get_customer) | **GET** /v1/customers/{id} | Get a customer |
|
|
10
|
+
| [**list_customers**](CustomersApi.md#list_customers) | **GET** /v1/products/{productId}/customers | List the customers of a product |
|
|
11
|
+
| [**update_customer**](CustomersApi.md#update_customer) | **PATCH** /v1/customers/{id} | Update a customer |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## create_customer
|
|
15
|
+
|
|
16
|
+
> <Customer> create_customer(product_id, create_customer)
|
|
17
|
+
|
|
18
|
+
Create a customer
|
|
19
|
+
|
|
20
|
+
**Required role permission**: `customer:create` when called with a session, granted by the member's role. API keys aren't limited by roles.
|
|
21
|
+
|
|
22
|
+
### Examples
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'time'
|
|
26
|
+
require 'license_manager'
|
|
27
|
+
# setup authorization
|
|
28
|
+
LicenseManager.configure do |config|
|
|
29
|
+
# Configure API key authorization: apiKey
|
|
30
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
32
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
api_instance = LicenseManager::CustomersApi.new
|
|
36
|
+
product_id = 'x7Kp2QaZ' # String |
|
|
37
|
+
create_customer = LicenseManager::CreateCustomer.new({email: 'jane@example.com'}) # CreateCustomer |
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
# Create a customer
|
|
41
|
+
result = api_instance.create_customer(product_id, create_customer)
|
|
42
|
+
p result
|
|
43
|
+
rescue LicenseManager::ApiError => e
|
|
44
|
+
puts "Error when calling CustomersApi->create_customer: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
#### Using the create_customer_with_http_info variant
|
|
49
|
+
|
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
|
51
|
+
|
|
52
|
+
> <Array(<Customer>, Integer, Hash)> create_customer_with_http_info(product_id, create_customer)
|
|
53
|
+
|
|
54
|
+
```ruby
|
|
55
|
+
begin
|
|
56
|
+
# Create a customer
|
|
57
|
+
data, status_code, headers = api_instance.create_customer_with_http_info(product_id, create_customer)
|
|
58
|
+
p status_code # => 2xx
|
|
59
|
+
p headers # => { ... }
|
|
60
|
+
p data # => <Customer>
|
|
61
|
+
rescue LicenseManager::ApiError => e
|
|
62
|
+
puts "Error when calling CustomersApi->create_customer_with_http_info: #{e}"
|
|
63
|
+
end
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
| Name | Type | Description | Notes |
|
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
|
70
|
+
| **product_id** | **String** | | |
|
|
71
|
+
| **create_customer** | [**CreateCustomer**](CreateCustomer.md) | | |
|
|
72
|
+
|
|
73
|
+
### Return type
|
|
74
|
+
|
|
75
|
+
[**Customer**](Customer.md)
|
|
76
|
+
|
|
77
|
+
### Authorization
|
|
78
|
+
|
|
79
|
+
[apiKey](../README.md#apiKey)
|
|
80
|
+
|
|
81
|
+
### HTTP request headers
|
|
82
|
+
|
|
83
|
+
- **Content-Type**: application/json
|
|
84
|
+
- **Accept**: application/json
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## delete_customer
|
|
88
|
+
|
|
89
|
+
> delete_customer(id)
|
|
90
|
+
|
|
91
|
+
Delete a customer
|
|
92
|
+
|
|
93
|
+
A customer that licenses belong to can't be deleted: delete them first. The customer tokens of the customer, like the ones of its portal links, stop working. **Required role permission**: `customer:delete` when called with a session, granted by the member's role. API keys aren't limited by roles.
|
|
94
|
+
|
|
95
|
+
### Examples
|
|
96
|
+
|
|
97
|
+
```ruby
|
|
98
|
+
require 'time'
|
|
99
|
+
require 'license_manager'
|
|
100
|
+
# setup authorization
|
|
101
|
+
LicenseManager.configure do |config|
|
|
102
|
+
# Configure API key authorization: apiKey
|
|
103
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
104
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
105
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
api_instance = LicenseManager::CustomersApi.new
|
|
109
|
+
id = 'c9Wd3RtE' # String |
|
|
110
|
+
|
|
111
|
+
begin
|
|
112
|
+
# Delete a customer
|
|
113
|
+
api_instance.delete_customer(id)
|
|
114
|
+
rescue LicenseManager::ApiError => e
|
|
115
|
+
puts "Error when calling CustomersApi->delete_customer: #{e}"
|
|
116
|
+
end
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
#### Using the delete_customer_with_http_info variant
|
|
120
|
+
|
|
121
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
122
|
+
|
|
123
|
+
> <Array(nil, Integer, Hash)> delete_customer_with_http_info(id)
|
|
124
|
+
|
|
125
|
+
```ruby
|
|
126
|
+
begin
|
|
127
|
+
# Delete a customer
|
|
128
|
+
data, status_code, headers = api_instance.delete_customer_with_http_info(id)
|
|
129
|
+
p status_code # => 2xx
|
|
130
|
+
p headers # => { ... }
|
|
131
|
+
p data # => nil
|
|
132
|
+
rescue LicenseManager::ApiError => e
|
|
133
|
+
puts "Error when calling CustomersApi->delete_customer_with_http_info: #{e}"
|
|
134
|
+
end
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Parameters
|
|
138
|
+
|
|
139
|
+
| Name | Type | Description | Notes |
|
|
140
|
+
| ---- | ---- | ----------- | ----- |
|
|
141
|
+
| **id** | **String** | | |
|
|
142
|
+
|
|
143
|
+
### Return type
|
|
144
|
+
|
|
145
|
+
nil (empty response body)
|
|
146
|
+
|
|
147
|
+
### Authorization
|
|
148
|
+
|
|
149
|
+
[apiKey](../README.md#apiKey)
|
|
150
|
+
|
|
151
|
+
### HTTP request headers
|
|
152
|
+
|
|
153
|
+
- **Content-Type**: Not defined
|
|
154
|
+
- **Accept**: application/json
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## get_customer
|
|
158
|
+
|
|
159
|
+
> <Customer> get_customer(id)
|
|
160
|
+
|
|
161
|
+
Get a customer
|
|
162
|
+
|
|
163
|
+
**Token access**: customer, license, machine tokens with the `customer:read` permission (or the matching write one). A token reaches the customer it's scoped to, or the customer of its license or machine.
|
|
164
|
+
|
|
165
|
+
### Examples
|
|
166
|
+
|
|
167
|
+
```ruby
|
|
168
|
+
require 'time'
|
|
169
|
+
require 'license_manager'
|
|
170
|
+
# setup authorization
|
|
171
|
+
LicenseManager.configure do |config|
|
|
172
|
+
# Configure API key authorization: apiKey
|
|
173
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
174
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
175
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
176
|
+
|
|
177
|
+
# Configure Bearer authorization (JWT): token
|
|
178
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
api_instance = LicenseManager::CustomersApi.new
|
|
182
|
+
id = 'c9Wd3RtE' # String |
|
|
183
|
+
|
|
184
|
+
begin
|
|
185
|
+
# Get a customer
|
|
186
|
+
result = api_instance.get_customer(id)
|
|
187
|
+
p result
|
|
188
|
+
rescue LicenseManager::ApiError => e
|
|
189
|
+
puts "Error when calling CustomersApi->get_customer: #{e}"
|
|
190
|
+
end
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
#### Using the get_customer_with_http_info variant
|
|
194
|
+
|
|
195
|
+
This returns an Array which contains the response data, status code and headers.
|
|
196
|
+
|
|
197
|
+
> <Array(<Customer>, Integer, Hash)> get_customer_with_http_info(id)
|
|
198
|
+
|
|
199
|
+
```ruby
|
|
200
|
+
begin
|
|
201
|
+
# Get a customer
|
|
202
|
+
data, status_code, headers = api_instance.get_customer_with_http_info(id)
|
|
203
|
+
p status_code # => 2xx
|
|
204
|
+
p headers # => { ... }
|
|
205
|
+
p data # => <Customer>
|
|
206
|
+
rescue LicenseManager::ApiError => e
|
|
207
|
+
puts "Error when calling CustomersApi->get_customer_with_http_info: #{e}"
|
|
208
|
+
end
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Parameters
|
|
212
|
+
|
|
213
|
+
| Name | Type | Description | Notes |
|
|
214
|
+
| ---- | ---- | ----------- | ----- |
|
|
215
|
+
| **id** | **String** | | |
|
|
216
|
+
|
|
217
|
+
### Return type
|
|
218
|
+
|
|
219
|
+
[**Customer**](Customer.md)
|
|
220
|
+
|
|
221
|
+
### Authorization
|
|
222
|
+
|
|
223
|
+
[apiKey](../README.md#apiKey), [token](../README.md#token)
|
|
224
|
+
|
|
225
|
+
### HTTP request headers
|
|
226
|
+
|
|
227
|
+
- **Content-Type**: Not defined
|
|
228
|
+
- **Accept**: application/json
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
## list_customers
|
|
232
|
+
|
|
233
|
+
> <CustomerList> list_customers(product_id, opts)
|
|
234
|
+
|
|
235
|
+
List the customers of a product
|
|
236
|
+
|
|
237
|
+
Sorting by `name` puts the customers without a name last in both orders.
|
|
238
|
+
|
|
239
|
+
### Examples
|
|
240
|
+
|
|
241
|
+
```ruby
|
|
242
|
+
require 'time'
|
|
243
|
+
require 'license_manager'
|
|
244
|
+
# setup authorization
|
|
245
|
+
LicenseManager.configure do |config|
|
|
246
|
+
# Configure API key authorization: apiKey
|
|
247
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
248
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
249
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
api_instance = LicenseManager::CustomersApi.new
|
|
253
|
+
product_id = 'x7Kp2QaZ' # String |
|
|
254
|
+
opts = {
|
|
255
|
+
page: 1, # Integer | Page to return. Pages are numbered from 1: `1` is the first page. A page past the last one returns an empty `data`, not an error. Defaults to `1`.
|
|
256
|
+
page_size: 20, # Integer | Maximum number of items per page, from 1 to 100. Every page holds this many items except the last one, which can hold fewer. Defaults to `20`.
|
|
257
|
+
sort: 'name', # String | Field to sort by, prefixed with `-` for descending order. Defaults to `-createdAt`.
|
|
258
|
+
search: 'example.com', # String | Case-insensitive text the name or email contains.
|
|
259
|
+
email: 'jane@example.com' # String | Only returns the customer with this email, compared regardless of case.
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
begin
|
|
263
|
+
# List the customers of a product
|
|
264
|
+
result = api_instance.list_customers(product_id, opts)
|
|
265
|
+
p result
|
|
266
|
+
rescue LicenseManager::ApiError => e
|
|
267
|
+
puts "Error when calling CustomersApi->list_customers: #{e}"
|
|
268
|
+
end
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
#### Using the list_customers_with_http_info variant
|
|
272
|
+
|
|
273
|
+
This returns an Array which contains the response data, status code and headers.
|
|
274
|
+
|
|
275
|
+
> <Array(<CustomerList>, Integer, Hash)> list_customers_with_http_info(product_id, opts)
|
|
276
|
+
|
|
277
|
+
```ruby
|
|
278
|
+
begin
|
|
279
|
+
# List the customers of a product
|
|
280
|
+
data, status_code, headers = api_instance.list_customers_with_http_info(product_id, opts)
|
|
281
|
+
p status_code # => 2xx
|
|
282
|
+
p headers # => { ... }
|
|
283
|
+
p data # => <CustomerList>
|
|
284
|
+
rescue LicenseManager::ApiError => e
|
|
285
|
+
puts "Error when calling CustomersApi->list_customers_with_http_info: #{e}"
|
|
286
|
+
end
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
### Parameters
|
|
290
|
+
|
|
291
|
+
| Name | Type | Description | Notes |
|
|
292
|
+
| ---- | ---- | ----------- | ----- |
|
|
293
|
+
| **product_id** | **String** | | |
|
|
294
|
+
| **page** | **Integer** | Page to return. Pages are numbered from 1: `1` is the first page. A page past the last one returns an empty `data`, not an error. Defaults to `1`. | [optional][default to 1] |
|
|
295
|
+
| **page_size** | **Integer** | Maximum number of items per page, from 1 to 100. Every page holds this many items except the last one, which can hold fewer. Defaults to `20`. | [optional][default to 20] |
|
|
296
|
+
| **sort** | **String** | Field to sort by, prefixed with `-` for descending order. Defaults to `-createdAt`. | [optional][default to '-createdAt'] |
|
|
297
|
+
| **search** | **String** | Case-insensitive text the name or email contains. | [optional] |
|
|
298
|
+
| **email** | **String** | Only returns the customer with this email, compared regardless of case. | [optional] |
|
|
299
|
+
|
|
300
|
+
### Return type
|
|
301
|
+
|
|
302
|
+
[**CustomerList**](CustomerList.md)
|
|
303
|
+
|
|
304
|
+
### Authorization
|
|
305
|
+
|
|
306
|
+
[apiKey](../README.md#apiKey)
|
|
307
|
+
|
|
308
|
+
### HTTP request headers
|
|
309
|
+
|
|
310
|
+
- **Content-Type**: Not defined
|
|
311
|
+
- **Accept**: application/json
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
## update_customer
|
|
315
|
+
|
|
316
|
+
> <Customer> update_customer(id, update_customer)
|
|
317
|
+
|
|
318
|
+
Update a customer
|
|
319
|
+
|
|
320
|
+
**Required role permission**: `customer:update` when called with a session, granted by the member's role. API keys aren't limited by roles.
|
|
321
|
+
|
|
322
|
+
### Examples
|
|
323
|
+
|
|
324
|
+
```ruby
|
|
325
|
+
require 'time'
|
|
326
|
+
require 'license_manager'
|
|
327
|
+
# setup authorization
|
|
328
|
+
LicenseManager.configure do |config|
|
|
329
|
+
# Configure API key authorization: apiKey
|
|
330
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
331
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
332
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
api_instance = LicenseManager::CustomersApi.new
|
|
336
|
+
id = 'c9Wd3RtE' # String |
|
|
337
|
+
update_customer = LicenseManager::UpdateCustomer.new # UpdateCustomer |
|
|
338
|
+
|
|
339
|
+
begin
|
|
340
|
+
# Update a customer
|
|
341
|
+
result = api_instance.update_customer(id, update_customer)
|
|
342
|
+
p result
|
|
343
|
+
rescue LicenseManager::ApiError => e
|
|
344
|
+
puts "Error when calling CustomersApi->update_customer: #{e}"
|
|
345
|
+
end
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
#### Using the update_customer_with_http_info variant
|
|
349
|
+
|
|
350
|
+
This returns an Array which contains the response data, status code and headers.
|
|
351
|
+
|
|
352
|
+
> <Array(<Customer>, Integer, Hash)> update_customer_with_http_info(id, update_customer)
|
|
353
|
+
|
|
354
|
+
```ruby
|
|
355
|
+
begin
|
|
356
|
+
# Update a customer
|
|
357
|
+
data, status_code, headers = api_instance.update_customer_with_http_info(id, update_customer)
|
|
358
|
+
p status_code # => 2xx
|
|
359
|
+
p headers # => { ... }
|
|
360
|
+
p data # => <Customer>
|
|
361
|
+
rescue LicenseManager::ApiError => e
|
|
362
|
+
puts "Error when calling CustomersApi->update_customer_with_http_info: #{e}"
|
|
363
|
+
end
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Parameters
|
|
367
|
+
|
|
368
|
+
| Name | Type | Description | Notes |
|
|
369
|
+
| ---- | ---- | ----------- | ----- |
|
|
370
|
+
| **id** | **String** | | |
|
|
371
|
+
| **update_customer** | [**UpdateCustomer**](UpdateCustomer.md) | | |
|
|
372
|
+
|
|
373
|
+
### Return type
|
|
374
|
+
|
|
375
|
+
[**Customer**](Customer.md)
|
|
376
|
+
|
|
377
|
+
### Authorization
|
|
378
|
+
|
|
379
|
+
[apiKey](../README.md#apiKey)
|
|
380
|
+
|
|
381
|
+
### HTTP request headers
|
|
382
|
+
|
|
383
|
+
- **Content-Type**: application/json
|
|
384
|
+
- **Accept**: application/json
|
|
385
|
+
|
data/docs/Error.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# LicenseManager::Error
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **error** | [**ErrorError**](ErrorError.md) | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'license_manager'
|
|
13
|
+
|
|
14
|
+
instance = LicenseManager::Error.new(
|
|
15
|
+
error: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/ErrorError.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# LicenseManager::ErrorError
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **code** | **String** | | |
|
|
8
|
+
| **message** | **String** | | |
|
|
9
|
+
| **issues** | [**Array<ErrorErrorIssuesInner>**](ErrorErrorIssuesInner.md) | Present on `validation_error` errors. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'license_manager'
|
|
15
|
+
|
|
16
|
+
instance = LicenseManager::ErrorError.new(
|
|
17
|
+
code: not_found,
|
|
18
|
+
message: Resource not found,
|
|
19
|
+
issues: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# LicenseManager::ErrorErrorIssuesInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **path** | [**Array<ErrorErrorIssuesInnerPathInner>**](ErrorErrorIssuesInnerPathInner.md) | | |
|
|
8
|
+
| **message** | **String** | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'license_manager'
|
|
14
|
+
|
|
15
|
+
instance = LicenseManager::ErrorErrorIssuesInner.new(
|
|
16
|
+
path: [name],
|
|
17
|
+
message: Too small: expected string to have >=1 characters
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# LicenseManager::ErrorErrorIssuesInnerPathInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'license_manager'
|
|
12
|
+
|
|
13
|
+
instance = LicenseManager::ErrorErrorIssuesInnerPathInner.new()
|
|
14
|
+
```
|
|
15
|
+
|
data/docs/Event.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# LicenseManager::Event
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **type** | [**EventType**](EventType.md) | | |
|
|
9
|
+
| **created_at** | **Time** | | |
|
|
10
|
+
| **payload** | **Hash<String, Object>** | Details of the event, depending on its `type`. | |
|
|
11
|
+
| **policy_id** | **String** | | |
|
|
12
|
+
| **license_id** | **String** | | |
|
|
13
|
+
| **machine_id** | **String** | | |
|
|
14
|
+
| **machine** | [**EventMachine**](EventMachine.md) | | |
|
|
15
|
+
| **actor** | [**EventActor**](EventActor.md) | | |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'license_manager'
|
|
21
|
+
|
|
22
|
+
instance = LicenseManager::Event.new(
|
|
23
|
+
id: e6Pw2JcXa,
|
|
24
|
+
type: null,
|
|
25
|
+
created_at: 2026-01-15T09:30:00.000Z,
|
|
26
|
+
payload: {fingerprint=4c:32:75:8f:9a:1e, version=1.4.2},
|
|
27
|
+
policy_id: null,
|
|
28
|
+
license_id: l3Nv8KwB,
|
|
29
|
+
machine_id: m9Tq3VhD,
|
|
30
|
+
machine: null,
|
|
31
|
+
actor: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
data/docs/EventActor.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# LicenseManager::EventActor
|
|
2
|
+
|
|
3
|
+
## Class instance methods
|
|
4
|
+
|
|
5
|
+
### `openapi_one_of`
|
|
6
|
+
|
|
7
|
+
Returns the list of classes defined in oneOf.
|
|
8
|
+
|
|
9
|
+
#### Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'license_manager'
|
|
13
|
+
|
|
14
|
+
LicenseManager::EventActor.openapi_one_of
|
|
15
|
+
# =>
|
|
16
|
+
# [
|
|
17
|
+
# :'EventActorOneOf',
|
|
18
|
+
# :'EventActorOneOf1',
|
|
19
|
+
# :'EventActorOneOf2',
|
|
20
|
+
# :'EventActorOneOf3',
|
|
21
|
+
# :'EventActorOneOf4'
|
|
22
|
+
# ]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### build
|
|
26
|
+
|
|
27
|
+
Find the appropriate object from the `openapi_one_of` list and casts the data into it.
|
|
28
|
+
|
|
29
|
+
#### Example
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
require 'license_manager'
|
|
33
|
+
|
|
34
|
+
LicenseManager::EventActor.build(data)
|
|
35
|
+
# => #<EventActorOneOf:0x00007fdd4aab02a0>
|
|
36
|
+
|
|
37
|
+
LicenseManager::EventActor.build(data_that_doesnt_match)
|
|
38
|
+
# => nil
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
#### Parameters
|
|
42
|
+
|
|
43
|
+
| Name | Type | Description |
|
|
44
|
+
| ---- | ---- | ----------- |
|
|
45
|
+
| **data** | **Mixed** | data to be matched against the list of oneOf items |
|
|
46
|
+
|
|
47
|
+
#### Return type
|
|
48
|
+
|
|
49
|
+
- `EventActorOneOf`
|
|
50
|
+
- `EventActorOneOf1`
|
|
51
|
+
- `EventActorOneOf2`
|
|
52
|
+
- `EventActorOneOf3`
|
|
53
|
+
- `EventActorOneOf4`
|
|
54
|
+
- `nil` (if no type matches)
|
|
55
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# LicenseManager::EventActorOneOf
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **type** | **String** | | |
|
|
8
|
+
| **id** | **String** | `null` when the user has been deleted. | |
|
|
9
|
+
| **name** | **String** | | |
|
|
10
|
+
| **email** | **String** | | |
|
|
11
|
+
| **image** | **String** | URL of the user's profile picture. | |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'license_manager'
|
|
17
|
+
|
|
18
|
+
instance = LicenseManager::EventActorOneOf.new(
|
|
19
|
+
type: null,
|
|
20
|
+
id: u2Hk9PzLq,
|
|
21
|
+
name: Jane Doe,
|
|
22
|
+
email: jane@example.com,
|
|
23
|
+
image: https://example.com/jane.png
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# LicenseManager::EventActorOneOf1
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **type** | **String** | | |
|
|
8
|
+
| **id** | **String** | `null` when the API key has been deleted. | |
|
|
9
|
+
| **name** | **String** | | |
|
|
10
|
+
| **start** | **String** | First characters of the key, to recognize it. | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'license_manager'
|
|
16
|
+
|
|
17
|
+
instance = LicenseManager::EventActorOneOf1.new(
|
|
18
|
+
type: null,
|
|
19
|
+
id: k5Rt7WmNb,
|
|
20
|
+
name: Billing backend,
|
|
21
|
+
start: lm_Ab3d
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# LicenseManager::EventActorOneOf2
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **type** | **String** | | |
|
|
8
|
+
| **token_type** | **String** | Type of resource the token is scoped to. | |
|
|
9
|
+
| **subject_id** | **String** | Id of the resource the token is scoped to. | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'license_manager'
|
|
15
|
+
|
|
16
|
+
instance = LicenseManager::EventActorOneOf2.new(
|
|
17
|
+
type: null,
|
|
18
|
+
token_type: null,
|
|
19
|
+
subject_id: m9Tq3VhD
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# LicenseManager::EventActorOneOf3
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **type** | **String** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'license_manager'
|
|
13
|
+
|
|
14
|
+
instance = LicenseManager::EventActorOneOf3.new(
|
|
15
|
+
type: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# LicenseManager::EventActorOneOf4
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **type** | **String** | | |
|
|
8
|
+
| **id** | **String** | `null` when the integration has been disconnected. | |
|
|
9
|
+
| **provider** | **String** | Service the integration connects to. | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'license_manager'
|
|
15
|
+
|
|
16
|
+
instance = LicenseManager::EventActorOneOf4.new(
|
|
17
|
+
type: null,
|
|
18
|
+
id: i8Fz4QnRt,
|
|
19
|
+
provider: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/EventList.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# LicenseManager::EventList
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**Array<Event>**](Event.md) | Items of the page, in the requested order. Empty past the last page. | |
|
|
8
|
+
| **pagination** | [**Pagination**](Pagination.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'license_manager'
|
|
14
|
+
|
|
15
|
+
instance = LicenseManager::EventList.new(
|
|
16
|
+
data: null,
|
|
17
|
+
pagination: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|