Skip to content

Commit 6675d65

Browse files
committed
SDK Release v1.52.0-alpha
1 parent f130f57 commit 6675d65

48 files changed

Lines changed: 4308 additions & 12 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎README.md‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To contribute, please raise an issue with a bug report, feature request, feedbac
88
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
99

1010
- API version: 1.0
11-
- Package version: v1.51.2-alpha
11+
- Package version: v1.52.0-alpha
1212
- Generator version: 7.10.0
1313
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1414

@@ -267,6 +267,12 @@ Class | Method | HTTP request | Description
267267
*UserApi* | [**add_user_billing_info**](docs/UserApi.md#add_user_billing_info) | **POST** /billing/user/info | POST: Insert billing info
268268
*UserApi* | [**get_user_billing_info**](docs/UserApi.md#get_user_billing_info) | **GET** /billing/user/info | GET: Retrieve billing info
269269
*UserApi* | [**update_user_billing_info**](docs/UserApi.md#update_user_billing_info) | **PUT** /billing/user/info | PUT: Update billing info
270+
*UserConsentApi* | [**add_a_new_consent_for_a_user**](docs/UserConsentApi.md#add_a_new_consent_for_a_user) | **POST** /auth/user-consent | Add a new User consent
271+
*UserConsentApi* | [**get_all_consent_templates**](docs/UserConsentApi.md#get_all_consent_templates) | **GET** /auth/user-consent/templates | Get all consent templates
272+
*UserConsentApi* | [**get_all_consents_for_a_user**](docs/UserConsentApi.md#get_all_consents_for_a_user) | **GET** /auth/user-consent | Get Consents for a User
273+
*UserConsentApi* | [**get_consent_template_by_type**](docs/UserConsentApi.md#get_consent_template_by_type) | **GET** /auth/user-consent/templates/{consent_type} | Get consent template for a specific type
274+
*UserConsentApi* | [**update_a_consent_action_by_type**](docs/UserConsentApi.md#update_a_consent_action_by_type) | **PATCH** /auth/user-consent/{consent_type} | Grant or revoke an existing consent
275+
*UserConsentEventsApi* | [**get_consent_audit_events**](docs/UserConsentEventsApi.md#get_consent_audit_events) | **GET** /auth/user-consent-events/{consent_type}/events | Get audit trail for a consent
270276
*UserDetailChoiceApi* | [**list_default_flavors_and_images**](docs/UserDetailChoiceApi.md#list_default_flavors_and_images) | **GET** /core/user/resources/defaults | Retrieve Default Flavors and Images
271277
*UserPermissionApi* | [**list_my_user_permissions**](docs/UserPermissionApi.md#list_my_user_permissions) | **GET** /auth/users/me/permissions | List My User Permissions
272278
*UserPermissionApi* | [**list_user_permissions**](docs/UserPermissionApi.md#list_user_permissions) | **GET** /auth/users/{id}/permissions | List User Permissions
@@ -361,6 +367,11 @@ Class | Method | HTTP request | Description
361367
- [ComplianceModelFields](docs/ComplianceModelFields.md)
362368
- [CompliancePayload](docs/CompliancePayload.md)
363369
- [ComplianceResponse](docs/ComplianceResponse.md)
370+
- [ConsentActionResponse](docs/ConsentActionResponse.md)
371+
- [ConsentBlock](docs/ConsentBlock.md)
372+
- [ConsentEventsResponse](docs/ConsentEventsResponse.md)
373+
- [ConsentTemplate](docs/ConsentTemplate.md)
374+
- [ConsentTemplatesResponse](docs/ConsentTemplatesResponse.md)
364375
- [ContainerOverviewFields](docs/ContainerOverviewFields.md)
365376
- [Contract](docs/Contract.md)
366377
- [ContractDiscountPlanFields](docs/ContractDiscountPlanFields.md)
@@ -520,6 +531,7 @@ Class | Method | HTTP request | Description
520531
- [RbacRoleDetailResponseModelFixed](docs/RbacRoleDetailResponseModelFixed.md)
521532
- [RbacRoleField](docs/RbacRoleField.md)
522533
- [RbacRoleFields](docs/RbacRoleFields.md)
534+
- [RecordConsentRequest](docs/RecordConsentRequest.md)
523535
- [RedeemVoucherPayload](docs/RedeemVoucherPayload.md)
524536
- [RegionFields](docs/RegionFields.md)
525537
- [Regions](docs/Regions.md)
@@ -591,6 +603,7 @@ Class | Method | HTTP request | Description
591603
- [TokenBasedBillingHistoryResponse](docs/TokenBasedBillingHistoryResponse.md)
592604
- [URIs](docs/URIs.md)
593605
- [UpdateClusterNodeGroupPayload](docs/UpdateClusterNodeGroupPayload.md)
606+
- [UpdateConsentRequest](docs/UpdateConsentRequest.md)
594607
- [UpdateEnvironment](docs/UpdateEnvironment.md)
595608
- [UpdateKeypairName](docs/UpdateKeypairName.md)
596609
- [UpdateKeypairNameResponse](docs/UpdateKeypairNameResponse.md)
@@ -600,6 +613,9 @@ Class | Method | HTTP request | Description
600613
- [UpdateVolumeAttachmentPayload](docs/UpdateVolumeAttachmentPayload.md)
601614
- [UpdateVolumePayload](docs/UpdateVolumePayload.md)
602615
- [UpdateVolumeResponse](docs/UpdateVolumeResponse.md)
616+
- [UserConsent](docs/UserConsent.md)
617+
- [UserConsentEvent](docs/UserConsentEvent.md)
618+
- [UserConsentsResponse](docs/UserConsentsResponse.md)
603619
- [UserDefaultChoiceForUserFields](docs/UserDefaultChoiceForUserFields.md)
604620
- [UserDefaultChoicesForUserResponse](docs/UserDefaultChoicesForUserResponse.md)
605621
- [UserInfoPostPayload](docs/UserInfoPostPayload.md)

‎docs/ConsentActionResponse.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ConsentActionResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**consent** | [**UserConsent**](UserConsent.md) | | [optional]
9+
**message** | **str** | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from hyperstack.models.consent_action_response import ConsentActionResponse
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of ConsentActionResponse from a JSON string
19+
consent_action_response_instance = ConsentActionResponse.from_json(json)
20+
# print the JSON string representation of the object
21+
print(ConsentActionResponse.to_json())
22+
23+
# convert the object into a dict
24+
consent_action_response_dict = consent_action_response_instance.to_dict()
25+
# create an instance of ConsentActionResponse from a dict
26+
consent_action_response_from_dict = ConsentActionResponse.from_dict(consent_action_response_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

‎docs/ConsentBlock.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ConsentBlock
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**text** | **str** | Block text, may contain ${variable} placeholders | [optional]
9+
**type** | **str** | Block display type | [optional]
10+
11+
## Example
12+
13+
```python
14+
from hyperstack.models.consent_block import ConsentBlock
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of ConsentBlock from a JSON string
19+
consent_block_instance = ConsentBlock.from_json(json)
20+
# print the JSON string representation of the object
21+
print(ConsentBlock.to_json())
22+
23+
# convert the object into a dict
24+
consent_block_dict = consent_block_instance.to_dict()
25+
# create an instance of ConsentBlock from a dict
26+
consent_block_from_dict = ConsentBlock.from_dict(consent_block_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

‎docs/ConsentEventsResponse.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ConsentEventsResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**consent** | [**UserConsent**](UserConsent.md) | | [optional]
9+
**events** | [**List[UserConsentEvent]**](UserConsentEvent.md) | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from hyperstack.models.consent_events_response import ConsentEventsResponse
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of ConsentEventsResponse from a JSON string
19+
consent_events_response_instance = ConsentEventsResponse.from_json(json)
20+
# print the JSON string representation of the object
21+
print(ConsentEventsResponse.to_json())
22+
23+
# convert the object into a dict
24+
consent_events_response_dict = consent_events_response_instance.to_dict()
25+
# create an instance of ConsentEventsResponse from a dict
26+
consent_events_response_from_dict = ConsentEventsResponse.from_dict(consent_events_response_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

‎docs/ConsentTemplate.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ConsentTemplate
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**blocks** | [**List[ConsentBlock]**](ConsentBlock.md) | | [optional]
9+
**version** | **str** | Template version identifier | [optional]
10+
11+
## Example
12+
13+
```python
14+
from hyperstack.models.consent_template import ConsentTemplate
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of ConsentTemplate from a JSON string
19+
consent_template_instance = ConsentTemplate.from_json(json)
20+
# print the JSON string representation of the object
21+
print(ConsentTemplate.to_json())
22+
23+
# convert the object into a dict
24+
consent_template_dict = consent_template_instance.to_dict()
25+
# create an instance of ConsentTemplate from a dict
26+
consent_template_from_dict = ConsentTemplate.from_dict(consent_template_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+

‎docs/ConsentTemplatesResponse.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# ConsentTemplatesResponse
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**templates** | **object** | Templates keyed by consent type | [optional]
9+
10+
## Example
11+
12+
```python
13+
from hyperstack.models.consent_templates_response import ConsentTemplatesResponse
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of ConsentTemplatesResponse from a JSON string
18+
consent_templates_response_instance = ConsentTemplatesResponse.from_json(json)
19+
# print the JSON string representation of the object
20+
print(ConsentTemplatesResponse.to_json())
21+
22+
# convert the object into a dict
23+
consent_templates_response_dict = consent_templates_response_instance.to_dict()
24+
# create an instance of ConsentTemplatesResponse from a dict
25+
consent_templates_response_from_dict = ConsentTemplatesResponse.from_dict(consent_templates_response_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+

‎docs/RecordConsentRequest.md‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# RecordConsentRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**action** | **str** | |
9+
**consent_method** | **str** | | [optional] [default to 'web_checkbox']
10+
**consent_type** | **str** | |
11+
**consent_version** | **str** | Version identifier. Defaults to the current version for the consent type | [optional]
12+
**metadata** | **object** | Consent-type-specific metadata | [optional]
13+
14+
## Example
15+
16+
```python
17+
from hyperstack.models.record_consent_request import RecordConsentRequest
18+
19+
# TODO update the JSON string below
20+
json = "{}"
21+
# create an instance of RecordConsentRequest from a JSON string
22+
record_consent_request_instance = RecordConsentRequest.from_json(json)
23+
# print the JSON string representation of the object
24+
print(RecordConsentRequest.to_json())
25+
26+
# convert the object into a dict
27+
record_consent_request_dict = record_consent_request_instance.to_dict()
28+
# create an instance of RecordConsentRequest from a dict
29+
record_consent_request_from_dict = RecordConsentRequest.from_dict(record_consent_request_dict)
30+
```
31+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
32+
33+

‎docs/UpdateConsentRequest.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# UpdateConsentRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**action** | **str** | |
9+
**consent_method** | **str** | | [optional] [default to 'web_checkbox']
10+
**consent_version** | **str** | Version identifier. Defaults to the current version for the consent type | [optional]
11+
**metadata** | **object** | Consent-type-specific metadata | [optional]
12+
13+
## Example
14+
15+
```python
16+
from hyperstack.models.update_consent_request import UpdateConsentRequest
17+
18+
# TODO update the JSON string below
19+
json = "{}"
20+
# create an instance of UpdateConsentRequest from a JSON string
21+
update_consent_request_instance = UpdateConsentRequest.from_json(json)
22+
# print the JSON string representation of the object
23+
print(UpdateConsentRequest.to_json())
24+
25+
# convert the object into a dict
26+
update_consent_request_dict = update_consent_request_instance.to_dict()
27+
# create an instance of UpdateConsentRequest from a dict
28+
update_consent_request_from_dict = UpdateConsentRequest.from_dict(update_consent_request_dict)
29+
```
30+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
31+
32+

‎docs/UserConsent.md‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# UserConsent
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**action** | **str** | | [optional]
9+
**consent_method** | **str** | | [optional]
10+
**consent_type** | **str** | | [optional]
11+
**created_at** | **str** | | [optional]
12+
**id** | **int** | | [optional]
13+
**ip_address** | **str** | | [optional]
14+
**org_id** | **int** | | [optional]
15+
**updated_at** | **str** | | [optional]
16+
**user_id** | **int** | | [optional]
17+
18+
## Example
19+
20+
```python
21+
from hyperstack.models.user_consent import UserConsent
22+
23+
# TODO update the JSON string below
24+
json = "{}"
25+
# create an instance of UserConsent from a JSON string
26+
user_consent_instance = UserConsent.from_json(json)
27+
# print the JSON string representation of the object
28+
print(UserConsent.to_json())
29+
30+
# convert the object into a dict
31+
user_consent_dict = user_consent_instance.to_dict()
32+
# create an instance of UserConsent from a dict
33+
user_consent_from_dict = UserConsent.from_dict(user_consent_dict)
34+
```
35+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
36+
37+

0 commit comments

Comments
 (0)