diff --git a/CHANGELOG.md b/CHANGELOG.md index b267a137..c1d60045 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,25 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Security - **pytest** (dev / CI): require **≥ 9.0.3** for **CVE-2025-71176** (insecure **`/tmp/pytest-of-{user}`** handling on UNIX; local users could cause **denial of service** or possibly **gain privileges**). See [pytest PR #14279](https://github.com/pytest-dev/pytest/pull/14279). +## [26.4.1] - 2026-04-30 + +### Added +- **API spec:** `graphiant_api_docs_v26.4.1.json` +- **Global content filters:** CRUD-style operations under **`/v1/global/content-filters`** and **`/v1/global/content-filters/{globalContentFilterId}`**; models including **`V1GlobalContentFilters*`** row/rule/site/lan entry types and **`ManaV2GlobalContentFilterConfig`**, **`ManaV2GlobalContentFilterRule`** +- **Domain categories:** **`GET /v1/global/domain-categories`** with **`V1GlobalDomainCategoriesGetResponse`** and **`ManaV2DomainCategory`** +- **Software upgrade rollouts:** **`GET`/`POST`/`PUT /v1/software/rollouts`**, **`GET`/`DELETE /v1/software/rollouts/{id}`**, **`POST /v1/software/rollouts/schedule`**; models **`UpgradeRollout`**, **`UpgradeRolloutConfig`**, **`UpgradeRolloutDevice`**, **`UpgradeRecurringSchedule`**, **`UpgradeMonthlyRecurrence`**, **`UpgradeWeeklyRecurrence`**, **`UpgradeYearlyRecurrence`**, plus related **`V1SoftwareRollouts*`** request/response types +- **ZTAgent bindings:** **`GET`/`PUT /v1/ztagent/bindings`** with **`V1ZtagentBindingsGetResponse`** / **`V1ZtagentBindingsPutRequest`** +- **MACsec monitoring:** **`GET /v2/monitoring/macsec/{deviceId}/status`** with **`V2MonitoringMacsecDeviceIdStatusGetResponse`** (and nested MACsec status type) +- **Mana:** **`ManaV2RegionCoordinates`**; **`ManaV2Region`** updated in spec + +### Changed +- **Version:** Package **26.4.1**; OpenAPI bundle **`graphiant_api_docs_v26.4.1.json`** (replaces **26.3.1** bundle in-repo). +- **Schemas / docs (updated):** **`AlertserviceNotificationBody`**, **`AssuranceClientSession`**, **`AssuranceRegion`**, **`UpgradeUpgradeOccurrence`**, **`UpgradeUpgradeSummary`**, **`V2AssuranceTopologyClientSummariesPostResponseSummary`**, **`DefaultApi`**, README and generated **`docs/`** model pages. +- **SDK (generated):** Refreshed **`default_api`**, **`api_client`**, **`configuration`**, and model exports to match the **26.4.1** spec. + +### Removed +- **API spec:** removed **`graphiant_api_docs_v26.3.1.json`** (superseded by **26.4.1** bundle). + ## [26.3.3] - 2026-04-10 ### Changed diff --git a/README.md b/README.md index 7b27495a..ee9a1757 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ More product and platform context: [Graphiant Docs](https://docs.graphiant.com). | **Automation** | [Graphiant Automation](https://docs.graphiant.com/docs/automation) | | **REST API** | [Graphiant Portal REST API](https://docs.graphiant.com/docs/graphiant-portal-rest-api) | | **Method index (repo)** | [DefaultApi.md](https://github.com/Graphiant-Inc/graphiant-sdk-python/blob/main/docs/DefaultApi.md) | -| **OpenAPI bundle (this build)** | [`graphiant_api_docs_v26.3.1.json`](https://github.com/Graphiant-Inc/graphiant-sdk-python/blob/main/graphiant_api_docs_v26.3.1.json) — source for generated paths and models | +| **OpenAPI bundle (this build)** | [`graphiant_api_docs_v26.4.1.json`](https://github.com/Graphiant-Inc/graphiant-sdk-python/blob/main/graphiant_api_docs_v26.4.1.json) — source for generated paths and models | | **Model docs (`*.md`)** | [`docs/`](https://github.com/Graphiant-Inc/graphiant-sdk-python/tree/main/docs) (same names as Python classes, e.g. `V1EdgesSummaryGetResponse.md`) | | **PyPI** | [graphiant-sdk](https://pypi.org/project/graphiant-sdk) | | **Changelog** | [CHANGELOG.md](https://github.com/Graphiant-Inc/graphiant-sdk-python/blob/main/CHANGELOG.md) | @@ -469,15 +469,15 @@ brew install openapi-generator # macOS # Generate SDK openapi-generator generate \ - -i graphiant_api_docs_v26.3.1.json \ + -i graphiant_api_docs_v26.4.1.json \ -g python \ --git-user-id Graphiant-Inc \ --git-repo-id graphiant-sdk-python \ --package-name graphiant_sdk \ - --additional-properties=packageVersion=26.3.3 + --additional-properties=packageVersion=26.4.1 ``` -> **Note:** Download the latest API bundle from the Graphiant portal under **Support Hub** → **Developer Tools**. Set **`packageVersion`** to the SDK release you are publishing (this branch: **26.3.3**). The **`-i`** filename reflects the API doc bundle version (here `graphiant_api_docs_v26.3.1.json`) and may stay the same across patch releases when the spec is unchanged. +> **Note:** Download the latest API bundle from the Graphiant portal under **Support Hub** → **Developer Tools**. Set **`packageVersion`** to the SDK release you are publishing (this branch: **26.4.1**). The **`-i`** filename reflects the API doc bundle version (here `graphiant_api_docs_v26.4.1.json`) and may stay the same across patch releases when the spec is unchanged. ### Testing diff --git a/docs/AlertserviceNotificationBody.md b/docs/AlertserviceNotificationBody.md index 01c23833..3a03e554 100644 --- a/docs/AlertserviceNotificationBody.md +++ b/docs/AlertserviceNotificationBody.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **pagerduty_list** | **List[str]** | | [optional] **recipient_list** | **List[str]** | | [optional] **teams_list** | **List[str]** | | [optional] +**webhook_url_list** | **List[str]** | | [optional] ## Example diff --git a/docs/AssuranceClientSession.md b/docs/AssuranceClientSession.md index a351f637..83b81642 100644 --- a/docs/AssuranceClientSession.md +++ b/docs/AssuranceClientSession.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **client_flex_algo** | **str** | | [optional] **client_ip** | **str** | | [optional] **client_links** | [**List[AssuranceClientSessionEndpointLink]**](AssuranceClientSessionEndpointLink.md) | | [optional] +**client_username** | **str** | | [optional] **first_seen_ts** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] **lan_segment** | **List[str]** | | [optional] **last_seen_ts** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] diff --git a/docs/AssuranceRegion.md b/docs/AssuranceRegion.md index c4e96d30..15b21599 100644 --- a/docs/AssuranceRegion.md +++ b/docs/AssuranceRegion.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **region_id** | **int** | | [optional] +**region_iso_code** | **str** | | [optional] **region_name** | **str** | | [optional] ## Example diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index b0f6ac2a..1aa6060f 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -264,7 +264,13 @@ Method | HTTP request | Description [**v1_global_apps_graphiant_get**](DefaultApi.md#v1_global_apps_graphiant_get) | **GET** /v1/global/apps/graphiant | [**v1_global_attached_edges_post**](DefaultApi.md#v1_global_attached_edges_post) | **POST** /v1/global/attached-edges | [**v1_global_config_patch**](DefaultApi.md#v1_global_config_patch) | **PATCH** /v1/global/config | +[**v1_global_content_filters_get**](DefaultApi.md#v1_global_content_filters_get) | **GET** /v1/global/content-filters | +[**v1_global_content_filters_global_content_filter_id_delete**](DefaultApi.md#v1_global_content_filters_global_content_filter_id_delete) | **DELETE** /v1/global/content-filters/{globalContentFilterId} | +[**v1_global_content_filters_global_content_filter_id_get**](DefaultApi.md#v1_global_content_filters_global_content_filter_id_get) | **GET** /v1/global/content-filters/{globalContentFilterId} | +[**v1_global_content_filters_global_content_filter_id_put**](DefaultApi.md#v1_global_content_filters_global_content_filter_id_put) | **PUT** /v1/global/content-filters/{globalContentFilterId} | +[**v1_global_content_filters_post**](DefaultApi.md#v1_global_content_filters_post) | **POST** /v1/global/content-filters | [**v1_global_device_status_get**](DefaultApi.md#v1_global_device_status_get) | **GET** /v1/global/device-status | +[**v1_global_domain_categories_get**](DefaultApi.md#v1_global_domain_categories_get) | **GET** /v1/global/domain-categories | [**v1_global_ipfix_device_get**](DefaultApi.md#v1_global_ipfix_device_get) | **GET** /v1/global/ipfix/device | [**v1_global_ipfix_post**](DefaultApi.md#v1_global_ipfix_post) | **POST** /v1/global/ipfix | [**v1_global_ipfix_site_get**](DefaultApi.md#v1_global_ipfix_site_get) | **GET** /v1/global/ipfix/site | @@ -343,6 +349,12 @@ Method | HTTP request | Description [**v1_software_gcsrelease_upload_notes_post**](DefaultApi.md#v1_software_gcsrelease_upload_notes_post) | **POST** /v1/software/gcsrelease/upload/notes | [**v1_software_releases_download_get**](DefaultApi.md#v1_software_releases_download_get) | **GET** /v1/software/releases/download | [**v1_software_releases_summary_get**](DefaultApi.md#v1_software_releases_summary_get) | **GET** /v1/software/releases/summary | +[**v1_software_rollouts_get**](DefaultApi.md#v1_software_rollouts_get) | **GET** /v1/software/rollouts | +[**v1_software_rollouts_id_delete**](DefaultApi.md#v1_software_rollouts_id_delete) | **DELETE** /v1/software/rollouts/{id} | +[**v1_software_rollouts_id_get**](DefaultApi.md#v1_software_rollouts_id_get) | **GET** /v1/software/rollouts/{id} | +[**v1_software_rollouts_post**](DefaultApi.md#v1_software_rollouts_post) | **POST** /v1/software/rollouts | +[**v1_software_rollouts_put**](DefaultApi.md#v1_software_rollouts_put) | **PUT** /v1/software/rollouts | +[**v1_software_rollouts_schedule_post**](DefaultApi.md#v1_software_rollouts_schedule_post) | **POST** /v1/software/rollouts/schedule | [**v1_software_running_details_get**](DefaultApi.md#v1_software_running_details_get) | **GET** /v1/software/running/details | [**v1_software_running_summary_get**](DefaultApi.md#v1_software_running_summary_get) | **GET** /v1/software/running/summary | [**v1_talkers_device_device_id_top_post**](DefaultApi.md#v1_talkers_device_device_id_top_post) | **POST** /v1/talkers/device/{deviceId}/top | @@ -368,6 +380,8 @@ Method | HTTP request | Description [**v1_users_put**](DefaultApi.md#v1_users_put) | **PUT** /v1/users | [**v1_version_post**](DefaultApi.md#v1_version_post) | **POST** /v1/version | [**v1_zones_get**](DefaultApi.md#v1_zones_get) | **GET** /v1/zones | +[**v1_ztagent_bindings_get**](DefaultApi.md#v1_ztagent_bindings_get) | **GET** /v1/ztagent/bindings | +[**v1_ztagent_bindings_put**](DefaultApi.md#v1_ztagent_bindings_put) | **PUT** /v1/ztagent/bindings | [**v2_ack_createupdate_post**](DefaultApi.md#v2_ack_createupdate_post) | **POST** /v2/ack/createupdate | [**v2_aggregated_notification_enable_disable_post**](DefaultApi.md#v2_aggregated_notification_enable_disable_post) | **POST** /v2/aggregated-notification/enable-disable | [**v2_aggregated_notification_get_state_get**](DefaultApi.md#v2_aggregated_notification_get_state_get) | **GET** /v2/aggregated-notification/get-state | @@ -445,6 +459,7 @@ Method | HTTP request | Description [**v2_monitoring_ike_error_history_post**](DefaultApi.md#v2_monitoring_ike_error_history_post) | **POST** /v2/monitoring/ike-error-history | [**v2_monitoring_interface_post**](DefaultApi.md#v2_monitoring_interface_post) | **POST** /v2/monitoring/interface | [**v2_monitoring_ipsec_post**](DefaultApi.md#v2_monitoring_ipsec_post) | **POST** /v2/monitoring/ipsec | +[**v2_monitoring_macsec_device_id_status_get**](DefaultApi.md#v2_monitoring_macsec_device_id_status_get) | **GET** /v2/monitoring/macsec/{deviceId}/status | [**v2_monitoring_policy_post**](DefaultApi.md#v2_monitoring_policy_post) | **POST** /v2/monitoring/policy | [**v2_monitoring_queue_instant_post**](DefaultApi.md#v2_monitoring_queue_instant_post) | **POST** /v2/monitoring/queue-instant | [**v2_monitoring_segment_route_counts_post**](DefaultApi.md#v2_monitoring_segment_route_counts_post) | **POST** /v2/monitoring/segment-route-counts | @@ -20722,10 +20737,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_device_status_get** -> V1GlobalDeviceStatusGetResponse v1_global_device_status_get(authorization, ipfix_exported_id=ipfix_exported_id, ntp_id=ntp_id, prefix_set_id=prefix_set_id, routing_policy_id=routing_policy_id, snmp_id=snmp_id, syslog_server_id=syslog_server_id, traffic_policy_id=traffic_policy_id) +# **v1_global_content_filters_get** +> V1GlobalContentFiltersGetResponse v1_global_content_filters_get(authorization) -Get status on global collector attached to devices +Get basic details for all content filter under the current enterprise ### Example @@ -20733,7 +20748,7 @@ Get status on global collector attached to devices ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_device_status_get_response import V1GlobalDeviceStatusGetResponse +from graphiant_sdk.models.v1_global_content_filters_get_response import V1GlobalContentFiltersGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20759,20 +20774,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - ipfix_exported_id = 1234567891011 # int | (optional) - ntp_id = 1234567891011 # int | (optional) - prefix_set_id = 1234567891011 # int | (optional) - routing_policy_id = 1234567891011 # int | (optional) - snmp_id = 1234567891011 # int | (optional) - syslog_server_id = 1234567891011 # int | (optional) - traffic_policy_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v1_global_device_status_get(authorization, ipfix_exported_id=ipfix_exported_id, ntp_id=ntp_id, prefix_set_id=prefix_set_id, routing_policy_id=routing_policy_id, snmp_id=snmp_id, syslog_server_id=syslog_server_id, traffic_policy_id=traffic_policy_id) - print("The response of DefaultApi->v1_global_device_status_get:\n") + api_response = api_instance.v1_global_content_filters_get(authorization) + print("The response of DefaultApi->v1_global_content_filters_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_device_status_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_content_filters_get: %s\n" % e) ``` @@ -20783,17 +20791,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **ipfix_exported_id** | **int**| | [optional] - **ntp_id** | **int**| | [optional] - **prefix_set_id** | **int**| | [optional] - **routing_policy_id** | **int**| | [optional] - **snmp_id** | **int**| | [optional] - **syslog_server_id** | **int**| | [optional] - **traffic_policy_id** | **int**| | [optional] ### Return type -[**V1GlobalDeviceStatusGetResponse**](V1GlobalDeviceStatusGetResponse.md) +[**V1GlobalContentFiltersGetResponse**](V1GlobalContentFiltersGetResponse.md) ### Authorization @@ -20812,10 +20813,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_ipfix_device_get** -> V1GlobalIpfixDeviceGetResponse v1_global_ipfix_device_get(authorization, device_id=device_id) +# **v1_global_content_filters_global_content_filter_id_delete** +> object v1_global_content_filters_global_content_filter_id_delete(authorization, global_content_filter_id) -Get global ipfix exporters objects that failed to attach for a device +Delete a content filter under the current enterprise ### Example @@ -20823,7 +20824,6 @@ Get global ipfix exporters objects that failed to attach for a device ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_ipfix_device_get_response import V1GlobalIpfixDeviceGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20849,14 +20849,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - device_id = 1234567891011 # int | (optional) + global_content_filter_id = 1234567891011 # int | ID of the global content filter to remove. try: - api_response = api_instance.v1_global_ipfix_device_get(authorization, device_id=device_id) - print("The response of DefaultApi->v1_global_ipfix_device_get:\n") + api_response = api_instance.v1_global_content_filters_global_content_filter_id_delete(authorization, global_content_filter_id) + print("The response of DefaultApi->v1_global_content_filters_global_content_filter_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_ipfix_device_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_content_filters_global_content_filter_id_delete: %s\n" % e) ``` @@ -20867,11 +20867,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **device_id** | **int**| | [optional] + **global_content_filter_id** | **int**| ID of the global content filter to remove. | ### Return type -[**V1GlobalIpfixDeviceGetResponse**](V1GlobalIpfixDeviceGetResponse.md) +**object** ### Authorization @@ -20890,10 +20890,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_ipfix_post** -> V1GlobalIpfixPostResponse v1_global_ipfix_post(authorization, v1_global_ipfix_post_request) +# **v1_global_content_filters_global_content_filter_id_get** +> V1GlobalContentFiltersGlobalContentFilterIdGetResponse v1_global_content_filters_global_content_filter_id_get(authorization, global_content_filter_id) -Get configured global ipfix exporters +Get the config for a content filter under the current enterprise ### Example @@ -20901,8 +20901,7 @@ Get configured global ipfix exporters ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_ipfix_post_request import V1GlobalIpfixPostRequest -from graphiant_sdk.models.v1_global_ipfix_post_response import V1GlobalIpfixPostResponse +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_get_response import V1GlobalContentFiltersGlobalContentFilterIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20928,14 +20927,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_global_ipfix_post_request = graphiant_sdk.V1GlobalIpfixPostRequest() # V1GlobalIpfixPostRequest | + global_content_filter_id = 1234567891011 # int | ID of the global content filter whose configuration should be returned. try: - api_response = api_instance.v1_global_ipfix_post(authorization, v1_global_ipfix_post_request) - print("The response of DefaultApi->v1_global_ipfix_post:\n") + api_response = api_instance.v1_global_content_filters_global_content_filter_id_get(authorization, global_content_filter_id) + print("The response of DefaultApi->v1_global_content_filters_global_content_filter_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_ipfix_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_content_filters_global_content_filter_id_get: %s\n" % e) ``` @@ -20946,11 +20945,91 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_ipfix_post_request** | [**V1GlobalIpfixPostRequest**](V1GlobalIpfixPostRequest.md)| | + **global_content_filter_id** | **int**| ID of the global content filter whose configuration should be returned. | ### Return type -[**V1GlobalIpfixPostResponse**](V1GlobalIpfixPostResponse.md) +[**V1GlobalContentFiltersGlobalContentFilterIdGetResponse**](V1GlobalContentFiltersGlobalContentFilterIdGetResponse.md) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_global_content_filters_global_content_filter_id_put** +> object v1_global_content_filters_global_content_filter_id_put(authorization, global_content_filter_id, v1_global_content_filters_global_content_filter_id_put_request) + +Overwrite a pre-existing content filter under the current enterprise + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_put_request import V1GlobalContentFiltersGlobalContentFilterIdPutRequest +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + global_content_filter_id = 1234567891011 # int | ID of the global content filter to replace with the supplied configuration. + v1_global_content_filters_global_content_filter_id_put_request = graphiant_sdk.V1GlobalContentFiltersGlobalContentFilterIdPutRequest() # V1GlobalContentFiltersGlobalContentFilterIdPutRequest | + + try: + api_response = api_instance.v1_global_content_filters_global_content_filter_id_put(authorization, global_content_filter_id, v1_global_content_filters_global_content_filter_id_put_request) + print("The response of DefaultApi->v1_global_content_filters_global_content_filter_id_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_global_content_filters_global_content_filter_id_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **global_content_filter_id** | **int**| ID of the global content filter to replace with the supplied configuration. | + **v1_global_content_filters_global_content_filter_id_put_request** | [**V1GlobalContentFiltersGlobalContentFilterIdPutRequest**](V1GlobalContentFiltersGlobalContentFilterIdPutRequest.md)| | + +### Return type + +**object** ### Authorization @@ -20969,10 +21048,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_ipfix_site_get** -> V1GlobalIpfixSiteGetResponse v1_global_ipfix_site_get(authorization, site_id=site_id) +# **v1_global_content_filters_post** +> V1GlobalContentFiltersPostResponse v1_global_content_filters_post(authorization, v1_global_content_filters_post_request) -Get configured global ipfix exporters for a site +Configure a new content filter under the current enterprise ### Example @@ -20980,7 +21059,8 @@ Get configured global ipfix exporters for a site ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_ipfix_site_get_response import V1GlobalIpfixSiteGetResponse +from graphiant_sdk.models.v1_global_content_filters_post_request import V1GlobalContentFiltersPostRequest +from graphiant_sdk.models.v1_global_content_filters_post_response import V1GlobalContentFiltersPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21006,14 +21086,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - site_id = 1234567891011 # int | (optional) + v1_global_content_filters_post_request = graphiant_sdk.V1GlobalContentFiltersPostRequest() # V1GlobalContentFiltersPostRequest | try: - api_response = api_instance.v1_global_ipfix_site_get(authorization, site_id=site_id) - print("The response of DefaultApi->v1_global_ipfix_site_get:\n") + api_response = api_instance.v1_global_content_filters_post(authorization, v1_global_content_filters_post_request) + print("The response of DefaultApi->v1_global_content_filters_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_ipfix_site_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_content_filters_post: %s\n" % e) ``` @@ -21024,11 +21104,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **site_id** | **int**| | [optional] + **v1_global_content_filters_post_request** | [**V1GlobalContentFiltersPostRequest**](V1GlobalContentFiltersPostRequest.md)| | ### Return type -[**V1GlobalIpfixSiteGetResponse**](V1GlobalIpfixSiteGetResponse.md) +[**V1GlobalContentFiltersPostResponse**](V1GlobalContentFiltersPostResponse.md) ### Authorization @@ -21036,7 +21116,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -21047,10 +21127,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_ipsec_profile_get** -> V1GlobalIpsecProfileGetResponse v1_global_ipsec_profile_get(authorization) +# **v1_global_device_status_get** +> V1GlobalDeviceStatusGetResponse v1_global_device_status_get(authorization, ipfix_exported_id=ipfix_exported_id, ntp_id=ntp_id, prefix_set_id=prefix_set_id, routing_policy_id=routing_policy_id, snmp_id=snmp_id, syslog_server_id=syslog_server_id, traffic_policy_id=traffic_policy_id) -Get all the configured global IPsec Profiles for the current enterprise +Get status on global collector attached to devices ### Example @@ -21058,7 +21138,7 @@ Get all the configured global IPsec Profiles for the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_ipsec_profile_get_response import V1GlobalIpsecProfileGetResponse +from graphiant_sdk.models.v1_global_device_status_get_response import V1GlobalDeviceStatusGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21084,13 +21164,20 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + ipfix_exported_id = 1234567891011 # int | (optional) + ntp_id = 1234567891011 # int | (optional) + prefix_set_id = 1234567891011 # int | (optional) + routing_policy_id = 1234567891011 # int | (optional) + snmp_id = 1234567891011 # int | (optional) + syslog_server_id = 1234567891011 # int | (optional) + traffic_policy_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v1_global_ipsec_profile_get(authorization) - print("The response of DefaultApi->v1_global_ipsec_profile_get:\n") + api_response = api_instance.v1_global_device_status_get(authorization, ipfix_exported_id=ipfix_exported_id, ntp_id=ntp_id, prefix_set_id=prefix_set_id, routing_policy_id=routing_policy_id, snmp_id=snmp_id, syslog_server_id=syslog_server_id, traffic_policy_id=traffic_policy_id) + print("The response of DefaultApi->v1_global_device_status_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_ipsec_profile_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_device_status_get: %s\n" % e) ``` @@ -21101,10 +21188,17 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **ipfix_exported_id** | **int**| | [optional] + **ntp_id** | **int**| | [optional] + **prefix_set_id** | **int**| | [optional] + **routing_policy_id** | **int**| | [optional] + **snmp_id** | **int**| | [optional] + **syslog_server_id** | **int**| | [optional] + **traffic_policy_id** | **int**| | [optional] ### Return type -[**V1GlobalIpsecProfileGetResponse**](V1GlobalIpsecProfileGetResponse.md) +[**V1GlobalDeviceStatusGetResponse**](V1GlobalDeviceStatusGetResponse.md) ### Authorization @@ -21123,10 +21217,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_ipsec_profile_id_get** -> V1GlobalIpsecProfileIdGetResponse v1_global_ipsec_profile_id_get(authorization, id) +# **v1_global_domain_categories_get** +> V1GlobalDomainCategoriesGetResponse v1_global_domain_categories_get(authorization) -Get details of the configured global IPsec Profiles +Get all domain categories from the DPI engine ### Example @@ -21134,7 +21228,7 @@ Get details of the configured global IPsec Profiles ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_ipsec_profile_id_get_response import V1GlobalIpsecProfileIdGetResponse +from graphiant_sdk.models.v1_global_domain_categories_get_response import V1GlobalDomainCategoriesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21160,14 +21254,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - id = 1234567891011 # int | try: - api_response = api_instance.v1_global_ipsec_profile_id_get(authorization, id) - print("The response of DefaultApi->v1_global_ipsec_profile_id_get:\n") + api_response = api_instance.v1_global_domain_categories_get(authorization) + print("The response of DefaultApi->v1_global_domain_categories_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_ipsec_profile_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_domain_categories_get: %s\n" % e) ``` @@ -21178,11 +21271,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | ### Return type -[**V1GlobalIpsecProfileIdGetResponse**](V1GlobalIpsecProfileIdGetResponse.md) +[**V1GlobalDomainCategoriesGetResponse**](V1GlobalDomainCategoriesGetResponse.md) ### Authorization @@ -21201,10 +21293,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_ipsec_profile_vpn_profile_id_site_to_site_get** -> V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse v1_global_ipsec_profile_vpn_profile_id_site_to_site_get(authorization, vpn_profile_id) +# **v1_global_ipfix_device_get** +> V1GlobalIpfixDeviceGetResponse v1_global_ipfix_device_get(authorization, device_id=device_id) -Get Site-to-site VPNs that are using the given global IPsec Profile +Get global ipfix exporters objects that failed to attach for a device ### Example @@ -21212,7 +21304,7 @@ Get Site-to-site VPNs that are using the given global IPsec Profile ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_response import V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse +from graphiant_sdk.models.v1_global_ipfix_device_get_response import V1GlobalIpfixDeviceGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21238,14 +21330,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - vpn_profile_id = 1234567891011 # int | + device_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v1_global_ipsec_profile_vpn_profile_id_site_to_site_get(authorization, vpn_profile_id) - print("The response of DefaultApi->v1_global_ipsec_profile_vpn_profile_id_site_to_site_get:\n") + api_response = api_instance.v1_global_ipfix_device_get(authorization, device_id=device_id) + print("The response of DefaultApi->v1_global_ipfix_device_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_ipsec_profile_vpn_profile_id_site_to_site_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipfix_device_get: %s\n" % e) ``` @@ -21256,11 +21348,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **vpn_profile_id** | **int**| | + **device_id** | **int**| | [optional] ### Return type -[**V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse**](V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse.md) +[**V1GlobalIpfixDeviceGetResponse**](V1GlobalIpfixDeviceGetResponse.md) ### Authorization @@ -21279,10 +21371,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_lan_segments_get** -> V1GlobalLanSegmentsGetResponse v1_global_lan_segments_get(authorization) +# **v1_global_ipfix_post** +> V1GlobalIpfixPostResponse v1_global_ipfix_post(authorization, v1_global_ipfix_post_request) -Get a list of lan-segments under the currently logged in enterprise +Get configured global ipfix exporters ### Example @@ -21290,7 +21382,8 @@ Get a list of lan-segments under the currently logged in enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_lan_segments_get_response import V1GlobalLanSegmentsGetResponse +from graphiant_sdk.models.v1_global_ipfix_post_request import V1GlobalIpfixPostRequest +from graphiant_sdk.models.v1_global_ipfix_post_response import V1GlobalIpfixPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21316,13 +21409,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + v1_global_ipfix_post_request = graphiant_sdk.V1GlobalIpfixPostRequest() # V1GlobalIpfixPostRequest | try: - api_response = api_instance.v1_global_lan_segments_get(authorization) - print("The response of DefaultApi->v1_global_lan_segments_get:\n") + api_response = api_instance.v1_global_ipfix_post(authorization, v1_global_ipfix_post_request) + print("The response of DefaultApi->v1_global_ipfix_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_lan_segments_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipfix_post: %s\n" % e) ``` @@ -21333,10 +21427,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_global_ipfix_post_request** | [**V1GlobalIpfixPostRequest**](V1GlobalIpfixPostRequest.md)| | ### Return type -[**V1GlobalLanSegmentsGetResponse**](V1GlobalLanSegmentsGetResponse.md) +[**V1GlobalIpfixPostResponse**](V1GlobalIpfixPostResponse.md) ### Authorization @@ -21344,7 +21439,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -21355,10 +21450,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_lan_segments_id_delete** -> v1_global_lan_segments_id_delete(authorization, id) +# **v1_global_ipfix_site_get** +> V1GlobalIpfixSiteGetResponse v1_global_ipfix_site_get(authorization, site_id=site_id) -Delete a lan-segment +Get configured global ipfix exporters for a site ### Example @@ -21366,6 +21461,7 @@ Delete a lan-segment ```python import graphiant_sdk +from graphiant_sdk.models.v1_global_ipfix_site_get_response import V1GlobalIpfixSiteGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21391,12 +21487,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - id = 1234567891011 # int | + site_id = 1234567891011 # int | (optional) try: - api_instance.v1_global_lan_segments_id_delete(authorization, id) + api_response = api_instance.v1_global_ipfix_site_get(authorization, site_id=site_id) + print("The response of DefaultApi->v1_global_ipfix_site_get:\n") + pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_lan_segments_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipfix_site_get: %s\n" % e) ``` @@ -21407,11 +21505,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | + **site_id** | **int**| | [optional] ### Return type -void (empty response body) +[**V1GlobalIpfixSiteGetResponse**](V1GlobalIpfixSiteGetResponse.md) ### Authorization @@ -21420,20 +21518,20 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | No Content | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_lan_segments_post** -> V1GlobalLanSegmentsPostResponse v1_global_lan_segments_post(authorization, v1_global_lan_segments_post_request) +# **v1_global_ipsec_profile_get** +> V1GlobalIpsecProfileGetResponse v1_global_ipsec_profile_get(authorization) -Create a new lan-segment scoped to the enterprise +Get all the configured global IPsec Profiles for the current enterprise ### Example @@ -21441,8 +21539,7 @@ Create a new lan-segment scoped to the enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_lan_segments_post_request import V1GlobalLanSegmentsPostRequest -from graphiant_sdk.models.v1_global_lan_segments_post_response import V1GlobalLanSegmentsPostResponse +from graphiant_sdk.models.v1_global_ipsec_profile_get_response import V1GlobalIpsecProfileGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21468,14 +21565,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_global_lan_segments_post_request = graphiant_sdk.V1GlobalLanSegmentsPostRequest() # V1GlobalLanSegmentsPostRequest | try: - api_response = api_instance.v1_global_lan_segments_post(authorization, v1_global_lan_segments_post_request) - print("The response of DefaultApi->v1_global_lan_segments_post:\n") + api_response = api_instance.v1_global_ipsec_profile_get(authorization) + print("The response of DefaultApi->v1_global_ipsec_profile_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_lan_segments_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipsec_profile_get: %s\n" % e) ``` @@ -21486,11 +21582,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_lan_segments_post_request** | [**V1GlobalLanSegmentsPostRequest**](V1GlobalLanSegmentsPostRequest.md)| | ### Return type -[**V1GlobalLanSegmentsPostResponse**](V1GlobalLanSegmentsPostResponse.md) +[**V1GlobalIpsecProfileGetResponse**](V1GlobalIpsecProfileGetResponse.md) ### Authorization @@ -21498,7 +21593,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -21509,10 +21604,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_lan_segments_vrf_id_devices_get** -> V1GlobalLanSegmentsVrfIdDevicesGetResponse v1_global_lan_segments_vrf_id_devices_get(authorization, vrf_id) +# **v1_global_ipsec_profile_id_get** +> V1GlobalIpsecProfileIdGetResponse v1_global_ipsec_profile_id_get(authorization, id) -Get a list of lan-segment devices under the currently logged in enterprise +Get details of the configured global IPsec Profiles ### Example @@ -21520,7 +21615,7 @@ Get a list of lan-segment devices under the currently logged in enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_lan_segments_vrf_id_devices_get_response import V1GlobalLanSegmentsVrfIdDevicesGetResponse +from graphiant_sdk.models.v1_global_ipsec_profile_id_get_response import V1GlobalIpsecProfileIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21546,14 +21641,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - vrf_id = 1234567891011 # int | + id = 1234567891011 # int | try: - api_response = api_instance.v1_global_lan_segments_vrf_id_devices_get(authorization, vrf_id) - print("The response of DefaultApi->v1_global_lan_segments_vrf_id_devices_get:\n") + api_response = api_instance.v1_global_ipsec_profile_id_get(authorization, id) + print("The response of DefaultApi->v1_global_ipsec_profile_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_lan_segments_vrf_id_devices_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipsec_profile_id_get: %s\n" % e) ``` @@ -21564,11 +21659,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **vrf_id** | **int**| | + **id** | **int**| | ### Return type -[**V1GlobalLanSegmentsVrfIdDevicesGetResponse**](V1GlobalLanSegmentsVrfIdDevicesGetResponse.md) +[**V1GlobalIpsecProfileIdGetResponse**](V1GlobalIpsecProfileIdGetResponse.md) ### Authorization @@ -21587,10 +21682,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_ntps_device_get** -> V1GlobalNtpsDeviceGetResponse v1_global_ntps_device_get(authorization, device_id=device_id) +# **v1_global_ipsec_profile_vpn_profile_id_site_to_site_get** +> V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse v1_global_ipsec_profile_vpn_profile_id_site_to_site_get(authorization, vpn_profile_id) -Get global ntp objects that failed to attach for a device +Get Site-to-site VPNs that are using the given global IPsec Profile ### Example @@ -21598,7 +21693,7 @@ Get global ntp objects that failed to attach for a device ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_ntps_device_get_response import V1GlobalNtpsDeviceGetResponse +from graphiant_sdk.models.v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_response import V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21624,14 +21719,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - device_id = 1234567891011 # int | (optional) + vpn_profile_id = 1234567891011 # int | try: - api_response = api_instance.v1_global_ntps_device_get(authorization, device_id=device_id) - print("The response of DefaultApi->v1_global_ntps_device_get:\n") + api_response = api_instance.v1_global_ipsec_profile_vpn_profile_id_site_to_site_get(authorization, vpn_profile_id) + print("The response of DefaultApi->v1_global_ipsec_profile_vpn_profile_id_site_to_site_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_ntps_device_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipsec_profile_vpn_profile_id_site_to_site_get: %s\n" % e) ``` @@ -21642,11 +21737,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **device_id** | **int**| | [optional] + **vpn_profile_id** | **int**| | ### Return type -[**V1GlobalNtpsDeviceGetResponse**](V1GlobalNtpsDeviceGetResponse.md) +[**V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse**](V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse.md) ### Authorization @@ -21665,10 +21760,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_ntps_post** -> V1GlobalNtpsPostResponse v1_global_ntps_post(authorization, v1_global_ntps_post_request) +# **v1_global_lan_segments_get** +> V1GlobalLanSegmentsGetResponse v1_global_lan_segments_get(authorization) -Get configured global ntps +Get a list of lan-segments under the currently logged in enterprise ### Example @@ -21676,8 +21771,7 @@ Get configured global ntps ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_ntps_post_request import V1GlobalNtpsPostRequest -from graphiant_sdk.models.v1_global_ntps_post_response import V1GlobalNtpsPostResponse +from graphiant_sdk.models.v1_global_lan_segments_get_response import V1GlobalLanSegmentsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21703,14 +21797,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_global_ntps_post_request = graphiant_sdk.V1GlobalNtpsPostRequest() # V1GlobalNtpsPostRequest | try: - api_response = api_instance.v1_global_ntps_post(authorization, v1_global_ntps_post_request) - print("The response of DefaultApi->v1_global_ntps_post:\n") + api_response = api_instance.v1_global_lan_segments_get(authorization) + print("The response of DefaultApi->v1_global_lan_segments_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_ntps_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_lan_segments_get: %s\n" % e) ``` @@ -21721,11 +21814,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_ntps_post_request** | [**V1GlobalNtpsPostRequest**](V1GlobalNtpsPostRequest.md)| | ### Return type -[**V1GlobalNtpsPostResponse**](V1GlobalNtpsPostResponse.md) +[**V1GlobalLanSegmentsGetResponse**](V1GlobalLanSegmentsGetResponse.md) ### Authorization @@ -21733,7 +21825,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -21744,10 +21836,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_ntps_site_get** -> V1GlobalNtpsSiteGetResponse v1_global_ntps_site_get(authorization, site_id=site_id) +# **v1_global_lan_segments_id_delete** +> v1_global_lan_segments_id_delete(authorization, id) -Get configured global ntps +Delete a lan-segment ### Example @@ -21755,7 +21847,6 @@ Get configured global ntps ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_ntps_site_get_response import V1GlobalNtpsSiteGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21781,14 +21872,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - site_id = 1234567891011 # int | (optional) + id = 1234567891011 # int | try: - api_response = api_instance.v1_global_ntps_site_get(authorization, site_id=site_id) - print("The response of DefaultApi->v1_global_ntps_site_get:\n") - pprint(api_response) + api_instance.v1_global_lan_segments_id_delete(authorization, id) except Exception as e: - print("Exception when calling DefaultApi->v1_global_ntps_site_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_lan_segments_id_delete: %s\n" % e) ``` @@ -21799,11 +21888,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **site_id** | **int**| | [optional] + **id** | **int**| | ### Return type -[**V1GlobalNtpsSiteGetResponse**](V1GlobalNtpsSiteGetResponse.md) +void (empty response body) ### Authorization @@ -21812,20 +21901,20 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**204** | No Content | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_prefix_sets_post** -> V1GlobalPrefixSetsPostResponse v1_global_prefix_sets_post(authorization, v1_global_prefix_sets_post_request) +# **v1_global_lan_segments_post** +> V1GlobalLanSegmentsPostResponse v1_global_lan_segments_post(authorization, v1_global_lan_segments_post_request) -Get configured global prefix-sets +Create a new lan-segment scoped to the enterprise ### Example @@ -21833,8 +21922,8 @@ Get configured global prefix-sets ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_prefix_sets_post_request import V1GlobalPrefixSetsPostRequest -from graphiant_sdk.models.v1_global_prefix_sets_post_response import V1GlobalPrefixSetsPostResponse +from graphiant_sdk.models.v1_global_lan_segments_post_request import V1GlobalLanSegmentsPostRequest +from graphiant_sdk.models.v1_global_lan_segments_post_response import V1GlobalLanSegmentsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21860,14 +21949,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_global_prefix_sets_post_request = graphiant_sdk.V1GlobalPrefixSetsPostRequest() # V1GlobalPrefixSetsPostRequest | + v1_global_lan_segments_post_request = graphiant_sdk.V1GlobalLanSegmentsPostRequest() # V1GlobalLanSegmentsPostRequest | try: - api_response = api_instance.v1_global_prefix_sets_post(authorization, v1_global_prefix_sets_post_request) - print("The response of DefaultApi->v1_global_prefix_sets_post:\n") + api_response = api_instance.v1_global_lan_segments_post(authorization, v1_global_lan_segments_post_request) + print("The response of DefaultApi->v1_global_lan_segments_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_prefix_sets_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_lan_segments_post: %s\n" % e) ``` @@ -21878,11 +21967,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_prefix_sets_post_request** | [**V1GlobalPrefixSetsPostRequest**](V1GlobalPrefixSetsPostRequest.md)| | + **v1_global_lan_segments_post_request** | [**V1GlobalLanSegmentsPostRequest**](V1GlobalLanSegmentsPostRequest.md)| | ### Return type -[**V1GlobalPrefixSetsPostResponse**](V1GlobalPrefixSetsPostResponse.md) +[**V1GlobalLanSegmentsPostResponse**](V1GlobalLanSegmentsPostResponse.md) ### Authorization @@ -21901,10 +21990,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_routing_policies_post** -> V1GlobalRoutingPoliciesPostResponse v1_global_routing_policies_post(authorization, v1_global_routing_policies_post_request) +# **v1_global_lan_segments_vrf_id_devices_get** +> V1GlobalLanSegmentsVrfIdDevicesGetResponse v1_global_lan_segments_vrf_id_devices_get(authorization, vrf_id) -Get configured global routing-policies +Get a list of lan-segment devices under the currently logged in enterprise ### Example @@ -21912,8 +22001,7 @@ Get configured global routing-policies ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_routing_policies_post_request import V1GlobalRoutingPoliciesPostRequest -from graphiant_sdk.models.v1_global_routing_policies_post_response import V1GlobalRoutingPoliciesPostResponse +from graphiant_sdk.models.v1_global_lan_segments_vrf_id_devices_get_response import V1GlobalLanSegmentsVrfIdDevicesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21939,14 +22027,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_global_routing_policies_post_request = graphiant_sdk.V1GlobalRoutingPoliciesPostRequest() # V1GlobalRoutingPoliciesPostRequest | + vrf_id = 1234567891011 # int | try: - api_response = api_instance.v1_global_routing_policies_post(authorization, v1_global_routing_policies_post_request) - print("The response of DefaultApi->v1_global_routing_policies_post:\n") + api_response = api_instance.v1_global_lan_segments_vrf_id_devices_get(authorization, vrf_id) + print("The response of DefaultApi->v1_global_lan_segments_vrf_id_devices_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_routing_policies_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_lan_segments_vrf_id_devices_get: %s\n" % e) ``` @@ -21957,11 +22045,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_routing_policies_post_request** | [**V1GlobalRoutingPoliciesPostRequest**](V1GlobalRoutingPoliciesPostRequest.md)| | + **vrf_id** | **int**| | ### Return type -[**V1GlobalRoutingPoliciesPostResponse**](V1GlobalRoutingPoliciesPostResponse.md) +[**V1GlobalLanSegmentsVrfIdDevicesGetResponse**](V1GlobalLanSegmentsVrfIdDevicesGetResponse.md) ### Authorization @@ -21969,7 +22057,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -21980,10 +22068,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_site_lists_get** -> V1GlobalSiteListsGetResponse v1_global_site_lists_get(authorization) +# **v1_global_ntps_device_get** +> V1GlobalNtpsDeviceGetResponse v1_global_ntps_device_get(authorization, device_id=device_id) -Get a list of site lists under the currently logged in enterprise +Get global ntp objects that failed to attach for a device ### Example @@ -21991,7 +22079,7 @@ Get a list of site lists under the currently logged in enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_site_lists_get_response import V1GlobalSiteListsGetResponse +from graphiant_sdk.models.v1_global_ntps_device_get_response import V1GlobalNtpsDeviceGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22017,13 +22105,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + device_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v1_global_site_lists_get(authorization) - print("The response of DefaultApi->v1_global_site_lists_get:\n") + api_response = api_instance.v1_global_ntps_device_get(authorization, device_id=device_id) + print("The response of DefaultApi->v1_global_ntps_device_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_site_lists_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ntps_device_get: %s\n" % e) ``` @@ -22034,10 +22123,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **device_id** | **int**| | [optional] ### Return type -[**V1GlobalSiteListsGetResponse**](V1GlobalSiteListsGetResponse.md) +[**V1GlobalNtpsDeviceGetResponse**](V1GlobalNtpsDeviceGetResponse.md) ### Authorization @@ -22056,10 +22146,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_site_lists_id_delete** -> v1_global_site_lists_id_delete(authorization, id) +# **v1_global_ntps_post** +> V1GlobalNtpsPostResponse v1_global_ntps_post(authorization, v1_global_ntps_post_request) -Delete a site list +Get configured global ntps ### Example @@ -22067,6 +22157,8 @@ Delete a site list ```python import graphiant_sdk +from graphiant_sdk.models.v1_global_ntps_post_request import V1GlobalNtpsPostRequest +from graphiant_sdk.models.v1_global_ntps_post_response import V1GlobalNtpsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22092,12 +22184,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - id = 1234567891011 # int | + v1_global_ntps_post_request = graphiant_sdk.V1GlobalNtpsPostRequest() # V1GlobalNtpsPostRequest | try: - api_instance.v1_global_site_lists_id_delete(authorization, id) + api_response = api_instance.v1_global_ntps_post(authorization, v1_global_ntps_post_request) + print("The response of DefaultApi->v1_global_ntps_post:\n") + pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_site_lists_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ntps_post: %s\n" % e) ``` @@ -22108,11 +22202,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | + **v1_global_ntps_post_request** | [**V1GlobalNtpsPostRequest**](V1GlobalNtpsPostRequest.md)| | ### Return type -void (empty response body) +[**V1GlobalNtpsPostResponse**](V1GlobalNtpsPostResponse.md) ### Authorization @@ -22120,21 +22214,21 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined + - **Content-Type**: application/json + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | No Content | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_site_lists_id_get** -> V1GlobalSiteListsIdGetResponse v1_global_site_lists_id_get(authorization, id) +# **v1_global_ntps_site_get** +> V1GlobalNtpsSiteGetResponse v1_global_ntps_site_get(authorization, site_id=site_id) -Get a details of a site list +Get configured global ntps ### Example @@ -22142,7 +22236,7 @@ Get a details of a site list ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_site_lists_id_get_response import V1GlobalSiteListsIdGetResponse +from graphiant_sdk.models.v1_global_ntps_site_get_response import V1GlobalNtpsSiteGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22168,14 +22262,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - id = 1234567891011 # int | + site_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v1_global_site_lists_id_get(authorization, id) - print("The response of DefaultApi->v1_global_site_lists_id_get:\n") + api_response = api_instance.v1_global_ntps_site_get(authorization, site_id=site_id) + print("The response of DefaultApi->v1_global_ntps_site_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_site_lists_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ntps_site_get: %s\n" % e) ``` @@ -22186,11 +22280,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | + **site_id** | **int**| | [optional] ### Return type -[**V1GlobalSiteListsIdGetResponse**](V1GlobalSiteListsIdGetResponse.md) +[**V1GlobalNtpsSiteGetResponse**](V1GlobalNtpsSiteGetResponse.md) ### Authorization @@ -22209,10 +22303,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_site_lists_id_put** -> V1GlobalSiteListsIdPutResponse v1_global_site_lists_id_put(authorization, id, v1_global_site_lists_id_put_request) +# **v1_global_prefix_sets_post** +> V1GlobalPrefixSetsPostResponse v1_global_prefix_sets_post(authorization, v1_global_prefix_sets_post_request) -Update a new site list scoped to the enterprise +Get configured global prefix-sets ### Example @@ -22220,8 +22314,8 @@ Update a new site list scoped to the enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_site_lists_id_put_request import V1GlobalSiteListsIdPutRequest -from graphiant_sdk.models.v1_global_site_lists_id_put_response import V1GlobalSiteListsIdPutResponse +from graphiant_sdk.models.v1_global_prefix_sets_post_request import V1GlobalPrefixSetsPostRequest +from graphiant_sdk.models.v1_global_prefix_sets_post_response import V1GlobalPrefixSetsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22247,15 +22341,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - id = 1234567891011 # int | - v1_global_site_lists_id_put_request = graphiant_sdk.V1GlobalSiteListsIdPutRequest() # V1GlobalSiteListsIdPutRequest | + v1_global_prefix_sets_post_request = graphiant_sdk.V1GlobalPrefixSetsPostRequest() # V1GlobalPrefixSetsPostRequest | try: - api_response = api_instance.v1_global_site_lists_id_put(authorization, id, v1_global_site_lists_id_put_request) - print("The response of DefaultApi->v1_global_site_lists_id_put:\n") + api_response = api_instance.v1_global_prefix_sets_post(authorization, v1_global_prefix_sets_post_request) + print("The response of DefaultApi->v1_global_prefix_sets_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_site_lists_id_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_prefix_sets_post: %s\n" % e) ``` @@ -22266,12 +22359,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | - **v1_global_site_lists_id_put_request** | [**V1GlobalSiteListsIdPutRequest**](V1GlobalSiteListsIdPutRequest.md)| | + **v1_global_prefix_sets_post_request** | [**V1GlobalPrefixSetsPostRequest**](V1GlobalPrefixSetsPostRequest.md)| | ### Return type -[**V1GlobalSiteListsIdPutResponse**](V1GlobalSiteListsIdPutResponse.md) +[**V1GlobalPrefixSetsPostResponse**](V1GlobalPrefixSetsPostResponse.md) ### Authorization @@ -22290,10 +22382,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_site_lists_id_sites_get** -> V1GlobalSiteListsIdSitesGetResponse v1_global_site_lists_id_sites_get(authorization, id) +# **v1_global_routing_policies_post** +> V1GlobalRoutingPoliciesPostResponse v1_global_routing_policies_post(authorization, v1_global_routing_policies_post_request) -Get a details of a site list sites +Get configured global routing-policies ### Example @@ -22301,7 +22393,8 @@ Get a details of a site list sites ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_site_lists_id_sites_get_response import V1GlobalSiteListsIdSitesGetResponse +from graphiant_sdk.models.v1_global_routing_policies_post_request import V1GlobalRoutingPoliciesPostRequest +from graphiant_sdk.models.v1_global_routing_policies_post_response import V1GlobalRoutingPoliciesPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22327,14 +22420,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - id = 1234567891011 # int | + v1_global_routing_policies_post_request = graphiant_sdk.V1GlobalRoutingPoliciesPostRequest() # V1GlobalRoutingPoliciesPostRequest | try: - api_response = api_instance.v1_global_site_lists_id_sites_get(authorization, id) - print("The response of DefaultApi->v1_global_site_lists_id_sites_get:\n") + api_response = api_instance.v1_global_routing_policies_post(authorization, v1_global_routing_policies_post_request) + print("The response of DefaultApi->v1_global_routing_policies_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_site_lists_id_sites_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_routing_policies_post: %s\n" % e) ``` @@ -22345,11 +22438,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | + **v1_global_routing_policies_post_request** | [**V1GlobalRoutingPoliciesPostRequest**](V1GlobalRoutingPoliciesPostRequest.md)| | ### Return type -[**V1GlobalSiteListsIdSitesGetResponse**](V1GlobalSiteListsIdSitesGetResponse.md) +[**V1GlobalRoutingPoliciesPostResponse**](V1GlobalRoutingPoliciesPostResponse.md) ### Authorization @@ -22357,7 +22450,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -22368,10 +22461,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_site_lists_post** -> V1GlobalSiteListsPostResponse v1_global_site_lists_post(authorization, v1_global_site_lists_post_request) +# **v1_global_site_lists_get** +> V1GlobalSiteListsGetResponse v1_global_site_lists_get(authorization) -Create a new site list scoped to the enterprise +Get a list of site lists under the currently logged in enterprise ### Example @@ -22379,8 +22472,7 @@ Create a new site list scoped to the enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_site_lists_post_request import V1GlobalSiteListsPostRequest -from graphiant_sdk.models.v1_global_site_lists_post_response import V1GlobalSiteListsPostResponse +from graphiant_sdk.models.v1_global_site_lists_get_response import V1GlobalSiteListsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22406,14 +22498,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_global_site_lists_post_request = graphiant_sdk.V1GlobalSiteListsPostRequest() # V1GlobalSiteListsPostRequest | try: - api_response = api_instance.v1_global_site_lists_post(authorization, v1_global_site_lists_post_request) - print("The response of DefaultApi->v1_global_site_lists_post:\n") + api_response = api_instance.v1_global_site_lists_get(authorization) + print("The response of DefaultApi->v1_global_site_lists_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_site_lists_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_site_lists_get: %s\n" % e) ``` @@ -22424,11 +22515,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_site_lists_post_request** | [**V1GlobalSiteListsPostRequest**](V1GlobalSiteListsPostRequest.md)| | ### Return type -[**V1GlobalSiteListsPostResponse**](V1GlobalSiteListsPostResponse.md) +[**V1GlobalSiteListsGetResponse**](V1GlobalSiteListsGetResponse.md) ### Authorization @@ -22436,7 +22526,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -22447,10 +22537,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_site_status_get** -> V1GlobalSiteStatusGetResponse v1_global_site_status_get(authorization, ipfix_exported_site_id=ipfix_exported_site_id, ntp_site_id=ntp_site_id, prefix_set_site_id=prefix_set_site_id, routing_policy_site_id=routing_policy_site_id, snmp_site_id=snmp_site_id, syslog_server_site_id=syslog_server_site_id, traffic_policy_site_id=traffic_policy_site_id) +# **v1_global_site_lists_id_delete** +> v1_global_site_lists_id_delete(authorization, id) -Get status on global objects attached to a site +Delete a site list ### Example @@ -22458,7 +22548,398 @@ Get status on global objects attached to a site ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_site_status_get_response import V1GlobalSiteStatusGetResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + id = 1234567891011 # int | + + try: + api_instance.v1_global_site_lists_id_delete(authorization, id) + except Exception as e: + print("Exception when calling DefaultApi->v1_global_site_lists_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| | + +### Return type + +void (empty response body) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_global_site_lists_id_get** +> V1GlobalSiteListsIdGetResponse v1_global_site_lists_id_get(authorization, id) + +Get a details of a site list + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_global_site_lists_id_get_response import V1GlobalSiteListsIdGetResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + id = 1234567891011 # int | + + try: + api_response = api_instance.v1_global_site_lists_id_get(authorization, id) + print("The response of DefaultApi->v1_global_site_lists_id_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_global_site_lists_id_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| | + +### Return type + +[**V1GlobalSiteListsIdGetResponse**](V1GlobalSiteListsIdGetResponse.md) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_global_site_lists_id_put** +> V1GlobalSiteListsIdPutResponse v1_global_site_lists_id_put(authorization, id, v1_global_site_lists_id_put_request) + +Update a new site list scoped to the enterprise + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_global_site_lists_id_put_request import V1GlobalSiteListsIdPutRequest +from graphiant_sdk.models.v1_global_site_lists_id_put_response import V1GlobalSiteListsIdPutResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + id = 1234567891011 # int | + v1_global_site_lists_id_put_request = graphiant_sdk.V1GlobalSiteListsIdPutRequest() # V1GlobalSiteListsIdPutRequest | + + try: + api_response = api_instance.v1_global_site_lists_id_put(authorization, id, v1_global_site_lists_id_put_request) + print("The response of DefaultApi->v1_global_site_lists_id_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_global_site_lists_id_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| | + **v1_global_site_lists_id_put_request** | [**V1GlobalSiteListsIdPutRequest**](V1GlobalSiteListsIdPutRequest.md)| | + +### Return type + +[**V1GlobalSiteListsIdPutResponse**](V1GlobalSiteListsIdPutResponse.md) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_global_site_lists_id_sites_get** +> V1GlobalSiteListsIdSitesGetResponse v1_global_site_lists_id_sites_get(authorization, id) + +Get a details of a site list sites + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_global_site_lists_id_sites_get_response import V1GlobalSiteListsIdSitesGetResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + id = 1234567891011 # int | + + try: + api_response = api_instance.v1_global_site_lists_id_sites_get(authorization, id) + print("The response of DefaultApi->v1_global_site_lists_id_sites_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_global_site_lists_id_sites_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| | + +### Return type + +[**V1GlobalSiteListsIdSitesGetResponse**](V1GlobalSiteListsIdSitesGetResponse.md) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_global_site_lists_post** +> V1GlobalSiteListsPostResponse v1_global_site_lists_post(authorization, v1_global_site_lists_post_request) + +Create a new site list scoped to the enterprise + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_global_site_lists_post_request import V1GlobalSiteListsPostRequest +from graphiant_sdk.models.v1_global_site_lists_post_response import V1GlobalSiteListsPostResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + v1_global_site_lists_post_request = graphiant_sdk.V1GlobalSiteListsPostRequest() # V1GlobalSiteListsPostRequest | + + try: + api_response = api_instance.v1_global_site_lists_post(authorization, v1_global_site_lists_post_request) + print("The response of DefaultApi->v1_global_site_lists_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_global_site_lists_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_global_site_lists_post_request** | [**V1GlobalSiteListsPostRequest**](V1GlobalSiteListsPostRequest.md)| | + +### Return type + +[**V1GlobalSiteListsPostResponse**](V1GlobalSiteListsPostResponse.md) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_global_site_status_get** +> V1GlobalSiteStatusGetResponse v1_global_site_status_get(authorization, ipfix_exported_site_id=ipfix_exported_site_id, ntp_site_id=ntp_site_id, prefix_set_site_id=prefix_set_site_id, routing_policy_site_id=routing_policy_site_id, snmp_site_id=snmp_site_id, syslog_server_site_id=syslog_server_site_id, traffic_policy_site_id=traffic_policy_site_id) + +Get status on global objects attached to a site + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_global_site_status_get_response import V1GlobalSiteStatusGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22653,14 +23134,171 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_global_snmps_post_request = graphiant_sdk.V1GlobalSnmpsPostRequest() # V1GlobalSnmpsPostRequest | + v1_global_snmps_post_request = graphiant_sdk.V1GlobalSnmpsPostRequest() # V1GlobalSnmpsPostRequest | + + try: + api_response = api_instance.v1_global_snmps_post(authorization, v1_global_snmps_post_request) + print("The response of DefaultApi->v1_global_snmps_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_global_snmps_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_global_snmps_post_request** | [**V1GlobalSnmpsPostRequest**](V1GlobalSnmpsPostRequest.md)| | + +### Return type + +[**V1GlobalSnmpsPostResponse**](V1GlobalSnmpsPostResponse.md) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_global_snmps_site_get** +> V1GlobalSnmpsSiteGetResponse v1_global_snmps_site_get(authorization, site_id=site_id) + +Get configured global snmps + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_global_snmps_site_get_response import V1GlobalSnmpsSiteGetResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + site_id = 1234567891011 # int | (optional) + + try: + api_response = api_instance.v1_global_snmps_site_get(authorization, site_id=site_id) + print("The response of DefaultApi->v1_global_snmps_site_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_global_snmps_site_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **site_id** | **int**| | [optional] + +### Return type + +[**V1GlobalSnmpsSiteGetResponse**](V1GlobalSnmpsSiteGetResponse.md) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_global_summary_post** +> V1GlobalSummaryPostResponse v1_global_summary_post(authorization, v1_global_summary_post_request) + +Get summary on global objects + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_global_summary_post_request import V1GlobalSummaryPostRequest +from graphiant_sdk.models.v1_global_summary_post_response import V1GlobalSummaryPostResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + v1_global_summary_post_request = graphiant_sdk.V1GlobalSummaryPostRequest() # V1GlobalSummaryPostRequest | try: - api_response = api_instance.v1_global_snmps_post(authorization, v1_global_snmps_post_request) - print("The response of DefaultApi->v1_global_snmps_post:\n") + api_response = api_instance.v1_global_summary_post(authorization, v1_global_summary_post_request) + print("The response of DefaultApi->v1_global_summary_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_snmps_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_summary_post: %s\n" % e) ``` @@ -22671,11 +23309,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_snmps_post_request** | [**V1GlobalSnmpsPostRequest**](V1GlobalSnmpsPostRequest.md)| | + **v1_global_summary_post_request** | [**V1GlobalSummaryPostRequest**](V1GlobalSummaryPostRequest.md)| | ### Return type -[**V1GlobalSnmpsPostResponse**](V1GlobalSnmpsPostResponse.md) +[**V1GlobalSummaryPostResponse**](V1GlobalSummaryPostResponse.md) ### Authorization @@ -22694,10 +23332,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_snmps_site_get** -> V1GlobalSnmpsSiteGetResponse v1_global_snmps_site_get(authorization, site_id=site_id) +# **v1_global_sync_post** +> object v1_global_sync_post(authorization, v1_global_sync_post_request) -Get configured global snmps +Tries synching device with the global objects ### Example @@ -22705,7 +23343,7 @@ Get configured global snmps ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_snmps_site_get_response import V1GlobalSnmpsSiteGetResponse +from graphiant_sdk.models.v1_global_sync_post_request import V1GlobalSyncPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22731,14 +23369,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - site_id = 1234567891011 # int | (optional) + v1_global_sync_post_request = graphiant_sdk.V1GlobalSyncPostRequest() # V1GlobalSyncPostRequest | try: - api_response = api_instance.v1_global_snmps_site_get(authorization, site_id=site_id) - print("The response of DefaultApi->v1_global_snmps_site_get:\n") + api_response = api_instance.v1_global_sync_post(authorization, v1_global_sync_post_request) + print("The response of DefaultApi->v1_global_sync_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_snmps_site_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_sync_post: %s\n" % e) ``` @@ -22749,11 +23387,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **site_id** | **int**| | [optional] + **v1_global_sync_post_request** | [**V1GlobalSyncPostRequest**](V1GlobalSyncPostRequest.md)| | ### Return type -[**V1GlobalSnmpsSiteGetResponse**](V1GlobalSnmpsSiteGetResponse.md) +**object** ### Authorization @@ -22761,7 +23399,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -22772,10 +23410,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_summary_post** -> V1GlobalSummaryPostResponse v1_global_summary_post(authorization, v1_global_summary_post_request) +# **v1_global_syslogs_device_get** +> V1GlobalSyslogsDeviceGetResponse v1_global_syslogs_device_get(authorization, device_id=device_id) -Get summary on global objects +Get global syslog objects that failed to attach for a device ### Example @@ -22783,8 +23421,7 @@ Get summary on global objects ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_summary_post_request import V1GlobalSummaryPostRequest -from graphiant_sdk.models.v1_global_summary_post_response import V1GlobalSummaryPostResponse +from graphiant_sdk.models.v1_global_syslogs_device_get_response import V1GlobalSyslogsDeviceGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22810,14 +23447,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_global_summary_post_request = graphiant_sdk.V1GlobalSummaryPostRequest() # V1GlobalSummaryPostRequest | + device_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v1_global_summary_post(authorization, v1_global_summary_post_request) - print("The response of DefaultApi->v1_global_summary_post:\n") + api_response = api_instance.v1_global_syslogs_device_get(authorization, device_id=device_id) + print("The response of DefaultApi->v1_global_syslogs_device_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_summary_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_syslogs_device_get: %s\n" % e) ``` @@ -22828,11 +23465,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_summary_post_request** | [**V1GlobalSummaryPostRequest**](V1GlobalSummaryPostRequest.md)| | + **device_id** | **int**| | [optional] ### Return type -[**V1GlobalSummaryPostResponse**](V1GlobalSummaryPostResponse.md) +[**V1GlobalSyslogsDeviceGetResponse**](V1GlobalSyslogsDeviceGetResponse.md) ### Authorization @@ -22840,7 +23477,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -22851,10 +23488,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_sync_post** -> object v1_global_sync_post(authorization, v1_global_sync_post_request) +# **v1_global_syslogs_post** +> V1GlobalSyslogsPostResponse v1_global_syslogs_post(authorization, v1_global_syslogs_post_request) -Tries synching device with the global objects +Get configured global syslog collectors ### Example @@ -22862,7 +23499,8 @@ Tries synching device with the global objects ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_sync_post_request import V1GlobalSyncPostRequest +from graphiant_sdk.models.v1_global_syslogs_post_request import V1GlobalSyslogsPostRequest +from graphiant_sdk.models.v1_global_syslogs_post_response import V1GlobalSyslogsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22888,14 +23526,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_global_sync_post_request = graphiant_sdk.V1GlobalSyncPostRequest() # V1GlobalSyncPostRequest | + v1_global_syslogs_post_request = graphiant_sdk.V1GlobalSyslogsPostRequest() # V1GlobalSyslogsPostRequest | try: - api_response = api_instance.v1_global_sync_post(authorization, v1_global_sync_post_request) - print("The response of DefaultApi->v1_global_sync_post:\n") + api_response = api_instance.v1_global_syslogs_post(authorization, v1_global_syslogs_post_request) + print("The response of DefaultApi->v1_global_syslogs_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_sync_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_syslogs_post: %s\n" % e) ``` @@ -22906,11 +23544,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_sync_post_request** | [**V1GlobalSyncPostRequest**](V1GlobalSyncPostRequest.md)| | + **v1_global_syslogs_post_request** | [**V1GlobalSyslogsPostRequest**](V1GlobalSyslogsPostRequest.md)| | ### Return type -**object** +[**V1GlobalSyslogsPostResponse**](V1GlobalSyslogsPostResponse.md) ### Authorization @@ -22929,10 +23567,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_syslogs_device_get** -> V1GlobalSyslogsDeviceGetResponse v1_global_syslogs_device_get(authorization, device_id=device_id) +# **v1_global_syslogs_site_get** +> V1GlobalSyslogsSiteGetResponse v1_global_syslogs_site_get(authorization, site_id=site_id) -Get global syslog objects that failed to attach for a device +Get configured global syslog collectors ### Example @@ -22940,7 +23578,7 @@ Get global syslog objects that failed to attach for a device ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_syslogs_device_get_response import V1GlobalSyslogsDeviceGetResponse +from graphiant_sdk.models.v1_global_syslogs_site_get_response import V1GlobalSyslogsSiteGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22966,14 +23604,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - device_id = 1234567891011 # int | (optional) + site_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v1_global_syslogs_device_get(authorization, device_id=device_id) - print("The response of DefaultApi->v1_global_syslogs_device_get:\n") + api_response = api_instance.v1_global_syslogs_site_get(authorization, site_id=site_id) + print("The response of DefaultApi->v1_global_syslogs_site_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_syslogs_device_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_syslogs_site_get: %s\n" % e) ``` @@ -22984,11 +23622,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **device_id** | **int**| | [optional] + **site_id** | **int**| | [optional] ### Return type -[**V1GlobalSyslogsDeviceGetResponse**](V1GlobalSyslogsDeviceGetResponse.md) +[**V1GlobalSyslogsSiteGetResponse**](V1GlobalSyslogsSiteGetResponse.md) ### Authorization @@ -23007,10 +23645,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_syslogs_post** -> V1GlobalSyslogsPostResponse v1_global_syslogs_post(authorization, v1_global_syslogs_post_request) +# **v1_global_traffic_policies_post** +> V1GlobalTrafficPoliciesPostResponse v1_global_traffic_policies_post(authorization, v1_global_traffic_policies_post_request) -Get configured global syslog collectors +Get configured global traffic-policies ### Example @@ -23018,8 +23656,8 @@ Get configured global syslog collectors ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_syslogs_post_request import V1GlobalSyslogsPostRequest -from graphiant_sdk.models.v1_global_syslogs_post_response import V1GlobalSyslogsPostResponse +from graphiant_sdk.models.v1_global_traffic_policies_post_request import V1GlobalTrafficPoliciesPostRequest +from graphiant_sdk.models.v1_global_traffic_policies_post_response import V1GlobalTrafficPoliciesPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23045,14 +23683,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_global_syslogs_post_request = graphiant_sdk.V1GlobalSyslogsPostRequest() # V1GlobalSyslogsPostRequest | + v1_global_traffic_policies_post_request = graphiant_sdk.V1GlobalTrafficPoliciesPostRequest() # V1GlobalTrafficPoliciesPostRequest | try: - api_response = api_instance.v1_global_syslogs_post(authorization, v1_global_syslogs_post_request) - print("The response of DefaultApi->v1_global_syslogs_post:\n") + api_response = api_instance.v1_global_traffic_policies_post(authorization, v1_global_traffic_policies_post_request) + print("The response of DefaultApi->v1_global_traffic_policies_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_syslogs_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_traffic_policies_post: %s\n" % e) ``` @@ -23063,11 +23701,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_syslogs_post_request** | [**V1GlobalSyslogsPostRequest**](V1GlobalSyslogsPostRequest.md)| | + **v1_global_traffic_policies_post_request** | [**V1GlobalTrafficPoliciesPostRequest**](V1GlobalTrafficPoliciesPostRequest.md)| | ### Return type -[**V1GlobalSyslogsPostResponse**](V1GlobalSyslogsPostResponse.md) +[**V1GlobalTrafficPoliciesPostResponse**](V1GlobalTrafficPoliciesPostResponse.md) ### Authorization @@ -23086,10 +23724,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_syslogs_site_get** -> V1GlobalSyslogsSiteGetResponse v1_global_syslogs_site_get(authorization, site_id=site_id) +# **v1_groups_enterprises_get** +> V1GroupsEnterprisesGetResponse v1_groups_enterprises_get(authorization) -Get configured global syslog collectors +Get all enterprise-level groups. ### Example @@ -23097,7 +23735,7 @@ Get configured global syslog collectors ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_syslogs_site_get_response import V1GlobalSyslogsSiteGetResponse +from graphiant_sdk.models.v1_groups_enterprises_get_response import V1GroupsEnterprisesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23123,14 +23761,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - site_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v1_global_syslogs_site_get(authorization, site_id=site_id) - print("The response of DefaultApi->v1_global_syslogs_site_get:\n") + api_response = api_instance.v1_groups_enterprises_get(authorization) + print("The response of DefaultApi->v1_groups_enterprises_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_syslogs_site_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_enterprises_get: %s\n" % e) ``` @@ -23141,11 +23778,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **site_id** | **int**| | [optional] ### Return type -[**V1GlobalSyslogsSiteGetResponse**](V1GlobalSyslogsSiteGetResponse.md) +[**V1GroupsEnterprisesGetResponse**](V1GroupsEnterprisesGetResponse.md) ### Authorization @@ -23164,10 +23800,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_global_traffic_policies_post** -> V1GlobalTrafficPoliciesPostResponse v1_global_traffic_policies_post(authorization, v1_global_traffic_policies_post_request) +# **v1_groups_get** +> V1GroupsGetResponse v1_groups_get(authorization) -Get configured global traffic-policies +Get all groups in the enterprise. ### Example @@ -23175,8 +23811,7 @@ Get configured global traffic-policies ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_traffic_policies_post_request import V1GlobalTrafficPoliciesPostRequest -from graphiant_sdk.models.v1_global_traffic_policies_post_response import V1GlobalTrafficPoliciesPostResponse +from graphiant_sdk.models.v1_groups_get_response import V1GroupsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23202,14 +23837,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_global_traffic_policies_post_request = graphiant_sdk.V1GlobalTrafficPoliciesPostRequest() # V1GlobalTrafficPoliciesPostRequest | try: - api_response = api_instance.v1_global_traffic_policies_post(authorization, v1_global_traffic_policies_post_request) - print("The response of DefaultApi->v1_global_traffic_policies_post:\n") + api_response = api_instance.v1_groups_get(authorization) + print("The response of DefaultApi->v1_groups_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_traffic_policies_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_get: %s\n" % e) ``` @@ -23220,11 +23854,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_traffic_policies_post_request** | [**V1GlobalTrafficPoliciesPostRequest**](V1GlobalTrafficPoliciesPostRequest.md)| | ### Return type -[**V1GlobalTrafficPoliciesPostResponse**](V1GlobalTrafficPoliciesPostResponse.md) +[**V1GroupsGetResponse**](V1GroupsGetResponse.md) ### Authorization @@ -23232,7 +23865,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -23243,10 +23876,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_enterprises_get** -> V1GroupsEnterprisesGetResponse v1_groups_enterprises_get(authorization) +# **v1_groups_id_delete** +> v1_groups_id_delete(authorization, id) -Get all enterprise-level groups. +Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. ### Example @@ -23254,7 +23887,6 @@ Get all enterprise-level groups. ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_enterprises_get_response import V1GroupsEnterprisesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23280,13 +23912,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + id = 'example string' # str | try: - api_response = api_instance.v1_groups_enterprises_get(authorization) - print("The response of DefaultApi->v1_groups_enterprises_get:\n") - pprint(api_response) + api_instance.v1_groups_id_delete(authorization, id) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_enterprises_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_delete: %s\n" % e) ``` @@ -23297,10 +23928,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **str**| | ### Return type -[**V1GroupsEnterprisesGetResponse**](V1GroupsEnterprisesGetResponse.md) +void (empty response body) ### Authorization @@ -23309,20 +23941,20 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**204** | No Content | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_get** -> V1GroupsGetResponse v1_groups_get(authorization) +# **v1_groups_id_enterprises_enterprise_id_delete** +> v1_groups_id_enterprises_enterprise_id_delete(authorization, enterprise_id, id) -Get all groups in the enterprise. +Remove group's association with a specific enterprise, revoking cross-enterprise access. ### Example @@ -23330,7 +23962,6 @@ Get all groups in the enterprise. ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_get_response import V1GroupsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23356,13 +23987,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + enterprise_id = 1234567891011 # int | + id = 'example string' # str | try: - api_response = api_instance.v1_groups_get(authorization) - print("The response of DefaultApi->v1_groups_get:\n") - pprint(api_response) + api_instance.v1_groups_id_enterprises_enterprise_id_delete(authorization, enterprise_id, id) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_enterprises_enterprise_id_delete: %s\n" % e) ``` @@ -23373,10 +24004,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **enterprise_id** | **int**| | + **id** | **str**| | ### Return type -[**V1GroupsGetResponse**](V1GroupsGetResponse.md) +void (empty response body) ### Authorization @@ -23385,20 +24018,20 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**204** | No Content | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_id_delete** -> v1_groups_id_delete(authorization, id) +# **v1_groups_id_enterprises_post** +> v1_groups_id_enterprises_post(authorization, id, v1_groups_id_enterprises_post_request) -Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. +Associate group with additional enterprises to enable cross-enterprise access and management. ### Example @@ -23406,6 +24039,7 @@ Delete a group and remove all member associations and enterprise relationships. ```python import graphiant_sdk +from graphiant_sdk.models.v1_groups_id_enterprises_post_request import V1GroupsIdEnterprisesPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23432,11 +24066,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer id = 'example string' # str | + v1_groups_id_enterprises_post_request = graphiant_sdk.V1GroupsIdEnterprisesPostRequest() # V1GroupsIdEnterprisesPostRequest | try: - api_instance.v1_groups_id_delete(authorization, id) + api_instance.v1_groups_id_enterprises_post(authorization, id, v1_groups_id_enterprises_post_request) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_enterprises_post: %s\n" % e) ``` @@ -23448,6 +24083,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | **id** | **str**| | + **v1_groups_id_enterprises_post_request** | [**V1GroupsIdEnterprisesPostRequest**](V1GroupsIdEnterprisesPostRequest.md)| | ### Return type @@ -23459,7 +24095,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: Not defined ### HTTP response details @@ -23470,10 +24106,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_id_enterprises_enterprise_id_delete** -> v1_groups_id_enterprises_enterprise_id_delete(authorization, enterprise_id, id) +# **v1_groups_id_members_delete_post** +> v1_groups_id_members_delete_post(authorization, id, v1_groups_id_members_delete_post_request) -Remove group's association with a specific enterprise, revoking cross-enterprise access. +Remove multiple users from a group by their member IDs. ### Example @@ -23481,6 +24117,7 @@ Remove group's association with a specific enterprise, revoking cross-enterprise ```python import graphiant_sdk +from graphiant_sdk.models.v1_groups_id_members_delete_post_request import V1GroupsIdMembersDeletePostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23506,13 +24143,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - enterprise_id = 1234567891011 # int | id = 'example string' # str | + v1_groups_id_members_delete_post_request = graphiant_sdk.V1GroupsIdMembersDeletePostRequest() # V1GroupsIdMembersDeletePostRequest | try: - api_instance.v1_groups_id_enterprises_enterprise_id_delete(authorization, enterprise_id, id) + api_instance.v1_groups_id_members_delete_post(authorization, id, v1_groups_id_members_delete_post_request) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_id_enterprises_enterprise_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_members_delete_post: %s\n" % e) ``` @@ -23523,8 +24160,8 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **enterprise_id** | **int**| | **id** | **str**| | + **v1_groups_id_members_delete_post_request** | [**V1GroupsIdMembersDeletePostRequest**](V1GroupsIdMembersDeletePostRequest.md)| | ### Return type @@ -23536,7 +24173,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: Not defined ### HTTP response details @@ -23547,10 +24184,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_id_enterprises_post** -> v1_groups_id_enterprises_post(authorization, id, v1_groups_id_enterprises_post_request) +# **v1_groups_id_members_get** +> V1GroupsIdMembersGetResponse v1_groups_id_members_get(authorization, id) -Associate group with additional enterprises to enable cross-enterprise access and management. +Get all members of a specific group. ### Example @@ -23558,7 +24195,7 @@ Associate group with additional enterprises to enable cross-enterprise access an ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_id_enterprises_post_request import V1GroupsIdEnterprisesPostRequest +from graphiant_sdk.models.v1_groups_id_members_get_response import V1GroupsIdMembersGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23585,12 +24222,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer id = 'example string' # str | - v1_groups_id_enterprises_post_request = graphiant_sdk.V1GroupsIdEnterprisesPostRequest() # V1GroupsIdEnterprisesPostRequest | try: - api_instance.v1_groups_id_enterprises_post(authorization, id, v1_groups_id_enterprises_post_request) + api_response = api_instance.v1_groups_id_members_get(authorization, id) + print("The response of DefaultApi->v1_groups_id_members_get:\n") + pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_id_enterprises_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_members_get: %s\n" % e) ``` @@ -23602,11 +24240,10 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | **id** | **str**| | - **v1_groups_id_enterprises_post_request** | [**V1GroupsIdEnterprisesPostRequest**](V1GroupsIdEnterprisesPostRequest.md)| | ### Return type -void (empty response body) +[**V1GroupsIdMembersGetResponse**](V1GroupsIdMembersGetResponse.md) ### Authorization @@ -23614,21 +24251,21 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined + - **Content-Type**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | No Content | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_id_members_delete_post** -> v1_groups_id_members_delete_post(authorization, id, v1_groups_id_members_delete_post_request) +# **v1_groups_id_members_member_id_delete** +> v1_groups_id_members_member_id_delete(authorization, id, member_id) -Remove multiple users from a group by their member IDs. +Remove a specific user from a group by member ID. ### Example @@ -23636,7 +24273,6 @@ Remove multiple users from a group by their member IDs. ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_id_members_delete_post_request import V1GroupsIdMembersDeletePostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23663,12 +24299,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer id = 'example string' # str | - v1_groups_id_members_delete_post_request = graphiant_sdk.V1GroupsIdMembersDeletePostRequest() # V1GroupsIdMembersDeletePostRequest | + member_id = 'example string' # str | try: - api_instance.v1_groups_id_members_delete_post(authorization, id, v1_groups_id_members_delete_post_request) + api_instance.v1_groups_id_members_member_id_delete(authorization, id, member_id) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_id_members_delete_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_members_member_id_delete: %s\n" % e) ``` @@ -23680,7 +24316,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | **id** | **str**| | - **v1_groups_id_members_delete_post_request** | [**V1GroupsIdMembersDeletePostRequest**](V1GroupsIdMembersDeletePostRequest.md)| | + **member_id** | **str**| | ### Return type @@ -23692,7 +24328,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: Not defined ### HTTP response details @@ -23703,10 +24339,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_id_members_get** -> V1GroupsIdMembersGetResponse v1_groups_id_members_get(authorization, id) +# **v1_groups_id_members_post** +> v1_groups_id_members_post(authorization, id, v1_groups_id_members_post_request) -Get all members of a specific group. +Add multiple users to a group by their global IDs. ### Example @@ -23714,7 +24350,7 @@ Get all members of a specific group. ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_id_members_get_response import V1GroupsIdMembersGetResponse +from graphiant_sdk.models.v1_groups_id_members_post_request import V1GroupsIdMembersPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23741,13 +24377,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer id = 'example string' # str | + v1_groups_id_members_post_request = graphiant_sdk.V1GroupsIdMembersPostRequest() # V1GroupsIdMembersPostRequest | try: - api_response = api_instance.v1_groups_id_members_get(authorization, id) - print("The response of DefaultApi->v1_groups_id_members_get:\n") - pprint(api_response) + api_instance.v1_groups_id_members_post(authorization, id, v1_groups_id_members_post_request) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_id_members_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_members_post: %s\n" % e) ``` @@ -23759,10 +24394,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | **id** | **str**| | + **v1_groups_id_members_post_request** | [**V1GroupsIdMembersPostRequest**](V1GroupsIdMembersPostRequest.md)| | ### Return type -[**V1GroupsIdMembersGetResponse**](V1GroupsIdMembersGetResponse.md) +void (empty response body) ### Authorization @@ -23770,21 +24406,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json + - **Content-Type**: application/json + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**204** | No Content | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_id_members_member_id_delete** -> v1_groups_id_members_member_id_delete(authorization, id, member_id) +# **v1_groups_id_patch** +> v1_groups_id_patch(authorization, id, v1_groups_id_patch_request) -Remove a specific user from a group by member ID. +Update group information. ### Example @@ -23792,6 +24428,7 @@ Remove a specific user from a group by member ID. ```python import graphiant_sdk +from graphiant_sdk.models.v1_groups_id_patch_request import V1GroupsIdPatchRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23818,12 +24455,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer id = 'example string' # str | - member_id = 'example string' # str | + v1_groups_id_patch_request = graphiant_sdk.V1GroupsIdPatchRequest() # V1GroupsIdPatchRequest | try: - api_instance.v1_groups_id_members_member_id_delete(authorization, id, member_id) + api_instance.v1_groups_id_patch(authorization, id, v1_groups_id_patch_request) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_id_members_member_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_patch: %s\n" % e) ``` @@ -23835,7 +24472,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | **id** | **str**| | - **member_id** | **str**| | + **v1_groups_id_patch_request** | [**V1GroupsIdPatchRequest**](V1GroupsIdPatchRequest.md)| | ### Return type @@ -23847,7 +24484,7 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: Not defined ### HTTP response details @@ -23858,10 +24495,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_id_members_post** -> v1_groups_id_members_post(authorization, id, v1_groups_id_members_post_request) +# **v1_groups_put** +> v1_groups_put(authorization, v1_groups_put_request) -Add multiple users to a group by their global IDs. +Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). ### Example @@ -23869,7 +24506,7 @@ Add multiple users to a group by their global IDs. ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_id_members_post_request import V1GroupsIdMembersPostRequest +from graphiant_sdk.models.v1_groups_put_request import V1GroupsPutRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23895,13 +24532,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - id = 'example string' # str | - v1_groups_id_members_post_request = graphiant_sdk.V1GroupsIdMembersPostRequest() # V1GroupsIdMembersPostRequest | + v1_groups_put_request = graphiant_sdk.V1GroupsPutRequest() # V1GroupsPutRequest | try: - api_instance.v1_groups_id_members_post(authorization, id, v1_groups_id_members_post_request) + api_instance.v1_groups_put(authorization, v1_groups_put_request) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_id_members_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_put: %s\n" % e) ``` @@ -23912,8 +24548,7 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| | - **v1_groups_id_members_post_request** | [**V1GroupsIdMembersPostRequest**](V1GroupsIdMembersPostRequest.md)| | + **v1_groups_put_request** | [**V1GroupsPutRequest**](V1GroupsPutRequest.md)| | ### Return type @@ -23936,10 +24571,10 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_id_patch** -> v1_groups_id_patch(authorization, id, v1_groups_id_patch_request) +# **v1_groups_root_get** +> V1GroupsRootGetResponse v1_groups_root_get(authorization) -Update group information. +Get all root-level groups. ### Example @@ -23947,7 +24582,7 @@ Update group information. ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_id_patch_request import V1GroupsIdPatchRequest +from graphiant_sdk.models.v1_groups_root_get_response import V1GroupsRootGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23973,13 +24608,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - id = 'example string' # str | - v1_groups_id_patch_request = graphiant_sdk.V1GroupsIdPatchRequest() # V1GroupsIdPatchRequest | try: - api_instance.v1_groups_id_patch(authorization, id, v1_groups_id_patch_request) + api_response = api_instance.v1_groups_root_get(authorization) + print("The response of DefaultApi->v1_groups_root_get:\n") + pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_root_get: %s\n" % e) ``` @@ -23990,12 +24625,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| | - **v1_groups_id_patch_request** | [**V1GroupsIdPatchRequest**](V1GroupsIdPatchRequest.md)| | ### Return type -void (empty response body) +[**V1GroupsRootGetResponse**](V1GroupsRootGetResponse.md) ### Authorization @@ -24003,21 +24636,21 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined + - **Content-Type**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | No Content | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_put** -> v1_groups_put(authorization, v1_groups_put_request) +# **v1_invitation_email_post** +> object v1_invitation_email_post(authorization, v1_invitation_email_post_request) -Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). +Send invitation emails for B2B data exchange service connections. For non-Graphiant enterprises, sends invite to all admin users in the proxy tenant desiganted by your msp. For Graphiant, sends to specified admin email. ### Example @@ -24025,7 +24658,7 @@ Create a new group with and set permissions. Set group's enterprise management c ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_put_request import V1GroupsPutRequest +from graphiant_sdk.models.v1_invitation_email_post_request import V1InvitationEmailPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24051,12 +24684,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_groups_put_request = graphiant_sdk.V1GroupsPutRequest() # V1GroupsPutRequest | + v1_invitation_email_post_request = graphiant_sdk.V1InvitationEmailPostRequest() # V1InvitationEmailPostRequest | try: - api_instance.v1_groups_put(authorization, v1_groups_put_request) + api_response = api_instance.v1_invitation_email_post(authorization, v1_invitation_email_post_request) + print("The response of DefaultApi->v1_invitation_email_post:\n") + pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_invitation_email_post: %s\n" % e) ``` @@ -24067,11 +24702,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_groups_put_request** | [**V1GroupsPutRequest**](V1GroupsPutRequest.md)| | + **v1_invitation_email_post_request** | [**V1InvitationEmailPostRequest**](V1InvitationEmailPostRequest.md)| | ### Return type -void (empty response body) +**object** ### Authorization @@ -24080,20 +24715,20 @@ void (empty response body) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | No Content | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_groups_root_get** -> V1GroupsRootGetResponse v1_groups_root_get(authorization) +# **v1_lan_segments_get** +> V1LanSegmentsGetResponse v1_lan_segments_get(authorization) -Get all root-level groups. +Get LAN Segments for the current enterprise ### Example @@ -24101,7 +24736,7 @@ Get all root-level groups. ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_root_get_response import V1GroupsRootGetResponse +from graphiant_sdk.models.v1_lan_segments_get_response import V1LanSegmentsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24129,11 +24764,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_response = api_instance.v1_groups_root_get(authorization) - print("The response of DefaultApi->v1_groups_root_get:\n") + api_response = api_instance.v1_lan_segments_get(authorization) + print("The response of DefaultApi->v1_lan_segments_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_root_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_lan_segments_get: %s\n" % e) ``` @@ -24147,7 +24782,7 @@ Name | Type | Description | Notes ### Return type -[**V1GroupsRootGetResponse**](V1GroupsRootGetResponse.md) +[**V1LanSegmentsGetResponse**](V1LanSegmentsGetResponse.md) ### Authorization @@ -24166,10 +24801,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_invitation_email_post** -> object v1_invitation_email_post(authorization, v1_invitation_email_post_request) +# **v1_lldp_interface_id_neighbors_get** +> V1LldpInterfaceIdNeighborsGetResponse v1_lldp_interface_id_neighbors_get(authorization, interface_id) -Send invitation emails for B2B data exchange service connections. For non-Graphiant enterprises, sends invite to all admin users in the proxy tenant desiganted by your msp. For Graphiant, sends to specified admin email. +Get the LLDP neighbors for an interface and optionally for a specific vendor ### Example @@ -24177,7 +24812,7 @@ Send invitation emails for B2B data exchange service connections. For non-Graphi ```python import graphiant_sdk -from graphiant_sdk.models.v1_invitation_email_post_request import V1InvitationEmailPostRequest +from graphiant_sdk.models.v1_lldp_interface_id_neighbors_get_response import V1LldpInterfaceIdNeighborsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24203,14 +24838,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_invitation_email_post_request = graphiant_sdk.V1InvitationEmailPostRequest() # V1InvitationEmailPostRequest | + interface_id = 1234567891011 # int | try: - api_response = api_instance.v1_invitation_email_post(authorization, v1_invitation_email_post_request) - print("The response of DefaultApi->v1_invitation_email_post:\n") + api_response = api_instance.v1_lldp_interface_id_neighbors_get(authorization, interface_id) + print("The response of DefaultApi->v1_lldp_interface_id_neighbors_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_invitation_email_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_lldp_interface_id_neighbors_get: %s\n" % e) ``` @@ -24221,11 +24856,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_invitation_email_post_request** | [**V1InvitationEmailPostRequest**](V1InvitationEmailPostRequest.md)| | + **interface_id** | **int**| | ### Return type -**object** +[**V1LldpInterfaceIdNeighborsGetResponse**](V1LldpInterfaceIdNeighborsGetResponse.md) ### Authorization @@ -24233,7 +24868,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -24244,10 +24879,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_lan_segments_get** -> V1LanSegmentsGetResponse v1_lan_segments_get(authorization) +# **v1_lldp_interface_id_summary_get** +> V1LldpInterfaceIdSummaryGetResponse v1_lldp_interface_id_summary_get(authorization, interface_id) -Get LAN Segments for the current enterprise +Get the summary of LLDP neighbors for an interface ### Example @@ -24255,7 +24890,7 @@ Get LAN Segments for the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_lan_segments_get_response import V1LanSegmentsGetResponse +from graphiant_sdk.models.v1_lldp_interface_id_summary_get_response import V1LldpInterfaceIdSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24281,13 +24916,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + interface_id = 1234567891011 # int | try: - api_response = api_instance.v1_lan_segments_get(authorization) - print("The response of DefaultApi->v1_lan_segments_get:\n") + api_response = api_instance.v1_lldp_interface_id_summary_get(authorization, interface_id) + print("The response of DefaultApi->v1_lldp_interface_id_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_lan_segments_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_lldp_interface_id_summary_get: %s\n" % e) ``` @@ -24298,10 +24934,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **interface_id** | **int**| | ### Return type -[**V1LanSegmentsGetResponse**](V1LanSegmentsGetResponse.md) +[**V1LldpInterfaceIdSummaryGetResponse**](V1LldpInterfaceIdSummaryGetResponse.md) ### Authorization @@ -24320,10 +24957,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_lldp_interface_id_neighbors_get** -> V1LldpInterfaceIdNeighborsGetResponse v1_lldp_interface_id_neighbors_get(authorization, interface_id) +# **v1_lldp_interface_id_vendors_get** +> V1LldpInterfaceIdVendorsGetResponse v1_lldp_interface_id_vendors_get(authorization, interface_id) -Get the LLDP neighbors for an interface and optionally for a specific vendor +Get the list LLDP vendors for an interface ### Example @@ -24331,7 +24968,84 @@ Get the LLDP neighbors for an interface and optionally for a specific vendor ```python import graphiant_sdk -from graphiant_sdk.models.v1_lldp_interface_id_neighbors_get_response import V1LldpInterfaceIdNeighborsGetResponse +from graphiant_sdk.models.v1_lldp_interface_id_vendors_get_response import V1LldpInterfaceIdVendorsGetResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + interface_id = 1234567891011 # int | + + try: + api_response = api_instance.v1_lldp_interface_id_vendors_get(authorization, interface_id) + print("The response of DefaultApi->v1_lldp_interface_id_vendors_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_lldp_interface_id_vendors_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **interface_id** | **int**| | + +### Return type + +[**V1LldpInterfaceIdVendorsGetResponse**](V1LldpInterfaceIdVendorsGetResponse.md) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_logs_post** +> V1LogsPostResponse v1_logs_post(authorization, v1_logs_post_request) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_logs_post_request import V1LogsPostRequest +from graphiant_sdk.models.v1_logs_post_response import V1LogsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24357,14 +25071,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - interface_id = 1234567891011 # int | + v1_logs_post_request = graphiant_sdk.V1LogsPostRequest() # V1LogsPostRequest | try: - api_response = api_instance.v1_lldp_interface_id_neighbors_get(authorization, interface_id) - print("The response of DefaultApi->v1_lldp_interface_id_neighbors_get:\n") + api_response = api_instance.v1_logs_post(authorization, v1_logs_post_request) + print("The response of DefaultApi->v1_logs_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_lldp_interface_id_neighbors_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_logs_post: %s\n" % e) ``` @@ -24375,11 +25089,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **interface_id** | **int**| | + **v1_logs_post_request** | [**V1LogsPostRequest**](V1LogsPostRequest.md)| | ### Return type -[**V1LldpInterfaceIdNeighborsGetResponse**](V1LldpInterfaceIdNeighborsGetResponse.md) +[**V1LogsPostResponse**](V1LogsPostResponse.md) ### Authorization @@ -24387,7 +25101,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -24398,10 +25112,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_lldp_interface_id_summary_get** -> V1LldpInterfaceIdSummaryGetResponse v1_lldp_interface_id_summary_get(authorization, interface_id) +# **v1_nat_entries_device_id_get** +> V1NatEntriesDeviceIdGetResponse v1_nat_entries_device_id_get(authorization, device_id) -Get the summary of LLDP neighbors for an interface +Get the NAT entries for the device ### Example @@ -24409,7 +25123,7 @@ Get the summary of LLDP neighbors for an interface ```python import graphiant_sdk -from graphiant_sdk.models.v1_lldp_interface_id_summary_get_response import V1LldpInterfaceIdSummaryGetResponse +from graphiant_sdk.models.v1_nat_entries_device_id_get_response import V1NatEntriesDeviceIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24435,14 +25149,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - interface_id = 1234567891011 # int | + device_id = 1234567891011 # int | try: - api_response = api_instance.v1_lldp_interface_id_summary_get(authorization, interface_id) - print("The response of DefaultApi->v1_lldp_interface_id_summary_get:\n") + api_response = api_instance.v1_nat_entries_device_id_get(authorization, device_id) + print("The response of DefaultApi->v1_nat_entries_device_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_lldp_interface_id_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_nat_entries_device_id_get: %s\n" % e) ``` @@ -24453,11 +25167,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **interface_id** | **int**| | + **device_id** | **int**| | ### Return type -[**V1LldpInterfaceIdSummaryGetResponse**](V1LldpInterfaceIdSummaryGetResponse.md) +[**V1NatEntriesDeviceIdGetResponse**](V1NatEntriesDeviceIdGetResponse.md) ### Authorization @@ -24476,10 +25190,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_lldp_interface_id_vendors_get** -> V1LldpInterfaceIdVendorsGetResponse v1_lldp_interface_id_vendors_get(authorization, interface_id) +# **v1_nat_utilization_device_id_get** +> V1NatUtilizationDeviceIdGetResponse v1_nat_utilization_device_id_get(authorization, device_id) -Get the list LLDP vendors for an interface +Get the NAT usage for the device ### Example @@ -24487,7 +25201,7 @@ Get the list LLDP vendors for an interface ```python import graphiant_sdk -from graphiant_sdk.models.v1_lldp_interface_id_vendors_get_response import V1LldpInterfaceIdVendorsGetResponse +from graphiant_sdk.models.v1_nat_utilization_device_id_get_response import V1NatUtilizationDeviceIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24513,14 +25227,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - interface_id = 1234567891011 # int | + device_id = 1234567891011 # int | try: - api_response = api_instance.v1_lldp_interface_id_vendors_get(authorization, interface_id) - print("The response of DefaultApi->v1_lldp_interface_id_vendors_get:\n") + api_response = api_instance.v1_nat_utilization_device_id_get(authorization, device_id) + print("The response of DefaultApi->v1_nat_utilization_device_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_lldp_interface_id_vendors_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_nat_utilization_device_id_get: %s\n" % e) ``` @@ -24531,11 +25245,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **interface_id** | **int**| | + **device_id** | **int**| | ### Return type -[**V1LldpInterfaceIdVendorsGetResponse**](V1LldpInterfaceIdVendorsGetResponse.md) +[**V1NatUtilizationDeviceIdGetResponse**](V1NatUtilizationDeviceIdGetResponse.md) ### Authorization @@ -24554,8 +25268,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_logs_post** -> V1LogsPostResponse v1_logs_post(authorization, v1_logs_post_request) +# **v1_onboarding_cloudinit_delete** +> v1_onboarding_cloudinit_delete(authorization) + +Delete the onboarding token ### Example @@ -24563,8 +25279,6 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_logs_post_request import V1LogsPostRequest -from graphiant_sdk.models.v1_logs_post_response import V1LogsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24590,14 +25304,87 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_logs_post_request = graphiant_sdk.V1LogsPostRequest() # V1LogsPostRequest | try: - api_response = api_instance.v1_logs_post(authorization, v1_logs_post_request) - print("The response of DefaultApi->v1_logs_post:\n") + api_instance.v1_onboarding_cloudinit_delete(authorization) + except Exception as e: + print("Exception when calling DefaultApi->v1_onboarding_cloudinit_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + +### Return type + +void (empty response body) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_onboarding_cloudinit_get** +> V1OnboardingCloudinitGetResponse v1_onboarding_cloudinit_get(authorization) + +Get all the onboarding tokens + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_onboarding_cloudinit_get_response import V1OnboardingCloudinitGetResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + + try: + api_response = api_instance.v1_onboarding_cloudinit_get(authorization) + print("The response of DefaultApi->v1_onboarding_cloudinit_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_logs_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_onboarding_cloudinit_get: %s\n" % e) ``` @@ -24608,11 +25395,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_logs_post_request** | [**V1LogsPostRequest**](V1LogsPostRequest.md)| | ### Return type -[**V1LogsPostResponse**](V1LogsPostResponse.md) +[**V1OnboardingCloudinitGetResponse**](V1OnboardingCloudinitGetResponse.md) ### Authorization @@ -24620,7 +25406,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -24631,10 +25417,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_nat_entries_device_id_get** -> V1NatEntriesDeviceIdGetResponse v1_nat_entries_device_id_get(authorization, device_id) +# **v1_onboarding_cloudinit_post** +> object v1_onboarding_cloudinit_post(authorization, v1_onboarding_cloudinit_post_request) -Get the NAT entries for the device +Create a onboarding token ### Example @@ -24642,7 +25428,7 @@ Get the NAT entries for the device ```python import graphiant_sdk -from graphiant_sdk.models.v1_nat_entries_device_id_get_response import V1NatEntriesDeviceIdGetResponse +from graphiant_sdk.models.v1_onboarding_cloudinit_post_request import V1OnboardingCloudinitPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24668,14 +25454,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - device_id = 1234567891011 # int | + v1_onboarding_cloudinit_post_request = graphiant_sdk.V1OnboardingCloudinitPostRequest() # V1OnboardingCloudinitPostRequest | try: - api_response = api_instance.v1_nat_entries_device_id_get(authorization, device_id) - print("The response of DefaultApi->v1_nat_entries_device_id_get:\n") + api_response = api_instance.v1_onboarding_cloudinit_post(authorization, v1_onboarding_cloudinit_post_request) + print("The response of DefaultApi->v1_onboarding_cloudinit_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_nat_entries_device_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_onboarding_cloudinit_post: %s\n" % e) ``` @@ -24686,11 +25472,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **device_id** | **int**| | + **v1_onboarding_cloudinit_post_request** | [**V1OnboardingCloudinitPostRequest**](V1OnboardingCloudinitPostRequest.md)| | ### Return type -[**V1NatEntriesDeviceIdGetResponse**](V1NatEntriesDeviceIdGetResponse.md) +**object** ### Authorization @@ -24698,21 +25484,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**201** | Created | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_nat_utilization_device_id_get** -> V1NatUtilizationDeviceIdGetResponse v1_nat_utilization_device_id_get(authorization, device_id) +# **v1_policy_applications_get** +> V1PolicyApplicationsGetResponse v1_policy_applications_get(authorization) -Get the NAT usage for the device +Get a list of builtin DPI applications ### Example @@ -24720,7 +25506,7 @@ Get the NAT usage for the device ```python import graphiant_sdk -from graphiant_sdk.models.v1_nat_utilization_device_id_get_response import V1NatUtilizationDeviceIdGetResponse +from graphiant_sdk.models.v1_policy_applications_get_response import V1PolicyApplicationsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24746,14 +25532,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - device_id = 1234567891011 # int | try: - api_response = api_instance.v1_nat_utilization_device_id_get(authorization, device_id) - print("The response of DefaultApi->v1_nat_utilization_device_id_get:\n") + api_response = api_instance.v1_policy_applications_get(authorization) + print("The response of DefaultApi->v1_policy_applications_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_nat_utilization_device_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_applications_get: %s\n" % e) ``` @@ -24764,11 +25549,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **device_id** | **int**| | ### Return type -[**V1NatUtilizationDeviceIdGetResponse**](V1NatUtilizationDeviceIdGetResponse.md) +[**V1PolicyApplicationsGetResponse**](V1PolicyApplicationsGetResponse.md) ### Authorization @@ -24787,10 +25571,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_onboarding_cloudinit_delete** -> v1_onboarding_cloudinit_delete(authorization) +# **v1_policy_route_tag_sets_id_delete** +> V1PolicyRouteTagSetsIdDeleteResponse v1_policy_route_tag_sets_id_delete(authorization, id, level=level) -Delete the onboarding token +Create a new route-tag scoped to the enterprise ### Example @@ -24798,6 +25582,7 @@ Delete the onboarding token ```python import graphiant_sdk +from graphiant_sdk.models.v1_policy_route_tag_sets_id_delete_response import V1PolicyRouteTagSetsIdDeleteResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24823,11 +25608,15 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + id = 1234567891011 # int | + level = 123 # int | (optional) try: - api_instance.v1_onboarding_cloudinit_delete(authorization) + api_response = api_instance.v1_policy_route_tag_sets_id_delete(authorization, id, level=level) + print("The response of DefaultApi->v1_policy_route_tag_sets_id_delete:\n") + pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_onboarding_cloudinit_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_route_tag_sets_id_delete: %s\n" % e) ``` @@ -24838,10 +25627,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| | + **level** | **int**| | [optional] ### Return type -void (empty response body) +[**V1PolicyRouteTagSetsIdDeleteResponse**](V1PolicyRouteTagSetsIdDeleteResponse.md) ### Authorization @@ -24850,20 +25641,20 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | No Content | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_onboarding_cloudinit_get** -> V1OnboardingCloudinitGetResponse v1_onboarding_cloudinit_get(authorization) +# **v1_policy_route_tag_sets_post** +> V1PolicyRouteTagSetsPostResponse v1_policy_route_tag_sets_post(authorization, v1_policy_route_tag_sets_post_request) -Get all the onboarding tokens +Create a new route tag scoped to the enterprise ### Example @@ -24871,7 +25662,8 @@ Get all the onboarding tokens ```python import graphiant_sdk -from graphiant_sdk.models.v1_onboarding_cloudinit_get_response import V1OnboardingCloudinitGetResponse +from graphiant_sdk.models.v1_policy_route_tag_sets_post_request import V1PolicyRouteTagSetsPostRequest +from graphiant_sdk.models.v1_policy_route_tag_sets_post_response import V1PolicyRouteTagSetsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24897,13 +25689,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + v1_policy_route_tag_sets_post_request = graphiant_sdk.V1PolicyRouteTagSetsPostRequest() # V1PolicyRouteTagSetsPostRequest | try: - api_response = api_instance.v1_onboarding_cloudinit_get(authorization) - print("The response of DefaultApi->v1_onboarding_cloudinit_get:\n") + api_response = api_instance.v1_policy_route_tag_sets_post(authorization, v1_policy_route_tag_sets_post_request) + print("The response of DefaultApi->v1_policy_route_tag_sets_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_onboarding_cloudinit_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_route_tag_sets_post: %s\n" % e) ``` @@ -24914,10 +25707,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_policy_route_tag_sets_post_request** | [**V1PolicyRouteTagSetsPostRequest**](V1PolicyRouteTagSetsPostRequest.md)| | ### Return type -[**V1OnboardingCloudinitGetResponse**](V1OnboardingCloudinitGetResponse.md) +[**V1PolicyRouteTagSetsPostResponse**](V1PolicyRouteTagSetsPostResponse.md) ### Authorization @@ -24925,7 +25719,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -24936,10 +25730,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_onboarding_cloudinit_post** -> object v1_onboarding_cloudinit_post(authorization, v1_onboarding_cloudinit_post_request) +# **v1_policy_route_tag_sets_tag_detail_get** +> V1PolicyRouteTagSetsTagDetailGetResponse v1_policy_route_tag_sets_tag_detail_get(authorization) -Create a onboarding token +Get all the route tags summary for the the enterprise ### Example @@ -24947,7 +25741,7 @@ Create a onboarding token ```python import graphiant_sdk -from graphiant_sdk.models.v1_onboarding_cloudinit_post_request import V1OnboardingCloudinitPostRequest +from graphiant_sdk.models.v1_policy_route_tag_sets_tag_detail_get_response import V1PolicyRouteTagSetsTagDetailGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24973,14 +25767,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_onboarding_cloudinit_post_request = graphiant_sdk.V1OnboardingCloudinitPostRequest() # V1OnboardingCloudinitPostRequest | try: - api_response = api_instance.v1_onboarding_cloudinit_post(authorization, v1_onboarding_cloudinit_post_request) - print("The response of DefaultApi->v1_onboarding_cloudinit_post:\n") + api_response = api_instance.v1_policy_route_tag_sets_tag_detail_get(authorization) + print("The response of DefaultApi->v1_policy_route_tag_sets_tag_detail_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_onboarding_cloudinit_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_route_tag_sets_tag_detail_get: %s\n" % e) ``` @@ -24991,11 +25784,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_onboarding_cloudinit_post_request** | [**V1OnboardingCloudinitPostRequest**](V1OnboardingCloudinitPostRequest.md)| | ### Return type -**object** +[**V1PolicyRouteTagSetsTagDetailGetResponse**](V1PolicyRouteTagSetsTagDetailGetResponse.md) ### Authorization @@ -25003,21 +25795,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Created | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_policy_applications_get** -> V1PolicyApplicationsGetResponse v1_policy_applications_get(authorization) +# **v1_policy_route_tag_sets_tags_get** +> V1PolicyRouteTagSetsTagsGetResponse v1_policy_route_tag_sets_tags_get(authorization) -Get a list of builtin DPI applications +Get all the route tags for the enterprise ### Example @@ -25025,7 +25817,7 @@ Get a list of builtin DPI applications ```python import graphiant_sdk -from graphiant_sdk.models.v1_policy_applications_get_response import V1PolicyApplicationsGetResponse +from graphiant_sdk.models.v1_policy_route_tag_sets_tags_get_response import V1PolicyRouteTagSetsTagsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25053,11 +25845,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_response = api_instance.v1_policy_applications_get(authorization) - print("The response of DefaultApi->v1_policy_applications_get:\n") + api_response = api_instance.v1_policy_route_tag_sets_tags_get(authorization) + print("The response of DefaultApi->v1_policy_route_tag_sets_tags_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_policy_applications_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_route_tag_sets_tags_get: %s\n" % e) ``` @@ -25071,7 +25863,7 @@ Name | Type | Description | Notes ### Return type -[**V1PolicyApplicationsGetResponse**](V1PolicyApplicationsGetResponse.md) +[**V1PolicyRouteTagSetsTagsGetResponse**](V1PolicyRouteTagSetsTagsGetResponse.md) ### Authorization @@ -25090,10 +25882,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_policy_route_tag_sets_id_delete** -> V1PolicyRouteTagSetsIdDeleteResponse v1_policy_route_tag_sets_id_delete(authorization, id, level=level) +# **v1_policy_route_tag_sets_tags_summary_get** +> V1PolicyRouteTagSetsTagsSummaryGetResponse v1_policy_route_tag_sets_tags_summary_get(authorization) -Create a new route-tag scoped to the enterprise +Get all the route tags summary for the the enterprise ### Example @@ -25101,7 +25893,7 @@ Create a new route-tag scoped to the enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_policy_route_tag_sets_id_delete_response import V1PolicyRouteTagSetsIdDeleteResponse +from graphiant_sdk.models.v1_policy_route_tag_sets_tags_summary_get_response import V1PolicyRouteTagSetsTagsSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25127,15 +25919,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - id = 1234567891011 # int | - level = 123 # int | (optional) try: - api_response = api_instance.v1_policy_route_tag_sets_id_delete(authorization, id, level=level) - print("The response of DefaultApi->v1_policy_route_tag_sets_id_delete:\n") + api_response = api_instance.v1_policy_route_tag_sets_tags_summary_get(authorization) + print("The response of DefaultApi->v1_policy_route_tag_sets_tags_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_policy_route_tag_sets_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_route_tag_sets_tags_summary_get: %s\n" % e) ``` @@ -25146,12 +25936,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | - **level** | **int**| | [optional] ### Return type -[**V1PolicyRouteTagSetsIdDeleteResponse**](V1PolicyRouteTagSetsIdDeleteResponse.md) +[**V1PolicyRouteTagSetsTagsSummaryGetResponse**](V1PolicyRouteTagSetsTagsSummaryGetResponse.md) ### Authorization @@ -25170,10 +25958,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_policy_route_tag_sets_post** -> V1PolicyRouteTagSetsPostResponse v1_policy_route_tag_sets_post(authorization, v1_policy_route_tag_sets_post_request) +# **v1_presharedkey_get** +> V1PresharedkeyGetResponse v1_presharedkey_get(authorization) -Create a new route tag scoped to the enterprise +Get all domain categories from the DPI engine ### Example @@ -25181,8 +25969,7 @@ Create a new route tag scoped to the enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_policy_route_tag_sets_post_request import V1PolicyRouteTagSetsPostRequest -from graphiant_sdk.models.v1_policy_route_tag_sets_post_response import V1PolicyRouteTagSetsPostResponse +from graphiant_sdk.models.v1_presharedkey_get_response import V1PresharedkeyGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25208,14 +25995,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_policy_route_tag_sets_post_request = graphiant_sdk.V1PolicyRouteTagSetsPostRequest() # V1PolicyRouteTagSetsPostRequest | try: - api_response = api_instance.v1_policy_route_tag_sets_post(authorization, v1_policy_route_tag_sets_post_request) - print("The response of DefaultApi->v1_policy_route_tag_sets_post:\n") + api_response = api_instance.v1_presharedkey_get(authorization) + print("The response of DefaultApi->v1_presharedkey_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_policy_route_tag_sets_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_presharedkey_get: %s\n" % e) ``` @@ -25226,11 +26012,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_policy_route_tag_sets_post_request** | [**V1PolicyRouteTagSetsPostRequest**](V1PolicyRouteTagSetsPostRequest.md)| | ### Return type -[**V1PolicyRouteTagSetsPostResponse**](V1PolicyRouteTagSetsPostResponse.md) +[**V1PresharedkeyGetResponse**](V1PresharedkeyGetResponse.md) ### Authorization @@ -25238,7 +26023,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -25249,10 +26034,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_policy_route_tag_sets_tag_detail_get** -> V1PolicyRouteTagSetsTagDetailGetResponse v1_policy_route_tag_sets_tag_detail_get(authorization) +# **v1_qos_circuit_profiles_get** +> V1QosCircuitProfilesGetResponse v1_qos_circuit_profiles_get(authorization) -Get all the route tags summary for the the enterprise +Returns a list of QoS profiles for circuits with associated queues & attributes ### Example @@ -25260,7 +26045,7 @@ Get all the route tags summary for the the enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_policy_route_tag_sets_tag_detail_get_response import V1PolicyRouteTagSetsTagDetailGetResponse +from graphiant_sdk.models.v1_qos_circuit_profiles_get_response import V1QosCircuitProfilesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25288,11 +26073,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_response = api_instance.v1_policy_route_tag_sets_tag_detail_get(authorization) - print("The response of DefaultApi->v1_policy_route_tag_sets_tag_detail_get:\n") + api_response = api_instance.v1_qos_circuit_profiles_get(authorization) + print("The response of DefaultApi->v1_qos_circuit_profiles_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_policy_route_tag_sets_tag_detail_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_qos_circuit_profiles_get: %s\n" % e) ``` @@ -25306,7 +26091,7 @@ Name | Type | Description | Notes ### Return type -[**V1PolicyRouteTagSetsTagDetailGetResponse**](V1PolicyRouteTagSetsTagDetailGetResponse.md) +[**V1QosCircuitProfilesGetResponse**](V1QosCircuitProfilesGetResponse.md) ### Authorization @@ -25325,10 +26110,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_policy_route_tag_sets_tags_get** -> V1PolicyRouteTagSetsTagsGetResponse v1_policy_route_tag_sets_tags_get(authorization) +# **v1_regions_get** +> V1RegionsGetResponse v1_regions_get(authorization) -Get all the route tags for the enterprise +Get regions used for the current enterprise ### Example @@ -25336,7 +26121,7 @@ Get all the route tags for the enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_policy_route_tag_sets_tags_get_response import V1PolicyRouteTagSetsTagsGetResponse +from graphiant_sdk.models.v1_regions_get_response import V1RegionsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25364,11 +26149,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_response = api_instance.v1_policy_route_tag_sets_tags_get(authorization) - print("The response of DefaultApi->v1_policy_route_tag_sets_tags_get:\n") + api_response = api_instance.v1_regions_get(authorization) + print("The response of DefaultApi->v1_regions_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_policy_route_tag_sets_tags_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_regions_get: %s\n" % e) ``` @@ -25382,7 +26167,7 @@ Name | Type | Description | Notes ### Return type -[**V1PolicyRouteTagSetsTagsGetResponse**](V1PolicyRouteTagSetsTagsGetResponse.md) +[**V1RegionsGetResponse**](V1RegionsGetResponse.md) ### Authorization @@ -25401,10 +26186,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_policy_route_tag_sets_tags_summary_get** -> V1PolicyRouteTagSetsTagsSummaryGetResponse v1_policy_route_tag_sets_tags_summary_get(authorization) - -Get all the route tags summary for the the enterprise +# **v1_search_get** +> V1SearchGetResponse v1_search_get(authorization, max_results=max_results, search=search) ### Example @@ -25412,7 +26195,7 @@ Get all the route tags summary for the the enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_policy_route_tag_sets_tags_summary_get_response import V1PolicyRouteTagSetsTagsSummaryGetResponse +from graphiant_sdk.models.v1_search_get_response import V1SearchGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25438,13 +26221,15 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + max_results = 123 # int | (optional) + search = 'example string' # str | (optional) try: - api_response = api_instance.v1_policy_route_tag_sets_tags_summary_get(authorization) - print("The response of DefaultApi->v1_policy_route_tag_sets_tags_summary_get:\n") + api_response = api_instance.v1_search_get(authorization, max_results=max_results, search=search) + print("The response of DefaultApi->v1_search_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_policy_route_tag_sets_tags_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_search_get: %s\n" % e) ``` @@ -25455,10 +26240,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **max_results** | **int**| | [optional] + **search** | **str**| | [optional] ### Return type -[**V1PolicyRouteTagSetsTagsSummaryGetResponse**](V1PolicyRouteTagSetsTagsSummaryGetResponse.md) +[**V1SearchGetResponse**](V1SearchGetResponse.md) ### Authorization @@ -25477,10 +26264,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_presharedkey_get** -> V1PresharedkeyGetResponse v1_presharedkey_get(authorization) +# **v1_site_details_sitelists_post** +> V1SiteDetailsSitelistsPostResponse v1_site_details_sitelists_post(authorization, v1_site_details_sitelists_post_request) -Get all domain categories from the DPI engine +Get a list of site list references for a site ### Example @@ -25488,7 +26275,8 @@ Get all domain categories from the DPI engine ```python import graphiant_sdk -from graphiant_sdk.models.v1_presharedkey_get_response import V1PresharedkeyGetResponse +from graphiant_sdk.models.v1_site_details_sitelists_post_request import V1SiteDetailsSitelistsPostRequest +from graphiant_sdk.models.v1_site_details_sitelists_post_response import V1SiteDetailsSitelistsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25514,13 +26302,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + v1_site_details_sitelists_post_request = graphiant_sdk.V1SiteDetailsSitelistsPostRequest() # V1SiteDetailsSitelistsPostRequest | try: - api_response = api_instance.v1_presharedkey_get(authorization) - print("The response of DefaultApi->v1_presharedkey_get:\n") + api_response = api_instance.v1_site_details_sitelists_post(authorization, v1_site_details_sitelists_post_request) + print("The response of DefaultApi->v1_site_details_sitelists_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_presharedkey_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_site_details_sitelists_post: %s\n" % e) ``` @@ -25531,10 +26320,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_site_details_sitelists_post_request** | [**V1SiteDetailsSitelistsPostRequest**](V1SiteDetailsSitelistsPostRequest.md)| | ### Return type -[**V1PresharedkeyGetResponse**](V1PresharedkeyGetResponse.md) +[**V1SiteDetailsSitelistsPostResponse**](V1SiteDetailsSitelistsPostResponse.md) ### Authorization @@ -25542,7 +26332,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -25553,10 +26343,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_qos_circuit_profiles_get** -> V1QosCircuitProfilesGetResponse v1_qos_circuit_profiles_get(authorization) +# **v1_site_id_details_interfaces_get** +> V1SiteIdDetailsInterfacesGetResponse v1_site_id_details_interfaces_get(authorization, id) -Returns a list of QoS profiles for circuits with associated queues & attributes +Get a list of a site's interfaces, loopback listed first ### Example @@ -25564,7 +26354,7 @@ Returns a list of QoS profiles for circuits with associated queues & attributes ```python import graphiant_sdk -from graphiant_sdk.models.v1_qos_circuit_profiles_get_response import V1QosCircuitProfilesGetResponse +from graphiant_sdk.models.v1_site_id_details_interfaces_get_response import V1SiteIdDetailsInterfacesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25590,13 +26380,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + id = 1234567891011 # int | try: - api_response = api_instance.v1_qos_circuit_profiles_get(authorization) - print("The response of DefaultApi->v1_qos_circuit_profiles_get:\n") + api_response = api_instance.v1_site_id_details_interfaces_get(authorization, id) + print("The response of DefaultApi->v1_site_id_details_interfaces_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_qos_circuit_profiles_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_site_id_details_interfaces_get: %s\n" % e) ``` @@ -25607,10 +26398,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| | ### Return type -[**V1QosCircuitProfilesGetResponse**](V1QosCircuitProfilesGetResponse.md) +[**V1SiteIdDetailsInterfacesGetResponse**](V1SiteIdDetailsInterfacesGetResponse.md) ### Authorization @@ -25629,10 +26421,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_regions_get** -> V1RegionsGetResponse v1_regions_get(authorization) +# **v1_sites_details_get** +> V1SitesDetailsGetResponse v1_sites_details_get(authorization) -Get regions used for the current enterprise +Get a list of sites with aggregated values and site wide status ### Example @@ -25640,7 +26432,7 @@ Get regions used for the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_regions_get_response import V1RegionsGetResponse +from graphiant_sdk.models.v1_sites_details_get_response import V1SitesDetailsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25668,11 +26460,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_response = api_instance.v1_regions_get(authorization) - print("The response of DefaultApi->v1_regions_get:\n") + api_response = api_instance.v1_sites_details_get(authorization) + print("The response of DefaultApi->v1_sites_details_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_regions_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_details_get: %s\n" % e) ``` @@ -25686,7 +26478,7 @@ Name | Type | Description | Notes ### Return type -[**V1RegionsGetResponse**](V1RegionsGetResponse.md) +[**V1SitesDetailsGetResponse**](V1SitesDetailsGetResponse.md) ### Authorization @@ -25705,8 +26497,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_search_get** -> V1SearchGetResponse v1_search_get(authorization, max_results=max_results, search=search) +# **v1_sites_get** +> V1SitesGetResponse v1_sites_get(authorization) + +Get sites for the current enterprise ### Example @@ -25714,7 +26508,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_search_get_response import V1SearchGetResponse +from graphiant_sdk.models.v1_sites_get_response import V1SitesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25740,15 +26534,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - max_results = 123 # int | (optional) - search = 'example string' # str | (optional) try: - api_response = api_instance.v1_search_get(authorization, max_results=max_results, search=search) - print("The response of DefaultApi->v1_search_get:\n") + api_response = api_instance.v1_sites_get(authorization) + print("The response of DefaultApi->v1_sites_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_search_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_get: %s\n" % e) ``` @@ -25759,12 +26551,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **max_results** | **int**| | [optional] - **search** | **str**| | [optional] ### Return type -[**V1SearchGetResponse**](V1SearchGetResponse.md) +[**V1SitesGetResponse**](V1SitesGetResponse.md) ### Authorization @@ -25783,10 +26573,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_site_details_sitelists_post** -> V1SiteDetailsSitelistsPostResponse v1_site_details_sitelists_post(authorization, v1_site_details_sitelists_post_request) +# **v1_sites_post** +> V1SitesPostResponse v1_sites_post(authorization, v1_sites_post_request) -Get a list of site list references for a site +Create an enterprise site ### Example @@ -25794,8 +26584,86 @@ Get a list of site list references for a site ```python import graphiant_sdk -from graphiant_sdk.models.v1_site_details_sitelists_post_request import V1SiteDetailsSitelistsPostRequest -from graphiant_sdk.models.v1_site_details_sitelists_post_response import V1SiteDetailsSitelistsPostResponse +from graphiant_sdk.models.v1_sites_post_request import V1SitesPostRequest +from graphiant_sdk.models.v1_sites_post_response import V1SitesPostResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + v1_sites_post_request = graphiant_sdk.V1SitesPostRequest() # V1SitesPostRequest | + + try: + api_response = api_instance.v1_sites_post(authorization, v1_sites_post_request) + print("The response of DefaultApi->v1_sites_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_sites_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_sites_post_request** | [**V1SitesPostRequest**](V1SitesPostRequest.md)| | + +### Return type + +[**V1SitesPostResponse**](V1SitesPostResponse.md) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_sites_site_id_circuits_get** +> V1SitesSiteIdCircuitsGetResponse v1_sites_site_id_circuits_get(authorization, site_id) + +Get Circuits for the site + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_sites_site_id_circuits_get_response import V1SitesSiteIdCircuitsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25821,14 +26689,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_site_details_sitelists_post_request = graphiant_sdk.V1SiteDetailsSitelistsPostRequest() # V1SiteDetailsSitelistsPostRequest | + site_id = 1234567891011 # int | try: - api_response = api_instance.v1_site_details_sitelists_post(authorization, v1_site_details_sitelists_post_request) - print("The response of DefaultApi->v1_site_details_sitelists_post:\n") + api_response = api_instance.v1_sites_site_id_circuits_get(authorization, site_id) + print("The response of DefaultApi->v1_sites_site_id_circuits_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_site_details_sitelists_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_site_id_circuits_get: %s\n" % e) ``` @@ -25839,11 +26707,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_site_details_sitelists_post_request** | [**V1SiteDetailsSitelistsPostRequest**](V1SiteDetailsSitelistsPostRequest.md)| | + **site_id** | **int**| | ### Return type -[**V1SiteDetailsSitelistsPostResponse**](V1SiteDetailsSitelistsPostResponse.md) +[**V1SitesSiteIdCircuitsGetResponse**](V1SitesSiteIdCircuitsGetResponse.md) ### Authorization @@ -25851,7 +26719,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -25862,10 +26730,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_site_id_details_interfaces_get** -> V1SiteIdDetailsInterfacesGetResponse v1_site_id_details_interfaces_get(authorization, id) +# **v1_sites_site_id_delete** +> v1_sites_site_id_delete(authorization, site_id) -Get a list of a site's interfaces, loopback listed first +Delete a site ### Example @@ -25873,7 +26741,6 @@ Get a list of a site's interfaces, loopback listed first ```python import graphiant_sdk -from graphiant_sdk.models.v1_site_id_details_interfaces_get_response import V1SiteIdDetailsInterfacesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25899,14 +26766,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - id = 1234567891011 # int | + site_id = 1234567891011 # int | try: - api_response = api_instance.v1_site_id_details_interfaces_get(authorization, id) - print("The response of DefaultApi->v1_site_id_details_interfaces_get:\n") - pprint(api_response) + api_instance.v1_sites_site_id_delete(authorization, site_id) except Exception as e: - print("Exception when calling DefaultApi->v1_site_id_details_interfaces_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_site_id_delete: %s\n" % e) ``` @@ -25917,11 +26782,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | + **site_id** | **int**| | ### Return type -[**V1SiteIdDetailsInterfacesGetResponse**](V1SiteIdDetailsInterfacesGetResponse.md) +void (empty response body) ### Authorization @@ -25930,20 +26795,20 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **Accept**: Not defined ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**204** | No Content | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_sites_details_get** -> V1SitesDetailsGetResponse v1_sites_details_get(authorization) +# **v1_sites_site_id_devices_get** +> V1SitesSiteIdDevicesGetResponse v1_sites_site_id_devices_get(authorization, site_id) -Get a list of sites with aggregated values and site wide status +Get Devices for the site ### Example @@ -25951,7 +26816,7 @@ Get a list of sites with aggregated values and site wide status ```python import graphiant_sdk -from graphiant_sdk.models.v1_sites_details_get_response import V1SitesDetailsGetResponse +from graphiant_sdk.models.v1_sites_site_id_devices_get_response import V1SitesSiteIdDevicesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25977,13 +26842,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + site_id = 12345678910 # int | try: - api_response = api_instance.v1_sites_details_get(authorization) - print("The response of DefaultApi->v1_sites_details_get:\n") + api_response = api_instance.v1_sites_site_id_devices_get(authorization, site_id) + print("The response of DefaultApi->v1_sites_site_id_devices_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_sites_details_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_site_id_devices_get: %s\n" % e) ``` @@ -25994,10 +26860,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **site_id** | **int**| | ### Return type -[**V1SitesDetailsGetResponse**](V1SitesDetailsGetResponse.md) +[**V1SitesSiteIdDevicesGetResponse**](V1SitesSiteIdDevicesGetResponse.md) ### Authorization @@ -26016,10 +26883,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_sites_get** -> V1SitesGetResponse v1_sites_get(authorization) +# **v1_sites_site_id_post** +> V1SitesSiteIdPostResponse v1_sites_site_id_post(authorization, site_id, v1_sites_site_id_post_request) -Get sites for the current enterprise +Update a site ### Example @@ -26027,7 +26894,8 @@ Get sites for the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_sites_get_response import V1SitesGetResponse +from graphiant_sdk.models.v1_sites_site_id_post_request import V1SitesSiteIdPostRequest +from graphiant_sdk.models.v1_sites_site_id_post_response import V1SitesSiteIdPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26053,13 +26921,15 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + site_id = 1234567891011 # int | + v1_sites_site_id_post_request = graphiant_sdk.V1SitesSiteIdPostRequest() # V1SitesSiteIdPostRequest | try: - api_response = api_instance.v1_sites_get(authorization) - print("The response of DefaultApi->v1_sites_get:\n") + api_response = api_instance.v1_sites_site_id_post(authorization, site_id, v1_sites_site_id_post_request) + print("The response of DefaultApi->v1_sites_site_id_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_sites_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_site_id_post: %s\n" % e) ``` @@ -26070,10 +26940,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **site_id** | **int**| | + **v1_sites_site_id_post_request** | [**V1SitesSiteIdPostRequest**](V1SitesSiteIdPostRequest.md)| | ### Return type -[**V1SitesGetResponse**](V1SitesGetResponse.md) +[**V1SitesSiteIdPostResponse**](V1SitesSiteIdPostResponse.md) ### Authorization @@ -26081,7 +26953,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -26092,10 +26964,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_sites_post** -> V1SitesPostResponse v1_sites_post(authorization, v1_sites_post_request) - -Create an enterprise site +# **v1_software_auto_upgrade_default_get** +> V1SoftwareAutoUpgradeDefaultGetResponse v1_software_auto_upgrade_default_get(authorization) ### Example @@ -26103,8 +26973,7 @@ Create an enterprise site ```python import graphiant_sdk -from graphiant_sdk.models.v1_sites_post_request import V1SitesPostRequest -from graphiant_sdk.models.v1_sites_post_response import V1SitesPostResponse +from graphiant_sdk.models.v1_software_auto_upgrade_default_get_response import V1SoftwareAutoUpgradeDefaultGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26130,14 +26999,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_sites_post_request = graphiant_sdk.V1SitesPostRequest() # V1SitesPostRequest | try: - api_response = api_instance.v1_sites_post(authorization, v1_sites_post_request) - print("The response of DefaultApi->v1_sites_post:\n") + api_response = api_instance.v1_software_auto_upgrade_default_get(authorization) + print("The response of DefaultApi->v1_software_auto_upgrade_default_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_sites_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_auto_upgrade_default_get: %s\n" % e) ``` @@ -26148,11 +27016,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_sites_post_request** | [**V1SitesPostRequest**](V1SitesPostRequest.md)| | ### Return type -[**V1SitesPostResponse**](V1SitesPostResponse.md) +[**V1SoftwareAutoUpgradeDefaultGetResponse**](V1SoftwareAutoUpgradeDefaultGetResponse.md) ### Authorization @@ -26160,7 +27027,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -26171,10 +27038,82 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_sites_site_id_circuits_get** -> V1SitesSiteIdCircuitsGetResponse v1_sites_site_id_circuits_get(authorization, site_id) +# **v1_software_auto_upgrade_default_put** +> v1_software_auto_upgrade_default_put(authorization, v1_software_auto_upgrade_default_put_request) -Get Circuits for the site +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_software_auto_upgrade_default_put_request import V1SoftwareAutoUpgradeDefaultPutRequest +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + v1_software_auto_upgrade_default_put_request = graphiant_sdk.V1SoftwareAutoUpgradeDefaultPutRequest() # V1SoftwareAutoUpgradeDefaultPutRequest | + + try: + api_instance.v1_software_auto_upgrade_default_put(authorization, v1_software_auto_upgrade_default_put_request) + except Exception as e: + print("Exception when calling DefaultApi->v1_software_auto_upgrade_default_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_software_auto_upgrade_default_put_request** | [**V1SoftwareAutoUpgradeDefaultPutRequest**](V1SoftwareAutoUpgradeDefaultPutRequest.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_software_gcsrelease_upload_notes_post** +> object v1_software_gcsrelease_upload_notes_post(authorization, v1_software_gcsrelease_upload_notes_post_request) ### Example @@ -26182,7 +27121,7 @@ Get Circuits for the site ```python import graphiant_sdk -from graphiant_sdk.models.v1_sites_site_id_circuits_get_response import V1SitesSiteIdCircuitsGetResponse +from graphiant_sdk.models.v1_software_gcsrelease_upload_notes_post_request import V1SoftwareGcsreleaseUploadNotesPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26208,14 +27147,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - site_id = 1234567891011 # int | + v1_software_gcsrelease_upload_notes_post_request = graphiant_sdk.V1SoftwareGcsreleaseUploadNotesPostRequest() # V1SoftwareGcsreleaseUploadNotesPostRequest | try: - api_response = api_instance.v1_sites_site_id_circuits_get(authorization, site_id) - print("The response of DefaultApi->v1_sites_site_id_circuits_get:\n") + api_response = api_instance.v1_software_gcsrelease_upload_notes_post(authorization, v1_software_gcsrelease_upload_notes_post_request) + print("The response of DefaultApi->v1_software_gcsrelease_upload_notes_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_sites_site_id_circuits_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_gcsrelease_upload_notes_post: %s\n" % e) ``` @@ -26226,11 +27165,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **site_id** | **int**| | + **v1_software_gcsrelease_upload_notes_post_request** | [**V1SoftwareGcsreleaseUploadNotesPostRequest**](V1SoftwareGcsreleaseUploadNotesPostRequest.md)| | ### Return type -[**V1SitesSiteIdCircuitsGetResponse**](V1SitesSiteIdCircuitsGetResponse.md) +**object** ### Authorization @@ -26238,7 +27177,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -26249,10 +27188,8 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_sites_site_id_delete** -> v1_sites_site_id_delete(authorization, site_id) - -Delete a site +# **v1_software_releases_download_get** +> V1SoftwareReleasesDownloadGetResponse v1_software_releases_download_get(authorization, image_ext, version) ### Example @@ -26260,6 +27197,7 @@ Delete a site ```python import graphiant_sdk +from graphiant_sdk.models.v1_software_releases_download_get_response import V1SoftwareReleasesDownloadGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26285,12 +27223,15 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - site_id = 1234567891011 # int | + image_ext = 'qcow2' # str | GNOS Image type (qcow2 or ova) + version = '9999.202406130322' # str | GNOS Image version try: - api_instance.v1_sites_site_id_delete(authorization, site_id) + api_response = api_instance.v1_software_releases_download_get(authorization, image_ext, version) + print("The response of DefaultApi->v1_software_releases_download_get:\n") + pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_sites_site_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_releases_download_get: %s\n" % e) ``` @@ -26301,11 +27242,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **site_id** | **int**| | + **image_ext** | **str**| GNOS Image type (qcow2 or ova) | + **version** | **str**| GNOS Image version | ### Return type -void (empty response body) +[**V1SoftwareReleasesDownloadGetResponse**](V1SoftwareReleasesDownloadGetResponse.md) ### Authorization @@ -26314,20 +27256,18 @@ void (empty response body) ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | No Content | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_sites_site_id_devices_get** -> V1SitesSiteIdDevicesGetResponse v1_sites_site_id_devices_get(authorization, site_id) - -Get Devices for the site +# **v1_software_releases_summary_get** +> V1SoftwareReleasesSummaryGetResponse v1_software_releases_summary_get(authorization) ### Example @@ -26335,7 +27275,7 @@ Get Devices for the site ```python import graphiant_sdk -from graphiant_sdk.models.v1_sites_site_id_devices_get_response import V1SitesSiteIdDevicesGetResponse +from graphiant_sdk.models.v1_software_releases_summary_get_response import V1SoftwareReleasesSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26361,14 +27301,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - site_id = 12345678910 # int | try: - api_response = api_instance.v1_sites_site_id_devices_get(authorization, site_id) - print("The response of DefaultApi->v1_sites_site_id_devices_get:\n") + api_response = api_instance.v1_software_releases_summary_get(authorization) + print("The response of DefaultApi->v1_software_releases_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_sites_site_id_devices_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_releases_summary_get: %s\n" % e) ``` @@ -26379,11 +27318,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **site_id** | **int**| | ### Return type -[**V1SitesSiteIdDevicesGetResponse**](V1SitesSiteIdDevicesGetResponse.md) +[**V1SoftwareReleasesSummaryGetResponse**](V1SoftwareReleasesSummaryGetResponse.md) ### Authorization @@ -26402,10 +27340,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_sites_site_id_post** -> V1SitesSiteIdPostResponse v1_sites_site_id_post(authorization, site_id, v1_sites_site_id_post_request) +# **v1_software_rollouts_get** +> V1SoftwareRolloutsGetResponse v1_software_rollouts_get(authorization) -Update a site +Returns all the configured upgrade rollouts ### Example @@ -26413,8 +27351,7 @@ Update a site ```python import graphiant_sdk -from graphiant_sdk.models.v1_sites_site_id_post_request import V1SitesSiteIdPostRequest -from graphiant_sdk.models.v1_sites_site_id_post_response import V1SitesSiteIdPostResponse +from graphiant_sdk.models.v1_software_rollouts_get_response import V1SoftwareRolloutsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26440,15 +27377,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - site_id = 1234567891011 # int | - v1_sites_site_id_post_request = graphiant_sdk.V1SitesSiteIdPostRequest() # V1SitesSiteIdPostRequest | try: - api_response = api_instance.v1_sites_site_id_post(authorization, site_id, v1_sites_site_id_post_request) - print("The response of DefaultApi->v1_sites_site_id_post:\n") + api_response = api_instance.v1_software_rollouts_get(authorization) + print("The response of DefaultApi->v1_software_rollouts_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_sites_site_id_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_rollouts_get: %s\n" % e) ``` @@ -26459,12 +27394,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **site_id** | **int**| | - **v1_sites_site_id_post_request** | [**V1SitesSiteIdPostRequest**](V1SitesSiteIdPostRequest.md)| | ### Return type -[**V1SitesSiteIdPostResponse**](V1SitesSiteIdPostResponse.md) +[**V1SoftwareRolloutsGetResponse**](V1SoftwareRolloutsGetResponse.md) ### Authorization @@ -26472,7 +27405,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -26483,8 +27416,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_software_auto_upgrade_default_get** -> V1SoftwareAutoUpgradeDefaultGetResponse v1_software_auto_upgrade_default_get(authorization) +# **v1_software_rollouts_id_delete** +> object v1_software_rollouts_id_delete(authorization, id) + +Delete given upgrade rollout ### Example @@ -26492,7 +27427,6 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_auto_upgrade_default_get_response import V1SoftwareAutoUpgradeDefaultGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26518,13 +27452,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + id = 42 # int | Rollout identifier to delete. try: - api_response = api_instance.v1_software_auto_upgrade_default_get(authorization) - print("The response of DefaultApi->v1_software_auto_upgrade_default_get:\n") + api_response = api_instance.v1_software_rollouts_id_delete(authorization, id) + print("The response of DefaultApi->v1_software_rollouts_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_software_auto_upgrade_default_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_rollouts_id_delete: %s\n" % e) ``` @@ -26535,10 +27470,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| Rollout identifier to delete. | ### Return type -[**V1SoftwareAutoUpgradeDefaultGetResponse**](V1SoftwareAutoUpgradeDefaultGetResponse.md) +**object** ### Authorization @@ -26557,8 +27493,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_software_auto_upgrade_default_put** -> v1_software_auto_upgrade_default_put(authorization, v1_software_auto_upgrade_default_put_request) +# **v1_software_rollouts_id_get** +> V1SoftwareRolloutsIdGetResponse v1_software_rollouts_id_get(authorization, id) + +Returns details about given upgrade rollout ### Example @@ -26566,7 +27504,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_auto_upgrade_default_put_request import V1SoftwareAutoUpgradeDefaultPutRequest +from graphiant_sdk.models.v1_software_rollouts_id_get_response import V1SoftwareRolloutsIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26592,12 +27530,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_software_auto_upgrade_default_put_request = graphiant_sdk.V1SoftwareAutoUpgradeDefaultPutRequest() # V1SoftwareAutoUpgradeDefaultPutRequest | + id = 42 # int | Rollout identifier to fetch. try: - api_instance.v1_software_auto_upgrade_default_put(authorization, v1_software_auto_upgrade_default_put_request) + api_response = api_instance.v1_software_rollouts_id_get(authorization, id) + print("The response of DefaultApi->v1_software_rollouts_id_get:\n") + pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_software_auto_upgrade_default_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_rollouts_id_get: %s\n" % e) ``` @@ -26608,11 +27548,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_software_auto_upgrade_default_put_request** | [**V1SoftwareAutoUpgradeDefaultPutRequest**](V1SoftwareAutoUpgradeDefaultPutRequest.md)| | + **id** | **int**| Rollout identifier to fetch. | ### Return type -void (empty response body) +[**V1SoftwareRolloutsIdGetResponse**](V1SoftwareRolloutsIdGetResponse.md) ### Authorization @@ -26620,19 +27560,21 @@ void (empty response body) ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined + - **Content-Type**: Not defined + - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | No Content | - | +**200** | OK | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_software_gcsrelease_upload_notes_post** -> object v1_software_gcsrelease_upload_notes_post(authorization, v1_software_gcsrelease_upload_notes_post_request) +# **v1_software_rollouts_post** +> V1SoftwareRolloutsPostResponse v1_software_rollouts_post(authorization, v1_software_rollouts_post_request) + +Create upgrade rollout and returns rollout identifier ### Example @@ -26640,7 +27582,8 @@ void (empty response body) ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_gcsrelease_upload_notes_post_request import V1SoftwareGcsreleaseUploadNotesPostRequest +from graphiant_sdk.models.v1_software_rollouts_post_request import V1SoftwareRolloutsPostRequest +from graphiant_sdk.models.v1_software_rollouts_post_response import V1SoftwareRolloutsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26666,14 +27609,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - v1_software_gcsrelease_upload_notes_post_request = graphiant_sdk.V1SoftwareGcsreleaseUploadNotesPostRequest() # V1SoftwareGcsreleaseUploadNotesPostRequest | + v1_software_rollouts_post_request = graphiant_sdk.V1SoftwareRolloutsPostRequest() # V1SoftwareRolloutsPostRequest | try: - api_response = api_instance.v1_software_gcsrelease_upload_notes_post(authorization, v1_software_gcsrelease_upload_notes_post_request) - print("The response of DefaultApi->v1_software_gcsrelease_upload_notes_post:\n") + api_response = api_instance.v1_software_rollouts_post(authorization, v1_software_rollouts_post_request) + print("The response of DefaultApi->v1_software_rollouts_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_software_gcsrelease_upload_notes_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_rollouts_post: %s\n" % e) ``` @@ -26684,11 +27627,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_software_gcsrelease_upload_notes_post_request** | [**V1SoftwareGcsreleaseUploadNotesPostRequest**](V1SoftwareGcsreleaseUploadNotesPostRequest.md)| | + **v1_software_rollouts_post_request** | [**V1SoftwareRolloutsPostRequest**](V1SoftwareRolloutsPostRequest.md)| | ### Return type -**object** +[**V1SoftwareRolloutsPostResponse**](V1SoftwareRolloutsPostResponse.md) ### Authorization @@ -26707,8 +27650,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_software_releases_download_get** -> V1SoftwareReleasesDownloadGetResponse v1_software_releases_download_get(authorization, image_ext, version) +# **v1_software_rollouts_put** +> object v1_software_rollouts_put(authorization, v1_software_rollouts_put_request) + +Modify update rollout ### Example @@ -26716,7 +27661,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_releases_download_get_response import V1SoftwareReleasesDownloadGetResponse +from graphiant_sdk.models.v1_software_rollouts_put_request import V1SoftwareRolloutsPutRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26742,15 +27687,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer - image_ext = 'qcow2' # str | GNOS Image type (qcow2 or ova) - version = '9999.202406130322' # str | GNOS Image version + v1_software_rollouts_put_request = graphiant_sdk.V1SoftwareRolloutsPutRequest() # V1SoftwareRolloutsPutRequest | try: - api_response = api_instance.v1_software_releases_download_get(authorization, image_ext, version) - print("The response of DefaultApi->v1_software_releases_download_get:\n") + api_response = api_instance.v1_software_rollouts_put(authorization, v1_software_rollouts_put_request) + print("The response of DefaultApi->v1_software_rollouts_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_software_releases_download_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_rollouts_put: %s\n" % e) ``` @@ -26761,12 +27705,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **image_ext** | **str**| GNOS Image type (qcow2 or ova) | - **version** | **str**| GNOS Image version | + **v1_software_rollouts_put_request** | [**V1SoftwareRolloutsPutRequest**](V1SoftwareRolloutsPutRequest.md)| | ### Return type -[**V1SoftwareReleasesDownloadGetResponse**](V1SoftwareReleasesDownloadGetResponse.md) +**object** ### Authorization @@ -26774,7 +27717,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -26785,8 +27728,10 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_software_releases_summary_get** -> V1SoftwareReleasesSummaryGetResponse v1_software_releases_summary_get(authorization) +# **v1_software_rollouts_schedule_post** +> object v1_software_rollouts_schedule_post(authorization, v1_software_rollouts_schedule_post_request) + +Schedule rollout to upgrade now, later or user-triggered ### Example @@ -26794,7 +27739,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_releases_summary_get_response import V1SoftwareReleasesSummaryGetResponse +from graphiant_sdk.models.v1_software_rollouts_schedule_post_request import V1SoftwareRolloutsSchedulePostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26820,13 +27765,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer + v1_software_rollouts_schedule_post_request = graphiant_sdk.V1SoftwareRolloutsSchedulePostRequest() # V1SoftwareRolloutsSchedulePostRequest | try: - api_response = api_instance.v1_software_releases_summary_get(authorization) - print("The response of DefaultApi->v1_software_releases_summary_get:\n") + api_response = api_instance.v1_software_rollouts_schedule_post(authorization, v1_software_rollouts_schedule_post_request) + print("The response of DefaultApi->v1_software_rollouts_schedule_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_software_releases_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_rollouts_schedule_post: %s\n" % e) ``` @@ -26837,10 +27783,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_software_rollouts_schedule_post_request** | [**V1SoftwareRolloutsSchedulePostRequest**](V1SoftwareRolloutsSchedulePostRequest.md)| | ### Return type -[**V1SoftwareReleasesSummaryGetResponse**](V1SoftwareReleasesSummaryGetResponse.md) +**object** ### Authorization @@ -26848,7 +27795,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -28792,6 +29739,162 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_ztagent_bindings_get** +> V1ZtagentBindingsGetResponse v1_ztagent_bindings_get(authorization, enterprise_id=enterprise_id) + +Return the ZTAgent integration binding for an enterprise. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_ztagent_bindings_get_response import V1ZtagentBindingsGetResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + enterprise_id = 1234567891011 # int | (optional) + + try: + api_response = api_instance.v1_ztagent_bindings_get(authorization, enterprise_id=enterprise_id) + print("The response of DefaultApi->v1_ztagent_bindings_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_ztagent_bindings_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **enterprise_id** | **int**| | [optional] + +### Return type + +[**V1ZtagentBindingsGetResponse**](V1ZtagentBindingsGetResponse.md) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **v1_ztagent_bindings_put** +> object v1_ztagent_bindings_put(authorization, v1_ztagent_bindings_put_request) + +Create or replace the ZTAgent integration binding for an enterprise (site and customer identifiers). + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_ztagent_bindings_put_request import V1ZtagentBindingsPutRequest +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + v1_ztagent_bindings_put_request = graphiant_sdk.V1ZtagentBindingsPutRequest() # V1ZtagentBindingsPutRequest | + + try: + api_response = api_instance.v1_ztagent_bindings_put(authorization, v1_ztagent_bindings_put_request) + print("The response of DefaultApi->v1_ztagent_bindings_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_ztagent_bindings_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_ztagent_bindings_put_request** | [**V1ZtagentBindingsPutRequest**](V1ZtagentBindingsPutRequest.md)| | + +### Return type + +**object** + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v2_ack_createupdate_post** > object v2_ack_createupdate_post(authorization, v2_ack_createupdate_post_request) @@ -34717,6 +35820,84 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v2_monitoring_macsec_device_id_status_get** +> V2MonitoringMacsecDeviceIdStatusGetResponse v2_monitoring_macsec_device_id_status_get(authorization, device_id) + +Returns the MACsec status for all interfaces on a device + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response import V2MonitoringMacsecDeviceIdStatusGetResponse +from graphiant_sdk.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.graphiant.com +# See configuration.py for a list of all supported configuration parameters. +configuration = graphiant_sdk.Configuration( + host = "https://api.graphiant.com" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure API key authorization: jwtAuth +configuration.api_key['jwtAuth'] = os.environ["API_KEY"] + +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['jwtAuth'] = 'Bearer' + +# Enter a context with an instance of the API client +with graphiant_sdk.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = graphiant_sdk.DefaultApi(api_client) + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + device_id = 1234567891011 # int | + + try: + api_response = api_instance.v2_monitoring_macsec_device_id_status_get(authorization, device_id) + print("The response of DefaultApi->v2_monitoring_macsec_device_id_status_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v2_monitoring_macsec_device_id_status_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **device_id** | **int**| | + +### Return type + +[**V2MonitoringMacsecDeviceIdStatusGetResponse**](V2MonitoringMacsecDeviceIdStatusGetResponse.md) + +### Authorization + +[jwtAuth](../README.md#jwtAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v2_monitoring_policy_post** > V2MonitoringPolicyPostResponse v2_monitoring_policy_post(authorization, v2_monitoring_policy_post_request) diff --git a/docs/ManaV2DomainCategory.md b/docs/ManaV2DomainCategory.md new file mode 100644 index 00000000..1ead1704 --- /dev/null +++ b/docs/ManaV2DomainCategory.md @@ -0,0 +1,32 @@ +# ManaV2DomainCategory + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | Optional longer text describing what sites or traffic belong in this category. | [optional] +**id** | **int** | Stable identifier for this domain category in the content-filter catalog. | [optional] +**name** | **str** | Human-readable name of the domain category. | [optional] +**type** | **str** | Optional category classifier or grouping hint from the catalog (e.g. vendor-specific type). | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_domain_category import ManaV2DomainCategory + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2DomainCategory from a JSON string +mana_v2_domain_category_instance = ManaV2DomainCategory.from_json(json) +# print the JSON string representation of the object +print(ManaV2DomainCategory.to_json()) + +# convert the object into a dict +mana_v2_domain_category_dict = mana_v2_domain_category_instance.to_dict() +# create an instance of ManaV2DomainCategory from a dict +mana_v2_domain_category_from_dict = ManaV2DomainCategory.from_dict(mana_v2_domain_category_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ManaV2GlobalContentFilterConfig.md b/docs/ManaV2GlobalContentFilterConfig.md new file mode 100644 index 00000000..0a9162ea --- /dev/null +++ b/docs/ManaV2GlobalContentFilterConfig.md @@ -0,0 +1,33 @@ +# ManaV2GlobalContentFilterConfig + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lan_names** | **List[str]** | | [optional] +**name** | **str** | Display name for this global content filter configuration. | [optional] +**rules** | [**List[ManaV2GlobalContentFilterRule]**](ManaV2GlobalContentFilterRule.md) | | [optional] +**site_list_id** | **int** | Site list whose members this content filter applies to; omit the oneof when no site scope is set. | [optional] +**use_all_sites** | **bool** | When true, the filter applies to all sites in the tenant (must be the constant true). | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_global_content_filter_config import ManaV2GlobalContentFilterConfig + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2GlobalContentFilterConfig from a JSON string +mana_v2_global_content_filter_config_instance = ManaV2GlobalContentFilterConfig.from_json(json) +# print the JSON string representation of the object +print(ManaV2GlobalContentFilterConfig.to_json()) + +# convert the object into a dict +mana_v2_global_content_filter_config_dict = mana_v2_global_content_filter_config_instance.to_dict() +# create an instance of ManaV2GlobalContentFilterConfig from a dict +mana_v2_global_content_filter_config_from_dict = ManaV2GlobalContentFilterConfig.from_dict(mana_v2_global_content_filter_config_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ManaV2GlobalContentFilterRule.md b/docs/ManaV2GlobalContentFilterRule.md new file mode 100644 index 00000000..38725665 --- /dev/null +++ b/docs/ManaV2GlobalContentFilterRule.md @@ -0,0 +1,30 @@ +# ManaV2GlobalContentFilterRule + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain_category_id** | **int** | ID of the category whose traffic will be blocked by the content filter. | [optional] +**exception_wildcards** | **List[str]** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_global_content_filter_rule import ManaV2GlobalContentFilterRule + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2GlobalContentFilterRule from a JSON string +mana_v2_global_content_filter_rule_instance = ManaV2GlobalContentFilterRule.from_json(json) +# print the JSON string representation of the object +print(ManaV2GlobalContentFilterRule.to_json()) + +# convert the object into a dict +mana_v2_global_content_filter_rule_dict = mana_v2_global_content_filter_rule_instance.to_dict() +# create an instance of ManaV2GlobalContentFilterRule from a dict +mana_v2_global_content_filter_rule_from_dict = ManaV2GlobalContentFilterRule.from_dict(mana_v2_global_content_filter_rule_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ManaV2Region.md b/docs/ManaV2Region.md index 44d2735e..473b0d1c 100644 --- a/docs/ManaV2Region.md +++ b/docs/ManaV2Region.md @@ -5,8 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**coordinates** | [**ManaV2RegionCoordinates**](ManaV2RegionCoordinates.md) | | [optional] **id** | **int** | | [optional] **name** | **str** | | [optional] +**region_iso_code** | **str** | | [optional] **unavailable** | **bool** | | [optional] ## Example diff --git a/docs/ManaV2RegionCoordinates.md b/docs/ManaV2RegionCoordinates.md new file mode 100644 index 00000000..6035d7de --- /dev/null +++ b/docs/ManaV2RegionCoordinates.md @@ -0,0 +1,30 @@ +# ManaV2RegionCoordinates + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**latitude** | **float** | | [optional] +**longitude** | **float** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_region_coordinates import ManaV2RegionCoordinates + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2RegionCoordinates from a JSON string +mana_v2_region_coordinates_instance = ManaV2RegionCoordinates.from_json(json) +# print the JSON string representation of the object +print(ManaV2RegionCoordinates.to_json()) + +# convert the object into a dict +mana_v2_region_coordinates_dict = mana_v2_region_coordinates_instance.to_dict() +# create an instance of ManaV2RegionCoordinates from a dict +mana_v2_region_coordinates_from_dict = ManaV2RegionCoordinates.from_dict(mana_v2_region_coordinates_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpgradeMonthlyRecurrence.md b/docs/UpgradeMonthlyRecurrence.md new file mode 100644 index 00000000..1cae447c --- /dev/null +++ b/docs/UpgradeMonthlyRecurrence.md @@ -0,0 +1,31 @@ +# UpgradeMonthlyRecurrence + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **int** | Calendar day of month (1–31) for fixed-date monthly recurrence; optional if ordinal and weekday are set. | [optional] +**ordinal** | **str** | For nth-weekday-of-month style recurrence; use together with weekday, or use date instead. | [optional] +**weekday** | **str** | Weekday paired with ordinal for monthly nth-weekday recurrence; optional if date is set. | [optional] + +## Example + +```python +from graphiant_sdk.models.upgrade_monthly_recurrence import UpgradeMonthlyRecurrence + +# TODO update the JSON string below +json = "{}" +# create an instance of UpgradeMonthlyRecurrence from a JSON string +upgrade_monthly_recurrence_instance = UpgradeMonthlyRecurrence.from_json(json) +# print the JSON string representation of the object +print(UpgradeMonthlyRecurrence.to_json()) + +# convert the object into a dict +upgrade_monthly_recurrence_dict = upgrade_monthly_recurrence_instance.to_dict() +# create an instance of UpgradeMonthlyRecurrence from a dict +upgrade_monthly_recurrence_from_dict = UpgradeMonthlyRecurrence.from_dict(upgrade_monthly_recurrence_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpgradeRecurringSchedule.md b/docs/UpgradeRecurringSchedule.md new file mode 100644 index 00000000..a2267719 --- /dev/null +++ b/docs/UpgradeRecurringSchedule.md @@ -0,0 +1,32 @@ +# UpgradeRecurringSchedule + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**monthly** | [**UpgradeMonthlyRecurrence**](UpgradeMonthlyRecurrence.md) | | [optional] +**starts_at_ts** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | +**weekly** | [**UpgradeWeeklyRecurrence**](UpgradeWeeklyRecurrence.md) | | [optional] +**yearly** | [**UpgradeYearlyRecurrence**](UpgradeYearlyRecurrence.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.upgrade_recurring_schedule import UpgradeRecurringSchedule + +# TODO update the JSON string below +json = "{}" +# create an instance of UpgradeRecurringSchedule from a JSON string +upgrade_recurring_schedule_instance = UpgradeRecurringSchedule.from_json(json) +# print the JSON string representation of the object +print(UpgradeRecurringSchedule.to_json()) + +# convert the object into a dict +upgrade_recurring_schedule_dict = upgrade_recurring_schedule_instance.to_dict() +# create an instance of UpgradeRecurringSchedule from a dict +upgrade_recurring_schedule_from_dict = UpgradeRecurringSchedule.from_dict(upgrade_recurring_schedule_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpgradeRollout.md b/docs/UpgradeRollout.md new file mode 100644 index 00000000..2a1ee537 --- /dev/null +++ b/docs/UpgradeRollout.md @@ -0,0 +1,35 @@ +# UpgradeRollout + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devices** | [**List[UpgradeRolloutDevice]**](UpgradeRolloutDevice.md) | | [optional] +**has_failed** | **bool** | True if any device in the rollout has a failed upgrade state. | [optional] +**id** | **int** | Server-assigned rollout identifier. | [optional] +**last_run_ts** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] +**next_run_ts** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] +**num_devices** | **int** | Count of devices associated with the rollout. | [optional] +**rollout_config** | [**UpgradeRolloutConfig**](UpgradeRolloutConfig.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.upgrade_rollout import UpgradeRollout + +# TODO update the JSON string below +json = "{}" +# create an instance of UpgradeRollout from a JSON string +upgrade_rollout_instance = UpgradeRollout.from_json(json) +# print the JSON string representation of the object +print(UpgradeRollout.to_json()) + +# convert the object into a dict +upgrade_rollout_dict = upgrade_rollout_instance.to_dict() +# create an instance of UpgradeRollout from a dict +upgrade_rollout_from_dict = UpgradeRollout.from_dict(upgrade_rollout_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpgradeRolloutConfig.md b/docs/UpgradeRolloutConfig.md new file mode 100644 index 00000000..8737bf57 --- /dev/null +++ b/docs/UpgradeRolloutConfig.md @@ -0,0 +1,34 @@ +# UpgradeRolloutConfig + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | Upgrade action to perform (e.g. install+activate, install only, activate, auto-upgrade). (required) | +**description** | **str** | Optional longer description of the rollout. | [optional] +**device_ids** | **List[int]** | | [optional] +**name** | **str** | Human-readable rollout name unique within the enterprise. (required) | +**release** | **str** | Target software release for devices in this rollout. (required) | +**schedule** | [**UpgradeRecurringSchedule**](UpgradeRecurringSchedule.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.upgrade_rollout_config import UpgradeRolloutConfig + +# TODO update the JSON string below +json = "{}" +# create an instance of UpgradeRolloutConfig from a JSON string +upgrade_rollout_config_instance = UpgradeRolloutConfig.from_json(json) +# print the JSON string representation of the object +print(UpgradeRolloutConfig.to_json()) + +# convert the object into a dict +upgrade_rollout_config_dict = upgrade_rollout_config_instance.to_dict() +# create an instance of UpgradeRolloutConfig from a dict +upgrade_rollout_config_from_dict = UpgradeRolloutConfig.from_dict(upgrade_rollout_config_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpgradeRolloutDevice.md b/docs/UpgradeRolloutDevice.md new file mode 100644 index 00000000..d4736eaf --- /dev/null +++ b/docs/UpgradeRolloutDevice.md @@ -0,0 +1,30 @@ +# UpgradeRolloutDevice + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_id** | **int** | Device identifier. (required) | [optional] +**hostname** | **str** | Device hostname for display. | [optional] + +## Example + +```python +from graphiant_sdk.models.upgrade_rollout_device import UpgradeRolloutDevice + +# TODO update the JSON string below +json = "{}" +# create an instance of UpgradeRolloutDevice from a JSON string +upgrade_rollout_device_instance = UpgradeRolloutDevice.from_json(json) +# print the JSON string representation of the object +print(UpgradeRolloutDevice.to_json()) + +# convert the object into a dict +upgrade_rollout_device_dict = upgrade_rollout_device_instance.to_dict() +# create an instance of UpgradeRolloutDevice from a dict +upgrade_rollout_device_from_dict = UpgradeRolloutDevice.from_dict(upgrade_rollout_device_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpgradeUpgradeOccurrence.md b/docs/UpgradeUpgradeOccurrence.md index 2ce08054..41157cd5 100644 --- a/docs/UpgradeUpgradeOccurrence.md +++ b/docs/UpgradeUpgradeOccurrence.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **hour** | **int** | | [optional] **minute** | **int** | | [optional] **occurrence_in_month** | **int** | | [optional] +**ordinal** | **str** | | [optional] +**weekday** | **str** | | [optional] ## Example diff --git a/docs/UpgradeUpgradeSummary.md b/docs/UpgradeUpgradeSummary.md index 2cdc8f72..ed4380d5 100644 --- a/docs/UpgradeUpgradeSummary.md +++ b/docs/UpgradeUpgradeSummary.md @@ -11,6 +11,8 @@ Name | Type | Description | Notes **last_running_version** | [**UpgradeSwVersion**](UpgradeSwVersion.md) | | [optional] **last_upgrade_ts** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] **ready_for_activation_version** | [**UpgradeSwVersion**](UpgradeSwVersion.md) | | [optional] +**rollout_id** | **int** | | [optional] +**rollout_name** | **str** | | [optional] **running_version** | [**UpgradeSwVersion**](UpgradeSwVersion.md) | | [optional] **schedule** | [**UpgradeSchedule**](UpgradeSchedule.md) | | [optional] **status** | **str** | | [optional] diff --git a/docs/UpgradeWeeklyRecurrence.md b/docs/UpgradeWeeklyRecurrence.md new file mode 100644 index 00000000..8961dfd7 --- /dev/null +++ b/docs/UpgradeWeeklyRecurrence.md @@ -0,0 +1,30 @@ +# UpgradeWeeklyRecurrence + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interval** | **int** | Which occurrence of the weekday in the month applies for weekly-style recurrence (1–52, aligned with schedule validation). (required) | +**weekday** | **str** | Day of week for the weekly recurrence. (required) | + +## Example + +```python +from graphiant_sdk.models.upgrade_weekly_recurrence import UpgradeWeeklyRecurrence + +# TODO update the JSON string below +json = "{}" +# create an instance of UpgradeWeeklyRecurrence from a JSON string +upgrade_weekly_recurrence_instance = UpgradeWeeklyRecurrence.from_json(json) +# print the JSON string representation of the object +print(UpgradeWeeklyRecurrence.to_json()) + +# convert the object into a dict +upgrade_weekly_recurrence_dict = upgrade_weekly_recurrence_instance.to_dict() +# create an instance of UpgradeWeeklyRecurrence from a dict +upgrade_weekly_recurrence_from_dict = UpgradeWeeklyRecurrence.from_dict(upgrade_weekly_recurrence_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpgradeYearlyRecurrence.md b/docs/UpgradeYearlyRecurrence.md new file mode 100644 index 00000000..55ce6507 --- /dev/null +++ b/docs/UpgradeYearlyRecurrence.md @@ -0,0 +1,32 @@ +# UpgradeYearlyRecurrence + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **int** | Calendar day (1–31) for fixed month+date yearly recurrence. | [optional] +**month** | **int** | Month of year (1–12) for yearly recurrence. (required) | +**ordinal** | **str** | For nth-weekday-in-month yearly recurrence; use with weekday, or use month + date. | [optional] +**weekday** | **str** | Weekday paired with ordinal for yearly recurrence. | [optional] + +## Example + +```python +from graphiant_sdk.models.upgrade_yearly_recurrence import UpgradeYearlyRecurrence + +# TODO update the JSON string below +json = "{}" +# create an instance of UpgradeYearlyRecurrence from a JSON string +upgrade_yearly_recurrence_instance = UpgradeYearlyRecurrence.from_json(json) +# print the JSON string representation of the object +print(UpgradeYearlyRecurrence.to_json()) + +# convert the object into a dict +upgrade_yearly_recurrence_dict = upgrade_yearly_recurrence_instance.to_dict() +# create an instance of UpgradeYearlyRecurrence from a dict +upgrade_yearly_recurrence_from_dict = UpgradeYearlyRecurrence.from_dict(upgrade_yearly_recurrence_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GlobalContentFiltersGetResponse.md b/docs/V1GlobalContentFiltersGetResponse.md new file mode 100644 index 00000000..a5e07625 --- /dev/null +++ b/docs/V1GlobalContentFiltersGetResponse.md @@ -0,0 +1,29 @@ +# V1GlobalContentFiltersGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rows** | [**List[V1GlobalContentFiltersGetResponseRow]**](V1GlobalContentFiltersGetResponseRow.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_global_content_filters_get_response import V1GlobalContentFiltersGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1GlobalContentFiltersGetResponse from a JSON string +v1_global_content_filters_get_response_instance = V1GlobalContentFiltersGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1GlobalContentFiltersGetResponse.to_json()) + +# convert the object into a dict +v1_global_content_filters_get_response_dict = v1_global_content_filters_get_response_instance.to_dict() +# create an instance of V1GlobalContentFiltersGetResponse from a dict +v1_global_content_filters_get_response_from_dict = V1GlobalContentFiltersGetResponse.from_dict(v1_global_content_filters_get_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GlobalContentFiltersGetResponseRow.md b/docs/V1GlobalContentFiltersGetResponseRow.md new file mode 100644 index 00000000..535cbf7b --- /dev/null +++ b/docs/V1GlobalContentFiltersGetResponseRow.md @@ -0,0 +1,35 @@ +# V1GlobalContentFiltersGetResponseRow + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] +**global_content_filter_id** | **int** | ID for the global content filter. | [optional] +**global_content_filter_name** | **str** | Given name of this global content filter. | [optional] +**lans** | [**List[V1GlobalContentFiltersGetResponseRowLanEntry]**](V1GlobalContentFiltersGetResponseRowLanEntry.md) | | [optional] +**rules** | [**List[V1GlobalContentFiltersGetResponseRowRuleEntry]**](V1GlobalContentFiltersGetResponseRowRuleEntry.md) | | [optional] +**sites** | [**List[V1GlobalContentFiltersGetResponseRowSiteEntry]**](V1GlobalContentFiltersGetResponseRowSiteEntry.md) | | [optional] +**updated_at** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_global_content_filters_get_response_row import V1GlobalContentFiltersGetResponseRow + +# TODO update the JSON string below +json = "{}" +# create an instance of V1GlobalContentFiltersGetResponseRow from a JSON string +v1_global_content_filters_get_response_row_instance = V1GlobalContentFiltersGetResponseRow.from_json(json) +# print the JSON string representation of the object +print(V1GlobalContentFiltersGetResponseRow.to_json()) + +# convert the object into a dict +v1_global_content_filters_get_response_row_dict = v1_global_content_filters_get_response_row_instance.to_dict() +# create an instance of V1GlobalContentFiltersGetResponseRow from a dict +v1_global_content_filters_get_response_row_from_dict = V1GlobalContentFiltersGetResponseRow.from_dict(v1_global_content_filters_get_response_row_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GlobalContentFiltersGetResponseRowLanEntry.md b/docs/V1GlobalContentFiltersGetResponseRowLanEntry.md new file mode 100644 index 00000000..5810460b --- /dev/null +++ b/docs/V1GlobalContentFiltersGetResponseRowLanEntry.md @@ -0,0 +1,29 @@ +# V1GlobalContentFiltersGetResponseRowLanEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lan_name** | **str** | Name of a LAN segment that the filter is applied on. | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_global_content_filters_get_response_row_lan_entry import V1GlobalContentFiltersGetResponseRowLanEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of V1GlobalContentFiltersGetResponseRowLanEntry from a JSON string +v1_global_content_filters_get_response_row_lan_entry_instance = V1GlobalContentFiltersGetResponseRowLanEntry.from_json(json) +# print the JSON string representation of the object +print(V1GlobalContentFiltersGetResponseRowLanEntry.to_json()) + +# convert the object into a dict +v1_global_content_filters_get_response_row_lan_entry_dict = v1_global_content_filters_get_response_row_lan_entry_instance.to_dict() +# create an instance of V1GlobalContentFiltersGetResponseRowLanEntry from a dict +v1_global_content_filters_get_response_row_lan_entry_from_dict = V1GlobalContentFiltersGetResponseRowLanEntry.from_dict(v1_global_content_filters_get_response_row_lan_entry_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GlobalContentFiltersGetResponseRowRuleEntry.md b/docs/V1GlobalContentFiltersGetResponseRowRuleEntry.md new file mode 100644 index 00000000..a53b75f8 --- /dev/null +++ b/docs/V1GlobalContentFiltersGetResponseRowRuleEntry.md @@ -0,0 +1,30 @@ +# V1GlobalContentFiltersGetResponseRowRuleEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain_category** | **str** | Name of the domain category whose traffic is blocked by this rule. | [optional] +**exception_wildcards** | **List[str]** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_global_content_filters_get_response_row_rule_entry import V1GlobalContentFiltersGetResponseRowRuleEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of V1GlobalContentFiltersGetResponseRowRuleEntry from a JSON string +v1_global_content_filters_get_response_row_rule_entry_instance = V1GlobalContentFiltersGetResponseRowRuleEntry.from_json(json) +# print the JSON string representation of the object +print(V1GlobalContentFiltersGetResponseRowRuleEntry.to_json()) + +# convert the object into a dict +v1_global_content_filters_get_response_row_rule_entry_dict = v1_global_content_filters_get_response_row_rule_entry_instance.to_dict() +# create an instance of V1GlobalContentFiltersGetResponseRowRuleEntry from a dict +v1_global_content_filters_get_response_row_rule_entry_from_dict = V1GlobalContentFiltersGetResponseRowRuleEntry.from_dict(v1_global_content_filters_get_response_row_rule_entry_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GlobalContentFiltersGetResponseRowSiteEntry.md b/docs/V1GlobalContentFiltersGetResponseRowSiteEntry.md new file mode 100644 index 00000000..71dd166b --- /dev/null +++ b/docs/V1GlobalContentFiltersGetResponseRowSiteEntry.md @@ -0,0 +1,29 @@ +# V1GlobalContentFiltersGetResponseRowSiteEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**site_name** | **str** | Display name of a site included in this filter's global or site-list-bounded scope. | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_global_content_filters_get_response_row_site_entry import V1GlobalContentFiltersGetResponseRowSiteEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of V1GlobalContentFiltersGetResponseRowSiteEntry from a JSON string +v1_global_content_filters_get_response_row_site_entry_instance = V1GlobalContentFiltersGetResponseRowSiteEntry.from_json(json) +# print the JSON string representation of the object +print(V1GlobalContentFiltersGetResponseRowSiteEntry.to_json()) + +# convert the object into a dict +v1_global_content_filters_get_response_row_site_entry_dict = v1_global_content_filters_get_response_row_site_entry_instance.to_dict() +# create an instance of V1GlobalContentFiltersGetResponseRowSiteEntry from a dict +v1_global_content_filters_get_response_row_site_entry_from_dict = V1GlobalContentFiltersGetResponseRowSiteEntry.from_dict(v1_global_content_filters_get_response_row_site_entry_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GlobalContentFiltersGlobalContentFilterIdGetResponse.md b/docs/V1GlobalContentFiltersGlobalContentFilterIdGetResponse.md new file mode 100644 index 00000000..3b977040 --- /dev/null +++ b/docs/V1GlobalContentFiltersGlobalContentFilterIdGetResponse.md @@ -0,0 +1,29 @@ +# V1GlobalContentFiltersGlobalContentFilterIdGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**ManaV2GlobalContentFilterConfig**](ManaV2GlobalContentFilterConfig.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_get_response import V1GlobalContentFiltersGlobalContentFilterIdGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1GlobalContentFiltersGlobalContentFilterIdGetResponse from a JSON string +v1_global_content_filters_global_content_filter_id_get_response_instance = V1GlobalContentFiltersGlobalContentFilterIdGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1GlobalContentFiltersGlobalContentFilterIdGetResponse.to_json()) + +# convert the object into a dict +v1_global_content_filters_global_content_filter_id_get_response_dict = v1_global_content_filters_global_content_filter_id_get_response_instance.to_dict() +# create an instance of V1GlobalContentFiltersGlobalContentFilterIdGetResponse from a dict +v1_global_content_filters_global_content_filter_id_get_response_from_dict = V1GlobalContentFiltersGlobalContentFilterIdGetResponse.from_dict(v1_global_content_filters_global_content_filter_id_get_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GlobalContentFiltersGlobalContentFilterIdPutRequest.md b/docs/V1GlobalContentFiltersGlobalContentFilterIdPutRequest.md new file mode 100644 index 00000000..eb35685c --- /dev/null +++ b/docs/V1GlobalContentFiltersGlobalContentFilterIdPutRequest.md @@ -0,0 +1,29 @@ +# V1GlobalContentFiltersGlobalContentFilterIdPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**ManaV2GlobalContentFilterConfig**](ManaV2GlobalContentFilterConfig.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_put_request import V1GlobalContentFiltersGlobalContentFilterIdPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1GlobalContentFiltersGlobalContentFilterIdPutRequest from a JSON string +v1_global_content_filters_global_content_filter_id_put_request_instance = V1GlobalContentFiltersGlobalContentFilterIdPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1GlobalContentFiltersGlobalContentFilterIdPutRequest.to_json()) + +# convert the object into a dict +v1_global_content_filters_global_content_filter_id_put_request_dict = v1_global_content_filters_global_content_filter_id_put_request_instance.to_dict() +# create an instance of V1GlobalContentFiltersGlobalContentFilterIdPutRequest from a dict +v1_global_content_filters_global_content_filter_id_put_request_from_dict = V1GlobalContentFiltersGlobalContentFilterIdPutRequest.from_dict(v1_global_content_filters_global_content_filter_id_put_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GlobalContentFiltersPostRequest.md b/docs/V1GlobalContentFiltersPostRequest.md new file mode 100644 index 00000000..8dc2e99b --- /dev/null +++ b/docs/V1GlobalContentFiltersPostRequest.md @@ -0,0 +1,29 @@ +# V1GlobalContentFiltersPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | [**ManaV2GlobalContentFilterConfig**](ManaV2GlobalContentFilterConfig.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_global_content_filters_post_request import V1GlobalContentFiltersPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1GlobalContentFiltersPostRequest from a JSON string +v1_global_content_filters_post_request_instance = V1GlobalContentFiltersPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1GlobalContentFiltersPostRequest.to_json()) + +# convert the object into a dict +v1_global_content_filters_post_request_dict = v1_global_content_filters_post_request_instance.to_dict() +# create an instance of V1GlobalContentFiltersPostRequest from a dict +v1_global_content_filters_post_request_from_dict = V1GlobalContentFiltersPostRequest.from_dict(v1_global_content_filters_post_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GlobalContentFiltersPostResponse.md b/docs/V1GlobalContentFiltersPostResponse.md new file mode 100644 index 00000000..6f88ab26 --- /dev/null +++ b/docs/V1GlobalContentFiltersPostResponse.md @@ -0,0 +1,29 @@ +# V1GlobalContentFiltersPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**global_content_filter_id** | **int** | Server-assigned ID for the newly created global content filter. | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_global_content_filters_post_response import V1GlobalContentFiltersPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1GlobalContentFiltersPostResponse from a JSON string +v1_global_content_filters_post_response_instance = V1GlobalContentFiltersPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1GlobalContentFiltersPostResponse.to_json()) + +# convert the object into a dict +v1_global_content_filters_post_response_dict = v1_global_content_filters_post_response_instance.to_dict() +# create an instance of V1GlobalContentFiltersPostResponse from a dict +v1_global_content_filters_post_response_from_dict = V1GlobalContentFiltersPostResponse.from_dict(v1_global_content_filters_post_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GlobalDomainCategoriesGetResponse.md b/docs/V1GlobalDomainCategoriesGetResponse.md new file mode 100644 index 00000000..7b7f6839 --- /dev/null +++ b/docs/V1GlobalDomainCategoriesGetResponse.md @@ -0,0 +1,29 @@ +# V1GlobalDomainCategoriesGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain_categories** | [**List[ManaV2DomainCategory]**](ManaV2DomainCategory.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_global_domain_categories_get_response import V1GlobalDomainCategoriesGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1GlobalDomainCategoriesGetResponse from a JSON string +v1_global_domain_categories_get_response_instance = V1GlobalDomainCategoriesGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1GlobalDomainCategoriesGetResponse.to_json()) + +# convert the object into a dict +v1_global_domain_categories_get_response_dict = v1_global_domain_categories_get_response_instance.to_dict() +# create an instance of V1GlobalDomainCategoriesGetResponse from a dict +v1_global_domain_categories_get_response_from_dict = V1GlobalDomainCategoriesGetResponse.from_dict(v1_global_domain_categories_get_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SoftwareRolloutsGetResponse.md b/docs/V1SoftwareRolloutsGetResponse.md new file mode 100644 index 00000000..c5400a4d --- /dev/null +++ b/docs/V1SoftwareRolloutsGetResponse.md @@ -0,0 +1,29 @@ +# V1SoftwareRolloutsGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rollouts** | [**List[UpgradeRollout]**](UpgradeRollout.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_software_rollouts_get_response import V1SoftwareRolloutsGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1SoftwareRolloutsGetResponse from a JSON string +v1_software_rollouts_get_response_instance = V1SoftwareRolloutsGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1SoftwareRolloutsGetResponse.to_json()) + +# convert the object into a dict +v1_software_rollouts_get_response_dict = v1_software_rollouts_get_response_instance.to_dict() +# create an instance of V1SoftwareRolloutsGetResponse from a dict +v1_software_rollouts_get_response_from_dict = V1SoftwareRolloutsGetResponse.from_dict(v1_software_rollouts_get_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SoftwareRolloutsIdGetResponse.md b/docs/V1SoftwareRolloutsIdGetResponse.md new file mode 100644 index 00000000..5f809951 --- /dev/null +++ b/docs/V1SoftwareRolloutsIdGetResponse.md @@ -0,0 +1,29 @@ +# V1SoftwareRolloutsIdGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rollout** | [**UpgradeRollout**](UpgradeRollout.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_software_rollouts_id_get_response import V1SoftwareRolloutsIdGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1SoftwareRolloutsIdGetResponse from a JSON string +v1_software_rollouts_id_get_response_instance = V1SoftwareRolloutsIdGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1SoftwareRolloutsIdGetResponse.to_json()) + +# convert the object into a dict +v1_software_rollouts_id_get_response_dict = v1_software_rollouts_id_get_response_instance.to_dict() +# create an instance of V1SoftwareRolloutsIdGetResponse from a dict +v1_software_rollouts_id_get_response_from_dict = V1SoftwareRolloutsIdGetResponse.from_dict(v1_software_rollouts_id_get_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SoftwareRolloutsPostRequest.md b/docs/V1SoftwareRolloutsPostRequest.md new file mode 100644 index 00000000..35d0bd38 --- /dev/null +++ b/docs/V1SoftwareRolloutsPostRequest.md @@ -0,0 +1,29 @@ +# V1SoftwareRolloutsPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**rollout_config** | [**UpgradeRolloutConfig**](UpgradeRolloutConfig.md) | | + +## Example + +```python +from graphiant_sdk.models.v1_software_rollouts_post_request import V1SoftwareRolloutsPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1SoftwareRolloutsPostRequest from a JSON string +v1_software_rollouts_post_request_instance = V1SoftwareRolloutsPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1SoftwareRolloutsPostRequest.to_json()) + +# convert the object into a dict +v1_software_rollouts_post_request_dict = v1_software_rollouts_post_request_instance.to_dict() +# create an instance of V1SoftwareRolloutsPostRequest from a dict +v1_software_rollouts_post_request_from_dict = V1SoftwareRolloutsPostRequest.from_dict(v1_software_rollouts_post_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SoftwareRolloutsPostResponse.md b/docs/V1SoftwareRolloutsPostResponse.md new file mode 100644 index 00000000..6f88ece3 --- /dev/null +++ b/docs/V1SoftwareRolloutsPostResponse.md @@ -0,0 +1,29 @@ +# V1SoftwareRolloutsPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Identifier of the created rollout. (required) | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_software_rollouts_post_response import V1SoftwareRolloutsPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1SoftwareRolloutsPostResponse from a JSON string +v1_software_rollouts_post_response_instance = V1SoftwareRolloutsPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1SoftwareRolloutsPostResponse.to_json()) + +# convert the object into a dict +v1_software_rollouts_post_response_dict = v1_software_rollouts_post_response_instance.to_dict() +# create an instance of V1SoftwareRolloutsPostResponse from a dict +v1_software_rollouts_post_response_from_dict = V1SoftwareRolloutsPostResponse.from_dict(v1_software_rollouts_post_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SoftwareRolloutsPutRequest.md b/docs/V1SoftwareRolloutsPutRequest.md new file mode 100644 index 00000000..98102c70 --- /dev/null +++ b/docs/V1SoftwareRolloutsPutRequest.md @@ -0,0 +1,30 @@ +# V1SoftwareRolloutsPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Rollout identifier to update. (required) | +**rollout_config** | [**UpgradeRolloutConfig**](UpgradeRolloutConfig.md) | | + +## Example + +```python +from graphiant_sdk.models.v1_software_rollouts_put_request import V1SoftwareRolloutsPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1SoftwareRolloutsPutRequest from a JSON string +v1_software_rollouts_put_request_instance = V1SoftwareRolloutsPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1SoftwareRolloutsPutRequest.to_json()) + +# convert the object into a dict +v1_software_rollouts_put_request_dict = v1_software_rollouts_put_request_instance.to_dict() +# create an instance of V1SoftwareRolloutsPutRequest from a dict +v1_software_rollouts_put_request_from_dict = V1SoftwareRolloutsPutRequest.from_dict(v1_software_rollouts_put_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1SoftwareRolloutsSchedulePostRequest.md b/docs/V1SoftwareRolloutsSchedulePostRequest.md new file mode 100644 index 00000000..789be3ea --- /dev/null +++ b/docs/V1SoftwareRolloutsSchedulePostRequest.md @@ -0,0 +1,31 @@ +# V1SoftwareRolloutsSchedulePostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**failed_only** | **bool** | When true, only devices previously marked failed are rescheduled. | [optional] +**id** | **int** | Rollout identifier to schedule. (required) | +**ts** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_software_rollouts_schedule_post_request import V1SoftwareRolloutsSchedulePostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1SoftwareRolloutsSchedulePostRequest from a JSON string +v1_software_rollouts_schedule_post_request_instance = V1SoftwareRolloutsSchedulePostRequest.from_json(json) +# print the JSON string representation of the object +print(V1SoftwareRolloutsSchedulePostRequest.to_json()) + +# convert the object into a dict +v1_software_rollouts_schedule_post_request_dict = v1_software_rollouts_schedule_post_request_instance.to_dict() +# create an instance of V1SoftwareRolloutsSchedulePostRequest from a dict +v1_software_rollouts_schedule_post_request_from_dict = V1SoftwareRolloutsSchedulePostRequest.from_dict(v1_software_rollouts_schedule_post_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ZtagentBindingsGetResponse.md b/docs/V1ZtagentBindingsGetResponse.md new file mode 100644 index 00000000..c5513780 --- /dev/null +++ b/docs/V1ZtagentBindingsGetResponse.md @@ -0,0 +1,31 @@ +# V1ZtagentBindingsGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer_id** | **str** | | [optional] +**enterprise_id** | **int** | | [optional] +**site_id** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_ztagent_bindings_get_response import V1ZtagentBindingsGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ZtagentBindingsGetResponse from a JSON string +v1_ztagent_bindings_get_response_instance = V1ZtagentBindingsGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ZtagentBindingsGetResponse.to_json()) + +# convert the object into a dict +v1_ztagent_bindings_get_response_dict = v1_ztagent_bindings_get_response_instance.to_dict() +# create an instance of V1ZtagentBindingsGetResponse from a dict +v1_ztagent_bindings_get_response_from_dict = V1ZtagentBindingsGetResponse.from_dict(v1_ztagent_bindings_get_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1ZtagentBindingsPutRequest.md b/docs/V1ZtagentBindingsPutRequest.md new file mode 100644 index 00000000..03170310 --- /dev/null +++ b/docs/V1ZtagentBindingsPutRequest.md @@ -0,0 +1,31 @@ +# V1ZtagentBindingsPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer_id** | **str** | | [optional] +**enterprise_id** | **int** | | [optional] +**site_id** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_ztagent_bindings_put_request import V1ZtagentBindingsPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ZtagentBindingsPutRequest from a JSON string +v1_ztagent_bindings_put_request_instance = V1ZtagentBindingsPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1ZtagentBindingsPutRequest.to_json()) + +# convert the object into a dict +v1_ztagent_bindings_put_request_dict = v1_ztagent_bindings_put_request_instance.to_dict() +# create an instance of V1ZtagentBindingsPutRequest from a dict +v1_ztagent_bindings_put_request_from_dict = V1ZtagentBindingsPutRequest.from_dict(v1_ztagent_bindings_put_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V2AssuranceTopologyClientSummariesPostResponseSummary.md b/docs/V2AssuranceTopologyClientSummariesPostResponseSummary.md index 0b42470b..f6563997 100644 --- a/docs/V2AssuranceTopologyClientSummariesPostResponseSummary.md +++ b/docs/V2AssuranceTopologyClientSummariesPostResponseSummary.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_server_key** | **str** | | [optional] **client_ip** | **str** | | [optional] +**client_username** | **str** | | [optional] **lan_segments** | **List[str]** | | [optional] **server_ip** | **str** | | [optional] **server_port** | **int** | | [optional] diff --git a/docs/V2MonitoringMacsecDeviceIdStatusGetResponse.md b/docs/V2MonitoringMacsecDeviceIdStatusGetResponse.md new file mode 100644 index 00000000..a7751ddf --- /dev/null +++ b/docs/V2MonitoringMacsecDeviceIdStatusGetResponse.md @@ -0,0 +1,29 @@ +# V2MonitoringMacsecDeviceIdStatusGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**macsec_statuses** | [**List[V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus]**](V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response import V2MonitoringMacsecDeviceIdStatusGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V2MonitoringMacsecDeviceIdStatusGetResponse from a JSON string +v2_monitoring_macsec_device_id_status_get_response_instance = V2MonitoringMacsecDeviceIdStatusGetResponse.from_json(json) +# print the JSON string representation of the object +print(V2MonitoringMacsecDeviceIdStatusGetResponse.to_json()) + +# convert the object into a dict +v2_monitoring_macsec_device_id_status_get_response_dict = v2_monitoring_macsec_device_id_status_get_response_instance.to_dict() +# create an instance of V2MonitoringMacsecDeviceIdStatusGetResponse from a dict +v2_monitoring_macsec_device_id_status_get_response_from_dict = V2MonitoringMacsecDeviceIdStatusGetResponse.from_dict(v2_monitoring_macsec_device_id_status_get_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus.md b/docs/V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus.md new file mode 100644 index 00000000..33707727 --- /dev/null +++ b/docs/V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus.md @@ -0,0 +1,30 @@ +# V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interface_name** | **str** | | [optional] +**status** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response_ma_csec_status import V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus + +# TODO update the JSON string below +json = "{}" +# create an instance of V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus from a JSON string +v2_monitoring_macsec_device_id_status_get_response_ma_csec_status_instance = V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus.from_json(json) +# print the JSON string representation of the object +print(V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus.to_json()) + +# convert the object into a dict +v2_monitoring_macsec_device_id_status_get_response_ma_csec_status_dict = v2_monitoring_macsec_device_id_status_get_response_ma_csec_status_instance.to_dict() +# create an instance of V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus from a dict +v2_monitoring_macsec_device_id_status_get_response_ma_csec_status_from_dict = V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus.from_dict(v2_monitoring_macsec_device_id_status_get_response_ma_csec_status_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/graphiant_api_docs_v26.3.1.json b/graphiant_api_docs_v26.4.1.json similarity index 97% rename from graphiant_api_docs_v26.3.1.json rename to graphiant_api_docs_v26.4.1.json index cd11986f..41b2ebed 100755 --- a/graphiant_api_docs_v26.3.1.json +++ b/graphiant_api_docs_v26.4.1.json @@ -413,6 +413,14 @@ "example": "example string", "description": "List of teams recipients" } + }, + "webhookUrlList": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "List of webhook_url recipients" + } } }, "additionalProperties": false @@ -2588,6 +2596,10 @@ "format": "int32", "example": 123 }, + "regionIsoCode": { + "type": "string", + "example": "example string" + }, "regionName": { "type": "string", "example": "example string" @@ -2981,6 +2993,10 @@ "type": "string", "example": "example string" }, + "clientUsername": { + "type": "string", + "example": "example string" + }, "lanSegments": { "type": "array", "items": { @@ -3087,6 +3103,10 @@ "$ref": "#/components/schemas/assuranceClientSessionEndpointLink" } }, + "clientUsername": { + "type": "string", + "example": "example string" + }, "firstSeenTs": { "$ref": "#/components/schemas/googleProtobufTimestamp" }, @@ -4121,6 +4141,49 @@ }, "additionalProperties": false }, + "v1ZtagentBindingsPutRequest": { + "type": "object", + "properties": { + "customerId": { + "type": "string", + "example": "example string" + }, + "enterpriseId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "siteId": { + "type": "string", + "example": "example string" + } + }, + "additionalProperties": false + }, + "v1ZtagentBindingsPutResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1ZtagentBindingsGetResponse": { + "type": "object", + "properties": { + "customerId": { + "type": "string", + "example": "example string" + }, + "enterpriseId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "siteId": { + "type": "string", + "example": "example string" + } + }, + "additionalProperties": false + }, "v1DevicesDeviceIdJobsJobIdGetResponse": { "type": "object", "properties": { @@ -10856,6 +10919,9 @@ "manaV2Region": { "type": "object", "properties": { + "coordinates": { + "$ref": "#/components/schemas/manaV2RegionCoordinates" + }, "id": { "type": "integer", "format": "int32", @@ -10865,6 +10931,10 @@ "type": "string", "example": "example string" }, + "regionIsoCode": { + "type": "string", + "example": "example string" + }, "unavailable": { "type": "boolean", "example": true @@ -10872,6 +10942,22 @@ }, "additionalProperties": false }, + "manaV2RegionCoordinates": { + "type": "object", + "properties": { + "latitude": { + "type": "number", + "format": "double", + "example": 123.45 + }, + "longitude": { + "type": "number", + "format": "double", + "example": 123.45 + } + }, + "additionalProperties": false + }, "manaV2RoutingPolicy": { "type": "object", "properties": { @@ -24318,6 +24404,244 @@ }, "additionalProperties": false }, + "v1GlobalDomainCategoriesGetResponse": { + "type": "object", + "properties": { + "domainCategories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2DomainCategory" + } + } + }, + "additionalProperties": false + }, + "manaV2DomainCategory": { + "type": "object", + "properties": { + "description": { + "type": "string", + "example": "example string", + "description": "Optional longer text describing what sites or traffic belong in this category." + }, + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Stable identifier for this domain category in the content-filter catalog." + }, + "name": { + "type": "string", + "example": "example string", + "description": "Human-readable name of the domain category." + }, + "type": { + "type": "string", + "example": "example string", + "description": "Optional category classifier or grouping hint from the catalog (e.g. vendor-specific type)." + } + }, + "additionalProperties": false + }, + "v1GlobalContentFiltersGetResponse": { + "type": "object", + "properties": { + "rows": { + "type": "array", + "items": { + "$ref": "#/components/schemas/v1GlobalContentFiltersGetResponseRow" + } + } + }, + "additionalProperties": false + }, + "v1GlobalContentFiltersGetResponseRow": { + "type": "object", + "properties": { + "createdAt": { + "$ref": "#/components/schemas/googleProtobufTimestamp" + }, + "globalContentFilterId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "ID for the global content filter." + }, + "globalContentFilterName": { + "type": "string", + "example": "example string", + "description": "Given name of this global content filter." + }, + "lans": { + "type": "array", + "items": { + "$ref": "#/components/schemas/v1GlobalContentFiltersGetResponseRowLanEntry" + } + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/v1GlobalContentFiltersGetResponseRowRuleEntry" + } + }, + "sites": { + "type": "array", + "items": { + "$ref": "#/components/schemas/v1GlobalContentFiltersGetResponseRowSiteEntry" + } + }, + "updatedAt": { + "$ref": "#/components/schemas/googleProtobufTimestamp" + } + }, + "additionalProperties": false + }, + "v1GlobalContentFiltersGetResponseRowLanEntry": { + "type": "object", + "properties": { + "lanName": { + "type": "string", + "example": "example string", + "description": "Name of a LAN segment that the filter is applied on." + } + }, + "additionalProperties": false + }, + "v1GlobalContentFiltersGetResponseRowRuleEntry": { + "type": "object", + "properties": { + "domainCategory": { + "type": "string", + "example": "example string", + "description": "Name of the domain category whose traffic is blocked by this rule." + }, + "exceptionWildcards": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Wildcard patterns for domains that remain allowed despite the category block." + } + } + }, + "additionalProperties": false + }, + "v1GlobalContentFiltersGetResponseRowSiteEntry": { + "type": "object", + "properties": { + "siteName": { + "type": "string", + "example": "example string", + "description": "Display name of a site included in this filter's global or site-list-bounded scope." + } + }, + "additionalProperties": false + }, + "v1GlobalContentFiltersPostRequest": { + "type": "object", + "properties": { + "config": { + "$ref": "#/components/schemas/manaV2GlobalContentFilterConfig" + } + }, + "additionalProperties": false + }, + "manaV2GlobalContentFilterConfig": { + "type": "object", + "properties": { + "lanNames": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "LAN interface names to scope the filter; when empty, all LANs are included." + } + }, + "name": { + "type": "string", + "example": "example string", + "description": "Display name for this global content filter configuration." + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2GlobalContentFilterRule" + } + }, + "siteListId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Site list whose members this content filter applies to; omit the oneof when no site scope is set." + }, + "useAllSites": { + "type": "boolean", + "example": true, + "description": "When true, the filter applies to all sites in the tenant (must be the constant true)." + } + }, + "additionalProperties": false + }, + "manaV2GlobalContentFilterRule": { + "type": "object", + "properties": { + "domainCategoryId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "ID of the category whose traffic will be blocked by the content filter." + }, + "exceptionWildcards": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "List of wildcard strings each representing a selection of domains that are exceptions that will not be blocked even if it is in the provided category" + } + } + }, + "additionalProperties": false + }, + "v1GlobalContentFiltersPostResponse": { + "type": "object", + "properties": { + "globalContentFilterId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Server-assigned ID for the newly created global content filter." + } + }, + "additionalProperties": false + }, + "v1GlobalContentFiltersGlobalContentFilterIdPutRequest": { + "type": "object", + "properties": { + "config": { + "$ref": "#/components/schemas/manaV2GlobalContentFilterConfig" + } + }, + "additionalProperties": false + }, + "v1GlobalContentFiltersGlobalContentFilterIdPutResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1GlobalContentFiltersGlobalContentFilterIdDeleteResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1GlobalContentFiltersGlobalContentFilterIdGetResponse": { + "type": "object", + "properties": { + "config": { + "$ref": "#/components/schemas/manaV2GlobalContentFilterConfig" + } + }, + "additionalProperties": false + }, "v1GlobalAppsGraphiantGetResponse": { "type": "object", "properties": { @@ -27042,6 +27366,15 @@ "readyForActivationVersion": { "$ref": "#/components/schemas/upgradeSwVersion" }, + "rolloutId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "rolloutName": { + "type": "string", + "example": "example string" + }, "runningVersion": { "$ref": "#/components/schemas/upgradeSwVersion" }, @@ -31631,6 +31964,32 @@ }, "additionalProperties": false }, + "v2MonitoringMacsecDeviceIdStatusGetResponse": { + "type": "object", + "properties": { + "macsecStatuses": { + "type": "array", + "items": { + "$ref": "#/components/schemas/v2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus" + } + } + }, + "additionalProperties": false + }, + "v2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus": { + "type": "object", + "properties": { + "interfaceName": { + "type": "string", + "example": "example string" + }, + "status": { + "type": "string", + "example": "ENUM_VALUE" + } + }, + "additionalProperties": false + }, "v1LogsPostRequest": { "type": "object", "properties": { @@ -32098,6 +32457,14 @@ "type": "integer", "format": "int32", "example": 123 + }, + "ordinal": { + "type": "string", + "example": "ENUM_VALUE" + }, + "weekday": { + "type": "string", + "example": "ENUM_VALUE" } }, "additionalProperties": false @@ -32115,6 +32482,305 @@ }, "additionalProperties": false }, + "v1SoftwareRolloutsPostRequest": { + "type": "object", + "properties": { + "rolloutConfig": { + "$ref": "#/components/schemas/upgradeRolloutConfig" + } + }, + "additionalProperties": false, + "required": [ + "rolloutConfig" + ] + }, + "upgradeRolloutConfig": { + "type": "object", + "properties": { + "action": { + "type": "string", + "example": "InstallActivate", + "description": "Upgrade action to perform (e.g. install+activate, install only, activate, auto-upgrade). (required)" + }, + "description": { + "type": "string", + "example": "Upgrade branch sites to release 25.4", + "description": "Optional longer description of the rollout." + }, + "deviceIds": { + "type": "array", + "items": { + "type": "integer", + "format": "int64", + "example": "1001,1002,1003", + "description": "Device IDs included in the rollout (field name retained for API compatibility)." + } + }, + "name": { + "type": "string", + "example": "Q2 edge upgrade", + "description": "Human-readable rollout name unique within the enterprise. (required)" + }, + "release": { + "type": "string", + "example": "Recommended", + "description": "Target software release for devices in this rollout. (required)" + }, + "schedule": { + "$ref": "#/components/schemas/upgradeRecurringSchedule" + } + }, + "additionalProperties": false, + "required": [ + "action", + "name", + "release" + ] + }, + "upgradeRecurringSchedule": { + "type": "object", + "properties": { + "monthly": { + "$ref": "#/components/schemas/upgradeMonthlyRecurrence" + }, + "startsAtTs": { + "$ref": "#/components/schemas/googleProtobufTimestamp" + }, + "weekly": { + "$ref": "#/components/schemas/upgradeWeeklyRecurrence" + }, + "yearly": { + "$ref": "#/components/schemas/upgradeYearlyRecurrence" + } + }, + "additionalProperties": false, + "required": [ + "startsAtTs" + ] + }, + "upgradeMonthlyRecurrence": { + "type": "object", + "properties": { + "date": { + "type": "integer", + "format": "int32", + "example": 15, + "minimum": 0, + "description": "Calendar day of month (1–31) for fixed-date monthly recurrence; optional if ordinal and weekday are set." + }, + "ordinal": { + "type": "string", + "example": "Second", + "description": "For nth-weekday-of-month style recurrence; use together with weekday, or use date instead." + }, + "weekday": { + "type": "string", + "example": "Tuesday", + "description": "Weekday paired with ordinal for monthly nth-weekday recurrence; optional if date is set." + } + }, + "additionalProperties": false + }, + "upgradeWeeklyRecurrence": { + "type": "object", + "properties": { + "interval": { + "type": "integer", + "format": "int32", + "example": 2, + "minimum": 0, + "description": "Which occurrence of the weekday in the month applies for weekly-style recurrence (1–52, aligned with schedule validation). (required)" + }, + "weekday": { + "type": "string", + "example": "Monday", + "description": "Day of week for the weekly recurrence. (required)" + } + }, + "additionalProperties": false, + "required": [ + "interval", + "weekday" + ] + }, + "upgradeYearlyRecurrence": { + "type": "object", + "properties": { + "date": { + "type": "integer", + "format": "int32", + "example": 1, + "minimum": 0, + "description": "Calendar day (1–31) for fixed month+date yearly recurrence." + }, + "month": { + "type": "integer", + "format": "int32", + "example": 3, + "minimum": 0, + "description": "Month of year (1–12) for yearly recurrence. (required)" + }, + "ordinal": { + "type": "string", + "example": "First", + "description": "For nth-weekday-in-month yearly recurrence; use with weekday, or use month + date." + }, + "weekday": { + "type": "string", + "example": "Wednesday", + "description": "Weekday paired with ordinal for yearly recurrence." + } + }, + "additionalProperties": false, + "required": [ + "month" + ] + }, + "v1SoftwareRolloutsPostResponse": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 42, + "description": "Identifier of the created rollout. (required)" + } + }, + "additionalProperties": false + }, + "v1SoftwareRolloutsPutRequest": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 42, + "description": "Rollout identifier to update. (required)" + }, + "rolloutConfig": { + "$ref": "#/components/schemas/upgradeRolloutConfig" + } + }, + "additionalProperties": false, + "required": [ + "id", + "rolloutConfig" + ] + }, + "v1SoftwareRolloutsPutResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1SoftwareRolloutsGetResponse": { + "type": "object", + "properties": { + "rollouts": { + "type": "array", + "items": { + "$ref": "#/components/schemas/upgradeRollout" + } + } + }, + "additionalProperties": false + }, + "upgradeRollout": { + "type": "object", + "properties": { + "devices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/upgradeRolloutDevice" + } + }, + "hasFailed": { + "type": "boolean", + "example": true, + "description": "True if any device in the rollout has a failed upgrade state." + }, + "id": { + "type": "integer", + "format": "int64", + "example": 42, + "description": "Server-assigned rollout identifier." + }, + "lastRunTs": { + "$ref": "#/components/schemas/googleProtobufTimestamp" + }, + "nextRunTs": { + "$ref": "#/components/schemas/googleProtobufTimestamp" + }, + "numDevices": { + "type": "integer", + "format": "int32", + "example": 3, + "description": "Count of devices associated with the rollout." + }, + "rolloutConfig": { + "$ref": "#/components/schemas/upgradeRolloutConfig" + } + }, + "additionalProperties": false + }, + "upgradeRolloutDevice": { + "type": "object", + "properties": { + "deviceId": { + "type": "integer", + "format": "int64", + "example": 1001, + "description": "Device identifier. (required)" + }, + "hostname": { + "type": "string", + "example": "edge-site-01", + "description": "Device hostname for display." + } + }, + "additionalProperties": false + }, + "v1SoftwareRolloutsIdGetResponse": { + "type": "object", + "properties": { + "rollout": { + "$ref": "#/components/schemas/upgradeRollout" + } + }, + "additionalProperties": false + }, + "v1SoftwareRolloutsIdDeleteResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1SoftwareRolloutsSchedulePostRequest": { + "type": "object", + "properties": { + "failedOnly": { + "type": "boolean", + "example": true, + "description": "When true, only devices previously marked failed are rescheduled." + }, + "id": { + "type": "integer", + "format": "int64", + "example": 42, + "description": "Rollout identifier to schedule. (required)" + }, + "ts": { + "$ref": "#/components/schemas/googleProtobufTimestamp" + } + }, + "additionalProperties": false, + "required": [ + "id" + ] + }, + "v1SoftwareRolloutsSchedulePostResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, "v1AuthLoginPreGetResponse": { "type": "object", "properties": { @@ -35280,6 +35946,91 @@ } } }, + "/v1/ztagent/bindings": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "enterpriseId", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ZtagentBindingsGetResponse" + } + } + } + } + }, + "description": "Return the ZTAgent integration binding for an enterprise." + }, + "put": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ZtagentBindingsPutRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ZtagentBindingsPutResponse" + } + } + } + } + }, + "description": "Create or replace the ZTAgent integration binding for an enterprise (site and customer identifiers)." + } + }, "/v1/devices/{deviceId}/jobs/{jobId}": { "get": { "security": [ @@ -40178,6 +40929,80 @@ "description": "Get all global apps mapped by the current enterprise" } }, + "/v1/global/content-filters": { + "post": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalContentFiltersPostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalContentFiltersPostResponse" + } + } + } + } + }, + "description": "Configure a new content filter under the current enterprise" + }, + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalContentFiltersGetResponse" + } + } + } + } + }, + "description": "Get basic details for all content filter under the current enterprise" + } + }, "/v1/global/lan-segments": { "post": { "security": [ @@ -41466,15 +42291,57 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdDeleteResponse" + "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdDeleteResponse" + } + } + } + } + }, + "description": "Delete a global app under the current enterprise" + }, + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "appId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdGetResponse" } } } } }, - "description": "Delete a global app under the current enterprise" + "description": "Get the configuration for a global app under the current enterprise" }, - "get": { + "put": { "security": [ { "jwtAuth": [] @@ -41502,19 +42369,115 @@ } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdPutRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdGetResponse" + "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdPutResponse" } } } } }, - "description": "Get the configuration for a global app under the current enterprise" + "description": "Overwrite the configuration for a global app under the current enterprise" + } + }, + "/v1/global/content-filters/{globalContentFilterId}": { + "delete": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "globalContentFilterId", + "in": "path", + "required": true, + "description": "ID of the global content filter to remove.", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdDeleteResponse" + } + } + } + } + }, + "description": "Delete a content filter under the current enterprise" + }, + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "globalContentFilterId", + "in": "path", + "required": true, + "description": "ID of the global content filter whose configuration should be returned.", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdGetResponse" + } + } + } + } + }, + "description": "Get the config for a content filter under the current enterprise" }, "put": { "security": [ @@ -41533,10 +42496,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "appId", + "name": "globalContentFilterId", "in": "path", "required": true, - "description": "", + "description": "ID of the global content filter to replace with the supplied configuration.", "schema": { "type": "integer", "format": "int64", @@ -41549,7 +42512,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdPutRequest" + "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdPutRequest" } } } @@ -41560,13 +42523,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdPutResponse" + "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdPutResponse" } } } } }, - "description": "Overwrite the configuration for a global app under the current enterprise" + "description": "Overwrite a pre-existing content filter under the current enterprise" } }, "/v1/global/lan-segments/{id}": { @@ -43596,6 +44559,39 @@ "description": "Get devices summary for the specified enterprise" } }, + "/v1/global/domain-categories": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalDomainCategoriesGetResponse" + } + } + } + } + }, + "description": "Get all domain categories from the DPI engine" + } + }, "/v1/enterprise/configuration": { "get": { "security": [ @@ -51340,6 +52336,50 @@ } } }, + "/v2/monitoring/macsec/{deviceId}/status": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2MonitoringMacsecDeviceIdStatusGetResponse" + } + } + } + } + }, + "description": "Returns the MACsec status for all interfaces on a device" + } + }, "/v2/monitoring/policy": { "post": { "security": [ @@ -51821,7 +52861,102 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2MonitoringCircuitsVisualizationPostRequest" + "$ref": "#/components/schemas/v2MonitoringCircuitsVisualizationPostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2MonitoringCircuitsVisualizationPostResponse" + } + } + } + } + } + } + }, + "/v1/troubleshooting/device/{deviceId}": { + "post": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1TroubleshootingDeviceDeviceIdPostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1TroubleshootingDeviceDeviceIdPostResponse" + } + } + } + } + } + } + }, + "/v1/troubleshooting/enterprise": { + "post": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1TroubleshootingEnterprisePostRequest" } } } @@ -51832,7 +52967,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2MonitoringCircuitsVisualizationPostResponse" + "$ref": "#/components/schemas/v1TroubleshootingEnterprisePostResponse" } } } @@ -51840,8 +52975,40 @@ } } }, - "/v1/troubleshooting/device/{deviceId}": { - "post": { + "/v1/troubleshooting/filter": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1TroubleshootingFilterGetResponse" + } + } + } + } + } + } + }, + "/v1/troubleshooting/site/{siteId}": { + "get": { "security": [ { "jwtAuth": [] @@ -51858,7 +53025,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "siteId", "in": "path", "required": true, "description": "", @@ -51869,23 +53036,13 @@ } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1TroubleshootingDeviceDeviceIdPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TroubleshootingDeviceDeviceIdPostResponse" + "$ref": "#/components/schemas/v1TroubleshootingSiteSiteIdGetResponse" } } } @@ -51893,7 +53050,7 @@ } } }, - "/v1/troubleshooting/enterprise": { + "/v1/troubleshooting/top-sites-by-alerts": { "post": { "security": [ { @@ -51916,7 +53073,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TroubleshootingEnterprisePostRequest" + "$ref": "#/components/schemas/v1TroubleshootingTopSitesByAlertsPostRequest" } } } @@ -51927,7 +53084,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TroubleshootingEnterprisePostResponse" + "$ref": "#/components/schemas/v1TroubleshootingTopSitesByAlertsPostResponse" } } } @@ -51935,8 +53092,8 @@ } } }, - "/v1/troubleshooting/filter": { - "get": { + "/v1/logs": { + "post": { "security": [ { "jwtAuth": [] @@ -51953,13 +53110,23 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1LogsPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TroubleshootingFilterGetResponse" + "$ref": "#/components/schemas/v1LogsPostResponse" } } } @@ -51967,8 +53134,8 @@ } } }, - "/v1/troubleshooting/site/{siteId}": { - "get": { + "/v1/devices/upgrade/cancel": { + "put": { "security": [ { "jwtAuth": [] @@ -51983,34 +53150,26 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "siteId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1TroubleshootingSiteSiteIdGetResponse" - } + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1DevicesUpgradeCancelPutRequest" } } } + }, + "responses": { + "204": { + "description": "No Content" + } } } }, - "/v1/troubleshooting/top-sites-by-alerts": { + "/v1/software/rollouts": { "post": { "security": [ { @@ -52033,7 +53192,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TroubleshootingTopSitesByAlertsPostRequest" + "$ref": "#/components/schemas/v1SoftwareRolloutsPostRequest" } } } @@ -52044,16 +53203,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TroubleshootingTopSitesByAlertsPostResponse" + "$ref": "#/components/schemas/v1SoftwareRolloutsPostResponse" } } } } - } - } - }, - "/v1/logs": { - "post": { + }, + "description": "Create upgrade rollout and returns rollout identifier" + }, + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1SoftwareRolloutsGetResponse" + } + } + } + } + }, + "description": "Returns all the configured upgrade rollouts" + }, + "put": { "security": [ { "jwtAuth": [] @@ -52075,7 +53264,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1LogsPostRequest" + "$ref": "#/components/schemas/v1SoftwareRolloutsPutRequest" } } } @@ -52086,16 +53275,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1LogsPostResponse" + "$ref": "#/components/schemas/v1SoftwareRolloutsPutResponse" } } } } - } + }, + "description": "Modify update rollout" } }, - "/v1/devices/upgrade/cancel": { - "put": { + "/v1/software/rollouts/{id}": { + "delete": { "security": [ { "jwtAuth": [] @@ -52110,23 +53300,76 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "Rollout identifier to delete.", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 42 } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DevicesUpgradeCancelPutRequest" + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1SoftwareRolloutsIdDeleteResponse" + } } } } }, + "description": "Delete given upgrade rollout" + }, + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "Rollout identifier to fetch.", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 42 + } + ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1SoftwareRolloutsIdGetResponse" + } + } + } } - } + }, + "description": "Returns details about given upgrade rollout" } }, "/v1/software/auto-upgrade/default": { @@ -52396,6 +53639,49 @@ } } }, + "/v1/software/rollouts/schedule": { + "post": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1SoftwareRolloutsSchedulePostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1SoftwareRolloutsSchedulePostResponse" + } + } + } + } + }, + "description": "Schedule rollout to upgrade now, later or user-triggered" + } + }, "/v1/devices/upgrade/schedule": { "put": { "security": [ diff --git a/graphiant_sdk/__init__.py b/graphiant_sdk/__init__.py index ed64c80f..c6d2a0d3 100644 --- a/graphiant_sdk/__init__.py +++ b/graphiant_sdk/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "26.3.3" +__version__ = "26.4.1" # Define package exports __all__ = [ @@ -243,6 +243,7 @@ "ManaV2DnsServers", "ManaV2DnsipAddress", "ManaV2DnsipAddresses", + "ManaV2DomainCategory", "ManaV2DomainListMatchConfig", "ManaV2DpiApplicationConfig", "ManaV2DpiCustomApplication", @@ -277,6 +278,8 @@ "ManaV2GlobalAppConfig", "ManaV2GlobalAppPortRange", "ManaV2GlobalBandwidthConsumptionSummary", + "ManaV2GlobalContentFilterConfig", + "ManaV2GlobalContentFilterRule", "ManaV2GlobalObjectDeviceStatus", "ManaV2GlobalObjectOperationConfig", "ManaV2GlobalObjectServiceOps", @@ -486,6 +489,7 @@ "ManaV2QoSProfile", "ManaV2QoSProfileQueue", "ManaV2Region", + "ManaV2RegionCoordinates", "ManaV2RegionalAllocation", "ManaV2RegionalBandwidthConsumptionSummary", "ManaV2RouteTag", @@ -709,13 +713,20 @@ "UpgradeGcsReleaseCategory", "UpgradeGcsReleaseDetails", "UpgradeInventoryKey", + "UpgradeMonthlyRecurrence", + "UpgradeRecurringSchedule", "UpgradeReleaseSummary", + "UpgradeRollout", + "UpgradeRolloutConfig", + "UpgradeRolloutDevice", "UpgradeRunningSwVersion", "UpgradeSchedule", "UpgradeSwVersion", "UpgradeUpgradeCanaryProfile", "UpgradeUpgradeOccurrence", "UpgradeUpgradeSummary", + "UpgradeWeeklyRecurrence", + "UpgradeYearlyRecurrence", "V1AccountEmailPatchRequest", "V1AccountInfoPatchRequest", "V1AccountMfaConfirmationPostRequest", @@ -1084,7 +1095,17 @@ "V1GlobalAttachedEdgesPostResponse", "V1GlobalConfigPatchRequest", "V1GlobalConfigPatchResponse", + "V1GlobalContentFiltersGetResponse", + "V1GlobalContentFiltersGetResponseRow", + "V1GlobalContentFiltersGetResponseRowLanEntry", + "V1GlobalContentFiltersGetResponseRowRuleEntry", + "V1GlobalContentFiltersGetResponseRowSiteEntry", + "V1GlobalContentFiltersGlobalContentFilterIdGetResponse", + "V1GlobalContentFiltersGlobalContentFilterIdPutRequest", + "V1GlobalContentFiltersPostRequest", + "V1GlobalContentFiltersPostResponse", "V1GlobalDeviceStatusGetResponse", + "V1GlobalDomainCategoriesGetResponse", "V1GlobalIpfixDeviceGetResponse", "V1GlobalIpfixPostRequest", "V1GlobalIpfixPostResponse", @@ -1179,6 +1200,12 @@ "V1SoftwareGcsreleaseUploadNotesPostRequest", "V1SoftwareReleasesDownloadGetResponse", "V1SoftwareReleasesSummaryGetResponse", + "V1SoftwareRolloutsGetResponse", + "V1SoftwareRolloutsIdGetResponse", + "V1SoftwareRolloutsPostRequest", + "V1SoftwareRolloutsPostResponse", + "V1SoftwareRolloutsPutRequest", + "V1SoftwareRolloutsSchedulePostRequest", "V1SoftwareRunningDetailsGetResponse", "V1SoftwareRunningDetailsGetResponseDevice", "V1SoftwareRunningSummaryGetResponse", @@ -1214,6 +1241,8 @@ "V1VersionPostRequest", "V1VersionPostResponse", "V1ZonesGetResponse", + "V1ZtagentBindingsGetResponse", + "V1ZtagentBindingsPutRequest", "V2AckCreateupdatePostRequest", "V2AggregatedNotificationEnableDisablePostRequest", "V2AggregatedNotificationGetStateGetResponse", @@ -1343,6 +1372,8 @@ "V2MonitoringIpsecPostRequest", "V2MonitoringIpsecPostResponse", "V2MonitoringIpsecPostResponseData", + "V2MonitoringMacsecDeviceIdStatusGetResponse", + "V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus", "V2MonitoringPolicyPostRequest", "V2MonitoringPolicyPostResponse", "V2MonitoringPolicyPostResponseData", @@ -1613,6 +1644,7 @@ from graphiant_sdk.models.mana_v2_dns_servers import ManaV2DnsServers as ManaV2DnsServers from graphiant_sdk.models.mana_v2_dnsip_address import ManaV2DnsipAddress as ManaV2DnsipAddress from graphiant_sdk.models.mana_v2_dnsip_addresses import ManaV2DnsipAddresses as ManaV2DnsipAddresses +from graphiant_sdk.models.mana_v2_domain_category import ManaV2DomainCategory as ManaV2DomainCategory from graphiant_sdk.models.mana_v2_domain_list_match_config import ManaV2DomainListMatchConfig as ManaV2DomainListMatchConfig from graphiant_sdk.models.mana_v2_dpi_application_config import ManaV2DpiApplicationConfig as ManaV2DpiApplicationConfig from graphiant_sdk.models.mana_v2_dpi_custom_application import ManaV2DpiCustomApplication as ManaV2DpiCustomApplication @@ -1647,6 +1679,8 @@ from graphiant_sdk.models.mana_v2_global_app_config import ManaV2GlobalAppConfig as ManaV2GlobalAppConfig from graphiant_sdk.models.mana_v2_global_app_port_range import ManaV2GlobalAppPortRange as ManaV2GlobalAppPortRange from graphiant_sdk.models.mana_v2_global_bandwidth_consumption_summary import ManaV2GlobalBandwidthConsumptionSummary as ManaV2GlobalBandwidthConsumptionSummary +from graphiant_sdk.models.mana_v2_global_content_filter_config import ManaV2GlobalContentFilterConfig as ManaV2GlobalContentFilterConfig +from graphiant_sdk.models.mana_v2_global_content_filter_rule import ManaV2GlobalContentFilterRule as ManaV2GlobalContentFilterRule from graphiant_sdk.models.mana_v2_global_object_device_status import ManaV2GlobalObjectDeviceStatus as ManaV2GlobalObjectDeviceStatus from graphiant_sdk.models.mana_v2_global_object_operation_config import ManaV2GlobalObjectOperationConfig as ManaV2GlobalObjectOperationConfig from graphiant_sdk.models.mana_v2_global_object_service_ops import ManaV2GlobalObjectServiceOps as ManaV2GlobalObjectServiceOps @@ -1856,6 +1890,7 @@ from graphiant_sdk.models.mana_v2_qo_s_profile import ManaV2QoSProfile as ManaV2QoSProfile from graphiant_sdk.models.mana_v2_qo_s_profile_queue import ManaV2QoSProfileQueue as ManaV2QoSProfileQueue from graphiant_sdk.models.mana_v2_region import ManaV2Region as ManaV2Region +from graphiant_sdk.models.mana_v2_region_coordinates import ManaV2RegionCoordinates as ManaV2RegionCoordinates from graphiant_sdk.models.mana_v2_regional_allocation import ManaV2RegionalAllocation as ManaV2RegionalAllocation from graphiant_sdk.models.mana_v2_regional_bandwidth_consumption_summary import ManaV2RegionalBandwidthConsumptionSummary as ManaV2RegionalBandwidthConsumptionSummary from graphiant_sdk.models.mana_v2_route_tag import ManaV2RouteTag as ManaV2RouteTag @@ -2079,13 +2114,20 @@ from graphiant_sdk.models.upgrade_gcs_release_category import UpgradeGcsReleaseCategory as UpgradeGcsReleaseCategory from graphiant_sdk.models.upgrade_gcs_release_details import UpgradeGcsReleaseDetails as UpgradeGcsReleaseDetails from graphiant_sdk.models.upgrade_inventory_key import UpgradeInventoryKey as UpgradeInventoryKey +from graphiant_sdk.models.upgrade_monthly_recurrence import UpgradeMonthlyRecurrence as UpgradeMonthlyRecurrence +from graphiant_sdk.models.upgrade_recurring_schedule import UpgradeRecurringSchedule as UpgradeRecurringSchedule from graphiant_sdk.models.upgrade_release_summary import UpgradeReleaseSummary as UpgradeReleaseSummary +from graphiant_sdk.models.upgrade_rollout import UpgradeRollout as UpgradeRollout +from graphiant_sdk.models.upgrade_rollout_config import UpgradeRolloutConfig as UpgradeRolloutConfig +from graphiant_sdk.models.upgrade_rollout_device import UpgradeRolloutDevice as UpgradeRolloutDevice from graphiant_sdk.models.upgrade_running_sw_version import UpgradeRunningSwVersion as UpgradeRunningSwVersion from graphiant_sdk.models.upgrade_schedule import UpgradeSchedule as UpgradeSchedule from graphiant_sdk.models.upgrade_sw_version import UpgradeSwVersion as UpgradeSwVersion from graphiant_sdk.models.upgrade_upgrade_canary_profile import UpgradeUpgradeCanaryProfile as UpgradeUpgradeCanaryProfile from graphiant_sdk.models.upgrade_upgrade_occurrence import UpgradeUpgradeOccurrence as UpgradeUpgradeOccurrence from graphiant_sdk.models.upgrade_upgrade_summary import UpgradeUpgradeSummary as UpgradeUpgradeSummary +from graphiant_sdk.models.upgrade_weekly_recurrence import UpgradeWeeklyRecurrence as UpgradeWeeklyRecurrence +from graphiant_sdk.models.upgrade_yearly_recurrence import UpgradeYearlyRecurrence as UpgradeYearlyRecurrence from graphiant_sdk.models.v1_account_email_patch_request import V1AccountEmailPatchRequest as V1AccountEmailPatchRequest from graphiant_sdk.models.v1_account_info_patch_request import V1AccountInfoPatchRequest as V1AccountInfoPatchRequest from graphiant_sdk.models.v1_account_mfa_confirmation_post_request import V1AccountMfaConfirmationPostRequest as V1AccountMfaConfirmationPostRequest @@ -2454,7 +2496,17 @@ from graphiant_sdk.models.v1_global_attached_edges_post_response import V1GlobalAttachedEdgesPostResponse as V1GlobalAttachedEdgesPostResponse from graphiant_sdk.models.v1_global_config_patch_request import V1GlobalConfigPatchRequest as V1GlobalConfigPatchRequest from graphiant_sdk.models.v1_global_config_patch_response import V1GlobalConfigPatchResponse as V1GlobalConfigPatchResponse +from graphiant_sdk.models.v1_global_content_filters_get_response import V1GlobalContentFiltersGetResponse as V1GlobalContentFiltersGetResponse +from graphiant_sdk.models.v1_global_content_filters_get_response_row import V1GlobalContentFiltersGetResponseRow as V1GlobalContentFiltersGetResponseRow +from graphiant_sdk.models.v1_global_content_filters_get_response_row_lan_entry import V1GlobalContentFiltersGetResponseRowLanEntry as V1GlobalContentFiltersGetResponseRowLanEntry +from graphiant_sdk.models.v1_global_content_filters_get_response_row_rule_entry import V1GlobalContentFiltersGetResponseRowRuleEntry as V1GlobalContentFiltersGetResponseRowRuleEntry +from graphiant_sdk.models.v1_global_content_filters_get_response_row_site_entry import V1GlobalContentFiltersGetResponseRowSiteEntry as V1GlobalContentFiltersGetResponseRowSiteEntry +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_get_response import V1GlobalContentFiltersGlobalContentFilterIdGetResponse as V1GlobalContentFiltersGlobalContentFilterIdGetResponse +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_put_request import V1GlobalContentFiltersGlobalContentFilterIdPutRequest as V1GlobalContentFiltersGlobalContentFilterIdPutRequest +from graphiant_sdk.models.v1_global_content_filters_post_request import V1GlobalContentFiltersPostRequest as V1GlobalContentFiltersPostRequest +from graphiant_sdk.models.v1_global_content_filters_post_response import V1GlobalContentFiltersPostResponse as V1GlobalContentFiltersPostResponse from graphiant_sdk.models.v1_global_device_status_get_response import V1GlobalDeviceStatusGetResponse as V1GlobalDeviceStatusGetResponse +from graphiant_sdk.models.v1_global_domain_categories_get_response import V1GlobalDomainCategoriesGetResponse as V1GlobalDomainCategoriesGetResponse from graphiant_sdk.models.v1_global_ipfix_device_get_response import V1GlobalIpfixDeviceGetResponse as V1GlobalIpfixDeviceGetResponse from graphiant_sdk.models.v1_global_ipfix_post_request import V1GlobalIpfixPostRequest as V1GlobalIpfixPostRequest from graphiant_sdk.models.v1_global_ipfix_post_response import V1GlobalIpfixPostResponse as V1GlobalIpfixPostResponse @@ -2549,6 +2601,12 @@ from graphiant_sdk.models.v1_software_gcsrelease_upload_notes_post_request import V1SoftwareGcsreleaseUploadNotesPostRequest as V1SoftwareGcsreleaseUploadNotesPostRequest from graphiant_sdk.models.v1_software_releases_download_get_response import V1SoftwareReleasesDownloadGetResponse as V1SoftwareReleasesDownloadGetResponse from graphiant_sdk.models.v1_software_releases_summary_get_response import V1SoftwareReleasesSummaryGetResponse as V1SoftwareReleasesSummaryGetResponse +from graphiant_sdk.models.v1_software_rollouts_get_response import V1SoftwareRolloutsGetResponse as V1SoftwareRolloutsGetResponse +from graphiant_sdk.models.v1_software_rollouts_id_get_response import V1SoftwareRolloutsIdGetResponse as V1SoftwareRolloutsIdGetResponse +from graphiant_sdk.models.v1_software_rollouts_post_request import V1SoftwareRolloutsPostRequest as V1SoftwareRolloutsPostRequest +from graphiant_sdk.models.v1_software_rollouts_post_response import V1SoftwareRolloutsPostResponse as V1SoftwareRolloutsPostResponse +from graphiant_sdk.models.v1_software_rollouts_put_request import V1SoftwareRolloutsPutRequest as V1SoftwareRolloutsPutRequest +from graphiant_sdk.models.v1_software_rollouts_schedule_post_request import V1SoftwareRolloutsSchedulePostRequest as V1SoftwareRolloutsSchedulePostRequest from graphiant_sdk.models.v1_software_running_details_get_response import V1SoftwareRunningDetailsGetResponse as V1SoftwareRunningDetailsGetResponse from graphiant_sdk.models.v1_software_running_details_get_response_device import V1SoftwareRunningDetailsGetResponseDevice as V1SoftwareRunningDetailsGetResponseDevice from graphiant_sdk.models.v1_software_running_summary_get_response import V1SoftwareRunningSummaryGetResponse as V1SoftwareRunningSummaryGetResponse @@ -2584,6 +2642,8 @@ from graphiant_sdk.models.v1_version_post_request import V1VersionPostRequest as V1VersionPostRequest from graphiant_sdk.models.v1_version_post_response import V1VersionPostResponse as V1VersionPostResponse from graphiant_sdk.models.v1_zones_get_response import V1ZonesGetResponse as V1ZonesGetResponse +from graphiant_sdk.models.v1_ztagent_bindings_get_response import V1ZtagentBindingsGetResponse as V1ZtagentBindingsGetResponse +from graphiant_sdk.models.v1_ztagent_bindings_put_request import V1ZtagentBindingsPutRequest as V1ZtagentBindingsPutRequest from graphiant_sdk.models.v2_ack_createupdate_post_request import V2AckCreateupdatePostRequest as V2AckCreateupdatePostRequest from graphiant_sdk.models.v2_aggregated_notification_enable_disable_post_request import V2AggregatedNotificationEnableDisablePostRequest as V2AggregatedNotificationEnableDisablePostRequest from graphiant_sdk.models.v2_aggregated_notification_get_state_get_response import V2AggregatedNotificationGetStateGetResponse as V2AggregatedNotificationGetStateGetResponse @@ -2713,6 +2773,8 @@ from graphiant_sdk.models.v2_monitoring_ipsec_post_request import V2MonitoringIpsecPostRequest as V2MonitoringIpsecPostRequest from graphiant_sdk.models.v2_monitoring_ipsec_post_response import V2MonitoringIpsecPostResponse as V2MonitoringIpsecPostResponse from graphiant_sdk.models.v2_monitoring_ipsec_post_response_data import V2MonitoringIpsecPostResponseData as V2MonitoringIpsecPostResponseData +from graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response import V2MonitoringMacsecDeviceIdStatusGetResponse as V2MonitoringMacsecDeviceIdStatusGetResponse +from graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response_ma_csec_status import V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus as V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus from graphiant_sdk.models.v2_monitoring_policy_post_request import V2MonitoringPolicyPostRequest as V2MonitoringPolicyPostRequest from graphiant_sdk.models.v2_monitoring_policy_post_response import V2MonitoringPolicyPostResponse as V2MonitoringPolicyPostResponse from graphiant_sdk.models.v2_monitoring_policy_post_response_data import V2MonitoringPolicyPostResponseData as V2MonitoringPolicyPostResponseData diff --git a/graphiant_sdk/api/default_api.py b/graphiant_sdk/api/default_api.py index 7516bf09..537579ee 100644 --- a/graphiant_sdk/api/default_api.py +++ b/graphiant_sdk/api/default_api.py @@ -336,7 +336,13 @@ from graphiant_sdk.models.v1_global_attached_edges_post_response import V1GlobalAttachedEdgesPostResponse from graphiant_sdk.models.v1_global_config_patch_request import V1GlobalConfigPatchRequest from graphiant_sdk.models.v1_global_config_patch_response import V1GlobalConfigPatchResponse +from graphiant_sdk.models.v1_global_content_filters_get_response import V1GlobalContentFiltersGetResponse +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_get_response import V1GlobalContentFiltersGlobalContentFilterIdGetResponse +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_put_request import V1GlobalContentFiltersGlobalContentFilterIdPutRequest +from graphiant_sdk.models.v1_global_content_filters_post_request import V1GlobalContentFiltersPostRequest +from graphiant_sdk.models.v1_global_content_filters_post_response import V1GlobalContentFiltersPostResponse from graphiant_sdk.models.v1_global_device_status_get_response import V1GlobalDeviceStatusGetResponse +from graphiant_sdk.models.v1_global_domain_categories_get_response import V1GlobalDomainCategoriesGetResponse from graphiant_sdk.models.v1_global_ipfix_device_get_response import V1GlobalIpfixDeviceGetResponse from graphiant_sdk.models.v1_global_ipfix_post_request import V1GlobalIpfixPostRequest from graphiant_sdk.models.v1_global_ipfix_post_response import V1GlobalIpfixPostResponse @@ -424,6 +430,12 @@ from graphiant_sdk.models.v1_software_gcsrelease_upload_notes_post_request import V1SoftwareGcsreleaseUploadNotesPostRequest from graphiant_sdk.models.v1_software_releases_download_get_response import V1SoftwareReleasesDownloadGetResponse from graphiant_sdk.models.v1_software_releases_summary_get_response import V1SoftwareReleasesSummaryGetResponse +from graphiant_sdk.models.v1_software_rollouts_get_response import V1SoftwareRolloutsGetResponse +from graphiant_sdk.models.v1_software_rollouts_id_get_response import V1SoftwareRolloutsIdGetResponse +from graphiant_sdk.models.v1_software_rollouts_post_request import V1SoftwareRolloutsPostRequest +from graphiant_sdk.models.v1_software_rollouts_post_response import V1SoftwareRolloutsPostResponse +from graphiant_sdk.models.v1_software_rollouts_put_request import V1SoftwareRolloutsPutRequest +from graphiant_sdk.models.v1_software_rollouts_schedule_post_request import V1SoftwareRolloutsSchedulePostRequest from graphiant_sdk.models.v1_software_running_details_get_response import V1SoftwareRunningDetailsGetResponse from graphiant_sdk.models.v1_software_running_summary_get_response import V1SoftwareRunningSummaryGetResponse from graphiant_sdk.models.v1_talkers_device_device_id_top_post_request import V1TalkersDeviceDeviceIdTopPostRequest @@ -452,6 +464,8 @@ from graphiant_sdk.models.v1_version_post_request import V1VersionPostRequest from graphiant_sdk.models.v1_version_post_response import V1VersionPostResponse from graphiant_sdk.models.v1_zones_get_response import V1ZonesGetResponse +from graphiant_sdk.models.v1_ztagent_bindings_get_response import V1ZtagentBindingsGetResponse +from graphiant_sdk.models.v1_ztagent_bindings_put_request import V1ZtagentBindingsPutRequest from graphiant_sdk.models.v2_ack_createupdate_post_request import V2AckCreateupdatePostRequest from graphiant_sdk.models.v2_aggregated_notification_enable_disable_post_request import V2AggregatedNotificationEnableDisablePostRequest from graphiant_sdk.models.v2_aggregated_notification_get_state_get_response import V2AggregatedNotificationGetStateGetResponse @@ -566,6 +580,7 @@ from graphiant_sdk.models.v2_monitoring_interface_post_response import V2MonitoringInterfacePostResponse from graphiant_sdk.models.v2_monitoring_ipsec_post_request import V2MonitoringIpsecPostRequest from graphiant_sdk.models.v2_monitoring_ipsec_post_response import V2MonitoringIpsecPostResponse +from graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response import V2MonitoringMacsecDeviceIdStatusGetResponse from graphiant_sdk.models.v2_monitoring_policy_post_request import V2MonitoringPolicyPostRequest from graphiant_sdk.models.v2_monitoring_policy_post_response import V2MonitoringPolicyPostResponse from graphiant_sdk.models.v2_monitoring_queue_instant_post_request import V2MonitoringQueueInstantPostRequest @@ -74714,16 +74729,9 @@ def _v1_global_config_patch_serialize( @validate_call - def v1_global_device_status_get( + def v1_global_content_filters_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - ipfix_exported_id: Optional[StrictInt] = None, - ntp_id: Optional[StrictInt] = None, - prefix_set_id: Optional[StrictInt] = None, - routing_policy_id: Optional[StrictInt] = None, - snmp_id: Optional[StrictInt] = None, - syslog_server_id: Optional[StrictInt] = None, - traffic_policy_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74736,27 +74744,13 @@ def v1_global_device_status_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalDeviceStatusGetResponse: - """v1_global_device_status_get + ) -> V1GlobalContentFiltersGetResponse: + """v1_global_content_filters_get - Get status on global collector attached to devices + Get basic details for all content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param ipfix_exported_id: - :type ipfix_exported_id: int - :param ntp_id: - :type ntp_id: int - :param prefix_set_id: - :type prefix_set_id: int - :param routing_policy_id: - :type routing_policy_id: int - :param snmp_id: - :type snmp_id: int - :param syslog_server_id: - :type syslog_server_id: int - :param traffic_policy_id: - :type traffic_policy_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -74779,15 +74773,8 @@ def v1_global_device_status_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_device_status_get_serialize( + _param = self._v1_global_content_filters_get_serialize( authorization=authorization, - ipfix_exported_id=ipfix_exported_id, - ntp_id=ntp_id, - prefix_set_id=prefix_set_id, - routing_policy_id=routing_policy_id, - snmp_id=snmp_id, - syslog_server_id=syslog_server_id, - traffic_policy_id=traffic_policy_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74795,7 +74782,7 @@ def v1_global_device_status_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalDeviceStatusGetResponse", + '200': "V1GlobalContentFiltersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -74809,16 +74796,9 @@ def v1_global_device_status_get( @validate_call - def v1_global_device_status_get_with_http_info( + def v1_global_content_filters_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - ipfix_exported_id: Optional[StrictInt] = None, - ntp_id: Optional[StrictInt] = None, - prefix_set_id: Optional[StrictInt] = None, - routing_policy_id: Optional[StrictInt] = None, - snmp_id: Optional[StrictInt] = None, - syslog_server_id: Optional[StrictInt] = None, - traffic_policy_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74831,27 +74811,13 @@ def v1_global_device_status_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalDeviceStatusGetResponse]: - """v1_global_device_status_get + ) -> ApiResponse[V1GlobalContentFiltersGetResponse]: + """v1_global_content_filters_get - Get status on global collector attached to devices + Get basic details for all content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param ipfix_exported_id: - :type ipfix_exported_id: int - :param ntp_id: - :type ntp_id: int - :param prefix_set_id: - :type prefix_set_id: int - :param routing_policy_id: - :type routing_policy_id: int - :param snmp_id: - :type snmp_id: int - :param syslog_server_id: - :type syslog_server_id: int - :param traffic_policy_id: - :type traffic_policy_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -74874,15 +74840,8 @@ def v1_global_device_status_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_device_status_get_serialize( + _param = self._v1_global_content_filters_get_serialize( authorization=authorization, - ipfix_exported_id=ipfix_exported_id, - ntp_id=ntp_id, - prefix_set_id=prefix_set_id, - routing_policy_id=routing_policy_id, - snmp_id=snmp_id, - syslog_server_id=syslog_server_id, - traffic_policy_id=traffic_policy_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74890,7 +74849,7 @@ def v1_global_device_status_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalDeviceStatusGetResponse", + '200': "V1GlobalContentFiltersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -74904,16 +74863,9 @@ def v1_global_device_status_get_with_http_info( @validate_call - def v1_global_device_status_get_without_preload_content( + def v1_global_content_filters_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - ipfix_exported_id: Optional[StrictInt] = None, - ntp_id: Optional[StrictInt] = None, - prefix_set_id: Optional[StrictInt] = None, - routing_policy_id: Optional[StrictInt] = None, - snmp_id: Optional[StrictInt] = None, - syslog_server_id: Optional[StrictInt] = None, - traffic_policy_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74927,26 +74879,12 @@ def v1_global_device_status_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_device_status_get + """v1_global_content_filters_get - Get status on global collector attached to devices + Get basic details for all content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param ipfix_exported_id: - :type ipfix_exported_id: int - :param ntp_id: - :type ntp_id: int - :param prefix_set_id: - :type prefix_set_id: int - :param routing_policy_id: - :type routing_policy_id: int - :param snmp_id: - :type snmp_id: int - :param syslog_server_id: - :type syslog_server_id: int - :param traffic_policy_id: - :type traffic_policy_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -74969,15 +74907,8 @@ def v1_global_device_status_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_device_status_get_serialize( + _param = self._v1_global_content_filters_get_serialize( authorization=authorization, - ipfix_exported_id=ipfix_exported_id, - ntp_id=ntp_id, - prefix_set_id=prefix_set_id, - routing_policy_id=routing_policy_id, - snmp_id=snmp_id, - syslog_server_id=syslog_server_id, - traffic_policy_id=traffic_policy_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74985,7 +74916,7 @@ def v1_global_device_status_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalDeviceStatusGetResponse", + '200': "V1GlobalContentFiltersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -74994,16 +74925,9 @@ def v1_global_device_status_get_without_preload_content( return response_data.response - def _v1_global_device_status_get_serialize( + def _v1_global_content_filters_get_serialize( self, authorization, - ipfix_exported_id, - ntp_id, - prefix_set_id, - routing_policy_id, - snmp_id, - syslog_server_id, - traffic_policy_id, _request_auth, _content_type, _headers, @@ -75026,34 +74950,6 @@ def _v1_global_device_status_get_serialize( # process the path parameters # process the query parameters - if ipfix_exported_id is not None: - - _query_params.append(('ipfixExportedId', ipfix_exported_id)) - - if ntp_id is not None: - - _query_params.append(('ntpId', ntp_id)) - - if prefix_set_id is not None: - - _query_params.append(('prefixSetId', prefix_set_id)) - - if routing_policy_id is not None: - - _query_params.append(('routingPolicyId', routing_policy_id)) - - if snmp_id is not None: - - _query_params.append(('snmpId', snmp_id)) - - if syslog_server_id is not None: - - _query_params.append(('syslogServerId', syslog_server_id)) - - if traffic_policy_id is not None: - - _query_params.append(('trafficPolicyId', traffic_policy_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -75077,7 +74973,7 @@ def _v1_global_device_status_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/device-status', + resource_path='/v1/global/content-filters', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -75094,10 +74990,10 @@ def _v1_global_device_status_get_serialize( @validate_call - def v1_global_ipfix_device_get( + def v1_global_content_filters_global_content_filter_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter to remove.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75110,15 +75006,15 @@ def v1_global_ipfix_device_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalIpfixDeviceGetResponse: - """v1_global_ipfix_device_get + ) -> object: + """v1_global_content_filters_global_content_filter_id_delete - Get global ipfix exporters objects that failed to attach for a device + Delete a content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param global_content_filter_id: ID of the global content filter to remove. (required) + :type global_content_filter_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75141,9 +75037,9 @@ def v1_global_ipfix_device_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipfix_device_get_serialize( + _param = self._v1_global_content_filters_global_content_filter_id_delete_serialize( authorization=authorization, - device_id=device_id, + global_content_filter_id=global_content_filter_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75151,7 +75047,7 @@ def v1_global_ipfix_device_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixDeviceGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -75165,10 +75061,10 @@ def v1_global_ipfix_device_get( @validate_call - def v1_global_ipfix_device_get_with_http_info( + def v1_global_content_filters_global_content_filter_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter to remove.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75181,15 +75077,15 @@ def v1_global_ipfix_device_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalIpfixDeviceGetResponse]: - """v1_global_ipfix_device_get + ) -> ApiResponse[object]: + """v1_global_content_filters_global_content_filter_id_delete - Get global ipfix exporters objects that failed to attach for a device + Delete a content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param global_content_filter_id: ID of the global content filter to remove. (required) + :type global_content_filter_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75212,9 +75108,9 @@ def v1_global_ipfix_device_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipfix_device_get_serialize( + _param = self._v1_global_content_filters_global_content_filter_id_delete_serialize( authorization=authorization, - device_id=device_id, + global_content_filter_id=global_content_filter_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75222,7 +75118,7 @@ def v1_global_ipfix_device_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixDeviceGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -75236,10 +75132,10 @@ def v1_global_ipfix_device_get_with_http_info( @validate_call - def v1_global_ipfix_device_get_without_preload_content( + def v1_global_content_filters_global_content_filter_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter to remove.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75253,14 +75149,14 @@ def v1_global_ipfix_device_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_ipfix_device_get + """v1_global_content_filters_global_content_filter_id_delete - Get global ipfix exporters objects that failed to attach for a device + Delete a content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param global_content_filter_id: ID of the global content filter to remove. (required) + :type global_content_filter_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75283,9 +75179,9 @@ def v1_global_ipfix_device_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipfix_device_get_serialize( + _param = self._v1_global_content_filters_global_content_filter_id_delete_serialize( authorization=authorization, - device_id=device_id, + global_content_filter_id=global_content_filter_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75293,7 +75189,7 @@ def v1_global_ipfix_device_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixDeviceGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -75302,10 +75198,10 @@ def v1_global_ipfix_device_get_without_preload_content( return response_data.response - def _v1_global_ipfix_device_get_serialize( + def _v1_global_content_filters_global_content_filter_id_delete_serialize( self, authorization, - device_id, + global_content_filter_id, _request_auth, _content_type, _headers, @@ -75327,11 +75223,9 @@ def _v1_global_ipfix_device_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if global_content_filter_id is not None: + _path_params['globalContentFilterId'] = global_content_filter_id # process the query parameters - if device_id is not None: - - _query_params.append(('deviceId', device_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -75354,8 +75248,8 @@ def _v1_global_ipfix_device_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/ipfix/device', + method='DELETE', + resource_path='/v1/global/content-filters/{globalContentFilterId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -75372,10 +75266,10 @@ def _v1_global_ipfix_device_get_serialize( @validate_call - def v1_global_ipfix_post( + def v1_global_content_filters_global_content_filter_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, + global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter whose configuration should be returned.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75388,15 +75282,15 @@ def v1_global_ipfix_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalIpfixPostResponse: - """v1_global_ipfix_post + ) -> V1GlobalContentFiltersGlobalContentFilterIdGetResponse: + """v1_global_content_filters_global_content_filter_id_get - Get configured global ipfix exporters + Get the config for a content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_ipfix_post_request: (required) - :type v1_global_ipfix_post_request: V1GlobalIpfixPostRequest + :param global_content_filter_id: ID of the global content filter whose configuration should be returned. (required) + :type global_content_filter_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75419,9 +75313,9 @@ def v1_global_ipfix_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipfix_post_serialize( + _param = self._v1_global_content_filters_global_content_filter_id_get_serialize( authorization=authorization, - v1_global_ipfix_post_request=v1_global_ipfix_post_request, + global_content_filter_id=global_content_filter_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75429,7 +75323,7 @@ def v1_global_ipfix_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixPostResponse", + '200': "V1GlobalContentFiltersGlobalContentFilterIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -75443,10 +75337,10 @@ def v1_global_ipfix_post( @validate_call - def v1_global_ipfix_post_with_http_info( + def v1_global_content_filters_global_content_filter_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, + global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter whose configuration should be returned.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75459,15 +75353,15 @@ def v1_global_ipfix_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalIpfixPostResponse]: - """v1_global_ipfix_post + ) -> ApiResponse[V1GlobalContentFiltersGlobalContentFilterIdGetResponse]: + """v1_global_content_filters_global_content_filter_id_get - Get configured global ipfix exporters + Get the config for a content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_ipfix_post_request: (required) - :type v1_global_ipfix_post_request: V1GlobalIpfixPostRequest + :param global_content_filter_id: ID of the global content filter whose configuration should be returned. (required) + :type global_content_filter_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75490,9 +75384,9 @@ def v1_global_ipfix_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipfix_post_serialize( + _param = self._v1_global_content_filters_global_content_filter_id_get_serialize( authorization=authorization, - v1_global_ipfix_post_request=v1_global_ipfix_post_request, + global_content_filter_id=global_content_filter_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75500,7 +75394,7 @@ def v1_global_ipfix_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixPostResponse", + '200': "V1GlobalContentFiltersGlobalContentFilterIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -75514,10 +75408,10 @@ def v1_global_ipfix_post_with_http_info( @validate_call - def v1_global_ipfix_post_without_preload_content( + def v1_global_content_filters_global_content_filter_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, + global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter whose configuration should be returned.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75531,14 +75425,14 @@ def v1_global_ipfix_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_ipfix_post + """v1_global_content_filters_global_content_filter_id_get - Get configured global ipfix exporters + Get the config for a content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_ipfix_post_request: (required) - :type v1_global_ipfix_post_request: V1GlobalIpfixPostRequest + :param global_content_filter_id: ID of the global content filter whose configuration should be returned. (required) + :type global_content_filter_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75561,9 +75455,9 @@ def v1_global_ipfix_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipfix_post_serialize( + _param = self._v1_global_content_filters_global_content_filter_id_get_serialize( authorization=authorization, - v1_global_ipfix_post_request=v1_global_ipfix_post_request, + global_content_filter_id=global_content_filter_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75571,7 +75465,7 @@ def v1_global_ipfix_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixPostResponse", + '200': "V1GlobalContentFiltersGlobalContentFilterIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -75580,10 +75474,10 @@ def v1_global_ipfix_post_without_preload_content( return response_data.response - def _v1_global_ipfix_post_serialize( + def _v1_global_content_filters_global_content_filter_id_get_serialize( self, authorization, - v1_global_ipfix_post_request, + global_content_filter_id, _request_auth, _content_type, _headers, @@ -75605,14 +75499,14 @@ def _v1_global_ipfix_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if global_content_filter_id is not None: + _path_params['globalContentFilterId'] = global_content_filter_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_ipfix_post_request is not None: - _body_params = v1_global_ipfix_post_request # set the HTTP header `Accept` @@ -75623,19 +75517,6 @@ def _v1_global_ipfix_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -75643,8 +75524,8 @@ def _v1_global_ipfix_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/ipfix', + method='GET', + resource_path='/v1/global/content-filters/{globalContentFilterId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -75661,10 +75542,11 @@ def _v1_global_ipfix_post_serialize( @validate_call - def v1_global_ipfix_site_get( + def v1_global_content_filters_global_content_filter_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter to replace with the supplied configuration.")], + v1_global_content_filters_global_content_filter_id_put_request: V1GlobalContentFiltersGlobalContentFilterIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75677,15 +75559,17 @@ def v1_global_ipfix_site_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalIpfixSiteGetResponse: - """v1_global_ipfix_site_get + ) -> object: + """v1_global_content_filters_global_content_filter_id_put - Get configured global ipfix exporters for a site + Overwrite a pre-existing content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param global_content_filter_id: ID of the global content filter to replace with the supplied configuration. (required) + :type global_content_filter_id: int + :param v1_global_content_filters_global_content_filter_id_put_request: (required) + :type v1_global_content_filters_global_content_filter_id_put_request: V1GlobalContentFiltersGlobalContentFilterIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75708,9 +75592,10 @@ def v1_global_ipfix_site_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipfix_site_get_serialize( + _param = self._v1_global_content_filters_global_content_filter_id_put_serialize( authorization=authorization, - site_id=site_id, + global_content_filter_id=global_content_filter_id, + v1_global_content_filters_global_content_filter_id_put_request=v1_global_content_filters_global_content_filter_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75718,7 +75603,7 @@ def v1_global_ipfix_site_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixSiteGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -75732,10 +75617,11 @@ def v1_global_ipfix_site_get( @validate_call - def v1_global_ipfix_site_get_with_http_info( + def v1_global_content_filters_global_content_filter_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter to replace with the supplied configuration.")], + v1_global_content_filters_global_content_filter_id_put_request: V1GlobalContentFiltersGlobalContentFilterIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75748,15 +75634,17 @@ def v1_global_ipfix_site_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalIpfixSiteGetResponse]: - """v1_global_ipfix_site_get + ) -> ApiResponse[object]: + """v1_global_content_filters_global_content_filter_id_put - Get configured global ipfix exporters for a site + Overwrite a pre-existing content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param global_content_filter_id: ID of the global content filter to replace with the supplied configuration. (required) + :type global_content_filter_id: int + :param v1_global_content_filters_global_content_filter_id_put_request: (required) + :type v1_global_content_filters_global_content_filter_id_put_request: V1GlobalContentFiltersGlobalContentFilterIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75779,9 +75667,10 @@ def v1_global_ipfix_site_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipfix_site_get_serialize( + _param = self._v1_global_content_filters_global_content_filter_id_put_serialize( authorization=authorization, - site_id=site_id, + global_content_filter_id=global_content_filter_id, + v1_global_content_filters_global_content_filter_id_put_request=v1_global_content_filters_global_content_filter_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75789,7 +75678,7 @@ def v1_global_ipfix_site_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixSiteGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -75803,10 +75692,11 @@ def v1_global_ipfix_site_get_with_http_info( @validate_call - def v1_global_ipfix_site_get_without_preload_content( + def v1_global_content_filters_global_content_filter_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter to replace with the supplied configuration.")], + v1_global_content_filters_global_content_filter_id_put_request: V1GlobalContentFiltersGlobalContentFilterIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75820,14 +75710,16 @@ def v1_global_ipfix_site_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_ipfix_site_get + """v1_global_content_filters_global_content_filter_id_put - Get configured global ipfix exporters for a site + Overwrite a pre-existing content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param global_content_filter_id: ID of the global content filter to replace with the supplied configuration. (required) + :type global_content_filter_id: int + :param v1_global_content_filters_global_content_filter_id_put_request: (required) + :type v1_global_content_filters_global_content_filter_id_put_request: V1GlobalContentFiltersGlobalContentFilterIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75850,9 +75742,10 @@ def v1_global_ipfix_site_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipfix_site_get_serialize( + _param = self._v1_global_content_filters_global_content_filter_id_put_serialize( authorization=authorization, - site_id=site_id, + global_content_filter_id=global_content_filter_id, + v1_global_content_filters_global_content_filter_id_put_request=v1_global_content_filters_global_content_filter_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75860,7 +75753,7 @@ def v1_global_ipfix_site_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixSiteGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -75869,10 +75762,11 @@ def v1_global_ipfix_site_get_without_preload_content( return response_data.response - def _v1_global_ipfix_site_get_serialize( + def _v1_global_content_filters_global_content_filter_id_put_serialize( self, authorization, - site_id, + global_content_filter_id, + v1_global_content_filters_global_content_filter_id_put_request, _request_auth, _content_type, _headers, @@ -75894,16 +75788,16 @@ def _v1_global_ipfix_site_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if global_content_filter_id is not None: + _path_params['globalContentFilterId'] = global_content_filter_id # process the query parameters - if site_id is not None: - - _query_params.append(('siteId', site_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_global_content_filters_global_content_filter_id_put_request is not None: + _body_params = v1_global_content_filters_global_content_filter_id_put_request # set the HTTP header `Accept` @@ -75914,6 +75808,19 @@ def _v1_global_ipfix_site_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -75921,8 +75828,8 @@ def _v1_global_ipfix_site_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/ipfix/site', + method='PUT', + resource_path='/v1/global/content-filters/{globalContentFilterId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -75939,9 +75846,10 @@ def _v1_global_ipfix_site_get_serialize( @validate_call - def v1_global_ipsec_profile_get( + def v1_global_content_filters_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_content_filters_post_request: V1GlobalContentFiltersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75954,13 +75862,15 @@ def v1_global_ipsec_profile_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalIpsecProfileGetResponse: - """v1_global_ipsec_profile_get + ) -> V1GlobalContentFiltersPostResponse: + """v1_global_content_filters_post - Get all the configured global IPsec Profiles for the current enterprise + Configure a new content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_global_content_filters_post_request: (required) + :type v1_global_content_filters_post_request: V1GlobalContentFiltersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75983,8 +75893,9 @@ def v1_global_ipsec_profile_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipsec_profile_get_serialize( + _param = self._v1_global_content_filters_post_serialize( authorization=authorization, + v1_global_content_filters_post_request=v1_global_content_filters_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75992,7 +75903,7 @@ def v1_global_ipsec_profile_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileGetResponse", + '200': "V1GlobalContentFiltersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -76006,9 +75917,10 @@ def v1_global_ipsec_profile_get( @validate_call - def v1_global_ipsec_profile_get_with_http_info( + def v1_global_content_filters_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_content_filters_post_request: V1GlobalContentFiltersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76021,13 +75933,15 @@ def v1_global_ipsec_profile_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalIpsecProfileGetResponse]: - """v1_global_ipsec_profile_get + ) -> ApiResponse[V1GlobalContentFiltersPostResponse]: + """v1_global_content_filters_post - Get all the configured global IPsec Profiles for the current enterprise + Configure a new content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_global_content_filters_post_request: (required) + :type v1_global_content_filters_post_request: V1GlobalContentFiltersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76050,8 +75964,9 @@ def v1_global_ipsec_profile_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipsec_profile_get_serialize( + _param = self._v1_global_content_filters_post_serialize( authorization=authorization, + v1_global_content_filters_post_request=v1_global_content_filters_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76059,7 +75974,7 @@ def v1_global_ipsec_profile_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileGetResponse", + '200': "V1GlobalContentFiltersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -76073,9 +75988,10 @@ def v1_global_ipsec_profile_get_with_http_info( @validate_call - def v1_global_ipsec_profile_get_without_preload_content( + def v1_global_content_filters_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_content_filters_post_request: V1GlobalContentFiltersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76089,12 +76005,14 @@ def v1_global_ipsec_profile_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_ipsec_profile_get + """v1_global_content_filters_post - Get all the configured global IPsec Profiles for the current enterprise + Configure a new content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_global_content_filters_post_request: (required) + :type v1_global_content_filters_post_request: V1GlobalContentFiltersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76117,8 +76035,9 @@ def v1_global_ipsec_profile_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipsec_profile_get_serialize( + _param = self._v1_global_content_filters_post_serialize( authorization=authorization, + v1_global_content_filters_post_request=v1_global_content_filters_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76126,7 +76045,7 @@ def v1_global_ipsec_profile_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileGetResponse", + '200': "V1GlobalContentFiltersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -76135,9 +76054,10 @@ def v1_global_ipsec_profile_get_without_preload_content( return response_data.response - def _v1_global_ipsec_profile_get_serialize( + def _v1_global_content_filters_post_serialize( self, authorization, + v1_global_content_filters_post_request, _request_auth, _content_type, _headers, @@ -76165,6 +76085,8 @@ def _v1_global_ipsec_profile_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_global_content_filters_post_request is not None: + _body_params = v1_global_content_filters_post_request # set the HTTP header `Accept` @@ -76175,6 +76097,19 @@ def _v1_global_ipsec_profile_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -76182,8 +76117,8 @@ def _v1_global_ipsec_profile_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/ipsec-profile', + method='POST', + resource_path='/v1/global/content-filters', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -76200,10 +76135,16 @@ def _v1_global_ipsec_profile_get_serialize( @validate_call - def v1_global_ipsec_profile_id_get( + def v1_global_device_status_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + ipfix_exported_id: Optional[StrictInt] = None, + ntp_id: Optional[StrictInt] = None, + prefix_set_id: Optional[StrictInt] = None, + routing_policy_id: Optional[StrictInt] = None, + snmp_id: Optional[StrictInt] = None, + syslog_server_id: Optional[StrictInt] = None, + traffic_policy_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76216,15 +76157,27 @@ def v1_global_ipsec_profile_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalIpsecProfileIdGetResponse: - """v1_global_ipsec_profile_id_get + ) -> V1GlobalDeviceStatusGetResponse: + """v1_global_device_status_get - Get details of the configured global IPsec Profiles + Get status on global collector attached to devices :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param ipfix_exported_id: + :type ipfix_exported_id: int + :param ntp_id: + :type ntp_id: int + :param prefix_set_id: + :type prefix_set_id: int + :param routing_policy_id: + :type routing_policy_id: int + :param snmp_id: + :type snmp_id: int + :param syslog_server_id: + :type syslog_server_id: int + :param traffic_policy_id: + :type traffic_policy_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76247,9 +76200,15 @@ def v1_global_ipsec_profile_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipsec_profile_id_get_serialize( + _param = self._v1_global_device_status_get_serialize( authorization=authorization, - id=id, + ipfix_exported_id=ipfix_exported_id, + ntp_id=ntp_id, + prefix_set_id=prefix_set_id, + routing_policy_id=routing_policy_id, + snmp_id=snmp_id, + syslog_server_id=syslog_server_id, + traffic_policy_id=traffic_policy_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76257,7 +76216,7 @@ def v1_global_ipsec_profile_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileIdGetResponse", + '200': "V1GlobalDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76271,10 +76230,16 @@ def v1_global_ipsec_profile_id_get( @validate_call - def v1_global_ipsec_profile_id_get_with_http_info( + def v1_global_device_status_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + ipfix_exported_id: Optional[StrictInt] = None, + ntp_id: Optional[StrictInt] = None, + prefix_set_id: Optional[StrictInt] = None, + routing_policy_id: Optional[StrictInt] = None, + snmp_id: Optional[StrictInt] = None, + syslog_server_id: Optional[StrictInt] = None, + traffic_policy_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76287,15 +76252,27 @@ def v1_global_ipsec_profile_id_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalIpsecProfileIdGetResponse]: - """v1_global_ipsec_profile_id_get + ) -> ApiResponse[V1GlobalDeviceStatusGetResponse]: + """v1_global_device_status_get - Get details of the configured global IPsec Profiles + Get status on global collector attached to devices :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param ipfix_exported_id: + :type ipfix_exported_id: int + :param ntp_id: + :type ntp_id: int + :param prefix_set_id: + :type prefix_set_id: int + :param routing_policy_id: + :type routing_policy_id: int + :param snmp_id: + :type snmp_id: int + :param syslog_server_id: + :type syslog_server_id: int + :param traffic_policy_id: + :type traffic_policy_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76318,9 +76295,15 @@ def v1_global_ipsec_profile_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipsec_profile_id_get_serialize( + _param = self._v1_global_device_status_get_serialize( authorization=authorization, - id=id, + ipfix_exported_id=ipfix_exported_id, + ntp_id=ntp_id, + prefix_set_id=prefix_set_id, + routing_policy_id=routing_policy_id, + snmp_id=snmp_id, + syslog_server_id=syslog_server_id, + traffic_policy_id=traffic_policy_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76328,7 +76311,7 @@ def v1_global_ipsec_profile_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileIdGetResponse", + '200': "V1GlobalDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76342,10 +76325,16 @@ def v1_global_ipsec_profile_id_get_with_http_info( @validate_call - def v1_global_ipsec_profile_id_get_without_preload_content( + def v1_global_device_status_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + ipfix_exported_id: Optional[StrictInt] = None, + ntp_id: Optional[StrictInt] = None, + prefix_set_id: Optional[StrictInt] = None, + routing_policy_id: Optional[StrictInt] = None, + snmp_id: Optional[StrictInt] = None, + syslog_server_id: Optional[StrictInt] = None, + traffic_policy_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76359,14 +76348,26 @@ def v1_global_ipsec_profile_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_ipsec_profile_id_get + """v1_global_device_status_get - Get details of the configured global IPsec Profiles + Get status on global collector attached to devices :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param ipfix_exported_id: + :type ipfix_exported_id: int + :param ntp_id: + :type ntp_id: int + :param prefix_set_id: + :type prefix_set_id: int + :param routing_policy_id: + :type routing_policy_id: int + :param snmp_id: + :type snmp_id: int + :param syslog_server_id: + :type syslog_server_id: int + :param traffic_policy_id: + :type traffic_policy_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76389,9 +76390,15 @@ def v1_global_ipsec_profile_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipsec_profile_id_get_serialize( + _param = self._v1_global_device_status_get_serialize( authorization=authorization, - id=id, + ipfix_exported_id=ipfix_exported_id, + ntp_id=ntp_id, + prefix_set_id=prefix_set_id, + routing_policy_id=routing_policy_id, + snmp_id=snmp_id, + syslog_server_id=syslog_server_id, + traffic_policy_id=traffic_policy_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76399,7 +76406,7 @@ def v1_global_ipsec_profile_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileIdGetResponse", + '200': "V1GlobalDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76408,10 +76415,16 @@ def v1_global_ipsec_profile_id_get_without_preload_content( return response_data.response - def _v1_global_ipsec_profile_id_get_serialize( + def _v1_global_device_status_get_serialize( self, authorization, - id, + ipfix_exported_id, + ntp_id, + prefix_set_id, + routing_policy_id, + snmp_id, + syslog_server_id, + traffic_policy_id, _request_auth, _content_type, _headers, @@ -76433,9 +76446,35 @@ def _v1_global_ipsec_profile_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if ipfix_exported_id is not None: + + _query_params.append(('ipfixExportedId', ipfix_exported_id)) + + if ntp_id is not None: + + _query_params.append(('ntpId', ntp_id)) + + if prefix_set_id is not None: + + _query_params.append(('prefixSetId', prefix_set_id)) + + if routing_policy_id is not None: + + _query_params.append(('routingPolicyId', routing_policy_id)) + + if snmp_id is not None: + + _query_params.append(('snmpId', snmp_id)) + + if syslog_server_id is not None: + + _query_params.append(('syslogServerId', syslog_server_id)) + + if traffic_policy_id is not None: + + _query_params.append(('trafficPolicyId', traffic_policy_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -76459,7 +76498,7 @@ def _v1_global_ipsec_profile_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/ipsec-profile/{id}', + resource_path='/v1/global/device-status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -76476,10 +76515,9 @@ def _v1_global_ipsec_profile_id_get_serialize( @validate_call - def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get( + def v1_global_domain_categories_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vpn_profile_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76492,15 +76530,13 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse: - """v1_global_ipsec_profile_vpn_profile_id_site_to_site_get + ) -> V1GlobalDomainCategoriesGetResponse: + """v1_global_domain_categories_get - Get Site-to-site VPNs that are using the given global IPsec Profile + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vpn_profile_id: (required) - :type vpn_profile_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76523,9 +76559,8 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( + _param = self._v1_global_domain_categories_get_serialize( authorization=authorization, - vpn_profile_id=vpn_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76533,7 +76568,7 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse", + '200': "V1GlobalDomainCategoriesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76547,10 +76582,9 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get( @validate_call - def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_with_http_info( + def v1_global_domain_categories_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vpn_profile_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76563,15 +76597,13 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse]: - """v1_global_ipsec_profile_vpn_profile_id_site_to_site_get + ) -> ApiResponse[V1GlobalDomainCategoriesGetResponse]: + """v1_global_domain_categories_get - Get Site-to-site VPNs that are using the given global IPsec Profile + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vpn_profile_id: (required) - :type vpn_profile_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76594,9 +76626,8 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( + _param = self._v1_global_domain_categories_get_serialize( authorization=authorization, - vpn_profile_id=vpn_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76604,7 +76635,7 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse", + '200': "V1GlobalDomainCategoriesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76618,10 +76649,9 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_with_http_info( @validate_call - def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_without_preload_content( + def v1_global_domain_categories_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vpn_profile_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76635,14 +76665,12 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_without_preload_cont _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_ipsec_profile_vpn_profile_id_site_to_site_get + """v1_global_domain_categories_get - Get Site-to-site VPNs that are using the given global IPsec Profile + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vpn_profile_id: (required) - :type vpn_profile_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76665,9 +76693,8 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_without_preload_cont :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( + _param = self._v1_global_domain_categories_get_serialize( authorization=authorization, - vpn_profile_id=vpn_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76675,7 +76702,7 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_without_preload_cont ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse", + '200': "V1GlobalDomainCategoriesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76684,10 +76711,9 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_without_preload_cont return response_data.response - def _v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( + def _v1_global_domain_categories_get_serialize( self, authorization, - vpn_profile_id, _request_auth, _content_type, _headers, @@ -76709,8 +76735,6 @@ def _v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if vpn_profile_id is not None: - _path_params['vpnProfileId'] = vpn_profile_id # process the query parameters # process the header parameters if authorization is not None: @@ -76735,7 +76759,7 @@ def _v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/ipsec-profile/{vpnProfileId}/site-to-site', + resource_path='/v1/global/domain-categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -76752,9 +76776,10 @@ def _v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( @validate_call - def v1_global_lan_segments_get( + def v1_global_ipfix_device_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76767,13 +76792,15 @@ def v1_global_lan_segments_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalLanSegmentsGetResponse: - """v1_global_lan_segments_get + ) -> V1GlobalIpfixDeviceGetResponse: + """v1_global_ipfix_device_get - Get a list of lan-segments under the currently logged in enterprise + Get global ipfix exporters objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76796,8 +76823,9 @@ def v1_global_lan_segments_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_get_serialize( + _param = self._v1_global_ipfix_device_get_serialize( authorization=authorization, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76805,7 +76833,7 @@ def v1_global_lan_segments_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsGetResponse", + '200': "V1GlobalIpfixDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76819,9 +76847,10 @@ def v1_global_lan_segments_get( @validate_call - def v1_global_lan_segments_get_with_http_info( + def v1_global_ipfix_device_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76834,13 +76863,15 @@ def v1_global_lan_segments_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalLanSegmentsGetResponse]: - """v1_global_lan_segments_get + ) -> ApiResponse[V1GlobalIpfixDeviceGetResponse]: + """v1_global_ipfix_device_get - Get a list of lan-segments under the currently logged in enterprise + Get global ipfix exporters objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76863,8 +76894,9 @@ def v1_global_lan_segments_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_get_serialize( + _param = self._v1_global_ipfix_device_get_serialize( authorization=authorization, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76872,7 +76904,7 @@ def v1_global_lan_segments_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsGetResponse", + '200': "V1GlobalIpfixDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76886,9 +76918,10 @@ def v1_global_lan_segments_get_with_http_info( @validate_call - def v1_global_lan_segments_get_without_preload_content( + def v1_global_ipfix_device_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76902,12 +76935,14 @@ def v1_global_lan_segments_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_lan_segments_get + """v1_global_ipfix_device_get - Get a list of lan-segments under the currently logged in enterprise + Get global ipfix exporters objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76930,8 +76965,9 @@ def v1_global_lan_segments_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_get_serialize( + _param = self._v1_global_ipfix_device_get_serialize( authorization=authorization, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76939,7 +76975,7 @@ def v1_global_lan_segments_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsGetResponse", + '200': "V1GlobalIpfixDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76948,9 +76984,10 @@ def v1_global_lan_segments_get_without_preload_content( return response_data.response - def _v1_global_lan_segments_get_serialize( + def _v1_global_ipfix_device_get_serialize( self, authorization, + device_id, _request_auth, _content_type, _headers, @@ -76973,6 +77010,10 @@ def _v1_global_lan_segments_get_serialize( # process the path parameters # process the query parameters + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -76996,7 +77037,7 @@ def _v1_global_lan_segments_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/lan-segments', + resource_path='/v1/global/ipfix/device', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -77013,10 +77054,10 @@ def _v1_global_lan_segments_get_serialize( @validate_call - def v1_global_lan_segments_id_delete( + def v1_global_ipfix_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77029,15 +77070,15 @@ def v1_global_lan_segments_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_global_lan_segments_id_delete + ) -> V1GlobalIpfixPostResponse: + """v1_global_ipfix_post - Delete a lan-segment + Get configured global ipfix exporters :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_ipfix_post_request: (required) + :type v1_global_ipfix_post_request: V1GlobalIpfixPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77060,9 +77101,9 @@ def v1_global_lan_segments_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_id_delete_serialize( + _param = self._v1_global_ipfix_post_serialize( authorization=authorization, - id=id, + v1_global_ipfix_post_request=v1_global_ipfix_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77070,7 +77111,7 @@ def v1_global_lan_segments_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalIpfixPostResponse", } response_data = self.api_client.call_api( *_param, @@ -77084,10 +77125,10 @@ def v1_global_lan_segments_id_delete( @validate_call - def v1_global_lan_segments_id_delete_with_http_info( + def v1_global_ipfix_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77100,15 +77141,15 @@ def v1_global_lan_segments_id_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_global_lan_segments_id_delete + ) -> ApiResponse[V1GlobalIpfixPostResponse]: + """v1_global_ipfix_post - Delete a lan-segment + Get configured global ipfix exporters :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_ipfix_post_request: (required) + :type v1_global_ipfix_post_request: V1GlobalIpfixPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77131,9 +77172,9 @@ def v1_global_lan_segments_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_id_delete_serialize( + _param = self._v1_global_ipfix_post_serialize( authorization=authorization, - id=id, + v1_global_ipfix_post_request=v1_global_ipfix_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77141,7 +77182,7 @@ def v1_global_lan_segments_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalIpfixPostResponse", } response_data = self.api_client.call_api( *_param, @@ -77155,10 +77196,10 @@ def v1_global_lan_segments_id_delete_with_http_info( @validate_call - def v1_global_lan_segments_id_delete_without_preload_content( + def v1_global_ipfix_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77172,14 +77213,14 @@ def v1_global_lan_segments_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_lan_segments_id_delete + """v1_global_ipfix_post - Delete a lan-segment + Get configured global ipfix exporters :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_ipfix_post_request: (required) + :type v1_global_ipfix_post_request: V1GlobalIpfixPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77202,9 +77243,9 @@ def v1_global_lan_segments_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_id_delete_serialize( + _param = self._v1_global_ipfix_post_serialize( authorization=authorization, - id=id, + v1_global_ipfix_post_request=v1_global_ipfix_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77212,7 +77253,7 @@ def v1_global_lan_segments_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalIpfixPostResponse", } response_data = self.api_client.call_api( *_param, @@ -77221,10 +77262,10 @@ def v1_global_lan_segments_id_delete_without_preload_content( return response_data.response - def _v1_global_lan_segments_id_delete_serialize( + def _v1_global_ipfix_post_serialize( self, authorization, - id, + v1_global_ipfix_post_request, _request_auth, _content_type, _headers, @@ -77246,17 +77287,37 @@ def _v1_global_lan_segments_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_global_ipfix_post_request is not None: + _body_params = v1_global_ipfix_post_request + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -77264,8 +77325,8 @@ def _v1_global_lan_segments_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/global/lan-segments/{id}', + method='POST', + resource_path='/v1/global/ipfix', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -77282,10 +77343,10 @@ def _v1_global_lan_segments_id_delete_serialize( @validate_call - def v1_global_lan_segments_post( + def v1_global_ipfix_site_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77298,15 +77359,15 @@ def v1_global_lan_segments_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalLanSegmentsPostResponse: - """v1_global_lan_segments_post + ) -> V1GlobalIpfixSiteGetResponse: + """v1_global_ipfix_site_get - Create a new lan-segment scoped to the enterprise + Get configured global ipfix exporters for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_lan_segments_post_request: (required) - :type v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77329,9 +77390,9 @@ def v1_global_lan_segments_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_post_serialize( + _param = self._v1_global_ipfix_site_get_serialize( authorization=authorization, - v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77339,7 +77400,7 @@ def v1_global_lan_segments_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsPostResponse", + '200': "V1GlobalIpfixSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77353,10 +77414,10 @@ def v1_global_lan_segments_post( @validate_call - def v1_global_lan_segments_post_with_http_info( + def v1_global_ipfix_site_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77369,15 +77430,15 @@ def v1_global_lan_segments_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalLanSegmentsPostResponse]: - """v1_global_lan_segments_post + ) -> ApiResponse[V1GlobalIpfixSiteGetResponse]: + """v1_global_ipfix_site_get - Create a new lan-segment scoped to the enterprise + Get configured global ipfix exporters for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_lan_segments_post_request: (required) - :type v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77400,9 +77461,9 @@ def v1_global_lan_segments_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_post_serialize( + _param = self._v1_global_ipfix_site_get_serialize( authorization=authorization, - v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77410,7 +77471,7 @@ def v1_global_lan_segments_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsPostResponse", + '200': "V1GlobalIpfixSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77424,10 +77485,10 @@ def v1_global_lan_segments_post_with_http_info( @validate_call - def v1_global_lan_segments_post_without_preload_content( + def v1_global_ipfix_site_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77441,14 +77502,14 @@ def v1_global_lan_segments_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_lan_segments_post + """v1_global_ipfix_site_get - Create a new lan-segment scoped to the enterprise + Get configured global ipfix exporters for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_lan_segments_post_request: (required) - :type v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77471,9 +77532,9 @@ def v1_global_lan_segments_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_post_serialize( + _param = self._v1_global_ipfix_site_get_serialize( authorization=authorization, - v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77481,7 +77542,7 @@ def v1_global_lan_segments_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsPostResponse", + '200': "V1GlobalIpfixSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77490,10 +77551,10 @@ def v1_global_lan_segments_post_without_preload_content( return response_data.response - def _v1_global_lan_segments_post_serialize( + def _v1_global_ipfix_site_get_serialize( self, authorization, - v1_global_lan_segments_post_request, + site_id, _request_auth, _content_type, _headers, @@ -77516,13 +77577,15 @@ def _v1_global_lan_segments_post_serialize( # process the path parameters # process the query parameters + if site_id is not None: + + _query_params.append(('siteId', site_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_lan_segments_post_request is not None: - _body_params = v1_global_lan_segments_post_request # set the HTTP header `Accept` @@ -77533,19 +77596,6 @@ def _v1_global_lan_segments_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -77553,8 +77603,8 @@ def _v1_global_lan_segments_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/lan-segments', + method='GET', + resource_path='/v1/global/ipfix/site', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -77571,10 +77621,9 @@ def _v1_global_lan_segments_post_serialize( @validate_call - def v1_global_lan_segments_vrf_id_devices_get( + def v1_global_ipsec_profile_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vrf_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77587,15 +77636,13 @@ def v1_global_lan_segments_vrf_id_devices_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalLanSegmentsVrfIdDevicesGetResponse: - """v1_global_lan_segments_vrf_id_devices_get + ) -> V1GlobalIpsecProfileGetResponse: + """v1_global_ipsec_profile_get - Get a list of lan-segment devices under the currently logged in enterprise + Get all the configured global IPsec Profiles for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vrf_id: (required) - :type vrf_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77618,9 +77665,8 @@ def v1_global_lan_segments_vrf_id_devices_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_vrf_id_devices_get_serialize( + _param = self._v1_global_ipsec_profile_get_serialize( authorization=authorization, - vrf_id=vrf_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77628,7 +77674,7 @@ def v1_global_lan_segments_vrf_id_devices_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", + '200': "V1GlobalIpsecProfileGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77642,10 +77688,9 @@ def v1_global_lan_segments_vrf_id_devices_get( @validate_call - def v1_global_lan_segments_vrf_id_devices_get_with_http_info( + def v1_global_ipsec_profile_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vrf_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77658,15 +77703,13 @@ def v1_global_lan_segments_vrf_id_devices_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalLanSegmentsVrfIdDevicesGetResponse]: - """v1_global_lan_segments_vrf_id_devices_get + ) -> ApiResponse[V1GlobalIpsecProfileGetResponse]: + """v1_global_ipsec_profile_get - Get a list of lan-segment devices under the currently logged in enterprise + Get all the configured global IPsec Profiles for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vrf_id: (required) - :type vrf_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77689,9 +77732,8 @@ def v1_global_lan_segments_vrf_id_devices_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_vrf_id_devices_get_serialize( + _param = self._v1_global_ipsec_profile_get_serialize( authorization=authorization, - vrf_id=vrf_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77699,7 +77741,7 @@ def v1_global_lan_segments_vrf_id_devices_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", + '200': "V1GlobalIpsecProfileGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77713,10 +77755,9 @@ def v1_global_lan_segments_vrf_id_devices_get_with_http_info( @validate_call - def v1_global_lan_segments_vrf_id_devices_get_without_preload_content( + def v1_global_ipsec_profile_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vrf_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77730,14 +77771,12 @@ def v1_global_lan_segments_vrf_id_devices_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_lan_segments_vrf_id_devices_get + """v1_global_ipsec_profile_get - Get a list of lan-segment devices under the currently logged in enterprise + Get all the configured global IPsec Profiles for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vrf_id: (required) - :type vrf_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77760,9 +77799,8 @@ def v1_global_lan_segments_vrf_id_devices_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_lan_segments_vrf_id_devices_get_serialize( + _param = self._v1_global_ipsec_profile_get_serialize( authorization=authorization, - vrf_id=vrf_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77770,7 +77808,7 @@ def v1_global_lan_segments_vrf_id_devices_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", + '200': "V1GlobalIpsecProfileGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77779,10 +77817,9 @@ def v1_global_lan_segments_vrf_id_devices_get_without_preload_content( return response_data.response - def _v1_global_lan_segments_vrf_id_devices_get_serialize( + def _v1_global_ipsec_profile_get_serialize( self, authorization, - vrf_id, _request_auth, _content_type, _headers, @@ -77804,8 +77841,6 @@ def _v1_global_lan_segments_vrf_id_devices_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if vrf_id is not None: - _path_params['vrfId'] = vrf_id # process the query parameters # process the header parameters if authorization is not None: @@ -77830,7 +77865,7 @@ def _v1_global_lan_segments_vrf_id_devices_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/lan-segments/{vrfId}/devices', + resource_path='/v1/global/ipsec-profile', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -77847,10 +77882,10 @@ def _v1_global_lan_segments_vrf_id_devices_get_serialize( @validate_call - def v1_global_ntps_device_get( + def v1_global_ipsec_profile_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77863,15 +77898,15 @@ def v1_global_ntps_device_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalNtpsDeviceGetResponse: - """v1_global_ntps_device_get + ) -> V1GlobalIpsecProfileIdGetResponse: + """v1_global_ipsec_profile_id_get - Get global ntp objects that failed to attach for a device + Get details of the configured global IPsec Profiles :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77894,9 +77929,9 @@ def v1_global_ntps_device_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ntps_device_get_serialize( + _param = self._v1_global_ipsec_profile_id_get_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77904,7 +77939,7 @@ def v1_global_ntps_device_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsDeviceGetResponse", + '200': "V1GlobalIpsecProfileIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77918,10 +77953,10 @@ def v1_global_ntps_device_get( @validate_call - def v1_global_ntps_device_get_with_http_info( + def v1_global_ipsec_profile_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77934,15 +77969,15 @@ def v1_global_ntps_device_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalNtpsDeviceGetResponse]: - """v1_global_ntps_device_get + ) -> ApiResponse[V1GlobalIpsecProfileIdGetResponse]: + """v1_global_ipsec_profile_id_get - Get global ntp objects that failed to attach for a device + Get details of the configured global IPsec Profiles :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77965,9 +78000,9 @@ def v1_global_ntps_device_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ntps_device_get_serialize( + _param = self._v1_global_ipsec_profile_id_get_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77975,7 +78010,7 @@ def v1_global_ntps_device_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsDeviceGetResponse", + '200': "V1GlobalIpsecProfileIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77989,10 +78024,10 @@ def v1_global_ntps_device_get_with_http_info( @validate_call - def v1_global_ntps_device_get_without_preload_content( + def v1_global_ipsec_profile_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78006,14 +78041,14 @@ def v1_global_ntps_device_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_ntps_device_get + """v1_global_ipsec_profile_id_get - Get global ntp objects that failed to attach for a device + Get details of the configured global IPsec Profiles :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78036,9 +78071,9 @@ def v1_global_ntps_device_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ntps_device_get_serialize( + _param = self._v1_global_ipsec_profile_id_get_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78046,7 +78081,7 @@ def v1_global_ntps_device_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsDeviceGetResponse", + '200': "V1GlobalIpsecProfileIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78055,10 +78090,10 @@ def v1_global_ntps_device_get_without_preload_content( return response_data.response - def _v1_global_ntps_device_get_serialize( + def _v1_global_ipsec_profile_id_get_serialize( self, authorization, - device_id, + id, _request_auth, _content_type, _headers, @@ -78080,11 +78115,9 @@ def _v1_global_ntps_device_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if device_id is not None: - - _query_params.append(('deviceId', device_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -78108,7 +78141,7 @@ def _v1_global_ntps_device_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/ntps/device', + resource_path='/v1/global/ipsec-profile/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -78125,10 +78158,10 @@ def _v1_global_ntps_device_get_serialize( @validate_call - def v1_global_ntps_post( + def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ntps_post_request: V1GlobalNtpsPostRequest, + vpn_profile_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78141,15 +78174,15 @@ def v1_global_ntps_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalNtpsPostResponse: - """v1_global_ntps_post + ) -> V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse: + """v1_global_ipsec_profile_vpn_profile_id_site_to_site_get - Get configured global ntps + Get Site-to-site VPNs that are using the given global IPsec Profile :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_ntps_post_request: (required) - :type v1_global_ntps_post_request: V1GlobalNtpsPostRequest + :param vpn_profile_id: (required) + :type vpn_profile_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78172,9 +78205,9 @@ def v1_global_ntps_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ntps_post_serialize( + _param = self._v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( authorization=authorization, - v1_global_ntps_post_request=v1_global_ntps_post_request, + vpn_profile_id=vpn_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78182,7 +78215,7 @@ def v1_global_ntps_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsPostResponse", + '200': "V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78196,10 +78229,10 @@ def v1_global_ntps_post( @validate_call - def v1_global_ntps_post_with_http_info( + def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ntps_post_request: V1GlobalNtpsPostRequest, + vpn_profile_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78212,15 +78245,15 @@ def v1_global_ntps_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalNtpsPostResponse]: - """v1_global_ntps_post + ) -> ApiResponse[V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse]: + """v1_global_ipsec_profile_vpn_profile_id_site_to_site_get - Get configured global ntps + Get Site-to-site VPNs that are using the given global IPsec Profile :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_ntps_post_request: (required) - :type v1_global_ntps_post_request: V1GlobalNtpsPostRequest + :param vpn_profile_id: (required) + :type vpn_profile_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78243,9 +78276,9 @@ def v1_global_ntps_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ntps_post_serialize( + _param = self._v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( authorization=authorization, - v1_global_ntps_post_request=v1_global_ntps_post_request, + vpn_profile_id=vpn_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78253,7 +78286,7 @@ def v1_global_ntps_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsPostResponse", + '200': "V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78267,10 +78300,10 @@ def v1_global_ntps_post_with_http_info( @validate_call - def v1_global_ntps_post_without_preload_content( + def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ntps_post_request: V1GlobalNtpsPostRequest, + vpn_profile_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78284,14 +78317,14 @@ def v1_global_ntps_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_ntps_post + """v1_global_ipsec_profile_vpn_profile_id_site_to_site_get - Get configured global ntps + Get Site-to-site VPNs that are using the given global IPsec Profile :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_ntps_post_request: (required) - :type v1_global_ntps_post_request: V1GlobalNtpsPostRequest + :param vpn_profile_id: (required) + :type vpn_profile_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78314,9 +78347,9 @@ def v1_global_ntps_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ntps_post_serialize( + _param = self._v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( authorization=authorization, - v1_global_ntps_post_request=v1_global_ntps_post_request, + vpn_profile_id=vpn_profile_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78324,7 +78357,7 @@ def v1_global_ntps_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsPostResponse", + '200': "V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78333,10 +78366,10 @@ def v1_global_ntps_post_without_preload_content( return response_data.response - def _v1_global_ntps_post_serialize( + def _v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( self, authorization, - v1_global_ntps_post_request, + vpn_profile_id, _request_auth, _content_type, _headers, @@ -78358,14 +78391,14 @@ def _v1_global_ntps_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if vpn_profile_id is not None: + _path_params['vpnProfileId'] = vpn_profile_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_ntps_post_request is not None: - _body_params = v1_global_ntps_post_request # set the HTTP header `Accept` @@ -78376,19 +78409,6 @@ def _v1_global_ntps_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -78396,8 +78416,8 @@ def _v1_global_ntps_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/ntps', + method='GET', + resource_path='/v1/global/ipsec-profile/{vpnProfileId}/site-to-site', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -78414,10 +78434,9 @@ def _v1_global_ntps_post_serialize( @validate_call - def v1_global_ntps_site_get( + def v1_global_lan_segments_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78430,15 +78449,13 @@ def v1_global_ntps_site_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalNtpsSiteGetResponse: - """v1_global_ntps_site_get + ) -> V1GlobalLanSegmentsGetResponse: + """v1_global_lan_segments_get - Get configured global ntps + Get a list of lan-segments under the currently logged in enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78461,9 +78478,8 @@ def v1_global_ntps_site_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ntps_site_get_serialize( + _param = self._v1_global_lan_segments_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78471,7 +78487,7 @@ def v1_global_ntps_site_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsSiteGetResponse", + '200': "V1GlobalLanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78485,10 +78501,9 @@ def v1_global_ntps_site_get( @validate_call - def v1_global_ntps_site_get_with_http_info( + def v1_global_lan_segments_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78501,15 +78516,13 @@ def v1_global_ntps_site_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalNtpsSiteGetResponse]: - """v1_global_ntps_site_get + ) -> ApiResponse[V1GlobalLanSegmentsGetResponse]: + """v1_global_lan_segments_get - Get configured global ntps + Get a list of lan-segments under the currently logged in enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78532,9 +78545,8 @@ def v1_global_ntps_site_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ntps_site_get_serialize( + _param = self._v1_global_lan_segments_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78542,7 +78554,7 @@ def v1_global_ntps_site_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsSiteGetResponse", + '200': "V1GlobalLanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78556,10 +78568,9 @@ def v1_global_ntps_site_get_with_http_info( @validate_call - def v1_global_ntps_site_get_without_preload_content( + def v1_global_lan_segments_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78573,14 +78584,12 @@ def v1_global_ntps_site_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_ntps_site_get + """v1_global_lan_segments_get - Get configured global ntps + Get a list of lan-segments under the currently logged in enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78603,9 +78612,8 @@ def v1_global_ntps_site_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ntps_site_get_serialize( + _param = self._v1_global_lan_segments_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78613,7 +78621,7 @@ def v1_global_ntps_site_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsSiteGetResponse", + '200': "V1GlobalLanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78622,10 +78630,9 @@ def v1_global_ntps_site_get_without_preload_content( return response_data.response - def _v1_global_ntps_site_get_serialize( + def _v1_global_lan_segments_get_serialize( self, authorization, - site_id, _request_auth, _content_type, _headers, @@ -78648,10 +78655,6 @@ def _v1_global_ntps_site_get_serialize( # process the path parameters # process the query parameters - if site_id is not None: - - _query_params.append(('siteId', site_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -78675,7 +78678,7 @@ def _v1_global_ntps_site_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/ntps/site', + resource_path='/v1/global/lan-segments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -78692,10 +78695,10 @@ def _v1_global_ntps_site_get_serialize( @validate_call - def v1_global_prefix_sets_post( + def v1_global_lan_segments_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78708,15 +78711,15 @@ def v1_global_prefix_sets_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalPrefixSetsPostResponse: - """v1_global_prefix_sets_post + ) -> None: + """v1_global_lan_segments_id_delete - Get configured global prefix-sets + Delete a lan-segment :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_prefix_sets_post_request: (required) - :type v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78739,9 +78742,9 @@ def v1_global_prefix_sets_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_prefix_sets_post_serialize( + _param = self._v1_global_lan_segments_id_delete_serialize( authorization=authorization, - v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78749,7 +78752,7 @@ def v1_global_prefix_sets_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalPrefixSetsPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -78763,10 +78766,10 @@ def v1_global_prefix_sets_post( @validate_call - def v1_global_prefix_sets_post_with_http_info( + def v1_global_lan_segments_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78779,15 +78782,15 @@ def v1_global_prefix_sets_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalPrefixSetsPostResponse]: - """v1_global_prefix_sets_post + ) -> ApiResponse[None]: + """v1_global_lan_segments_id_delete - Get configured global prefix-sets + Delete a lan-segment :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_prefix_sets_post_request: (required) - :type v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78810,9 +78813,9 @@ def v1_global_prefix_sets_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_prefix_sets_post_serialize( + _param = self._v1_global_lan_segments_id_delete_serialize( authorization=authorization, - v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78820,7 +78823,7 @@ def v1_global_prefix_sets_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalPrefixSetsPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -78834,10 +78837,10 @@ def v1_global_prefix_sets_post_with_http_info( @validate_call - def v1_global_prefix_sets_post_without_preload_content( + def v1_global_lan_segments_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78851,14 +78854,14 @@ def v1_global_prefix_sets_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_prefix_sets_post + """v1_global_lan_segments_id_delete - Get configured global prefix-sets + Delete a lan-segment :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_prefix_sets_post_request: (required) - :type v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78881,9 +78884,9 @@ def v1_global_prefix_sets_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_prefix_sets_post_serialize( + _param = self._v1_global_lan_segments_id_delete_serialize( authorization=authorization, - v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78891,7 +78894,7 @@ def v1_global_prefix_sets_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalPrefixSetsPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -78900,10 +78903,10 @@ def v1_global_prefix_sets_post_without_preload_content( return response_data.response - def _v1_global_prefix_sets_post_serialize( + def _v1_global_lan_segments_id_delete_serialize( self, authorization, - v1_global_prefix_sets_post_request, + id, _request_auth, _content_type, _headers, @@ -78925,37 +78928,17 @@ def _v1_global_prefix_sets_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_prefix_sets_post_request is not None: - _body_params = v1_global_prefix_sets_post_request - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -78963,8 +78946,8 @@ def _v1_global_prefix_sets_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/prefix-sets', + method='DELETE', + resource_path='/v1/global/lan-segments/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -78981,10 +78964,10 @@ def _v1_global_prefix_sets_post_serialize( @validate_call - def v1_global_routing_policies_post( + def v1_global_lan_segments_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, + v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78997,15 +78980,15 @@ def v1_global_routing_policies_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalRoutingPoliciesPostResponse: - """v1_global_routing_policies_post + ) -> V1GlobalLanSegmentsPostResponse: + """v1_global_lan_segments_post - Get configured global routing-policies + Create a new lan-segment scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_routing_policies_post_request: (required) - :type v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest + :param v1_global_lan_segments_post_request: (required) + :type v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79028,9 +79011,9 @@ def v1_global_routing_policies_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_routing_policies_post_serialize( + _param = self._v1_global_lan_segments_post_serialize( authorization=authorization, - v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, + v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79038,7 +79021,7 @@ def v1_global_routing_policies_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalRoutingPoliciesPostResponse", + '200': "V1GlobalLanSegmentsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -79052,10 +79035,10 @@ def v1_global_routing_policies_post( @validate_call - def v1_global_routing_policies_post_with_http_info( + def v1_global_lan_segments_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, + v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79068,15 +79051,15 @@ def v1_global_routing_policies_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalRoutingPoliciesPostResponse]: - """v1_global_routing_policies_post + ) -> ApiResponse[V1GlobalLanSegmentsPostResponse]: + """v1_global_lan_segments_post - Get configured global routing-policies + Create a new lan-segment scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_routing_policies_post_request: (required) - :type v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest + :param v1_global_lan_segments_post_request: (required) + :type v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79099,9 +79082,9 @@ def v1_global_routing_policies_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_routing_policies_post_serialize( + _param = self._v1_global_lan_segments_post_serialize( authorization=authorization, - v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, + v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79109,7 +79092,7 @@ def v1_global_routing_policies_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalRoutingPoliciesPostResponse", + '200': "V1GlobalLanSegmentsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -79123,10 +79106,10 @@ def v1_global_routing_policies_post_with_http_info( @validate_call - def v1_global_routing_policies_post_without_preload_content( + def v1_global_lan_segments_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, + v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79140,14 +79123,14 @@ def v1_global_routing_policies_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_routing_policies_post + """v1_global_lan_segments_post - Get configured global routing-policies + Create a new lan-segment scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_routing_policies_post_request: (required) - :type v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest + :param v1_global_lan_segments_post_request: (required) + :type v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79170,9 +79153,9 @@ def v1_global_routing_policies_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_routing_policies_post_serialize( + _param = self._v1_global_lan_segments_post_serialize( authorization=authorization, - v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, + v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79180,7 +79163,7 @@ def v1_global_routing_policies_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalRoutingPoliciesPostResponse", + '200': "V1GlobalLanSegmentsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -79189,10 +79172,10 @@ def v1_global_routing_policies_post_without_preload_content( return response_data.response - def _v1_global_routing_policies_post_serialize( + def _v1_global_lan_segments_post_serialize( self, authorization, - v1_global_routing_policies_post_request, + v1_global_lan_segments_post_request, _request_auth, _content_type, _headers, @@ -79220,8 +79203,8 @@ def _v1_global_routing_policies_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_routing_policies_post_request is not None: - _body_params = v1_global_routing_policies_post_request + if v1_global_lan_segments_post_request is not None: + _body_params = v1_global_lan_segments_post_request # set the HTTP header `Accept` @@ -79253,7 +79236,7 @@ def _v1_global_routing_policies_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/global/routing-policies', + resource_path='/v1/global/lan-segments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -79270,9 +79253,10 @@ def _v1_global_routing_policies_post_serialize( @validate_call - def v1_global_site_lists_get( + def v1_global_lan_segments_vrf_id_devices_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + vrf_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79285,13 +79269,15 @@ def v1_global_site_lists_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSiteListsGetResponse: - """v1_global_site_lists_get + ) -> V1GlobalLanSegmentsVrfIdDevicesGetResponse: + """v1_global_lan_segments_vrf_id_devices_get - Get a list of site lists under the currently logged in enterprise + Get a list of lan-segment devices under the currently logged in enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param vrf_id: (required) + :type vrf_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79314,8 +79300,9 @@ def v1_global_site_lists_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_get_serialize( + _param = self._v1_global_lan_segments_vrf_id_devices_get_serialize( authorization=authorization, + vrf_id=vrf_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79323,7 +79310,7 @@ def v1_global_site_lists_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsGetResponse", + '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79337,9 +79324,10 @@ def v1_global_site_lists_get( @validate_call - def v1_global_site_lists_get_with_http_info( + def v1_global_lan_segments_vrf_id_devices_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + vrf_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79352,13 +79340,15 @@ def v1_global_site_lists_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSiteListsGetResponse]: - """v1_global_site_lists_get + ) -> ApiResponse[V1GlobalLanSegmentsVrfIdDevicesGetResponse]: + """v1_global_lan_segments_vrf_id_devices_get - Get a list of site lists under the currently logged in enterprise + Get a list of lan-segment devices under the currently logged in enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param vrf_id: (required) + :type vrf_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79381,8 +79371,9 @@ def v1_global_site_lists_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_get_serialize( + _param = self._v1_global_lan_segments_vrf_id_devices_get_serialize( authorization=authorization, + vrf_id=vrf_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79390,7 +79381,7 @@ def v1_global_site_lists_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsGetResponse", + '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79404,9 +79395,10 @@ def v1_global_site_lists_get_with_http_info( @validate_call - def v1_global_site_lists_get_without_preload_content( + def v1_global_lan_segments_vrf_id_devices_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + vrf_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79420,12 +79412,14 @@ def v1_global_site_lists_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_site_lists_get + """v1_global_lan_segments_vrf_id_devices_get - Get a list of site lists under the currently logged in enterprise + Get a list of lan-segment devices under the currently logged in enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param vrf_id: (required) + :type vrf_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79448,8 +79442,9 @@ def v1_global_site_lists_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_get_serialize( + _param = self._v1_global_lan_segments_vrf_id_devices_get_serialize( authorization=authorization, + vrf_id=vrf_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79457,7 +79452,7 @@ def v1_global_site_lists_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsGetResponse", + '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79466,9 +79461,10 @@ def v1_global_site_lists_get_without_preload_content( return response_data.response - def _v1_global_site_lists_get_serialize( + def _v1_global_lan_segments_vrf_id_devices_get_serialize( self, authorization, + vrf_id, _request_auth, _content_type, _headers, @@ -79490,6 +79486,8 @@ def _v1_global_site_lists_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if vrf_id is not None: + _path_params['vrfId'] = vrf_id # process the query parameters # process the header parameters if authorization is not None: @@ -79514,7 +79512,7 @@ def _v1_global_site_lists_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/site-lists', + resource_path='/v1/global/lan-segments/{vrfId}/devices', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -79531,10 +79529,10 @@ def _v1_global_site_lists_get_serialize( @validate_call - def v1_global_site_lists_id_delete( + def v1_global_ntps_device_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79547,15 +79545,15 @@ def v1_global_site_lists_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_global_site_lists_id_delete + ) -> V1GlobalNtpsDeviceGetResponse: + """v1_global_ntps_device_get - Delete a site list + Get global ntp objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79578,9 +79576,9 @@ def v1_global_site_lists_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_delete_serialize( + _param = self._v1_global_ntps_device_get_serialize( authorization=authorization, - id=id, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79588,7 +79586,7 @@ def v1_global_site_lists_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalNtpsDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79602,10 +79600,10 @@ def v1_global_site_lists_id_delete( @validate_call - def v1_global_site_lists_id_delete_with_http_info( + def v1_global_ntps_device_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79618,15 +79616,15 @@ def v1_global_site_lists_id_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_global_site_lists_id_delete + ) -> ApiResponse[V1GlobalNtpsDeviceGetResponse]: + """v1_global_ntps_device_get - Delete a site list + Get global ntp objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79649,9 +79647,9 @@ def v1_global_site_lists_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_delete_serialize( + _param = self._v1_global_ntps_device_get_serialize( authorization=authorization, - id=id, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79659,7 +79657,7 @@ def v1_global_site_lists_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalNtpsDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79673,10 +79671,10 @@ def v1_global_site_lists_id_delete_with_http_info( @validate_call - def v1_global_site_lists_id_delete_without_preload_content( + def v1_global_ntps_device_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79690,14 +79688,14 @@ def v1_global_site_lists_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_site_lists_id_delete + """v1_global_ntps_device_get - Delete a site list + Get global ntp objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79720,9 +79718,9 @@ def v1_global_site_lists_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_delete_serialize( + _param = self._v1_global_ntps_device_get_serialize( authorization=authorization, - id=id, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79730,7 +79728,7 @@ def v1_global_site_lists_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalNtpsDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79739,10 +79737,10 @@ def v1_global_site_lists_id_delete_without_preload_content( return response_data.response - def _v1_global_site_lists_id_delete_serialize( + def _v1_global_ntps_device_get_serialize( self, authorization, - id, + device_id, _request_auth, _content_type, _headers, @@ -79764,9 +79762,11 @@ def _v1_global_site_lists_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -79774,6 +79774,13 @@ def _v1_global_site_lists_id_delete_serialize( # process the body parameter + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -79782,8 +79789,8 @@ def _v1_global_site_lists_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/global/site-lists/{id}', + method='GET', + resource_path='/v1/global/ntps/device', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -79800,10 +79807,10 @@ def _v1_global_site_lists_id_delete_serialize( @validate_call - def v1_global_site_lists_id_get( + def v1_global_ntps_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_ntps_post_request: V1GlobalNtpsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79816,15 +79823,15 @@ def v1_global_site_lists_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSiteListsIdGetResponse: - """v1_global_site_lists_id_get + ) -> V1GlobalNtpsPostResponse: + """v1_global_ntps_post - Get a details of a site list + Get configured global ntps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_ntps_post_request: (required) + :type v1_global_ntps_post_request: V1GlobalNtpsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79847,9 +79854,9 @@ def v1_global_site_lists_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_get_serialize( + _param = self._v1_global_ntps_post_serialize( authorization=authorization, - id=id, + v1_global_ntps_post_request=v1_global_ntps_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79857,7 +79864,7 @@ def v1_global_site_lists_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdGetResponse", + '200': "V1GlobalNtpsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -79871,10 +79878,10 @@ def v1_global_site_lists_id_get( @validate_call - def v1_global_site_lists_id_get_with_http_info( + def v1_global_ntps_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_ntps_post_request: V1GlobalNtpsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79887,15 +79894,15 @@ def v1_global_site_lists_id_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSiteListsIdGetResponse]: - """v1_global_site_lists_id_get + ) -> ApiResponse[V1GlobalNtpsPostResponse]: + """v1_global_ntps_post - Get a details of a site list + Get configured global ntps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_ntps_post_request: (required) + :type v1_global_ntps_post_request: V1GlobalNtpsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79918,9 +79925,9 @@ def v1_global_site_lists_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_get_serialize( + _param = self._v1_global_ntps_post_serialize( authorization=authorization, - id=id, + v1_global_ntps_post_request=v1_global_ntps_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79928,7 +79935,7 @@ def v1_global_site_lists_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdGetResponse", + '200': "V1GlobalNtpsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -79942,10 +79949,10 @@ def v1_global_site_lists_id_get_with_http_info( @validate_call - def v1_global_site_lists_id_get_without_preload_content( + def v1_global_ntps_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_ntps_post_request: V1GlobalNtpsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79959,14 +79966,14 @@ def v1_global_site_lists_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_site_lists_id_get + """v1_global_ntps_post - Get a details of a site list + Get configured global ntps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_ntps_post_request: (required) + :type v1_global_ntps_post_request: V1GlobalNtpsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -79989,9 +79996,9 @@ def v1_global_site_lists_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_get_serialize( + _param = self._v1_global_ntps_post_serialize( authorization=authorization, - id=id, + v1_global_ntps_post_request=v1_global_ntps_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79999,7 +80006,7 @@ def v1_global_site_lists_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdGetResponse", + '200': "V1GlobalNtpsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -80008,10 +80015,10 @@ def v1_global_site_lists_id_get_without_preload_content( return response_data.response - def _v1_global_site_lists_id_get_serialize( + def _v1_global_ntps_post_serialize( self, authorization, - id, + v1_global_ntps_post_request, _request_auth, _content_type, _headers, @@ -80033,14 +80040,14 @@ def _v1_global_site_lists_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_global_ntps_post_request is not None: + _body_params = v1_global_ntps_post_request # set the HTTP header `Accept` @@ -80051,6 +80058,19 @@ def _v1_global_site_lists_id_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -80058,8 +80078,8 @@ def _v1_global_site_lists_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/site-lists/{id}', + method='POST', + resource_path='/v1/global/ntps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -80076,11 +80096,10 @@ def _v1_global_site_lists_id_get_serialize( @validate_call - def v1_global_site_lists_id_put( + def v1_global_ntps_site_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80093,17 +80112,15 @@ def v1_global_site_lists_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSiteListsIdPutResponse: - """v1_global_site_lists_id_put + ) -> V1GlobalNtpsSiteGetResponse: + """v1_global_ntps_site_get - Update a new site list scoped to the enterprise + Get configured global ntps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param v1_global_site_lists_id_put_request: (required) - :type v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80126,10 +80143,9 @@ def v1_global_site_lists_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_put_serialize( + _param = self._v1_global_ntps_site_get_serialize( authorization=authorization, - id=id, - v1_global_site_lists_id_put_request=v1_global_site_lists_id_put_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80137,7 +80153,7 @@ def v1_global_site_lists_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdPutResponse", + '200': "V1GlobalNtpsSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -80151,11 +80167,10 @@ def v1_global_site_lists_id_put( @validate_call - def v1_global_site_lists_id_put_with_http_info( + def v1_global_ntps_site_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80168,17 +80183,15 @@ def v1_global_site_lists_id_put_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSiteListsIdPutResponse]: - """v1_global_site_lists_id_put + ) -> ApiResponse[V1GlobalNtpsSiteGetResponse]: + """v1_global_ntps_site_get - Update a new site list scoped to the enterprise + Get configured global ntps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param v1_global_site_lists_id_put_request: (required) - :type v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80201,10 +80214,9 @@ def v1_global_site_lists_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_put_serialize( + _param = self._v1_global_ntps_site_get_serialize( authorization=authorization, - id=id, - v1_global_site_lists_id_put_request=v1_global_site_lists_id_put_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80212,7 +80224,7 @@ def v1_global_site_lists_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdPutResponse", + '200': "V1GlobalNtpsSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -80226,11 +80238,10 @@ def v1_global_site_lists_id_put_with_http_info( @validate_call - def v1_global_site_lists_id_put_without_preload_content( + def v1_global_ntps_site_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80244,16 +80255,14 @@ def v1_global_site_lists_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_site_lists_id_put + """v1_global_ntps_site_get - Update a new site list scoped to the enterprise + Get configured global ntps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param v1_global_site_lists_id_put_request: (required) - :type v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80276,10 +80285,9 @@ def v1_global_site_lists_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_put_serialize( + _param = self._v1_global_ntps_site_get_serialize( authorization=authorization, - id=id, - v1_global_site_lists_id_put_request=v1_global_site_lists_id_put_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80287,7 +80295,7 @@ def v1_global_site_lists_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdPutResponse", + '200': "V1GlobalNtpsSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -80296,11 +80304,10 @@ def v1_global_site_lists_id_put_without_preload_content( return response_data.response - def _v1_global_site_lists_id_put_serialize( + def _v1_global_ntps_site_get_serialize( self, authorization, - id, - v1_global_site_lists_id_put_request, + site_id, _request_auth, _content_type, _headers, @@ -80322,16 +80329,16 @@ def _v1_global_site_lists_id_put_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if site_id is not None: + + _query_params.append(('siteId', site_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_site_lists_id_put_request is not None: - _body_params = v1_global_site_lists_id_put_request # set the HTTP header `Accept` @@ -80342,19 +80349,6 @@ def _v1_global_site_lists_id_put_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -80362,8 +80356,8 @@ def _v1_global_site_lists_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/global/site-lists/{id}', + method='GET', + resource_path='/v1/global/ntps/site', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -80380,10 +80374,10 @@ def _v1_global_site_lists_id_put_serialize( @validate_call - def v1_global_site_lists_id_sites_get( + def v1_global_prefix_sets_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80396,15 +80390,15 @@ def v1_global_site_lists_id_sites_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSiteListsIdSitesGetResponse: - """v1_global_site_lists_id_sites_get + ) -> V1GlobalPrefixSetsPostResponse: + """v1_global_prefix_sets_post - Get a details of a site list sites + Get configured global prefix-sets :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_prefix_sets_post_request: (required) + :type v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80427,9 +80421,9 @@ def v1_global_site_lists_id_sites_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_sites_get_serialize( + _param = self._v1_global_prefix_sets_post_serialize( authorization=authorization, - id=id, + v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80437,7 +80431,7 @@ def v1_global_site_lists_id_sites_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdSitesGetResponse", + '200': "V1GlobalPrefixSetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -80451,10 +80445,10 @@ def v1_global_site_lists_id_sites_get( @validate_call - def v1_global_site_lists_id_sites_get_with_http_info( + def v1_global_prefix_sets_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80467,15 +80461,15 @@ def v1_global_site_lists_id_sites_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSiteListsIdSitesGetResponse]: - """v1_global_site_lists_id_sites_get + ) -> ApiResponse[V1GlobalPrefixSetsPostResponse]: + """v1_global_prefix_sets_post - Get a details of a site list sites + Get configured global prefix-sets :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_prefix_sets_post_request: (required) + :type v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80498,9 +80492,9 @@ def v1_global_site_lists_id_sites_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_sites_get_serialize( + _param = self._v1_global_prefix_sets_post_serialize( authorization=authorization, - id=id, + v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80508,7 +80502,7 @@ def v1_global_site_lists_id_sites_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdSitesGetResponse", + '200': "V1GlobalPrefixSetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -80522,10 +80516,10 @@ def v1_global_site_lists_id_sites_get_with_http_info( @validate_call - def v1_global_site_lists_id_sites_get_without_preload_content( + def v1_global_prefix_sets_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80539,14 +80533,14 @@ def v1_global_site_lists_id_sites_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_site_lists_id_sites_get + """v1_global_prefix_sets_post - Get a details of a site list sites + Get configured global prefix-sets :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_prefix_sets_post_request: (required) + :type v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80569,9 +80563,9 @@ def v1_global_site_lists_id_sites_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_id_sites_get_serialize( + _param = self._v1_global_prefix_sets_post_serialize( authorization=authorization, - id=id, + v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80579,7 +80573,7 @@ def v1_global_site_lists_id_sites_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdSitesGetResponse", + '200': "V1GlobalPrefixSetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -80588,10 +80582,10 @@ def v1_global_site_lists_id_sites_get_without_preload_content( return response_data.response - def _v1_global_site_lists_id_sites_get_serialize( + def _v1_global_prefix_sets_post_serialize( self, authorization, - id, + v1_global_prefix_sets_post_request, _request_auth, _content_type, _headers, @@ -80613,14 +80607,14 @@ def _v1_global_site_lists_id_sites_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_global_prefix_sets_post_request is not None: + _body_params = v1_global_prefix_sets_post_request # set the HTTP header `Accept` @@ -80631,6 +80625,19 @@ def _v1_global_site_lists_id_sites_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -80638,8 +80645,8 @@ def _v1_global_site_lists_id_sites_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/site-lists/{id}/sites', + method='POST', + resource_path='/v1/global/prefix-sets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -80656,10 +80663,10 @@ def _v1_global_site_lists_id_sites_get_serialize( @validate_call - def v1_global_site_lists_post( + def v1_global_routing_policies_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, + v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80672,15 +80679,15 @@ def v1_global_site_lists_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSiteListsPostResponse: - """v1_global_site_lists_post + ) -> V1GlobalRoutingPoliciesPostResponse: + """v1_global_routing_policies_post - Create a new site list scoped to the enterprise + Get configured global routing-policies :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_site_lists_post_request: (required) - :type v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest + :param v1_global_routing_policies_post_request: (required) + :type v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80703,9 +80710,9 @@ def v1_global_site_lists_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_post_serialize( + _param = self._v1_global_routing_policies_post_serialize( authorization=authorization, - v1_global_site_lists_post_request=v1_global_site_lists_post_request, + v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80713,7 +80720,7 @@ def v1_global_site_lists_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsPostResponse", + '200': "V1GlobalRoutingPoliciesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -80727,10 +80734,10 @@ def v1_global_site_lists_post( @validate_call - def v1_global_site_lists_post_with_http_info( + def v1_global_routing_policies_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, + v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80743,15 +80750,15 @@ def v1_global_site_lists_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSiteListsPostResponse]: - """v1_global_site_lists_post + ) -> ApiResponse[V1GlobalRoutingPoliciesPostResponse]: + """v1_global_routing_policies_post - Create a new site list scoped to the enterprise + Get configured global routing-policies :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_site_lists_post_request: (required) - :type v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest + :param v1_global_routing_policies_post_request: (required) + :type v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80774,9 +80781,9 @@ def v1_global_site_lists_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_post_serialize( + _param = self._v1_global_routing_policies_post_serialize( authorization=authorization, - v1_global_site_lists_post_request=v1_global_site_lists_post_request, + v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80784,7 +80791,7 @@ def v1_global_site_lists_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsPostResponse", + '200': "V1GlobalRoutingPoliciesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -80798,10 +80805,10 @@ def v1_global_site_lists_post_with_http_info( @validate_call - def v1_global_site_lists_post_without_preload_content( + def v1_global_routing_policies_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, + v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80815,14 +80822,14 @@ def v1_global_site_lists_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_site_lists_post + """v1_global_routing_policies_post - Create a new site list scoped to the enterprise + Get configured global routing-policies :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_site_lists_post_request: (required) - :type v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest + :param v1_global_routing_policies_post_request: (required) + :type v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80845,9 +80852,9 @@ def v1_global_site_lists_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_lists_post_serialize( + _param = self._v1_global_routing_policies_post_serialize( authorization=authorization, - v1_global_site_lists_post_request=v1_global_site_lists_post_request, + v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80855,7 +80862,7 @@ def v1_global_site_lists_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsPostResponse", + '200': "V1GlobalRoutingPoliciesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -80864,10 +80871,10 @@ def v1_global_site_lists_post_without_preload_content( return response_data.response - def _v1_global_site_lists_post_serialize( + def _v1_global_routing_policies_post_serialize( self, authorization, - v1_global_site_lists_post_request, + v1_global_routing_policies_post_request, _request_auth, _content_type, _headers, @@ -80895,8 +80902,8 @@ def _v1_global_site_lists_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_site_lists_post_request is not None: - _body_params = v1_global_site_lists_post_request + if v1_global_routing_policies_post_request is not None: + _body_params = v1_global_routing_policies_post_request # set the HTTP header `Accept` @@ -80928,7 +80935,7 @@ def _v1_global_site_lists_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/global/site-lists', + resource_path='/v1/global/routing-policies', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -80945,16 +80952,9 @@ def _v1_global_site_lists_post_serialize( @validate_call - def v1_global_site_status_get( + def v1_global_site_lists_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - ipfix_exported_site_id: Optional[StrictInt] = None, - ntp_site_id: Optional[StrictInt] = None, - prefix_set_site_id: Optional[StrictInt] = None, - routing_policy_site_id: Optional[StrictInt] = None, - snmp_site_id: Optional[StrictInt] = None, - syslog_server_site_id: Optional[StrictInt] = None, - traffic_policy_site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80967,27 +80967,13 @@ def v1_global_site_status_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSiteStatusGetResponse: - """v1_global_site_status_get + ) -> V1GlobalSiteListsGetResponse: + """v1_global_site_lists_get - Get status on global objects attached to a site + Get a list of site lists under the currently logged in enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param ipfix_exported_site_id: - :type ipfix_exported_site_id: int - :param ntp_site_id: - :type ntp_site_id: int - :param prefix_set_site_id: - :type prefix_set_site_id: int - :param routing_policy_site_id: - :type routing_policy_site_id: int - :param snmp_site_id: - :type snmp_site_id: int - :param syslog_server_site_id: - :type syslog_server_site_id: int - :param traffic_policy_site_id: - :type traffic_policy_site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -81010,15 +80996,8 @@ def v1_global_site_status_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_status_get_serialize( + _param = self._v1_global_site_lists_get_serialize( authorization=authorization, - ipfix_exported_site_id=ipfix_exported_site_id, - ntp_site_id=ntp_site_id, - prefix_set_site_id=prefix_set_site_id, - routing_policy_site_id=routing_policy_site_id, - snmp_site_id=snmp_site_id, - syslog_server_site_id=syslog_server_site_id, - traffic_policy_site_id=traffic_policy_site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81026,7 +81005,7 @@ def v1_global_site_status_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteStatusGetResponse", + '200': "V1GlobalSiteListsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81040,16 +81019,9 @@ def v1_global_site_status_get( @validate_call - def v1_global_site_status_get_with_http_info( + def v1_global_site_lists_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - ipfix_exported_site_id: Optional[StrictInt] = None, - ntp_site_id: Optional[StrictInt] = None, - prefix_set_site_id: Optional[StrictInt] = None, - routing_policy_site_id: Optional[StrictInt] = None, - snmp_site_id: Optional[StrictInt] = None, - syslog_server_site_id: Optional[StrictInt] = None, - traffic_policy_site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81062,27 +81034,13 @@ def v1_global_site_status_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSiteStatusGetResponse]: - """v1_global_site_status_get + ) -> ApiResponse[V1GlobalSiteListsGetResponse]: + """v1_global_site_lists_get - Get status on global objects attached to a site + Get a list of site lists under the currently logged in enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param ipfix_exported_site_id: - :type ipfix_exported_site_id: int - :param ntp_site_id: - :type ntp_site_id: int - :param prefix_set_site_id: - :type prefix_set_site_id: int - :param routing_policy_site_id: - :type routing_policy_site_id: int - :param snmp_site_id: - :type snmp_site_id: int - :param syslog_server_site_id: - :type syslog_server_site_id: int - :param traffic_policy_site_id: - :type traffic_policy_site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -81105,15 +81063,8 @@ def v1_global_site_status_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_status_get_serialize( + _param = self._v1_global_site_lists_get_serialize( authorization=authorization, - ipfix_exported_site_id=ipfix_exported_site_id, - ntp_site_id=ntp_site_id, - prefix_set_site_id=prefix_set_site_id, - routing_policy_site_id=routing_policy_site_id, - snmp_site_id=snmp_site_id, - syslog_server_site_id=syslog_server_site_id, - traffic_policy_site_id=traffic_policy_site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81121,7 +81072,7 @@ def v1_global_site_status_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteStatusGetResponse", + '200': "V1GlobalSiteListsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81135,16 +81086,9 @@ def v1_global_site_status_get_with_http_info( @validate_call - def v1_global_site_status_get_without_preload_content( + def v1_global_site_lists_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - ipfix_exported_site_id: Optional[StrictInt] = None, - ntp_site_id: Optional[StrictInt] = None, - prefix_set_site_id: Optional[StrictInt] = None, - routing_policy_site_id: Optional[StrictInt] = None, - snmp_site_id: Optional[StrictInt] = None, - syslog_server_site_id: Optional[StrictInt] = None, - traffic_policy_site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81158,26 +81102,12 @@ def v1_global_site_status_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_site_status_get + """v1_global_site_lists_get - Get status on global objects attached to a site + Get a list of site lists under the currently logged in enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param ipfix_exported_site_id: - :type ipfix_exported_site_id: int - :param ntp_site_id: - :type ntp_site_id: int - :param prefix_set_site_id: - :type prefix_set_site_id: int - :param routing_policy_site_id: - :type routing_policy_site_id: int - :param snmp_site_id: - :type snmp_site_id: int - :param syslog_server_site_id: - :type syslog_server_site_id: int - :param traffic_policy_site_id: - :type traffic_policy_site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -81200,15 +81130,8 @@ def v1_global_site_status_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_site_status_get_serialize( + _param = self._v1_global_site_lists_get_serialize( authorization=authorization, - ipfix_exported_site_id=ipfix_exported_site_id, - ntp_site_id=ntp_site_id, - prefix_set_site_id=prefix_set_site_id, - routing_policy_site_id=routing_policy_site_id, - snmp_site_id=snmp_site_id, - syslog_server_site_id=syslog_server_site_id, - traffic_policy_site_id=traffic_policy_site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81216,7 +81139,7 @@ def v1_global_site_status_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteStatusGetResponse", + '200': "V1GlobalSiteListsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81225,16 +81148,9 @@ def v1_global_site_status_get_without_preload_content( return response_data.response - def _v1_global_site_status_get_serialize( + def _v1_global_site_lists_get_serialize( self, authorization, - ipfix_exported_site_id, - ntp_site_id, - prefix_set_site_id, - routing_policy_site_id, - snmp_site_id, - syslog_server_site_id, - traffic_policy_site_id, _request_auth, _content_type, _headers, @@ -81257,34 +81173,6 @@ def _v1_global_site_status_get_serialize( # process the path parameters # process the query parameters - if ipfix_exported_site_id is not None: - - _query_params.append(('ipfixExportedSiteId', ipfix_exported_site_id)) - - if ntp_site_id is not None: - - _query_params.append(('ntpSiteId', ntp_site_id)) - - if prefix_set_site_id is not None: - - _query_params.append(('prefixSetSiteId', prefix_set_site_id)) - - if routing_policy_site_id is not None: - - _query_params.append(('routingPolicySiteId', routing_policy_site_id)) - - if snmp_site_id is not None: - - _query_params.append(('snmpSiteId', snmp_site_id)) - - if syslog_server_site_id is not None: - - _query_params.append(('syslogServerSiteId', syslog_server_site_id)) - - if traffic_policy_site_id is not None: - - _query_params.append(('trafficPolicySiteId', traffic_policy_site_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -81308,7 +81196,7 @@ def _v1_global_site_status_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/site-status', + resource_path='/v1/global/site-lists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -81325,10 +81213,10 @@ def _v1_global_site_status_get_serialize( @validate_call - def v1_global_snmps_device_get( + def v1_global_site_lists_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81341,15 +81229,15 @@ def v1_global_snmps_device_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSnmpsDeviceGetResponse: - """v1_global_snmps_device_get + ) -> None: + """v1_global_site_lists_id_delete - Get global snmp objects that failed to attach for a device + Delete a site list :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -81372,9 +81260,9 @@ def v1_global_snmps_device_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_snmps_device_get_serialize( + _param = self._v1_global_site_lists_id_delete_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81382,7 +81270,7 @@ def v1_global_snmps_device_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsDeviceGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -81396,10 +81284,10 @@ def v1_global_snmps_device_get( @validate_call - def v1_global_snmps_device_get_with_http_info( + def v1_global_site_lists_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81412,15 +81300,15 @@ def v1_global_snmps_device_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSnmpsDeviceGetResponse]: - """v1_global_snmps_device_get + ) -> ApiResponse[None]: + """v1_global_site_lists_id_delete - Get global snmp objects that failed to attach for a device + Delete a site list :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -81443,9 +81331,9 @@ def v1_global_snmps_device_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_snmps_device_get_serialize( + _param = self._v1_global_site_lists_id_delete_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81453,7 +81341,7 @@ def v1_global_snmps_device_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsDeviceGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -81467,10 +81355,10 @@ def v1_global_snmps_device_get_with_http_info( @validate_call - def v1_global_snmps_device_get_without_preload_content( + def v1_global_site_lists_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81484,14 +81372,14 @@ def v1_global_snmps_device_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_snmps_device_get + """v1_global_site_lists_id_delete - Get global snmp objects that failed to attach for a device + Delete a site list :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -81514,9 +81402,9 @@ def v1_global_snmps_device_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_snmps_device_get_serialize( + _param = self._v1_global_site_lists_id_delete_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81524,7 +81412,7 @@ def v1_global_snmps_device_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsDeviceGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -81533,10 +81421,10 @@ def v1_global_snmps_device_get_without_preload_content( return response_data.response - def _v1_global_snmps_device_get_serialize( + def _v1_global_site_lists_id_delete_serialize( self, authorization, - device_id, + id, _request_auth, _content_type, _headers, @@ -81558,11 +81446,9 @@ def _v1_global_snmps_device_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if device_id is not None: - - _query_params.append(('deviceId', device_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -81570,13 +81456,6 @@ def _v1_global_snmps_device_get_serialize( # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) # authentication setting @@ -81585,8 +81464,8 @@ def _v1_global_snmps_device_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/snmps/device', + method='DELETE', + resource_path='/v1/global/site-lists/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -81603,10 +81482,10 @@ def _v1_global_snmps_device_get_serialize( @validate_call - def v1_global_snmps_post( + def v1_global_site_lists_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81619,15 +81498,15 @@ def v1_global_snmps_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSnmpsPostResponse: - """v1_global_snmps_post + ) -> V1GlobalSiteListsIdGetResponse: + """v1_global_site_lists_id_get - Get configured global snmps + Get a details of a site list :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_snmps_post_request: (required) - :type v1_global_snmps_post_request: V1GlobalSnmpsPostRequest + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -81650,9 +81529,9 @@ def v1_global_snmps_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_snmps_post_serialize( + _param = self._v1_global_site_lists_id_get_serialize( authorization=authorization, - v1_global_snmps_post_request=v1_global_snmps_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81660,7 +81539,7 @@ def v1_global_snmps_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsPostResponse", + '200': "V1GlobalSiteListsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81674,10 +81553,10 @@ def v1_global_snmps_post( @validate_call - def v1_global_snmps_post_with_http_info( + def v1_global_site_lists_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81690,15 +81569,15 @@ def v1_global_snmps_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSnmpsPostResponse]: - """v1_global_snmps_post + ) -> ApiResponse[V1GlobalSiteListsIdGetResponse]: + """v1_global_site_lists_id_get - Get configured global snmps + Get a details of a site list :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_snmps_post_request: (required) - :type v1_global_snmps_post_request: V1GlobalSnmpsPostRequest + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -81721,9 +81600,9 @@ def v1_global_snmps_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_snmps_post_serialize( + _param = self._v1_global_site_lists_id_get_serialize( authorization=authorization, - v1_global_snmps_post_request=v1_global_snmps_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81731,7 +81610,7 @@ def v1_global_snmps_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsPostResponse", + '200': "V1GlobalSiteListsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81745,10 +81624,10 @@ def v1_global_snmps_post_with_http_info( @validate_call - def v1_global_snmps_post_without_preload_content( + def v1_global_site_lists_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81762,14 +81641,14 @@ def v1_global_snmps_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_snmps_post + """v1_global_site_lists_id_get - Get configured global snmps + Get a details of a site list :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_snmps_post_request: (required) - :type v1_global_snmps_post_request: V1GlobalSnmpsPostRequest + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -81792,9 +81671,9 @@ def v1_global_snmps_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_snmps_post_serialize( + _param = self._v1_global_site_lists_id_get_serialize( authorization=authorization, - v1_global_snmps_post_request=v1_global_snmps_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81802,7 +81681,7 @@ def v1_global_snmps_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsPostResponse", + '200': "V1GlobalSiteListsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81811,10 +81690,10 @@ def v1_global_snmps_post_without_preload_content( return response_data.response - def _v1_global_snmps_post_serialize( + def _v1_global_site_lists_id_get_serialize( self, authorization, - v1_global_snmps_post_request, + id, _request_auth, _content_type, _headers, @@ -81836,14 +81715,14 @@ def _v1_global_snmps_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_snmps_post_request is not None: - _body_params = v1_global_snmps_post_request # set the HTTP header `Accept` @@ -81854,19 +81733,6 @@ def _v1_global_snmps_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -81874,8 +81740,8 @@ def _v1_global_snmps_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/snmps', + method='GET', + resource_path='/v1/global/site-lists/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -81892,10 +81758,11 @@ def _v1_global_snmps_post_serialize( @validate_call - def v1_global_snmps_site_get( + def v1_global_site_lists_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + id: StrictInt, + v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81908,15 +81775,17 @@ def v1_global_snmps_site_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSnmpsSiteGetResponse: - """v1_global_snmps_site_get + ) -> V1GlobalSiteListsIdPutResponse: + """v1_global_site_lists_id_put - Get configured global snmps + Update a new site list scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param id: (required) + :type id: int + :param v1_global_site_lists_id_put_request: (required) + :type v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -81939,9 +81808,10 @@ def v1_global_snmps_site_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_snmps_site_get_serialize( + _param = self._v1_global_site_lists_id_put_serialize( authorization=authorization, - site_id=site_id, + id=id, + v1_global_site_lists_id_put_request=v1_global_site_lists_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81949,7 +81819,7 @@ def v1_global_snmps_site_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsSiteGetResponse", + '200': "V1GlobalSiteListsIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -81963,10 +81833,11 @@ def v1_global_snmps_site_get( @validate_call - def v1_global_snmps_site_get_with_http_info( + def v1_global_site_lists_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + id: StrictInt, + v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81979,15 +81850,17 @@ def v1_global_snmps_site_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSnmpsSiteGetResponse]: - """v1_global_snmps_site_get + ) -> ApiResponse[V1GlobalSiteListsIdPutResponse]: + """v1_global_site_lists_id_put - Get configured global snmps + Update a new site list scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param id: (required) + :type id: int + :param v1_global_site_lists_id_put_request: (required) + :type v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82010,9 +81883,10 @@ def v1_global_snmps_site_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_snmps_site_get_serialize( + _param = self._v1_global_site_lists_id_put_serialize( authorization=authorization, - site_id=site_id, + id=id, + v1_global_site_lists_id_put_request=v1_global_site_lists_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82020,7 +81894,7 @@ def v1_global_snmps_site_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsSiteGetResponse", + '200': "V1GlobalSiteListsIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -82034,10 +81908,11 @@ def v1_global_snmps_site_get_with_http_info( @validate_call - def v1_global_snmps_site_get_without_preload_content( + def v1_global_site_lists_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + id: StrictInt, + v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82051,14 +81926,16 @@ def v1_global_snmps_site_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_snmps_site_get + """v1_global_site_lists_id_put - Get configured global snmps + Update a new site list scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param id: (required) + :type id: int + :param v1_global_site_lists_id_put_request: (required) + :type v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82081,9 +81958,10 @@ def v1_global_snmps_site_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_snmps_site_get_serialize( + _param = self._v1_global_site_lists_id_put_serialize( authorization=authorization, - site_id=site_id, + id=id, + v1_global_site_lists_id_put_request=v1_global_site_lists_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82091,7 +81969,7 @@ def v1_global_snmps_site_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsSiteGetResponse", + '200': "V1GlobalSiteListsIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -82100,10 +81978,11 @@ def v1_global_snmps_site_get_without_preload_content( return response_data.response - def _v1_global_snmps_site_get_serialize( + def _v1_global_site_lists_id_put_serialize( self, authorization, - site_id, + id, + v1_global_site_lists_id_put_request, _request_auth, _content_type, _headers, @@ -82125,16 +82004,16 @@ def _v1_global_snmps_site_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters - if site_id is not None: - - _query_params.append(('siteId', site_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_global_site_lists_id_put_request is not None: + _body_params = v1_global_site_lists_id_put_request # set the HTTP header `Accept` @@ -82145,6 +82024,19 @@ def _v1_global_snmps_site_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -82152,8 +82044,8 @@ def _v1_global_snmps_site_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/snmps/site', + method='PUT', + resource_path='/v1/global/site-lists/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -82170,10 +82062,10 @@ def _v1_global_snmps_site_get_serialize( @validate_call - def v1_global_summary_post( + def v1_global_site_lists_id_sites_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_summary_post_request: V1GlobalSummaryPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82186,15 +82078,15 @@ def v1_global_summary_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSummaryPostResponse: - """v1_global_summary_post + ) -> V1GlobalSiteListsIdSitesGetResponse: + """v1_global_site_lists_id_sites_get - Get summary on global objects + Get a details of a site list sites :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_summary_post_request: (required) - :type v1_global_summary_post_request: V1GlobalSummaryPostRequest + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82217,9 +82109,9 @@ def v1_global_summary_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_summary_post_serialize( + _param = self._v1_global_site_lists_id_sites_get_serialize( authorization=authorization, - v1_global_summary_post_request=v1_global_summary_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82227,7 +82119,7 @@ def v1_global_summary_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSummaryPostResponse", + '200': "V1GlobalSiteListsIdSitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82241,10 +82133,10 @@ def v1_global_summary_post( @validate_call - def v1_global_summary_post_with_http_info( + def v1_global_site_lists_id_sites_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_summary_post_request: V1GlobalSummaryPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82257,15 +82149,15 @@ def v1_global_summary_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSummaryPostResponse]: - """v1_global_summary_post + ) -> ApiResponse[V1GlobalSiteListsIdSitesGetResponse]: + """v1_global_site_lists_id_sites_get - Get summary on global objects + Get a details of a site list sites :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_summary_post_request: (required) - :type v1_global_summary_post_request: V1GlobalSummaryPostRequest + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82288,9 +82180,9 @@ def v1_global_summary_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_summary_post_serialize( + _param = self._v1_global_site_lists_id_sites_get_serialize( authorization=authorization, - v1_global_summary_post_request=v1_global_summary_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82298,7 +82190,7 @@ def v1_global_summary_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSummaryPostResponse", + '200': "V1GlobalSiteListsIdSitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82312,10 +82204,10 @@ def v1_global_summary_post_with_http_info( @validate_call - def v1_global_summary_post_without_preload_content( + def v1_global_site_lists_id_sites_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_summary_post_request: V1GlobalSummaryPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82329,14 +82221,14 @@ def v1_global_summary_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_summary_post + """v1_global_site_lists_id_sites_get - Get summary on global objects + Get a details of a site list sites :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_summary_post_request: (required) - :type v1_global_summary_post_request: V1GlobalSummaryPostRequest + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82359,9 +82251,9 @@ def v1_global_summary_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_summary_post_serialize( + _param = self._v1_global_site_lists_id_sites_get_serialize( authorization=authorization, - v1_global_summary_post_request=v1_global_summary_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82369,7 +82261,7 @@ def v1_global_summary_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSummaryPostResponse", + '200': "V1GlobalSiteListsIdSitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82378,10 +82270,10 @@ def v1_global_summary_post_without_preload_content( return response_data.response - def _v1_global_summary_post_serialize( + def _v1_global_site_lists_id_sites_get_serialize( self, authorization, - v1_global_summary_post_request, + id, _request_auth, _content_type, _headers, @@ -82403,14 +82295,14 @@ def _v1_global_summary_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_summary_post_request is not None: - _body_params = v1_global_summary_post_request # set the HTTP header `Accept` @@ -82421,19 +82313,6 @@ def _v1_global_summary_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -82441,8 +82320,8 @@ def _v1_global_summary_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/summary', + method='GET', + resource_path='/v1/global/site-lists/{id}/sites', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -82459,10 +82338,10 @@ def _v1_global_summary_post_serialize( @validate_call - def v1_global_sync_post( + def v1_global_site_lists_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_sync_post_request: V1GlobalSyncPostRequest, + v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82475,15 +82354,15 @@ def v1_global_sync_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_global_sync_post + ) -> V1GlobalSiteListsPostResponse: + """v1_global_site_lists_post - Tries synching device with the global objects + Create a new site list scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_sync_post_request: (required) - :type v1_global_sync_post_request: V1GlobalSyncPostRequest + :param v1_global_site_lists_post_request: (required) + :type v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82506,9 +82385,9 @@ def v1_global_sync_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_sync_post_serialize( + _param = self._v1_global_site_lists_post_serialize( authorization=authorization, - v1_global_sync_post_request=v1_global_sync_post_request, + v1_global_site_lists_post_request=v1_global_site_lists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82516,7 +82395,7 @@ def v1_global_sync_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GlobalSiteListsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -82530,10 +82409,10 @@ def v1_global_sync_post( @validate_call - def v1_global_sync_post_with_http_info( + def v1_global_site_lists_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_sync_post_request: V1GlobalSyncPostRequest, + v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82546,15 +82425,15 @@ def v1_global_sync_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """v1_global_sync_post + ) -> ApiResponse[V1GlobalSiteListsPostResponse]: + """v1_global_site_lists_post - Tries synching device with the global objects + Create a new site list scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_sync_post_request: (required) - :type v1_global_sync_post_request: V1GlobalSyncPostRequest + :param v1_global_site_lists_post_request: (required) + :type v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82577,9 +82456,9 @@ def v1_global_sync_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_sync_post_serialize( + _param = self._v1_global_site_lists_post_serialize( authorization=authorization, - v1_global_sync_post_request=v1_global_sync_post_request, + v1_global_site_lists_post_request=v1_global_site_lists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82587,7 +82466,7 @@ def v1_global_sync_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GlobalSiteListsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -82601,10 +82480,10 @@ def v1_global_sync_post_with_http_info( @validate_call - def v1_global_sync_post_without_preload_content( + def v1_global_site_lists_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_sync_post_request: V1GlobalSyncPostRequest, + v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82618,14 +82497,14 @@ def v1_global_sync_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_sync_post + """v1_global_site_lists_post - Tries synching device with the global objects + Create a new site list scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_sync_post_request: (required) - :type v1_global_sync_post_request: V1GlobalSyncPostRequest + :param v1_global_site_lists_post_request: (required) + :type v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82648,9 +82527,9 @@ def v1_global_sync_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_sync_post_serialize( + _param = self._v1_global_site_lists_post_serialize( authorization=authorization, - v1_global_sync_post_request=v1_global_sync_post_request, + v1_global_site_lists_post_request=v1_global_site_lists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82658,7 +82537,7 @@ def v1_global_sync_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GlobalSiteListsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -82667,10 +82546,10 @@ def v1_global_sync_post_without_preload_content( return response_data.response - def _v1_global_sync_post_serialize( + def _v1_global_site_lists_post_serialize( self, authorization, - v1_global_sync_post_request, + v1_global_site_lists_post_request, _request_auth, _content_type, _headers, @@ -82698,8 +82577,8 @@ def _v1_global_sync_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_sync_post_request is not None: - _body_params = v1_global_sync_post_request + if v1_global_site_lists_post_request is not None: + _body_params = v1_global_site_lists_post_request # set the HTTP header `Accept` @@ -82731,7 +82610,7 @@ def _v1_global_sync_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/global/sync', + resource_path='/v1/global/site-lists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -82748,10 +82627,16 @@ def _v1_global_sync_post_serialize( @validate_call - def v1_global_syslogs_device_get( + def v1_global_site_status_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + ipfix_exported_site_id: Optional[StrictInt] = None, + ntp_site_id: Optional[StrictInt] = None, + prefix_set_site_id: Optional[StrictInt] = None, + routing_policy_site_id: Optional[StrictInt] = None, + snmp_site_id: Optional[StrictInt] = None, + syslog_server_site_id: Optional[StrictInt] = None, + traffic_policy_site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82764,15 +82649,27 @@ def v1_global_syslogs_device_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSyslogsDeviceGetResponse: - """v1_global_syslogs_device_get + ) -> V1GlobalSiteStatusGetResponse: + """v1_global_site_status_get - Get global syslog objects that failed to attach for a device + Get status on global objects attached to a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param ipfix_exported_site_id: + :type ipfix_exported_site_id: int + :param ntp_site_id: + :type ntp_site_id: int + :param prefix_set_site_id: + :type prefix_set_site_id: int + :param routing_policy_site_id: + :type routing_policy_site_id: int + :param snmp_site_id: + :type snmp_site_id: int + :param syslog_server_site_id: + :type syslog_server_site_id: int + :param traffic_policy_site_id: + :type traffic_policy_site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82795,9 +82692,15 @@ def v1_global_syslogs_device_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_device_get_serialize( + _param = self._v1_global_site_status_get_serialize( authorization=authorization, - device_id=device_id, + ipfix_exported_site_id=ipfix_exported_site_id, + ntp_site_id=ntp_site_id, + prefix_set_site_id=prefix_set_site_id, + routing_policy_site_id=routing_policy_site_id, + snmp_site_id=snmp_site_id, + syslog_server_site_id=syslog_server_site_id, + traffic_policy_site_id=traffic_policy_site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82805,7 +82708,7 @@ def v1_global_syslogs_device_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsDeviceGetResponse", + '200': "V1GlobalSiteStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82819,10 +82722,16 @@ def v1_global_syslogs_device_get( @validate_call - def v1_global_syslogs_device_get_with_http_info( + def v1_global_site_status_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + ipfix_exported_site_id: Optional[StrictInt] = None, + ntp_site_id: Optional[StrictInt] = None, + prefix_set_site_id: Optional[StrictInt] = None, + routing_policy_site_id: Optional[StrictInt] = None, + snmp_site_id: Optional[StrictInt] = None, + syslog_server_site_id: Optional[StrictInt] = None, + traffic_policy_site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82835,15 +82744,27 @@ def v1_global_syslogs_device_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSyslogsDeviceGetResponse]: - """v1_global_syslogs_device_get + ) -> ApiResponse[V1GlobalSiteStatusGetResponse]: + """v1_global_site_status_get - Get global syslog objects that failed to attach for a device + Get status on global objects attached to a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param ipfix_exported_site_id: + :type ipfix_exported_site_id: int + :param ntp_site_id: + :type ntp_site_id: int + :param prefix_set_site_id: + :type prefix_set_site_id: int + :param routing_policy_site_id: + :type routing_policy_site_id: int + :param snmp_site_id: + :type snmp_site_id: int + :param syslog_server_site_id: + :type syslog_server_site_id: int + :param traffic_policy_site_id: + :type traffic_policy_site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82866,9 +82787,15 @@ def v1_global_syslogs_device_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_device_get_serialize( + _param = self._v1_global_site_status_get_serialize( authorization=authorization, - device_id=device_id, + ipfix_exported_site_id=ipfix_exported_site_id, + ntp_site_id=ntp_site_id, + prefix_set_site_id=prefix_set_site_id, + routing_policy_site_id=routing_policy_site_id, + snmp_site_id=snmp_site_id, + syslog_server_site_id=syslog_server_site_id, + traffic_policy_site_id=traffic_policy_site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82876,7 +82803,7 @@ def v1_global_syslogs_device_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsDeviceGetResponse", + '200': "V1GlobalSiteStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82890,10 +82817,16 @@ def v1_global_syslogs_device_get_with_http_info( @validate_call - def v1_global_syslogs_device_get_without_preload_content( + def v1_global_site_status_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + ipfix_exported_site_id: Optional[StrictInt] = None, + ntp_site_id: Optional[StrictInt] = None, + prefix_set_site_id: Optional[StrictInt] = None, + routing_policy_site_id: Optional[StrictInt] = None, + snmp_site_id: Optional[StrictInt] = None, + syslog_server_site_id: Optional[StrictInt] = None, + traffic_policy_site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82907,14 +82840,26 @@ def v1_global_syslogs_device_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_syslogs_device_get + """v1_global_site_status_get - Get global syslog objects that failed to attach for a device + Get status on global objects attached to a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_id: int + :param ipfix_exported_site_id: + :type ipfix_exported_site_id: int + :param ntp_site_id: + :type ntp_site_id: int + :param prefix_set_site_id: + :type prefix_set_site_id: int + :param routing_policy_site_id: + :type routing_policy_site_id: int + :param snmp_site_id: + :type snmp_site_id: int + :param syslog_server_site_id: + :type syslog_server_site_id: int + :param traffic_policy_site_id: + :type traffic_policy_site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82937,9 +82882,15 @@ def v1_global_syslogs_device_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_device_get_serialize( + _param = self._v1_global_site_status_get_serialize( authorization=authorization, - device_id=device_id, + ipfix_exported_site_id=ipfix_exported_site_id, + ntp_site_id=ntp_site_id, + prefix_set_site_id=prefix_set_site_id, + routing_policy_site_id=routing_policy_site_id, + snmp_site_id=snmp_site_id, + syslog_server_site_id=syslog_server_site_id, + traffic_policy_site_id=traffic_policy_site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82947,7 +82898,7 @@ def v1_global_syslogs_device_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsDeviceGetResponse", + '200': "V1GlobalSiteStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82956,10 +82907,16 @@ def v1_global_syslogs_device_get_without_preload_content( return response_data.response - def _v1_global_syslogs_device_get_serialize( + def _v1_global_site_status_get_serialize( self, authorization, - device_id, + ipfix_exported_site_id, + ntp_site_id, + prefix_set_site_id, + routing_policy_site_id, + snmp_site_id, + syslog_server_site_id, + traffic_policy_site_id, _request_auth, _content_type, _headers, @@ -82982,9 +82939,33 @@ def _v1_global_syslogs_device_get_serialize( # process the path parameters # process the query parameters - if device_id is not None: + if ipfix_exported_site_id is not None: - _query_params.append(('deviceId', device_id)) + _query_params.append(('ipfixExportedSiteId', ipfix_exported_site_id)) + + if ntp_site_id is not None: + + _query_params.append(('ntpSiteId', ntp_site_id)) + + if prefix_set_site_id is not None: + + _query_params.append(('prefixSetSiteId', prefix_set_site_id)) + + if routing_policy_site_id is not None: + + _query_params.append(('routingPolicySiteId', routing_policy_site_id)) + + if snmp_site_id is not None: + + _query_params.append(('snmpSiteId', snmp_site_id)) + + if syslog_server_site_id is not None: + + _query_params.append(('syslogServerSiteId', syslog_server_site_id)) + + if traffic_policy_site_id is not None: + + _query_params.append(('trafficPolicySiteId', traffic_policy_site_id)) # process the header parameters if authorization is not None: @@ -83009,7 +82990,7 @@ def _v1_global_syslogs_device_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/syslogs/device', + resource_path='/v1/global/site-status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -83026,10 +83007,10 @@ def _v1_global_syslogs_device_get_serialize( @validate_call - def v1_global_syslogs_post( + def v1_global_snmps_device_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83042,15 +83023,15 @@ def v1_global_syslogs_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSyslogsPostResponse: - """v1_global_syslogs_post + ) -> V1GlobalSnmpsDeviceGetResponse: + """v1_global_snmps_device_get - Get configured global syslog collectors + Get global snmp objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_syslogs_post_request: (required) - :type v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83073,9 +83054,9 @@ def v1_global_syslogs_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_post_serialize( + _param = self._v1_global_snmps_device_get_serialize( authorization=authorization, - v1_global_syslogs_post_request=v1_global_syslogs_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83083,7 +83064,7 @@ def v1_global_syslogs_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsPostResponse", + '200': "V1GlobalSnmpsDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -83097,10 +83078,10 @@ def v1_global_syslogs_post( @validate_call - def v1_global_syslogs_post_with_http_info( + def v1_global_snmps_device_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83113,15 +83094,15 @@ def v1_global_syslogs_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSyslogsPostResponse]: - """v1_global_syslogs_post + ) -> ApiResponse[V1GlobalSnmpsDeviceGetResponse]: + """v1_global_snmps_device_get - Get configured global syslog collectors + Get global snmp objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_syslogs_post_request: (required) - :type v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83144,9 +83125,9 @@ def v1_global_syslogs_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_post_serialize( + _param = self._v1_global_snmps_device_get_serialize( authorization=authorization, - v1_global_syslogs_post_request=v1_global_syslogs_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83154,7 +83135,7 @@ def v1_global_syslogs_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsPostResponse", + '200': "V1GlobalSnmpsDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -83168,10 +83149,10 @@ def v1_global_syslogs_post_with_http_info( @validate_call - def v1_global_syslogs_post_without_preload_content( + def v1_global_snmps_device_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83185,14 +83166,14 @@ def v1_global_syslogs_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_syslogs_post + """v1_global_snmps_device_get - Get configured global syslog collectors + Get global snmp objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_syslogs_post_request: (required) - :type v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83215,9 +83196,9 @@ def v1_global_syslogs_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_post_serialize( + _param = self._v1_global_snmps_device_get_serialize( authorization=authorization, - v1_global_syslogs_post_request=v1_global_syslogs_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83225,7 +83206,7 @@ def v1_global_syslogs_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsPostResponse", + '200': "V1GlobalSnmpsDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -83234,10 +83215,10 @@ def v1_global_syslogs_post_without_preload_content( return response_data.response - def _v1_global_syslogs_post_serialize( + def _v1_global_snmps_device_get_serialize( self, authorization, - v1_global_syslogs_post_request, + device_id, _request_auth, _content_type, _headers, @@ -83260,13 +83241,15 @@ def _v1_global_syslogs_post_serialize( # process the path parameters # process the query parameters + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_syslogs_post_request is not None: - _body_params = v1_global_syslogs_post_request # set the HTTP header `Accept` @@ -83277,19 +83260,6 @@ def _v1_global_syslogs_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -83297,8 +83267,8 @@ def _v1_global_syslogs_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/syslogs', + method='GET', + resource_path='/v1/global/snmps/device', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -83315,10 +83285,10 @@ def _v1_global_syslogs_post_serialize( @validate_call - def v1_global_syslogs_site_get( + def v1_global_snmps_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83331,15 +83301,15 @@ def v1_global_syslogs_site_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalSyslogsSiteGetResponse: - """v1_global_syslogs_site_get + ) -> V1GlobalSnmpsPostResponse: + """v1_global_snmps_post - Get configured global syslog collectors + Get configured global snmps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param v1_global_snmps_post_request: (required) + :type v1_global_snmps_post_request: V1GlobalSnmpsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83362,9 +83332,9 @@ def v1_global_syslogs_site_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_site_get_serialize( + _param = self._v1_global_snmps_post_serialize( authorization=authorization, - site_id=site_id, + v1_global_snmps_post_request=v1_global_snmps_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83372,7 +83342,7 @@ def v1_global_syslogs_site_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsSiteGetResponse", + '200': "V1GlobalSnmpsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -83386,10 +83356,10 @@ def v1_global_syslogs_site_get( @validate_call - def v1_global_syslogs_site_get_with_http_info( + def v1_global_snmps_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83402,15 +83372,15 @@ def v1_global_syslogs_site_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalSyslogsSiteGetResponse]: - """v1_global_syslogs_site_get + ) -> ApiResponse[V1GlobalSnmpsPostResponse]: + """v1_global_snmps_post - Get configured global syslog collectors + Get configured global snmps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param v1_global_snmps_post_request: (required) + :type v1_global_snmps_post_request: V1GlobalSnmpsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83433,9 +83403,9 @@ def v1_global_syslogs_site_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_site_get_serialize( + _param = self._v1_global_snmps_post_serialize( authorization=authorization, - site_id=site_id, + v1_global_snmps_post_request=v1_global_snmps_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83443,7 +83413,7 @@ def v1_global_syslogs_site_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsSiteGetResponse", + '200': "V1GlobalSnmpsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -83457,10 +83427,10 @@ def v1_global_syslogs_site_get_with_http_info( @validate_call - def v1_global_syslogs_site_get_without_preload_content( + def v1_global_snmps_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83474,14 +83444,14 @@ def v1_global_syslogs_site_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_syslogs_site_get + """v1_global_snmps_post - Get configured global syslog collectors + Get configured global snmps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param v1_global_snmps_post_request: (required) + :type v1_global_snmps_post_request: V1GlobalSnmpsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83504,9 +83474,9 @@ def v1_global_syslogs_site_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_site_get_serialize( + _param = self._v1_global_snmps_post_serialize( authorization=authorization, - site_id=site_id, + v1_global_snmps_post_request=v1_global_snmps_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83514,7 +83484,7 @@ def v1_global_syslogs_site_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsSiteGetResponse", + '200': "V1GlobalSnmpsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -83523,10 +83493,10 @@ def v1_global_syslogs_site_get_without_preload_content( return response_data.response - def _v1_global_syslogs_site_get_serialize( + def _v1_global_snmps_post_serialize( self, authorization, - site_id, + v1_global_snmps_post_request, _request_auth, _content_type, _headers, @@ -83549,15 +83519,13 @@ def _v1_global_syslogs_site_get_serialize( # process the path parameters # process the query parameters - if site_id is not None: - - _query_params.append(('siteId', site_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_global_snmps_post_request is not None: + _body_params = v1_global_snmps_post_request # set the HTTP header `Accept` @@ -83568,6 +83536,19 @@ def _v1_global_syslogs_site_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -83575,8 +83556,8 @@ def _v1_global_syslogs_site_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/syslogs/site', + method='POST', + resource_path='/v1/global/snmps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -83593,10 +83574,10 @@ def _v1_global_syslogs_site_get_serialize( @validate_call - def v1_global_traffic_policies_post( + def v1_global_snmps_site_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83609,15 +83590,15 @@ def v1_global_traffic_policies_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalTrafficPoliciesPostResponse: - """v1_global_traffic_policies_post + ) -> V1GlobalSnmpsSiteGetResponse: + """v1_global_snmps_site_get - Get configured global traffic-policies + Get configured global snmps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_traffic_policies_post_request: (required) - :type v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83640,9 +83621,9 @@ def v1_global_traffic_policies_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_traffic_policies_post_serialize( + _param = self._v1_global_snmps_site_get_serialize( authorization=authorization, - v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83650,7 +83631,7 @@ def v1_global_traffic_policies_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalTrafficPoliciesPostResponse", + '200': "V1GlobalSnmpsSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -83664,10 +83645,10 @@ def v1_global_traffic_policies_post( @validate_call - def v1_global_traffic_policies_post_with_http_info( + def v1_global_snmps_site_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83680,15 +83661,15 @@ def v1_global_traffic_policies_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GlobalTrafficPoliciesPostResponse]: - """v1_global_traffic_policies_post + ) -> ApiResponse[V1GlobalSnmpsSiteGetResponse]: + """v1_global_snmps_site_get - Get configured global traffic-policies + Get configured global snmps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_traffic_policies_post_request: (required) - :type v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83711,9 +83692,9 @@ def v1_global_traffic_policies_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_traffic_policies_post_serialize( + _param = self._v1_global_snmps_site_get_serialize( authorization=authorization, - v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83721,7 +83702,7 @@ def v1_global_traffic_policies_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalTrafficPoliciesPostResponse", + '200': "V1GlobalSnmpsSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -83735,10 +83716,10 @@ def v1_global_traffic_policies_post_with_http_info( @validate_call - def v1_global_traffic_policies_post_without_preload_content( + def v1_global_snmps_site_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83752,14 +83733,14 @@ def v1_global_traffic_policies_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_traffic_policies_post + """v1_global_snmps_site_get - Get configured global traffic-policies + Get configured global snmps :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_traffic_policies_post_request: (required) - :type v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83782,9 +83763,9 @@ def v1_global_traffic_policies_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_traffic_policies_post_serialize( + _param = self._v1_global_snmps_site_get_serialize( authorization=authorization, - v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83792,7 +83773,7 @@ def v1_global_traffic_policies_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalTrafficPoliciesPostResponse", + '200': "V1GlobalSnmpsSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -83801,10 +83782,10 @@ def v1_global_traffic_policies_post_without_preload_content( return response_data.response - def _v1_global_traffic_policies_post_serialize( + def _v1_global_snmps_site_get_serialize( self, authorization, - v1_global_traffic_policies_post_request, + site_id, _request_auth, _content_type, _headers, @@ -83827,13 +83808,15 @@ def _v1_global_traffic_policies_post_serialize( # process the path parameters # process the query parameters + if site_id is not None: + + _query_params.append(('siteId', site_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_traffic_policies_post_request is not None: - _body_params = v1_global_traffic_policies_post_request # set the HTTP header `Accept` @@ -83844,19 +83827,6 @@ def _v1_global_traffic_policies_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -83864,8 +83834,8 @@ def _v1_global_traffic_policies_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/traffic-policies', + method='GET', + resource_path='/v1/global/snmps/site', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -83882,9 +83852,10 @@ def _v1_global_traffic_policies_post_serialize( @validate_call - def v1_groups_enterprises_get( + def v1_global_summary_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_summary_post_request: V1GlobalSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83897,13 +83868,15 @@ def v1_groups_enterprises_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GroupsEnterprisesGetResponse: - """v1_groups_enterprises_get + ) -> V1GlobalSummaryPostResponse: + """v1_global_summary_post - Get all enterprise-level groups. + Get summary on global objects :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_global_summary_post_request: (required) + :type v1_global_summary_post_request: V1GlobalSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83926,8 +83899,9 @@ def v1_groups_enterprises_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_enterprises_get_serialize( + _param = self._v1_global_summary_post_serialize( authorization=authorization, + v1_global_summary_post_request=v1_global_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83935,7 +83909,7 @@ def v1_groups_enterprises_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsEnterprisesGetResponse", + '200': "V1GlobalSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -83949,9 +83923,10 @@ def v1_groups_enterprises_get( @validate_call - def v1_groups_enterprises_get_with_http_info( + def v1_global_summary_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_summary_post_request: V1GlobalSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83964,13 +83939,15 @@ def v1_groups_enterprises_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GroupsEnterprisesGetResponse]: - """v1_groups_enterprises_get + ) -> ApiResponse[V1GlobalSummaryPostResponse]: + """v1_global_summary_post - Get all enterprise-level groups. + Get summary on global objects :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_global_summary_post_request: (required) + :type v1_global_summary_post_request: V1GlobalSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83993,8 +83970,9 @@ def v1_groups_enterprises_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_enterprises_get_serialize( + _param = self._v1_global_summary_post_serialize( authorization=authorization, + v1_global_summary_post_request=v1_global_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84002,7 +83980,7 @@ def v1_groups_enterprises_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsEnterprisesGetResponse", + '200': "V1GlobalSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -84016,9 +83994,10 @@ def v1_groups_enterprises_get_with_http_info( @validate_call - def v1_groups_enterprises_get_without_preload_content( + def v1_global_summary_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_summary_post_request: V1GlobalSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84032,12 +84011,14 @@ def v1_groups_enterprises_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_enterprises_get + """v1_global_summary_post - Get all enterprise-level groups. + Get summary on global objects :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_global_summary_post_request: (required) + :type v1_global_summary_post_request: V1GlobalSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84060,8 +84041,9 @@ def v1_groups_enterprises_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_enterprises_get_serialize( + _param = self._v1_global_summary_post_serialize( authorization=authorization, + v1_global_summary_post_request=v1_global_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84069,7 +84051,7 @@ def v1_groups_enterprises_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsEnterprisesGetResponse", + '200': "V1GlobalSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -84078,9 +84060,10 @@ def v1_groups_enterprises_get_without_preload_content( return response_data.response - def _v1_groups_enterprises_get_serialize( + def _v1_global_summary_post_serialize( self, authorization, + v1_global_summary_post_request, _request_auth, _content_type, _headers, @@ -84108,6 +84091,8 @@ def _v1_groups_enterprises_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_global_summary_post_request is not None: + _body_params = v1_global_summary_post_request # set the HTTP header `Accept` @@ -84118,6 +84103,19 @@ def _v1_groups_enterprises_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -84125,8 +84123,8 @@ def _v1_groups_enterprises_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/groups/enterprises', + method='POST', + resource_path='/v1/global/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -84143,9 +84141,10 @@ def _v1_groups_enterprises_get_serialize( @validate_call - def v1_groups_get( + def v1_global_sync_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_sync_post_request: V1GlobalSyncPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84158,13 +84157,15 @@ def v1_groups_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GroupsGetResponse: - """v1_groups_get + ) -> object: + """v1_global_sync_post - Get all groups in the enterprise. + Tries synching device with the global objects :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_global_sync_post_request: (required) + :type v1_global_sync_post_request: V1GlobalSyncPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84187,8 +84188,9 @@ def v1_groups_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_get_serialize( + _param = self._v1_global_sync_post_serialize( authorization=authorization, + v1_global_sync_post_request=v1_global_sync_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84196,7 +84198,7 @@ def v1_groups_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -84210,9 +84212,10 @@ def v1_groups_get( @validate_call - def v1_groups_get_with_http_info( + def v1_global_sync_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_sync_post_request: V1GlobalSyncPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84225,13 +84228,15 @@ def v1_groups_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GroupsGetResponse]: - """v1_groups_get + ) -> ApiResponse[object]: + """v1_global_sync_post - Get all groups in the enterprise. + Tries synching device with the global objects :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_global_sync_post_request: (required) + :type v1_global_sync_post_request: V1GlobalSyncPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84254,8 +84259,9 @@ def v1_groups_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_get_serialize( + _param = self._v1_global_sync_post_serialize( authorization=authorization, + v1_global_sync_post_request=v1_global_sync_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84263,7 +84269,7 @@ def v1_groups_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -84277,9 +84283,10 @@ def v1_groups_get_with_http_info( @validate_call - def v1_groups_get_without_preload_content( + def v1_global_sync_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_sync_post_request: V1GlobalSyncPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84293,12 +84300,14 @@ def v1_groups_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_get + """v1_global_sync_post - Get all groups in the enterprise. + Tries synching device with the global objects :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_global_sync_post_request: (required) + :type v1_global_sync_post_request: V1GlobalSyncPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84321,8 +84330,9 @@ def v1_groups_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_get_serialize( + _param = self._v1_global_sync_post_serialize( authorization=authorization, + v1_global_sync_post_request=v1_global_sync_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84330,7 +84340,7 @@ def v1_groups_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -84339,9 +84349,10 @@ def v1_groups_get_without_preload_content( return response_data.response - def _v1_groups_get_serialize( + def _v1_global_sync_post_serialize( self, authorization, + v1_global_sync_post_request, _request_auth, _content_type, _headers, @@ -84369,6 +84380,8 @@ def _v1_groups_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_global_sync_post_request is not None: + _body_params = v1_global_sync_post_request # set the HTTP header `Accept` @@ -84379,6 +84392,19 @@ def _v1_groups_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -84386,8 +84412,8 @@ def _v1_groups_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/groups', + method='POST', + resource_path='/v1/global/sync', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -84404,10 +84430,10 @@ def _v1_groups_get_serialize( @validate_call - def v1_groups_id_delete( + def v1_global_syslogs_device_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84420,15 +84446,15 @@ def v1_groups_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_groups_id_delete + ) -> V1GlobalSyslogsDeviceGetResponse: + """v1_global_syslogs_device_get - Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. + Get global syslog objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84451,9 +84477,9 @@ def v1_groups_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_delete_serialize( + _param = self._v1_global_syslogs_device_get_serialize( authorization=authorization, - id=id, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84461,7 +84487,7 @@ def v1_groups_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalSyslogsDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -84475,10 +84501,10 @@ def v1_groups_id_delete( @validate_call - def v1_groups_id_delete_with_http_info( + def v1_global_syslogs_device_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84491,15 +84517,15 @@ def v1_groups_id_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_groups_id_delete + ) -> ApiResponse[V1GlobalSyslogsDeviceGetResponse]: + """v1_global_syslogs_device_get - Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. + Get global syslog objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84522,9 +84548,9 @@ def v1_groups_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_delete_serialize( + _param = self._v1_global_syslogs_device_get_serialize( authorization=authorization, - id=id, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84532,7 +84558,7 @@ def v1_groups_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalSyslogsDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -84546,10 +84572,10 @@ def v1_groups_id_delete_with_http_info( @validate_call - def v1_groups_id_delete_without_preload_content( + def v1_global_syslogs_device_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + device_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84563,14 +84589,14 @@ def v1_groups_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_id_delete + """v1_global_syslogs_device_get - Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. + Get global syslog objects that failed to attach for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str + :param device_id: + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84593,9 +84619,9 @@ def v1_groups_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_delete_serialize( + _param = self._v1_global_syslogs_device_get_serialize( authorization=authorization, - id=id, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84603,7 +84629,7 @@ def v1_groups_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalSyslogsDeviceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -84612,10 +84638,10 @@ def v1_groups_id_delete_without_preload_content( return response_data.response - def _v1_groups_id_delete_serialize( + def _v1_global_syslogs_device_get_serialize( self, authorization, - id, + device_id, _request_auth, _content_type, _headers, @@ -84637,9 +84663,11 @@ def _v1_groups_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -84647,6 +84675,13 @@ def _v1_groups_id_delete_serialize( # process the body parameter + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -84655,8 +84690,8 @@ def _v1_groups_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/groups/{id}', + method='GET', + resource_path='/v1/global/syslogs/device', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -84673,11 +84708,10 @@ def _v1_groups_id_delete_serialize( @validate_call - def v1_groups_id_enterprises_enterprise_id_delete( + def v1_global_syslogs_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, - id: StrictStr, + v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84690,17 +84724,15 @@ def v1_groups_id_enterprises_enterprise_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_groups_id_enterprises_enterprise_id_delete + ) -> V1GlobalSyslogsPostResponse: + """v1_global_syslogs_post - Remove group's association with a specific enterprise, revoking cross-enterprise access. + Get configured global syslog collectors :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int - :param id: (required) - :type id: str + :param v1_global_syslogs_post_request: (required) + :type v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84723,10 +84755,9 @@ def v1_groups_id_enterprises_enterprise_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_enterprises_enterprise_id_delete_serialize( + _param = self._v1_global_syslogs_post_serialize( authorization=authorization, - enterprise_id=enterprise_id, - id=id, + v1_global_syslogs_post_request=v1_global_syslogs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84734,7 +84765,7 @@ def v1_groups_id_enterprises_enterprise_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalSyslogsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -84748,11 +84779,10 @@ def v1_groups_id_enterprises_enterprise_id_delete( @validate_call - def v1_groups_id_enterprises_enterprise_id_delete_with_http_info( + def v1_global_syslogs_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, - id: StrictStr, + v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84765,17 +84795,15 @@ def v1_groups_id_enterprises_enterprise_id_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_groups_id_enterprises_enterprise_id_delete + ) -> ApiResponse[V1GlobalSyslogsPostResponse]: + """v1_global_syslogs_post - Remove group's association with a specific enterprise, revoking cross-enterprise access. + Get configured global syslog collectors :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int - :param id: (required) - :type id: str + :param v1_global_syslogs_post_request: (required) + :type v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84798,10 +84826,9 @@ def v1_groups_id_enterprises_enterprise_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_enterprises_enterprise_id_delete_serialize( + _param = self._v1_global_syslogs_post_serialize( authorization=authorization, - enterprise_id=enterprise_id, - id=id, + v1_global_syslogs_post_request=v1_global_syslogs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84809,7 +84836,7 @@ def v1_groups_id_enterprises_enterprise_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalSyslogsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -84823,11 +84850,10 @@ def v1_groups_id_enterprises_enterprise_id_delete_with_http_info( @validate_call - def v1_groups_id_enterprises_enterprise_id_delete_without_preload_content( + def v1_global_syslogs_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, - id: StrictStr, + v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84841,16 +84867,14 @@ def v1_groups_id_enterprises_enterprise_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_id_enterprises_enterprise_id_delete + """v1_global_syslogs_post - Remove group's association with a specific enterprise, revoking cross-enterprise access. + Get configured global syslog collectors :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int - :param id: (required) - :type id: str + :param v1_global_syslogs_post_request: (required) + :type v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84873,10 +84897,9 @@ def v1_groups_id_enterprises_enterprise_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_enterprises_enterprise_id_delete_serialize( + _param = self._v1_global_syslogs_post_serialize( authorization=authorization, - enterprise_id=enterprise_id, - id=id, + v1_global_syslogs_post_request=v1_global_syslogs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84884,7 +84907,7 @@ def v1_groups_id_enterprises_enterprise_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalSyslogsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -84893,11 +84916,10 @@ def v1_groups_id_enterprises_enterprise_id_delete_without_preload_content( return response_data.response - def _v1_groups_id_enterprises_enterprise_id_delete_serialize( + def _v1_global_syslogs_post_serialize( self, authorization, - enterprise_id, - id, + v1_global_syslogs_post_request, _request_auth, _content_type, _headers, @@ -84919,19 +84941,37 @@ def _v1_groups_id_enterprises_enterprise_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if enterprise_id is not None: - _path_params['enterpriseId'] = enterprise_id - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_global_syslogs_post_request is not None: + _body_params = v1_global_syslogs_post_request + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -84939,8 +84979,8 @@ def _v1_groups_id_enterprises_enterprise_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/groups/{id}/enterprises/{enterpriseId}', + method='POST', + resource_path='/v1/global/syslogs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -84957,11 +84997,10 @@ def _v1_groups_id_enterprises_enterprise_id_delete_serialize( @validate_call - def v1_groups_id_enterprises_post( + def v1_global_syslogs_site_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84974,17 +85013,15 @@ def v1_groups_id_enterprises_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_groups_id_enterprises_post + ) -> V1GlobalSyslogsSiteGetResponse: + """v1_global_syslogs_site_get - Associate group with additional enterprises to enable cross-enterprise access and management. + Get configured global syslog collectors :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param v1_groups_id_enterprises_post_request: (required) - :type v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -85007,10 +85044,9 @@ def v1_groups_id_enterprises_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_enterprises_post_serialize( + _param = self._v1_global_syslogs_site_get_serialize( authorization=authorization, - id=id, - v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85018,7 +85054,7 @@ def v1_groups_id_enterprises_post( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalSyslogsSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -85032,11 +85068,10 @@ def v1_groups_id_enterprises_post( @validate_call - def v1_groups_id_enterprises_post_with_http_info( + def v1_global_syslogs_site_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85049,17 +85084,15 @@ def v1_groups_id_enterprises_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_groups_id_enterprises_post + ) -> ApiResponse[V1GlobalSyslogsSiteGetResponse]: + """v1_global_syslogs_site_get - Associate group with additional enterprises to enable cross-enterprise access and management. + Get configured global syslog collectors :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param v1_groups_id_enterprises_post_request: (required) - :type v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -85082,10 +85115,9 @@ def v1_groups_id_enterprises_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_enterprises_post_serialize( + _param = self._v1_global_syslogs_site_get_serialize( authorization=authorization, - id=id, - v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85093,7 +85125,7 @@ def v1_groups_id_enterprises_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalSyslogsSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -85107,11 +85139,10 @@ def v1_groups_id_enterprises_post_with_http_info( @validate_call - def v1_groups_id_enterprises_post_without_preload_content( + def v1_global_syslogs_site_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, + site_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85125,16 +85156,14 @@ def v1_groups_id_enterprises_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_id_enterprises_post + """v1_global_syslogs_site_get - Associate group with additional enterprises to enable cross-enterprise access and management. + Get configured global syslog collectors :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param v1_groups_id_enterprises_post_request: (required) - :type v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest + :param site_id: + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -85157,10 +85186,9 @@ def v1_groups_id_enterprises_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_enterprises_post_serialize( + _param = self._v1_global_syslogs_site_get_serialize( authorization=authorization, - id=id, - v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85168,7 +85196,7 @@ def v1_groups_id_enterprises_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalSyslogsSiteGetResponse", } response_data = self.api_client.call_api( *_param, @@ -85177,11 +85205,10 @@ def v1_groups_id_enterprises_post_without_preload_content( return response_data.response - def _v1_groups_id_enterprises_post_serialize( + def _v1_global_syslogs_site_get_serialize( self, authorization, - id, - v1_groups_id_enterprises_post_request, + site_id, _request_auth, _content_type, _headers, @@ -85203,32 +85230,26 @@ def _v1_groups_id_enterprises_post_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if site_id is not None: + + _query_params.append(('siteId', site_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_groups_id_enterprises_post_request is not None: - _body_params = v1_groups_id_enterprises_post_request - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type + # authentication setting _auth_settings: List[str] = [ @@ -85236,8 +85257,8 @@ def _v1_groups_id_enterprises_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/groups/{id}/enterprises', + method='GET', + resource_path='/v1/global/syslogs/site', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -85254,11 +85275,10 @@ def _v1_groups_id_enterprises_post_serialize( @validate_call - def v1_groups_id_members_delete_post( + def v1_global_traffic_policies_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest, + v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85271,17 +85291,15 @@ def v1_groups_id_members_delete_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_groups_id_members_delete_post + ) -> V1GlobalTrafficPoliciesPostResponse: + """v1_global_traffic_policies_post - Remove multiple users from a group by their member IDs. + Get configured global traffic-policies :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param v1_groups_id_members_delete_post_request: (required) - :type v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest + :param v1_global_traffic_policies_post_request: (required) + :type v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -85304,10 +85322,9 @@ def v1_groups_id_members_delete_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_delete_post_serialize( + _param = self._v1_global_traffic_policies_post_serialize( authorization=authorization, - id=id, - v1_groups_id_members_delete_post_request=v1_groups_id_members_delete_post_request, + v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85315,7 +85332,7 @@ def v1_groups_id_members_delete_post( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalTrafficPoliciesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -85329,11 +85346,10 @@ def v1_groups_id_members_delete_post( @validate_call - def v1_groups_id_members_delete_post_with_http_info( + def v1_global_traffic_policies_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest, + v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85346,17 +85362,15 @@ def v1_groups_id_members_delete_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_groups_id_members_delete_post + ) -> ApiResponse[V1GlobalTrafficPoliciesPostResponse]: + """v1_global_traffic_policies_post - Remove multiple users from a group by their member IDs. + Get configured global traffic-policies :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param v1_groups_id_members_delete_post_request: (required) - :type v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest + :param v1_global_traffic_policies_post_request: (required) + :type v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -85379,10 +85393,9 @@ def v1_groups_id_members_delete_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_delete_post_serialize( + _param = self._v1_global_traffic_policies_post_serialize( authorization=authorization, - id=id, - v1_groups_id_members_delete_post_request=v1_groups_id_members_delete_post_request, + v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85390,7 +85403,7 @@ def v1_groups_id_members_delete_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalTrafficPoliciesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -85404,11 +85417,10 @@ def v1_groups_id_members_delete_post_with_http_info( @validate_call - def v1_groups_id_members_delete_post_without_preload_content( + def v1_global_traffic_policies_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest, + v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85422,16 +85434,14 @@ def v1_groups_id_members_delete_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_id_members_delete_post + """v1_global_traffic_policies_post - Remove multiple users from a group by their member IDs. + Get configured global traffic-policies :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param v1_groups_id_members_delete_post_request: (required) - :type v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest + :param v1_global_traffic_policies_post_request: (required) + :type v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -85454,10 +85464,9 @@ def v1_groups_id_members_delete_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_delete_post_serialize( + _param = self._v1_global_traffic_policies_post_serialize( authorization=authorization, - id=id, - v1_groups_id_members_delete_post_request=v1_groups_id_members_delete_post_request, + v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85465,7 +85474,7 @@ def v1_groups_id_members_delete_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalTrafficPoliciesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -85474,11 +85483,10 @@ def v1_groups_id_members_delete_post_without_preload_content( return response_data.response - def _v1_groups_id_members_delete_post_serialize( + def _v1_global_traffic_policies_post_serialize( self, authorization, - id, - v1_groups_id_members_delete_post_request, + v1_global_traffic_policies_post_request, _request_auth, _content_type, _headers, @@ -85500,18 +85508,23 @@ def _v1_groups_id_members_delete_post_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_groups_id_members_delete_post_request is not None: - _body_params = v1_groups_id_members_delete_post_request + if v1_global_traffic_policies_post_request is not None: + _body_params = v1_global_traffic_policies_post_request + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -85534,7 +85547,7 @@ def _v1_groups_id_members_delete_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/groups/{id}/members/delete', + resource_path='/v1/global/traffic-policies', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -85551,10 +85564,9 @@ def _v1_groups_id_members_delete_post_serialize( @validate_call - def v1_groups_id_members_get( + def v1_groups_enterprises_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85567,15 +85579,13 @@ def v1_groups_id_members_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GroupsIdMembersGetResponse: - """v1_groups_id_members_get + ) -> V1GroupsEnterprisesGetResponse: + """v1_groups_enterprises_get - Get all members of a specific group. + Get all enterprise-level groups. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -85598,9 +85608,8 @@ def v1_groups_id_members_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_get_serialize( + _param = self._v1_groups_enterprises_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85608,7 +85617,7 @@ def v1_groups_id_members_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsIdMembersGetResponse", + '200': "V1GroupsEnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -85622,10 +85631,9 @@ def v1_groups_id_members_get( @validate_call - def v1_groups_id_members_get_with_http_info( + def v1_groups_enterprises_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85638,15 +85646,13 @@ def v1_groups_id_members_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GroupsIdMembersGetResponse]: - """v1_groups_id_members_get + ) -> ApiResponse[V1GroupsEnterprisesGetResponse]: + """v1_groups_enterprises_get - Get all members of a specific group. + Get all enterprise-level groups. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -85669,9 +85675,8 @@ def v1_groups_id_members_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_get_serialize( + _param = self._v1_groups_enterprises_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85679,7 +85684,7 @@ def v1_groups_id_members_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsIdMembersGetResponse", + '200': "V1GroupsEnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -85693,10 +85698,9 @@ def v1_groups_id_members_get_with_http_info( @validate_call - def v1_groups_id_members_get_without_preload_content( + def v1_groups_enterprises_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85710,14 +85714,12 @@ def v1_groups_id_members_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_id_members_get + """v1_groups_enterprises_get - Get all members of a specific group. + Get all enterprise-level groups. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -85740,9 +85742,8 @@ def v1_groups_id_members_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_get_serialize( + _param = self._v1_groups_enterprises_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85750,7 +85751,7 @@ def v1_groups_id_members_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsIdMembersGetResponse", + '200': "V1GroupsEnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -85759,10 +85760,9 @@ def v1_groups_id_members_get_without_preload_content( return response_data.response - def _v1_groups_id_members_get_serialize( + def _v1_groups_enterprises_get_serialize( self, authorization, - id, _request_auth, _content_type, _headers, @@ -85784,8 +85784,6 @@ def _v1_groups_id_members_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: @@ -85810,7 +85808,7 @@ def _v1_groups_id_members_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/groups/{id}/members', + resource_path='/v1/groups/enterprises', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -85827,11 +85825,9 @@ def _v1_groups_id_members_get_serialize( @validate_call - def v1_groups_id_members_member_id_delete( + def v1_groups_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - member_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85844,17 +85840,13 @@ def v1_groups_id_members_member_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_groups_id_members_member_id_delete + ) -> V1GroupsGetResponse: + """v1_groups_get - Remove a specific user from a group by member ID. + Get all groups in the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param member_id: (required) - :type member_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -85877,10 +85869,8 @@ def v1_groups_id_members_member_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_member_id_delete_serialize( + _param = self._v1_groups_get_serialize( authorization=authorization, - id=id, - member_id=member_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85888,7 +85878,7 @@ def v1_groups_id_members_member_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GroupsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -85902,11 +85892,9 @@ def v1_groups_id_members_member_id_delete( @validate_call - def v1_groups_id_members_member_id_delete_with_http_info( + def v1_groups_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - member_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85919,17 +85907,13 @@ def v1_groups_id_members_member_id_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_groups_id_members_member_id_delete + ) -> ApiResponse[V1GroupsGetResponse]: + """v1_groups_get - Remove a specific user from a group by member ID. + Get all groups in the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param member_id: (required) - :type member_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -85952,10 +85936,8 @@ def v1_groups_id_members_member_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_member_id_delete_serialize( + _param = self._v1_groups_get_serialize( authorization=authorization, - id=id, - member_id=member_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85963,7 +85945,7 @@ def v1_groups_id_members_member_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GroupsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -85977,11 +85959,9 @@ def v1_groups_id_members_member_id_delete_with_http_info( @validate_call - def v1_groups_id_members_member_id_delete_without_preload_content( + def v1_groups_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - member_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85995,16 +85975,12 @@ def v1_groups_id_members_member_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_id_members_member_id_delete + """v1_groups_get - Remove a specific user from a group by member ID. + Get all groups in the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param member_id: (required) - :type member_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -86027,10 +86003,8 @@ def v1_groups_id_members_member_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_member_id_delete_serialize( + _param = self._v1_groups_get_serialize( authorization=authorization, - id=id, - member_id=member_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86038,7 +86012,7 @@ def v1_groups_id_members_member_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GroupsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -86047,11 +86021,9 @@ def v1_groups_id_members_member_id_delete_without_preload_content( return response_data.response - def _v1_groups_id_members_member_id_delete_serialize( + def _v1_groups_get_serialize( self, authorization, - id, - member_id, _request_auth, _content_type, _headers, @@ -86073,10 +86045,6 @@ def _v1_groups_id_members_member_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id - if member_id is not None: - _path_params['memberId'] = member_id # process the query parameters # process the header parameters if authorization is not None: @@ -86085,6 +86053,13 @@ def _v1_groups_id_members_member_id_delete_serialize( # process the body parameter + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -86093,8 +86068,8 @@ def _v1_groups_id_members_member_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/groups/{id}/members/{memberId}', + method='GET', + resource_path='/v1/groups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -86111,11 +86086,10 @@ def _v1_groups_id_members_member_id_delete_serialize( @validate_call - def v1_groups_id_members_post( + def v1_groups_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: StrictStr, - v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86129,16 +86103,14 @@ def v1_groups_id_members_post( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_groups_id_members_post + """v1_groups_id_delete - Add multiple users to a group by their global IDs. + Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param id: (required) :type id: str - :param v1_groups_id_members_post_request: (required) - :type v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -86161,10 +86133,9 @@ def v1_groups_id_members_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_post_serialize( + _param = self._v1_groups_id_delete_serialize( authorization=authorization, id=id, - v1_groups_id_members_post_request=v1_groups_id_members_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86186,11 +86157,10 @@ def v1_groups_id_members_post( @validate_call - def v1_groups_id_members_post_with_http_info( + def v1_groups_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: StrictStr, - v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86204,16 +86174,14 @@ def v1_groups_id_members_post_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_groups_id_members_post + """v1_groups_id_delete - Add multiple users to a group by their global IDs. + Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param id: (required) :type id: str - :param v1_groups_id_members_post_request: (required) - :type v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -86236,10 +86204,9 @@ def v1_groups_id_members_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_post_serialize( + _param = self._v1_groups_id_delete_serialize( authorization=authorization, id=id, - v1_groups_id_members_post_request=v1_groups_id_members_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86261,11 +86228,10 @@ def v1_groups_id_members_post_with_http_info( @validate_call - def v1_groups_id_members_post_without_preload_content( + def v1_groups_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: StrictStr, - v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86279,16 +86245,14 @@ def v1_groups_id_members_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_id_members_post + """v1_groups_id_delete - Add multiple users to a group by their global IDs. + Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param id: (required) :type id: str - :param v1_groups_id_members_post_request: (required) - :type v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -86311,10 +86275,9 @@ def v1_groups_id_members_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_members_post_serialize( + _param = self._v1_groups_id_delete_serialize( authorization=authorization, id=id, - v1_groups_id_members_post_request=v1_groups_id_members_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86331,11 +86294,10 @@ def v1_groups_id_members_post_without_preload_content( return response_data.response - def _v1_groups_id_members_post_serialize( + def _v1_groups_id_delete_serialize( self, authorization, id, - v1_groups_id_members_post_request, _request_auth, _content_type, _headers, @@ -86365,24 +86327,9 @@ def _v1_groups_id_members_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_groups_id_members_post_request is not None: - _body_params = v1_groups_id_members_post_request - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -86390,8 +86337,8 @@ def _v1_groups_id_members_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/groups/{id}/members', + method='DELETE', + resource_path='/v1/groups/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -86408,11 +86355,11 @@ def _v1_groups_id_members_post_serialize( @validate_call - def v1_groups_id_patch( + def v1_groups_id_enterprises_enterprise_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: StrictInt, id: StrictStr, - v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86426,16 +86373,16 @@ def v1_groups_id_patch( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_groups_id_patch + """v1_groups_id_enterprises_enterprise_id_delete - Update group information. + Remove group's association with a specific enterprise, revoking cross-enterprise access. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: (required) + :type enterprise_id: int :param id: (required) :type id: str - :param v1_groups_id_patch_request: (required) - :type v1_groups_id_patch_request: V1GroupsIdPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -86458,10 +86405,10 @@ def v1_groups_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_patch_serialize( + _param = self._v1_groups_id_enterprises_enterprise_id_delete_serialize( authorization=authorization, + enterprise_id=enterprise_id, id=id, - v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86483,11 +86430,11 @@ def v1_groups_id_patch( @validate_call - def v1_groups_id_patch_with_http_info( + def v1_groups_id_enterprises_enterprise_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: StrictInt, id: StrictStr, - v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86501,16 +86448,16 @@ def v1_groups_id_patch_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_groups_id_patch + """v1_groups_id_enterprises_enterprise_id_delete - Update group information. + Remove group's association with a specific enterprise, revoking cross-enterprise access. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: (required) + :type enterprise_id: int :param id: (required) :type id: str - :param v1_groups_id_patch_request: (required) - :type v1_groups_id_patch_request: V1GroupsIdPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -86533,10 +86480,10 @@ def v1_groups_id_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_patch_serialize( + _param = self._v1_groups_id_enterprises_enterprise_id_delete_serialize( authorization=authorization, + enterprise_id=enterprise_id, id=id, - v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86558,11 +86505,11 @@ def v1_groups_id_patch_with_http_info( @validate_call - def v1_groups_id_patch_without_preload_content( + def v1_groups_id_enterprises_enterprise_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: StrictInt, id: StrictStr, - v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86576,16 +86523,16 @@ def v1_groups_id_patch_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_id_patch + """v1_groups_id_enterprises_enterprise_id_delete - Update group information. + Remove group's association with a specific enterprise, revoking cross-enterprise access. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: (required) + :type enterprise_id: int :param id: (required) :type id: str - :param v1_groups_id_patch_request: (required) - :type v1_groups_id_patch_request: V1GroupsIdPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -86608,10 +86555,10 @@ def v1_groups_id_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_patch_serialize( + _param = self._v1_groups_id_enterprises_enterprise_id_delete_serialize( authorization=authorization, + enterprise_id=enterprise_id, id=id, - v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86628,11 +86575,11 @@ def v1_groups_id_patch_without_preload_content( return response_data.response - def _v1_groups_id_patch_serialize( + def _v1_groups_id_enterprises_enterprise_id_delete_serialize( self, authorization, + enterprise_id, id, - v1_groups_id_patch_request, _request_auth, _content_type, _headers, @@ -86654,6 +86601,8 @@ def _v1_groups_id_patch_serialize( _body_params: Optional[bytes] = None # process the path parameters + if enterprise_id is not None: + _path_params['enterpriseId'] = enterprise_id if id is not None: _path_params['id'] = id # process the query parameters @@ -86662,24 +86611,9 @@ def _v1_groups_id_patch_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_groups_id_patch_request is not None: - _body_params = v1_groups_id_patch_request - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -86687,8 +86621,8 @@ def _v1_groups_id_patch_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/groups/{id}', + method='DELETE', + resource_path='/v1/groups/{id}/enterprises/{enterpriseId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -86705,10 +86639,11 @@ def _v1_groups_id_patch_serialize( @validate_call - def v1_groups_put( + def v1_groups_id_enterprises_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_groups_put_request: V1GroupsPutRequest, + id: StrictStr, + v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86722,14 +86657,16 @@ def v1_groups_put( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_groups_put + """v1_groups_id_enterprises_post - Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). + Associate group with additional enterprises to enable cross-enterprise access and management. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_groups_put_request: (required) - :type v1_groups_put_request: V1GroupsPutRequest + :param id: (required) + :type id: str + :param v1_groups_id_enterprises_post_request: (required) + :type v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -86752,9 +86689,10 @@ def v1_groups_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_put_serialize( + _param = self._v1_groups_id_enterprises_post_serialize( authorization=authorization, - v1_groups_put_request=v1_groups_put_request, + id=id, + v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86776,10 +86714,11 @@ def v1_groups_put( @validate_call - def v1_groups_put_with_http_info( + def v1_groups_id_enterprises_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_groups_put_request: V1GroupsPutRequest, + id: StrictStr, + v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86793,14 +86732,16 @@ def v1_groups_put_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_groups_put + """v1_groups_id_enterprises_post - Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). + Associate group with additional enterprises to enable cross-enterprise access and management. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_groups_put_request: (required) - :type v1_groups_put_request: V1GroupsPutRequest + :param id: (required) + :type id: str + :param v1_groups_id_enterprises_post_request: (required) + :type v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -86823,9 +86764,10 @@ def v1_groups_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_put_serialize( + _param = self._v1_groups_id_enterprises_post_serialize( authorization=authorization, - v1_groups_put_request=v1_groups_put_request, + id=id, + v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86847,10 +86789,11 @@ def v1_groups_put_with_http_info( @validate_call - def v1_groups_put_without_preload_content( + def v1_groups_id_enterprises_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_groups_put_request: V1GroupsPutRequest, + id: StrictStr, + v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86864,14 +86807,16 @@ def v1_groups_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_put + """v1_groups_id_enterprises_post - Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). + Associate group with additional enterprises to enable cross-enterprise access and management. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_groups_put_request: (required) - :type v1_groups_put_request: V1GroupsPutRequest + :param id: (required) + :type id: str + :param v1_groups_id_enterprises_post_request: (required) + :type v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -86894,9 +86839,10 @@ def v1_groups_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_put_serialize( + _param = self._v1_groups_id_enterprises_post_serialize( authorization=authorization, - v1_groups_put_request=v1_groups_put_request, + id=id, + v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86913,10 +86859,11 @@ def v1_groups_put_without_preload_content( return response_data.response - def _v1_groups_put_serialize( + def _v1_groups_id_enterprises_post_serialize( self, authorization, - v1_groups_put_request, + id, + v1_groups_id_enterprises_post_request, _request_auth, _content_type, _headers, @@ -86938,14 +86885,16 @@ def _v1_groups_put_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_groups_put_request is not None: - _body_params = v1_groups_put_request + if v1_groups_id_enterprises_post_request is not None: + _body_params = v1_groups_id_enterprises_post_request @@ -86969,8 +86918,8 @@ def _v1_groups_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/groups', + method='POST', + resource_path='/v1/groups/{id}/enterprises', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -86987,9 +86936,11 @@ def _v1_groups_put_serialize( @validate_call - def v1_groups_root_get( + def v1_groups_id_members_delete_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87002,13 +86953,17 @@ def v1_groups_root_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GroupsRootGetResponse: - """v1_groups_root_get + ) -> None: + """v1_groups_id_members_delete_post - Get all root-level groups. + Remove multiple users from a group by their member IDs. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: (required) + :type id: str + :param v1_groups_id_members_delete_post_request: (required) + :type v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87031,8 +86986,10 @@ def v1_groups_root_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_root_get_serialize( + _param = self._v1_groups_id_members_delete_post_serialize( authorization=authorization, + id=id, + v1_groups_id_members_delete_post_request=v1_groups_id_members_delete_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87040,7 +86997,7 @@ def v1_groups_root_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsRootGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -87054,9 +87011,11 @@ def v1_groups_root_get( @validate_call - def v1_groups_root_get_with_http_info( + def v1_groups_id_members_delete_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87069,13 +87028,17 @@ def v1_groups_root_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GroupsRootGetResponse]: - """v1_groups_root_get + ) -> ApiResponse[None]: + """v1_groups_id_members_delete_post - Get all root-level groups. + Remove multiple users from a group by their member IDs. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: (required) + :type id: str + :param v1_groups_id_members_delete_post_request: (required) + :type v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87098,8 +87061,10 @@ def v1_groups_root_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_root_get_serialize( + _param = self._v1_groups_id_members_delete_post_serialize( authorization=authorization, + id=id, + v1_groups_id_members_delete_post_request=v1_groups_id_members_delete_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87107,7 +87072,7 @@ def v1_groups_root_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsRootGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -87121,9 +87086,11 @@ def v1_groups_root_get_with_http_info( @validate_call - def v1_groups_root_get_without_preload_content( + def v1_groups_id_members_delete_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87137,12 +87104,16 @@ def v1_groups_root_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_groups_root_get + """v1_groups_id_members_delete_post - Get all root-level groups. + Remove multiple users from a group by their member IDs. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: (required) + :type id: str + :param v1_groups_id_members_delete_post_request: (required) + :type v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87165,8 +87136,10 @@ def v1_groups_root_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_root_get_serialize( + _param = self._v1_groups_id_members_delete_post_serialize( authorization=authorization, + id=id, + v1_groups_id_members_delete_post_request=v1_groups_id_members_delete_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87174,7 +87147,7 @@ def v1_groups_root_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsRootGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -87183,9 +87156,11 @@ def v1_groups_root_get_without_preload_content( return response_data.response - def _v1_groups_root_get_serialize( + def _v1_groups_id_members_delete_post_serialize( self, authorization, + id, + v1_groups_id_members_delete_post_request, _request_auth, _content_type, _headers, @@ -87207,22 +87182,32 @@ def _v1_groups_root_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_groups_id_members_delete_post_request is not None: + _body_params = v1_groups_id_members_delete_post_request - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -87230,8 +87215,8 @@ def _v1_groups_root_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/groups/root', + method='POST', + resource_path='/v1/groups/{id}/members/delete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -87248,10 +87233,10 @@ def _v1_groups_root_get_serialize( @validate_call - def v1_invitation_email_post( + def v1_groups_id_members_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_invitation_email_post_request: V1InvitationEmailPostRequest, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87264,15 +87249,15 @@ def v1_invitation_email_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_invitation_email_post + ) -> V1GroupsIdMembersGetResponse: + """v1_groups_id_members_get - Send invitation emails for B2B data exchange service connections. For non-Graphiant enterprises, sends invite to all admin users in the proxy tenant desiganted by your msp. For Graphiant, sends to specified admin email. + Get all members of a specific group. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_invitation_email_post_request: (required) - :type v1_invitation_email_post_request: V1InvitationEmailPostRequest + :param id: (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87295,9 +87280,9 @@ def v1_invitation_email_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_invitation_email_post_serialize( + _param = self._v1_groups_id_members_get_serialize( authorization=authorization, - v1_invitation_email_post_request=v1_invitation_email_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87305,7 +87290,7 @@ def v1_invitation_email_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GroupsIdMembersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87319,10 +87304,10 @@ def v1_invitation_email_post( @validate_call - def v1_invitation_email_post_with_http_info( + def v1_groups_id_members_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_invitation_email_post_request: V1InvitationEmailPostRequest, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87335,15 +87320,15 @@ def v1_invitation_email_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """v1_invitation_email_post + ) -> ApiResponse[V1GroupsIdMembersGetResponse]: + """v1_groups_id_members_get - Send invitation emails for B2B data exchange service connections. For non-Graphiant enterprises, sends invite to all admin users in the proxy tenant desiganted by your msp. For Graphiant, sends to specified admin email. + Get all members of a specific group. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_invitation_email_post_request: (required) - :type v1_invitation_email_post_request: V1InvitationEmailPostRequest + :param id: (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87366,9 +87351,9 @@ def v1_invitation_email_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_invitation_email_post_serialize( + _param = self._v1_groups_id_members_get_serialize( authorization=authorization, - v1_invitation_email_post_request=v1_invitation_email_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87376,7 +87361,7 @@ def v1_invitation_email_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GroupsIdMembersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87390,10 +87375,10 @@ def v1_invitation_email_post_with_http_info( @validate_call - def v1_invitation_email_post_without_preload_content( + def v1_groups_id_members_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_invitation_email_post_request: V1InvitationEmailPostRequest, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87407,14 +87392,14 @@ def v1_invitation_email_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_invitation_email_post + """v1_groups_id_members_get - Send invitation emails for B2B data exchange service connections. For non-Graphiant enterprises, sends invite to all admin users in the proxy tenant desiganted by your msp. For Graphiant, sends to specified admin email. + Get all members of a specific group. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_invitation_email_post_request: (required) - :type v1_invitation_email_post_request: V1InvitationEmailPostRequest + :param id: (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87437,9 +87422,9 @@ def v1_invitation_email_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_invitation_email_post_serialize( + _param = self._v1_groups_id_members_get_serialize( authorization=authorization, - v1_invitation_email_post_request=v1_invitation_email_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87447,7 +87432,7 @@ def v1_invitation_email_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GroupsIdMembersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87456,10 +87441,10 @@ def v1_invitation_email_post_without_preload_content( return response_data.response - def _v1_invitation_email_post_serialize( + def _v1_groups_id_members_get_serialize( self, authorization, - v1_invitation_email_post_request, + id, _request_auth, _content_type, _headers, @@ -87481,14 +87466,14 @@ def _v1_invitation_email_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_invitation_email_post_request is not None: - _body_params = v1_invitation_email_post_request # set the HTTP header `Accept` @@ -87499,19 +87484,6 @@ def _v1_invitation_email_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -87519,8 +87491,8 @@ def _v1_invitation_email_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/invitation/email', + method='GET', + resource_path='/v1/groups/{id}/members', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -87537,9 +87509,11 @@ def _v1_invitation_email_post_serialize( @validate_call - def v1_lan_segments_get( + def v1_groups_id_members_member_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + member_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87552,13 +87526,17 @@ def v1_lan_segments_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1LanSegmentsGetResponse: - """v1_lan_segments_get + ) -> None: + """v1_groups_id_members_member_id_delete - Get LAN Segments for the current enterprise + Remove a specific user from a group by member ID. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: (required) + :type id: str + :param member_id: (required) + :type member_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87581,8 +87559,10 @@ def v1_lan_segments_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lan_segments_get_serialize( + _param = self._v1_groups_id_members_member_id_delete_serialize( authorization=authorization, + id=id, + member_id=member_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87590,7 +87570,7 @@ def v1_lan_segments_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LanSegmentsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -87604,9 +87584,11 @@ def v1_lan_segments_get( @validate_call - def v1_lan_segments_get_with_http_info( + def v1_groups_id_members_member_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + member_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87619,13 +87601,17 @@ def v1_lan_segments_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1LanSegmentsGetResponse]: - """v1_lan_segments_get + ) -> ApiResponse[None]: + """v1_groups_id_members_member_id_delete - Get LAN Segments for the current enterprise + Remove a specific user from a group by member ID. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: (required) + :type id: str + :param member_id: (required) + :type member_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87648,8 +87634,10 @@ def v1_lan_segments_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lan_segments_get_serialize( + _param = self._v1_groups_id_members_member_id_delete_serialize( authorization=authorization, + id=id, + member_id=member_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87657,7 +87645,7 @@ def v1_lan_segments_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LanSegmentsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -87671,9 +87659,11 @@ def v1_lan_segments_get_with_http_info( @validate_call - def v1_lan_segments_get_without_preload_content( + def v1_groups_id_members_member_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + member_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87687,12 +87677,16 @@ def v1_lan_segments_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_lan_segments_get + """v1_groups_id_members_member_id_delete - Get LAN Segments for the current enterprise + Remove a specific user from a group by member ID. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: (required) + :type id: str + :param member_id: (required) + :type member_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87715,8 +87709,10 @@ def v1_lan_segments_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lan_segments_get_serialize( + _param = self._v1_groups_id_members_member_id_delete_serialize( authorization=authorization, + id=id, + member_id=member_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87724,7 +87720,7 @@ def v1_lan_segments_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LanSegmentsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -87733,9 +87729,11 @@ def v1_lan_segments_get_without_preload_content( return response_data.response - def _v1_lan_segments_get_serialize( + def _v1_groups_id_members_member_id_delete_serialize( self, authorization, + id, + member_id, _request_auth, _content_type, _headers, @@ -87757,6 +87755,10 @@ def _v1_lan_segments_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id + if member_id is not None: + _path_params['memberId'] = member_id # process the query parameters # process the header parameters if authorization is not None: @@ -87765,13 +87767,6 @@ def _v1_lan_segments_get_serialize( # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) # authentication setting @@ -87780,8 +87775,8 @@ def _v1_lan_segments_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/lan-segments', + method='DELETE', + resource_path='/v1/groups/{id}/members/{memberId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -87798,10 +87793,11 @@ def _v1_lan_segments_get_serialize( @validate_call - def v1_lldp_interface_id_neighbors_get( + def v1_groups_id_members_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + id: StrictStr, + v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87814,15 +87810,17 @@ def v1_lldp_interface_id_neighbors_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1LldpInterfaceIdNeighborsGetResponse: - """v1_lldp_interface_id_neighbors_get + ) -> None: + """v1_groups_id_members_post - Get the LLDP neighbors for an interface and optionally for a specific vendor + Add multiple users to a group by their global IDs. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :param id: (required) + :type id: str + :param v1_groups_id_members_post_request: (required) + :type v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87845,9 +87843,10 @@ def v1_lldp_interface_id_neighbors_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lldp_interface_id_neighbors_get_serialize( + _param = self._v1_groups_id_members_post_serialize( authorization=authorization, - interface_id=interface_id, + id=id, + v1_groups_id_members_post_request=v1_groups_id_members_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87855,7 +87854,7 @@ def v1_lldp_interface_id_neighbors_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdNeighborsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -87869,10 +87868,11 @@ def v1_lldp_interface_id_neighbors_get( @validate_call - def v1_lldp_interface_id_neighbors_get_with_http_info( + def v1_groups_id_members_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + id: StrictStr, + v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87885,15 +87885,17 @@ def v1_lldp_interface_id_neighbors_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1LldpInterfaceIdNeighborsGetResponse]: - """v1_lldp_interface_id_neighbors_get + ) -> ApiResponse[None]: + """v1_groups_id_members_post - Get the LLDP neighbors for an interface and optionally for a specific vendor + Add multiple users to a group by their global IDs. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :param id: (required) + :type id: str + :param v1_groups_id_members_post_request: (required) + :type v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87916,9 +87918,10 @@ def v1_lldp_interface_id_neighbors_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lldp_interface_id_neighbors_get_serialize( + _param = self._v1_groups_id_members_post_serialize( authorization=authorization, - interface_id=interface_id, + id=id, + v1_groups_id_members_post_request=v1_groups_id_members_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87926,7 +87929,7 @@ def v1_lldp_interface_id_neighbors_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdNeighborsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -87940,10 +87943,11 @@ def v1_lldp_interface_id_neighbors_get_with_http_info( @validate_call - def v1_lldp_interface_id_neighbors_get_without_preload_content( + def v1_groups_id_members_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + id: StrictStr, + v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87957,14 +87961,16 @@ def v1_lldp_interface_id_neighbors_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_lldp_interface_id_neighbors_get + """v1_groups_id_members_post - Get the LLDP neighbors for an interface and optionally for a specific vendor + Add multiple users to a group by their global IDs. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :param id: (required) + :type id: str + :param v1_groups_id_members_post_request: (required) + :type v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -87987,9 +87993,10 @@ def v1_lldp_interface_id_neighbors_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lldp_interface_id_neighbors_get_serialize( + _param = self._v1_groups_id_members_post_serialize( authorization=authorization, - interface_id=interface_id, + id=id, + v1_groups_id_members_post_request=v1_groups_id_members_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87997,7 +88004,7 @@ def v1_lldp_interface_id_neighbors_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdNeighborsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -88006,10 +88013,11 @@ def v1_lldp_interface_id_neighbors_get_without_preload_content( return response_data.response - def _v1_lldp_interface_id_neighbors_get_serialize( + def _v1_groups_id_members_post_serialize( self, authorization, - interface_id, + id, + v1_groups_id_members_post_request, _request_auth, _content_type, _headers, @@ -88031,24 +88039,32 @@ def _v1_lldp_interface_id_neighbors_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if interface_id is not None: - _path_params['interfaceId'] = interface_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_groups_id_members_post_request is not None: + _body_params = v1_groups_id_members_post_request - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -88056,8 +88072,8 @@ def _v1_lldp_interface_id_neighbors_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/lldp/{interfaceId}/neighbors', + method='POST', + resource_path='/v1/groups/{id}/members', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -88074,10 +88090,11 @@ def _v1_lldp_interface_id_neighbors_get_serialize( @validate_call - def v1_lldp_interface_id_summary_get( + def v1_groups_id_patch( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + id: StrictStr, + v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88090,15 +88107,17 @@ def v1_lldp_interface_id_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1LldpInterfaceIdSummaryGetResponse: - """v1_lldp_interface_id_summary_get + ) -> None: + """v1_groups_id_patch - Get the summary of LLDP neighbors for an interface + Update group information. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :param id: (required) + :type id: str + :param v1_groups_id_patch_request: (required) + :type v1_groups_id_patch_request: V1GroupsIdPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88121,9 +88140,10 @@ def v1_lldp_interface_id_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lldp_interface_id_summary_get_serialize( + _param = self._v1_groups_id_patch_serialize( authorization=authorization, - interface_id=interface_id, + id=id, + v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88131,7 +88151,7 @@ def v1_lldp_interface_id_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdSummaryGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -88145,10 +88165,11 @@ def v1_lldp_interface_id_summary_get( @validate_call - def v1_lldp_interface_id_summary_get_with_http_info( + def v1_groups_id_patch_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + id: StrictStr, + v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88161,15 +88182,17 @@ def v1_lldp_interface_id_summary_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1LldpInterfaceIdSummaryGetResponse]: - """v1_lldp_interface_id_summary_get + ) -> ApiResponse[None]: + """v1_groups_id_patch - Get the summary of LLDP neighbors for an interface + Update group information. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :param id: (required) + :type id: str + :param v1_groups_id_patch_request: (required) + :type v1_groups_id_patch_request: V1GroupsIdPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88192,9 +88215,10 @@ def v1_lldp_interface_id_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lldp_interface_id_summary_get_serialize( + _param = self._v1_groups_id_patch_serialize( authorization=authorization, - interface_id=interface_id, + id=id, + v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88202,7 +88226,7 @@ def v1_lldp_interface_id_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdSummaryGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -88216,10 +88240,11 @@ def v1_lldp_interface_id_summary_get_with_http_info( @validate_call - def v1_lldp_interface_id_summary_get_without_preload_content( + def v1_groups_id_patch_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + id: StrictStr, + v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88233,14 +88258,16 @@ def v1_lldp_interface_id_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_lldp_interface_id_summary_get + """v1_groups_id_patch - Get the summary of LLDP neighbors for an interface + Update group information. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :param id: (required) + :type id: str + :param v1_groups_id_patch_request: (required) + :type v1_groups_id_patch_request: V1GroupsIdPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88263,9 +88290,10 @@ def v1_lldp_interface_id_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lldp_interface_id_summary_get_serialize( + _param = self._v1_groups_id_patch_serialize( authorization=authorization, - interface_id=interface_id, + id=id, + v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88273,7 +88301,7 @@ def v1_lldp_interface_id_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdSummaryGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -88282,10 +88310,11 @@ def v1_lldp_interface_id_summary_get_without_preload_content( return response_data.response - def _v1_lldp_interface_id_summary_get_serialize( + def _v1_groups_id_patch_serialize( self, authorization, - interface_id, + id, + v1_groups_id_patch_request, _request_auth, _content_type, _headers, @@ -88307,24 +88336,32 @@ def _v1_lldp_interface_id_summary_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if interface_id is not None: - _path_params['interfaceId'] = interface_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_groups_id_patch_request is not None: + _body_params = v1_groups_id_patch_request - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -88332,8 +88369,8 @@ def _v1_lldp_interface_id_summary_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/lldp/{interfaceId}/summary', + method='PATCH', + resource_path='/v1/groups/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -88350,10 +88387,10 @@ def _v1_lldp_interface_id_summary_get_serialize( @validate_call - def v1_lldp_interface_id_vendors_get( + def v1_groups_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + v1_groups_put_request: V1GroupsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88366,15 +88403,15 @@ def v1_lldp_interface_id_vendors_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1LldpInterfaceIdVendorsGetResponse: - """v1_lldp_interface_id_vendors_get + ) -> None: + """v1_groups_put - Get the list LLDP vendors for an interface + Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :param v1_groups_put_request: (required) + :type v1_groups_put_request: V1GroupsPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88397,9 +88434,9 @@ def v1_lldp_interface_id_vendors_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lldp_interface_id_vendors_get_serialize( + _param = self._v1_groups_put_serialize( authorization=authorization, - interface_id=interface_id, + v1_groups_put_request=v1_groups_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88407,7 +88444,7 @@ def v1_lldp_interface_id_vendors_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdVendorsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -88421,10 +88458,10 @@ def v1_lldp_interface_id_vendors_get( @validate_call - def v1_lldp_interface_id_vendors_get_with_http_info( + def v1_groups_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + v1_groups_put_request: V1GroupsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88437,15 +88474,15 @@ def v1_lldp_interface_id_vendors_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1LldpInterfaceIdVendorsGetResponse]: - """v1_lldp_interface_id_vendors_get + ) -> ApiResponse[None]: + """v1_groups_put - Get the list LLDP vendors for an interface + Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :param v1_groups_put_request: (required) + :type v1_groups_put_request: V1GroupsPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88468,9 +88505,9 @@ def v1_lldp_interface_id_vendors_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lldp_interface_id_vendors_get_serialize( + _param = self._v1_groups_put_serialize( authorization=authorization, - interface_id=interface_id, + v1_groups_put_request=v1_groups_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88478,7 +88515,7 @@ def v1_lldp_interface_id_vendors_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdVendorsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -88492,10 +88529,10 @@ def v1_lldp_interface_id_vendors_get_with_http_info( @validate_call - def v1_lldp_interface_id_vendors_get_without_preload_content( + def v1_groups_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + v1_groups_put_request: V1GroupsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88509,14 +88546,14 @@ def v1_lldp_interface_id_vendors_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_lldp_interface_id_vendors_get + """v1_groups_put - Get the list LLDP vendors for an interface + Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :param v1_groups_put_request: (required) + :type v1_groups_put_request: V1GroupsPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88539,9 +88576,9 @@ def v1_lldp_interface_id_vendors_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lldp_interface_id_vendors_get_serialize( + _param = self._v1_groups_put_serialize( authorization=authorization, - interface_id=interface_id, + v1_groups_put_request=v1_groups_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88549,7 +88586,7 @@ def v1_lldp_interface_id_vendors_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdVendorsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -88558,10 +88595,10 @@ def v1_lldp_interface_id_vendors_get_without_preload_content( return response_data.response - def _v1_lldp_interface_id_vendors_get_serialize( + def _v1_groups_put_serialize( self, authorization, - interface_id, + v1_groups_put_request, _request_auth, _content_type, _headers, @@ -88583,24 +88620,30 @@ def _v1_lldp_interface_id_vendors_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if interface_id is not None: - _path_params['interfaceId'] = interface_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_groups_put_request is not None: + _body_params = v1_groups_put_request - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -88608,8 +88651,8 @@ def _v1_lldp_interface_id_vendors_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/lldp/{interfaceId}/vendors', + method='PUT', + resource_path='/v1/groups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -88626,10 +88669,9 @@ def _v1_lldp_interface_id_vendors_get_serialize( @validate_call - def v1_logs_post( + def v1_groups_root_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_logs_post_request: V1LogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88642,14 +88684,13 @@ def v1_logs_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1LogsPostResponse: - """v1_logs_post + ) -> V1GroupsRootGetResponse: + """v1_groups_root_get + Get all root-level groups. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_logs_post_request: (required) - :type v1_logs_post_request: V1LogsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88672,9 +88713,8 @@ def v1_logs_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_logs_post_serialize( + _param = self._v1_groups_root_get_serialize( authorization=authorization, - v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88682,7 +88722,7 @@ def v1_logs_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LogsPostResponse", + '200': "V1GroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -88696,10 +88736,9 @@ def v1_logs_post( @validate_call - def v1_logs_post_with_http_info( + def v1_groups_root_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_logs_post_request: V1LogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88712,14 +88751,13 @@ def v1_logs_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1LogsPostResponse]: - """v1_logs_post + ) -> ApiResponse[V1GroupsRootGetResponse]: + """v1_groups_root_get + Get all root-level groups. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_logs_post_request: (required) - :type v1_logs_post_request: V1LogsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88742,9 +88780,8 @@ def v1_logs_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_logs_post_serialize( + _param = self._v1_groups_root_get_serialize( authorization=authorization, - v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88752,7 +88789,7 @@ def v1_logs_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LogsPostResponse", + '200': "V1GroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -88766,10 +88803,9 @@ def v1_logs_post_with_http_info( @validate_call - def v1_logs_post_without_preload_content( + def v1_groups_root_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_logs_post_request: V1LogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88783,13 +88819,12 @@ def v1_logs_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_logs_post + """v1_groups_root_get + Get all root-level groups. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_logs_post_request: (required) - :type v1_logs_post_request: V1LogsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88812,9 +88847,8 @@ def v1_logs_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_logs_post_serialize( + _param = self._v1_groups_root_get_serialize( authorization=authorization, - v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88822,7 +88856,7 @@ def v1_logs_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LogsPostResponse", + '200': "V1GroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -88831,10 +88865,9 @@ def v1_logs_post_without_preload_content( return response_data.response - def _v1_logs_post_serialize( + def _v1_groups_root_get_serialize( self, authorization, - v1_logs_post_request, _request_auth, _content_type, _headers, @@ -88862,8 +88895,6 @@ def _v1_logs_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_logs_post_request is not None: - _body_params = v1_logs_post_request # set the HTTP header `Accept` @@ -88874,19 +88905,6 @@ def _v1_logs_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -88894,8 +88912,8 @@ def _v1_logs_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/logs', + method='GET', + resource_path='/v1/groups/root', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -88912,10 +88930,10 @@ def _v1_logs_post_serialize( @validate_call - def v1_nat_entries_device_id_get( + def v1_invitation_email_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + v1_invitation_email_post_request: V1InvitationEmailPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88928,15 +88946,15 @@ def v1_nat_entries_device_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1NatEntriesDeviceIdGetResponse: - """v1_nat_entries_device_id_get + ) -> object: + """v1_invitation_email_post - Get the NAT entries for the device + Send invitation emails for B2B data exchange service connections. For non-Graphiant enterprises, sends invite to all admin users in the proxy tenant desiganted by your msp. For Graphiant, sends to specified admin email. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param v1_invitation_email_post_request: (required) + :type v1_invitation_email_post_request: V1InvitationEmailPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -88959,9 +88977,9 @@ def v1_nat_entries_device_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_nat_entries_device_id_get_serialize( + _param = self._v1_invitation_email_post_serialize( authorization=authorization, - device_id=device_id, + v1_invitation_email_post_request=v1_invitation_email_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88969,7 +88987,7 @@ def v1_nat_entries_device_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1NatEntriesDeviceIdGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -88983,10 +89001,10 @@ def v1_nat_entries_device_id_get( @validate_call - def v1_nat_entries_device_id_get_with_http_info( + def v1_invitation_email_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + v1_invitation_email_post_request: V1InvitationEmailPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88999,15 +89017,15 @@ def v1_nat_entries_device_id_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1NatEntriesDeviceIdGetResponse]: - """v1_nat_entries_device_id_get + ) -> ApiResponse[object]: + """v1_invitation_email_post - Get the NAT entries for the device + Send invitation emails for B2B data exchange service connections. For non-Graphiant enterprises, sends invite to all admin users in the proxy tenant desiganted by your msp. For Graphiant, sends to specified admin email. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param v1_invitation_email_post_request: (required) + :type v1_invitation_email_post_request: V1InvitationEmailPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -89030,9 +89048,9 @@ def v1_nat_entries_device_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_nat_entries_device_id_get_serialize( + _param = self._v1_invitation_email_post_serialize( authorization=authorization, - device_id=device_id, + v1_invitation_email_post_request=v1_invitation_email_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89040,7 +89058,7 @@ def v1_nat_entries_device_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1NatEntriesDeviceIdGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -89054,10 +89072,10 @@ def v1_nat_entries_device_id_get_with_http_info( @validate_call - def v1_nat_entries_device_id_get_without_preload_content( + def v1_invitation_email_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + v1_invitation_email_post_request: V1InvitationEmailPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89071,14 +89089,14 @@ def v1_nat_entries_device_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_nat_entries_device_id_get + """v1_invitation_email_post - Get the NAT entries for the device + Send invitation emails for B2B data exchange service connections. For non-Graphiant enterprises, sends invite to all admin users in the proxy tenant desiganted by your msp. For Graphiant, sends to specified admin email. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param v1_invitation_email_post_request: (required) + :type v1_invitation_email_post_request: V1InvitationEmailPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -89101,9 +89119,9 @@ def v1_nat_entries_device_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_nat_entries_device_id_get_serialize( + _param = self._v1_invitation_email_post_serialize( authorization=authorization, - device_id=device_id, + v1_invitation_email_post_request=v1_invitation_email_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89111,7 +89129,7 @@ def v1_nat_entries_device_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1NatEntriesDeviceIdGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -89120,10 +89138,10 @@ def v1_nat_entries_device_id_get_without_preload_content( return response_data.response - def _v1_nat_entries_device_id_get_serialize( + def _v1_invitation_email_post_serialize( self, authorization, - device_id, + v1_invitation_email_post_request, _request_auth, _content_type, _headers, @@ -89145,14 +89163,14 @@ def _v1_nat_entries_device_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_invitation_email_post_request is not None: + _body_params = v1_invitation_email_post_request # set the HTTP header `Accept` @@ -89163,6 +89181,19 @@ def _v1_nat_entries_device_id_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -89170,8 +89201,8 @@ def _v1_nat_entries_device_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/nat/entries/{deviceId}', + method='POST', + resource_path='/v1/invitation/email', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -89188,10 +89219,9 @@ def _v1_nat_entries_device_id_get_serialize( @validate_call - def v1_nat_utilization_device_id_get( + def v1_lan_segments_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89204,15 +89234,13 @@ def v1_nat_utilization_device_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1NatUtilizationDeviceIdGetResponse: - """v1_nat_utilization_device_id_get + ) -> V1LanSegmentsGetResponse: + """v1_lan_segments_get - Get the NAT usage for the device + Get LAN Segments for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -89235,9 +89263,8 @@ def v1_nat_utilization_device_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_nat_utilization_device_id_get_serialize( + _param = self._v1_lan_segments_get_serialize( authorization=authorization, - device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89245,7 +89272,7 @@ def v1_nat_utilization_device_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1NatUtilizationDeviceIdGetResponse", + '200': "V1LanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89259,10 +89286,9 @@ def v1_nat_utilization_device_id_get( @validate_call - def v1_nat_utilization_device_id_get_with_http_info( + def v1_lan_segments_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89275,15 +89301,13 @@ def v1_nat_utilization_device_id_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1NatUtilizationDeviceIdGetResponse]: - """v1_nat_utilization_device_id_get + ) -> ApiResponse[V1LanSegmentsGetResponse]: + """v1_lan_segments_get - Get the NAT usage for the device + Get LAN Segments for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -89306,9 +89330,8 @@ def v1_nat_utilization_device_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_nat_utilization_device_id_get_serialize( + _param = self._v1_lan_segments_get_serialize( authorization=authorization, - device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89316,7 +89339,7 @@ def v1_nat_utilization_device_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1NatUtilizationDeviceIdGetResponse", + '200': "V1LanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89330,10 +89353,9 @@ def v1_nat_utilization_device_id_get_with_http_info( @validate_call - def v1_nat_utilization_device_id_get_without_preload_content( + def v1_lan_segments_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89347,14 +89369,12 @@ def v1_nat_utilization_device_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_nat_utilization_device_id_get + """v1_lan_segments_get - Get the NAT usage for the device + Get LAN Segments for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -89377,9 +89397,8 @@ def v1_nat_utilization_device_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_nat_utilization_device_id_get_serialize( + _param = self._v1_lan_segments_get_serialize( authorization=authorization, - device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89387,7 +89406,7 @@ def v1_nat_utilization_device_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1NatUtilizationDeviceIdGetResponse", + '200': "V1LanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89396,10 +89415,9 @@ def v1_nat_utilization_device_id_get_without_preload_content( return response_data.response - def _v1_nat_utilization_device_id_get_serialize( + def _v1_lan_segments_get_serialize( self, authorization, - device_id, _request_auth, _content_type, _headers, @@ -89421,8 +89439,6 @@ def _v1_nat_utilization_device_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: @@ -89447,7 +89463,7 @@ def _v1_nat_utilization_device_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/nat/utilization/{deviceId}', + resource_path='/v1/lan-segments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -89464,9 +89480,10 @@ def _v1_nat_utilization_device_id_get_serialize( @validate_call - def v1_onboarding_cloudinit_delete( + def v1_lldp_interface_id_neighbors_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89479,13 +89496,15 @@ def v1_onboarding_cloudinit_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_onboarding_cloudinit_delete + ) -> V1LldpInterfaceIdNeighborsGetResponse: + """v1_lldp_interface_id_neighbors_get - Delete the onboarding token + Get the LLDP neighbors for an interface and optionally for a specific vendor :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param interface_id: (required) + :type interface_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -89508,8 +89527,9 @@ def v1_onboarding_cloudinit_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_delete_serialize( + _param = self._v1_lldp_interface_id_neighbors_get_serialize( authorization=authorization, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89517,7 +89537,7 @@ def v1_onboarding_cloudinit_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdNeighborsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89531,9 +89551,10 @@ def v1_onboarding_cloudinit_delete( @validate_call - def v1_onboarding_cloudinit_delete_with_http_info( + def v1_lldp_interface_id_neighbors_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89546,13 +89567,15 @@ def v1_onboarding_cloudinit_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_onboarding_cloudinit_delete + ) -> ApiResponse[V1LldpInterfaceIdNeighborsGetResponse]: + """v1_lldp_interface_id_neighbors_get - Delete the onboarding token + Get the LLDP neighbors for an interface and optionally for a specific vendor :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param interface_id: (required) + :type interface_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -89575,8 +89598,9 @@ def v1_onboarding_cloudinit_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_delete_serialize( + _param = self._v1_lldp_interface_id_neighbors_get_serialize( authorization=authorization, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89584,7 +89608,7 @@ def v1_onboarding_cloudinit_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdNeighborsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89598,9 +89622,10 @@ def v1_onboarding_cloudinit_delete_with_http_info( @validate_call - def v1_onboarding_cloudinit_delete_without_preload_content( + def v1_lldp_interface_id_neighbors_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89614,12 +89639,14 @@ def v1_onboarding_cloudinit_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_onboarding_cloudinit_delete + """v1_lldp_interface_id_neighbors_get - Delete the onboarding token + Get the LLDP neighbors for an interface and optionally for a specific vendor :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param interface_id: (required) + :type interface_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -89642,8 +89669,9 @@ def v1_onboarding_cloudinit_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_delete_serialize( + _param = self._v1_lldp_interface_id_neighbors_get_serialize( authorization=authorization, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89651,7 +89679,7 @@ def v1_onboarding_cloudinit_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdNeighborsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89660,9 +89688,10 @@ def v1_onboarding_cloudinit_delete_without_preload_content( return response_data.response - def _v1_onboarding_cloudinit_delete_serialize( + def _v1_lldp_interface_id_neighbors_get_serialize( self, authorization, + interface_id, _request_auth, _content_type, _headers, @@ -89684,6 +89713,8 @@ def _v1_onboarding_cloudinit_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters + if interface_id is not None: + _path_params['interfaceId'] = interface_id # process the query parameters # process the header parameters if authorization is not None: @@ -89692,6 +89723,13 @@ def _v1_onboarding_cloudinit_delete_serialize( # process the body parameter + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -89700,8 +89738,8 @@ def _v1_onboarding_cloudinit_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/onboarding/cloudinit', + method='GET', + resource_path='/v1/lldp/{interfaceId}/neighbors', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -89718,9 +89756,10 @@ def _v1_onboarding_cloudinit_delete_serialize( @validate_call - def v1_onboarding_cloudinit_get( + def v1_lldp_interface_id_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89733,13 +89772,15 @@ def v1_onboarding_cloudinit_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1OnboardingCloudinitGetResponse: - """v1_onboarding_cloudinit_get + ) -> V1LldpInterfaceIdSummaryGetResponse: + """v1_lldp_interface_id_summary_get - Get all the onboarding tokens + Get the summary of LLDP neighbors for an interface :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param interface_id: (required) + :type interface_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -89762,8 +89803,9 @@ def v1_onboarding_cloudinit_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_get_serialize( + _param = self._v1_lldp_interface_id_summary_get_serialize( authorization=authorization, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89771,7 +89813,7 @@ def v1_onboarding_cloudinit_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1OnboardingCloudinitGetResponse", + '200': "V1LldpInterfaceIdSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89785,9 +89827,10 @@ def v1_onboarding_cloudinit_get( @validate_call - def v1_onboarding_cloudinit_get_with_http_info( + def v1_lldp_interface_id_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89800,13 +89843,15 @@ def v1_onboarding_cloudinit_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1OnboardingCloudinitGetResponse]: - """v1_onboarding_cloudinit_get + ) -> ApiResponse[V1LldpInterfaceIdSummaryGetResponse]: + """v1_lldp_interface_id_summary_get - Get all the onboarding tokens + Get the summary of LLDP neighbors for an interface :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param interface_id: (required) + :type interface_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -89829,8 +89874,9 @@ def v1_onboarding_cloudinit_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_get_serialize( + _param = self._v1_lldp_interface_id_summary_get_serialize( authorization=authorization, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89838,7 +89884,7 @@ def v1_onboarding_cloudinit_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1OnboardingCloudinitGetResponse", + '200': "V1LldpInterfaceIdSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89852,9 +89898,10 @@ def v1_onboarding_cloudinit_get_with_http_info( @validate_call - def v1_onboarding_cloudinit_get_without_preload_content( + def v1_lldp_interface_id_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89868,12 +89915,14 @@ def v1_onboarding_cloudinit_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_onboarding_cloudinit_get + """v1_lldp_interface_id_summary_get - Get all the onboarding tokens + Get the summary of LLDP neighbors for an interface :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param interface_id: (required) + :type interface_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -89896,8 +89945,9 @@ def v1_onboarding_cloudinit_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_get_serialize( + _param = self._v1_lldp_interface_id_summary_get_serialize( authorization=authorization, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89905,7 +89955,7 @@ def v1_onboarding_cloudinit_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1OnboardingCloudinitGetResponse", + '200': "V1LldpInterfaceIdSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89914,9 +89964,10 @@ def v1_onboarding_cloudinit_get_without_preload_content( return response_data.response - def _v1_onboarding_cloudinit_get_serialize( + def _v1_lldp_interface_id_summary_get_serialize( self, authorization, + interface_id, _request_auth, _content_type, _headers, @@ -89938,6 +89989,8 @@ def _v1_onboarding_cloudinit_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if interface_id is not None: + _path_params['interfaceId'] = interface_id # process the query parameters # process the header parameters if authorization is not None: @@ -89962,7 +90015,7 @@ def _v1_onboarding_cloudinit_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/onboarding/cloudinit', + resource_path='/v1/lldp/{interfaceId}/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -89979,10 +90032,10 @@ def _v1_onboarding_cloudinit_get_serialize( @validate_call - def v1_onboarding_cloudinit_post( + def v1_lldp_interface_id_vendors_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89995,15 +90048,15 @@ def v1_onboarding_cloudinit_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_onboarding_cloudinit_post + ) -> V1LldpInterfaceIdVendorsGetResponse: + """v1_lldp_interface_id_vendors_get - Create a onboarding token + Get the list LLDP vendors for an interface :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_onboarding_cloudinit_post_request: (required) - :type v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest + :param interface_id: (required) + :type interface_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90026,9 +90079,9 @@ def v1_onboarding_cloudinit_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_post_serialize( + _param = self._v1_lldp_interface_id_vendors_get_serialize( authorization=authorization, - v1_onboarding_cloudinit_post_request=v1_onboarding_cloudinit_post_request, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90036,7 +90089,7 @@ def v1_onboarding_cloudinit_post( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1LldpInterfaceIdVendorsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90050,10 +90103,10 @@ def v1_onboarding_cloudinit_post( @validate_call - def v1_onboarding_cloudinit_post_with_http_info( + def v1_lldp_interface_id_vendors_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90066,15 +90119,15 @@ def v1_onboarding_cloudinit_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """v1_onboarding_cloudinit_post + ) -> ApiResponse[V1LldpInterfaceIdVendorsGetResponse]: + """v1_lldp_interface_id_vendors_get - Create a onboarding token + Get the list LLDP vendors for an interface :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_onboarding_cloudinit_post_request: (required) - :type v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest + :param interface_id: (required) + :type interface_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90097,9 +90150,9 @@ def v1_onboarding_cloudinit_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_post_serialize( + _param = self._v1_lldp_interface_id_vendors_get_serialize( authorization=authorization, - v1_onboarding_cloudinit_post_request=v1_onboarding_cloudinit_post_request, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90107,7 +90160,7 @@ def v1_onboarding_cloudinit_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1LldpInterfaceIdVendorsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90121,10 +90174,10 @@ def v1_onboarding_cloudinit_post_with_http_info( @validate_call - def v1_onboarding_cloudinit_post_without_preload_content( + def v1_lldp_interface_id_vendors_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90138,14 +90191,14 @@ def v1_onboarding_cloudinit_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_onboarding_cloudinit_post + """v1_lldp_interface_id_vendors_get - Create a onboarding token + Get the list LLDP vendors for an interface :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_onboarding_cloudinit_post_request: (required) - :type v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest + :param interface_id: (required) + :type interface_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90168,9 +90221,9 @@ def v1_onboarding_cloudinit_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_post_serialize( + _param = self._v1_lldp_interface_id_vendors_get_serialize( authorization=authorization, - v1_onboarding_cloudinit_post_request=v1_onboarding_cloudinit_post_request, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90178,7 +90231,7 @@ def v1_onboarding_cloudinit_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1LldpInterfaceIdVendorsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90187,10 +90240,10 @@ def v1_onboarding_cloudinit_post_without_preload_content( return response_data.response - def _v1_onboarding_cloudinit_post_serialize( + def _v1_lldp_interface_id_vendors_get_serialize( self, authorization, - v1_onboarding_cloudinit_post_request, + interface_id, _request_auth, _content_type, _headers, @@ -90212,14 +90265,14 @@ def _v1_onboarding_cloudinit_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if interface_id is not None: + _path_params['interfaceId'] = interface_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_onboarding_cloudinit_post_request is not None: - _body_params = v1_onboarding_cloudinit_post_request # set the HTTP header `Accept` @@ -90230,19 +90283,6 @@ def _v1_onboarding_cloudinit_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -90250,8 +90290,8 @@ def _v1_onboarding_cloudinit_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/onboarding/cloudinit', + method='GET', + resource_path='/v1/lldp/{interfaceId}/vendors', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -90268,9 +90308,10 @@ def _v1_onboarding_cloudinit_post_serialize( @validate_call - def v1_policy_applications_get( + def v1_logs_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_logs_post_request: V1LogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90283,13 +90324,14 @@ def v1_policy_applications_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1PolicyApplicationsGetResponse: - """v1_policy_applications_get + ) -> V1LogsPostResponse: + """v1_logs_post - Get a list of builtin DPI applications :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_logs_post_request: (required) + :type v1_logs_post_request: V1LogsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90312,8 +90354,9 @@ def v1_policy_applications_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_applications_get_serialize( + _param = self._v1_logs_post_serialize( authorization=authorization, + v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90321,7 +90364,7 @@ def v1_policy_applications_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyApplicationsGetResponse", + '200': "V1LogsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -90335,9 +90378,10 @@ def v1_policy_applications_get( @validate_call - def v1_policy_applications_get_with_http_info( + def v1_logs_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_logs_post_request: V1LogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90350,13 +90394,14 @@ def v1_policy_applications_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1PolicyApplicationsGetResponse]: - """v1_policy_applications_get + ) -> ApiResponse[V1LogsPostResponse]: + """v1_logs_post - Get a list of builtin DPI applications :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_logs_post_request: (required) + :type v1_logs_post_request: V1LogsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90379,8 +90424,9 @@ def v1_policy_applications_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_applications_get_serialize( + _param = self._v1_logs_post_serialize( authorization=authorization, + v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90388,7 +90434,7 @@ def v1_policy_applications_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyApplicationsGetResponse", + '200': "V1LogsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -90402,9 +90448,10 @@ def v1_policy_applications_get_with_http_info( @validate_call - def v1_policy_applications_get_without_preload_content( + def v1_logs_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_logs_post_request: V1LogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90418,12 +90465,13 @@ def v1_policy_applications_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_policy_applications_get + """v1_logs_post - Get a list of builtin DPI applications :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_logs_post_request: (required) + :type v1_logs_post_request: V1LogsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90446,8 +90494,9 @@ def v1_policy_applications_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_applications_get_serialize( + _param = self._v1_logs_post_serialize( authorization=authorization, + v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90455,7 +90504,7 @@ def v1_policy_applications_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyApplicationsGetResponse", + '200': "V1LogsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -90464,9 +90513,10 @@ def v1_policy_applications_get_without_preload_content( return response_data.response - def _v1_policy_applications_get_serialize( + def _v1_logs_post_serialize( self, authorization, + v1_logs_post_request, _request_auth, _content_type, _headers, @@ -90494,6 +90544,8 @@ def _v1_policy_applications_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_logs_post_request is not None: + _body_params = v1_logs_post_request # set the HTTP header `Accept` @@ -90504,6 +90556,19 @@ def _v1_policy_applications_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -90511,8 +90576,8 @@ def _v1_policy_applications_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/policy/applications', + method='POST', + resource_path='/v1/logs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -90529,11 +90594,10 @@ def _v1_policy_applications_get_serialize( @validate_call - def v1_policy_route_tag_sets_id_delete( + def v1_nat_entries_device_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - level: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90546,17 +90610,15 @@ def v1_policy_route_tag_sets_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1PolicyRouteTagSetsIdDeleteResponse: - """v1_policy_route_tag_sets_id_delete + ) -> V1NatEntriesDeviceIdGetResponse: + """v1_nat_entries_device_id_get - Create a new route-tag scoped to the enterprise + Get the NAT entries for the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param level: - :type level: int + :param device_id: (required) + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90579,10 +90641,9 @@ def v1_policy_route_tag_sets_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_id_delete_serialize( + _param = self._v1_nat_entries_device_id_get_serialize( authorization=authorization, - id=id, - level=level, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90590,7 +90651,7 @@ def v1_policy_route_tag_sets_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsIdDeleteResponse", + '200': "V1NatEntriesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90604,11 +90665,10 @@ def v1_policy_route_tag_sets_id_delete( @validate_call - def v1_policy_route_tag_sets_id_delete_with_http_info( + def v1_nat_entries_device_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - level: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90621,17 +90681,15 @@ def v1_policy_route_tag_sets_id_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1PolicyRouteTagSetsIdDeleteResponse]: - """v1_policy_route_tag_sets_id_delete + ) -> ApiResponse[V1NatEntriesDeviceIdGetResponse]: + """v1_nat_entries_device_id_get - Create a new route-tag scoped to the enterprise + Get the NAT entries for the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param level: - :type level: int + :param device_id: (required) + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90654,10 +90712,9 @@ def v1_policy_route_tag_sets_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_id_delete_serialize( + _param = self._v1_nat_entries_device_id_get_serialize( authorization=authorization, - id=id, - level=level, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90665,7 +90722,7 @@ def v1_policy_route_tag_sets_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsIdDeleteResponse", + '200': "V1NatEntriesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90679,11 +90736,10 @@ def v1_policy_route_tag_sets_id_delete_with_http_info( @validate_call - def v1_policy_route_tag_sets_id_delete_without_preload_content( + def v1_nat_entries_device_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - level: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90697,16 +90753,14 @@ def v1_policy_route_tag_sets_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_policy_route_tag_sets_id_delete + """v1_nat_entries_device_id_get - Create a new route-tag scoped to the enterprise + Get the NAT entries for the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param level: - :type level: int + :param device_id: (required) + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90729,10 +90783,9 @@ def v1_policy_route_tag_sets_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_id_delete_serialize( + _param = self._v1_nat_entries_device_id_get_serialize( authorization=authorization, - id=id, - level=level, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90740,7 +90793,7 @@ def v1_policy_route_tag_sets_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsIdDeleteResponse", + '200': "V1NatEntriesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90749,11 +90802,10 @@ def v1_policy_route_tag_sets_id_delete_without_preload_content( return response_data.response - def _v1_policy_route_tag_sets_id_delete_serialize( + def _v1_nat_entries_device_id_get_serialize( self, authorization, - id, - level, + device_id, _request_auth, _content_type, _headers, @@ -90775,13 +90827,9 @@ def _v1_policy_route_tag_sets_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if device_id is not None: + _path_params['deviceId'] = device_id # process the query parameters - if level is not None: - - _query_params.append(('level', level)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -90804,8 +90852,8 @@ def _v1_policy_route_tag_sets_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/policy/route-tag-sets/{id}', + method='GET', + resource_path='/v1/nat/entries/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -90822,10 +90870,10 @@ def _v1_policy_route_tag_sets_id_delete_serialize( @validate_call - def v1_policy_route_tag_sets_post( + def v1_nat_utilization_device_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90838,15 +90886,15 @@ def v1_policy_route_tag_sets_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1PolicyRouteTagSetsPostResponse: - """v1_policy_route_tag_sets_post + ) -> V1NatUtilizationDeviceIdGetResponse: + """v1_nat_utilization_device_id_get - Create a new route tag scoped to the enterprise + Get the NAT usage for the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_policy_route_tag_sets_post_request: (required) - :type v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest + :param device_id: (required) + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90869,9 +90917,9 @@ def v1_policy_route_tag_sets_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_post_serialize( + _param = self._v1_nat_utilization_device_id_get_serialize( authorization=authorization, - v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90879,7 +90927,7 @@ def v1_policy_route_tag_sets_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsPostResponse", + '200': "V1NatUtilizationDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90893,10 +90941,10 @@ def v1_policy_route_tag_sets_post( @validate_call - def v1_policy_route_tag_sets_post_with_http_info( + def v1_nat_utilization_device_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90909,15 +90957,15 @@ def v1_policy_route_tag_sets_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1PolicyRouteTagSetsPostResponse]: - """v1_policy_route_tag_sets_post + ) -> ApiResponse[V1NatUtilizationDeviceIdGetResponse]: + """v1_nat_utilization_device_id_get - Create a new route tag scoped to the enterprise + Get the NAT usage for the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_policy_route_tag_sets_post_request: (required) - :type v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest + :param device_id: (required) + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90940,9 +90988,9 @@ def v1_policy_route_tag_sets_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_post_serialize( + _param = self._v1_nat_utilization_device_id_get_serialize( authorization=authorization, - v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90950,7 +90998,7 @@ def v1_policy_route_tag_sets_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsPostResponse", + '200': "V1NatUtilizationDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90964,10 +91012,10 @@ def v1_policy_route_tag_sets_post_with_http_info( @validate_call - def v1_policy_route_tag_sets_post_without_preload_content( + def v1_nat_utilization_device_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90981,14 +91029,14 @@ def v1_policy_route_tag_sets_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_policy_route_tag_sets_post + """v1_nat_utilization_device_id_get - Create a new route tag scoped to the enterprise + Get the NAT usage for the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_policy_route_tag_sets_post_request: (required) - :type v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest + :param device_id: (required) + :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -91011,9 +91059,9 @@ def v1_policy_route_tag_sets_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_post_serialize( + _param = self._v1_nat_utilization_device_id_get_serialize( authorization=authorization, - v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91021,7 +91069,7 @@ def v1_policy_route_tag_sets_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsPostResponse", + '200': "V1NatUtilizationDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -91030,10 +91078,10 @@ def v1_policy_route_tag_sets_post_without_preload_content( return response_data.response - def _v1_policy_route_tag_sets_post_serialize( + def _v1_nat_utilization_device_id_get_serialize( self, authorization, - v1_policy_route_tag_sets_post_request, + device_id, _request_auth, _content_type, _headers, @@ -91055,14 +91103,14 @@ def _v1_policy_route_tag_sets_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if device_id is not None: + _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_policy_route_tag_sets_post_request is not None: - _body_params = v1_policy_route_tag_sets_post_request # set the HTTP header `Accept` @@ -91073,19 +91121,6 @@ def _v1_policy_route_tag_sets_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -91093,8 +91128,8 @@ def _v1_policy_route_tag_sets_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/policy/route-tag-sets', + method='GET', + resource_path='/v1/nat/utilization/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -91111,7 +91146,7 @@ def _v1_policy_route_tag_sets_post_serialize( @validate_call - def v1_policy_route_tag_sets_tag_detail_get( + def v1_onboarding_cloudinit_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -91126,10 +91161,10 @@ def v1_policy_route_tag_sets_tag_detail_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1PolicyRouteTagSetsTagDetailGetResponse: - """v1_policy_route_tag_sets_tag_detail_get + ) -> None: + """v1_onboarding_cloudinit_delete - Get all the route tags summary for the the enterprise + Delete the onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -91155,7 +91190,7 @@ def v1_policy_route_tag_sets_tag_detail_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tag_detail_get_serialize( + _param = self._v1_onboarding_cloudinit_delete_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -91164,7 +91199,7 @@ def v1_policy_route_tag_sets_tag_detail_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagDetailGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -91178,7 +91213,7 @@ def v1_policy_route_tag_sets_tag_detail_get( @validate_call - def v1_policy_route_tag_sets_tag_detail_get_with_http_info( + def v1_onboarding_cloudinit_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -91193,10 +91228,10 @@ def v1_policy_route_tag_sets_tag_detail_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1PolicyRouteTagSetsTagDetailGetResponse]: - """v1_policy_route_tag_sets_tag_detail_get + ) -> ApiResponse[None]: + """v1_onboarding_cloudinit_delete - Get all the route tags summary for the the enterprise + Delete the onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -91222,7 +91257,7 @@ def v1_policy_route_tag_sets_tag_detail_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tag_detail_get_serialize( + _param = self._v1_onboarding_cloudinit_delete_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -91231,7 +91266,7 @@ def v1_policy_route_tag_sets_tag_detail_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagDetailGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -91245,7 +91280,7 @@ def v1_policy_route_tag_sets_tag_detail_get_with_http_info( @validate_call - def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( + def v1_onboarding_cloudinit_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -91261,9 +91296,9 @@ def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_policy_route_tag_sets_tag_detail_get + """v1_onboarding_cloudinit_delete - Get all the route tags summary for the the enterprise + Delete the onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -91289,7 +91324,7 @@ def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tag_detail_get_serialize( + _param = self._v1_onboarding_cloudinit_delete_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -91298,7 +91333,7 @@ def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagDetailGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -91307,7 +91342,7 @@ def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( return response_data.response - def _v1_policy_route_tag_sets_tag_detail_get_serialize( + def _v1_onboarding_cloudinit_delete_serialize( self, authorization, _request_auth, @@ -91339,13 +91374,6 @@ def _v1_policy_route_tag_sets_tag_detail_get_serialize( # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) # authentication setting @@ -91354,8 +91382,8 @@ def _v1_policy_route_tag_sets_tag_detail_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/policy/route-tag-sets/tag-detail', + method='DELETE', + resource_path='/v1/onboarding/cloudinit', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -91372,7 +91400,7 @@ def _v1_policy_route_tag_sets_tag_detail_get_serialize( @validate_call - def v1_policy_route_tag_sets_tags_get( + def v1_onboarding_cloudinit_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -91387,10 +91415,10 @@ def v1_policy_route_tag_sets_tags_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1PolicyRouteTagSetsTagsGetResponse: - """v1_policy_route_tag_sets_tags_get + ) -> V1OnboardingCloudinitGetResponse: + """v1_onboarding_cloudinit_get - Get all the route tags for the enterprise + Get all the onboarding tokens :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -91416,7 +91444,7 @@ def v1_policy_route_tag_sets_tags_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tags_get_serialize( + _param = self._v1_onboarding_cloudinit_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -91425,7 +91453,7 @@ def v1_policy_route_tag_sets_tags_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsGetResponse", + '200': "V1OnboardingCloudinitGetResponse", } response_data = self.api_client.call_api( *_param, @@ -91439,7 +91467,7 @@ def v1_policy_route_tag_sets_tags_get( @validate_call - def v1_policy_route_tag_sets_tags_get_with_http_info( + def v1_onboarding_cloudinit_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -91454,10 +91482,10 @@ def v1_policy_route_tag_sets_tags_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1PolicyRouteTagSetsTagsGetResponse]: - """v1_policy_route_tag_sets_tags_get + ) -> ApiResponse[V1OnboardingCloudinitGetResponse]: + """v1_onboarding_cloudinit_get - Get all the route tags for the enterprise + Get all the onboarding tokens :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -91483,7 +91511,7 @@ def v1_policy_route_tag_sets_tags_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tags_get_serialize( + _param = self._v1_onboarding_cloudinit_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -91492,7 +91520,7 @@ def v1_policy_route_tag_sets_tags_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsGetResponse", + '200': "V1OnboardingCloudinitGetResponse", } response_data = self.api_client.call_api( *_param, @@ -91506,7 +91534,7 @@ def v1_policy_route_tag_sets_tags_get_with_http_info( @validate_call - def v1_policy_route_tag_sets_tags_get_without_preload_content( + def v1_onboarding_cloudinit_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -91522,9 +91550,9 @@ def v1_policy_route_tag_sets_tags_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_policy_route_tag_sets_tags_get + """v1_onboarding_cloudinit_get - Get all the route tags for the enterprise + Get all the onboarding tokens :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -91550,7 +91578,7 @@ def v1_policy_route_tag_sets_tags_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tags_get_serialize( + _param = self._v1_onboarding_cloudinit_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -91559,7 +91587,7 @@ def v1_policy_route_tag_sets_tags_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsGetResponse", + '200': "V1OnboardingCloudinitGetResponse", } response_data = self.api_client.call_api( *_param, @@ -91568,7 +91596,7 @@ def v1_policy_route_tag_sets_tags_get_without_preload_content( return response_data.response - def _v1_policy_route_tag_sets_tags_get_serialize( + def _v1_onboarding_cloudinit_get_serialize( self, authorization, _request_auth, @@ -91616,7 +91644,7 @@ def _v1_policy_route_tag_sets_tags_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/policy/route-tag-sets/tags', + resource_path='/v1/onboarding/cloudinit', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -91633,9 +91661,10 @@ def _v1_policy_route_tag_sets_tags_get_serialize( @validate_call - def v1_policy_route_tag_sets_tags_summary_get( + def v1_onboarding_cloudinit_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -91648,13 +91677,15 @@ def v1_policy_route_tag_sets_tags_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1PolicyRouteTagSetsTagsSummaryGetResponse: - """v1_policy_route_tag_sets_tags_summary_get + ) -> object: + """v1_onboarding_cloudinit_post - Get all the route tags summary for the the enterprise + Create a onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_onboarding_cloudinit_post_request: (required) + :type v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -91677,8 +91708,9 @@ def v1_policy_route_tag_sets_tags_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( + _param = self._v1_onboarding_cloudinit_post_serialize( authorization=authorization, + v1_onboarding_cloudinit_post_request=v1_onboarding_cloudinit_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91686,7 +91718,7 @@ def v1_policy_route_tag_sets_tags_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -91700,9 +91732,10 @@ def v1_policy_route_tag_sets_tags_summary_get( @validate_call - def v1_policy_route_tag_sets_tags_summary_get_with_http_info( + def v1_onboarding_cloudinit_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -91715,13 +91748,15 @@ def v1_policy_route_tag_sets_tags_summary_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1PolicyRouteTagSetsTagsSummaryGetResponse]: - """v1_policy_route_tag_sets_tags_summary_get + ) -> ApiResponse[object]: + """v1_onboarding_cloudinit_post - Get all the route tags summary for the the enterprise + Create a onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_onboarding_cloudinit_post_request: (required) + :type v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -91744,8 +91779,9 @@ def v1_policy_route_tag_sets_tags_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( + _param = self._v1_onboarding_cloudinit_post_serialize( authorization=authorization, + v1_onboarding_cloudinit_post_request=v1_onboarding_cloudinit_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91753,7 +91789,7 @@ def v1_policy_route_tag_sets_tags_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -91767,9 +91803,10 @@ def v1_policy_route_tag_sets_tags_summary_get_with_http_info( @validate_call - def v1_policy_route_tag_sets_tags_summary_get_without_preload_content( + def v1_onboarding_cloudinit_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -91783,12 +91820,14 @@ def v1_policy_route_tag_sets_tags_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_policy_route_tag_sets_tags_summary_get + """v1_onboarding_cloudinit_post - Get all the route tags summary for the the enterprise + Create a onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_onboarding_cloudinit_post_request: (required) + :type v1_onboarding_cloudinit_post_request: V1OnboardingCloudinitPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -91811,8 +91850,9 @@ def v1_policy_route_tag_sets_tags_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( + _param = self._v1_onboarding_cloudinit_post_serialize( authorization=authorization, + v1_onboarding_cloudinit_post_request=v1_onboarding_cloudinit_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91820,7 +91860,7 @@ def v1_policy_route_tag_sets_tags_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -91829,9 +91869,10 @@ def v1_policy_route_tag_sets_tags_summary_get_without_preload_content( return response_data.response - def _v1_policy_route_tag_sets_tags_summary_get_serialize( + def _v1_onboarding_cloudinit_post_serialize( self, authorization, + v1_onboarding_cloudinit_post_request, _request_auth, _content_type, _headers, @@ -91859,6 +91900,8 @@ def _v1_policy_route_tag_sets_tags_summary_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_onboarding_cloudinit_post_request is not None: + _body_params = v1_onboarding_cloudinit_post_request # set the HTTP header `Accept` @@ -91869,6 +91912,19 @@ def _v1_policy_route_tag_sets_tags_summary_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -91876,8 +91932,8 @@ def _v1_policy_route_tag_sets_tags_summary_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/policy/route-tag-sets/tags-summary', + method='POST', + resource_path='/v1/onboarding/cloudinit', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -91894,7 +91950,7 @@ def _v1_policy_route_tag_sets_tags_summary_get_serialize( @validate_call - def v1_presharedkey_get( + def v1_policy_applications_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -91909,10 +91965,10 @@ def v1_presharedkey_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1PresharedkeyGetResponse: - """v1_presharedkey_get + ) -> V1PolicyApplicationsGetResponse: + """v1_policy_applications_get - Get all domain categories from the DPI engine + Get a list of builtin DPI applications :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -91938,7 +91994,7 @@ def v1_presharedkey_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_presharedkey_get_serialize( + _param = self._v1_policy_applications_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -91947,7 +92003,7 @@ def v1_presharedkey_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PresharedkeyGetResponse", + '200': "V1PolicyApplicationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -91961,7 +92017,7 @@ def v1_presharedkey_get( @validate_call - def v1_presharedkey_get_with_http_info( + def v1_policy_applications_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -91976,10 +92032,10 @@ def v1_presharedkey_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1PresharedkeyGetResponse]: - """v1_presharedkey_get + ) -> ApiResponse[V1PolicyApplicationsGetResponse]: + """v1_policy_applications_get - Get all domain categories from the DPI engine + Get a list of builtin DPI applications :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -92005,7 +92061,7 @@ def v1_presharedkey_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_presharedkey_get_serialize( + _param = self._v1_policy_applications_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -92014,7 +92070,7 @@ def v1_presharedkey_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PresharedkeyGetResponse", + '200': "V1PolicyApplicationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92028,7 +92084,7 @@ def v1_presharedkey_get_with_http_info( @validate_call - def v1_presharedkey_get_without_preload_content( + def v1_policy_applications_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -92044,9 +92100,9 @@ def v1_presharedkey_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_presharedkey_get + """v1_policy_applications_get - Get all domain categories from the DPI engine + Get a list of builtin DPI applications :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -92072,7 +92128,7 @@ def v1_presharedkey_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_presharedkey_get_serialize( + _param = self._v1_policy_applications_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -92081,7 +92137,7 @@ def v1_presharedkey_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PresharedkeyGetResponse", + '200': "V1PolicyApplicationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92090,7 +92146,7 @@ def v1_presharedkey_get_without_preload_content( return response_data.response - def _v1_presharedkey_get_serialize( + def _v1_policy_applications_get_serialize( self, authorization, _request_auth, @@ -92138,7 +92194,7 @@ def _v1_presharedkey_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/presharedkey', + resource_path='/v1/policy/applications', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -92155,9 +92211,11 @@ def _v1_presharedkey_get_serialize( @validate_call - def v1_qos_circuit_profiles_get( + def v1_policy_route_tag_sets_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, + level: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92170,13 +92228,17 @@ def v1_qos_circuit_profiles_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1QosCircuitProfilesGetResponse: - """v1_qos_circuit_profiles_get + ) -> V1PolicyRouteTagSetsIdDeleteResponse: + """v1_policy_route_tag_sets_id_delete - Returns a list of QoS profiles for circuits with associated queues & attributes + Create a new route-tag scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: (required) + :type id: int + :param level: + :type level: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -92199,8 +92261,10 @@ def v1_qos_circuit_profiles_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_qos_circuit_profiles_get_serialize( + _param = self._v1_policy_route_tag_sets_id_delete_serialize( authorization=authorization, + id=id, + level=level, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92208,7 +92272,7 @@ def v1_qos_circuit_profiles_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1QosCircuitProfilesGetResponse", + '200': "V1PolicyRouteTagSetsIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -92222,9 +92286,11 @@ def v1_qos_circuit_profiles_get( @validate_call - def v1_qos_circuit_profiles_get_with_http_info( + def v1_policy_route_tag_sets_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, + level: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92237,13 +92303,17 @@ def v1_qos_circuit_profiles_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1QosCircuitProfilesGetResponse]: - """v1_qos_circuit_profiles_get + ) -> ApiResponse[V1PolicyRouteTagSetsIdDeleteResponse]: + """v1_policy_route_tag_sets_id_delete - Returns a list of QoS profiles for circuits with associated queues & attributes + Create a new route-tag scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: (required) + :type id: int + :param level: + :type level: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -92266,8 +92336,10 @@ def v1_qos_circuit_profiles_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_qos_circuit_profiles_get_serialize( + _param = self._v1_policy_route_tag_sets_id_delete_serialize( authorization=authorization, + id=id, + level=level, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92275,7 +92347,7 @@ def v1_qos_circuit_profiles_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1QosCircuitProfilesGetResponse", + '200': "V1PolicyRouteTagSetsIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -92289,9 +92361,11 @@ def v1_qos_circuit_profiles_get_with_http_info( @validate_call - def v1_qos_circuit_profiles_get_without_preload_content( + def v1_policy_route_tag_sets_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, + level: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92305,12 +92379,16 @@ def v1_qos_circuit_profiles_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_qos_circuit_profiles_get + """v1_policy_route_tag_sets_id_delete - Returns a list of QoS profiles for circuits with associated queues & attributes + Create a new route-tag scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: (required) + :type id: int + :param level: + :type level: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -92333,8 +92411,10 @@ def v1_qos_circuit_profiles_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_qos_circuit_profiles_get_serialize( + _param = self._v1_policy_route_tag_sets_id_delete_serialize( authorization=authorization, + id=id, + level=level, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92342,7 +92422,7 @@ def v1_qos_circuit_profiles_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1QosCircuitProfilesGetResponse", + '200': "V1PolicyRouteTagSetsIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -92351,9 +92431,11 @@ def v1_qos_circuit_profiles_get_without_preload_content( return response_data.response - def _v1_qos_circuit_profiles_get_serialize( + def _v1_policy_route_tag_sets_id_delete_serialize( self, authorization, + id, + level, _request_auth, _content_type, _headers, @@ -92375,7 +92457,13 @@ def _v1_qos_circuit_profiles_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters + if level is not None: + + _query_params.append(('level', level)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -92398,8 +92486,8 @@ def _v1_qos_circuit_profiles_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/qos/circuit-profiles', + method='DELETE', + resource_path='/v1/policy/route-tag-sets/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -92416,9 +92504,10 @@ def _v1_qos_circuit_profiles_get_serialize( @validate_call - def v1_regions_get( + def v1_policy_route_tag_sets_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92431,13 +92520,15 @@ def v1_regions_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1RegionsGetResponse: - """v1_regions_get + ) -> V1PolicyRouteTagSetsPostResponse: + """v1_policy_route_tag_sets_post - Get regions used for the current enterprise + Create a new route tag scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_policy_route_tag_sets_post_request: (required) + :type v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -92460,8 +92551,9 @@ def v1_regions_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_regions_get_serialize( + _param = self._v1_policy_route_tag_sets_post_serialize( authorization=authorization, + v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92469,7 +92561,7 @@ def v1_regions_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1RegionsGetResponse", + '200': "V1PolicyRouteTagSetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -92483,9 +92575,10 @@ def v1_regions_get( @validate_call - def v1_regions_get_with_http_info( + def v1_policy_route_tag_sets_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92498,13 +92591,15 @@ def v1_regions_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1RegionsGetResponse]: - """v1_regions_get + ) -> ApiResponse[V1PolicyRouteTagSetsPostResponse]: + """v1_policy_route_tag_sets_post - Get regions used for the current enterprise + Create a new route tag scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_policy_route_tag_sets_post_request: (required) + :type v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -92527,8 +92622,9 @@ def v1_regions_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_regions_get_serialize( + _param = self._v1_policy_route_tag_sets_post_serialize( authorization=authorization, + v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92536,7 +92632,7 @@ def v1_regions_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1RegionsGetResponse", + '200': "V1PolicyRouteTagSetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -92550,9 +92646,10 @@ def v1_regions_get_with_http_info( @validate_call - def v1_regions_get_without_preload_content( + def v1_policy_route_tag_sets_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92566,12 +92663,14 @@ def v1_regions_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_regions_get + """v1_policy_route_tag_sets_post - Get regions used for the current enterprise + Create a new route tag scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_policy_route_tag_sets_post_request: (required) + :type v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -92594,8 +92693,9 @@ def v1_regions_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_regions_get_serialize( + _param = self._v1_policy_route_tag_sets_post_serialize( authorization=authorization, + v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92603,7 +92703,7 @@ def v1_regions_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1RegionsGetResponse", + '200': "V1PolicyRouteTagSetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -92612,9 +92712,10 @@ def v1_regions_get_without_preload_content( return response_data.response - def _v1_regions_get_serialize( + def _v1_policy_route_tag_sets_post_serialize( self, authorization, + v1_policy_route_tag_sets_post_request, _request_auth, _content_type, _headers, @@ -92642,6 +92743,8 @@ def _v1_regions_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_policy_route_tag_sets_post_request is not None: + _body_params = v1_policy_route_tag_sets_post_request # set the HTTP header `Accept` @@ -92652,6 +92755,19 @@ def _v1_regions_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -92659,8 +92775,8 @@ def _v1_regions_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/regions', + method='POST', + resource_path='/v1/policy/route-tag-sets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -92677,11 +92793,9 @@ def _v1_regions_get_serialize( @validate_call - def v1_search_get( + def v1_policy_route_tag_sets_tag_detail_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - max_results: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, - search: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92694,16 +92808,13 @@ def v1_search_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SearchGetResponse: - """v1_search_get + ) -> V1PolicyRouteTagSetsTagDetailGetResponse: + """v1_policy_route_tag_sets_tag_detail_get + Get all the route tags summary for the the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param max_results: - :type max_results: int - :param search: - :type search: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -92726,10 +92837,8 @@ def v1_search_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_search_get_serialize( + _param = self._v1_policy_route_tag_sets_tag_detail_get_serialize( authorization=authorization, - max_results=max_results, - search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92737,7 +92846,7 @@ def v1_search_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SearchGetResponse", + '200': "V1PolicyRouteTagSetsTagDetailGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92751,11 +92860,9 @@ def v1_search_get( @validate_call - def v1_search_get_with_http_info( + def v1_policy_route_tag_sets_tag_detail_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - max_results: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, - search: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92768,16 +92875,13 @@ def v1_search_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SearchGetResponse]: - """v1_search_get + ) -> ApiResponse[V1PolicyRouteTagSetsTagDetailGetResponse]: + """v1_policy_route_tag_sets_tag_detail_get + Get all the route tags summary for the the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param max_results: - :type max_results: int - :param search: - :type search: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -92800,10 +92904,8 @@ def v1_search_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_search_get_serialize( + _param = self._v1_policy_route_tag_sets_tag_detail_get_serialize( authorization=authorization, - max_results=max_results, - search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92811,7 +92913,7 @@ def v1_search_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SearchGetResponse", + '200': "V1PolicyRouteTagSetsTagDetailGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92825,11 +92927,9 @@ def v1_search_get_with_http_info( @validate_call - def v1_search_get_without_preload_content( + def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - max_results: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, - search: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92843,15 +92943,12 @@ def v1_search_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_search_get + """v1_policy_route_tag_sets_tag_detail_get + Get all the route tags summary for the the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param max_results: - :type max_results: int - :param search: - :type search: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -92874,10 +92971,8 @@ def v1_search_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_search_get_serialize( + _param = self._v1_policy_route_tag_sets_tag_detail_get_serialize( authorization=authorization, - max_results=max_results, - search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92885,7 +92980,7 @@ def v1_search_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SearchGetResponse", + '200': "V1PolicyRouteTagSetsTagDetailGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92894,11 +92989,9 @@ def v1_search_get_without_preload_content( return response_data.response - def _v1_search_get_serialize( + def _v1_policy_route_tag_sets_tag_detail_get_serialize( self, authorization, - max_results, - search, _request_auth, _content_type, _headers, @@ -92921,14 +93014,6 @@ def _v1_search_get_serialize( # process the path parameters # process the query parameters - if max_results is not None: - - _query_params.append(('maxResults', max_results)) - - if search is not None: - - _query_params.append(('search', search)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -92952,7 +93037,7 @@ def _v1_search_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/search', + resource_path='/v1/policy/route-tag-sets/tag-detail', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -92969,10 +93054,9 @@ def _v1_search_get_serialize( @validate_call - def v1_site_details_sitelists_post( + def v1_policy_route_tag_sets_tags_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92985,15 +93069,13 @@ def v1_site_details_sitelists_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SiteDetailsSitelistsPostResponse: - """v1_site_details_sitelists_post + ) -> V1PolicyRouteTagSetsTagsGetResponse: + """v1_policy_route_tag_sets_tags_get - Get a list of site list references for a site + Get all the route tags for the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_site_details_sitelists_post_request: (required) - :type v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93016,9 +93098,8 @@ def v1_site_details_sitelists_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_site_details_sitelists_post_serialize( + _param = self._v1_policy_route_tag_sets_tags_get_serialize( authorization=authorization, - v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93026,7 +93107,7 @@ def v1_site_details_sitelists_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteDetailsSitelistsPostResponse", + '200': "V1PolicyRouteTagSetsTagsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93040,10 +93121,9 @@ def v1_site_details_sitelists_post( @validate_call - def v1_site_details_sitelists_post_with_http_info( + def v1_policy_route_tag_sets_tags_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93056,15 +93136,13 @@ def v1_site_details_sitelists_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SiteDetailsSitelistsPostResponse]: - """v1_site_details_sitelists_post + ) -> ApiResponse[V1PolicyRouteTagSetsTagsGetResponse]: + """v1_policy_route_tag_sets_tags_get - Get a list of site list references for a site + Get all the route tags for the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_site_details_sitelists_post_request: (required) - :type v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93087,9 +93165,8 @@ def v1_site_details_sitelists_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_site_details_sitelists_post_serialize( + _param = self._v1_policy_route_tag_sets_tags_get_serialize( authorization=authorization, - v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93097,7 +93174,7 @@ def v1_site_details_sitelists_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteDetailsSitelistsPostResponse", + '200': "V1PolicyRouteTagSetsTagsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93111,10 +93188,9 @@ def v1_site_details_sitelists_post_with_http_info( @validate_call - def v1_site_details_sitelists_post_without_preload_content( + def v1_policy_route_tag_sets_tags_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93128,14 +93204,12 @@ def v1_site_details_sitelists_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_site_details_sitelists_post + """v1_policy_route_tag_sets_tags_get - Get a list of site list references for a site + Get all the route tags for the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_site_details_sitelists_post_request: (required) - :type v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93158,9 +93232,8 @@ def v1_site_details_sitelists_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_site_details_sitelists_post_serialize( + _param = self._v1_policy_route_tag_sets_tags_get_serialize( authorization=authorization, - v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93168,7 +93241,7 @@ def v1_site_details_sitelists_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteDetailsSitelistsPostResponse", + '200': "V1PolicyRouteTagSetsTagsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93177,10 +93250,9 @@ def v1_site_details_sitelists_post_without_preload_content( return response_data.response - def _v1_site_details_sitelists_post_serialize( + def _v1_policy_route_tag_sets_tags_get_serialize( self, authorization, - v1_site_details_sitelists_post_request, _request_auth, _content_type, _headers, @@ -93208,8 +93280,6 @@ def _v1_site_details_sitelists_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_site_details_sitelists_post_request is not None: - _body_params = v1_site_details_sitelists_post_request # set the HTTP header `Accept` @@ -93220,19 +93290,6 @@ def _v1_site_details_sitelists_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -93240,8 +93297,8 @@ def _v1_site_details_sitelists_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/site/details/sitelists', + method='GET', + resource_path='/v1/policy/route-tag-sets/tags', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -93258,10 +93315,9 @@ def _v1_site_details_sitelists_post_serialize( @validate_call - def v1_site_id_details_interfaces_get( + def v1_policy_route_tag_sets_tags_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93274,15 +93330,13 @@ def v1_site_id_details_interfaces_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SiteIdDetailsInterfacesGetResponse: - """v1_site_id_details_interfaces_get + ) -> V1PolicyRouteTagSetsTagsSummaryGetResponse: + """v1_policy_route_tag_sets_tags_summary_get - Get a list of a site's interfaces, loopback listed first + Get all the route tags summary for the the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93305,9 +93359,8 @@ def v1_site_id_details_interfaces_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_site_id_details_interfaces_get_serialize( + _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93315,7 +93368,7 @@ def v1_site_id_details_interfaces_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteIdDetailsInterfacesGetResponse", + '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93329,10 +93382,9 @@ def v1_site_id_details_interfaces_get( @validate_call - def v1_site_id_details_interfaces_get_with_http_info( + def v1_policy_route_tag_sets_tags_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93345,15 +93397,13 @@ def v1_site_id_details_interfaces_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SiteIdDetailsInterfacesGetResponse]: - """v1_site_id_details_interfaces_get + ) -> ApiResponse[V1PolicyRouteTagSetsTagsSummaryGetResponse]: + """v1_policy_route_tag_sets_tags_summary_get - Get a list of a site's interfaces, loopback listed first + Get all the route tags summary for the the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93376,9 +93426,8 @@ def v1_site_id_details_interfaces_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_site_id_details_interfaces_get_serialize( + _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93386,7 +93435,7 @@ def v1_site_id_details_interfaces_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteIdDetailsInterfacesGetResponse", + '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93400,10 +93449,9 @@ def v1_site_id_details_interfaces_get_with_http_info( @validate_call - def v1_site_id_details_interfaces_get_without_preload_content( + def v1_policy_route_tag_sets_tags_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93417,14 +93465,12 @@ def v1_site_id_details_interfaces_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_site_id_details_interfaces_get + """v1_policy_route_tag_sets_tags_summary_get - Get a list of a site's interfaces, loopback listed first + Get all the route tags summary for the the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93447,9 +93493,8 @@ def v1_site_id_details_interfaces_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_site_id_details_interfaces_get_serialize( + _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93457,7 +93502,7 @@ def v1_site_id_details_interfaces_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteIdDetailsInterfacesGetResponse", + '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93466,10 +93511,9 @@ def v1_site_id_details_interfaces_get_without_preload_content( return response_data.response - def _v1_site_id_details_interfaces_get_serialize( + def _v1_policy_route_tag_sets_tags_summary_get_serialize( self, authorization, - id, _request_auth, _content_type, _headers, @@ -93491,8 +93535,6 @@ def _v1_site_id_details_interfaces_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: @@ -93517,7 +93559,7 @@ def _v1_site_id_details_interfaces_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/site/{id}/details/interfaces', + resource_path='/v1/policy/route-tag-sets/tags-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -93534,7 +93576,7 @@ def _v1_site_id_details_interfaces_get_serialize( @validate_call - def v1_sites_details_get( + def v1_presharedkey_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93549,10 +93591,10 @@ def v1_sites_details_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SitesDetailsGetResponse: - """v1_sites_details_get + ) -> V1PresharedkeyGetResponse: + """v1_presharedkey_get - Get a list of sites with aggregated values and site wide status + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93578,7 +93620,7 @@ def v1_sites_details_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_details_get_serialize( + _param = self._v1_presharedkey_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93587,7 +93629,7 @@ def v1_sites_details_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesDetailsGetResponse", + '200': "V1PresharedkeyGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93601,7 +93643,7 @@ def v1_sites_details_get( @validate_call - def v1_sites_details_get_with_http_info( + def v1_presharedkey_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93616,10 +93658,10 @@ def v1_sites_details_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SitesDetailsGetResponse]: - """v1_sites_details_get + ) -> ApiResponse[V1PresharedkeyGetResponse]: + """v1_presharedkey_get - Get a list of sites with aggregated values and site wide status + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93645,7 +93687,7 @@ def v1_sites_details_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_details_get_serialize( + _param = self._v1_presharedkey_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93654,7 +93696,7 @@ def v1_sites_details_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesDetailsGetResponse", + '200': "V1PresharedkeyGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93668,7 +93710,7 @@ def v1_sites_details_get_with_http_info( @validate_call - def v1_sites_details_get_without_preload_content( + def v1_presharedkey_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93684,9 +93726,9 @@ def v1_sites_details_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_sites_details_get + """v1_presharedkey_get - Get a list of sites with aggregated values and site wide status + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93712,7 +93754,7 @@ def v1_sites_details_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_details_get_serialize( + _param = self._v1_presharedkey_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93721,7 +93763,7 @@ def v1_sites_details_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesDetailsGetResponse", + '200': "V1PresharedkeyGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93730,7 +93772,7 @@ def v1_sites_details_get_without_preload_content( return response_data.response - def _v1_sites_details_get_serialize( + def _v1_presharedkey_get_serialize( self, authorization, _request_auth, @@ -93778,7 +93820,7 @@ def _v1_sites_details_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/sites/details', + resource_path='/v1/presharedkey', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -93795,7 +93837,7 @@ def _v1_sites_details_get_serialize( @validate_call - def v1_sites_get( + def v1_qos_circuit_profiles_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93810,10 +93852,10 @@ def v1_sites_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SitesGetResponse: - """v1_sites_get + ) -> V1QosCircuitProfilesGetResponse: + """v1_qos_circuit_profiles_get - Get sites for the current enterprise + Returns a list of QoS profiles for circuits with associated queues & attributes :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93839,7 +93881,7 @@ def v1_sites_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_get_serialize( + _param = self._v1_qos_circuit_profiles_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93848,7 +93890,7 @@ def v1_sites_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesGetResponse", + '200': "V1QosCircuitProfilesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93862,7 +93904,7 @@ def v1_sites_get( @validate_call - def v1_sites_get_with_http_info( + def v1_qos_circuit_profiles_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93877,10 +93919,10 @@ def v1_sites_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SitesGetResponse]: - """v1_sites_get + ) -> ApiResponse[V1QosCircuitProfilesGetResponse]: + """v1_qos_circuit_profiles_get - Get sites for the current enterprise + Returns a list of QoS profiles for circuits with associated queues & attributes :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93906,7 +93948,7 @@ def v1_sites_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_get_serialize( + _param = self._v1_qos_circuit_profiles_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93915,7 +93957,7 @@ def v1_sites_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesGetResponse", + '200': "V1QosCircuitProfilesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93929,7 +93971,7 @@ def v1_sites_get_with_http_info( @validate_call - def v1_sites_get_without_preload_content( + def v1_qos_circuit_profiles_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93945,9 +93987,9 @@ def v1_sites_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_sites_get + """v1_qos_circuit_profiles_get - Get sites for the current enterprise + Returns a list of QoS profiles for circuits with associated queues & attributes :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93973,7 +94015,7 @@ def v1_sites_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_get_serialize( + _param = self._v1_qos_circuit_profiles_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93982,7 +94024,7 @@ def v1_sites_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesGetResponse", + '200': "V1QosCircuitProfilesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93991,7 +94033,7 @@ def v1_sites_get_without_preload_content( return response_data.response - def _v1_sites_get_serialize( + def _v1_qos_circuit_profiles_get_serialize( self, authorization, _request_auth, @@ -94039,7 +94081,7 @@ def _v1_sites_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/sites', + resource_path='/v1/qos/circuit-profiles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -94056,10 +94098,9 @@ def _v1_sites_get_serialize( @validate_call - def v1_sites_post( + def v1_regions_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_sites_post_request: V1SitesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94072,15 +94113,13 @@ def v1_sites_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SitesPostResponse: - """v1_sites_post + ) -> V1RegionsGetResponse: + """v1_regions_get - Create an enterprise site + Get regions used for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_sites_post_request: (required) - :type v1_sites_post_request: V1SitesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94103,9 +94142,8 @@ def v1_sites_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_post_serialize( + _param = self._v1_regions_get_serialize( authorization=authorization, - v1_sites_post_request=v1_sites_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94113,7 +94151,7 @@ def v1_sites_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesPostResponse", + '200': "V1RegionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94127,10 +94165,9 @@ def v1_sites_post( @validate_call - def v1_sites_post_with_http_info( + def v1_regions_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_sites_post_request: V1SitesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94143,15 +94180,13 @@ def v1_sites_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SitesPostResponse]: - """v1_sites_post + ) -> ApiResponse[V1RegionsGetResponse]: + """v1_regions_get - Create an enterprise site + Get regions used for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_sites_post_request: (required) - :type v1_sites_post_request: V1SitesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94174,9 +94209,8 @@ def v1_sites_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_post_serialize( + _param = self._v1_regions_get_serialize( authorization=authorization, - v1_sites_post_request=v1_sites_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94184,7 +94218,7 @@ def v1_sites_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesPostResponse", + '200': "V1RegionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94198,10 +94232,9 @@ def v1_sites_post_with_http_info( @validate_call - def v1_sites_post_without_preload_content( + def v1_regions_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_sites_post_request: V1SitesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94215,14 +94248,12 @@ def v1_sites_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_sites_post + """v1_regions_get - Create an enterprise site + Get regions used for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_sites_post_request: (required) - :type v1_sites_post_request: V1SitesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94245,9 +94276,8 @@ def v1_sites_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_post_serialize( + _param = self._v1_regions_get_serialize( authorization=authorization, - v1_sites_post_request=v1_sites_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94255,7 +94285,7 @@ def v1_sites_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesPostResponse", + '200': "V1RegionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94264,10 +94294,9 @@ def v1_sites_post_without_preload_content( return response_data.response - def _v1_sites_post_serialize( + def _v1_regions_get_serialize( self, authorization, - v1_sites_post_request, _request_auth, _content_type, _headers, @@ -94295,8 +94324,6 @@ def _v1_sites_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_sites_post_request is not None: - _body_params = v1_sites_post_request # set the HTTP header `Accept` @@ -94307,19 +94334,6 @@ def _v1_sites_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -94327,8 +94341,8 @@ def _v1_sites_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/sites', + method='GET', + resource_path='/v1/regions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -94345,10 +94359,11 @@ def _v1_sites_post_serialize( @validate_call - def v1_sites_site_id_circuits_get( + def v1_search_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + max_results: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + search: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94361,15 +94376,16 @@ def v1_sites_site_id_circuits_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SitesSiteIdCircuitsGetResponse: - """v1_sites_site_id_circuits_get + ) -> V1SearchGetResponse: + """v1_search_get - Get Circuits for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param max_results: + :type max_results: int + :param search: + :type search: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94392,9 +94408,10 @@ def v1_sites_site_id_circuits_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_circuits_get_serialize( + _param = self._v1_search_get_serialize( authorization=authorization, - site_id=site_id, + max_results=max_results, + search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94402,7 +94419,7 @@ def v1_sites_site_id_circuits_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdCircuitsGetResponse", + '200': "V1SearchGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94416,10 +94433,11 @@ def v1_sites_site_id_circuits_get( @validate_call - def v1_sites_site_id_circuits_get_with_http_info( + def v1_search_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + max_results: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + search: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94432,15 +94450,16 @@ def v1_sites_site_id_circuits_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SitesSiteIdCircuitsGetResponse]: - """v1_sites_site_id_circuits_get + ) -> ApiResponse[V1SearchGetResponse]: + """v1_search_get - Get Circuits for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param max_results: + :type max_results: int + :param search: + :type search: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94463,9 +94482,10 @@ def v1_sites_site_id_circuits_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_circuits_get_serialize( + _param = self._v1_search_get_serialize( authorization=authorization, - site_id=site_id, + max_results=max_results, + search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94473,7 +94493,7 @@ def v1_sites_site_id_circuits_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdCircuitsGetResponse", + '200': "V1SearchGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94487,10 +94507,11 @@ def v1_sites_site_id_circuits_get_with_http_info( @validate_call - def v1_sites_site_id_circuits_get_without_preload_content( + def v1_search_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + max_results: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, + search: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94504,14 +94525,15 @@ def v1_sites_site_id_circuits_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_sites_site_id_circuits_get + """v1_search_get - Get Circuits for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param max_results: + :type max_results: int + :param search: + :type search: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94534,9 +94556,10 @@ def v1_sites_site_id_circuits_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_circuits_get_serialize( + _param = self._v1_search_get_serialize( authorization=authorization, - site_id=site_id, + max_results=max_results, + search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94544,7 +94567,7 @@ def v1_sites_site_id_circuits_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdCircuitsGetResponse", + '200': "V1SearchGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94553,10 +94576,11 @@ def v1_sites_site_id_circuits_get_without_preload_content( return response_data.response - def _v1_sites_site_id_circuits_get_serialize( + def _v1_search_get_serialize( self, authorization, - site_id, + max_results, + search, _request_auth, _content_type, _headers, @@ -94578,9 +94602,15 @@ def _v1_sites_site_id_circuits_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if site_id is not None: - _path_params['siteId'] = site_id # process the query parameters + if max_results is not None: + + _query_params.append(('maxResults', max_results)) + + if search is not None: + + _query_params.append(('search', search)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -94604,7 +94634,7 @@ def _v1_sites_site_id_circuits_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/sites/{siteId}/circuits', + resource_path='/v1/search', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -94621,10 +94651,10 @@ def _v1_sites_site_id_circuits_get_serialize( @validate_call - def v1_sites_site_id_delete( + def v1_site_details_sitelists_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94637,15 +94667,15 @@ def v1_sites_site_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_sites_site_id_delete + ) -> V1SiteDetailsSitelistsPostResponse: + """v1_site_details_sitelists_post - Delete a site + Get a list of site list references for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param v1_site_details_sitelists_post_request: (required) + :type v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94668,9 +94698,9 @@ def v1_sites_site_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_delete_serialize( + _param = self._v1_site_details_sitelists_post_serialize( authorization=authorization, - site_id=site_id, + v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94678,7 +94708,7 @@ def v1_sites_site_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SiteDetailsSitelistsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -94692,10 +94722,10 @@ def v1_sites_site_id_delete( @validate_call - def v1_sites_site_id_delete_with_http_info( + def v1_site_details_sitelists_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94708,15 +94738,15 @@ def v1_sites_site_id_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_sites_site_id_delete + ) -> ApiResponse[V1SiteDetailsSitelistsPostResponse]: + """v1_site_details_sitelists_post - Delete a site + Get a list of site list references for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param v1_site_details_sitelists_post_request: (required) + :type v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94739,9 +94769,9 @@ def v1_sites_site_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_delete_serialize( + _param = self._v1_site_details_sitelists_post_serialize( authorization=authorization, - site_id=site_id, + v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94749,7 +94779,7 @@ def v1_sites_site_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SiteDetailsSitelistsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -94763,10 +94793,10 @@ def v1_sites_site_id_delete_with_http_info( @validate_call - def v1_sites_site_id_delete_without_preload_content( + def v1_site_details_sitelists_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94780,14 +94810,14 @@ def v1_sites_site_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_sites_site_id_delete + """v1_site_details_sitelists_post - Delete a site + Get a list of site list references for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param v1_site_details_sitelists_post_request: (required) + :type v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94810,9 +94840,9 @@ def v1_sites_site_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_delete_serialize( + _param = self._v1_site_details_sitelists_post_serialize( authorization=authorization, - site_id=site_id, + v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94820,7 +94850,7 @@ def v1_sites_site_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SiteDetailsSitelistsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -94829,10 +94859,10 @@ def v1_sites_site_id_delete_without_preload_content( return response_data.response - def _v1_sites_site_id_delete_serialize( + def _v1_site_details_sitelists_post_serialize( self, authorization, - site_id, + v1_site_details_sitelists_post_request, _request_auth, _content_type, _headers, @@ -94854,17 +94884,37 @@ def _v1_sites_site_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if site_id is not None: - _path_params['siteId'] = site_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_site_details_sitelists_post_request is not None: + _body_params = v1_site_details_sitelists_post_request + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -94872,8 +94922,8 @@ def _v1_sites_site_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/sites/{siteId}', + method='POST', + resource_path='/v1/site/details/sitelists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -94890,10 +94940,10 @@ def _v1_sites_site_id_delete_serialize( @validate_call - def v1_sites_site_id_devices_get( + def v1_site_id_details_interfaces_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Annotated[int, Field(strict=True, ge=0)], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94906,15 +94956,15 @@ def v1_sites_site_id_devices_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SitesSiteIdDevicesGetResponse: - """v1_sites_site_id_devices_get + ) -> V1SiteIdDetailsInterfacesGetResponse: + """v1_site_id_details_interfaces_get - Get Devices for the site + Get a list of a site's interfaces, loopback listed first :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -94937,9 +94987,9 @@ def v1_sites_site_id_devices_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_devices_get_serialize( + _param = self._v1_site_id_details_interfaces_get_serialize( authorization=authorization, - site_id=site_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94947,7 +94997,7 @@ def v1_sites_site_id_devices_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdDevicesGetResponse", + '200': "V1SiteIdDetailsInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94961,10 +95011,10 @@ def v1_sites_site_id_devices_get( @validate_call - def v1_sites_site_id_devices_get_with_http_info( + def v1_site_id_details_interfaces_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Annotated[int, Field(strict=True, ge=0)], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94977,15 +95027,15 @@ def v1_sites_site_id_devices_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SitesSiteIdDevicesGetResponse]: - """v1_sites_site_id_devices_get + ) -> ApiResponse[V1SiteIdDetailsInterfacesGetResponse]: + """v1_site_id_details_interfaces_get - Get Devices for the site + Get a list of a site's interfaces, loopback listed first :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -95008,9 +95058,9 @@ def v1_sites_site_id_devices_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_devices_get_serialize( + _param = self._v1_site_id_details_interfaces_get_serialize( authorization=authorization, - site_id=site_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95018,7 +95068,7 @@ def v1_sites_site_id_devices_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdDevicesGetResponse", + '200': "V1SiteIdDetailsInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95032,10 +95082,10 @@ def v1_sites_site_id_devices_get_with_http_info( @validate_call - def v1_sites_site_id_devices_get_without_preload_content( + def v1_site_id_details_interfaces_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Annotated[int, Field(strict=True, ge=0)], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -95049,14 +95099,14 @@ def v1_sites_site_id_devices_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_sites_site_id_devices_get + """v1_site_id_details_interfaces_get - Get Devices for the site + Get a list of a site's interfaces, loopback listed first :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param id: (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -95079,9 +95129,9 @@ def v1_sites_site_id_devices_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_devices_get_serialize( + _param = self._v1_site_id_details_interfaces_get_serialize( authorization=authorization, - site_id=site_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95089,7 +95139,7 @@ def v1_sites_site_id_devices_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdDevicesGetResponse", + '200': "V1SiteIdDetailsInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95098,10 +95148,10 @@ def v1_sites_site_id_devices_get_without_preload_content( return response_data.response - def _v1_sites_site_id_devices_get_serialize( + def _v1_site_id_details_interfaces_get_serialize( self, authorization, - site_id, + id, _request_auth, _content_type, _headers, @@ -95123,8 +95173,8 @@ def _v1_sites_site_id_devices_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if site_id is not None: - _path_params['siteId'] = site_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: @@ -95149,7 +95199,7 @@ def _v1_sites_site_id_devices_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/sites/{siteId}/devices', + resource_path='/v1/site/{id}/details/interfaces', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -95166,11 +95216,9 @@ def _v1_sites_site_id_devices_get_serialize( @validate_call - def v1_sites_site_id_post( + def v1_sites_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, - v1_sites_site_id_post_request: V1SitesSiteIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -95183,17 +95231,13 @@ def v1_sites_site_id_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SitesSiteIdPostResponse: - """v1_sites_site_id_post + ) -> V1SitesDetailsGetResponse: + """v1_sites_details_get - Update a site + Get a list of sites with aggregated values and site wide status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int - :param v1_sites_site_id_post_request: (required) - :type v1_sites_site_id_post_request: V1SitesSiteIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -95216,10 +95260,8 @@ def v1_sites_site_id_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_post_serialize( + _param = self._v1_sites_details_get_serialize( authorization=authorization, - site_id=site_id, - v1_sites_site_id_post_request=v1_sites_site_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95227,7 +95269,7 @@ def v1_sites_site_id_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdPostResponse", + '200': "V1SitesDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95241,11 +95283,9 @@ def v1_sites_site_id_post( @validate_call - def v1_sites_site_id_post_with_http_info( + def v1_sites_details_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, - v1_sites_site_id_post_request: V1SitesSiteIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -95258,17 +95298,13 @@ def v1_sites_site_id_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SitesSiteIdPostResponse]: - """v1_sites_site_id_post + ) -> ApiResponse[V1SitesDetailsGetResponse]: + """v1_sites_details_get - Update a site + Get a list of sites with aggregated values and site wide status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int - :param v1_sites_site_id_post_request: (required) - :type v1_sites_site_id_post_request: V1SitesSiteIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -95291,10 +95327,8 @@ def v1_sites_site_id_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_post_serialize( + _param = self._v1_sites_details_get_serialize( authorization=authorization, - site_id=site_id, - v1_sites_site_id_post_request=v1_sites_site_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95302,7 +95336,7 @@ def v1_sites_site_id_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdPostResponse", + '200': "V1SitesDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95316,11 +95350,9 @@ def v1_sites_site_id_post_with_http_info( @validate_call - def v1_sites_site_id_post_without_preload_content( + def v1_sites_details_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, - v1_sites_site_id_post_request: V1SitesSiteIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -95334,16 +95366,12 @@ def v1_sites_site_id_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_sites_site_id_post + """v1_sites_details_get - Update a site + Get a list of sites with aggregated values and site wide status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int - :param v1_sites_site_id_post_request: (required) - :type v1_sites_site_id_post_request: V1SitesSiteIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -95366,10 +95394,8 @@ def v1_sites_site_id_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_post_serialize( + _param = self._v1_sites_details_get_serialize( authorization=authorization, - site_id=site_id, - v1_sites_site_id_post_request=v1_sites_site_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95377,7 +95403,7 @@ def v1_sites_site_id_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdPostResponse", + '200': "V1SitesDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95386,11 +95412,9 @@ def v1_sites_site_id_post_without_preload_content( return response_data.response - def _v1_sites_site_id_post_serialize( + def _v1_sites_details_get_serialize( self, authorization, - site_id, - v1_sites_site_id_post_request, _request_auth, _content_type, _headers, @@ -95412,16 +95436,12 @@ def _v1_sites_site_id_post_serialize( _body_params: Optional[bytes] = None # process the path parameters - if site_id is not None: - _path_params['siteId'] = site_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_sites_site_id_post_request is not None: - _body_params = v1_sites_site_id_post_request # set the HTTP header `Accept` @@ -95432,19 +95452,6 @@ def _v1_sites_site_id_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -95452,8 +95459,8 @@ def _v1_sites_site_id_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/sites/{siteId}', + method='GET', + resource_path='/v1/sites/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -95470,7 +95477,7 @@ def _v1_sites_site_id_post_serialize( @validate_call - def v1_software_auto_upgrade_default_get( + def v1_sites_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95485,9 +95492,10 @@ def v1_software_auto_upgrade_default_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SoftwareAutoUpgradeDefaultGetResponse: - """v1_software_auto_upgrade_default_get + ) -> V1SitesGetResponse: + """v1_sites_get + Get sites for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95513,7 +95521,7 @@ def v1_software_auto_upgrade_default_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_auto_upgrade_default_get_serialize( + _param = self._v1_sites_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95522,7 +95530,7 @@ def v1_software_auto_upgrade_default_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareAutoUpgradeDefaultGetResponse", + '200': "V1SitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95536,7 +95544,7 @@ def v1_software_auto_upgrade_default_get( @validate_call - def v1_software_auto_upgrade_default_get_with_http_info( + def v1_sites_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95551,9 +95559,10 @@ def v1_software_auto_upgrade_default_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SoftwareAutoUpgradeDefaultGetResponse]: - """v1_software_auto_upgrade_default_get + ) -> ApiResponse[V1SitesGetResponse]: + """v1_sites_get + Get sites for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95579,7 +95588,7 @@ def v1_software_auto_upgrade_default_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_auto_upgrade_default_get_serialize( + _param = self._v1_sites_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95588,7 +95597,7 @@ def v1_software_auto_upgrade_default_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareAutoUpgradeDefaultGetResponse", + '200': "V1SitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95602,7 +95611,7 @@ def v1_software_auto_upgrade_default_get_with_http_info( @validate_call - def v1_software_auto_upgrade_default_get_without_preload_content( + def v1_sites_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95618,8 +95627,9 @@ def v1_software_auto_upgrade_default_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_auto_upgrade_default_get + """v1_sites_get + Get sites for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95645,7 +95655,7 @@ def v1_software_auto_upgrade_default_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_auto_upgrade_default_get_serialize( + _param = self._v1_sites_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95654,7 +95664,7 @@ def v1_software_auto_upgrade_default_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareAutoUpgradeDefaultGetResponse", + '200': "V1SitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95663,7 +95673,7 @@ def v1_software_auto_upgrade_default_get_without_preload_content( return response_data.response - def _v1_software_auto_upgrade_default_get_serialize( + def _v1_sites_get_serialize( self, authorization, _request_auth, @@ -95711,7 +95721,7 @@ def _v1_software_auto_upgrade_default_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/software/auto-upgrade/default', + resource_path='/v1/sites', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -95728,10 +95738,10 @@ def _v1_software_auto_upgrade_default_get_serialize( @validate_call - def v1_software_auto_upgrade_default_put( + def v1_sites_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, + v1_sites_post_request: V1SitesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -95744,14 +95754,15 @@ def v1_software_auto_upgrade_default_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_software_auto_upgrade_default_put + ) -> V1SitesPostResponse: + """v1_sites_post + Create an enterprise site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_auto_upgrade_default_put_request: (required) - :type v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest + :param v1_sites_post_request: (required) + :type v1_sites_post_request: V1SitesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -95774,9 +95785,9 @@ def v1_software_auto_upgrade_default_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_auto_upgrade_default_put_serialize( + _param = self._v1_sites_post_serialize( authorization=authorization, - v1_software_auto_upgrade_default_put_request=v1_software_auto_upgrade_default_put_request, + v1_sites_post_request=v1_sites_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95784,7 +95795,7 @@ def v1_software_auto_upgrade_default_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SitesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -95798,10 +95809,10 @@ def v1_software_auto_upgrade_default_put( @validate_call - def v1_software_auto_upgrade_default_put_with_http_info( + def v1_sites_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, + v1_sites_post_request: V1SitesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -95814,14 +95825,15 @@ def v1_software_auto_upgrade_default_put_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_software_auto_upgrade_default_put + ) -> ApiResponse[V1SitesPostResponse]: + """v1_sites_post + Create an enterprise site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_auto_upgrade_default_put_request: (required) - :type v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest + :param v1_sites_post_request: (required) + :type v1_sites_post_request: V1SitesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -95844,9 +95856,9 @@ def v1_software_auto_upgrade_default_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_auto_upgrade_default_put_serialize( + _param = self._v1_sites_post_serialize( authorization=authorization, - v1_software_auto_upgrade_default_put_request=v1_software_auto_upgrade_default_put_request, + v1_sites_post_request=v1_sites_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95854,7 +95866,7 @@ def v1_software_auto_upgrade_default_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SitesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -95868,10 +95880,10 @@ def v1_software_auto_upgrade_default_put_with_http_info( @validate_call - def v1_software_auto_upgrade_default_put_without_preload_content( + def v1_sites_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, + v1_sites_post_request: V1SitesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -95885,13 +95897,14 @@ def v1_software_auto_upgrade_default_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_auto_upgrade_default_put + """v1_sites_post + Create an enterprise site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_auto_upgrade_default_put_request: (required) - :type v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest + :param v1_sites_post_request: (required) + :type v1_sites_post_request: V1SitesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -95914,9 +95927,9 @@ def v1_software_auto_upgrade_default_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_auto_upgrade_default_put_serialize( + _param = self._v1_sites_post_serialize( authorization=authorization, - v1_software_auto_upgrade_default_put_request=v1_software_auto_upgrade_default_put_request, + v1_sites_post_request=v1_sites_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95924,7 +95937,7 @@ def v1_software_auto_upgrade_default_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SitesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -95933,10 +95946,10 @@ def v1_software_auto_upgrade_default_put_without_preload_content( return response_data.response - def _v1_software_auto_upgrade_default_put_serialize( + def _v1_sites_post_serialize( self, authorization, - v1_software_auto_upgrade_default_put_request, + v1_sites_post_request, _request_auth, _content_type, _headers, @@ -95964,10 +95977,17 @@ def _v1_software_auto_upgrade_default_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_software_auto_upgrade_default_put_request is not None: - _body_params = v1_software_auto_upgrade_default_put_request + if v1_sites_post_request is not None: + _body_params = v1_sites_post_request + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -95989,8 +96009,8 @@ def _v1_software_auto_upgrade_default_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/software/auto-upgrade/default', + method='POST', + resource_path='/v1/sites', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -96007,10 +96027,10 @@ def _v1_software_auto_upgrade_default_put_serialize( @validate_call - def v1_software_gcsrelease_upload_notes_post( + def v1_sites_site_id_circuits_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96023,14 +96043,15 @@ def v1_software_gcsrelease_upload_notes_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_software_gcsrelease_upload_notes_post + ) -> V1SitesSiteIdCircuitsGetResponse: + """v1_sites_site_id_circuits_get + Get Circuits for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_gcsrelease_upload_notes_post_request: (required) - :type v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest + :param site_id: (required) + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96053,9 +96074,9 @@ def v1_software_gcsrelease_upload_notes_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_gcsrelease_upload_notes_post_serialize( + _param = self._v1_sites_site_id_circuits_get_serialize( authorization=authorization, - v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96063,7 +96084,7 @@ def v1_software_gcsrelease_upload_notes_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1SitesSiteIdCircuitsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96077,10 +96098,10 @@ def v1_software_gcsrelease_upload_notes_post( @validate_call - def v1_software_gcsrelease_upload_notes_post_with_http_info( + def v1_sites_site_id_circuits_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96093,14 +96114,15 @@ def v1_software_gcsrelease_upload_notes_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """v1_software_gcsrelease_upload_notes_post + ) -> ApiResponse[V1SitesSiteIdCircuitsGetResponse]: + """v1_sites_site_id_circuits_get + Get Circuits for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_gcsrelease_upload_notes_post_request: (required) - :type v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest + :param site_id: (required) + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96123,9 +96145,9 @@ def v1_software_gcsrelease_upload_notes_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_gcsrelease_upload_notes_post_serialize( + _param = self._v1_sites_site_id_circuits_get_serialize( authorization=authorization, - v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96133,7 +96155,7 @@ def v1_software_gcsrelease_upload_notes_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1SitesSiteIdCircuitsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96147,10 +96169,10 @@ def v1_software_gcsrelease_upload_notes_post_with_http_info( @validate_call - def v1_software_gcsrelease_upload_notes_post_without_preload_content( + def v1_sites_site_id_circuits_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96164,13 +96186,14 @@ def v1_software_gcsrelease_upload_notes_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_gcsrelease_upload_notes_post + """v1_sites_site_id_circuits_get + Get Circuits for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_gcsrelease_upload_notes_post_request: (required) - :type v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest + :param site_id: (required) + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96193,9 +96216,9 @@ def v1_software_gcsrelease_upload_notes_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_gcsrelease_upload_notes_post_serialize( + _param = self._v1_sites_site_id_circuits_get_serialize( authorization=authorization, - v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96203,7 +96226,7 @@ def v1_software_gcsrelease_upload_notes_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1SitesSiteIdCircuitsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96212,10 +96235,10 @@ def v1_software_gcsrelease_upload_notes_post_without_preload_content( return response_data.response - def _v1_software_gcsrelease_upload_notes_post_serialize( + def _v1_sites_site_id_circuits_get_serialize( self, authorization, - v1_software_gcsrelease_upload_notes_post_request, + site_id, _request_auth, _content_type, _headers, @@ -96237,14 +96260,14 @@ def _v1_software_gcsrelease_upload_notes_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if site_id is not None: + _path_params['siteId'] = site_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_software_gcsrelease_upload_notes_post_request is not None: - _body_params = v1_software_gcsrelease_upload_notes_post_request # set the HTTP header `Accept` @@ -96255,19 +96278,6 @@ def _v1_software_gcsrelease_upload_notes_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -96275,8 +96285,8 @@ def _v1_software_gcsrelease_upload_notes_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/software/gcsrelease/upload/notes', + method='GET', + resource_path='/v1/sites/{siteId}/circuits', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -96293,11 +96303,10 @@ def _v1_software_gcsrelease_upload_notes_post_serialize( @validate_call - def v1_software_releases_download_get( + def v1_sites_site_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - image_ext: Annotated[StrictStr, Field(description="GNOS Image type (qcow2 or ova)")], - version: Annotated[StrictStr, Field(description="GNOS Image version")], + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96310,16 +96319,15 @@ def v1_software_releases_download_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SoftwareReleasesDownloadGetResponse: - """v1_software_releases_download_get + ) -> None: + """v1_sites_site_id_delete + Delete a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param image_ext: GNOS Image type (qcow2 or ova) (required) - :type image_ext: str - :param version: GNOS Image version (required) - :type version: str + :param site_id: (required) + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96342,10 +96350,9 @@ def v1_software_releases_download_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_releases_download_get_serialize( + _param = self._v1_sites_site_id_delete_serialize( authorization=authorization, - image_ext=image_ext, - version=version, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96353,7 +96360,7 @@ def v1_software_releases_download_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesDownloadGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -96367,11 +96374,10 @@ def v1_software_releases_download_get( @validate_call - def v1_software_releases_download_get_with_http_info( + def v1_sites_site_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - image_ext: Annotated[StrictStr, Field(description="GNOS Image type (qcow2 or ova)")], - version: Annotated[StrictStr, Field(description="GNOS Image version")], + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96384,16 +96390,15 @@ def v1_software_releases_download_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SoftwareReleasesDownloadGetResponse]: - """v1_software_releases_download_get + ) -> ApiResponse[None]: + """v1_sites_site_id_delete + Delete a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param image_ext: GNOS Image type (qcow2 or ova) (required) - :type image_ext: str - :param version: GNOS Image version (required) - :type version: str + :param site_id: (required) + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96416,10 +96421,9 @@ def v1_software_releases_download_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_releases_download_get_serialize( + _param = self._v1_sites_site_id_delete_serialize( authorization=authorization, - image_ext=image_ext, - version=version, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96427,7 +96431,7 @@ def v1_software_releases_download_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesDownloadGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -96441,11 +96445,10 @@ def v1_software_releases_download_get_with_http_info( @validate_call - def v1_software_releases_download_get_without_preload_content( + def v1_sites_site_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - image_ext: Annotated[StrictStr, Field(description="GNOS Image type (qcow2 or ova)")], - version: Annotated[StrictStr, Field(description="GNOS Image version")], + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96459,15 +96462,14 @@ def v1_software_releases_download_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_releases_download_get + """v1_sites_site_id_delete + Delete a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param image_ext: GNOS Image type (qcow2 or ova) (required) - :type image_ext: str - :param version: GNOS Image version (required) - :type version: str + :param site_id: (required) + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96490,10 +96492,9 @@ def v1_software_releases_download_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_releases_download_get_serialize( + _param = self._v1_sites_site_id_delete_serialize( authorization=authorization, - image_ext=image_ext, - version=version, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96501,7 +96502,7 @@ def v1_software_releases_download_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesDownloadGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -96510,11 +96511,10 @@ def v1_software_releases_download_get_without_preload_content( return response_data.response - def _v1_software_releases_download_get_serialize( + def _v1_sites_site_id_delete_serialize( self, authorization, - image_ext, - version, + site_id, _request_auth, _content_type, _headers, @@ -96536,15 +96536,9 @@ def _v1_software_releases_download_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if site_id is not None: + _path_params['siteId'] = site_id # process the query parameters - if image_ext is not None: - - _query_params.append(('imageExt', image_ext)) - - if version is not None: - - _query_params.append(('version', version)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -96552,13 +96546,6 @@ def _v1_software_releases_download_get_serialize( # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) # authentication setting @@ -96567,8 +96554,8 @@ def _v1_software_releases_download_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/software/releases/download', + method='DELETE', + resource_path='/v1/sites/{siteId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -96585,9 +96572,10 @@ def _v1_software_releases_download_get_serialize( @validate_call - def v1_software_releases_summary_get( + def v1_sites_site_id_devices_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + site_id: Annotated[int, Field(strict=True, ge=0)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96600,12 +96588,15 @@ def v1_software_releases_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SoftwareReleasesSummaryGetResponse: - """v1_software_releases_summary_get + ) -> V1SitesSiteIdDevicesGetResponse: + """v1_sites_site_id_devices_get + Get Devices for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param site_id: (required) + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96628,8 +96619,9 @@ def v1_software_releases_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_releases_summary_get_serialize( + _param = self._v1_sites_site_id_devices_get_serialize( authorization=authorization, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96637,7 +96629,7 @@ def v1_software_releases_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesSummaryGetResponse", + '200': "V1SitesSiteIdDevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96651,9 +96643,10 @@ def v1_software_releases_summary_get( @validate_call - def v1_software_releases_summary_get_with_http_info( + def v1_sites_site_id_devices_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + site_id: Annotated[int, Field(strict=True, ge=0)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96666,12 +96659,15 @@ def v1_software_releases_summary_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SoftwareReleasesSummaryGetResponse]: - """v1_software_releases_summary_get + ) -> ApiResponse[V1SitesSiteIdDevicesGetResponse]: + """v1_sites_site_id_devices_get + Get Devices for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param site_id: (required) + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96694,8 +96690,9 @@ def v1_software_releases_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_releases_summary_get_serialize( + _param = self._v1_sites_site_id_devices_get_serialize( authorization=authorization, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96703,7 +96700,7 @@ def v1_software_releases_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesSummaryGetResponse", + '200': "V1SitesSiteIdDevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96717,9 +96714,10 @@ def v1_software_releases_summary_get_with_http_info( @validate_call - def v1_software_releases_summary_get_without_preload_content( + def v1_sites_site_id_devices_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + site_id: Annotated[int, Field(strict=True, ge=0)], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96733,11 +96731,14 @@ def v1_software_releases_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_releases_summary_get + """v1_sites_site_id_devices_get + Get Devices for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param site_id: (required) + :type site_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96760,8 +96761,9 @@ def v1_software_releases_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_releases_summary_get_serialize( + _param = self._v1_sites_site_id_devices_get_serialize( authorization=authorization, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96769,7 +96771,7 @@ def v1_software_releases_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesSummaryGetResponse", + '200': "V1SitesSiteIdDevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96778,9 +96780,10 @@ def v1_software_releases_summary_get_without_preload_content( return response_data.response - def _v1_software_releases_summary_get_serialize( + def _v1_sites_site_id_devices_get_serialize( self, authorization, + site_id, _request_auth, _content_type, _headers, @@ -96802,6 +96805,8 @@ def _v1_software_releases_summary_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if site_id is not None: + _path_params['siteId'] = site_id # process the query parameters # process the header parameters if authorization is not None: @@ -96826,7 +96831,7 @@ def _v1_software_releases_summary_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/software/releases/summary', + resource_path='/v1/sites/{siteId}/devices', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -96843,10 +96848,11 @@ def _v1_software_releases_summary_get_serialize( @validate_call - def v1_software_running_details_get( + def v1_sites_site_id_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - running_version: Optional[StrictStr] = None, + site_id: StrictInt, + v1_sites_site_id_post_request: V1SitesSiteIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96859,14 +96865,17 @@ def v1_software_running_details_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SoftwareRunningDetailsGetResponse: - """v1_software_running_details_get + ) -> V1SitesSiteIdPostResponse: + """v1_sites_site_id_post + Update a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param running_version: - :type running_version: str + :param site_id: (required) + :type site_id: int + :param v1_sites_site_id_post_request: (required) + :type v1_sites_site_id_post_request: V1SitesSiteIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96889,9 +96898,10 @@ def v1_software_running_details_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_running_details_get_serialize( + _param = self._v1_sites_site_id_post_serialize( authorization=authorization, - running_version=running_version, + site_id=site_id, + v1_sites_site_id_post_request=v1_sites_site_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96899,7 +96909,7 @@ def v1_software_running_details_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningDetailsGetResponse", + '200': "V1SitesSiteIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -96913,10 +96923,11 @@ def v1_software_running_details_get( @validate_call - def v1_software_running_details_get_with_http_info( + def v1_sites_site_id_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - running_version: Optional[StrictStr] = None, + site_id: StrictInt, + v1_sites_site_id_post_request: V1SitesSiteIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96929,14 +96940,17 @@ def v1_software_running_details_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SoftwareRunningDetailsGetResponse]: - """v1_software_running_details_get + ) -> ApiResponse[V1SitesSiteIdPostResponse]: + """v1_sites_site_id_post + Update a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param running_version: - :type running_version: str + :param site_id: (required) + :type site_id: int + :param v1_sites_site_id_post_request: (required) + :type v1_sites_site_id_post_request: V1SitesSiteIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -96959,9 +96973,10 @@ def v1_software_running_details_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_running_details_get_serialize( + _param = self._v1_sites_site_id_post_serialize( authorization=authorization, - running_version=running_version, + site_id=site_id, + v1_sites_site_id_post_request=v1_sites_site_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96969,7 +96984,7 @@ def v1_software_running_details_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningDetailsGetResponse", + '200': "V1SitesSiteIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -96983,10 +96998,11 @@ def v1_software_running_details_get_with_http_info( @validate_call - def v1_software_running_details_get_without_preload_content( + def v1_sites_site_id_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - running_version: Optional[StrictStr] = None, + site_id: StrictInt, + v1_sites_site_id_post_request: V1SitesSiteIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -97000,13 +97016,16 @@ def v1_software_running_details_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_running_details_get + """v1_sites_site_id_post + Update a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param running_version: - :type running_version: str + :param site_id: (required) + :type site_id: int + :param v1_sites_site_id_post_request: (required) + :type v1_sites_site_id_post_request: V1SitesSiteIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -97029,9 +97048,10 @@ def v1_software_running_details_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_running_details_get_serialize( + _param = self._v1_sites_site_id_post_serialize( authorization=authorization, - running_version=running_version, + site_id=site_id, + v1_sites_site_id_post_request=v1_sites_site_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97039,7 +97059,7 @@ def v1_software_running_details_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningDetailsGetResponse", + '200': "V1SitesSiteIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -97048,10 +97068,11 @@ def v1_software_running_details_get_without_preload_content( return response_data.response - def _v1_software_running_details_get_serialize( + def _v1_sites_site_id_post_serialize( self, authorization, - running_version, + site_id, + v1_sites_site_id_post_request, _request_auth, _content_type, _headers, @@ -97073,16 +97094,16 @@ def _v1_software_running_details_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if site_id is not None: + _path_params['siteId'] = site_id # process the query parameters - if running_version is not None: - - _query_params.append(('runningVersion', running_version)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_sites_site_id_post_request is not None: + _body_params = v1_sites_site_id_post_request # set the HTTP header `Accept` @@ -97093,6 +97114,19 @@ def _v1_software_running_details_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -97100,8 +97134,8 @@ def _v1_software_running_details_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/software/running/details', + method='POST', + resource_path='/v1/sites/{siteId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -97118,7 +97152,7 @@ def _v1_software_running_details_get_serialize( @validate_call - def v1_software_running_summary_get( + def v1_software_auto_upgrade_default_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -97133,8 +97167,8 @@ def v1_software_running_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SoftwareRunningSummaryGetResponse: - """v1_software_running_summary_get + ) -> V1SoftwareAutoUpgradeDefaultGetResponse: + """v1_software_auto_upgrade_default_get :param authorization: Bearer token. Format: Bearer (required) @@ -97161,7 +97195,7 @@ def v1_software_running_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_running_summary_get_serialize( + _param = self._v1_software_auto_upgrade_default_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -97170,7 +97204,7 @@ def v1_software_running_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningSummaryGetResponse", + '200': "V1SoftwareAutoUpgradeDefaultGetResponse", } response_data = self.api_client.call_api( *_param, @@ -97184,7 +97218,7 @@ def v1_software_running_summary_get( @validate_call - def v1_software_running_summary_get_with_http_info( + def v1_software_auto_upgrade_default_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -97199,8 +97233,8 @@ def v1_software_running_summary_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SoftwareRunningSummaryGetResponse]: - """v1_software_running_summary_get + ) -> ApiResponse[V1SoftwareAutoUpgradeDefaultGetResponse]: + """v1_software_auto_upgrade_default_get :param authorization: Bearer token. Format: Bearer (required) @@ -97227,7 +97261,7 @@ def v1_software_running_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_running_summary_get_serialize( + _param = self._v1_software_auto_upgrade_default_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -97236,7 +97270,7 @@ def v1_software_running_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningSummaryGetResponse", + '200': "V1SoftwareAutoUpgradeDefaultGetResponse", } response_data = self.api_client.call_api( *_param, @@ -97250,7 +97284,7 @@ def v1_software_running_summary_get_with_http_info( @validate_call - def v1_software_running_summary_get_without_preload_content( + def v1_software_auto_upgrade_default_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -97266,7 +97300,7 @@ def v1_software_running_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_running_summary_get + """v1_software_auto_upgrade_default_get :param authorization: Bearer token. Format: Bearer (required) @@ -97293,7 +97327,7 @@ def v1_software_running_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_running_summary_get_serialize( + _param = self._v1_software_auto_upgrade_default_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -97302,7 +97336,7 @@ def v1_software_running_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningSummaryGetResponse", + '200': "V1SoftwareAutoUpgradeDefaultGetResponse", } response_data = self.api_client.call_api( *_param, @@ -97311,7 +97345,7 @@ def v1_software_running_summary_get_without_preload_content( return response_data.response - def _v1_software_running_summary_get_serialize( + def _v1_software_auto_upgrade_default_get_serialize( self, authorization, _request_auth, @@ -97359,7 +97393,7 @@ def _v1_software_running_summary_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/software/running/summary', + resource_path='/v1/software/auto-upgrade/default', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -97376,11 +97410,10 @@ def _v1_software_running_summary_get_serialize( @validate_call - def v1_talkers_device_device_id_top_post( + def v1_software_auto_upgrade_default_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest, + v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -97393,17 +97426,14 @@ def v1_talkers_device_device_id_top_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1TalkersDeviceDeviceIdTopPostResponse: - """v1_talkers_device_device_id_top_post + ) -> None: + """v1_software_auto_upgrade_default_put - Get top talkers for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param v1_talkers_device_device_id_top_post_request: (required) - :type v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest + :param v1_software_auto_upgrade_default_put_request: (required) + :type v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -97426,10 +97456,9 @@ def v1_talkers_device_device_id_top_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_talkers_device_device_id_top_post_serialize( + _param = self._v1_software_auto_upgrade_default_put_serialize( authorization=authorization, - device_id=device_id, - v1_talkers_device_device_id_top_post_request=v1_talkers_device_device_id_top_post_request, + v1_software_auto_upgrade_default_put_request=v1_software_auto_upgrade_default_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97437,7 +97466,7 @@ def v1_talkers_device_device_id_top_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersDeviceDeviceIdTopPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -97451,11 +97480,10 @@ def v1_talkers_device_device_id_top_post( @validate_call - def v1_talkers_device_device_id_top_post_with_http_info( + def v1_software_auto_upgrade_default_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest, + v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -97468,17 +97496,14 @@ def v1_talkers_device_device_id_top_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1TalkersDeviceDeviceIdTopPostResponse]: - """v1_talkers_device_device_id_top_post + ) -> ApiResponse[None]: + """v1_software_auto_upgrade_default_put - Get top talkers for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param v1_talkers_device_device_id_top_post_request: (required) - :type v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest + :param v1_software_auto_upgrade_default_put_request: (required) + :type v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -97501,10 +97526,9 @@ def v1_talkers_device_device_id_top_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_talkers_device_device_id_top_post_serialize( + _param = self._v1_software_auto_upgrade_default_put_serialize( authorization=authorization, - device_id=device_id, - v1_talkers_device_device_id_top_post_request=v1_talkers_device_device_id_top_post_request, + v1_software_auto_upgrade_default_put_request=v1_software_auto_upgrade_default_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97512,7 +97536,7 @@ def v1_talkers_device_device_id_top_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersDeviceDeviceIdTopPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -97526,11 +97550,10 @@ def v1_talkers_device_device_id_top_post_with_http_info( @validate_call - def v1_talkers_device_device_id_top_post_without_preload_content( + def v1_software_auto_upgrade_default_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest, + v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -97544,16 +97567,13 @@ def v1_talkers_device_device_id_top_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_talkers_device_device_id_top_post + """v1_software_auto_upgrade_default_put - Get top talkers for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param v1_talkers_device_device_id_top_post_request: (required) - :type v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest + :param v1_software_auto_upgrade_default_put_request: (required) + :type v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -97576,10 +97596,9 @@ def v1_talkers_device_device_id_top_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_talkers_device_device_id_top_post_serialize( + _param = self._v1_software_auto_upgrade_default_put_serialize( authorization=authorization, - device_id=device_id, - v1_talkers_device_device_id_top_post_request=v1_talkers_device_device_id_top_post_request, + v1_software_auto_upgrade_default_put_request=v1_software_auto_upgrade_default_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97587,7 +97606,7 @@ def v1_talkers_device_device_id_top_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersDeviceDeviceIdTopPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -97596,11 +97615,10 @@ def v1_talkers_device_device_id_top_post_without_preload_content( return response_data.response - def _v1_talkers_device_device_id_top_post_serialize( + def _v1_software_auto_upgrade_default_put_serialize( self, authorization, - device_id, - v1_talkers_device_device_id_top_post_request, + v1_software_auto_upgrade_default_put_request, _request_auth, _content_type, _headers, @@ -97622,25 +97640,16 @@ def _v1_talkers_device_device_id_top_post_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_talkers_device_device_id_top_post_request is not None: - _body_params = v1_talkers_device_device_id_top_post_request + if v1_software_auto_upgrade_default_put_request is not None: + _body_params = v1_software_auto_upgrade_default_put_request - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) # set the HTTP header `Content-Type` if _content_type: @@ -97662,8 +97671,8 @@ def _v1_talkers_device_device_id_top_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/talkers/device/{deviceId}/top', + method='PUT', + resource_path='/v1/software/auto-upgrade/default', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -97680,11 +97689,10 @@ def _v1_talkers_device_device_id_top_post_serialize( @validate_call - def v1_talkers_site_site_id_top_post( + def v1_software_gcsrelease_upload_notes_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, - v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest, + v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -97697,17 +97705,14 @@ def v1_talkers_site_site_id_top_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1TalkersSiteSiteIdTopPostResponse: - """v1_talkers_site_site_id_top_post + ) -> object: + """v1_software_gcsrelease_upload_notes_post - Get top talkers for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int - :param v1_talkers_site_site_id_top_post_request: (required) - :type v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest + :param v1_software_gcsrelease_upload_notes_post_request: (required) + :type v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -97730,10 +97735,9 @@ def v1_talkers_site_site_id_top_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_talkers_site_site_id_top_post_serialize( + _param = self._v1_software_gcsrelease_upload_notes_post_serialize( authorization=authorization, - site_id=site_id, - v1_talkers_site_site_id_top_post_request=v1_talkers_site_site_id_top_post_request, + v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97741,7 +97745,7 @@ def v1_talkers_site_site_id_top_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersSiteSiteIdTopPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -97755,11 +97759,10 @@ def v1_talkers_site_site_id_top_post( @validate_call - def v1_talkers_site_site_id_top_post_with_http_info( + def v1_software_gcsrelease_upload_notes_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, - v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest, + v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -97772,17 +97775,14 @@ def v1_talkers_site_site_id_top_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1TalkersSiteSiteIdTopPostResponse]: - """v1_talkers_site_site_id_top_post + ) -> ApiResponse[object]: + """v1_software_gcsrelease_upload_notes_post - Get top talkers for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int - :param v1_talkers_site_site_id_top_post_request: (required) - :type v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest + :param v1_software_gcsrelease_upload_notes_post_request: (required) + :type v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -97805,10 +97805,9 @@ def v1_talkers_site_site_id_top_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_talkers_site_site_id_top_post_serialize( + _param = self._v1_software_gcsrelease_upload_notes_post_serialize( authorization=authorization, - site_id=site_id, - v1_talkers_site_site_id_top_post_request=v1_talkers_site_site_id_top_post_request, + v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97816,7 +97815,7 @@ def v1_talkers_site_site_id_top_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersSiteSiteIdTopPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -97830,11 +97829,10 @@ def v1_talkers_site_site_id_top_post_with_http_info( @validate_call - def v1_talkers_site_site_id_top_post_without_preload_content( + def v1_software_gcsrelease_upload_notes_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, - v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest, + v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -97848,16 +97846,13 @@ def v1_talkers_site_site_id_top_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_talkers_site_site_id_top_post + """v1_software_gcsrelease_upload_notes_post - Get top talkers for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int - :param v1_talkers_site_site_id_top_post_request: (required) - :type v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest + :param v1_software_gcsrelease_upload_notes_post_request: (required) + :type v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -97880,10 +97875,9 @@ def v1_talkers_site_site_id_top_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_talkers_site_site_id_top_post_serialize( + _param = self._v1_software_gcsrelease_upload_notes_post_serialize( authorization=authorization, - site_id=site_id, - v1_talkers_site_site_id_top_post_request=v1_talkers_site_site_id_top_post_request, + v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97891,7 +97885,7 @@ def v1_talkers_site_site_id_top_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersSiteSiteIdTopPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -97900,11 +97894,10 @@ def v1_talkers_site_site_id_top_post_without_preload_content( return response_data.response - def _v1_talkers_site_site_id_top_post_serialize( + def _v1_software_gcsrelease_upload_notes_post_serialize( self, authorization, - site_id, - v1_talkers_site_site_id_top_post_request, + v1_software_gcsrelease_upload_notes_post_request, _request_auth, _content_type, _headers, @@ -97926,16 +97919,14 @@ def _v1_talkers_site_site_id_top_post_serialize( _body_params: Optional[bytes] = None # process the path parameters - if site_id is not None: - _path_params['siteId'] = site_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_talkers_site_site_id_top_post_request is not None: - _body_params = v1_talkers_site_site_id_top_post_request + if v1_software_gcsrelease_upload_notes_post_request is not None: + _body_params = v1_software_gcsrelease_upload_notes_post_request # set the HTTP header `Accept` @@ -97967,7 +97958,7 @@ def _v1_talkers_site_site_id_top_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/talkers/site/{siteId}/top', + resource_path='/v1/software/gcsrelease/upload/notes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -97984,10 +97975,11 @@ def _v1_talkers_site_site_id_top_post_serialize( @validate_call - def v1_temp_password_put( + def v1_software_releases_download_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_temp_password_put_request: V1TempPasswordPutRequest, + image_ext: Annotated[StrictStr, Field(description="GNOS Image type (qcow2 or ova)")], + version: Annotated[StrictStr, Field(description="GNOS Image version")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98000,15 +97992,16 @@ def v1_temp_password_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_temp_password_put + ) -> V1SoftwareReleasesDownloadGetResponse: + """v1_software_releases_download_get - Generate and send temporary passwords to multiple emails for B2B service access. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_temp_password_put_request: (required) - :type v1_temp_password_put_request: V1TempPasswordPutRequest + :param image_ext: GNOS Image type (qcow2 or ova) (required) + :type image_ext: str + :param version: GNOS Image version (required) + :type version: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -98031,9 +98024,10 @@ def v1_temp_password_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_temp_password_put_serialize( + _param = self._v1_software_releases_download_get_serialize( authorization=authorization, - v1_temp_password_put_request=v1_temp_password_put_request, + image_ext=image_ext, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98041,7 +98035,7 @@ def v1_temp_password_put( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1SoftwareReleasesDownloadGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98055,10 +98049,11 @@ def v1_temp_password_put( @validate_call - def v1_temp_password_put_with_http_info( + def v1_software_releases_download_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_temp_password_put_request: V1TempPasswordPutRequest, + image_ext: Annotated[StrictStr, Field(description="GNOS Image type (qcow2 or ova)")], + version: Annotated[StrictStr, Field(description="GNOS Image version")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98071,15 +98066,16 @@ def v1_temp_password_put_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[object]: - """v1_temp_password_put + ) -> ApiResponse[V1SoftwareReleasesDownloadGetResponse]: + """v1_software_releases_download_get - Generate and send temporary passwords to multiple emails for B2B service access. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_temp_password_put_request: (required) - :type v1_temp_password_put_request: V1TempPasswordPutRequest + :param image_ext: GNOS Image type (qcow2 or ova) (required) + :type image_ext: str + :param version: GNOS Image version (required) + :type version: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -98102,9 +98098,10 @@ def v1_temp_password_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_temp_password_put_serialize( + _param = self._v1_software_releases_download_get_serialize( authorization=authorization, - v1_temp_password_put_request=v1_temp_password_put_request, + image_ext=image_ext, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98112,7 +98109,7 @@ def v1_temp_password_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1SoftwareReleasesDownloadGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98126,10 +98123,11 @@ def v1_temp_password_put_with_http_info( @validate_call - def v1_temp_password_put_without_preload_content( + def v1_software_releases_download_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_temp_password_put_request: V1TempPasswordPutRequest, + image_ext: Annotated[StrictStr, Field(description="GNOS Image type (qcow2 or ova)")], + version: Annotated[StrictStr, Field(description="GNOS Image version")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98143,14 +98141,15 @@ def v1_temp_password_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_temp_password_put + """v1_software_releases_download_get - Generate and send temporary passwords to multiple emails for B2B service access. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_temp_password_put_request: (required) - :type v1_temp_password_put_request: V1TempPasswordPutRequest + :param image_ext: GNOS Image type (qcow2 or ova) (required) + :type image_ext: str + :param version: GNOS Image version (required) + :type version: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -98173,9 +98172,10 @@ def v1_temp_password_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_temp_password_put_serialize( + _param = self._v1_software_releases_download_get_serialize( authorization=authorization, - v1_temp_password_put_request=v1_temp_password_put_request, + image_ext=image_ext, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98183,7 +98183,7 @@ def v1_temp_password_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1SoftwareReleasesDownloadGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98192,10 +98192,11 @@ def v1_temp_password_put_without_preload_content( return response_data.response - def _v1_temp_password_put_serialize( + def _v1_software_releases_download_get_serialize( self, authorization, - v1_temp_password_put_request, + image_ext, + version, _request_auth, _content_type, _headers, @@ -98218,13 +98219,19 @@ def _v1_temp_password_put_serialize( # process the path parameters # process the query parameters + if image_ext is not None: + + _query_params.append(('imageExt', image_ext)) + + if version is not None: + + _query_params.append(('version', version)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_temp_password_put_request is not None: - _body_params = v1_temp_password_put_request # set the HTTP header `Accept` @@ -98235,19 +98242,6 @@ def _v1_temp_password_put_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -98255,8 +98249,8 @@ def _v1_temp_password_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/temp/password', + method='GET', + resource_path='/v1/software/releases/download', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -98273,11 +98267,9 @@ def _v1_temp_password_put_serialize( @validate_call - def v1_troubleshooting_device_device_id_post( + def v1_software_releases_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98290,16 +98282,12 @@ def v1_troubleshooting_device_device_id_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1TroubleshootingDeviceDeviceIdPostResponse: - """v1_troubleshooting_device_device_id_post + ) -> V1SoftwareReleasesSummaryGetResponse: + """v1_software_releases_summary_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param v1_troubleshooting_device_device_id_post_request: (required) - :type v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -98322,10 +98310,8 @@ def v1_troubleshooting_device_device_id_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_device_device_id_post_serialize( + _param = self._v1_software_releases_summary_get_serialize( authorization=authorization, - device_id=device_id, - v1_troubleshooting_device_device_id_post_request=v1_troubleshooting_device_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98333,7 +98319,7 @@ def v1_troubleshooting_device_device_id_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingDeviceDeviceIdPostResponse", + '200': "V1SoftwareReleasesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98347,11 +98333,9 @@ def v1_troubleshooting_device_device_id_post( @validate_call - def v1_troubleshooting_device_device_id_post_with_http_info( + def v1_software_releases_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98364,16 +98348,12 @@ def v1_troubleshooting_device_device_id_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1TroubleshootingDeviceDeviceIdPostResponse]: - """v1_troubleshooting_device_device_id_post + ) -> ApiResponse[V1SoftwareReleasesSummaryGetResponse]: + """v1_software_releases_summary_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param v1_troubleshooting_device_device_id_post_request: (required) - :type v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -98396,10 +98376,8 @@ def v1_troubleshooting_device_device_id_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_device_device_id_post_serialize( + _param = self._v1_software_releases_summary_get_serialize( authorization=authorization, - device_id=device_id, - v1_troubleshooting_device_device_id_post_request=v1_troubleshooting_device_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98407,7 +98385,7 @@ def v1_troubleshooting_device_device_id_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingDeviceDeviceIdPostResponse", + '200': "V1SoftwareReleasesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98421,11 +98399,9 @@ def v1_troubleshooting_device_device_id_post_with_http_info( @validate_call - def v1_troubleshooting_device_device_id_post_without_preload_content( + def v1_software_releases_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98439,15 +98415,11 @@ def v1_troubleshooting_device_device_id_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_troubleshooting_device_device_id_post + """v1_software_releases_summary_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param v1_troubleshooting_device_device_id_post_request: (required) - :type v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -98470,10 +98442,8 @@ def v1_troubleshooting_device_device_id_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_device_device_id_post_serialize( + _param = self._v1_software_releases_summary_get_serialize( authorization=authorization, - device_id=device_id, - v1_troubleshooting_device_device_id_post_request=v1_troubleshooting_device_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98481,7 +98451,7 @@ def v1_troubleshooting_device_device_id_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingDeviceDeviceIdPostResponse", + '200': "V1SoftwareReleasesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98490,11 +98460,9 @@ def v1_troubleshooting_device_device_id_post_without_preload_content( return response_data.response - def _v1_troubleshooting_device_device_id_post_serialize( + def _v1_software_releases_summary_get_serialize( self, authorization, - device_id, - v1_troubleshooting_device_device_id_post_request, _request_auth, _content_type, _headers, @@ -98516,16 +98484,12 @@ def _v1_troubleshooting_device_device_id_post_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_troubleshooting_device_device_id_post_request is not None: - _body_params = v1_troubleshooting_device_device_id_post_request # set the HTTP header `Accept` @@ -98536,19 +98500,6 @@ def _v1_troubleshooting_device_device_id_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -98556,8 +98507,8 @@ def _v1_troubleshooting_device_device_id_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/troubleshooting/device/{deviceId}', + method='GET', + resource_path='/v1/software/releases/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -98574,10 +98525,9 @@ def _v1_troubleshooting_device_device_id_post_serialize( @validate_call - def v1_troubleshooting_enterprise_post( + def v1_software_rollouts_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98590,14 +98540,13 @@ def v1_troubleshooting_enterprise_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1TroubleshootingEnterprisePostResponse: - """v1_troubleshooting_enterprise_post + ) -> V1SoftwareRolloutsGetResponse: + """v1_software_rollouts_get + Returns all the configured upgrade rollouts :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_troubleshooting_enterprise_post_request: (required) - :type v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -98620,9 +98569,8 @@ def v1_troubleshooting_enterprise_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_enterprise_post_serialize( + _param = self._v1_software_rollouts_get_serialize( authorization=authorization, - v1_troubleshooting_enterprise_post_request=v1_troubleshooting_enterprise_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98630,7 +98578,7 @@ def v1_troubleshooting_enterprise_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingEnterprisePostResponse", + '200': "V1SoftwareRolloutsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98644,10 +98592,9 @@ def v1_troubleshooting_enterprise_post( @validate_call - def v1_troubleshooting_enterprise_post_with_http_info( + def v1_software_rollouts_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98660,14 +98607,13 @@ def v1_troubleshooting_enterprise_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1TroubleshootingEnterprisePostResponse]: - """v1_troubleshooting_enterprise_post + ) -> ApiResponse[V1SoftwareRolloutsGetResponse]: + """v1_software_rollouts_get + Returns all the configured upgrade rollouts :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_troubleshooting_enterprise_post_request: (required) - :type v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -98690,9 +98636,8 @@ def v1_troubleshooting_enterprise_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_enterprise_post_serialize( + _param = self._v1_software_rollouts_get_serialize( authorization=authorization, - v1_troubleshooting_enterprise_post_request=v1_troubleshooting_enterprise_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98700,7 +98645,7 @@ def v1_troubleshooting_enterprise_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingEnterprisePostResponse", + '200': "V1SoftwareRolloutsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98714,10 +98659,9 @@ def v1_troubleshooting_enterprise_post_with_http_info( @validate_call - def v1_troubleshooting_enterprise_post_without_preload_content( + def v1_software_rollouts_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98731,13 +98675,12 @@ def v1_troubleshooting_enterprise_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_troubleshooting_enterprise_post + """v1_software_rollouts_get + Returns all the configured upgrade rollouts :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_troubleshooting_enterprise_post_request: (required) - :type v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -98760,9 +98703,8 @@ def v1_troubleshooting_enterprise_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_enterprise_post_serialize( + _param = self._v1_software_rollouts_get_serialize( authorization=authorization, - v1_troubleshooting_enterprise_post_request=v1_troubleshooting_enterprise_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98770,7 +98712,7 @@ def v1_troubleshooting_enterprise_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingEnterprisePostResponse", + '200': "V1SoftwareRolloutsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98779,10 +98721,9 @@ def v1_troubleshooting_enterprise_post_without_preload_content( return response_data.response - def _v1_troubleshooting_enterprise_post_serialize( + def _v1_software_rollouts_get_serialize( self, authorization, - v1_troubleshooting_enterprise_post_request, _request_auth, _content_type, _headers, @@ -98810,8 +98751,6 @@ def _v1_troubleshooting_enterprise_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_troubleshooting_enterprise_post_request is not None: - _body_params = v1_troubleshooting_enterprise_post_request # set the HTTP header `Accept` @@ -98822,19 +98761,6 @@ def _v1_troubleshooting_enterprise_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -98842,8 +98768,8 @@ def _v1_troubleshooting_enterprise_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/troubleshooting/enterprise', + method='GET', + resource_path='/v1/software/rollouts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -98860,9 +98786,10 @@ def _v1_troubleshooting_enterprise_post_serialize( @validate_call - def v1_troubleshooting_filter_get( + def v1_software_rollouts_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Rollout identifier to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98875,12 +98802,15 @@ def v1_troubleshooting_filter_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1TroubleshootingFilterGetResponse: - """v1_troubleshooting_filter_get + ) -> object: + """v1_software_rollouts_id_delete + Delete given upgrade rollout :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: Rollout identifier to delete. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -98903,8 +98833,9 @@ def v1_troubleshooting_filter_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_filter_get_serialize( + _param = self._v1_software_rollouts_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98912,7 +98843,7 @@ def v1_troubleshooting_filter_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingFilterGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -98926,9 +98857,10 @@ def v1_troubleshooting_filter_get( @validate_call - def v1_troubleshooting_filter_get_with_http_info( + def v1_software_rollouts_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Rollout identifier to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98941,12 +98873,15 @@ def v1_troubleshooting_filter_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1TroubleshootingFilterGetResponse]: - """v1_troubleshooting_filter_get + ) -> ApiResponse[object]: + """v1_software_rollouts_id_delete + Delete given upgrade rollout :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: Rollout identifier to delete. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -98969,8 +98904,9 @@ def v1_troubleshooting_filter_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_filter_get_serialize( + _param = self._v1_software_rollouts_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98978,7 +98914,7 @@ def v1_troubleshooting_filter_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingFilterGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -98992,9 +98928,10 @@ def v1_troubleshooting_filter_get_with_http_info( @validate_call - def v1_troubleshooting_filter_get_without_preload_content( + def v1_software_rollouts_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Rollout identifier to delete.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99008,11 +98945,14 @@ def v1_troubleshooting_filter_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_troubleshooting_filter_get + """v1_software_rollouts_id_delete + Delete given upgrade rollout :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: Rollout identifier to delete. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99035,8 +98975,9 @@ def v1_troubleshooting_filter_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_filter_get_serialize( + _param = self._v1_software_rollouts_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99044,7 +98985,7 @@ def v1_troubleshooting_filter_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingFilterGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -99053,9 +98994,10 @@ def v1_troubleshooting_filter_get_without_preload_content( return response_data.response - def _v1_troubleshooting_filter_get_serialize( + def _v1_software_rollouts_id_delete_serialize( self, authorization, + id, _request_auth, _content_type, _headers, @@ -99077,6 +99019,8 @@ def _v1_troubleshooting_filter_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: @@ -99100,8 +99044,8 @@ def _v1_troubleshooting_filter_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/troubleshooting/filter', + method='DELETE', + resource_path='/v1/software/rollouts/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -99118,9 +99062,10 @@ def _v1_troubleshooting_filter_get_serialize( @validate_call - def v1_troubleshooting_site_connectivity_status_get( + def v1_software_rollouts_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Rollout identifier to fetch.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99133,12 +99078,15 @@ def v1_troubleshooting_site_connectivity_status_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1TroubleshootingSiteConnectivityStatusGetResponse: - """v1_troubleshooting_site_connectivity_status_get + ) -> V1SoftwareRolloutsIdGetResponse: + """v1_software_rollouts_id_get + Returns details about given upgrade rollout :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: Rollout identifier to fetch. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99161,8 +99109,9 @@ def v1_troubleshooting_site_connectivity_status_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_site_connectivity_status_get_serialize( + _param = self._v1_software_rollouts_id_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99170,7 +99119,7 @@ def v1_troubleshooting_site_connectivity_status_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", + '200': "V1SoftwareRolloutsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -99184,9 +99133,10 @@ def v1_troubleshooting_site_connectivity_status_get( @validate_call - def v1_troubleshooting_site_connectivity_status_get_with_http_info( + def v1_software_rollouts_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Rollout identifier to fetch.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99199,12 +99149,15 @@ def v1_troubleshooting_site_connectivity_status_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1TroubleshootingSiteConnectivityStatusGetResponse]: - """v1_troubleshooting_site_connectivity_status_get + ) -> ApiResponse[V1SoftwareRolloutsIdGetResponse]: + """v1_software_rollouts_id_get + Returns details about given upgrade rollout :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: Rollout identifier to fetch. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99227,8 +99180,9 @@ def v1_troubleshooting_site_connectivity_status_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_site_connectivity_status_get_serialize( + _param = self._v1_software_rollouts_id_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99236,7 +99190,7 @@ def v1_troubleshooting_site_connectivity_status_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", + '200': "V1SoftwareRolloutsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -99250,9 +99204,10 @@ def v1_troubleshooting_site_connectivity_status_get_with_http_info( @validate_call - def v1_troubleshooting_site_connectivity_status_get_without_preload_content( + def v1_software_rollouts_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Rollout identifier to fetch.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99266,11 +99221,14 @@ def v1_troubleshooting_site_connectivity_status_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_troubleshooting_site_connectivity_status_get + """v1_software_rollouts_id_get + Returns details about given upgrade rollout :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: Rollout identifier to fetch. (required) + :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99293,8 +99251,9 @@ def v1_troubleshooting_site_connectivity_status_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_site_connectivity_status_get_serialize( + _param = self._v1_software_rollouts_id_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99302,7 +99261,7 @@ def v1_troubleshooting_site_connectivity_status_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", + '200': "V1SoftwareRolloutsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -99311,9 +99270,10 @@ def v1_troubleshooting_site_connectivity_status_get_without_preload_content( return response_data.response - def _v1_troubleshooting_site_connectivity_status_get_serialize( + def _v1_software_rollouts_id_get_serialize( self, authorization, + id, _request_auth, _content_type, _headers, @@ -99335,6 +99295,8 @@ def _v1_troubleshooting_site_connectivity_status_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: @@ -99359,7 +99321,7 @@ def _v1_troubleshooting_site_connectivity_status_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/troubleshooting/site-connectivity-status', + resource_path='/v1/software/rollouts/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -99376,10 +99338,10 @@ def _v1_troubleshooting_site_connectivity_status_get_serialize( @validate_call - def v1_troubleshooting_site_site_id_get( + def v1_software_rollouts_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99392,14 +99354,15 @@ def v1_troubleshooting_site_site_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1TroubleshootingSiteSiteIdGetResponse: - """v1_troubleshooting_site_site_id_get + ) -> V1SoftwareRolloutsPostResponse: + """v1_software_rollouts_post + Create upgrade rollout and returns rollout identifier :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param v1_software_rollouts_post_request: (required) + :type v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99422,9 +99385,9 @@ def v1_troubleshooting_site_site_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_site_site_id_get_serialize( + _param = self._v1_software_rollouts_post_serialize( authorization=authorization, - site_id=site_id, + v1_software_rollouts_post_request=v1_software_rollouts_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99432,7 +99395,7 @@ def v1_troubleshooting_site_site_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteSiteIdGetResponse", + '200': "V1SoftwareRolloutsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -99446,10 +99409,10 @@ def v1_troubleshooting_site_site_id_get( @validate_call - def v1_troubleshooting_site_site_id_get_with_http_info( + def v1_software_rollouts_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99462,14 +99425,15 @@ def v1_troubleshooting_site_site_id_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1TroubleshootingSiteSiteIdGetResponse]: - """v1_troubleshooting_site_site_id_get + ) -> ApiResponse[V1SoftwareRolloutsPostResponse]: + """v1_software_rollouts_post + Create upgrade rollout and returns rollout identifier :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param v1_software_rollouts_post_request: (required) + :type v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99492,9 +99456,9 @@ def v1_troubleshooting_site_site_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_site_site_id_get_serialize( + _param = self._v1_software_rollouts_post_serialize( authorization=authorization, - site_id=site_id, + v1_software_rollouts_post_request=v1_software_rollouts_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99502,7 +99466,7 @@ def v1_troubleshooting_site_site_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteSiteIdGetResponse", + '200': "V1SoftwareRolloutsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -99516,10 +99480,10 @@ def v1_troubleshooting_site_site_id_get_with_http_info( @validate_call - def v1_troubleshooting_site_site_id_get_without_preload_content( + def v1_software_rollouts_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99533,13 +99497,14 @@ def v1_troubleshooting_site_site_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_troubleshooting_site_site_id_get + """v1_software_rollouts_post + Create upgrade rollout and returns rollout identifier :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :param v1_software_rollouts_post_request: (required) + :type v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99562,9 +99527,9 @@ def v1_troubleshooting_site_site_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_site_site_id_get_serialize( + _param = self._v1_software_rollouts_post_serialize( authorization=authorization, - site_id=site_id, + v1_software_rollouts_post_request=v1_software_rollouts_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99572,7 +99537,7 @@ def v1_troubleshooting_site_site_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteSiteIdGetResponse", + '200': "V1SoftwareRolloutsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -99581,10 +99546,10 @@ def v1_troubleshooting_site_site_id_get_without_preload_content( return response_data.response - def _v1_troubleshooting_site_site_id_get_serialize( + def _v1_software_rollouts_post_serialize( self, authorization, - site_id, + v1_software_rollouts_post_request, _request_auth, _content_type, _headers, @@ -99606,14 +99571,14 @@ def _v1_troubleshooting_site_site_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if site_id is not None: - _path_params['siteId'] = site_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_software_rollouts_post_request is not None: + _body_params = v1_software_rollouts_post_request # set the HTTP header `Accept` @@ -99624,6 +99589,19 @@ def _v1_troubleshooting_site_site_id_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -99631,8 +99609,8 @@ def _v1_troubleshooting_site_site_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/troubleshooting/site/{siteId}', + method='POST', + resource_path='/v1/software/rollouts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -99649,10 +99627,10 @@ def _v1_troubleshooting_site_site_id_get_serialize( @validate_call - def v1_troubleshooting_top_sites_by_alerts_post( + def v1_software_rollouts_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, + v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99665,14 +99643,15 @@ def v1_troubleshooting_top_sites_by_alerts_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1TroubleshootingTopSitesByAlertsPostResponse: - """v1_troubleshooting_top_sites_by_alerts_post + ) -> object: + """v1_software_rollouts_put + Modify update rollout :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_troubleshooting_top_sites_by_alerts_post_request: (required) - :type v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest + :param v1_software_rollouts_put_request: (required) + :type v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99695,9 +99674,9 @@ def v1_troubleshooting_top_sites_by_alerts_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_top_sites_by_alerts_post_serialize( + _param = self._v1_software_rollouts_put_serialize( authorization=authorization, - v1_troubleshooting_top_sites_by_alerts_post_request=v1_troubleshooting_top_sites_by_alerts_post_request, + v1_software_rollouts_put_request=v1_software_rollouts_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99705,7 +99684,7 @@ def v1_troubleshooting_top_sites_by_alerts_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingTopSitesByAlertsPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -99719,10 +99698,10 @@ def v1_troubleshooting_top_sites_by_alerts_post( @validate_call - def v1_troubleshooting_top_sites_by_alerts_post_with_http_info( + def v1_software_rollouts_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, + v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99735,14 +99714,15 @@ def v1_troubleshooting_top_sites_by_alerts_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1TroubleshootingTopSitesByAlertsPostResponse]: - """v1_troubleshooting_top_sites_by_alerts_post + ) -> ApiResponse[object]: + """v1_software_rollouts_put + Modify update rollout :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_troubleshooting_top_sites_by_alerts_post_request: (required) - :type v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest + :param v1_software_rollouts_put_request: (required) + :type v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99765,9 +99745,9 @@ def v1_troubleshooting_top_sites_by_alerts_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_top_sites_by_alerts_post_serialize( + _param = self._v1_software_rollouts_put_serialize( authorization=authorization, - v1_troubleshooting_top_sites_by_alerts_post_request=v1_troubleshooting_top_sites_by_alerts_post_request, + v1_software_rollouts_put_request=v1_software_rollouts_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99775,7 +99755,7 @@ def v1_troubleshooting_top_sites_by_alerts_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingTopSitesByAlertsPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -99789,10 +99769,10 @@ def v1_troubleshooting_top_sites_by_alerts_post_with_http_info( @validate_call - def v1_troubleshooting_top_sites_by_alerts_post_without_preload_content( + def v1_software_rollouts_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, + v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99806,13 +99786,14 @@ def v1_troubleshooting_top_sites_by_alerts_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_troubleshooting_top_sites_by_alerts_post + """v1_software_rollouts_put + Modify update rollout :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_troubleshooting_top_sites_by_alerts_post_request: (required) - :type v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest + :param v1_software_rollouts_put_request: (required) + :type v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99835,9 +99816,9 @@ def v1_troubleshooting_top_sites_by_alerts_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_top_sites_by_alerts_post_serialize( + _param = self._v1_software_rollouts_put_serialize( authorization=authorization, - v1_troubleshooting_top_sites_by_alerts_post_request=v1_troubleshooting_top_sites_by_alerts_post_request, + v1_software_rollouts_put_request=v1_software_rollouts_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99845,7 +99826,7 @@ def v1_troubleshooting_top_sites_by_alerts_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingTopSitesByAlertsPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -99854,10 +99835,10 @@ def v1_troubleshooting_top_sites_by_alerts_post_without_preload_content( return response_data.response - def _v1_troubleshooting_top_sites_by_alerts_post_serialize( + def _v1_software_rollouts_put_serialize( self, authorization, - v1_troubleshooting_top_sites_by_alerts_post_request, + v1_software_rollouts_put_request, _request_auth, _content_type, _headers, @@ -99885,8 +99866,8 @@ def _v1_troubleshooting_top_sites_by_alerts_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_troubleshooting_top_sites_by_alerts_post_request is not None: - _body_params = v1_troubleshooting_top_sites_by_alerts_post_request + if v1_software_rollouts_put_request is not None: + _body_params = v1_software_rollouts_put_request # set the HTTP header `Accept` @@ -99917,8 +99898,8 @@ def _v1_troubleshooting_top_sites_by_alerts_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/troubleshooting/top-sites-by-alerts', + method='PUT', + resource_path='/v1/software/rollouts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -99935,11 +99916,10 @@ def _v1_troubleshooting_top_sites_by_alerts_post_serialize( @validate_call - def v1_users_email_password_patch( + def v1_software_rollouts_schedule_post( self, - email: Annotated[StrictStr, Field(description="User email address")], - token: Annotated[StrictStr, Field(description="Password reset token")], - v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_software_rollouts_schedule_post_request: V1SoftwareRolloutsSchedulePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99952,17 +99932,15 @@ def v1_users_email_password_patch( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_users_email_password_patch + ) -> object: + """v1_software_rollouts_schedule_post - Change password for a user using email and token + Schedule rollout to upgrade now, later or user-triggered - :param email: User email address (required) - :type email: str - :param token: Password reset token (required) - :type token: str - :param v1_users_email_password_patch_request: (required) - :type v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_software_rollouts_schedule_post_request: (required) + :type v1_software_rollouts_schedule_post_request: V1SoftwareRolloutsSchedulePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -99985,10 +99963,9 @@ def v1_users_email_password_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_email_password_patch_serialize( - email=email, - token=token, - v1_users_email_password_patch_request=v1_users_email_password_patch_request, + _param = self._v1_software_rollouts_schedule_post_serialize( + authorization=authorization, + v1_software_rollouts_schedule_post_request=v1_software_rollouts_schedule_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99996,10 +99973,7 @@ def v1_users_email_password_patch( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': None, - '403': None, - '500': None, + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -100013,11 +99987,10 @@ def v1_users_email_password_patch( @validate_call - def v1_users_email_password_patch_with_http_info( + def v1_software_rollouts_schedule_post_with_http_info( self, - email: Annotated[StrictStr, Field(description="User email address")], - token: Annotated[StrictStr, Field(description="Password reset token")], - v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_software_rollouts_schedule_post_request: V1SoftwareRolloutsSchedulePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100030,17 +100003,15 @@ def v1_users_email_password_patch_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_users_email_password_patch + ) -> ApiResponse[object]: + """v1_software_rollouts_schedule_post - Change password for a user using email and token + Schedule rollout to upgrade now, later or user-triggered - :param email: User email address (required) - :type email: str - :param token: Password reset token (required) - :type token: str - :param v1_users_email_password_patch_request: (required) - :type v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_software_rollouts_schedule_post_request: (required) + :type v1_software_rollouts_schedule_post_request: V1SoftwareRolloutsSchedulePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100063,10 +100034,9 @@ def v1_users_email_password_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_email_password_patch_serialize( - email=email, - token=token, - v1_users_email_password_patch_request=v1_users_email_password_patch_request, + _param = self._v1_software_rollouts_schedule_post_serialize( + authorization=authorization, + v1_software_rollouts_schedule_post_request=v1_software_rollouts_schedule_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100074,10 +100044,7 @@ def v1_users_email_password_patch_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': None, - '403': None, - '500': None, + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -100091,11 +100058,10 @@ def v1_users_email_password_patch_with_http_info( @validate_call - def v1_users_email_password_patch_without_preload_content( + def v1_software_rollouts_schedule_post_without_preload_content( self, - email: Annotated[StrictStr, Field(description="User email address")], - token: Annotated[StrictStr, Field(description="Password reset token")], - v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_software_rollouts_schedule_post_request: V1SoftwareRolloutsSchedulePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100109,16 +100075,14 @@ def v1_users_email_password_patch_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_email_password_patch + """v1_software_rollouts_schedule_post - Change password for a user using email and token + Schedule rollout to upgrade now, later or user-triggered - :param email: User email address (required) - :type email: str - :param token: Password reset token (required) - :type token: str - :param v1_users_email_password_patch_request: (required) - :type v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_software_rollouts_schedule_post_request: (required) + :type v1_software_rollouts_schedule_post_request: V1SoftwareRolloutsSchedulePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100141,10 +100105,9 @@ def v1_users_email_password_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_email_password_patch_serialize( - email=email, - token=token, - v1_users_email_password_patch_request=v1_users_email_password_patch_request, + _param = self._v1_software_rollouts_schedule_post_serialize( + authorization=authorization, + v1_software_rollouts_schedule_post_request=v1_software_rollouts_schedule_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100152,10 +100115,7 @@ def v1_users_email_password_patch_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': None, - '403': None, - '500': None, + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -100164,11 +100124,10 @@ def v1_users_email_password_patch_without_preload_content( return response_data.response - def _v1_users_email_password_patch_serialize( + def _v1_software_rollouts_schedule_post_serialize( self, - email, - token, - v1_users_email_password_patch_request, + authorization, + v1_software_rollouts_schedule_post_request, _request_auth, _content_type, _headers, @@ -100190,20 +100149,23 @@ def _v1_users_email_password_patch_serialize( _body_params: Optional[bytes] = None # process the path parameters - if email is not None: - _path_params['email'] = email # process the query parameters - if token is not None: - - _query_params.append(('token', token)) - # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_users_email_password_patch_request is not None: - _body_params = v1_users_email_password_patch_request + if v1_software_rollouts_schedule_post_request is not None: + _body_params = v1_software_rollouts_schedule_post_request + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -100225,8 +100187,8 @@ def _v1_users_email_password_patch_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/users/{email}/password', + method='POST', + resource_path='/v1/software/rollouts/schedule', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -100243,9 +100205,10 @@ def _v1_users_email_password_patch_serialize( @validate_call - def v1_users_email_recovery_get( + def v1_software_running_details_get( self, - email: Annotated[StrictStr, Field(description="User email address")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + running_version: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100258,13 +100221,14 @@ def v1_users_email_recovery_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_users_email_recovery_get + ) -> V1SoftwareRunningDetailsGetResponse: + """v1_software_running_details_get - Send password recovery email to user - :param email: User email address (required) - :type email: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param running_version: + :type running_version: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100287,8 +100251,9 @@ def v1_users_email_recovery_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_email_recovery_get_serialize( - email=email, + _param = self._v1_software_running_details_get_serialize( + authorization=authorization, + running_version=running_version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100296,9 +100261,7 @@ def v1_users_email_recovery_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '500': None, + '200': "V1SoftwareRunningDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -100312,9 +100275,10 @@ def v1_users_email_recovery_get( @validate_call - def v1_users_email_recovery_get_with_http_info( + def v1_software_running_details_get_with_http_info( self, - email: Annotated[StrictStr, Field(description="User email address")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + running_version: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100327,13 +100291,14 @@ def v1_users_email_recovery_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_users_email_recovery_get + ) -> ApiResponse[V1SoftwareRunningDetailsGetResponse]: + """v1_software_running_details_get - Send password recovery email to user - :param email: User email address (required) - :type email: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param running_version: + :type running_version: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100356,8 +100321,9 @@ def v1_users_email_recovery_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_email_recovery_get_serialize( - email=email, + _param = self._v1_software_running_details_get_serialize( + authorization=authorization, + running_version=running_version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100365,9 +100331,7 @@ def v1_users_email_recovery_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '500': None, + '200': "V1SoftwareRunningDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -100381,9 +100345,10 @@ def v1_users_email_recovery_get_with_http_info( @validate_call - def v1_users_email_recovery_get_without_preload_content( + def v1_software_running_details_get_without_preload_content( self, - email: Annotated[StrictStr, Field(description="User email address")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + running_version: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100397,12 +100362,13 @@ def v1_users_email_recovery_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_email_recovery_get + """v1_software_running_details_get - Send password recovery email to user - :param email: User email address (required) - :type email: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param running_version: + :type running_version: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100425,8 +100391,9 @@ def v1_users_email_recovery_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_email_recovery_get_serialize( - email=email, + _param = self._v1_software_running_details_get_serialize( + authorization=authorization, + running_version=running_version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100434,9 +100401,7 @@ def v1_users_email_recovery_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '500': None, + '200': "V1SoftwareRunningDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -100445,9 +100410,10 @@ def v1_users_email_recovery_get_without_preload_content( return response_data.response - def _v1_users_email_recovery_get_serialize( + def _v1_software_running_details_get_serialize( self, - email, + authorization, + running_version, _request_auth, _content_type, _headers, @@ -100469,14 +100435,25 @@ def _v1_users_email_recovery_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if email is not None: - _path_params['email'] = email # process the query parameters + if running_version is not None: + + _query_params.append(('runningVersion', running_version)) + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -100486,7 +100463,7 @@ def _v1_users_email_recovery_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/users/{email}/recovery', + resource_path='/v1/software/running/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -100503,10 +100480,9 @@ def _v1_users_email_recovery_get_serialize( @validate_call - def v1_users_email_verified_patch( + def v1_software_running_summary_get( self, - email: Annotated[StrictStr, Field(description="User email address")], - token: Annotated[StrictStr, Field(description="Email verification token")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100519,15 +100495,12 @@ def v1_users_email_verified_patch( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_users_email_verified_patch + ) -> V1SoftwareRunningSummaryGetResponse: + """v1_software_running_summary_get - Verify user email using verification token - :param email: User email address (required) - :type email: str - :param token: Email verification token (required) - :type token: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100550,9 +100523,8 @@ def v1_users_email_verified_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_email_verified_patch_serialize( - email=email, - token=token, + _param = self._v1_software_running_summary_get_serialize( + authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100560,10 +100532,7 @@ def v1_users_email_verified_patch( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': None, - '403': None, - '500': None, + '200': "V1SoftwareRunningSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -100577,10 +100546,9 @@ def v1_users_email_verified_patch( @validate_call - def v1_users_email_verified_patch_with_http_info( + def v1_software_running_summary_get_with_http_info( self, - email: Annotated[StrictStr, Field(description="User email address")], - token: Annotated[StrictStr, Field(description="Email verification token")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100593,15 +100561,12 @@ def v1_users_email_verified_patch_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_users_email_verified_patch + ) -> ApiResponse[V1SoftwareRunningSummaryGetResponse]: + """v1_software_running_summary_get - Verify user email using verification token - :param email: User email address (required) - :type email: str - :param token: Email verification token (required) - :type token: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100624,9 +100589,8 @@ def v1_users_email_verified_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_email_verified_patch_serialize( - email=email, - token=token, + _param = self._v1_software_running_summary_get_serialize( + authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100634,10 +100598,7 @@ def v1_users_email_verified_patch_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': None, - '403': None, - '500': None, + '200': "V1SoftwareRunningSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -100651,10 +100612,9 @@ def v1_users_email_verified_patch_with_http_info( @validate_call - def v1_users_email_verified_patch_without_preload_content( + def v1_software_running_summary_get_without_preload_content( self, - email: Annotated[StrictStr, Field(description="User email address")], - token: Annotated[StrictStr, Field(description="Email verification token")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100668,14 +100628,11 @@ def v1_users_email_verified_patch_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_email_verified_patch + """v1_software_running_summary_get - Verify user email using verification token - :param email: User email address (required) - :type email: str - :param token: Email verification token (required) - :type token: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100698,9 +100655,8 @@ def v1_users_email_verified_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_email_verified_patch_serialize( - email=email, - token=token, + _param = self._v1_software_running_summary_get_serialize( + authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100708,10 +100664,7 @@ def v1_users_email_verified_patch_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': None, - '403': None, - '500': None, + '200': "V1SoftwareRunningSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -100720,10 +100673,9 @@ def v1_users_email_verified_patch_without_preload_content( return response_data.response - def _v1_users_email_verified_patch_serialize( + def _v1_software_running_summary_get_serialize( self, - email, - token, + authorization, _request_auth, _content_type, _headers, @@ -100745,18 +100697,21 @@ def _v1_users_email_verified_patch_serialize( _body_params: Optional[bytes] = None # process the path parameters - if email is not None: - _path_params['email'] = email # process the query parameters - if token is not None: - - _query_params.append(('token', token)) - # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # authentication setting @@ -100765,8 +100720,8 @@ def _v1_users_email_verified_patch_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/users/{email}/verified', + method='GET', + resource_path='/v1/software/running/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -100783,10 +100738,11 @@ def _v1_users_email_verified_patch_serialize( @validate_call - def v1_users_get( + def v1_talkers_device_device_id_top_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Optional[StrictStr] = None, + device_id: StrictInt, + v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100799,15 +100755,17 @@ def v1_users_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1UsersGetResponse: - """v1_users_get + ) -> V1TalkersDeviceDeviceIdTopPostResponse: + """v1_talkers_device_device_id_top_post - Get user information by user IDs with detailed profile data. + Get top talkers for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: - :type id: str + :param device_id: (required) + :type device_id: int + :param v1_talkers_device_device_id_top_post_request: (required) + :type v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100830,9 +100788,10 @@ def v1_users_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_get_serialize( + _param = self._v1_talkers_device_device_id_top_post_serialize( authorization=authorization, - id=id, + device_id=device_id, + v1_talkers_device_device_id_top_post_request=v1_talkers_device_device_id_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100840,7 +100799,7 @@ def v1_users_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersGetResponse", + '200': "V1TalkersDeviceDeviceIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -100854,10 +100813,11 @@ def v1_users_get( @validate_call - def v1_users_get_with_http_info( + def v1_talkers_device_device_id_top_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Optional[StrictStr] = None, + device_id: StrictInt, + v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100870,15 +100830,17 @@ def v1_users_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1UsersGetResponse]: - """v1_users_get + ) -> ApiResponse[V1TalkersDeviceDeviceIdTopPostResponse]: + """v1_talkers_device_device_id_top_post - Get user information by user IDs with detailed profile data. + Get top talkers for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: - :type id: str + :param device_id: (required) + :type device_id: int + :param v1_talkers_device_device_id_top_post_request: (required) + :type v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100901,9 +100863,10 @@ def v1_users_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_get_serialize( + _param = self._v1_talkers_device_device_id_top_post_serialize( authorization=authorization, - id=id, + device_id=device_id, + v1_talkers_device_device_id_top_post_request=v1_talkers_device_device_id_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100911,7 +100874,7 @@ def v1_users_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersGetResponse", + '200': "V1TalkersDeviceDeviceIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -100925,10 +100888,11 @@ def v1_users_get_with_http_info( @validate_call - def v1_users_get_without_preload_content( + def v1_talkers_device_device_id_top_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Optional[StrictStr] = None, + device_id: StrictInt, + v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100942,14 +100906,16 @@ def v1_users_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_get + """v1_talkers_device_device_id_top_post - Get user information by user IDs with detailed profile data. + Get top talkers for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: - :type id: str + :param device_id: (required) + :type device_id: int + :param v1_talkers_device_device_id_top_post_request: (required) + :type v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -100972,9 +100938,10 @@ def v1_users_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_get_serialize( + _param = self._v1_talkers_device_device_id_top_post_serialize( authorization=authorization, - id=id, + device_id=device_id, + v1_talkers_device_device_id_top_post_request=v1_talkers_device_device_id_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100982,7 +100949,7 @@ def v1_users_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersGetResponse", + '200': "V1TalkersDeviceDeviceIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -100991,10 +100958,11 @@ def v1_users_get_without_preload_content( return response_data.response - def _v1_users_get_serialize( + def _v1_talkers_device_device_id_top_post_serialize( self, authorization, - id, + device_id, + v1_talkers_device_device_id_top_post_request, _request_auth, _content_type, _headers, @@ -101016,16 +100984,16 @@ def _v1_users_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if device_id is not None: + _path_params['deviceId'] = device_id # process the query parameters - if id is not None: - - _query_params.append(('id', id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_talkers_device_device_id_top_post_request is not None: + _body_params = v1_talkers_device_device_id_top_post_request # set the HTTP header `Accept` @@ -101036,6 +101004,19 @@ def _v1_users_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -101043,8 +101024,8 @@ def _v1_users_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/users', + method='POST', + resource_path='/v1/talkers/device/{deviceId}/top', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -101061,10 +101042,11 @@ def _v1_users_get_serialize( @validate_call - def v1_users_id_delete( + def v1_talkers_site_site_id_top_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + site_id: StrictInt, + v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101077,15 +101059,17 @@ def v1_users_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_users_id_delete + ) -> V1TalkersSiteSiteIdTopPostResponse: + """v1_talkers_site_site_id_top_post - Delete user account. + Get top talkers for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str + :param site_id: (required) + :type site_id: int + :param v1_talkers_site_site_id_top_post_request: (required) + :type v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -101108,9 +101092,10 @@ def v1_users_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_delete_serialize( + _param = self._v1_talkers_site_site_id_top_post_serialize( authorization=authorization, - id=id, + site_id=site_id, + v1_talkers_site_site_id_top_post_request=v1_talkers_site_site_id_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -101118,7 +101103,7 @@ def v1_users_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1TalkersSiteSiteIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -101132,10 +101117,11 @@ def v1_users_id_delete( @validate_call - def v1_users_id_delete_with_http_info( + def v1_talkers_site_site_id_top_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + site_id: StrictInt, + v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101148,15 +101134,17 @@ def v1_users_id_delete_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_users_id_delete + ) -> ApiResponse[V1TalkersSiteSiteIdTopPostResponse]: + """v1_talkers_site_site_id_top_post - Delete user account. + Get top talkers for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str + :param site_id: (required) + :type site_id: int + :param v1_talkers_site_site_id_top_post_request: (required) + :type v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -101179,9 +101167,10 @@ def v1_users_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_delete_serialize( + _param = self._v1_talkers_site_site_id_top_post_serialize( authorization=authorization, - id=id, + site_id=site_id, + v1_talkers_site_site_id_top_post_request=v1_talkers_site_site_id_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -101189,7 +101178,7 @@ def v1_users_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1TalkersSiteSiteIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -101203,10 +101192,11 @@ def v1_users_id_delete_with_http_info( @validate_call - def v1_users_id_delete_without_preload_content( + def v1_talkers_site_site_id_top_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + site_id: StrictInt, + v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101220,14 +101210,16 @@ def v1_users_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_id_delete + """v1_talkers_site_site_id_top_post - Delete user account. + Get top talkers for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str + :param site_id: (required) + :type site_id: int + :param v1_talkers_site_site_id_top_post_request: (required) + :type v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -101250,9 +101242,10 @@ def v1_users_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_delete_serialize( + _param = self._v1_talkers_site_site_id_top_post_serialize( authorization=authorization, - id=id, + site_id=site_id, + v1_talkers_site_site_id_top_post_request=v1_talkers_site_site_id_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -101260,7 +101253,7 @@ def v1_users_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1TalkersSiteSiteIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -101269,10 +101262,11 @@ def v1_users_id_delete_without_preload_content( return response_data.response - def _v1_users_id_delete_serialize( + def _v1_talkers_site_site_id_top_post_serialize( self, authorization, - id, + site_id, + v1_talkers_site_site_id_top_post_request, _request_auth, _content_type, _headers, @@ -101294,17 +101288,39 @@ def _v1_users_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if site_id is not None: + _path_params['siteId'] = site_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_talkers_site_site_id_top_post_request is not None: + _body_params = v1_talkers_site_site_id_top_post_request + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -101312,8 +101328,8 @@ def _v1_users_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/users/{id}', + method='POST', + resource_path='/v1/talkers/site/{siteId}/top', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -101330,10 +101346,10 @@ def _v1_users_id_delete_serialize( @validate_call - def v1_users_id_enterprises_get( + def v1_temp_password_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + v1_temp_password_put_request: V1TempPasswordPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101346,15 +101362,3432 @@ def v1_users_id_enterprises_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1UsersIdEnterprisesGetResponse: - """v1_users_id_enterprises_get + ) -> object: + """v1_temp_password_put - Get all enterprises a specific user can access. + Generate and send temporary passwords to multiple emails for B2B service access. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) - :type id: str + :param v1_temp_password_put_request: (required) + :type v1_temp_password_put_request: V1TempPasswordPutRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_temp_password_put_serialize( + authorization=authorization, + v1_temp_password_put_request=v1_temp_password_put_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_temp_password_put_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_temp_password_put_request: V1TempPasswordPutRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[object]: + """v1_temp_password_put + + Generate and send temporary passwords to multiple emails for B2B service access. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_temp_password_put_request: (required) + :type v1_temp_password_put_request: V1TempPasswordPutRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_temp_password_put_serialize( + authorization=authorization, + v1_temp_password_put_request=v1_temp_password_put_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_temp_password_put_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_temp_password_put_request: V1TempPasswordPutRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_temp_password_put + + Generate and send temporary passwords to multiple emails for B2B service access. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_temp_password_put_request: (required) + :type v1_temp_password_put_request: V1TempPasswordPutRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_temp_password_put_serialize( + authorization=authorization, + v1_temp_password_put_request=v1_temp_password_put_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_temp_password_put_serialize( + self, + authorization, + v1_temp_password_put_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + if v1_temp_password_put_request is not None: + _body_params = v1_temp_password_put_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/v1/temp/password', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_troubleshooting_device_device_id_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: StrictInt, + v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1TroubleshootingDeviceDeviceIdPostResponse: + """v1_troubleshooting_device_device_id_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param device_id: (required) + :type device_id: int + :param v1_troubleshooting_device_device_id_post_request: (required) + :type v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_device_device_id_post_serialize( + authorization=authorization, + device_id=device_id, + v1_troubleshooting_device_device_id_post_request=v1_troubleshooting_device_device_id_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingDeviceDeviceIdPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_troubleshooting_device_device_id_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: StrictInt, + v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1TroubleshootingDeviceDeviceIdPostResponse]: + """v1_troubleshooting_device_device_id_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param device_id: (required) + :type device_id: int + :param v1_troubleshooting_device_device_id_post_request: (required) + :type v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_device_device_id_post_serialize( + authorization=authorization, + device_id=device_id, + v1_troubleshooting_device_device_id_post_request=v1_troubleshooting_device_device_id_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingDeviceDeviceIdPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_troubleshooting_device_device_id_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: StrictInt, + v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_troubleshooting_device_device_id_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param device_id: (required) + :type device_id: int + :param v1_troubleshooting_device_device_id_post_request: (required) + :type v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_device_device_id_post_serialize( + authorization=authorization, + device_id=device_id, + v1_troubleshooting_device_device_id_post_request=v1_troubleshooting_device_device_id_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingDeviceDeviceIdPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_troubleshooting_device_device_id_post_serialize( + self, + authorization, + device_id, + v1_troubleshooting_device_device_id_post_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if device_id is not None: + _path_params['deviceId'] = device_id + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + if v1_troubleshooting_device_device_id_post_request is not None: + _body_params = v1_troubleshooting_device_device_id_post_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1/troubleshooting/device/{deviceId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_troubleshooting_enterprise_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1TroubleshootingEnterprisePostResponse: + """v1_troubleshooting_enterprise_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_troubleshooting_enterprise_post_request: (required) + :type v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_enterprise_post_serialize( + authorization=authorization, + v1_troubleshooting_enterprise_post_request=v1_troubleshooting_enterprise_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingEnterprisePostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_troubleshooting_enterprise_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1TroubleshootingEnterprisePostResponse]: + """v1_troubleshooting_enterprise_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_troubleshooting_enterprise_post_request: (required) + :type v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_enterprise_post_serialize( + authorization=authorization, + v1_troubleshooting_enterprise_post_request=v1_troubleshooting_enterprise_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingEnterprisePostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_troubleshooting_enterprise_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_troubleshooting_enterprise_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_troubleshooting_enterprise_post_request: (required) + :type v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_enterprise_post_serialize( + authorization=authorization, + v1_troubleshooting_enterprise_post_request=v1_troubleshooting_enterprise_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingEnterprisePostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_troubleshooting_enterprise_post_serialize( + self, + authorization, + v1_troubleshooting_enterprise_post_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + if v1_troubleshooting_enterprise_post_request is not None: + _body_params = v1_troubleshooting_enterprise_post_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1/troubleshooting/enterprise', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_troubleshooting_filter_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1TroubleshootingFilterGetResponse: + """v1_troubleshooting_filter_get + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_filter_get_serialize( + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingFilterGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_troubleshooting_filter_get_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1TroubleshootingFilterGetResponse]: + """v1_troubleshooting_filter_get + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_filter_get_serialize( + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingFilterGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_troubleshooting_filter_get_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_troubleshooting_filter_get + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_filter_get_serialize( + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingFilterGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_troubleshooting_filter_get_serialize( + self, + authorization, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/troubleshooting/filter', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_troubleshooting_site_connectivity_status_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1TroubleshootingSiteConnectivityStatusGetResponse: + """v1_troubleshooting_site_connectivity_status_get + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_site_connectivity_status_get_serialize( + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_troubleshooting_site_connectivity_status_get_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1TroubleshootingSiteConnectivityStatusGetResponse]: + """v1_troubleshooting_site_connectivity_status_get + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_site_connectivity_status_get_serialize( + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_troubleshooting_site_connectivity_status_get_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_troubleshooting_site_connectivity_status_get + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_site_connectivity_status_get_serialize( + authorization=authorization, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_troubleshooting_site_connectivity_status_get_serialize( + self, + authorization, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/troubleshooting/site-connectivity-status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_troubleshooting_site_site_id_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + site_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1TroubleshootingSiteSiteIdGetResponse: + """v1_troubleshooting_site_site_id_get + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param site_id: (required) + :type site_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_site_site_id_get_serialize( + authorization=authorization, + site_id=site_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingSiteSiteIdGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_troubleshooting_site_site_id_get_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + site_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1TroubleshootingSiteSiteIdGetResponse]: + """v1_troubleshooting_site_site_id_get + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param site_id: (required) + :type site_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_site_site_id_get_serialize( + authorization=authorization, + site_id=site_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingSiteSiteIdGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_troubleshooting_site_site_id_get_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + site_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_troubleshooting_site_site_id_get + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param site_id: (required) + :type site_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_site_site_id_get_serialize( + authorization=authorization, + site_id=site_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingSiteSiteIdGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_troubleshooting_site_site_id_get_serialize( + self, + authorization, + site_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if site_id is not None: + _path_params['siteId'] = site_id + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/troubleshooting/site/{siteId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_troubleshooting_top_sites_by_alerts_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1TroubleshootingTopSitesByAlertsPostResponse: + """v1_troubleshooting_top_sites_by_alerts_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_troubleshooting_top_sites_by_alerts_post_request: (required) + :type v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_top_sites_by_alerts_post_serialize( + authorization=authorization, + v1_troubleshooting_top_sites_by_alerts_post_request=v1_troubleshooting_top_sites_by_alerts_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingTopSitesByAlertsPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_troubleshooting_top_sites_by_alerts_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1TroubleshootingTopSitesByAlertsPostResponse]: + """v1_troubleshooting_top_sites_by_alerts_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_troubleshooting_top_sites_by_alerts_post_request: (required) + :type v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_top_sites_by_alerts_post_serialize( + authorization=authorization, + v1_troubleshooting_top_sites_by_alerts_post_request=v1_troubleshooting_top_sites_by_alerts_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingTopSitesByAlertsPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_troubleshooting_top_sites_by_alerts_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_troubleshooting_top_sites_by_alerts_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_troubleshooting_top_sites_by_alerts_post_request: (required) + :type v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_troubleshooting_top_sites_by_alerts_post_serialize( + authorization=authorization, + v1_troubleshooting_top_sites_by_alerts_post_request=v1_troubleshooting_top_sites_by_alerts_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1TroubleshootingTopSitesByAlertsPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_troubleshooting_top_sites_by_alerts_post_serialize( + self, + authorization, + v1_troubleshooting_top_sites_by_alerts_post_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + if v1_troubleshooting_top_sites_by_alerts_post_request is not None: + _body_params = v1_troubleshooting_top_sites_by_alerts_post_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1/troubleshooting/top-sites-by-alerts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_users_email_password_patch( + self, + email: Annotated[StrictStr, Field(description="User email address")], + token: Annotated[StrictStr, Field(description="Password reset token")], + v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """v1_users_email_password_patch + + Change password for a user using email and token + + :param email: User email address (required) + :type email: str + :param token: Password reset token (required) + :type token: str + :param v1_users_email_password_patch_request: (required) + :type v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_email_password_patch_serialize( + email=email, + token=token, + v1_users_email_password_patch_request=v1_users_email_password_patch_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_users_email_password_patch_with_http_info( + self, + email: Annotated[StrictStr, Field(description="User email address")], + token: Annotated[StrictStr, Field(description="Password reset token")], + v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """v1_users_email_password_patch + + Change password for a user using email and token + + :param email: User email address (required) + :type email: str + :param token: Password reset token (required) + :type token: str + :param v1_users_email_password_patch_request: (required) + :type v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_email_password_patch_serialize( + email=email, + token=token, + v1_users_email_password_patch_request=v1_users_email_password_patch_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_users_email_password_patch_without_preload_content( + self, + email: Annotated[StrictStr, Field(description="User email address")], + token: Annotated[StrictStr, Field(description="Password reset token")], + v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_users_email_password_patch + + Change password for a user using email and token + + :param email: User email address (required) + :type email: str + :param token: Password reset token (required) + :type token: str + :param v1_users_email_password_patch_request: (required) + :type v1_users_email_password_patch_request: V1UsersEmailPasswordPatchRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_email_password_patch_serialize( + email=email, + token=token, + v1_users_email_password_patch_request=v1_users_email_password_patch_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_users_email_password_patch_serialize( + self, + email, + token, + v1_users_email_password_patch_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if email is not None: + _path_params['email'] = email + # process the query parameters + if token is not None: + + _query_params.append(('token', token)) + + # process the header parameters + # process the form parameters + # process the body parameter + if v1_users_email_password_patch_request is not None: + _body_params = v1_users_email_password_patch_request + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/v1/users/{email}/password', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_users_email_recovery_get( + self, + email: Annotated[StrictStr, Field(description="User email address")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """v1_users_email_recovery_get + + Send password recovery email to user + + :param email: User email address (required) + :type email: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_email_recovery_get_serialize( + email=email, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_users_email_recovery_get_with_http_info( + self, + email: Annotated[StrictStr, Field(description="User email address")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """v1_users_email_recovery_get + + Send password recovery email to user + + :param email: User email address (required) + :type email: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_email_recovery_get_serialize( + email=email, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_users_email_recovery_get_without_preload_content( + self, + email: Annotated[StrictStr, Field(description="User email address")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_users_email_recovery_get + + Send password recovery email to user + + :param email: User email address (required) + :type email: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_email_recovery_get_serialize( + email=email, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '400': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_users_email_recovery_get_serialize( + self, + email, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if email is not None: + _path_params['email'] = email + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/users/{email}/recovery', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_users_email_verified_patch( + self, + email: Annotated[StrictStr, Field(description="User email address")], + token: Annotated[StrictStr, Field(description="Email verification token")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """v1_users_email_verified_patch + + Verify user email using verification token + + :param email: User email address (required) + :type email: str + :param token: Email verification token (required) + :type token: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_email_verified_patch_serialize( + email=email, + token=token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_users_email_verified_patch_with_http_info( + self, + email: Annotated[StrictStr, Field(description="User email address")], + token: Annotated[StrictStr, Field(description="Email verification token")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """v1_users_email_verified_patch + + Verify user email using verification token + + :param email: User email address (required) + :type email: str + :param token: Email verification token (required) + :type token: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_email_verified_patch_serialize( + email=email, + token=token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_users_email_verified_patch_without_preload_content( + self, + email: Annotated[StrictStr, Field(description="User email address")], + token: Annotated[StrictStr, Field(description="Email verification token")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_users_email_verified_patch + + Verify user email using verification token + + :param email: User email address (required) + :type email: str + :param token: Email verification token (required) + :type token: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_email_verified_patch_serialize( + email=email, + token=token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '400': None, + '403': None, + '500': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_users_email_verified_patch_serialize( + self, + email, + token, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if email is not None: + _path_params['email'] = email + # process the query parameters + if token is not None: + + _query_params.append(('token', token)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/v1/users/{email}/verified', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_users_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1UsersGetResponse: + """v1_users_get + + Get user information by user IDs with detailed profile data. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_get_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1UsersGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_users_get_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1UsersGetResponse]: + """v1_users_get + + Get user information by user IDs with detailed profile data. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_get_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1UsersGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_users_get_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_users_get + + Get user information by user IDs with detailed profile data. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_get_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1UsersGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_users_get_serialize( + self, + authorization, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if id is not None: + + _query_params.append(('id', id)) + + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_users_id_delete( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """v1_users_id_delete + + Delete user account. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_id_delete_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_users_id_delete_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """v1_users_id_delete + + Delete user account. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_id_delete_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_users_id_delete_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_users_id_delete + + Delete user account. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_id_delete_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_users_id_delete_serialize( + self, + authorization, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + + + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1/users/{id}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_users_id_enterprises_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictStr, Field(description="userId")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1UsersIdEnterprisesGetResponse: + """v1_users_id_enterprises_get + + Get all enterprises a specific user can access. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: userId (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_id_enterprises_get_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1UsersIdEnterprisesGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_users_id_enterprises_get_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictStr, Field(description="userId")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1UsersIdEnterprisesGetResponse]: + """v1_users_id_enterprises_get + + Get all enterprises a specific user can access. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: userId (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -101397,11 +104830,11 @@ def v1_users_id_enterprises_get( return self.api_client.response_deserialize( response_data=response_data, response_types_map=_response_types_map, - ).data + ) @validate_call - def v1_users_id_enterprises_get_with_http_info( + def v1_users_id_enterprises_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: Annotated[StrictStr, Field(description="userId")], @@ -101417,7 +104850,7 @@ def v1_users_id_enterprises_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1UsersIdEnterprisesGetResponse]: + ) -> RESTResponseType: """v1_users_id_enterprises_get Get all enterprises a specific user can access. @@ -101464,6 +104897,211 @@ def v1_users_id_enterprises_get_with_http_info( *_param, _request_timeout=_request_timeout ) + return response_data.response + + + def _v1_users_id_enterprises_get_serialize( + self, + authorization, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/users/{id}/enterprises', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_users_id_groups_enterprises_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictStr, Field(description="userId")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1UsersIdGroupsEnterprisesGetResponse: + """v1_users_id_groups_enterprises_get + + Get enterprise-specific groups for a user. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: userId (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_id_groups_enterprises_get_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1UsersIdGroupsEnterprisesGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_users_id_groups_enterprises_get_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictStr, Field(description="userId")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1UsersIdGroupsEnterprisesGetResponse]: + """v1_users_id_groups_enterprises_get + + Get enterprise-specific groups for a user. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: userId (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_id_groups_enterprises_get_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1UsersIdGroupsEnterprisesGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) response_data.read() return self.api_client.response_deserialize( response_data=response_data, @@ -101472,7 +105110,7 @@ def v1_users_id_enterprises_get_with_http_info( @validate_call - def v1_users_id_enterprises_get_without_preload_content( + def v1_users_id_groups_enterprises_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: Annotated[StrictStr, Field(description="userId")], @@ -101489,9 +105127,9 @@ def v1_users_id_enterprises_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_id_enterprises_get + """v1_users_id_groups_enterprises_get - Get all enterprises a specific user can access. + Get enterprise-specific groups for a user. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -101519,7 +105157,7 @@ def v1_users_id_enterprises_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_enterprises_get_serialize( + _param = self._v1_users_id_groups_enterprises_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -101529,7 +105167,7 @@ def v1_users_id_enterprises_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdEnterprisesGetResponse", + '200': "V1UsersIdGroupsEnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -101538,7 +105176,7 @@ def v1_users_id_enterprises_get_without_preload_content( return response_data.response - def _v1_users_id_enterprises_get_serialize( + def _v1_users_id_groups_enterprises_get_serialize( self, authorization, id, @@ -101589,7 +105227,7 @@ def _v1_users_id_enterprises_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/users/{id}/enterprises', + resource_path='/v1/users/{id}/groups/enterprises', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -101606,7 +105244,7 @@ def _v1_users_id_enterprises_get_serialize( @validate_call - def v1_users_id_groups_enterprises_get( + def v1_users_id_groups_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: Annotated[StrictStr, Field(description="userId")], @@ -101622,10 +105260,286 @@ def v1_users_id_groups_enterprises_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1UsersIdGroupsEnterprisesGetResponse: - """v1_users_id_groups_enterprises_get + ) -> V1UsersIdGroupsGetResponse: + """v1_users_id_groups_get - Get enterprise-specific groups for a user. + Get all groups that a specific user belongs to. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: userId (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_id_groups_get_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1UsersIdGroupsGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v1_users_id_groups_get_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictStr, Field(description="userId")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V1UsersIdGroupsGetResponse]: + """v1_users_id_groups_get + + Get all groups that a specific user belongs to. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: userId (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_id_groups_get_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1UsersIdGroupsGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v1_users_id_groups_get_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictStr, Field(description="userId")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v1_users_id_groups_get + + Get all groups that a specific user belongs to. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param id: userId (required) + :type id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v1_users_id_groups_get_serialize( + authorization=authorization, + id=id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1UsersIdGroupsGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_users_id_groups_get_serialize( + self, + authorization, + id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if id is not None: + _path_params['id'] = id + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v1/users/{id}/groups', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def v1_users_id_groups_root_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictStr, Field(description="userId")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V1UsersIdGroupsRootGetResponse: + """v1_users_id_groups_root_get + + Get root-level groups for a user. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -101653,7 +105567,7 @@ def v1_users_id_groups_enterprises_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_groups_enterprises_get_serialize( + _param = self._v1_users_id_groups_root_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -101663,7 +105577,7 @@ def v1_users_id_groups_enterprises_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsEnterprisesGetResponse", + '200': "V1UsersIdGroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -101677,7 +105591,7 @@ def v1_users_id_groups_enterprises_get( @validate_call - def v1_users_id_groups_enterprises_get_with_http_info( + def v1_users_id_groups_root_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: Annotated[StrictStr, Field(description="userId")], @@ -101693,10 +105607,10 @@ def v1_users_id_groups_enterprises_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1UsersIdGroupsEnterprisesGetResponse]: - """v1_users_id_groups_enterprises_get + ) -> ApiResponse[V1UsersIdGroupsRootGetResponse]: + """v1_users_id_groups_root_get - Get enterprise-specific groups for a user. + Get root-level groups for a user. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -101724,7 +105638,7 @@ def v1_users_id_groups_enterprises_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_groups_enterprises_get_serialize( + _param = self._v1_users_id_groups_root_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -101734,7 +105648,7 @@ def v1_users_id_groups_enterprises_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsEnterprisesGetResponse", + '200': "V1UsersIdGroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -101748,7 +105662,7 @@ def v1_users_id_groups_enterprises_get_with_http_info( @validate_call - def v1_users_id_groups_enterprises_get_without_preload_content( + def v1_users_id_groups_root_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: Annotated[StrictStr, Field(description="userId")], @@ -101765,9 +105679,9 @@ def v1_users_id_groups_enterprises_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_id_groups_enterprises_get + """v1_users_id_groups_root_get - Get enterprise-specific groups for a user. + Get root-level groups for a user. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -101795,7 +105709,7 @@ def v1_users_id_groups_enterprises_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_groups_enterprises_get_serialize( + _param = self._v1_users_id_groups_root_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -101805,7 +105719,7 @@ def v1_users_id_groups_enterprises_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsEnterprisesGetResponse", + '200': "V1UsersIdGroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -101814,7 +105728,7 @@ def v1_users_id_groups_enterprises_get_without_preload_content( return response_data.response - def _v1_users_id_groups_enterprises_get_serialize( + def _v1_users_id_groups_root_get_serialize( self, authorization, id, @@ -101865,7 +105779,7 @@ def _v1_users_id_groups_enterprises_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/users/{id}/groups/enterprises', + resource_path='/v1/users/{id}/groups/root', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -101882,10 +105796,11 @@ def _v1_users_id_groups_enterprises_get_serialize( @validate_call - def v1_users_id_groups_get( + def v1_users_id_verify_patch( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + id: StrictStr, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101898,15 +105813,17 @@ def v1_users_id_groups_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1UsersIdGroupsGetResponse: - """v1_users_id_groups_get + ) -> None: + """v1_users_id_verify_patch - Get all groups that a specific user belongs to. + Resend account verification email to user. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) + :param id: (required) :type id: str + :param body: (required) + :type body: object :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -101929,9 +105846,10 @@ def v1_users_id_groups_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_groups_get_serialize( + _param = self._v1_users_id_verify_patch_serialize( authorization=authorization, id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -101939,7 +105857,7 @@ def v1_users_id_groups_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -101953,10 +105871,11 @@ def v1_users_id_groups_get( @validate_call - def v1_users_id_groups_get_with_http_info( + def v1_users_id_verify_patch_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + id: StrictStr, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101969,15 +105888,17 @@ def v1_users_id_groups_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1UsersIdGroupsGetResponse]: - """v1_users_id_groups_get + ) -> ApiResponse[None]: + """v1_users_id_verify_patch - Get all groups that a specific user belongs to. + Resend account verification email to user. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) + :param id: (required) :type id: str + :param body: (required) + :type body: object :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102000,9 +105921,10 @@ def v1_users_id_groups_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_groups_get_serialize( + _param = self._v1_users_id_verify_patch_serialize( authorization=authorization, id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102010,7 +105932,7 @@ def v1_users_id_groups_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -102024,10 +105946,11 @@ def v1_users_id_groups_get_with_http_info( @validate_call - def v1_users_id_groups_get_without_preload_content( + def v1_users_id_verify_patch_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + id: StrictStr, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102041,14 +105964,16 @@ def v1_users_id_groups_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_id_groups_get + """v1_users_id_verify_patch - Get all groups that a specific user belongs to. + Resend account verification email to user. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) + :param id: (required) :type id: str + :param body: (required) + :type body: object :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102071,9 +105996,10 @@ def v1_users_id_groups_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_groups_get_serialize( + _param = self._v1_users_id_verify_patch_serialize( authorization=authorization, id=id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102081,7 +106007,7 @@ def v1_users_id_groups_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -102090,10 +106016,11 @@ def v1_users_id_groups_get_without_preload_content( return response_data.response - def _v1_users_id_groups_get_serialize( + def _v1_users_id_verify_patch_serialize( self, authorization, id, + body, _request_auth, _content_type, _headers, @@ -102123,16 +106050,24 @@ def _v1_users_id_groups_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if body is not None: + _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/json' - ] - ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -102140,8 +106075,8 @@ def _v1_users_id_groups_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/users/{id}/groups', + method='PATCH', + resource_path='/v1/users/{id}/verify', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -102158,10 +106093,10 @@ def _v1_users_id_groups_get_serialize( @validate_call - def v1_users_id_groups_root_get( + def v1_users_passwords_expire_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102174,15 +106109,15 @@ def v1_users_id_groups_root_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1UsersIdGroupsRootGetResponse: - """v1_users_id_groups_root_get + ) -> V1UsersPasswordsExpirePostResponse: + """v1_users_passwords_expire_post - Get root-level groups for a user. + Expire passwords for multiple users and send password reset emails (Graphiant cloud only). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) - :type id: str + :param v1_users_passwords_expire_post_request: (required) + :type v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102205,9 +106140,9 @@ def v1_users_id_groups_root_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_groups_root_get_serialize( + _param = self._v1_users_passwords_expire_post_serialize( authorization=authorization, - id=id, + v1_users_passwords_expire_post_request=v1_users_passwords_expire_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102215,7 +106150,7 @@ def v1_users_id_groups_root_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsRootGetResponse", + '200': "V1UsersPasswordsExpirePostResponse", } response_data = self.api_client.call_api( *_param, @@ -102229,10 +106164,10 @@ def v1_users_id_groups_root_get( @validate_call - def v1_users_id_groups_root_get_with_http_info( + def v1_users_passwords_expire_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102245,15 +106180,15 @@ def v1_users_id_groups_root_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1UsersIdGroupsRootGetResponse]: - """v1_users_id_groups_root_get + ) -> ApiResponse[V1UsersPasswordsExpirePostResponse]: + """v1_users_passwords_expire_post - Get root-level groups for a user. + Expire passwords for multiple users and send password reset emails (Graphiant cloud only). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) - :type id: str + :param v1_users_passwords_expire_post_request: (required) + :type v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102276,9 +106211,9 @@ def v1_users_id_groups_root_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_groups_root_get_serialize( + _param = self._v1_users_passwords_expire_post_serialize( authorization=authorization, - id=id, + v1_users_passwords_expire_post_request=v1_users_passwords_expire_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102286,7 +106221,7 @@ def v1_users_id_groups_root_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsRootGetResponse", + '200': "V1UsersPasswordsExpirePostResponse", } response_data = self.api_client.call_api( *_param, @@ -102300,10 +106235,10 @@ def v1_users_id_groups_root_get_with_http_info( @validate_call - def v1_users_id_groups_root_get_without_preload_content( + def v1_users_passwords_expire_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102317,14 +106252,14 @@ def v1_users_id_groups_root_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_id_groups_root_get + """v1_users_passwords_expire_post - Get root-level groups for a user. + Expire passwords for multiple users and send password reset emails (Graphiant cloud only). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) - :type id: str + :param v1_users_passwords_expire_post_request: (required) + :type v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102347,9 +106282,9 @@ def v1_users_id_groups_root_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_groups_root_get_serialize( + _param = self._v1_users_passwords_expire_post_serialize( authorization=authorization, - id=id, + v1_users_passwords_expire_post_request=v1_users_passwords_expire_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102357,7 +106292,7 @@ def v1_users_id_groups_root_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsRootGetResponse", + '200': "V1UsersPasswordsExpirePostResponse", } response_data = self.api_client.call_api( *_param, @@ -102366,10 +106301,10 @@ def v1_users_id_groups_root_get_without_preload_content( return response_data.response - def _v1_users_id_groups_root_get_serialize( + def _v1_users_passwords_expire_post_serialize( self, authorization, - id, + v1_users_passwords_expire_post_request, _request_auth, _content_type, _headers, @@ -102391,14 +106326,14 @@ def _v1_users_id_groups_root_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_users_passwords_expire_post_request is not None: + _body_params = v1_users_passwords_expire_post_request # set the HTTP header `Accept` @@ -102409,6 +106344,19 @@ def _v1_users_id_groups_root_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -102416,8 +106364,8 @@ def _v1_users_id_groups_root_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/users/{id}/groups/root', + method='POST', + resource_path='/v1/users/passwords/expire', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -102434,11 +106382,10 @@ def _v1_users_id_groups_root_get_serialize( @validate_call - def v1_users_id_verify_patch( + def v1_users_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - body: Dict[str, Any], + v1_users_put_request: V1UsersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102452,16 +106399,14 @@ def v1_users_id_verify_patch( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_users_id_verify_patch + """v1_users_put - Resend account verification email to user. + Create a new user account with profile information. Assigns to specified group or default read-only group. Handles both IDP and non-IDP configured enterprises. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param body: (required) - :type body: object + :param v1_users_put_request: (required) + :type v1_users_put_request: V1UsersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102484,10 +106429,9 @@ def v1_users_id_verify_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_verify_patch_serialize( + _param = self._v1_users_put_serialize( authorization=authorization, - id=id, - body=body, + v1_users_put_request=v1_users_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102509,11 +106453,10 @@ def v1_users_id_verify_patch( @validate_call - def v1_users_id_verify_patch_with_http_info( + def v1_users_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - body: Dict[str, Any], + v1_users_put_request: V1UsersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102527,16 +106470,14 @@ def v1_users_id_verify_patch_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_users_id_verify_patch + """v1_users_put - Resend account verification email to user. + Create a new user account with profile information. Assigns to specified group or default read-only group. Handles both IDP and non-IDP configured enterprises. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param body: (required) - :type body: object + :param v1_users_put_request: (required) + :type v1_users_put_request: V1UsersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102559,10 +106500,9 @@ def v1_users_id_verify_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_verify_patch_serialize( + _param = self._v1_users_put_serialize( authorization=authorization, - id=id, - body=body, + v1_users_put_request=v1_users_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102584,11 +106524,10 @@ def v1_users_id_verify_patch_with_http_info( @validate_call - def v1_users_id_verify_patch_without_preload_content( + def v1_users_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - body: Dict[str, Any], + v1_users_put_request: V1UsersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102602,16 +106541,14 @@ def v1_users_id_verify_patch_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_id_verify_patch + """v1_users_put - Resend account verification email to user. + Create a new user account with profile information. Assigns to specified group or default read-only group. Handles both IDP and non-IDP configured enterprises. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param body: (required) - :type body: object + :param v1_users_put_request: (required) + :type v1_users_put_request: V1UsersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102634,10 +106571,9 @@ def v1_users_id_verify_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_verify_patch_serialize( + _param = self._v1_users_put_serialize( authorization=authorization, - id=id, - body=body, + v1_users_put_request=v1_users_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102654,11 +106590,10 @@ def v1_users_id_verify_patch_without_preload_content( return response_data.response - def _v1_users_id_verify_patch_serialize( + def _v1_users_put_serialize( self, authorization, - id, - body, + v1_users_put_request, _request_auth, _content_type, _headers, @@ -102680,16 +106615,14 @@ def _v1_users_id_verify_patch_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if body is not None: - _body_params = body + if v1_users_put_request is not None: + _body_params = v1_users_put_request @@ -102713,8 +106646,8 @@ def _v1_users_id_verify_patch_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/users/{id}/verify', + method='PUT', + resource_path='/v1/users', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -102731,10 +106664,10 @@ def _v1_users_id_verify_patch_serialize( @validate_call - def v1_users_passwords_expire_post( + def v1_version_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, + v1_version_post_request: V1VersionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102747,15 +106680,15 @@ def v1_users_passwords_expire_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1UsersPasswordsExpirePostResponse: - """v1_users_passwords_expire_post + ) -> V1VersionPostResponse: + """v1_version_post - Expire passwords for multiple users and send password reset emails (Graphiant cloud only). + Update device config version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_users_passwords_expire_post_request: (required) - :type v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest + :param v1_version_post_request: (required) + :type v1_version_post_request: V1VersionPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102778,9 +106711,9 @@ def v1_users_passwords_expire_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_passwords_expire_post_serialize( + _param = self._v1_version_post_serialize( authorization=authorization, - v1_users_passwords_expire_post_request=v1_users_passwords_expire_post_request, + v1_version_post_request=v1_version_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102788,7 +106721,7 @@ def v1_users_passwords_expire_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersPasswordsExpirePostResponse", + '200': "V1VersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -102802,10 +106735,10 @@ def v1_users_passwords_expire_post( @validate_call - def v1_users_passwords_expire_post_with_http_info( + def v1_version_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, + v1_version_post_request: V1VersionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102818,15 +106751,15 @@ def v1_users_passwords_expire_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1UsersPasswordsExpirePostResponse]: - """v1_users_passwords_expire_post + ) -> ApiResponse[V1VersionPostResponse]: + """v1_version_post - Expire passwords for multiple users and send password reset emails (Graphiant cloud only). + Update device config version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_users_passwords_expire_post_request: (required) - :type v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest + :param v1_version_post_request: (required) + :type v1_version_post_request: V1VersionPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102849,9 +106782,9 @@ def v1_users_passwords_expire_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_passwords_expire_post_serialize( + _param = self._v1_version_post_serialize( authorization=authorization, - v1_users_passwords_expire_post_request=v1_users_passwords_expire_post_request, + v1_version_post_request=v1_version_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102859,7 +106792,7 @@ def v1_users_passwords_expire_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersPasswordsExpirePostResponse", + '200': "V1VersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -102873,10 +106806,10 @@ def v1_users_passwords_expire_post_with_http_info( @validate_call - def v1_users_passwords_expire_post_without_preload_content( + def v1_version_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, + v1_version_post_request: V1VersionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102890,14 +106823,14 @@ def v1_users_passwords_expire_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_passwords_expire_post + """v1_version_post - Expire passwords for multiple users and send password reset emails (Graphiant cloud only). + Update device config version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_users_passwords_expire_post_request: (required) - :type v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest + :param v1_version_post_request: (required) + :type v1_version_post_request: V1VersionPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -102920,9 +106853,9 @@ def v1_users_passwords_expire_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_passwords_expire_post_serialize( + _param = self._v1_version_post_serialize( authorization=authorization, - v1_users_passwords_expire_post_request=v1_users_passwords_expire_post_request, + v1_version_post_request=v1_version_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102930,7 +106863,7 @@ def v1_users_passwords_expire_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersPasswordsExpirePostResponse", + '200': "V1VersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -102939,10 +106872,10 @@ def v1_users_passwords_expire_post_without_preload_content( return response_data.response - def _v1_users_passwords_expire_post_serialize( + def _v1_version_post_serialize( self, authorization, - v1_users_passwords_expire_post_request, + v1_version_post_request, _request_auth, _content_type, _headers, @@ -102970,8 +106903,8 @@ def _v1_users_passwords_expire_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_users_passwords_expire_post_request is not None: - _body_params = v1_users_passwords_expire_post_request + if v1_version_post_request is not None: + _body_params = v1_version_post_request # set the HTTP header `Accept` @@ -103003,7 +106936,7 @@ def _v1_users_passwords_expire_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/users/passwords/expire', + resource_path='/v1/version', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -103020,10 +106953,9 @@ def _v1_users_passwords_expire_post_serialize( @validate_call - def v1_users_put( + def v1_zones_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_put_request: V1UsersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103036,15 +106968,13 @@ def v1_users_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_users_put + ) -> V1ZonesGetResponse: + """v1_zones_get - Create a new user account with profile information. Assigns to specified group or default read-only group. Handles both IDP and non-IDP configured enterprises. + Get Zones for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_users_put_request: (required) - :type v1_users_put_request: V1UsersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103067,9 +106997,8 @@ def v1_users_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_put_serialize( + _param = self._v1_zones_get_serialize( authorization=authorization, - v1_users_put_request=v1_users_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -103077,7 +107006,7 @@ def v1_users_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ZonesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103091,10 +107020,9 @@ def v1_users_put( @validate_call - def v1_users_put_with_http_info( + def v1_zones_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_put_request: V1UsersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103107,15 +107035,13 @@ def v1_users_put_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[None]: - """v1_users_put + ) -> ApiResponse[V1ZonesGetResponse]: + """v1_zones_get - Create a new user account with profile information. Assigns to specified group or default read-only group. Handles both IDP and non-IDP configured enterprises. + Get Zones for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_users_put_request: (required) - :type v1_users_put_request: V1UsersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103138,9 +107064,8 @@ def v1_users_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_put_serialize( + _param = self._v1_zones_get_serialize( authorization=authorization, - v1_users_put_request=v1_users_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -103148,7 +107073,7 @@ def v1_users_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ZonesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103162,10 +107087,9 @@ def v1_users_put_with_http_info( @validate_call - def v1_users_put_without_preload_content( + def v1_zones_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_put_request: V1UsersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103179,14 +107103,12 @@ def v1_users_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_users_put + """v1_zones_get - Create a new user account with profile information. Assigns to specified group or default read-only group. Handles both IDP and non-IDP configured enterprises. + Get Zones for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_users_put_request: (required) - :type v1_users_put_request: V1UsersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103209,9 +107131,8 @@ def v1_users_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_put_serialize( + _param = self._v1_zones_get_serialize( authorization=authorization, - v1_users_put_request=v1_users_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -103219,7 +107140,7 @@ def v1_users_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ZonesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103228,10 +107149,9 @@ def v1_users_put_without_preload_content( return response_data.response - def _v1_users_put_serialize( + def _v1_zones_get_serialize( self, authorization, - v1_users_put_request, _request_auth, _content_type, _headers, @@ -103259,24 +107179,16 @@ def _v1_users_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_users_put_request is not None: - _body_params = v1_users_put_request - - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type + # authentication setting _auth_settings: List[str] = [ @@ -103284,8 +107196,8 @@ def _v1_users_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/users', + method='GET', + resource_path='/v1/zones', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -103302,10 +107214,10 @@ def _v1_users_put_serialize( @validate_call - def v1_version_post( + def v1_ztagent_bindings_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_version_post_request: V1VersionPostRequest, + enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103318,15 +107230,15 @@ def v1_version_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1VersionPostResponse: - """v1_version_post + ) -> V1ZtagentBindingsGetResponse: + """v1_ztagent_bindings_get - Update device config version + Return the ZTAgent integration binding for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_version_post_request: (required) - :type v1_version_post_request: V1VersionPostRequest + :param enterprise_id: + :type enterprise_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103349,9 +107261,9 @@ def v1_version_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_version_post_serialize( + _param = self._v1_ztagent_bindings_get_serialize( authorization=authorization, - v1_version_post_request=v1_version_post_request, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -103359,7 +107271,7 @@ def v1_version_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VersionPostResponse", + '200': "V1ZtagentBindingsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103373,10 +107285,10 @@ def v1_version_post( @validate_call - def v1_version_post_with_http_info( + def v1_ztagent_bindings_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_version_post_request: V1VersionPostRequest, + enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103389,15 +107301,15 @@ def v1_version_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1VersionPostResponse]: - """v1_version_post + ) -> ApiResponse[V1ZtagentBindingsGetResponse]: + """v1_ztagent_bindings_get - Update device config version + Return the ZTAgent integration binding for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_version_post_request: (required) - :type v1_version_post_request: V1VersionPostRequest + :param enterprise_id: + :type enterprise_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103420,9 +107332,9 @@ def v1_version_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_version_post_serialize( + _param = self._v1_ztagent_bindings_get_serialize( authorization=authorization, - v1_version_post_request=v1_version_post_request, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -103430,7 +107342,7 @@ def v1_version_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VersionPostResponse", + '200': "V1ZtagentBindingsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103444,10 +107356,10 @@ def v1_version_post_with_http_info( @validate_call - def v1_version_post_without_preload_content( + def v1_ztagent_bindings_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_version_post_request: V1VersionPostRequest, + enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103461,14 +107373,14 @@ def v1_version_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_version_post + """v1_ztagent_bindings_get - Update device config version + Return the ZTAgent integration binding for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_version_post_request: (required) - :type v1_version_post_request: V1VersionPostRequest + :param enterprise_id: + :type enterprise_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103491,9 +107403,9 @@ def v1_version_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_version_post_serialize( + _param = self._v1_ztagent_bindings_get_serialize( authorization=authorization, - v1_version_post_request=v1_version_post_request, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -103501,7 +107413,7 @@ def v1_version_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VersionPostResponse", + '200': "V1ZtagentBindingsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103510,10 +107422,10 @@ def v1_version_post_without_preload_content( return response_data.response - def _v1_version_post_serialize( + def _v1_ztagent_bindings_get_serialize( self, authorization, - v1_version_post_request, + enterprise_id, _request_auth, _content_type, _headers, @@ -103536,13 +107448,15 @@ def _v1_version_post_serialize( # process the path parameters # process the query parameters + if enterprise_id is not None: + + _query_params.append(('enterpriseId', enterprise_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_version_post_request is not None: - _body_params = v1_version_post_request # set the HTTP header `Accept` @@ -103553,19 +107467,6 @@ def _v1_version_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -103573,8 +107474,8 @@ def _v1_version_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/version', + method='GET', + resource_path='/v1/ztagent/bindings', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -103591,9 +107492,10 @@ def _v1_version_post_serialize( @validate_call - def v1_zones_get( + def v1_ztagent_bindings_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103606,13 +107508,15 @@ def v1_zones_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ZonesGetResponse: - """v1_zones_get + ) -> object: + """v1_ztagent_bindings_put - Get Zones for the current enterprise + Create or replace the ZTAgent integration binding for an enterprise (site and customer identifiers). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_ztagent_bindings_put_request: (required) + :type v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103635,8 +107539,9 @@ def v1_zones_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_zones_get_serialize( + _param = self._v1_ztagent_bindings_put_serialize( authorization=authorization, + v1_ztagent_bindings_put_request=v1_ztagent_bindings_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -103644,7 +107549,7 @@ def v1_zones_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ZonesGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -103658,9 +107563,10 @@ def v1_zones_get( @validate_call - def v1_zones_get_with_http_info( + def v1_ztagent_bindings_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103673,13 +107579,15 @@ def v1_zones_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ZonesGetResponse]: - """v1_zones_get + ) -> ApiResponse[object]: + """v1_ztagent_bindings_put - Get Zones for the current enterprise + Create or replace the ZTAgent integration binding for an enterprise (site and customer identifiers). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_ztagent_bindings_put_request: (required) + :type v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103702,8 +107610,9 @@ def v1_zones_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_zones_get_serialize( + _param = self._v1_ztagent_bindings_put_serialize( authorization=authorization, + v1_ztagent_bindings_put_request=v1_ztagent_bindings_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -103711,7 +107620,7 @@ def v1_zones_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ZonesGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -103725,9 +107634,10 @@ def v1_zones_get_with_http_info( @validate_call - def v1_zones_get_without_preload_content( + def v1_ztagent_bindings_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103741,12 +107651,14 @@ def v1_zones_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_zones_get + """v1_ztagent_bindings_put - Get Zones for the current enterprise + Create or replace the ZTAgent integration binding for an enterprise (site and customer identifiers). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_ztagent_bindings_put_request: (required) + :type v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103769,8 +107681,9 @@ def v1_zones_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_zones_get_serialize( + _param = self._v1_ztagent_bindings_put_serialize( authorization=authorization, + v1_ztagent_bindings_put_request=v1_ztagent_bindings_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -103778,7 +107691,7 @@ def v1_zones_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ZonesGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -103787,9 +107700,10 @@ def v1_zones_get_without_preload_content( return response_data.response - def _v1_zones_get_serialize( + def _v1_ztagent_bindings_put_serialize( self, authorization, + v1_ztagent_bindings_put_request, _request_auth, _content_type, _headers, @@ -103817,6 +107731,8 @@ def _v1_zones_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_ztagent_bindings_put_request is not None: + _body_params = v1_ztagent_bindings_put_request # set the HTTP header `Accept` @@ -103827,6 +107743,19 @@ def _v1_zones_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -103834,8 +107763,8 @@ def _v1_zones_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/zones', + method='PUT', + resource_path='/v1/ztagent/bindings', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -125706,6 +129635,282 @@ def _v2_monitoring_ipsec_post_serialize( + @validate_call + def v2_monitoring_macsec_device_id_status_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> V2MonitoringMacsecDeviceIdStatusGetResponse: + """v2_monitoring_macsec_device_id_status_get + + Returns the MACsec status for all interfaces on a device + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param device_id: (required) + :type device_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v2_monitoring_macsec_device_id_status_get_serialize( + authorization=authorization, + device_id=device_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MonitoringMacsecDeviceIdStatusGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def v2_monitoring_macsec_device_id_status_get_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[V2MonitoringMacsecDeviceIdStatusGetResponse]: + """v2_monitoring_macsec_device_id_status_get + + Returns the MACsec status for all interfaces on a device + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param device_id: (required) + :type device_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v2_monitoring_macsec_device_id_status_get_serialize( + authorization=authorization, + device_id=device_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MonitoringMacsecDeviceIdStatusGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def v2_monitoring_macsec_device_id_status_get_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: StrictInt, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """v2_monitoring_macsec_device_id_status_get + + Returns the MACsec status for all interfaces on a device + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param device_id: (required) + :type device_id: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._v2_monitoring_macsec_device_id_status_get_serialize( + authorization=authorization, + device_id=device_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V2MonitoringMacsecDeviceIdStatusGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v2_monitoring_macsec_device_id_status_get_serialize( + self, + authorization, + device_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if device_id is not None: + _path_params['deviceId'] = device_id + # process the query parameters + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/monitoring/macsec/{deviceId}/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def v2_monitoring_policy_post( self, diff --git a/graphiant_sdk/api_client.py b/graphiant_sdk/api_client.py index 719e7582..85b722e0 100644 --- a/graphiant_sdk/api_client.py +++ b/graphiant_sdk/api_client.py @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/26.3.3/python' + self.user_agent = 'OpenAPI-Generator/26.4.1/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -371,28 +371,24 @@ def sanitize_for_serialization(self, obj): return obj.isoformat() elif isinstance(obj, decimal.Decimal): return str(obj) - elif isinstance(obj, dict): - obj_dict = obj + return { + key: self.sanitize_for_serialization(val) + for key, val in obj.items() + } + + # Convert model obj to dict except + # attributes `openapi_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): + obj_dict = obj.to_dict() else: - # Convert model obj to dict except - # attributes `openapi_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')): - obj_dict = obj.to_dict() - else: - obj_dict = obj.__dict__ + obj_dict = obj.__dict__ - if isinstance(obj_dict, list): - # here we handle instances that can either be a list or something else, and only became a real list by calling to_dict() - return self.sanitize_for_serialization(obj_dict) + return self.sanitize_for_serialization(obj_dict) - return { - key: self.sanitize_for_serialization(val) - for key, val in obj_dict.items() - } def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): """Deserializes response into an object. diff --git a/graphiant_sdk/configuration.py b/graphiant_sdk/configuration.py index 53824991..02012bb8 100644 --- a/graphiant_sdk/configuration.py +++ b/graphiant_sdk/configuration.py @@ -214,7 +214,7 @@ def __init__( server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, - retries: Optional[Union[int, Any]] = None, + retries: Optional[Union[int, urllib3.util.retry.Retry]] = None, ca_cert_data: Optional[Union[str, bytes]] = None, cert_file: Optional[str]=None, key_file: Optional[str]=None, @@ -554,7 +554,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: 26.3.3".\ + "SDK Package Version: 26.4.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/graphiant_sdk/models/__init__.py b/graphiant_sdk/models/__init__.py index b375197c..f3e2759d 100644 --- a/graphiant_sdk/models/__init__.py +++ b/graphiant_sdk/models/__init__.py @@ -228,6 +228,7 @@ from graphiant_sdk.models.mana_v2_dns_servers import ManaV2DnsServers from graphiant_sdk.models.mana_v2_dnsip_address import ManaV2DnsipAddress from graphiant_sdk.models.mana_v2_dnsip_addresses import ManaV2DnsipAddresses +from graphiant_sdk.models.mana_v2_domain_category import ManaV2DomainCategory from graphiant_sdk.models.mana_v2_domain_list_match_config import ManaV2DomainListMatchConfig from graphiant_sdk.models.mana_v2_dpi_application_config import ManaV2DpiApplicationConfig from graphiant_sdk.models.mana_v2_dpi_custom_application import ManaV2DpiCustomApplication @@ -262,6 +263,8 @@ from graphiant_sdk.models.mana_v2_global_app_config import ManaV2GlobalAppConfig from graphiant_sdk.models.mana_v2_global_app_port_range import ManaV2GlobalAppPortRange from graphiant_sdk.models.mana_v2_global_bandwidth_consumption_summary import ManaV2GlobalBandwidthConsumptionSummary +from graphiant_sdk.models.mana_v2_global_content_filter_config import ManaV2GlobalContentFilterConfig +from graphiant_sdk.models.mana_v2_global_content_filter_rule import ManaV2GlobalContentFilterRule from graphiant_sdk.models.mana_v2_global_object_device_status import ManaV2GlobalObjectDeviceStatus from graphiant_sdk.models.mana_v2_global_object_operation_config import ManaV2GlobalObjectOperationConfig from graphiant_sdk.models.mana_v2_global_object_service_ops import ManaV2GlobalObjectServiceOps @@ -471,6 +474,7 @@ from graphiant_sdk.models.mana_v2_qo_s_profile import ManaV2QoSProfile from graphiant_sdk.models.mana_v2_qo_s_profile_queue import ManaV2QoSProfileQueue from graphiant_sdk.models.mana_v2_region import ManaV2Region +from graphiant_sdk.models.mana_v2_region_coordinates import ManaV2RegionCoordinates from graphiant_sdk.models.mana_v2_regional_allocation import ManaV2RegionalAllocation from graphiant_sdk.models.mana_v2_regional_bandwidth_consumption_summary import ManaV2RegionalBandwidthConsumptionSummary from graphiant_sdk.models.mana_v2_route_tag import ManaV2RouteTag @@ -694,13 +698,20 @@ from graphiant_sdk.models.upgrade_gcs_release_category import UpgradeGcsReleaseCategory from graphiant_sdk.models.upgrade_gcs_release_details import UpgradeGcsReleaseDetails from graphiant_sdk.models.upgrade_inventory_key import UpgradeInventoryKey +from graphiant_sdk.models.upgrade_monthly_recurrence import UpgradeMonthlyRecurrence +from graphiant_sdk.models.upgrade_recurring_schedule import UpgradeRecurringSchedule from graphiant_sdk.models.upgrade_release_summary import UpgradeReleaseSummary +from graphiant_sdk.models.upgrade_rollout import UpgradeRollout +from graphiant_sdk.models.upgrade_rollout_config import UpgradeRolloutConfig +from graphiant_sdk.models.upgrade_rollout_device import UpgradeRolloutDevice from graphiant_sdk.models.upgrade_running_sw_version import UpgradeRunningSwVersion from graphiant_sdk.models.upgrade_schedule import UpgradeSchedule from graphiant_sdk.models.upgrade_sw_version import UpgradeSwVersion from graphiant_sdk.models.upgrade_upgrade_canary_profile import UpgradeUpgradeCanaryProfile from graphiant_sdk.models.upgrade_upgrade_occurrence import UpgradeUpgradeOccurrence from graphiant_sdk.models.upgrade_upgrade_summary import UpgradeUpgradeSummary +from graphiant_sdk.models.upgrade_weekly_recurrence import UpgradeWeeklyRecurrence +from graphiant_sdk.models.upgrade_yearly_recurrence import UpgradeYearlyRecurrence from graphiant_sdk.models.v1_account_email_patch_request import V1AccountEmailPatchRequest from graphiant_sdk.models.v1_account_info_patch_request import V1AccountInfoPatchRequest from graphiant_sdk.models.v1_account_mfa_confirmation_post_request import V1AccountMfaConfirmationPostRequest @@ -1069,7 +1080,17 @@ from graphiant_sdk.models.v1_global_attached_edges_post_response import V1GlobalAttachedEdgesPostResponse from graphiant_sdk.models.v1_global_config_patch_request import V1GlobalConfigPatchRequest from graphiant_sdk.models.v1_global_config_patch_response import V1GlobalConfigPatchResponse +from graphiant_sdk.models.v1_global_content_filters_get_response import V1GlobalContentFiltersGetResponse +from graphiant_sdk.models.v1_global_content_filters_get_response_row import V1GlobalContentFiltersGetResponseRow +from graphiant_sdk.models.v1_global_content_filters_get_response_row_lan_entry import V1GlobalContentFiltersGetResponseRowLanEntry +from graphiant_sdk.models.v1_global_content_filters_get_response_row_rule_entry import V1GlobalContentFiltersGetResponseRowRuleEntry +from graphiant_sdk.models.v1_global_content_filters_get_response_row_site_entry import V1GlobalContentFiltersGetResponseRowSiteEntry +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_get_response import V1GlobalContentFiltersGlobalContentFilterIdGetResponse +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_put_request import V1GlobalContentFiltersGlobalContentFilterIdPutRequest +from graphiant_sdk.models.v1_global_content_filters_post_request import V1GlobalContentFiltersPostRequest +from graphiant_sdk.models.v1_global_content_filters_post_response import V1GlobalContentFiltersPostResponse from graphiant_sdk.models.v1_global_device_status_get_response import V1GlobalDeviceStatusGetResponse +from graphiant_sdk.models.v1_global_domain_categories_get_response import V1GlobalDomainCategoriesGetResponse from graphiant_sdk.models.v1_global_ipfix_device_get_response import V1GlobalIpfixDeviceGetResponse from graphiant_sdk.models.v1_global_ipfix_post_request import V1GlobalIpfixPostRequest from graphiant_sdk.models.v1_global_ipfix_post_response import V1GlobalIpfixPostResponse @@ -1164,6 +1185,12 @@ from graphiant_sdk.models.v1_software_gcsrelease_upload_notes_post_request import V1SoftwareGcsreleaseUploadNotesPostRequest from graphiant_sdk.models.v1_software_releases_download_get_response import V1SoftwareReleasesDownloadGetResponse from graphiant_sdk.models.v1_software_releases_summary_get_response import V1SoftwareReleasesSummaryGetResponse +from graphiant_sdk.models.v1_software_rollouts_get_response import V1SoftwareRolloutsGetResponse +from graphiant_sdk.models.v1_software_rollouts_id_get_response import V1SoftwareRolloutsIdGetResponse +from graphiant_sdk.models.v1_software_rollouts_post_request import V1SoftwareRolloutsPostRequest +from graphiant_sdk.models.v1_software_rollouts_post_response import V1SoftwareRolloutsPostResponse +from graphiant_sdk.models.v1_software_rollouts_put_request import V1SoftwareRolloutsPutRequest +from graphiant_sdk.models.v1_software_rollouts_schedule_post_request import V1SoftwareRolloutsSchedulePostRequest from graphiant_sdk.models.v1_software_running_details_get_response import V1SoftwareRunningDetailsGetResponse from graphiant_sdk.models.v1_software_running_details_get_response_device import V1SoftwareRunningDetailsGetResponseDevice from graphiant_sdk.models.v1_software_running_summary_get_response import V1SoftwareRunningSummaryGetResponse @@ -1199,6 +1226,8 @@ from graphiant_sdk.models.v1_version_post_request import V1VersionPostRequest from graphiant_sdk.models.v1_version_post_response import V1VersionPostResponse from graphiant_sdk.models.v1_zones_get_response import V1ZonesGetResponse +from graphiant_sdk.models.v1_ztagent_bindings_get_response import V1ZtagentBindingsGetResponse +from graphiant_sdk.models.v1_ztagent_bindings_put_request import V1ZtagentBindingsPutRequest from graphiant_sdk.models.v2_ack_createupdate_post_request import V2AckCreateupdatePostRequest from graphiant_sdk.models.v2_aggregated_notification_enable_disable_post_request import V2AggregatedNotificationEnableDisablePostRequest from graphiant_sdk.models.v2_aggregated_notification_get_state_get_response import V2AggregatedNotificationGetStateGetResponse @@ -1328,6 +1357,8 @@ from graphiant_sdk.models.v2_monitoring_ipsec_post_request import V2MonitoringIpsecPostRequest from graphiant_sdk.models.v2_monitoring_ipsec_post_response import V2MonitoringIpsecPostResponse from graphiant_sdk.models.v2_monitoring_ipsec_post_response_data import V2MonitoringIpsecPostResponseData +from graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response import V2MonitoringMacsecDeviceIdStatusGetResponse +from graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response_ma_csec_status import V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus from graphiant_sdk.models.v2_monitoring_policy_post_request import V2MonitoringPolicyPostRequest from graphiant_sdk.models.v2_monitoring_policy_post_response import V2MonitoringPolicyPostResponse from graphiant_sdk.models.v2_monitoring_policy_post_response_data import V2MonitoringPolicyPostResponseData diff --git a/graphiant_sdk/models/alertservice_notification_body.py b/graphiant_sdk/models/alertservice_notification_body.py index f1accd15..f10c17b6 100644 --- a/graphiant_sdk/models/alertservice_notification_body.py +++ b/graphiant_sdk/models/alertservice_notification_body.py @@ -39,7 +39,8 @@ class AlertserviceNotificationBody(BaseModel): pagerduty_list: Optional[List[StrictStr]] = Field(default=None, alias="pagerdutyList") recipient_list: Optional[List[StrictStr]] = Field(default=None, alias="recipientList") teams_list: Optional[List[StrictStr]] = Field(default=None, alias="teamsList") - __properties: ClassVar[List[str]] = ["description", "duration", "enabled", "frequency", "messageBody", "notificationName", "opsgenieList", "opsrampList", "pagerdutyList", "recipientList", "teamsList"] + webhook_url_list: Optional[List[StrictStr]] = Field(default=None, alias="webhookUrlList") + __properties: ClassVar[List[str]] = ["description", "duration", "enabled", "frequency", "messageBody", "notificationName", "opsgenieList", "opsrampList", "pagerdutyList", "recipientList", "teamsList", "webhookUrlList"] model_config = ConfigDict( validate_by_name=True, @@ -102,7 +103,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "opsrampList": obj.get("opsrampList"), "pagerdutyList": obj.get("pagerdutyList"), "recipientList": obj.get("recipientList"), - "teamsList": obj.get("teamsList") + "teamsList": obj.get("teamsList"), + "webhookUrlList": obj.get("webhookUrlList") }) return _obj diff --git a/graphiant_sdk/models/assurance_client_session.py b/graphiant_sdk/models/assurance_client_session.py index 6fdc8f61..1f2df365 100644 --- a/graphiant_sdk/models/assurance_client_session.py +++ b/graphiant_sdk/models/assurance_client_session.py @@ -38,6 +38,7 @@ class AssuranceClientSession(BaseModel): client_flex_algo: Optional[StrictStr] = Field(default=None, alias="clientFlexAlgo") client_ip: Optional[StrictStr] = Field(default=None, alias="clientIp") client_links: Optional[List[AssuranceClientSessionEndpointLink]] = Field(default=None, alias="clientLinks") + client_username: Optional[StrictStr] = Field(default=None, alias="clientUsername") first_seen_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="firstSeenTs") lan_segment: Optional[List[StrictStr]] = Field(default=None, alias="lanSegment") last_seen_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastSeenTs") @@ -53,7 +54,7 @@ class AssuranceClientSession(BaseModel): session_id: Optional[StrictStr] = Field(default=None, alias="sessionId") sla: Optional[StrictStr] = None sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass") - __properties: ClassVar[List[str]] = ["appName", "bucket", "clientEndpoint", "clientFlexAlgo", "clientIp", "clientLinks", "firstSeenTs", "lanSegment", "lastSeenTs", "localDiaLinks", "popLinks", "remoteDiaLinks", "riskStatus", "serverEndpoint", "serverFlexAlgos", "serverIp", "serverLinks", "serverPort", "sessionId", "sla", "slaClass"] + __properties: ClassVar[List[str]] = ["appName", "bucket", "clientEndpoint", "clientFlexAlgo", "clientIp", "clientLinks", "clientUsername", "firstSeenTs", "lanSegment", "lastSeenTs", "localDiaLinks", "popLinks", "remoteDiaLinks", "riskStatus", "serverEndpoint", "serverFlexAlgos", "serverIp", "serverLinks", "serverPort", "sessionId", "sla", "slaClass"] model_config = ConfigDict( validate_by_name=True, @@ -159,6 +160,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "clientFlexAlgo": obj.get("clientFlexAlgo"), "clientIp": obj.get("clientIp"), "clientLinks": [AssuranceClientSessionEndpointLink.from_dict(_item) for _item in obj["clientLinks"]] if obj.get("clientLinks") is not None else None, + "clientUsername": obj.get("clientUsername"), "firstSeenTs": GoogleProtobufTimestamp.from_dict(obj["firstSeenTs"]) if obj.get("firstSeenTs") is not None else None, "lanSegment": obj.get("lanSegment"), "lastSeenTs": GoogleProtobufTimestamp.from_dict(obj["lastSeenTs"]) if obj.get("lastSeenTs") is not None else None, diff --git a/graphiant_sdk/models/assurance_region.py b/graphiant_sdk/models/assurance_region.py index c1c7c9f5..3279953c 100644 --- a/graphiant_sdk/models/assurance_region.py +++ b/graphiant_sdk/models/assurance_region.py @@ -28,8 +28,9 @@ class AssuranceRegion(BaseModel): AssuranceRegion """ # noqa: E501 region_id: Optional[StrictInt] = Field(default=None, alias="regionId") + region_iso_code: Optional[StrictStr] = Field(default=None, alias="regionIsoCode") region_name: Optional[StrictStr] = Field(default=None, alias="regionName") - __properties: ClassVar[List[str]] = ["regionId", "regionName"] + __properties: ClassVar[List[str]] = ["regionId", "regionIsoCode", "regionName"] model_config = ConfigDict( validate_by_name=True, @@ -83,6 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "regionId": obj.get("regionId"), + "regionIsoCode": obj.get("regionIsoCode"), "regionName": obj.get("regionName") }) return _obj diff --git a/graphiant_sdk/models/mana_v2_domain_category.py b/graphiant_sdk/models/mana_v2_domain_category.py new file mode 100644 index 00000000..03dc9015 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_domain_category.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ManaV2DomainCategory(BaseModel): + """ + ManaV2DomainCategory + """ # noqa: E501 + description: Optional[StrictStr] = Field(default=None, description="Optional longer text describing what sites or traffic belong in this category.") + id: Optional[StrictInt] = Field(default=None, description="Stable identifier for this domain category in the content-filter catalog.") + name: Optional[StrictStr] = Field(default=None, description="Human-readable name of the domain category.") + type: Optional[StrictStr] = Field(default=None, description="Optional category classifier or grouping hint from the catalog (e.g. vendor-specific type).") + __properties: ClassVar[List[str]] = ["description", "id", "name", "type"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2DomainCategory from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2DomainCategory from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "description": obj.get("description"), + "id": obj.get("id"), + "name": obj.get("name"), + "type": obj.get("type") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_global_content_filter_config.py b/graphiant_sdk/models/mana_v2_global_content_filter_config.py new file mode 100644 index 00000000..e68dd618 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_global_content_filter_config.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_global_content_filter_rule import ManaV2GlobalContentFilterRule +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ManaV2GlobalContentFilterConfig(BaseModel): + """ + ManaV2GlobalContentFilterConfig + """ # noqa: E501 + lan_names: Optional[List[StrictStr]] = Field(default=None, alias="lanNames") + name: Optional[StrictStr] = Field(default=None, description="Display name for this global content filter configuration.") + rules: Optional[List[ManaV2GlobalContentFilterRule]] = None + site_list_id: Optional[StrictInt] = Field(default=None, description="Site list whose members this content filter applies to; omit the oneof when no site scope is set.", alias="siteListId") + use_all_sites: Optional[StrictBool] = Field(default=None, description="When true, the filter applies to all sites in the tenant (must be the constant true).", alias="useAllSites") + __properties: ClassVar[List[str]] = ["lanNames", "name", "rules", "siteListId", "useAllSites"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2GlobalContentFilterConfig from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rules (list) + _items = [] + if self.rules: + for _item_rules in self.rules: + if _item_rules: + _items.append(_item_rules.to_dict()) + _dict['rules'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2GlobalContentFilterConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "lanNames": obj.get("lanNames"), + "name": obj.get("name"), + "rules": [ManaV2GlobalContentFilterRule.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None, + "siteListId": obj.get("siteListId"), + "useAllSites": obj.get("useAllSites") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_global_content_filter_rule.py b/graphiant_sdk/models/mana_v2_global_content_filter_rule.py new file mode 100644 index 00000000..f1fadd77 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_global_content_filter_rule.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ManaV2GlobalContentFilterRule(BaseModel): + """ + ManaV2GlobalContentFilterRule + """ # noqa: E501 + domain_category_id: Optional[StrictInt] = Field(default=None, description="ID of the category whose traffic will be blocked by the content filter.", alias="domainCategoryId") + exception_wildcards: Optional[List[StrictStr]] = Field(default=None, alias="exceptionWildcards") + __properties: ClassVar[List[str]] = ["domainCategoryId", "exceptionWildcards"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2GlobalContentFilterRule from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2GlobalContentFilterRule from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "domainCategoryId": obj.get("domainCategoryId"), + "exceptionWildcards": obj.get("exceptionWildcards") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_region.py b/graphiant_sdk/models/mana_v2_region.py index d43daefc..98a76839 100644 --- a/graphiant_sdk/models/mana_v2_region.py +++ b/graphiant_sdk/models/mana_v2_region.py @@ -17,8 +17,9 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_region_coordinates import ManaV2RegionCoordinates from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -27,10 +28,12 @@ class ManaV2Region(BaseModel): """ ManaV2Region """ # noqa: E501 + coordinates: Optional[ManaV2RegionCoordinates] = None id: Optional[StrictInt] = None name: Optional[StrictStr] = None + region_iso_code: Optional[StrictStr] = Field(default=None, alias="regionIsoCode") unavailable: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["id", "name", "unavailable"] + __properties: ClassVar[List[str]] = ["coordinates", "id", "name", "regionIsoCode", "unavailable"] model_config = ConfigDict( validate_by_name=True, @@ -71,6 +74,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of coordinates + if self.coordinates: + _dict['coordinates'] = self.coordinates.to_dict() return _dict @classmethod @@ -83,8 +89,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "coordinates": ManaV2RegionCoordinates.from_dict(obj["coordinates"]) if obj.get("coordinates") is not None else None, "id": obj.get("id"), "name": obj.get("name"), + "regionIsoCode": obj.get("regionIsoCode"), "unavailable": obj.get("unavailable") }) return _obj diff --git a/graphiant_sdk/models/mana_v2_region_coordinates.py b/graphiant_sdk/models/mana_v2_region_coordinates.py new file mode 100644 index 00000000..eeb5d6c1 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_region_coordinates.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ManaV2RegionCoordinates(BaseModel): + """ + ManaV2RegionCoordinates + """ # noqa: E501 + latitude: Optional[Union[StrictFloat, StrictInt]] = None + longitude: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["latitude", "longitude"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2RegionCoordinates from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2RegionCoordinates from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "latitude": obj.get("latitude"), + "longitude": obj.get("longitude") + }) + return _obj + + diff --git a/graphiant_sdk/models/upgrade_monthly_recurrence.py b/graphiant_sdk/models/upgrade_monthly_recurrence.py new file mode 100644 index 00000000..89bf56ea --- /dev/null +++ b/graphiant_sdk/models/upgrade_monthly_recurrence.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class UpgradeMonthlyRecurrence(BaseModel): + """ + UpgradeMonthlyRecurrence + """ # noqa: E501 + var_date: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Calendar day of month (1–31) for fixed-date monthly recurrence; optional if ordinal and weekday are set.", alias="date") + ordinal: Optional[StrictStr] = Field(default=None, description="For nth-weekday-of-month style recurrence; use together with weekday, or use date instead.") + weekday: Optional[StrictStr] = Field(default=None, description="Weekday paired with ordinal for monthly nth-weekday recurrence; optional if date is set.") + __properties: ClassVar[List[str]] = ["date", "ordinal", "weekday"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpgradeMonthlyRecurrence from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpgradeMonthlyRecurrence from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "ordinal": obj.get("ordinal"), + "weekday": obj.get("weekday") + }) + return _obj + + diff --git a/graphiant_sdk/models/upgrade_recurring_schedule.py b/graphiant_sdk/models/upgrade_recurring_schedule.py new file mode 100644 index 00000000..1694ae74 --- /dev/null +++ b/graphiant_sdk/models/upgrade_recurring_schedule.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.google_protobuf_timestamp import GoogleProtobufTimestamp +from graphiant_sdk.models.upgrade_monthly_recurrence import UpgradeMonthlyRecurrence +from graphiant_sdk.models.upgrade_weekly_recurrence import UpgradeWeeklyRecurrence +from graphiant_sdk.models.upgrade_yearly_recurrence import UpgradeYearlyRecurrence +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class UpgradeRecurringSchedule(BaseModel): + """ + UpgradeRecurringSchedule + """ # noqa: E501 + monthly: Optional[UpgradeMonthlyRecurrence] = None + starts_at_ts: GoogleProtobufTimestamp = Field(alias="startsAtTs") + weekly: Optional[UpgradeWeeklyRecurrence] = None + yearly: Optional[UpgradeYearlyRecurrence] = None + __properties: ClassVar[List[str]] = ["monthly", "startsAtTs", "weekly", "yearly"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpgradeRecurringSchedule from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of monthly + if self.monthly: + _dict['monthly'] = self.monthly.to_dict() + # override the default output from pydantic by calling `to_dict()` of starts_at_ts + if self.starts_at_ts: + _dict['startsAtTs'] = self.starts_at_ts.to_dict() + # override the default output from pydantic by calling `to_dict()` of weekly + if self.weekly: + _dict['weekly'] = self.weekly.to_dict() + # override the default output from pydantic by calling `to_dict()` of yearly + if self.yearly: + _dict['yearly'] = self.yearly.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpgradeRecurringSchedule from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "monthly": UpgradeMonthlyRecurrence.from_dict(obj["monthly"]) if obj.get("monthly") is not None else None, + "startsAtTs": GoogleProtobufTimestamp.from_dict(obj["startsAtTs"]) if obj.get("startsAtTs") is not None else None, + "weekly": UpgradeWeeklyRecurrence.from_dict(obj["weekly"]) if obj.get("weekly") is not None else None, + "yearly": UpgradeYearlyRecurrence.from_dict(obj["yearly"]) if obj.get("yearly") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/upgrade_rollout.py b/graphiant_sdk/models/upgrade_rollout.py new file mode 100644 index 00000000..be3b6802 --- /dev/null +++ b/graphiant_sdk/models/upgrade_rollout.py @@ -0,0 +1,119 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.google_protobuf_timestamp import GoogleProtobufTimestamp +from graphiant_sdk.models.upgrade_rollout_config import UpgradeRolloutConfig +from graphiant_sdk.models.upgrade_rollout_device import UpgradeRolloutDevice +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class UpgradeRollout(BaseModel): + """ + UpgradeRollout + """ # noqa: E501 + devices: Optional[List[UpgradeRolloutDevice]] = None + has_failed: Optional[StrictBool] = Field(default=None, description="True if any device in the rollout has a failed upgrade state.", alias="hasFailed") + id: Optional[StrictInt] = Field(default=None, description="Server-assigned rollout identifier.") + last_run_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastRunTs") + next_run_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="nextRunTs") + num_devices: Optional[StrictInt] = Field(default=None, description="Count of devices associated with the rollout.", alias="numDevices") + rollout_config: Optional[UpgradeRolloutConfig] = Field(default=None, alias="rolloutConfig") + __properties: ClassVar[List[str]] = ["devices", "hasFailed", "id", "lastRunTs", "nextRunTs", "numDevices", "rolloutConfig"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpgradeRollout from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in devices (list) + _items = [] + if self.devices: + for _item_devices in self.devices: + if _item_devices: + _items.append(_item_devices.to_dict()) + _dict['devices'] = _items + # override the default output from pydantic by calling `to_dict()` of last_run_ts + if self.last_run_ts: + _dict['lastRunTs'] = self.last_run_ts.to_dict() + # override the default output from pydantic by calling `to_dict()` of next_run_ts + if self.next_run_ts: + _dict['nextRunTs'] = self.next_run_ts.to_dict() + # override the default output from pydantic by calling `to_dict()` of rollout_config + if self.rollout_config: + _dict['rolloutConfig'] = self.rollout_config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpgradeRollout from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "devices": [UpgradeRolloutDevice.from_dict(_item) for _item in obj["devices"]] if obj.get("devices") is not None else None, + "hasFailed": obj.get("hasFailed"), + "id": obj.get("id"), + "lastRunTs": GoogleProtobufTimestamp.from_dict(obj["lastRunTs"]) if obj.get("lastRunTs") is not None else None, + "nextRunTs": GoogleProtobufTimestamp.from_dict(obj["nextRunTs"]) if obj.get("nextRunTs") is not None else None, + "numDevices": obj.get("numDevices"), + "rolloutConfig": UpgradeRolloutConfig.from_dict(obj["rolloutConfig"]) if obj.get("rolloutConfig") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/upgrade_rollout_config.py b/graphiant_sdk/models/upgrade_rollout_config.py new file mode 100644 index 00000000..58f6ef08 --- /dev/null +++ b/graphiant_sdk/models/upgrade_rollout_config.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.upgrade_recurring_schedule import UpgradeRecurringSchedule +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class UpgradeRolloutConfig(BaseModel): + """ + UpgradeRolloutConfig + """ # noqa: E501 + action: StrictStr = Field(description="Upgrade action to perform (e.g. install+activate, install only, activate, auto-upgrade). (required)") + description: Optional[StrictStr] = Field(default=None, description="Optional longer description of the rollout.") + device_ids: Optional[List[StrictInt]] = Field(default=None, alias="deviceIds") + name: StrictStr = Field(description="Human-readable rollout name unique within the enterprise. (required)") + release: StrictStr = Field(description="Target software release for devices in this rollout. (required)") + schedule: Optional[UpgradeRecurringSchedule] = None + __properties: ClassVar[List[str]] = ["action", "description", "deviceIds", "name", "release", "schedule"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpgradeRolloutConfig from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of schedule + if self.schedule: + _dict['schedule'] = self.schedule.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpgradeRolloutConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "action": obj.get("action"), + "description": obj.get("description"), + "deviceIds": obj.get("deviceIds"), + "name": obj.get("name"), + "release": obj.get("release"), + "schedule": UpgradeRecurringSchedule.from_dict(obj["schedule"]) if obj.get("schedule") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/upgrade_rollout_device.py b/graphiant_sdk/models/upgrade_rollout_device.py new file mode 100644 index 00000000..d6d48960 --- /dev/null +++ b/graphiant_sdk/models/upgrade_rollout_device.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class UpgradeRolloutDevice(BaseModel): + """ + UpgradeRolloutDevice + """ # noqa: E501 + device_id: Optional[StrictInt] = Field(default=None, description="Device identifier. (required)", alias="deviceId") + hostname: Optional[StrictStr] = Field(default=None, description="Device hostname for display.") + __properties: ClassVar[List[str]] = ["deviceId", "hostname"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpgradeRolloutDevice from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpgradeRolloutDevice from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "deviceId": obj.get("deviceId"), + "hostname": obj.get("hostname") + }) + return _obj + + diff --git a/graphiant_sdk/models/upgrade_upgrade_occurrence.py b/graphiant_sdk/models/upgrade_upgrade_occurrence.py index b635dd35..11748a47 100644 --- a/graphiant_sdk/models/upgrade_upgrade_occurrence.py +++ b/graphiant_sdk/models/upgrade_upgrade_occurrence.py @@ -31,7 +31,9 @@ class UpgradeUpgradeOccurrence(BaseModel): hour: Optional[StrictInt] = None minute: Optional[StrictInt] = None occurrence_in_month: Optional[StrictInt] = Field(default=None, alias="occurrenceInMonth") - __properties: ClassVar[List[str]] = ["dayOfWeek", "hour", "minute", "occurrenceInMonth"] + ordinal: Optional[StrictStr] = None + weekday: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["dayOfWeek", "hour", "minute", "occurrenceInMonth", "ordinal", "weekday"] model_config = ConfigDict( validate_by_name=True, @@ -87,7 +89,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "dayOfWeek": obj.get("dayOfWeek"), "hour": obj.get("hour"), "minute": obj.get("minute"), - "occurrenceInMonth": obj.get("occurrenceInMonth") + "occurrenceInMonth": obj.get("occurrenceInMonth"), + "ordinal": obj.get("ordinal"), + "weekday": obj.get("weekday") }) return _obj diff --git a/graphiant_sdk/models/upgrade_upgrade_summary.py b/graphiant_sdk/models/upgrade_upgrade_summary.py index c8ad3813..d056e80a 100644 --- a/graphiant_sdk/models/upgrade_upgrade_summary.py +++ b/graphiant_sdk/models/upgrade_upgrade_summary.py @@ -36,10 +36,12 @@ class UpgradeUpgradeSummary(BaseModel): last_running_version: Optional[UpgradeSwVersion] = Field(default=None, alias="lastRunningVersion") last_upgrade_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastUpgradeTs") ready_for_activation_version: Optional[UpgradeSwVersion] = Field(default=None, alias="readyForActivationVersion") + rollout_id: Optional[StrictInt] = Field(default=None, alias="rolloutId") + rollout_name: Optional[StrictStr] = Field(default=None, alias="rolloutName") running_version: Optional[UpgradeSwVersion] = Field(default=None, alias="runningVersion") schedule: Optional[UpgradeSchedule] = None status: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["deviceId", "endOfLife", "lastDiscoveredTs", "lastRunningVersion", "lastUpgradeTs", "readyForActivationVersion", "runningVersion", "schedule", "status"] + __properties: ClassVar[List[str]] = ["deviceId", "endOfLife", "lastDiscoveredTs", "lastRunningVersion", "lastUpgradeTs", "readyForActivationVersion", "rolloutId", "rolloutName", "runningVersion", "schedule", "status"] model_config = ConfigDict( validate_by_name=True, @@ -116,6 +118,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "lastRunningVersion": UpgradeSwVersion.from_dict(obj["lastRunningVersion"]) if obj.get("lastRunningVersion") is not None else None, "lastUpgradeTs": GoogleProtobufTimestamp.from_dict(obj["lastUpgradeTs"]) if obj.get("lastUpgradeTs") is not None else None, "readyForActivationVersion": UpgradeSwVersion.from_dict(obj["readyForActivationVersion"]) if obj.get("readyForActivationVersion") is not None else None, + "rolloutId": obj.get("rolloutId"), + "rolloutName": obj.get("rolloutName"), "runningVersion": UpgradeSwVersion.from_dict(obj["runningVersion"]) if obj.get("runningVersion") is not None else None, "schedule": UpgradeSchedule.from_dict(obj["schedule"]) if obj.get("schedule") is not None else None, "status": obj.get("status") diff --git a/graphiant_sdk/models/upgrade_weekly_recurrence.py b/graphiant_sdk/models/upgrade_weekly_recurrence.py new file mode 100644 index 00000000..517d2887 --- /dev/null +++ b/graphiant_sdk/models/upgrade_weekly_recurrence.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class UpgradeWeeklyRecurrence(BaseModel): + """ + UpgradeWeeklyRecurrence + """ # noqa: E501 + interval: Annotated[int, Field(strict=True, ge=0)] = Field(description="Which occurrence of the weekday in the month applies for weekly-style recurrence (1–52, aligned with schedule validation). (required)") + weekday: StrictStr = Field(description="Day of week for the weekly recurrence. (required)") + __properties: ClassVar[List[str]] = ["interval", "weekday"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpgradeWeeklyRecurrence from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpgradeWeeklyRecurrence from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "interval": obj.get("interval"), + "weekday": obj.get("weekday") + }) + return _obj + + diff --git a/graphiant_sdk/models/upgrade_yearly_recurrence.py b/graphiant_sdk/models/upgrade_yearly_recurrence.py new file mode 100644 index 00000000..83860f99 --- /dev/null +++ b/graphiant_sdk/models/upgrade_yearly_recurrence.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class UpgradeYearlyRecurrence(BaseModel): + """ + UpgradeYearlyRecurrence + """ # noqa: E501 + var_date: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Calendar day (1–31) for fixed month+date yearly recurrence.", alias="date") + month: Annotated[int, Field(strict=True, ge=0)] = Field(description="Month of year (1–12) for yearly recurrence. (required)") + ordinal: Optional[StrictStr] = Field(default=None, description="For nth-weekday-in-month yearly recurrence; use with weekday, or use month + date.") + weekday: Optional[StrictStr] = Field(default=None, description="Weekday paired with ordinal for yearly recurrence.") + __properties: ClassVar[List[str]] = ["date", "month", "ordinal", "weekday"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of UpgradeYearlyRecurrence from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpgradeYearlyRecurrence from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "month": obj.get("month"), + "ordinal": obj.get("ordinal"), + "weekday": obj.get("weekday") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_global_content_filters_get_response.py b/graphiant_sdk/models/v1_global_content_filters_get_response.py new file mode 100644 index 00000000..6959dc21 --- /dev/null +++ b/graphiant_sdk/models/v1_global_content_filters_get_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.v1_global_content_filters_get_response_row import V1GlobalContentFiltersGetResponseRow +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1GlobalContentFiltersGetResponse(BaseModel): + """ + V1GlobalContentFiltersGetResponse + """ # noqa: E501 + rows: Optional[List[V1GlobalContentFiltersGetResponseRow]] = None + __properties: ClassVar[List[str]] = ["rows"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGetResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rows (list) + _items = [] + if self.rows: + for _item_rows in self.rows: + if _item_rows: + _items.append(_item_rows.to_dict()) + _dict['rows'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rows": [V1GlobalContentFiltersGetResponseRow.from_dict(_item) for _item in obj["rows"]] if obj.get("rows") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_global_content_filters_get_response_row.py b/graphiant_sdk/models/v1_global_content_filters_get_response_row.py new file mode 100644 index 00000000..bac37c0c --- /dev/null +++ b/graphiant_sdk/models/v1_global_content_filters_get_response_row.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.google_protobuf_timestamp import GoogleProtobufTimestamp +from graphiant_sdk.models.v1_global_content_filters_get_response_row_lan_entry import V1GlobalContentFiltersGetResponseRowLanEntry +from graphiant_sdk.models.v1_global_content_filters_get_response_row_rule_entry import V1GlobalContentFiltersGetResponseRowRuleEntry +from graphiant_sdk.models.v1_global_content_filters_get_response_row_site_entry import V1GlobalContentFiltersGetResponseRowSiteEntry +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1GlobalContentFiltersGetResponseRow(BaseModel): + """ + V1GlobalContentFiltersGetResponseRow + """ # noqa: E501 + created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") + global_content_filter_id: Optional[StrictInt] = Field(default=None, description="ID for the global content filter.", alias="globalContentFilterId") + global_content_filter_name: Optional[StrictStr] = Field(default=None, description="Given name of this global content filter.", alias="globalContentFilterName") + lans: Optional[List[V1GlobalContentFiltersGetResponseRowLanEntry]] = None + rules: Optional[List[V1GlobalContentFiltersGetResponseRowRuleEntry]] = None + sites: Optional[List[V1GlobalContentFiltersGetResponseRowSiteEntry]] = None + updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["createdAt", "globalContentFilterId", "globalContentFilterName", "lans", "rules", "sites", "updatedAt"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGetResponseRow from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of created_at + if self.created_at: + _dict['createdAt'] = self.created_at.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in lans (list) + _items = [] + if self.lans: + for _item_lans in self.lans: + if _item_lans: + _items.append(_item_lans.to_dict()) + _dict['lans'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in rules (list) + _items = [] + if self.rules: + for _item_rules in self.rules: + if _item_rules: + _items.append(_item_rules.to_dict()) + _dict['rules'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in sites (list) + _items = [] + if self.sites: + for _item_sites in self.sites: + if _item_sites: + _items.append(_item_sites.to_dict()) + _dict['sites'] = _items + # override the default output from pydantic by calling `to_dict()` of updated_at + if self.updated_at: + _dict['updatedAt'] = self.updated_at.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGetResponseRow from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "createdAt": GoogleProtobufTimestamp.from_dict(obj["createdAt"]) if obj.get("createdAt") is not None else None, + "globalContentFilterId": obj.get("globalContentFilterId"), + "globalContentFilterName": obj.get("globalContentFilterName"), + "lans": [V1GlobalContentFiltersGetResponseRowLanEntry.from_dict(_item) for _item in obj["lans"]] if obj.get("lans") is not None else None, + "rules": [V1GlobalContentFiltersGetResponseRowRuleEntry.from_dict(_item) for _item in obj["rules"]] if obj.get("rules") is not None else None, + "sites": [V1GlobalContentFiltersGetResponseRowSiteEntry.from_dict(_item) for _item in obj["sites"]] if obj.get("sites") is not None else None, + "updatedAt": GoogleProtobufTimestamp.from_dict(obj["updatedAt"]) if obj.get("updatedAt") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_global_content_filters_get_response_row_lan_entry.py b/graphiant_sdk/models/v1_global_content_filters_get_response_row_lan_entry.py new file mode 100644 index 00000000..43dd2b41 --- /dev/null +++ b/graphiant_sdk/models/v1_global_content_filters_get_response_row_lan_entry.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1GlobalContentFiltersGetResponseRowLanEntry(BaseModel): + """ + V1GlobalContentFiltersGetResponseRowLanEntry + """ # noqa: E501 + lan_name: Optional[StrictStr] = Field(default=None, description="Name of a LAN segment that the filter is applied on.", alias="lanName") + __properties: ClassVar[List[str]] = ["lanName"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGetResponseRowLanEntry from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGetResponseRowLanEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "lanName": obj.get("lanName") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_global_content_filters_get_response_row_rule_entry.py b/graphiant_sdk/models/v1_global_content_filters_get_response_row_rule_entry.py new file mode 100644 index 00000000..4d403b2d --- /dev/null +++ b/graphiant_sdk/models/v1_global_content_filters_get_response_row_rule_entry.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1GlobalContentFiltersGetResponseRowRuleEntry(BaseModel): + """ + V1GlobalContentFiltersGetResponseRowRuleEntry + """ # noqa: E501 + domain_category: Optional[StrictStr] = Field(default=None, description="Name of the domain category whose traffic is blocked by this rule.", alias="domainCategory") + exception_wildcards: Optional[List[StrictStr]] = Field(default=None, alias="exceptionWildcards") + __properties: ClassVar[List[str]] = ["domainCategory", "exceptionWildcards"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGetResponseRowRuleEntry from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGetResponseRowRuleEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "domainCategory": obj.get("domainCategory"), + "exceptionWildcards": obj.get("exceptionWildcards") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_global_content_filters_get_response_row_site_entry.py b/graphiant_sdk/models/v1_global_content_filters_get_response_row_site_entry.py new file mode 100644 index 00000000..cb306e2b --- /dev/null +++ b/graphiant_sdk/models/v1_global_content_filters_get_response_row_site_entry.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1GlobalContentFiltersGetResponseRowSiteEntry(BaseModel): + """ + V1GlobalContentFiltersGetResponseRowSiteEntry + """ # noqa: E501 + site_name: Optional[StrictStr] = Field(default=None, description="Display name of a site included in this filter's global or site-list-bounded scope.", alias="siteName") + __properties: ClassVar[List[str]] = ["siteName"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGetResponseRowSiteEntry from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGetResponseRowSiteEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "siteName": obj.get("siteName") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_global_content_filters_global_content_filter_id_get_response.py b/graphiant_sdk/models/v1_global_content_filters_global_content_filter_id_get_response.py new file mode 100644 index 00000000..750dd0fd --- /dev/null +++ b/graphiant_sdk/models/v1_global_content_filters_global_content_filter_id_get_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_global_content_filter_config import ManaV2GlobalContentFilterConfig +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1GlobalContentFiltersGlobalContentFilterIdGetResponse(BaseModel): + """ + V1GlobalContentFiltersGlobalContentFilterIdGetResponse + """ # noqa: E501 + config: Optional[ManaV2GlobalContentFilterConfig] = None + __properties: ClassVar[List[str]] = ["config"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGlobalContentFilterIdGetResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGlobalContentFilterIdGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": ManaV2GlobalContentFilterConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_global_content_filters_global_content_filter_id_put_request.py b/graphiant_sdk/models/v1_global_content_filters_global_content_filter_id_put_request.py new file mode 100644 index 00000000..dd10c2aa --- /dev/null +++ b/graphiant_sdk/models/v1_global_content_filters_global_content_filter_id_put_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_global_content_filter_config import ManaV2GlobalContentFilterConfig +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1GlobalContentFiltersGlobalContentFilterIdPutRequest(BaseModel): + """ + V1GlobalContentFiltersGlobalContentFilterIdPutRequest + """ # noqa: E501 + config: Optional[ManaV2GlobalContentFilterConfig] = None + __properties: ClassVar[List[str]] = ["config"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGlobalContentFilterIdPutRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersGlobalContentFilterIdPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": ManaV2GlobalContentFilterConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_global_content_filters_post_request.py b/graphiant_sdk/models/v1_global_content_filters_post_request.py new file mode 100644 index 00000000..7b9bded1 --- /dev/null +++ b/graphiant_sdk/models/v1_global_content_filters_post_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_global_content_filter_config import ManaV2GlobalContentFilterConfig +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1GlobalContentFiltersPostRequest(BaseModel): + """ + V1GlobalContentFiltersPostRequest + """ # noqa: E501 + config: Optional[ManaV2GlobalContentFilterConfig] = None + __properties: ClassVar[List[str]] = ["config"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersPostRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of config + if self.config: + _dict['config'] = self.config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "config": ManaV2GlobalContentFilterConfig.from_dict(obj["config"]) if obj.get("config") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_global_content_filters_post_response.py b/graphiant_sdk/models/v1_global_content_filters_post_response.py new file mode 100644 index 00000000..e5f0e9eb --- /dev/null +++ b/graphiant_sdk/models/v1_global_content_filters_post_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1GlobalContentFiltersPostResponse(BaseModel): + """ + V1GlobalContentFiltersPostResponse + """ # noqa: E501 + global_content_filter_id: Optional[StrictInt] = Field(default=None, description="Server-assigned ID for the newly created global content filter.", alias="globalContentFilterId") + __properties: ClassVar[List[str]] = ["globalContentFilterId"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersPostResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1GlobalContentFiltersPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "globalContentFilterId": obj.get("globalContentFilterId") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_global_domain_categories_get_response.py b/graphiant_sdk/models/v1_global_domain_categories_get_response.py new file mode 100644 index 00000000..f34d9cd0 --- /dev/null +++ b/graphiant_sdk/models/v1_global_domain_categories_get_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_domain_category import ManaV2DomainCategory +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1GlobalDomainCategoriesGetResponse(BaseModel): + """ + V1GlobalDomainCategoriesGetResponse + """ # noqa: E501 + domain_categories: Optional[List[ManaV2DomainCategory]] = Field(default=None, alias="domainCategories") + __properties: ClassVar[List[str]] = ["domainCategories"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1GlobalDomainCategoriesGetResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in domain_categories (list) + _items = [] + if self.domain_categories: + for _item_domain_categories in self.domain_categories: + if _item_domain_categories: + _items.append(_item_domain_categories.to_dict()) + _dict['domainCategories'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1GlobalDomainCategoriesGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "domainCategories": [ManaV2DomainCategory.from_dict(_item) for _item in obj["domainCategories"]] if obj.get("domainCategories") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_software_rollouts_get_response.py b/graphiant_sdk/models/v1_software_rollouts_get_response.py new file mode 100644 index 00000000..9e7ab3ba --- /dev/null +++ b/graphiant_sdk/models/v1_software_rollouts_get_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.upgrade_rollout import UpgradeRollout +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1SoftwareRolloutsGetResponse(BaseModel): + """ + V1SoftwareRolloutsGetResponse + """ # noqa: E501 + rollouts: Optional[List[UpgradeRollout]] = None + __properties: ClassVar[List[str]] = ["rollouts"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsGetResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in rollouts (list) + _items = [] + if self.rollouts: + for _item_rollouts in self.rollouts: + if _item_rollouts: + _items.append(_item_rollouts.to_dict()) + _dict['rollouts'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rollouts": [UpgradeRollout.from_dict(_item) for _item in obj["rollouts"]] if obj.get("rollouts") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_software_rollouts_id_get_response.py b/graphiant_sdk/models/v1_software_rollouts_id_get_response.py new file mode 100644 index 00000000..9c066185 --- /dev/null +++ b/graphiant_sdk/models/v1_software_rollouts_id_get_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.upgrade_rollout import UpgradeRollout +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1SoftwareRolloutsIdGetResponse(BaseModel): + """ + V1SoftwareRolloutsIdGetResponse + """ # noqa: E501 + rollout: Optional[UpgradeRollout] = None + __properties: ClassVar[List[str]] = ["rollout"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsIdGetResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of rollout + if self.rollout: + _dict['rollout'] = self.rollout.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsIdGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rollout": UpgradeRollout.from_dict(obj["rollout"]) if obj.get("rollout") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_software_rollouts_post_request.py b/graphiant_sdk/models/v1_software_rollouts_post_request.py new file mode 100644 index 00000000..4616be55 --- /dev/null +++ b/graphiant_sdk/models/v1_software_rollouts_post_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from graphiant_sdk.models.upgrade_rollout_config import UpgradeRolloutConfig +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1SoftwareRolloutsPostRequest(BaseModel): + """ + V1SoftwareRolloutsPostRequest + """ # noqa: E501 + rollout_config: UpgradeRolloutConfig = Field(alias="rolloutConfig") + __properties: ClassVar[List[str]] = ["rolloutConfig"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsPostRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of rollout_config + if self.rollout_config: + _dict['rolloutConfig'] = self.rollout_config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "rolloutConfig": UpgradeRolloutConfig.from_dict(obj["rolloutConfig"]) if obj.get("rolloutConfig") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_software_rollouts_post_response.py b/graphiant_sdk/models/v1_software_rollouts_post_response.py new file mode 100644 index 00000000..e81015f7 --- /dev/null +++ b/graphiant_sdk/models/v1_software_rollouts_post_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1SoftwareRolloutsPostResponse(BaseModel): + """ + V1SoftwareRolloutsPostResponse + """ # noqa: E501 + id: Optional[StrictInt] = Field(default=None, description="Identifier of the created rollout. (required)") + __properties: ClassVar[List[str]] = ["id"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsPostResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_software_rollouts_put_request.py b/graphiant_sdk/models/v1_software_rollouts_put_request.py new file mode 100644 index 00000000..93c0b7a3 --- /dev/null +++ b/graphiant_sdk/models/v1_software_rollouts_put_request.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List +from graphiant_sdk.models.upgrade_rollout_config import UpgradeRolloutConfig +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1SoftwareRolloutsPutRequest(BaseModel): + """ + V1SoftwareRolloutsPutRequest + """ # noqa: E501 + id: StrictInt = Field(description="Rollout identifier to update. (required)") + rollout_config: UpgradeRolloutConfig = Field(alias="rolloutConfig") + __properties: ClassVar[List[str]] = ["id", "rolloutConfig"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsPutRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of rollout_config + if self.rollout_config: + _dict['rolloutConfig'] = self.rollout_config.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "rolloutConfig": UpgradeRolloutConfig.from_dict(obj["rolloutConfig"]) if obj.get("rolloutConfig") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_software_rollouts_schedule_post_request.py b/graphiant_sdk/models/v1_software_rollouts_schedule_post_request.py new file mode 100644 index 00000000..0acedd78 --- /dev/null +++ b/graphiant_sdk/models/v1_software_rollouts_schedule_post_request.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.google_protobuf_timestamp import GoogleProtobufTimestamp +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1SoftwareRolloutsSchedulePostRequest(BaseModel): + """ + V1SoftwareRolloutsSchedulePostRequest + """ # noqa: E501 + failed_only: Optional[StrictBool] = Field(default=None, description="When true, only devices previously marked failed are rescheduled.", alias="failedOnly") + id: StrictInt = Field(description="Rollout identifier to schedule. (required)") + ts: Optional[GoogleProtobufTimestamp] = None + __properties: ClassVar[List[str]] = ["failedOnly", "id", "ts"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsSchedulePostRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of ts + if self.ts: + _dict['ts'] = self.ts.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1SoftwareRolloutsSchedulePostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "failedOnly": obj.get("failedOnly"), + "id": obj.get("id"), + "ts": GoogleProtobufTimestamp.from_dict(obj["ts"]) if obj.get("ts") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_ztagent_bindings_get_response.py b/graphiant_sdk/models/v1_ztagent_bindings_get_response.py new file mode 100644 index 00000000..61e8fc70 --- /dev/null +++ b/graphiant_sdk/models/v1_ztagent_bindings_get_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1ZtagentBindingsGetResponse(BaseModel): + """ + V1ZtagentBindingsGetResponse + """ # noqa: E501 + customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + site_id: Optional[StrictStr] = Field(default=None, alias="siteId") + __properties: ClassVar[List[str]] = ["customerId", "enterpriseId", "siteId"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ZtagentBindingsGetResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ZtagentBindingsGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customerId": obj.get("customerId"), + "enterpriseId": obj.get("enterpriseId"), + "siteId": obj.get("siteId") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_ztagent_bindings_put_request.py b/graphiant_sdk/models/v1_ztagent_bindings_put_request.py new file mode 100644 index 00000000..5f10a09d --- /dev/null +++ b/graphiant_sdk/models/v1_ztagent_bindings_put_request.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1ZtagentBindingsPutRequest(BaseModel): + """ + V1ZtagentBindingsPutRequest + """ # noqa: E501 + customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + site_id: Optional[StrictStr] = Field(default=None, alias="siteId") + __properties: ClassVar[List[str]] = ["customerId", "enterpriseId", "siteId"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ZtagentBindingsPutRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ZtagentBindingsPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customerId": obj.get("customerId"), + "enterpriseId": obj.get("enterpriseId"), + "siteId": obj.get("siteId") + }) + return _obj + + diff --git a/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_response_summary.py b/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_response_summary.py index 91d723c1..e9303a68 100644 --- a/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_response_summary.py +++ b/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_response_summary.py @@ -29,12 +29,13 @@ class V2AssuranceTopologyClientSummariesPostResponseSummary(BaseModel): """ # noqa: E501 app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey") client_ip: Optional[StrictStr] = Field(default=None, alias="clientIp") + client_username: Optional[StrictStr] = Field(default=None, alias="clientUsername") lan_segments: Optional[List[StrictStr]] = Field(default=None, alias="lanSegments") server_ip: Optional[StrictStr] = Field(default=None, alias="serverIp") server_port: Optional[StrictInt] = Field(default=None, alias="serverPort") server_site_name: Optional[StrictStr] = Field(default=None, alias="serverSiteName") session_count: Optional[StrictInt] = Field(default=None, alias="sessionCount") - __properties: ClassVar[List[str]] = ["appServerKey", "clientIp", "lanSegments", "serverIp", "serverPort", "serverSiteName", "sessionCount"] + __properties: ClassVar[List[str]] = ["appServerKey", "clientIp", "clientUsername", "lanSegments", "serverIp", "serverPort", "serverSiteName", "sessionCount"] model_config = ConfigDict( validate_by_name=True, @@ -89,6 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "appServerKey": obj.get("appServerKey"), "clientIp": obj.get("clientIp"), + "clientUsername": obj.get("clientUsername"), "lanSegments": obj.get("lanSegments"), "serverIp": obj.get("serverIp"), "serverPort": obj.get("serverPort"), diff --git a/graphiant_sdk/models/v2_monitoring_macsec_device_id_status_get_response.py b/graphiant_sdk/models/v2_monitoring_macsec_device_id_status_get_response.py new file mode 100644 index 00000000..f36c3452 --- /dev/null +++ b/graphiant_sdk/models/v2_monitoring_macsec_device_id_status_get_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response_ma_csec_status import V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V2MonitoringMacsecDeviceIdStatusGetResponse(BaseModel): + """ + V2MonitoringMacsecDeviceIdStatusGetResponse + """ # noqa: E501 + macsec_statuses: Optional[List[V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus]] = Field(default=None, alias="macsecStatuses") + __properties: ClassVar[List[str]] = ["macsecStatuses"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2MonitoringMacsecDeviceIdStatusGetResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in macsec_statuses (list) + _items = [] + if self.macsec_statuses: + for _item_macsec_statuses in self.macsec_statuses: + if _item_macsec_statuses: + _items.append(_item_macsec_statuses.to_dict()) + _dict['macsecStatuses'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V2MonitoringMacsecDeviceIdStatusGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "macsecStatuses": [V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus.from_dict(_item) for _item in obj["macsecStatuses"]] if obj.get("macsecStatuses") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v2_monitoring_macsec_device_id_status_get_response_ma_csec_status.py b/graphiant_sdk/models/v2_monitoring_macsec_device_id_status_get_response_ma_csec_status.py new file mode 100644 index 00000000..1e4c36b0 --- /dev/null +++ b/graphiant_sdk/models/v2_monitoring_macsec_device_id_status_get_response_ma_csec_status.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus(BaseModel): + """ + V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus + """ # noqa: E501 + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["interfaceName", "status"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "interfaceName": obj.get("interfaceName"), + "status": obj.get("status") + }) + return _obj + + diff --git a/pyproject.toml b/pyproject.toml index 0a61b2ba..29800c84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "graphiant_sdk" -version = "26.3.3" +version = "26.4.1" description = "Graphiant APIs" authors = [ {name = "OpenAPI Generator Community",email = "team@openapitools.org"}, diff --git a/setup.py b/setup.py index a24c8f10..3b1b7566 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "graphiant_sdk" -VERSION = "26.3.3" +VERSION = "26.4.1" PYTHON_REQUIRES = ">= 3.10" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", diff --git a/test/test_mana_v2_domain_category.py b/test/test_mana_v2_domain_category.py new file mode 100644 index 00000000..4e34f974 --- /dev/null +++ b/test/test_mana_v2_domain_category.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.mana_v2_domain_category import ManaV2DomainCategory + +class TestManaV2DomainCategory(unittest.TestCase): + """ManaV2DomainCategory unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2DomainCategory: + """Test ManaV2DomainCategory + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ManaV2DomainCategory` + """ + model = ManaV2DomainCategory() + if include_optional: + return ManaV2DomainCategory( + description = 'example string', + id = 1234567891011, + name = 'example string', + type = 'example string' + ) + else: + return ManaV2DomainCategory( + ) + """ + + def testManaV2DomainCategory(self): + """Test ManaV2DomainCategory""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mana_v2_global_content_filter_config.py b/test/test_mana_v2_global_content_filter_config.py new file mode 100644 index 00000000..e12b58bb --- /dev/null +++ b/test/test_mana_v2_global_content_filter_config.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.mana_v2_global_content_filter_config import ManaV2GlobalContentFilterConfig + +class TestManaV2GlobalContentFilterConfig(unittest.TestCase): + """ManaV2GlobalContentFilterConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2GlobalContentFilterConfig: + """Test ManaV2GlobalContentFilterConfig + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ManaV2GlobalContentFilterConfig` + """ + model = ManaV2GlobalContentFilterConfig() + if include_optional: + return ManaV2GlobalContentFilterConfig( + lan_names = [ + 'example string' + ], + name = 'example string', + rules = [ + graphiant_sdk.models.mana_v2_global_content_filter_rule.manaV2GlobalContentFilterRule( + domain_category_id = 1234567891011, + exception_wildcards = [ + 'example string' + ], ) + ], + site_list_id = 1234567891011, + use_all_sites = True + ) + else: + return ManaV2GlobalContentFilterConfig( + ) + """ + + def testManaV2GlobalContentFilterConfig(self): + """Test ManaV2GlobalContentFilterConfig""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mana_v2_global_content_filter_rule.py b/test/test_mana_v2_global_content_filter_rule.py new file mode 100644 index 00000000..9cf09116 --- /dev/null +++ b/test/test_mana_v2_global_content_filter_rule.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.mana_v2_global_content_filter_rule import ManaV2GlobalContentFilterRule + +class TestManaV2GlobalContentFilterRule(unittest.TestCase): + """ManaV2GlobalContentFilterRule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2GlobalContentFilterRule: + """Test ManaV2GlobalContentFilterRule + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ManaV2GlobalContentFilterRule` + """ + model = ManaV2GlobalContentFilterRule() + if include_optional: + return ManaV2GlobalContentFilterRule( + domain_category_id = 1234567891011, + exception_wildcards = [ + 'example string' + ] + ) + else: + return ManaV2GlobalContentFilterRule( + ) + """ + + def testManaV2GlobalContentFilterRule(self): + """Test ManaV2GlobalContentFilterRule""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_mana_v2_region_coordinates.py b/test/test_mana_v2_region_coordinates.py new file mode 100644 index 00000000..e9206c0f --- /dev/null +++ b/test/test_mana_v2_region_coordinates.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.mana_v2_region_coordinates import ManaV2RegionCoordinates + +class TestManaV2RegionCoordinates(unittest.TestCase): + """ManaV2RegionCoordinates unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2RegionCoordinates: + """Test ManaV2RegionCoordinates + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ManaV2RegionCoordinates` + """ + model = ManaV2RegionCoordinates() + if include_optional: + return ManaV2RegionCoordinates( + latitude = 123.45, + longitude = 123.45 + ) + else: + return ManaV2RegionCoordinates( + ) + """ + + def testManaV2RegionCoordinates(self): + """Test ManaV2RegionCoordinates""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upgrade_monthly_recurrence.py b/test/test_upgrade_monthly_recurrence.py new file mode 100644 index 00000000..7493d3f0 --- /dev/null +++ b/test/test_upgrade_monthly_recurrence.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.upgrade_monthly_recurrence import UpgradeMonthlyRecurrence + +class TestUpgradeMonthlyRecurrence(unittest.TestCase): + """UpgradeMonthlyRecurrence unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpgradeMonthlyRecurrence: + """Test UpgradeMonthlyRecurrence + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpgradeMonthlyRecurrence` + """ + model = UpgradeMonthlyRecurrence() + if include_optional: + return UpgradeMonthlyRecurrence( + var_date = 15, + ordinal = 'Second', + weekday = 'Tuesday' + ) + else: + return UpgradeMonthlyRecurrence( + ) + """ + + def testUpgradeMonthlyRecurrence(self): + """Test UpgradeMonthlyRecurrence""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upgrade_recurring_schedule.py b/test/test_upgrade_recurring_schedule.py new file mode 100644 index 00000000..42ffca38 --- /dev/null +++ b/test/test_upgrade_recurring_schedule.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.upgrade_recurring_schedule import UpgradeRecurringSchedule + +class TestUpgradeRecurringSchedule(unittest.TestCase): + """UpgradeRecurringSchedule unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpgradeRecurringSchedule: + """Test UpgradeRecurringSchedule + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpgradeRecurringSchedule` + """ + model = UpgradeRecurringSchedule() + if include_optional: + return UpgradeRecurringSchedule( + monthly = graphiant_sdk.models.upgrade_monthly_recurrence.upgradeMonthlyRecurrence( + date = 15, + ordinal = 'Second', + weekday = 'Tuesday', ), + starts_at_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + weekly = graphiant_sdk.models.upgrade_weekly_recurrence.upgradeWeeklyRecurrence( + interval = 2, + weekday = 'Monday', ), + yearly = graphiant_sdk.models.upgrade_yearly_recurrence.upgradeYearlyRecurrence( + date = 1, + month = 3, + ordinal = 'First', + weekday = 'Wednesday', ) + ) + else: + return UpgradeRecurringSchedule( + starts_at_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + ) + """ + + def testUpgradeRecurringSchedule(self): + """Test UpgradeRecurringSchedule""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upgrade_rollout.py b/test/test_upgrade_rollout.py new file mode 100644 index 00000000..871914ce --- /dev/null +++ b/test/test_upgrade_rollout.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.upgrade_rollout import UpgradeRollout + +class TestUpgradeRollout(unittest.TestCase): + """UpgradeRollout unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpgradeRollout: + """Test UpgradeRollout + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpgradeRollout` + """ + model = UpgradeRollout() + if include_optional: + return UpgradeRollout( + devices = [ + graphiant_sdk.models.upgrade_rollout_device.upgradeRolloutDevice( + device_id = 1001, + hostname = 'edge-site-01', ) + ], + has_failed = True, + id = 42, + last_run_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + next_run_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + num_devices = 3, + rollout_config = graphiant_sdk.models.upgrade_rollout_config.upgradeRolloutConfig( + action = 'InstallActivate', + description = 'Upgrade branch sites to release 25.4', + device_ids = [ + 56 + ], + name = 'Q2 edge upgrade', + release = 'Recommended', + schedule = graphiant_sdk.models.upgrade_recurring_schedule.upgradeRecurringSchedule( + monthly = graphiant_sdk.models.upgrade_monthly_recurrence.upgradeMonthlyRecurrence( + date = 15, + ordinal = 'Second', + weekday = 'Tuesday', ), + starts_at_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + weekly = graphiant_sdk.models.upgrade_weekly_recurrence.upgradeWeeklyRecurrence( + interval = 2, + weekday = 'Monday', ), + yearly = graphiant_sdk.models.upgrade_yearly_recurrence.upgradeYearlyRecurrence( + date = 1, + month = 3, + ordinal = 'First', + weekday = 'Wednesday', ), ), ) + ) + else: + return UpgradeRollout( + ) + """ + + def testUpgradeRollout(self): + """Test UpgradeRollout""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upgrade_rollout_config.py b/test/test_upgrade_rollout_config.py new file mode 100644 index 00000000..5be0b1d7 --- /dev/null +++ b/test/test_upgrade_rollout_config.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.upgrade_rollout_config import UpgradeRolloutConfig + +class TestUpgradeRolloutConfig(unittest.TestCase): + """UpgradeRolloutConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpgradeRolloutConfig: + """Test UpgradeRolloutConfig + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpgradeRolloutConfig` + """ + model = UpgradeRolloutConfig() + if include_optional: + return UpgradeRolloutConfig( + action = 'InstallActivate', + description = 'Upgrade branch sites to release 25.4', + device_ids = [ + 56 + ], + name = 'Q2 edge upgrade', + release = 'Recommended', + schedule = graphiant_sdk.models.upgrade_recurring_schedule.upgradeRecurringSchedule( + monthly = graphiant_sdk.models.upgrade_monthly_recurrence.upgradeMonthlyRecurrence( + date = 15, + ordinal = 'Second', + weekday = 'Tuesday', ), + starts_at_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + weekly = graphiant_sdk.models.upgrade_weekly_recurrence.upgradeWeeklyRecurrence( + interval = 2, + weekday = 'Monday', ), + yearly = graphiant_sdk.models.upgrade_yearly_recurrence.upgradeYearlyRecurrence( + date = 1, + month = 3, + ordinal = 'First', + weekday = 'Wednesday', ), ) + ) + else: + return UpgradeRolloutConfig( + action = 'InstallActivate', + name = 'Q2 edge upgrade', + release = 'Recommended', + ) + """ + + def testUpgradeRolloutConfig(self): + """Test UpgradeRolloutConfig""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upgrade_rollout_device.py b/test/test_upgrade_rollout_device.py new file mode 100644 index 00000000..7233810d --- /dev/null +++ b/test/test_upgrade_rollout_device.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.upgrade_rollout_device import UpgradeRolloutDevice + +class TestUpgradeRolloutDevice(unittest.TestCase): + """UpgradeRolloutDevice unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpgradeRolloutDevice: + """Test UpgradeRolloutDevice + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpgradeRolloutDevice` + """ + model = UpgradeRolloutDevice() + if include_optional: + return UpgradeRolloutDevice( + device_id = 1001, + hostname = 'edge-site-01' + ) + else: + return UpgradeRolloutDevice( + ) + """ + + def testUpgradeRolloutDevice(self): + """Test UpgradeRolloutDevice""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upgrade_weekly_recurrence.py b/test/test_upgrade_weekly_recurrence.py new file mode 100644 index 00000000..52bea7d8 --- /dev/null +++ b/test/test_upgrade_weekly_recurrence.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.upgrade_weekly_recurrence import UpgradeWeeklyRecurrence + +class TestUpgradeWeeklyRecurrence(unittest.TestCase): + """UpgradeWeeklyRecurrence unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpgradeWeeklyRecurrence: + """Test UpgradeWeeklyRecurrence + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpgradeWeeklyRecurrence` + """ + model = UpgradeWeeklyRecurrence() + if include_optional: + return UpgradeWeeklyRecurrence( + interval = 2, + weekday = 'Monday' + ) + else: + return UpgradeWeeklyRecurrence( + interval = 2, + weekday = 'Monday', + ) + """ + + def testUpgradeWeeklyRecurrence(self): + """Test UpgradeWeeklyRecurrence""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upgrade_yearly_recurrence.py b/test/test_upgrade_yearly_recurrence.py new file mode 100644 index 00000000..02a45433 --- /dev/null +++ b/test/test_upgrade_yearly_recurrence.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.upgrade_yearly_recurrence import UpgradeYearlyRecurrence + +class TestUpgradeYearlyRecurrence(unittest.TestCase): + """UpgradeYearlyRecurrence unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpgradeYearlyRecurrence: + """Test UpgradeYearlyRecurrence + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpgradeYearlyRecurrence` + """ + model = UpgradeYearlyRecurrence() + if include_optional: + return UpgradeYearlyRecurrence( + var_date = 1, + month = 3, + ordinal = 'First', + weekday = 'Wednesday' + ) + else: + return UpgradeYearlyRecurrence( + month = 3, + ) + """ + + def testUpgradeYearlyRecurrence(self): + """Test UpgradeYearlyRecurrence""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_global_content_filters_get_response.py b/test/test_v1_global_content_filters_get_response.py new file mode 100644 index 00000000..082d7ab7 --- /dev/null +++ b/test/test_v1_global_content_filters_get_response.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_global_content_filters_get_response import V1GlobalContentFiltersGetResponse + +class TestV1GlobalContentFiltersGetResponse(unittest.TestCase): + """V1GlobalContentFiltersGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1GlobalContentFiltersGetResponse: + """Test V1GlobalContentFiltersGetResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1GlobalContentFiltersGetResponse` + """ + model = V1GlobalContentFiltersGetResponse() + if include_optional: + return V1GlobalContentFiltersGetResponse( + rows = [ + graphiant_sdk.models.v1_global_content_filters_get_response_row.v1GlobalContentFiltersGetResponseRow( + created_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + global_content_filter_id = 1234567891011, + global_content_filter_name = 'example string', + lans = [ + graphiant_sdk.models.v1_global_content_filters_get_response_row_lan_entry.v1GlobalContentFiltersGetResponseRowLanEntry( + lan_name = 'example string', ) + ], + rules = [ + graphiant_sdk.models.v1_global_content_filters_get_response_row_rule_entry.v1GlobalContentFiltersGetResponseRowRuleEntry( + domain_category = 'example string', + exception_wildcards = [ + 'example string' + ], ) + ], + sites = [ + graphiant_sdk.models.v1_global_content_filters_get_response_row_site_entry.v1GlobalContentFiltersGetResponseRowSiteEntry( + site_name = 'example string', ) + ], + updated_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), ) + ] + ) + else: + return V1GlobalContentFiltersGetResponse( + ) + """ + + def testV1GlobalContentFiltersGetResponse(self): + """Test V1GlobalContentFiltersGetResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_global_content_filters_get_response_row.py b/test/test_v1_global_content_filters_get_response_row.py new file mode 100644 index 00000000..31bb7403 --- /dev/null +++ b/test/test_v1_global_content_filters_get_response_row.py @@ -0,0 +1,73 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_global_content_filters_get_response_row import V1GlobalContentFiltersGetResponseRow + +class TestV1GlobalContentFiltersGetResponseRow(unittest.TestCase): + """V1GlobalContentFiltersGetResponseRow unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1GlobalContentFiltersGetResponseRow: + """Test V1GlobalContentFiltersGetResponseRow + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1GlobalContentFiltersGetResponseRow` + """ + model = V1GlobalContentFiltersGetResponseRow() + if include_optional: + return V1GlobalContentFiltersGetResponseRow( + created_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + global_content_filter_id = 1234567891011, + global_content_filter_name = 'example string', + lans = [ + graphiant_sdk.models.v1_global_content_filters_get_response_row_lan_entry.v1GlobalContentFiltersGetResponseRowLanEntry( + lan_name = 'example string', ) + ], + rules = [ + graphiant_sdk.models.v1_global_content_filters_get_response_row_rule_entry.v1GlobalContentFiltersGetResponseRowRuleEntry( + domain_category = 'example string', + exception_wildcards = [ + 'example string' + ], ) + ], + sites = [ + graphiant_sdk.models.v1_global_content_filters_get_response_row_site_entry.v1GlobalContentFiltersGetResponseRowSiteEntry( + site_name = 'example string', ) + ], + updated_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ) + ) + else: + return V1GlobalContentFiltersGetResponseRow( + ) + """ + + def testV1GlobalContentFiltersGetResponseRow(self): + """Test V1GlobalContentFiltersGetResponseRow""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_global_content_filters_get_response_row_lan_entry.py b/test/test_v1_global_content_filters_get_response_row_lan_entry.py new file mode 100644 index 00000000..cd327901 --- /dev/null +++ b/test/test_v1_global_content_filters_get_response_row_lan_entry.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_global_content_filters_get_response_row_lan_entry import V1GlobalContentFiltersGetResponseRowLanEntry + +class TestV1GlobalContentFiltersGetResponseRowLanEntry(unittest.TestCase): + """V1GlobalContentFiltersGetResponseRowLanEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1GlobalContentFiltersGetResponseRowLanEntry: + """Test V1GlobalContentFiltersGetResponseRowLanEntry + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1GlobalContentFiltersGetResponseRowLanEntry` + """ + model = V1GlobalContentFiltersGetResponseRowLanEntry() + if include_optional: + return V1GlobalContentFiltersGetResponseRowLanEntry( + lan_name = 'example string' + ) + else: + return V1GlobalContentFiltersGetResponseRowLanEntry( + ) + """ + + def testV1GlobalContentFiltersGetResponseRowLanEntry(self): + """Test V1GlobalContentFiltersGetResponseRowLanEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_global_content_filters_get_response_row_rule_entry.py b/test/test_v1_global_content_filters_get_response_row_rule_entry.py new file mode 100644 index 00000000..d6a7e819 --- /dev/null +++ b/test/test_v1_global_content_filters_get_response_row_rule_entry.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_global_content_filters_get_response_row_rule_entry import V1GlobalContentFiltersGetResponseRowRuleEntry + +class TestV1GlobalContentFiltersGetResponseRowRuleEntry(unittest.TestCase): + """V1GlobalContentFiltersGetResponseRowRuleEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1GlobalContentFiltersGetResponseRowRuleEntry: + """Test V1GlobalContentFiltersGetResponseRowRuleEntry + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1GlobalContentFiltersGetResponseRowRuleEntry` + """ + model = V1GlobalContentFiltersGetResponseRowRuleEntry() + if include_optional: + return V1GlobalContentFiltersGetResponseRowRuleEntry( + domain_category = 'example string', + exception_wildcards = [ + 'example string' + ] + ) + else: + return V1GlobalContentFiltersGetResponseRowRuleEntry( + ) + """ + + def testV1GlobalContentFiltersGetResponseRowRuleEntry(self): + """Test V1GlobalContentFiltersGetResponseRowRuleEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_global_content_filters_get_response_row_site_entry.py b/test/test_v1_global_content_filters_get_response_row_site_entry.py new file mode 100644 index 00000000..9628510c --- /dev/null +++ b/test/test_v1_global_content_filters_get_response_row_site_entry.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_global_content_filters_get_response_row_site_entry import V1GlobalContentFiltersGetResponseRowSiteEntry + +class TestV1GlobalContentFiltersGetResponseRowSiteEntry(unittest.TestCase): + """V1GlobalContentFiltersGetResponseRowSiteEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1GlobalContentFiltersGetResponseRowSiteEntry: + """Test V1GlobalContentFiltersGetResponseRowSiteEntry + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1GlobalContentFiltersGetResponseRowSiteEntry` + """ + model = V1GlobalContentFiltersGetResponseRowSiteEntry() + if include_optional: + return V1GlobalContentFiltersGetResponseRowSiteEntry( + site_name = 'example string' + ) + else: + return V1GlobalContentFiltersGetResponseRowSiteEntry( + ) + """ + + def testV1GlobalContentFiltersGetResponseRowSiteEntry(self): + """Test V1GlobalContentFiltersGetResponseRowSiteEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_global_content_filters_global_content_filter_id_get_response.py b/test/test_v1_global_content_filters_global_content_filter_id_get_response.py new file mode 100644 index 00000000..62ba0729 --- /dev/null +++ b/test/test_v1_global_content_filters_global_content_filter_id_get_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_get_response import V1GlobalContentFiltersGlobalContentFilterIdGetResponse + +class TestV1GlobalContentFiltersGlobalContentFilterIdGetResponse(unittest.TestCase): + """V1GlobalContentFiltersGlobalContentFilterIdGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1GlobalContentFiltersGlobalContentFilterIdGetResponse: + """Test V1GlobalContentFiltersGlobalContentFilterIdGetResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1GlobalContentFiltersGlobalContentFilterIdGetResponse` + """ + model = V1GlobalContentFiltersGlobalContentFilterIdGetResponse() + if include_optional: + return V1GlobalContentFiltersGlobalContentFilterIdGetResponse( + config = graphiant_sdk.models.mana_v2_global_content_filter_config.manaV2GlobalContentFilterConfig( + lan_names = [ + 'example string' + ], + name = 'example string', + rules = [ + graphiant_sdk.models.mana_v2_global_content_filter_rule.manaV2GlobalContentFilterRule( + domain_category_id = 1234567891011, + exception_wildcards = [ + 'example string' + ], ) + ], + site_list_id = 1234567891011, + use_all_sites = True, ) + ) + else: + return V1GlobalContentFiltersGlobalContentFilterIdGetResponse( + ) + """ + + def testV1GlobalContentFiltersGlobalContentFilterIdGetResponse(self): + """Test V1GlobalContentFiltersGlobalContentFilterIdGetResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_global_content_filters_global_content_filter_id_put_request.py b/test/test_v1_global_content_filters_global_content_filter_id_put_request.py new file mode 100644 index 00000000..4d5fba5a --- /dev/null +++ b/test/test_v1_global_content_filters_global_content_filter_id_put_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_put_request import V1GlobalContentFiltersGlobalContentFilterIdPutRequest + +class TestV1GlobalContentFiltersGlobalContentFilterIdPutRequest(unittest.TestCase): + """V1GlobalContentFiltersGlobalContentFilterIdPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1GlobalContentFiltersGlobalContentFilterIdPutRequest: + """Test V1GlobalContentFiltersGlobalContentFilterIdPutRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1GlobalContentFiltersGlobalContentFilterIdPutRequest` + """ + model = V1GlobalContentFiltersGlobalContentFilterIdPutRequest() + if include_optional: + return V1GlobalContentFiltersGlobalContentFilterIdPutRequest( + config = graphiant_sdk.models.mana_v2_global_content_filter_config.manaV2GlobalContentFilterConfig( + lan_names = [ + 'example string' + ], + name = 'example string', + rules = [ + graphiant_sdk.models.mana_v2_global_content_filter_rule.manaV2GlobalContentFilterRule( + domain_category_id = 1234567891011, + exception_wildcards = [ + 'example string' + ], ) + ], + site_list_id = 1234567891011, + use_all_sites = True, ) + ) + else: + return V1GlobalContentFiltersGlobalContentFilterIdPutRequest( + ) + """ + + def testV1GlobalContentFiltersGlobalContentFilterIdPutRequest(self): + """Test V1GlobalContentFiltersGlobalContentFilterIdPutRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_global_content_filters_post_request.py b/test/test_v1_global_content_filters_post_request.py new file mode 100644 index 00000000..1db425ac --- /dev/null +++ b/test/test_v1_global_content_filters_post_request.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_global_content_filters_post_request import V1GlobalContentFiltersPostRequest + +class TestV1GlobalContentFiltersPostRequest(unittest.TestCase): + """V1GlobalContentFiltersPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1GlobalContentFiltersPostRequest: + """Test V1GlobalContentFiltersPostRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1GlobalContentFiltersPostRequest` + """ + model = V1GlobalContentFiltersPostRequest() + if include_optional: + return V1GlobalContentFiltersPostRequest( + config = graphiant_sdk.models.mana_v2_global_content_filter_config.manaV2GlobalContentFilterConfig( + lan_names = [ + 'example string' + ], + name = 'example string', + rules = [ + graphiant_sdk.models.mana_v2_global_content_filter_rule.manaV2GlobalContentFilterRule( + domain_category_id = 1234567891011, + exception_wildcards = [ + 'example string' + ], ) + ], + site_list_id = 1234567891011, + use_all_sites = True, ) + ) + else: + return V1GlobalContentFiltersPostRequest( + ) + """ + + def testV1GlobalContentFiltersPostRequest(self): + """Test V1GlobalContentFiltersPostRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_global_content_filters_post_response.py b/test/test_v1_global_content_filters_post_response.py new file mode 100644 index 00000000..5b7b146d --- /dev/null +++ b/test/test_v1_global_content_filters_post_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_global_content_filters_post_response import V1GlobalContentFiltersPostResponse + +class TestV1GlobalContentFiltersPostResponse(unittest.TestCase): + """V1GlobalContentFiltersPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1GlobalContentFiltersPostResponse: + """Test V1GlobalContentFiltersPostResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1GlobalContentFiltersPostResponse` + """ + model = V1GlobalContentFiltersPostResponse() + if include_optional: + return V1GlobalContentFiltersPostResponse( + global_content_filter_id = 1234567891011 + ) + else: + return V1GlobalContentFiltersPostResponse( + ) + """ + + def testV1GlobalContentFiltersPostResponse(self): + """Test V1GlobalContentFiltersPostResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_global_domain_categories_get_response.py b/test/test_v1_global_domain_categories_get_response.py new file mode 100644 index 00000000..776bb27a --- /dev/null +++ b/test/test_v1_global_domain_categories_get_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_global_domain_categories_get_response import V1GlobalDomainCategoriesGetResponse + +class TestV1GlobalDomainCategoriesGetResponse(unittest.TestCase): + """V1GlobalDomainCategoriesGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1GlobalDomainCategoriesGetResponse: + """Test V1GlobalDomainCategoriesGetResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1GlobalDomainCategoriesGetResponse` + """ + model = V1GlobalDomainCategoriesGetResponse() + if include_optional: + return V1GlobalDomainCategoriesGetResponse( + domain_categories = [ + graphiant_sdk.models.mana_v2_domain_category.manaV2DomainCategory( + description = 'example string', + id = 1234567891011, + name = 'example string', + type = 'example string', ) + ] + ) + else: + return V1GlobalDomainCategoriesGetResponse( + ) + """ + + def testV1GlobalDomainCategoriesGetResponse(self): + """Test V1GlobalDomainCategoriesGetResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_software_rollouts_get_response.py b/test/test_v1_software_rollouts_get_response.py new file mode 100644 index 00000000..8eb3325d --- /dev/null +++ b/test/test_v1_software_rollouts_get_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_software_rollouts_get_response import V1SoftwareRolloutsGetResponse + +class TestV1SoftwareRolloutsGetResponse(unittest.TestCase): + """V1SoftwareRolloutsGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1SoftwareRolloutsGetResponse: + """Test V1SoftwareRolloutsGetResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1SoftwareRolloutsGetResponse` + """ + model = V1SoftwareRolloutsGetResponse() + if include_optional: + return V1SoftwareRolloutsGetResponse( + rollouts = [ + graphiant_sdk.models.upgrade_rollout.upgradeRollout( + devices = [ + graphiant_sdk.models.upgrade_rollout_device.upgradeRolloutDevice( + device_id = 1001, + hostname = 'edge-site-01', ) + ], + has_failed = True, + id = 42, + last_run_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + next_run_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + num_devices = 3, + rollout_config = graphiant_sdk.models.upgrade_rollout_config.upgradeRolloutConfig( + action = 'InstallActivate', + description = 'Upgrade branch sites to release 25.4', + device_ids = [ + 56 + ], + name = 'Q2 edge upgrade', + release = 'Recommended', + schedule = graphiant_sdk.models.upgrade_recurring_schedule.upgradeRecurringSchedule( + monthly = graphiant_sdk.models.upgrade_monthly_recurrence.upgradeMonthlyRecurrence( + date = 15, + ordinal = 'Second', + weekday = 'Tuesday', ), + starts_at_ts = , + weekly = graphiant_sdk.models.upgrade_weekly_recurrence.upgradeWeeklyRecurrence( + interval = 2, + weekday = 'Monday', ), + yearly = graphiant_sdk.models.upgrade_yearly_recurrence.upgradeYearlyRecurrence( + date = 1, + month = 3, + ordinal = 'First', + weekday = 'Wednesday', ), ), ), ) + ] + ) + else: + return V1SoftwareRolloutsGetResponse( + ) + """ + + def testV1SoftwareRolloutsGetResponse(self): + """Test V1SoftwareRolloutsGetResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_software_rollouts_id_get_response.py b/test/test_v1_software_rollouts_id_get_response.py new file mode 100644 index 00000000..580519a6 --- /dev/null +++ b/test/test_v1_software_rollouts_id_get_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_software_rollouts_id_get_response import V1SoftwareRolloutsIdGetResponse + +class TestV1SoftwareRolloutsIdGetResponse(unittest.TestCase): + """V1SoftwareRolloutsIdGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1SoftwareRolloutsIdGetResponse: + """Test V1SoftwareRolloutsIdGetResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1SoftwareRolloutsIdGetResponse` + """ + model = V1SoftwareRolloutsIdGetResponse() + if include_optional: + return V1SoftwareRolloutsIdGetResponse( + rollout = graphiant_sdk.models.upgrade_rollout.upgradeRollout( + devices = [ + graphiant_sdk.models.upgrade_rollout_device.upgradeRolloutDevice( + device_id = 1001, + hostname = 'edge-site-01', ) + ], + has_failed = True, + id = 42, + last_run_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + next_run_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + num_devices = 3, + rollout_config = graphiant_sdk.models.upgrade_rollout_config.upgradeRolloutConfig( + action = 'InstallActivate', + description = 'Upgrade branch sites to release 25.4', + device_ids = [ + 56 + ], + name = 'Q2 edge upgrade', + release = 'Recommended', + schedule = graphiant_sdk.models.upgrade_recurring_schedule.upgradeRecurringSchedule( + monthly = graphiant_sdk.models.upgrade_monthly_recurrence.upgradeMonthlyRecurrence( + date = 15, + ordinal = 'Second', + weekday = 'Tuesday', ), + starts_at_ts = , + weekly = graphiant_sdk.models.upgrade_weekly_recurrence.upgradeWeeklyRecurrence( + interval = 2, + weekday = 'Monday', ), + yearly = graphiant_sdk.models.upgrade_yearly_recurrence.upgradeYearlyRecurrence( + date = 1, + month = 3, + ordinal = 'First', + weekday = 'Wednesday', ), ), ), ) + ) + else: + return V1SoftwareRolloutsIdGetResponse( + ) + """ + + def testV1SoftwareRolloutsIdGetResponse(self): + """Test V1SoftwareRolloutsIdGetResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_software_rollouts_post_request.py b/test/test_v1_software_rollouts_post_request.py new file mode 100644 index 00000000..737325c9 --- /dev/null +++ b/test/test_v1_software_rollouts_post_request.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_software_rollouts_post_request import V1SoftwareRolloutsPostRequest + +class TestV1SoftwareRolloutsPostRequest(unittest.TestCase): + """V1SoftwareRolloutsPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1SoftwareRolloutsPostRequest: + """Test V1SoftwareRolloutsPostRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1SoftwareRolloutsPostRequest` + """ + model = V1SoftwareRolloutsPostRequest() + if include_optional: + return V1SoftwareRolloutsPostRequest( + rollout_config = graphiant_sdk.models.upgrade_rollout_config.upgradeRolloutConfig( + action = 'InstallActivate', + description = 'Upgrade branch sites to release 25.4', + device_ids = [ + 56 + ], + name = 'Q2 edge upgrade', + release = 'Recommended', + schedule = graphiant_sdk.models.upgrade_recurring_schedule.upgradeRecurringSchedule( + monthly = graphiant_sdk.models.upgrade_monthly_recurrence.upgradeMonthlyRecurrence( + date = 15, + ordinal = 'Second', + weekday = 'Tuesday', ), + starts_at_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + weekly = graphiant_sdk.models.upgrade_weekly_recurrence.upgradeWeeklyRecurrence( + interval = 2, + weekday = 'Monday', ), + yearly = graphiant_sdk.models.upgrade_yearly_recurrence.upgradeYearlyRecurrence( + date = 1, + month = 3, + ordinal = 'First', + weekday = 'Wednesday', ), ), ) + ) + else: + return V1SoftwareRolloutsPostRequest( + rollout_config = graphiant_sdk.models.upgrade_rollout_config.upgradeRolloutConfig( + action = 'InstallActivate', + description = 'Upgrade branch sites to release 25.4', + device_ids = [ + 56 + ], + name = 'Q2 edge upgrade', + release = 'Recommended', + schedule = graphiant_sdk.models.upgrade_recurring_schedule.upgradeRecurringSchedule( + monthly = graphiant_sdk.models.upgrade_monthly_recurrence.upgradeMonthlyRecurrence( + date = 15, + ordinal = 'Second', + weekday = 'Tuesday', ), + starts_at_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + weekly = graphiant_sdk.models.upgrade_weekly_recurrence.upgradeWeeklyRecurrence( + interval = 2, + weekday = 'Monday', ), + yearly = graphiant_sdk.models.upgrade_yearly_recurrence.upgradeYearlyRecurrence( + date = 1, + month = 3, + ordinal = 'First', + weekday = 'Wednesday', ), ), ), + ) + """ + + def testV1SoftwareRolloutsPostRequest(self): + """Test V1SoftwareRolloutsPostRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_software_rollouts_post_response.py b/test/test_v1_software_rollouts_post_response.py new file mode 100644 index 00000000..e409012c --- /dev/null +++ b/test/test_v1_software_rollouts_post_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_software_rollouts_post_response import V1SoftwareRolloutsPostResponse + +class TestV1SoftwareRolloutsPostResponse(unittest.TestCase): + """V1SoftwareRolloutsPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1SoftwareRolloutsPostResponse: + """Test V1SoftwareRolloutsPostResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1SoftwareRolloutsPostResponse` + """ + model = V1SoftwareRolloutsPostResponse() + if include_optional: + return V1SoftwareRolloutsPostResponse( + id = 42 + ) + else: + return V1SoftwareRolloutsPostResponse( + ) + """ + + def testV1SoftwareRolloutsPostResponse(self): + """Test V1SoftwareRolloutsPostResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_software_rollouts_put_request.py b/test/test_v1_software_rollouts_put_request.py new file mode 100644 index 00000000..0a1ff851 --- /dev/null +++ b/test/test_v1_software_rollouts_put_request.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_software_rollouts_put_request import V1SoftwareRolloutsPutRequest + +class TestV1SoftwareRolloutsPutRequest(unittest.TestCase): + """V1SoftwareRolloutsPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1SoftwareRolloutsPutRequest: + """Test V1SoftwareRolloutsPutRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1SoftwareRolloutsPutRequest` + """ + model = V1SoftwareRolloutsPutRequest() + if include_optional: + return V1SoftwareRolloutsPutRequest( + id = 42, + rollout_config = graphiant_sdk.models.upgrade_rollout_config.upgradeRolloutConfig( + action = 'InstallActivate', + description = 'Upgrade branch sites to release 25.4', + device_ids = [ + 56 + ], + name = 'Q2 edge upgrade', + release = 'Recommended', + schedule = graphiant_sdk.models.upgrade_recurring_schedule.upgradeRecurringSchedule( + monthly = graphiant_sdk.models.upgrade_monthly_recurrence.upgradeMonthlyRecurrence( + date = 15, + ordinal = 'Second', + weekday = 'Tuesday', ), + starts_at_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + weekly = graphiant_sdk.models.upgrade_weekly_recurrence.upgradeWeeklyRecurrence( + interval = 2, + weekday = 'Monday', ), + yearly = graphiant_sdk.models.upgrade_yearly_recurrence.upgradeYearlyRecurrence( + date = 1, + month = 3, + ordinal = 'First', + weekday = 'Wednesday', ), ), ) + ) + else: + return V1SoftwareRolloutsPutRequest( + id = 42, + rollout_config = graphiant_sdk.models.upgrade_rollout_config.upgradeRolloutConfig( + action = 'InstallActivate', + description = 'Upgrade branch sites to release 25.4', + device_ids = [ + 56 + ], + name = 'Q2 edge upgrade', + release = 'Recommended', + schedule = graphiant_sdk.models.upgrade_recurring_schedule.upgradeRecurringSchedule( + monthly = graphiant_sdk.models.upgrade_monthly_recurrence.upgradeMonthlyRecurrence( + date = 15, + ordinal = 'Second', + weekday = 'Tuesday', ), + starts_at_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + weekly = graphiant_sdk.models.upgrade_weekly_recurrence.upgradeWeeklyRecurrence( + interval = 2, + weekday = 'Monday', ), + yearly = graphiant_sdk.models.upgrade_yearly_recurrence.upgradeYearlyRecurrence( + date = 1, + month = 3, + ordinal = 'First', + weekday = 'Wednesday', ), ), ), + ) + """ + + def testV1SoftwareRolloutsPutRequest(self): + """Test V1SoftwareRolloutsPutRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_software_rollouts_schedule_post_request.py b/test/test_v1_software_rollouts_schedule_post_request.py new file mode 100644 index 00000000..47b1f533 --- /dev/null +++ b/test/test_v1_software_rollouts_schedule_post_request.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_software_rollouts_schedule_post_request import V1SoftwareRolloutsSchedulePostRequest + +class TestV1SoftwareRolloutsSchedulePostRequest(unittest.TestCase): + """V1SoftwareRolloutsSchedulePostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1SoftwareRolloutsSchedulePostRequest: + """Test V1SoftwareRolloutsSchedulePostRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1SoftwareRolloutsSchedulePostRequest` + """ + model = V1SoftwareRolloutsSchedulePostRequest() + if include_optional: + return V1SoftwareRolloutsSchedulePostRequest( + failed_only = True, + id = 42, + ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ) + ) + else: + return V1SoftwareRolloutsSchedulePostRequest( + id = 42, + ) + """ + + def testV1SoftwareRolloutsSchedulePostRequest(self): + """Test V1SoftwareRolloutsSchedulePostRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_ztagent_bindings_get_response.py b/test/test_v1_ztagent_bindings_get_response.py new file mode 100644 index 00000000..e3a6eb89 --- /dev/null +++ b/test/test_v1_ztagent_bindings_get_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_ztagent_bindings_get_response import V1ZtagentBindingsGetResponse + +class TestV1ZtagentBindingsGetResponse(unittest.TestCase): + """V1ZtagentBindingsGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ZtagentBindingsGetResponse: + """Test V1ZtagentBindingsGetResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1ZtagentBindingsGetResponse` + """ + model = V1ZtagentBindingsGetResponse() + if include_optional: + return V1ZtagentBindingsGetResponse( + customer_id = 'example string', + enterprise_id = 1234567891011, + site_id = 'example string' + ) + else: + return V1ZtagentBindingsGetResponse( + ) + """ + + def testV1ZtagentBindingsGetResponse(self): + """Test V1ZtagentBindingsGetResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_ztagent_bindings_put_request.py b/test/test_v1_ztagent_bindings_put_request.py new file mode 100644 index 00000000..2d1d4e2c --- /dev/null +++ b/test/test_v1_ztagent_bindings_put_request.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v1_ztagent_bindings_put_request import V1ZtagentBindingsPutRequest + +class TestV1ZtagentBindingsPutRequest(unittest.TestCase): + """V1ZtagentBindingsPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ZtagentBindingsPutRequest: + """Test V1ZtagentBindingsPutRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V1ZtagentBindingsPutRequest` + """ + model = V1ZtagentBindingsPutRequest() + if include_optional: + return V1ZtagentBindingsPutRequest( + customer_id = 'example string', + enterprise_id = 1234567891011, + site_id = 'example string' + ) + else: + return V1ZtagentBindingsPutRequest( + ) + """ + + def testV1ZtagentBindingsPutRequest(self): + """Test V1ZtagentBindingsPutRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v2_monitoring_macsec_device_id_status_get_response.py b/test/test_v2_monitoring_macsec_device_id_status_get_response.py new file mode 100644 index 00000000..f18c46c6 --- /dev/null +++ b/test/test_v2_monitoring_macsec_device_id_status_get_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response import V2MonitoringMacsecDeviceIdStatusGetResponse + +class TestV2MonitoringMacsecDeviceIdStatusGetResponse(unittest.TestCase): + """V2MonitoringMacsecDeviceIdStatusGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2MonitoringMacsecDeviceIdStatusGetResponse: + """Test V2MonitoringMacsecDeviceIdStatusGetResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V2MonitoringMacsecDeviceIdStatusGetResponse` + """ + model = V2MonitoringMacsecDeviceIdStatusGetResponse() + if include_optional: + return V2MonitoringMacsecDeviceIdStatusGetResponse( + macsec_statuses = [ + graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response_ma_csec_status.v2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus( + interface_name = 'example string', + status = 'ENUM_VALUE', ) + ] + ) + else: + return V2MonitoringMacsecDeviceIdStatusGetResponse( + ) + """ + + def testV2MonitoringMacsecDeviceIdStatusGetResponse(self): + """Test V2MonitoringMacsecDeviceIdStatusGetResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v2_monitoring_macsec_device_id_status_get_response_ma_csec_status.py b/test/test_v2_monitoring_macsec_device_id_status_get_response_ma_csec_status.py new file mode 100644 index 00000000..7f687c13 --- /dev/null +++ b/test/test_v2_monitoring_macsec_device_id_status_get_response_ma_csec_status.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.v2_monitoring_macsec_device_id_status_get_response_ma_csec_status import V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus + +class TestV2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus(unittest.TestCase): + """V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus: + """Test V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus` + """ + model = V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus() + if include_optional: + return V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus( + interface_name = 'example string', + status = 'ENUM_VALUE' + ) + else: + return V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus( + ) + """ + + def testV2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus(self): + """Test V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main()