diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d77ab2c..de8eee7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,25 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +## [26.6.0] - 2026-07-08 + +### Added +- **API spec:** `graphiant_api_docs_v26.6.0.json` +- **Extranet B2B:** **`/v1/extranet/b2b/`** — customers, producers, consumers, matches (create/review/pause/status), and service summary; models **`V1ExtranetB2b*`** and **`ManaV2B2bExtranetMatch*`**, **`ManaV2ExtranetService*`** (consumer/producer policy, customer invite/match/summary, NAT translation modes) +- **Public VIF (PVIF):** **`POST /v1/pvif`**, **`GET /v1/pvif/summary`**, **`GET`/`PUT`/`DELETE /v1/pvif/{id}`**, **`GET /v1/pvif/{id}/details`**; models **`V1Pvif*`** and **`ManaV2PublicVifGateway*`** (gateway NAT, consumer LAN devices, decentralized prefixes) +- **Assurance AI adoption:** **`POST /v2/assurance/ai-adoption-summary`**, approve-entry CRUD (**`create`/`read`/`update`/`delete`**), **`POST /v2/assurance/get-app-names`**; models **`V2AssuranceAiAdoption*`**, **`AssuranceApprovedAppEntry*`**, **`AssuranceKpiMetric`**, **`AssuranceTopLevelKpi`**, **`AssuranceUserDefinition`**, **`AssuranceWhatWidget`**, **`AssuranceWhenWidget`**, **`AssuranceWhereWidget`** +- **LAN / region / ZT:** **`GET /v1/lan-segments/interfaces/public`** (**`ManaV2LanSegmentPublicInterfaceEntry`**); **`GET /v1/regions/{regionId}/gateways`**; **`GET /v1/ztagent/agents`** (**`ConcealAgent`**) +- **Developer tooling:** **`[project.optional-dependencies]` `dev`** extra so **`make install`** (`pip install -e ".[dev]"`) installs pytest, flake8, mypy, and related dev deps; **`types-click`** for CLI type-checking + +### Changed +- **Version:** Package **26.6.0**; OpenAPI bundle **`graphiant_api_docs_v26.6.0.json`** (replaces **26.5.0** bundle in-repo). +- **SDK (generated):** Refreshed **`default_api`**, **`api_client`**, **`configuration`**, model exports, and **`docs/`** to match the **26.6.0** spec (**460** paths, **1565** schemas). +- **CLI / hand-written SDK:** Flake8 and mypy clean for **`graphiant_cli/`** and preserved SDK modules (Playwright **`Request`/`Response`** typing, **`QueryDict`** on **`graphiant rest`**, line-length and style fixes). + +### Removed +- **Extranet public VIF (legacy):** **`GET`/`POST /v1/extranet-public-vif`**, **`POST /v1/extranet-public-vif/check`**, **`GET`/`PUT`/`DELETE /v1/extranet-public-vif/{id}`**; models **`V1ExtranetPublicVif*`** and **`ManaV2PublicVif*`** (superseded by **PVIF** and **extranet B2B** APIs in this spec). +- **API spec:** removed **`graphiant_api_docs_v26.5.0.json`** (superseded by **26.6.0** bundle). + ## [26.5.0] - 2026-06-10 ### Added diff --git a/README.md b/README.md index f48e15a5..6db9252a 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)** | [`api/graphiant_api_docs_v26.5.0.json`](https://github.com/Graphiant-Inc/graphiant-sdk-python/blob/main/api/graphiant_api_docs_v26.5.0.json) — source for generated paths and models | +| **OpenAPI bundle (this build)** | [`api/graphiant_api_docs_v26.6.0.json`](https://github.com/Graphiant-Inc/graphiant-sdk-python/blob/main/api/graphiant_api_docs_v26.6.0.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) | @@ -477,12 +477,12 @@ To regenerate the SDK from the latest API specification: make generate # Or run the script directly (supports OPENAPI_SPEC override) -OPENAPI_SPEC=api/graphiant_api_docs_v26.5.0.json bash scripts/generate.sh +OPENAPI_SPEC=api/graphiant_api_docs_v26.6.0.json bash scripts/generate.sh ``` `scripts/generate.sh` wraps the full `openapi-generator-cli generate` invocation. It auto-detects `openapi-generator` (Homebrew) or `openapi-generator-cli` (npm), reads the current version from `pyproject.toml`, and passes `--git-user-id`/`--git-repo-id` so generated docs never contain `GIT_USER_ID` placeholders. -> **Note:** Download the latest API bundle from the Graphiant portal under **Support Hub** → **Developer Tools** and place it in `api/`. The versioned JSON bundle (`api/graphiant_api_docs_v26.5.0.json`) is the snapshot used for this release; `api/openapi.yaml` is the primary YAML spec. Hand-written files listed in `.openapi-generator-ignore` (`graphiant_cli/`, `graphiant_sdk/api_client.py`, `configuration.py`, etc.) are never overwritten by the generator. +> **Note:** Download the latest API bundle from the Graphiant portal under **Support Hub** → **Developer Tools** and place it in `api/`. The versioned JSON bundle (`api/graphiant_api_docs_v26.6.0.json`) is the snapshot used for this release; `api/openapi.yaml` is the primary YAML spec. Hand-written files listed in `.openapi-generator-ignore` (`graphiant_cli/`, `graphiant_sdk/api_client.py`, `configuration.py`, etc.) are never overwritten by the generator. ### Testing @@ -498,7 +498,7 @@ pytest tests/ --cov=graphiant_sdk --cov-report=html ### Source of truth (this release) -Operations and schemas are generated from **`api/graphiant_api_docs_v26.5.0.json`** (in `api/` and bundled in the PyPI wheel). For a newer portal/API, download the current bundle (Support Hub → Developer Tools) and diff paths before relying on URLs here. +Operations and schemas are generated from **`api/graphiant_api_docs_v26.6.0.json`** (in `api/` and bundled in the PyPI wheel). For a newer portal/API, download the current bundle (Support Hub → Developer Tools) and diff paths before relying on URLs here. | How to explore | Where | |----------------|-------| @@ -529,7 +529,7 @@ REST query parameters use **camelCase** in URLs (`enterpriseId`). Generated Pyth | **`V1GlobalSummaryPostRequest`**, **`V1GlobalSummaryPostResponse`** | **`POST /v1/global/summary`** | | **`V2ParentalertlistPostRequest`**, **`V2ParentalertlistPostResponse`** | **`POST /v2/parentalertlist`** | -### Sample HTTP endpoints (from `graphiant_api_docs_v26.5.0.json`) +### Sample HTTP endpoints (from `graphiant_api_docs_v26.6.0.json`) The API surface is large; this table lists **real** paths from the bundled spec. For the full set, use **`graphiant api list`** or **`DefaultApi.md`**. diff --git a/SECURITY.md b/SECURITY.md index 5defe3d1..ca6643a3 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,8 +6,9 @@ We actively support the following versions with security updates: | Version | Supported | Notes | | ------- | ------------------ | ---------------------------------------- | -| 26.5.x | :white_check_mark: | Current stable release (latest: **26.5.0**) | -| 26.4.x | :white_check_mark: | Previous release line (latest: **26.4.0**) | +| 26.6.x | :white_check_mark: | Current stable release (latest: **26.6.0**) | +| 26.5.x | :white_check_mark: | Previous release line (latest: **26.5.0**) | +| 26.4.x | :white_check_mark: | Older supported release (latest: **26.4.0**) | | 26.3.x | :white_check_mark: | Older supported release (latest: **26.3.3**) | | 26.2.x | :white_check_mark: | Older supported release | | 26.1.x | :white_check_mark: | Older supported release | @@ -276,4 +277,4 @@ For security concerns, please contact: **security@graphiant.com** --- -**Last Updated**: 2026-06-10 +**Last Updated**: 2026-07-08 diff --git a/api/graphiant_api_docs_v26.5.0.json b/api/graphiant_api_docs_v26.6.0.json old mode 100755 new mode 100644 similarity index 92% rename from api/graphiant_api_docs_v26.5.0.json rename to api/graphiant_api_docs_v26.6.0.json index 04c1bbd9..24912b51 --- a/api/graphiant_api_docs_v26.5.0.json +++ b/api/graphiant_api_docs_v26.6.0.json @@ -1979,6 +1979,10 @@ "format": "int64", "example": 1234567891011 }, + "appAiTag": { + "type": "string", + "example": "ENUM_VALUE" + }, "appId": { "type": "integer", "format": "int64", @@ -3556,6 +3560,375 @@ }, "additionalProperties": false }, + "v2AssuranceAiAdoptionSummaryPostRequest": { + "type": "object", + "properties": { + "timeWindow": { + "$ref": "#/components/schemas/assuranceTimeWindow" + }, + "userListSize": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "list size of user list in where widget (required)" + } + }, + "additionalProperties": false, + "required": [ + "timeWindow", + "userListSize" + ] + }, + "v2AssuranceAiAdoptionSummaryPostResponse": { + "type": "object", + "properties": { + "topLevelKpi": { + "$ref": "#/components/schemas/assuranceTopLevelKpi" + }, + "whatWidget": { + "$ref": "#/components/schemas/assuranceWhatWidget" + }, + "whenWidget": { + "$ref": "#/components/schemas/assuranceWhenWidget" + }, + "whereWidget": { + "$ref": "#/components/schemas/assuranceWhereWidget" + } + }, + "additionalProperties": false + }, + "assuranceTopLevelKpi": { + "type": "object", + "properties": { + "dataTransferredKbpsMetric": { + "$ref": "#/components/schemas/assuranceKpiMetric" + }, + "shadowAiToolsMetric": { + "$ref": "#/components/schemas/assuranceKpiMetric" + }, + "toolsMetric": { + "$ref": "#/components/schemas/assuranceKpiMetric" + }, + "usersMetric": { + "$ref": "#/components/schemas/assuranceKpiMetric" + } + }, + "additionalProperties": false + }, + "assuranceKpiMetric": { + "type": "object", + "properties": { + "delta": { + "type": "number", + "format": "double", + "example": 123.45, + "description": "delta value for the metric" + }, + "name": { + "type": "string", + "example": "example string", + "description": "name of the metric" + }, + "percent": { + "type": "number", + "format": "double", + "example": 123.45, + "description": "AI adoption percent for the metric" + }, + "tag": { + "type": "string", + "example": "ENUM_VALUE", + "description": "AI adoption tag for the metric" + }, + "tokenUsage": { + "type": "number", + "format": "double", + "example": 123.45, + "description": "AI adoption token usage value" + }, + "value": { + "type": "number", + "format": "double", + "example": 123.45, + "description": "metric value (required)" + } + }, + "additionalProperties": false + }, + "assuranceWhatWidget": { + "type": "object", + "properties": { + "bubbleCategories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/assuranceKpiMetric" + } + }, + "topToolsByActiveUsers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/assuranceKpiMetric" + } + }, + "topToolsByDataTransferred": { + "type": "array", + "items": { + "$ref": "#/components/schemas/assuranceKpiMetric" + } + } + }, + "additionalProperties": false + }, + "assuranceWhenWidget": { + "type": "object", + "properties": { + "dayOfWeek": { + "type": "array", + "items": { + "$ref": "#/components/schemas/assuranceKpiMetric" + } + }, + "hourOfDay": { + "type": "array", + "items": { + "$ref": "#/components/schemas/assuranceKpiMetric" + } + }, + "monthlyActiveUsers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/assuranceKpiMetric" + } + }, + "monthlyBandwidthTransferred": { + "type": "array", + "items": { + "$ref": "#/components/schemas/assuranceKpiMetric" + } + } + }, + "additionalProperties": false + }, + "assuranceWhereWidget": { + "type": "object", + "properties": { + "topSitesByUsers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/assuranceKpiMetric" + } + }, + "topUsersByDataTransferred": { + "type": "array", + "items": { + "$ref": "#/components/schemas/assuranceUserDefinition" + } + }, + "topVrfsByUsers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/assuranceKpiMetric" + } + } + }, + "additionalProperties": false + }, + "assuranceUserDefinition": { + "type": "object", + "properties": { + "dataSent": { + "type": "number", + "format": "double", + "example": 123.45, + "description": "tokens sent by the user (required)" + }, + "managed": { + "type": "boolean", + "example": true, + "description": "whether the user is managed (required)" + }, + "sessionsDay": { + "type": "number", + "format": "double", + "example": 123.45, + "description": "daily sessions for the user (required)" + }, + "tokensUsage": { + "type": "number", + "format": "double", + "example": 123.45, + "description": "token usage (required)" + }, + "tokensUsageDays": { + "type": "number", + "format": "double", + "example": 123.45, + "description": "token usage per day (required)" + }, + "user": { + "type": "string", + "example": "example string", + "description": "user identifier (required)" + }, + "vrf": { + "type": "string", + "example": "example string", + "description": "VRF associated with the user (required)" + } + }, + "additionalProperties": false + }, + "v2AssuranceCreateAiAdoptionApproveEntryPostRequest": { + "type": "object", + "properties": { + "approvedAppEntry": { + "$ref": "#/components/schemas/assuranceApprovedAppEntryRequest" + } + }, + "additionalProperties": false, + "required": [ + "approvedAppEntry" + ] + }, + "assuranceApprovedAppEntryRequest": { + "type": "object", + "properties": { + "appName": { + "type": "string", + "example": "example string", + "description": "app name to approve (required)" + }, + "domain": { + "type": "string", + "example": "example string", + "description": "app name to approve" + }, + "id": { + "type": "string", + "example": "example string", + "description": "approved app entry identifier" + }, + "tagRequested": { + "type": "string", + "example": "ENUM_VALUE", + "description": "resulting tag, approved or shadow (required)" + } + }, + "additionalProperties": false, + "required": [ + "appName", + "tagRequested" + ] + }, + "v2AssuranceCreateAiAdoptionApproveEntryPostResponse": { + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "example string", + "description": "identifier of the created approved app entry (required)" + } + }, + "additionalProperties": false + }, + "v2AssuranceUpdateAiAdoptionApproveEntryPostRequest": { + "type": "object", + "properties": { + "approvedAppEntry": { + "$ref": "#/components/schemas/assuranceApprovedAppEntryRequest" + } + }, + "additionalProperties": false, + "required": [ + "approvedAppEntry" + ] + }, + "v2AssuranceUpdateAiAdoptionApproveEntryPostResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v2AssuranceDeleteAiAdoptionApproveEntryDeleteResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v2AssuranceReadAiAdoptionApproveEntriesGetResponse": { + "type": "object", + "properties": { + "approvedAppList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/assuranceApprovedAppEntry" + } + } + }, + "additionalProperties": false + }, + "assuranceApprovedAppEntry": { + "type": "object", + "properties": { + "activeUsers": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "number of active users (required)" + }, + "category": { + "type": "string", + "example": "example string", + "description": "approved AI tool category (required)" + }, + "dataSentKbps": { + "type": "number", + "format": "double", + "example": 123.45, + "description": "data sent in kbps (required)" + }, + "id": { + "type": "string", + "example": "example string", + "description": "approved app entry identifier (required)" + }, + "tool": { + "type": "string", + "example": "example string", + "description": "approved AI tool name (required)" + } + }, + "additionalProperties": false + }, + "v2AssuranceGetAppNamesPostRequest": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "type": "string", + "example": "ENUM_VALUE", + "description": "app name type to fetch (required)" + } + } + }, + "additionalProperties": false, + "required": [ + "tags" + ] + }, + "v2AssuranceGetAppNamesPostResponse": { + "type": "object", + "properties": { + "appNames": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "app names returned (required)" + } + } + }, + "additionalProperties": false + }, "v1AuditLogsPostRequest": { "type": "object", "properties": { @@ -4221,6 +4594,53 @@ }, "additionalProperties": false }, + "v1ZtagentAgentsGetResponse": { + "type": "object", + "properties": { + "agents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/concealAgent" + } + }, + "count": { + "type": "integer", + "format": "int32", + "example": 123 + } + }, + "additionalProperties": false + }, + "concealAgent": { + "type": "object", + "properties": { + "createdAt": { + "type": "string", + "example": "example string" + }, + "disabled": { + "type": "boolean", + "example": true + }, + "id": { + "type": "string", + "example": "example string" + }, + "identifier": { + "type": "string", + "example": "example string" + }, + "lastCheckin": { + "type": "string", + "example": "example string" + }, + "machine": { + "type": "string", + "example": "example string" + } + }, + "additionalProperties": false + }, "v1DevicesDeviceIdJobsJobIdGetResponse": { "type": "object", "properties": { @@ -5354,6 +5774,11 @@ "type": "string", "example": "example string", "description": " (required)" + }, + "serviceType": { + "type": "string", + "example": "example string", + "description": "Extranet service type URL segment (e.g. peering_service, client_to_server)" } }, "additionalProperties": false, @@ -18397,35 +18822,42 @@ }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringProducerPostRequest": { + "v1ExtranetB2bProducerPostRequest": { "type": "object", "properties": { "policy": { - "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceProducerPolicy" + "$ref": "#/components/schemas/manaV2ExtranetServiceProducerPolicy" }, "serviceName": { "type": "string", - "example": "example string" + "example": "example string", + "description": " (required)" }, - "type": { + "serviceType": { "type": "string", "example": "ENUM_VALUE", - "description": "Type of the service whether it is application or peering (required)" + "description": "Branded extranet service type (peering_service, client_to_server, …) (required)" } }, "additionalProperties": false, "required": [ "policy", - "type" + "serviceName", + "serviceType" ] }, - "manaV2B2bExtranetPeeringServiceProducerPolicy": { + "manaV2ExtranetServiceProducerPolicy": { "type": "object", "properties": { "description": { "type": "string", - "example": "example string", - "description": "Description for the service" + "example": "example string" + }, + "globalObjectDeviceSummaries": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2GlobalObjectServiceSummaries" + } }, "globalObjectOps": { "type": "object", @@ -18433,6 +18865,9 @@ "$ref": "#/components/schemas/manaV2GlobalObjectServiceOps" } }, + "natTranslationMode": { + "$ref": "#/components/schemas/manaV2ExtranetNatTranslationMode" + }, "prefixTags": { "type": "array", "items": { @@ -18443,27 +18878,111 @@ "type": "integer", "format": "int64", "example": 1234567891011, - "description": "LAN segment ID for the service (required)" + "description": "LAN segment ID for the service" }, - "site": { + "sites": { "type": "array", "items": { "$ref": "#/components/schemas/manaV2B2bSiteInformation" } + } + }, + "additionalProperties": false + }, + "manaV2GlobalObjectServiceSummaries": { + "type": "object", + "properties": { + "routingPolicies": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2GlobalObjectSummary" + } + } + }, + "additionalProperties": false + }, + "manaV2GlobalObjectSummary": { + "type": "object", + "properties": { + "attachPoint": { + "type": "string", + "example": "ENUM_VALUE" }, - "type": { + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "ipVersion": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "name": { "type": "string", - "example": "ENUM_VALUE", - "description": "Type of the service whether it is application or peering (required)" + "example": "example string" + }, + "numAttachedDevices": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "numAttachedSites": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "numFailures": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "numInSyncDevices": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "numOverrideDevices": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "numPolicies": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "numPrefixes": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "numRules": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "numStatements": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "trafficPolicyType": { + "type": "string", + "example": "ENUM_VALUE" } }, - "additionalProperties": false, - "required": [ - "prefixTags", - "serviceLanSegment", - "site", - "type" - ] + "additionalProperties": false }, "manaV2GlobalObjectServiceOps": { "type": "object", @@ -18478,6 +18997,87 @@ }, "additionalProperties": false }, + "manaV2ExtranetNatTranslationMode": { + "type": "object", + "properties": { + "centralized": { + "$ref": "#/components/schemas/manaV2ExtranetNatTranslationCentralized" + }, + "decentralized": { + "$ref": "#/components/schemas/manaV2ExtranetNatTranslationDecentralized" + }, + "peerToPeer": { + "$ref": "#/components/schemas/manaV2ExtranetNatTranslationPeerToPeer" + } + }, + "additionalProperties": false + }, + "manaV2ExtranetNatTranslationCentralized": { + "type": "object", + "properties": { + "prefixes": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2ExtranetNatTranslationDevicePrefixes" + } + } + }, + "additionalProperties": false + }, + "manaV2ExtranetNatTranslationDevicePrefixes": { + "type": "object", + "properties": { + "prefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "IPv4 CIDR NAT pool(s) for the device" + } + } + }, + "additionalProperties": false + }, + "manaV2ExtranetNatTranslationDecentralized": { + "type": "object", + "properties": { + "prefixes": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2ExtranetNatTranslationDevicePrefixes" + } + } + }, + "additionalProperties": false + }, + "manaV2ExtranetNatTranslationPeerToPeer": { + "type": "object", + "properties": { + "prefixes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ExtranetNatTranslationPeerToPeerPrefix" + } + } + }, + "additionalProperties": false + }, + "manaV2ExtranetNatTranslationPeerToPeerPrefix": { + "type": "object", + "properties": { + "outsideNatPrefix": { + "type": "string", + "example": "100.1.2.0/24", + "description": "Optional outside address presented for prefix on the far side of the attachment; omit for no NAT on that prefix" + }, + "prefix": { + "type": "string", + "example": "10.1.2.0/24", + "description": "At match: customer export prefix. At consumer accept/update (peering): subscribed service prefix" + } + }, + "additionalProperties": false + }, "manaV2B2bExtranetPrefixTag": { "type": "object", "properties": { @@ -18561,7 +19161,7 @@ "bw" ] }, - "v1ExtranetsB2bPeeringProducerPostResponse": { + "v1ExtranetB2bProducerPostResponse": { "type": "object", "properties": { "activityId": { @@ -18574,34 +19174,80 @@ "example": 1234567891011 }, "policy": { - "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServicePolicyResponse" + "$ref": "#/components/schemas/manaV2ExtranetServicePolicyResponse" } }, "additionalProperties": false }, - "manaV2B2bExtranetPeeringServicePolicyResponse": { + "manaV2ExtranetServicePolicyResponse": { "type": "object", "properties": { "policy": { - "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceProducerPolicy" + "$ref": "#/components/schemas/manaV2ExtranetServiceProducerPolicy" }, "serviceName": { "type": "string", "example": "example string" + }, + "serviceType": { + "type": "string", + "example": "ENUM_VALUE" } }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringProducerIdGetResponse": { + "v1ExtranetB2bProducerReviewPostRequest": { + "type": "object", + "properties": { + "policy": { + "$ref": "#/components/schemas/manaV2ExtranetServiceProducerPolicy" + }, + "serviceName": { + "type": "string", + "example": "example string", + "description": " (required)" + }, + "serviceType": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Branded extranet service type (peering_service, client_to_server, …) (required)" + } + }, + "additionalProperties": false, + "required": [ + "policy", + "serviceName", + "serviceType" + ] + }, + "v1ExtranetB2bProducerReviewPostResponse": { "type": "object", "properties": { + "activityId": { + "type": "string", + "example": "example string" + }, "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, "policy": { - "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServicePolicyResponse" + "$ref": "#/components/schemas/manaV2ExtranetServicePolicyResponse" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bProducerIdGetResponse": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "policy": { + "$ref": "#/components/schemas/manaV2ExtranetServicePolicyResponse" }, "status": { "type": "string", @@ -18610,36 +19256,88 @@ }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse": { + "v1ExtranetB2bProducerIdPutRequest": { "type": "object", "properties": { - "info": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2CustomerMatchInfo" - } + "policy": { + "$ref": "#/components/schemas/manaV2ExtranetServiceProducerPolicy" } }, "additionalProperties": false }, - "manaV2CustomerMatchInfo": { + "v1ExtranetB2bProducerIdPutResponse": { "type": "object", "properties": { - "customerId": { + "activityId": { "type": "string", "example": "example string" }, - "customerName": { + "consumerActivityId": { "type": "string", "example": "example string" }, - "emails": { + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "policy": { + "$ref": "#/components/schemas/manaV2ExtranetServicePolicyResponse" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bProducerIdStatusPutRequest": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "ENUM_VALUE" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bProducerIdStatusPutResponse": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "ENUM_VALUE" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bProducerIdDeleteResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1ExtranetB2bProducerIdCustomersGetResponse": { + "type": "object", + "properties": { + "customers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ExtranetServiceProducerCustomer" + } + } + }, + "additionalProperties": false + }, + "manaV2ExtranetServiceProducerCustomer": { + "type": "object", + "properties": { + "adminEmails": { "type": "array", "items": { "type": "string", "example": "example string" } }, + "customerId": { + "type": "string", + "example": "example string" + }, "matchId": { "type": "integer", "format": "int64", @@ -18651,35 +19349,39 @@ "example": 123, "minimum": 0 }, - "peerType": { + "name": { "type": "string", - "example": "ENUM_VALUE" + "example": "example string" }, "status": { "type": "string", "example": "ENUM_VALUE" }, + "type": { + "type": "string", + "example": "ENUM_VALUE" + }, "updatedAt": { "$ref": "#/components/schemas/googleProtobufTimestamp" } }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringCustomerPostRequest": { + "v1ExtranetB2bCustomersPostRequest": { "type": "object", "properties": { "invite": { - "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceCustomerInvite" + "$ref": "#/components/schemas/manaV2ExtranetServiceCustomerInvite" }, "name": { "type": "string", "example": "example string", - "description": "Name of the peering service customer (required)" + "description": "Partner display name (required)" }, "type": { "type": "string", "example": "ENUM_VALUE", - "description": "Type of the peerings servicecustomer whether it is a graphiant or non-graphiant (required)" + "description": "Graphiant peer vs guest (non-Graphiant) partner (required)" } }, "additionalProperties": false, @@ -18689,15 +19391,15 @@ "type" ] }, - "manaV2B2bExtranetPeeringServiceCustomerInvite": { + "manaV2ExtranetServiceCustomerInvite": { "type": "object", "properties": { - "adminEmail": { + "adminEmails": { "type": "array", "items": { "type": "string", "example": "example string", - "description": "Admin emails for the peering service customer (required)" + "description": "Admin emails for the partner" } }, "maximumNumberOfSites": { @@ -18705,16 +19407,12 @@ "format": "int32", "example": 123, "minimum": 0, - "description": "Maximum number of sites for the peering service customer (required)" + "description": "Maximum number of consumer sites" } }, - "additionalProperties": false, - "required": [ - "adminEmail", - "maximumNumberOfSites" - ] + "additionalProperties": false }, - "v1ExtranetsB2bPeeringCustomerPostResponse": { + "v1ExtranetB2bCustomersPostResponse": { "type": "object", "properties": { "id": { @@ -18722,40 +19420,26 @@ "format": "int64", "example": 1234567891011 }, - "response": { - "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceCustomerInvite" - } - }, - "additionalProperties": false - }, - "v1ExtranetsB2bPeeringCustomerIdDeleteResponse": { - "type": "object", - "properties": { - "activityId": { - "type": "string", - "example": "example string" - }, - "consumerActivityId": { - "type": "string", - "example": "example string" + "invite": { + "$ref": "#/components/schemas/manaV2ExtranetServiceCustomerInvite" } }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringCustomerIdGetResponse": { + "v1ExtranetB2bCustomersIdDetailsGetResponse": { "type": "object", "properties": { - "customerName": { - "type": "string", - "example": "example string" - }, - "emails": { + "adminEmails": { "type": "array", "items": { "type": "string", "example": "example string" } }, + "name": { + "type": "string", + "example": "example string" + }, "numSites": { "type": "integer", "format": "int32", @@ -18773,44 +19457,80 @@ }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest": { + "v1ExtranetB2bCustomersIdPutRequest": { "type": "object", "properties": { - "id": { - "type": "integer", - "format": "int64", - "example": 1234567891011, - "description": "ID of the customer (required)" + "invite": { + "$ref": "#/components/schemas/manaV2ExtranetServiceCustomerInvite" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bCustomersIdPutResponse": { + "type": "object", + "properties": { + "invite": { + "$ref": "#/components/schemas/manaV2ExtranetServiceCustomerInvite" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bCustomersIdDeleteResponse": { + "type": "object", + "properties": { + "activityId": { + "type": "string", + "example": "example string" }, - "service": { - "$ref": "#/components/schemas/manaV2B2bExtranetMatchServiceToCustomer" + "consumerActivityId": { + "type": "string", + "example": "example string" } }, - "additionalProperties": false, - "required": [ - "id", - "service" - ] + "additionalProperties": false }, - "manaV2B2bExtranetMatchServiceToCustomer": { + "v1ExtranetB2bCustomersIdRetryPostRequest": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1ExtranetB2bCustomersIdRetryPostResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1ExtranetB2bMatchesPostRequest": { "type": "object", "properties": { - "id": { + "customerId": { "type": "integer", "format": "int64", - "example": 1234567891011, - "description": "ID of the service being subscribed by the customer (required)" + "example": 1234567891011 + }, + "match": { + "$ref": "#/components/schemas/manaV2B2bExtranetMatch" + } + }, + "additionalProperties": false + }, + "manaV2B2bExtranetMatch": { + "type": "object", + "properties": { + "consumerPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Consumer client prefixes agreed at match (flat list; scoped to LAN segments at consumer accept)" + } }, "lanSegment": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "nat": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bNat" - } + "natTranslationMode": { + "$ref": "#/components/schemas/manaV2ExtranetNatTranslationMode" }, "numCustomers": { "type": "integer", @@ -18819,6 +19539,12 @@ "minimum": 0, "description": "Number of customers subscribed to the service" }, + "serviceId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Producer service id" + }, "servicePrefixes": { "type": "array", "items": { @@ -18826,33 +19552,9 @@ } } }, - "additionalProperties": false, - "required": [ - "id", - "nat", - "servicePrefixes" - ] - }, - "manaV2B2bNat": { - "type": "object", - "properties": { - "outsideNatPrefix": { - "type": "string", - "example": "100.1.2.0/24", - "description": "Outside NAT prefix for the customer prefix" - }, - "prefix": { - "type": "string", - "example": "10.1.2.0/24", - "description": "Prefix imported into the service (required)" - } - }, - "additionalProperties": false, - "required": [ - "prefix" - ] + "additionalProperties": false }, - "v1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse": { + "v1ExtranetB2bMatchesPostResponse": { "type": "object", "properties": { "matchId": { @@ -18860,114 +19562,161 @@ "format": "int64", "example": 1234567891011 }, - "service": { + "matches": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetMatchServiceToCustomer" + "$ref": "#/components/schemas/manaV2B2bExtranetMatch" } } }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest": { + "v1ExtranetB2bMatchesCustomersPostRequest": { "type": "object", "properties": { - "id": { + "customers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ExtranetServiceProducerCustomer" + } + }, + "serviceId": { "type": "integer", "format": "int64", - "example": 1234567891011, - "description": "match ID for the customer's service subscription (required)" - }, - "status": { - "type": "string", - "example": "B2B_PEERING_SERVICE_STATUS_PAUSED", - "description": "Customer’s service status: Paused or Active (required)" - } - }, - "additionalProperties": false, - "required": [ - "id", - "status" - ] - }, - "v1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse": { - "type": "object", - "properties": { - "status": { - "type": "string", - "example": "ENUM_VALUE" + "example": 1234567891011 } }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse": { + "v1ExtranetB2bMatchesCustomersPostResponse": { "type": "object", "properties": { - "services": { + "customers": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetCustomerMatchServicesSummary" + "$ref": "#/components/schemas/manaV2ExtranetServiceProducerCustomer" } } }, "additionalProperties": false }, - "manaV2B2bExtranetCustomerMatchServicesSummary": { + "v1ExtranetB2bMatchesReviewPostRequest": { "type": "object", "properties": { - "id": { + "customerId": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "lanSegment": { + "match": { + "$ref": "#/components/schemas/manaV2B2bExtranetMatch" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bMatchesReviewPostResponse": { + "type": "object", + "properties": { + "matchId": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "matchedCustomers": { + "matches": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bExtranetMatch" + } + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bMatchesMatchIdGetResponse": { + "type": "object", + "properties": { + "customerName": { + "type": "string", + "example": "example string" + }, + "match": { + "$ref": "#/components/schemas/manaV2B2bExtranetMatch" + }, + "matchId": { "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "format": "int64", + "example": 1234567891011 }, - "name": { + "serviceName": { "type": "string", "example": "example string" }, "status": { "type": "string", "example": "ENUM_VALUE" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bMatchesMatchIdPutRequest": { + "type": "object", + "properties": { + "match": { + "$ref": "#/components/schemas/manaV2B2bExtranetMatch" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bMatchesMatchIdPutResponse": { + "type": "object", + "properties": { + "activityId": { + "type": "string", + "example": "example string" }, - "type": { + "match": { + "$ref": "#/components/schemas/manaV2B2bExtranetMatch" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bMatchesMatchIdStatusPutRequest": { + "type": "object", + "properties": { + "status": { "type": "string", "example": "ENUM_VALUE" - }, - "updatedAt": { - "$ref": "#/components/schemas/googleProtobufTimestamp" } }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse": { + "v1ExtranetB2bMatchesMatchIdStatusPutResponse": { "type": "object", "properties": { - "customerName": { + "status": { "type": "string", - "example": "example string" - }, - "matchDetails": { - "$ref": "#/components/schemas/manaV2B2bExtranetMatchServiceToCustomer" - }, - "matchId": { + "example": "ENUM_VALUE" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bMatchesPausePutRequest": { + "type": "object", + "properties": { + "customerId": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "serviceName": { + "status": { "type": "string", - "example": "example string" - }, + "example": "ENUM_VALUE" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bMatchesPausePutResponse": { + "type": "object", + "properties": { "status": { "type": "string", "example": "ENUM_VALUE" @@ -18975,50 +19724,46 @@ }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse": { + "v1ExtranetB2bMatchesMatchIdDeleteResponse": { "type": "object", "properties": { "activityId": { "type": "string", - "example": "example string", - "description": "activity id for the delete operation (required)" + "example": "example string" }, "consumerActivityId": { "type": "string", - "example": "example string", - "description": "activity id for the consumer delete operation (required)" + "example": "example string" } }, "additionalProperties": false }, - "v1ExtranetsB2bGeneralCustomersSummaryGetResponse": { + "v1ExtranetB2bCustomersIdMatchesSummaryGetResponse": { "type": "object", "properties": { - "customers": { + "matches": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetCustomerServicesSummary" + "$ref": "#/components/schemas/manaV2ExtranetServiceCustomerMatchSummary" } } }, "additionalProperties": false }, - "manaV2B2bExtranetCustomerServicesSummary": { + "manaV2ExtranetServiceCustomerMatchSummary": { "type": "object", "properties": { - "adminEmails": { - "type": "array", - "items": { - "type": "string", - "example": "example string" - } - }, "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "matchedServices": { + "lanSegment": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "matchedCustomers": { "type": "integer", "format": "int32", "example": 123, @@ -19028,11 +19773,11 @@ "type": "string", "example": "example string" }, - "status": { + "serviceType": { "type": "string", "example": "ENUM_VALUE" }, - "type": { + "status": { "type": "string", "example": "ENUM_VALUE" }, @@ -19042,510 +19787,622 @@ }, "additionalProperties": false }, - "v1ExtranetsB2bGeneralServicesSummaryGetResponse": { + "v1ExtranetB2bMatchesMatchIdDetailsGetResponse": { "type": "object", "properties": { - "info": { + "details": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetApplication" + "$ref": "#/components/schemas/manaV2B2bExtranetMatchConsumerDetails" } } }, "additionalProperties": false }, - "manaV2B2bExtranetApplication": { + "manaV2B2bExtranetMatchConsumerDetails": { "type": "object", "properties": { - "createdAt": { - "$ref": "#/components/schemas/googleProtobufTimestamp" - }, - "id": { + "consumerId": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "isPublisher": { - "type": "boolean", - "example": true + "consumerPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } }, - "lanSegment": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "customer": { + "$ref": "#/components/schemas/manaV2B2BExtranetMatchConsumerDetailsCustomer" }, - "matchedCustomers": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "oldConsumerPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } }, - "name": { - "type": "string", - "example": "example string" + "oldServicePrefixes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2BExtranetMatchConsumerDetailsProducerPrefix" + } }, - "serverIpAddress": { + "service": { + "$ref": "#/components/schemas/manaV2B2BExtranetMatchConsumerDetailsService" + }, + "servicePrefixes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2BExtranetMatchConsumerDetailsProducerPrefix" + } + } + }, + "additionalProperties": false + }, + "manaV2B2BExtranetMatchConsumerDetailsCustomer": { + "type": "object", + "properties": { + "adminEmails": { "type": "array", "items": { "type": "string", "example": "example string" } }, - "status": { + "companyName": { "type": "string", - "example": "ENUM_VALUE" + "example": "example string" }, - "totalCustomers": { + "id": { "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "format": "int64", + "example": 1234567891011 }, - "totalSites": { + "numSites": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 - }, - "type": { - "type": "string", - "example": "ENUM_VALUE" - }, - "updatedAt": { - "$ref": "#/components/schemas/googleProtobufTimestamp" } }, "additionalProperties": false }, - "v1ExtranetsB2bPostRequest": { + "manaV2B2BExtranetMatchConsumerDetailsProducerPrefix": { "type": "object", "properties": { - "policy": { - "$ref": "#/components/schemas/manaV2B2bExtranetProducerPolicy" + "customerTranslatedPrefix": { + "type": "string", + "example": "example string" }, - "serviceName": { + "prefix": { "type": "string", - "example": "example string", - "description": "Name of the service (required)" + "example": "example string" }, - "type": { + "tag": { "type": "string", - "example": "ENUM_VALUE", - "description": "Type of the service whether it is application or peering (required)" + "example": "example string" } }, - "additionalProperties": false, - "required": [ - "policy", - "serviceName", - "type" - ] + "additionalProperties": false }, - "manaV2B2bExtranetProducerPolicy": { + "manaV2B2BExtranetMatchConsumerDetailsService": { "type": "object", "properties": { - "description": { + "companyName": { "type": "string", - "example": "example string", - "description": "Description for the service" - }, - "globalObjectDeviceSummaries": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/manaV2GlobalObjectServiceSummaries" - } - }, - "globalObjectSummaries": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/manaV2GlobalObjectServiceSummaries" - } + "example": "example string" }, - "natPools": { + "contactEmail": { "type": "array", "items": { "type": "string", - "example": "example string", - "description": "NAT pools for the service (required)" + "example": "example string" } }, - "prefixTags": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetPrefixTag" - } + "description": { + "type": "string", + "example": "example string" }, - "profiles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2ApplicationProfile" - } + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 }, - "serviceLanSegment": { + "serviceName": { + "type": "string", + "example": "example string" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bMatchesMatchIdConsumerPostRequest": { + "type": "object", + "properties": { + "policy": { + "$ref": "#/components/schemas/manaV2ExtranetServiceConsumerPolicy" + }, + "serviceId": { "type": "integer", "format": "int64", "example": 1234567891011, - "description": "LAN segment for the service (required)" + "description": "Producer service id being consumed" + } + }, + "additionalProperties": false + }, + "manaV2ExtranetServiceConsumerPolicy": { + "type": "object", + "properties": { + "consumerLanSegments": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2ExtranetConsumerLanPrefixes" + } }, - "servicePrefixes": { - "type": "array", - "items": { - "type": "string", - "example": "example string", - "description": "Prefixes advertised by the service (required)" + "globalObjectOps": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2GlobalObjectServiceOps" } }, + "natTranslationMode": { + "$ref": "#/components/schemas/manaV2ExtranetNatTranslationMode" + }, + "siteToSiteVpn": { + "$ref": "#/components/schemas/manaV2GuestConsumerSiteToSiteVpnConfig" + }, "sites": { "type": "array", "items": { "$ref": "#/components/schemas/manaV2B2bSiteInformation" } - }, - "sla": { - "$ref": "#/components/schemas/manaV2SlaInformation" - }, - "status": { - "type": "string", - "example": "ENUM_VALUE" - }, - "type": { - "type": "string", - "example": "ENUM_VALUE", - "description": "Type of the service whether it is application or peering (required)" - }, - "unmatchedCustomers": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 } }, "additionalProperties": false, "required": [ - "natPools", - "serviceLanSegment", - "servicePrefixes", - "sites", - "type" + "consumerLanSegments" ] }, - "manaV2GlobalObjectServiceSummaries": { + "manaV2ExtranetConsumerLanPrefixes": { "type": "object", "properties": { - "routingPolicies": { + "consumerPrefixes": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2GlobalObjectSummary" + "type": "string", + "example": "example string", + "description": "Consumer client prefixes on this LAN" + } + }, + "servicePrefixDnat": { + "type": "object", + "additionalProperties": { + "type": "string", + "example": "example string" } } }, "additionalProperties": false }, - "manaV2GlobalObjectSummary": { + "manaV2GuestConsumerSiteToSiteVpnConfig": { "type": "object", "properties": { - "attachPoint": { - "type": "string", - "example": "ENUM_VALUE" + "emails": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } }, - "id": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "ipsecGatewayDetails": { + "$ref": "#/components/schemas/manaV2IPsecGatewayDetails" }, - "ipVersion": { + "ipsecGatewayPeers": { + "$ref": "#/components/schemas/manaV2IPsecGatewayPeersConfig" + }, + "regionId": { "type": "integer", "format": "int32", - "example": 123, - "minimum": 0 - }, - "name": { + "example": 123 + } + }, + "additionalProperties": false + }, + "manaV2IPsecGatewayDetails": { + "type": "object", + "properties": { + "destinationAddress": { "type": "string", "example": "example string" }, - "numAttachedDevices": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 - }, - "numAttachedSites": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "ikeInitiator": { + "type": "boolean", + "example": true }, - "numFailures": { + "mtu": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 }, - "numInSyncDevices": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "name": { + "type": "string", + "example": "example string" }, - "numOverrideDevices": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "remoteIkePeerIdentity": { + "type": "string", + "example": "example string" }, - "numPolicies": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "routing": { + "$ref": "#/components/schemas/manaV2IpsecRoutingConfig" }, - "numPrefixes": { + "tcpMss": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 }, - "numRules": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "tunnel1": { + "$ref": "#/components/schemas/manaV2IPsecGatewayTunnelDetails" }, - "numStatements": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "tunnel2": { + "$ref": "#/components/schemas/manaV2IPsecGatewayTunnelDetails" }, - "trafficPolicyType": { + "vpnProfile": { "type": "string", - "example": "ENUM_VALUE" + "example": "example string" } }, "additionalProperties": false }, - "manaV2ApplicationProfile": { + "manaV2IPsecGatewayTunnelDetails": { "type": "object", "properties": { - "portRange": { + "insideIpv4Cidr": { "type": "string", - "example": "example string", - "description": "Port Range" - }, - "ports": { - "type": "array", - "items": { - "type": "integer", - "format": "int32", - "example": 123, - "description": "Ports for the application profile (required)" - } + "example": "example string" }, - "protocol": { - "type": "integer", - "format": "int32", - "example": 123, - "description": "Protocol for the application profile (required)" - } - }, - "additionalProperties": false, - "required": [ - "ports", - "protocol" - ] - }, - "manaV2SlaInformation": { - "type": "object", - "properties": { - "backupCircuit": { + "insideIpv6Cidr": { "type": "string", - "example": "ENUM_VALUE", - "description": "Backup circuit for the SLA information" + "example": "example string" }, - "class": { + "localIkePeerIdentity": { "type": "string", - "example": "ENUM_VALUE", - "description": "Class for the SLA information" + "example": "example string" }, - "primaryCircuit": { + "psk": { "type": "string", - "example": "ENUM_VALUE", - "description": "Primary circuit for the SLA information" + "example": "example string" } }, "additionalProperties": false }, - "v1ExtranetsB2bPostResponse": { + "manaV2IPsecGatewayPeersConfig": { "type": "object", "properties": { - "id": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "name": { + "type": "string", + "example": "example string", + "description": "Name of the IPsec gateway service" }, - "policy": { - "$ref": "#/components/schemas/manaV2B2bExtranetPolicyResponse" + "remotePeers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2IPsecGatewayRemotePeer" + } + }, + "routing": { + "$ref": "#/components/schemas/manaV2IpsecRoutingConfig" } }, "additionalProperties": false }, - "manaV2B2bExtranetPolicyResponse": { + "manaV2IPsecGatewayRemotePeer": { "type": "object", "properties": { - "dnsName": { + "destinationAddress": { "type": "string", "example": "example string" }, - "inboundSecurityRules": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2SecurityPolicyRule" - } + "ikeInitiator": { + "type": "boolean", + "example": true, + "description": "When true, Graphiant initiates IKE for this peer" }, - "policy": { - "$ref": "#/components/schemas/manaV2B2bExtranetProducerPolicy" + "mtu": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 }, - "serviceName": { + "name": { + "type": "string", + "example": "example string", + "description": "Optional display name or label for this peer; used when generating tunnel names" + }, + "remoteIkePeerIdentity": { + "type": "string", + "example": "example string", + "description": "IKE identity of the remote peer" + }, + "tcpMss": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "tunnel1": { + "$ref": "#/components/schemas/manaV2IPsecGatewayTunnelDetails" + }, + "tunnel2": { + "$ref": "#/components/schemas/manaV2IPsecGatewayTunnelDetails" + }, + "vpnProfile": { + "type": "string", + "example": "example string", + "description": "Enterprise IPsec VPN profile name for this peer" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bMatchesMatchIdConsumerPostResponse": { + "type": "object", + "properties": { + "consumerActivityId": { "type": "string", "example": "example string" }, - "trafficRules": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2TrafficPolicyRule" - } + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "policy": { + "$ref": "#/components/schemas/manaV2ExtranetServiceConsumerPolicy" } }, "additionalProperties": false }, - "manaV2SecurityPolicyRule": { + "v1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest": { "type": "object", "properties": { - "action": { + "policy": { + "$ref": "#/components/schemas/manaV2ExtranetServiceConsumerPolicy" + }, + "serviceId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Producer service id being consumed" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse": { + "type": "object", + "properties": { + "consumerActivityId": { "type": "string", - "example": "ENUM_VALUE" + "example": "example string" }, - "implicit": { - "type": "boolean", - "example": true + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 }, - "match": { - "$ref": "#/components/schemas/manaV2PolicyMatch" + "policy": { + "$ref": "#/components/schemas/manaV2ExtranetServiceConsumerPolicy" + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bConsumersCustomerIdGetResponse": { + "type": "object", + "properties": { + "globalObjectDeviceSummaries": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2GlobalObjectServiceSummaries" + } }, - "policyRuleIndex": { + "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "seq": { + "ipsecTunnelConfig": { + "type": "array", + "items": { + "$ref": "#/components/schemas/v1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig" + } + }, + "matchDetails": { + "$ref": "#/components/schemas/manaV2B2bExtranetMatchConsumerDetails" + }, + "matchId": { "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "format": "int64", + "example": 1234567891011 + }, + "peerType": { + "type": "string", + "example": "ENUM_VALUE" + }, + "policy": { + "$ref": "#/components/schemas/manaV2ExtranetServiceConsumerPolicy" + }, + "siteToSiteVpn": { + "$ref": "#/components/schemas/manaV2GuestConsumerSiteToSiteVpnConfig" + }, + "status": { + "type": "string", + "example": "ENUM_VALUE" } }, "additionalProperties": false }, - "manaV2PolicyMatch": { + "v1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig": { "type": "object", "properties": { - "destinationPort": { + "bgpGraphiantAsn": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 }, - "destinationPrefix": { - "type": "string", - "example": "example string" + "bgpLocalAsn": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 }, - "icmpType": { + "bgpNeighborHoldTime": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 }, - "protocol": { + "bgpNeighborIpv4": { + "type": "string", + "example": "example string" + }, + "bgpNeighborIpv6": { + "type": "string", + "example": "example string" + }, + "dpdInterval": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 }, - "sourcePort": { + "dpdRetries": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 }, - "sourcePrefix": { + "graphiantDestinationIp": { "type": "string", "example": "example string" - } - }, - "additionalProperties": false - }, - "manaV2TrafficPolicyRule": { - "type": "object", - "properties": { - "action": { - "$ref": "#/components/schemas/manaV2TrafficPolicyAction" }, - "match": { - "$ref": "#/components/schemas/manaV2PolicyMatch" + "graphiantIkeId": { + "type": "string", + "example": "example string" }, - "policyRuleIndex": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "graphiantOuterTunnelIp": { + "type": "string", + "example": "example string" }, - "seq": { + "graphiantTunnelIp": { + "type": "string", + "example": "example string" + }, + "graphiantTunnelIpv6": { + "type": "string", + "example": "example string" + }, + "ikeAuthenticationAlgorithm": { + "type": "string", + "example": "example string" + }, + "ikeAuthenticationMethod": { + "type": "string", + "example": "example string" + }, + "ikeDhAlgorithm": { + "type": "string", + "example": "example string" + }, + "ikeEncryptionAlgorithm": { + "type": "string", + "example": "example string" + }, + "ikeLifetime": { + "type": "string", + "example": "example string" + }, + "ikePresharedKey": { + "type": "string", + "example": "example string" + }, + "ikeVersion": { "type": "integer", "format": "int32", - "example": 123, - "minimum": 0 - } - }, - "additionalProperties": false - }, - "manaV2TrafficPolicyAction": { - "type": "object", - "properties": { - "backup": { + "example": 123 + }, + "ipsecAuthenticationAlgorithm": { "type": "string", - "example": "ENUM_VALUE", - "description": "Backup circuit for the traffic policy action" + "example": "example string" }, - "class": { + "ipsecEncryptionAlgorithm": { "type": "string", - "example": "ENUM_VALUE", - "description": "Class for the traffic policy action" + "example": "example string" }, - "primary": { + "ipsecExtendedSequenceNumber": { + "type": "boolean", + "example": true + }, + "ipsecLifetime": { "type": "string", - "example": "ENUM_VALUE", - "description": "Primary circuit for the traffic policy action" + "example": "example string" }, - "result": { + "ipsecMode": { "type": "string", - "example": "ENUM_VALUE", - "description": "Result for the traffic policy action" + "example": "example string" + }, + "ipsecPfsAlgorithm": { + "type": "string", + "example": "example string" + }, + "ipsecProtocol": { + "type": "string", + "example": "example string" + }, + "localIkeId": { + "type": "string", + "example": "example string" + }, + "localOuterTunnelIp": { + "type": "string", + "example": "example string" + }, + "localTunnelIp": { + "type": "string", + "example": "example string" + }, + "localTunnelIpv6": { + "type": "string", + "example": "example string" + }, + "tcpMss": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "tunnelMtu": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 } }, "additionalProperties": false }, - "v1ExtranetsB2bIdPutRequest": { + "v1ExtranetB2bConsumersIdPutRequest": { "type": "object", "properties": { "policy": { - "$ref": "#/components/schemas/manaV2B2bExtranetProducerPolicy" + "$ref": "#/components/schemas/manaV2ExtranetServiceConsumerPolicy" } }, - "additionalProperties": false, - "required": [ - "policy" - ] + "additionalProperties": false }, - "v1ExtranetsB2bIdPutResponse": { + "v1ExtranetB2bConsumersIdPutResponse": { "type": "object", "properties": { "id": { @@ -19554,31 +20411,36 @@ "example": 1234567891011 }, "policy": { - "$ref": "#/components/schemas/manaV2B2bExtranetPolicyResponse" + "$ref": "#/components/schemas/manaV2ExtranetServiceConsumerPolicy" } }, "additionalProperties": false }, - "v1ExtranetsB2bIdDeleteResponse": { + "v1ExtranetB2bConsumersIdPrefixesPutRequest": { "type": "object", - "properties": {}, + "properties": { + "natTranslationMode": { + "$ref": "#/components/schemas/manaV2ExtranetNatTranslationMode" + } + }, "additionalProperties": false }, - "v1ExtranetsB2bIdProducerGetResponse": { + "v1ExtranetB2bConsumersIdPrefixesPutResponse": { "type": "object", "properties": { - "id": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "policy": { - "$ref": "#/components/schemas/manaV2B2bExtranetPolicyResponse" + "consumerActivityId": { + "type": "string", + "example": "example string" } }, "additionalProperties": false }, - "v1ExtranetsB2bProducerDeviceStatusIdGetResponse": { + "v1ExtranetB2bConsumersIdDeleteResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1ExtranetB2bProducerIdDeviceStatusGetResponse": { "type": "object", "properties": { "summary": { @@ -19617,47 +20479,129 @@ }, "additionalProperties": false }, - "v1ExtranetsB2bProducersSummaryGetResponse": { + "v1ExtranetB2bConsumersIdDeviceStatusGetResponse": { "type": "object", "properties": { - "info": { + "serviceStatus": { + "type": "string", + "example": "ENUM_VALUE" + }, + "summary": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetApplication" + "$ref": "#/components/schemas/manaV2B2bExtranetStatusSummary" } } }, "additionalProperties": false }, - "v1ExtranetsB2bIdCustomerSummaryGetResponse": { + "v1ExtranetB2bServicesSummaryGetResponse": { "type": "object", "properties": { - "customers": { + "services": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2B2bApplicationCustomerSummary" + "$ref": "#/components/schemas/manaV2ExtranetServiceSummary" } } }, "additionalProperties": false }, - "manaV2B2bApplicationCustomerSummary": { + "manaV2ExtranetServiceSummary": { "type": "object", "properties": { - "adminEmail": { - "type": "string", - "example": "example string" + "createdAt": { + "$ref": "#/components/schemas/googleProtobufTimestamp" }, - "enterpriseId": { + "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, + "isPublisher": { + "type": "boolean", + "example": true, + "description": "True when this enterprise publishes the service; false when consuming a remote producer" + }, + "lanSegment": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Service LAN segment when is_publisher and VRF exists" + }, + "lastUpdated": { + "$ref": "#/components/schemas/googleProtobufTimestamp" + }, + "serverPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Producer prefix tags (legacy ServerIpAddress on publisher rows)" + } + }, + "serviceName": { + "type": "string", + "example": "example string" + }, + "serviceType": { + "type": "string", + "example": "ENUM_VALUE" + }, + "sites": { + "type": "array", + "items": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + }, + "status": { + "type": "string", + "example": "ENUM_VALUE" + }, + "totalCustomers": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + } + }, + "additionalProperties": false + }, + "v1ExtranetB2bCustomersSummaryGetResponse": { + "type": "object", + "properties": { + "customers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ExtranetServiceCustomerSummary" + } + } + }, + "additionalProperties": false + }, + "manaV2ExtranetServiceCustomerSummary": { + "type": "object", + "properties": { + "adminEmails": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } + }, "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, + "matchedServices": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, "name": { "type": "string", "example": "example string" @@ -19666,292 +20610,328 @@ "type": "string", "example": "ENUM_VALUE" }, + "type": { + "type": "string", + "example": "ENUM_VALUE" + }, "updatedAt": { "$ref": "#/components/schemas/googleProtobufTimestamp" } }, "additionalProperties": false }, - "v1ExtranetsB2bIdCustomerPostRequest": { + "v1ExtranetsB2bPeeringProducerPostRequest": { "type": "object", "properties": { - "invites": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetApplicationInvite" - } + "policy": { + "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceProducerPolicy" + }, + "serviceName": { + "type": "string", + "example": "example string" + }, + "type": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Type of the service whether it is application or peering (required)" } }, "additionalProperties": false, "required": [ - "invites" + "policy", + "type" ] }, - "manaV2B2bExtranetApplicationInvite": { + "manaV2B2bExtranetPeeringServiceProducerPolicy": { "type": "object", "properties": { - "adminEmail": { + "description": { "type": "string", "example": "example string", - "description": "Admin email of the customer (required)" + "description": "Description for the service" }, - "consumerBurstSize": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0, - "description": "Maximum Burst size per site for the customer (required)" + "globalObjectOps": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2GlobalObjectServiceOps" + } }, - "consumerBwSite": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0, - "description": "Maximum Bandwidth allocation per site for the customer (required)" + "prefixTags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bExtranetPrefixTag" + } }, - "enterpriseId": { + "serviceLanSegment": { "type": "integer", "format": "int64", "example": 1234567891011, - "description": "Enterprise ID of the customer (required)" - }, - "maximumSiteCount": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0, - "description": "Maximum number of sites for the customer (required)" + "description": "LAN segment ID for the service (required)" }, - "servicePrefixes": { + "site": { "type": "array", "items": { - "type": "string", - "example": "example string", - "description": "List of service prefixes for the application" + "$ref": "#/components/schemas/manaV2B2bSiteInformation" } + }, + "type": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Type of the service whether it is application or peering (required)" } }, "additionalProperties": false, "required": [ - "adminEmail", - "consumerBurstSize", - "consumerBwSite", - "enterpriseId", - "maximumSiteCount" + "prefixTags", + "serviceLanSegment", + "site", + "type" ] }, - "v1ExtranetsB2bIdCustomerPostResponse": { + "v1ExtranetsB2bPeeringProducerPostResponse": { "type": "object", "properties": { - "responses": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetApplicationInviteResponse" - } + "activityId": { + "type": "string", + "example": "example string" + }, + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "policy": { + "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServicePolicyResponse" } }, "additionalProperties": false }, - "manaV2B2bExtranetApplicationInviteResponse": { + "manaV2B2bExtranetPeeringServicePolicyResponse": { "type": "object", "properties": { - "adminEmail": { + "policy": { + "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceProducerPolicy" + }, + "serviceName": { "type": "string", "example": "example string" - }, - "consumerBurstSize": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 - }, - "consumerBwSite": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 - }, - "enterpriseId": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, + } + }, + "additionalProperties": false + }, + "v1ExtranetsB2bPeeringProducerIdGetResponse": { + "type": "object", + "properties": { "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "maximumSiteCount": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "policy": { + "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServicePolicyResponse" }, - "servicePrefixes": { - "type": "array", - "items": { - "type": "string", - "example": "example string" - } + "status": { + "type": "string", + "example": "ENUM_VALUE" } }, "additionalProperties": false }, - "v1ExtranetsB2bCustomerIdDeleteResponse": { - "type": "object", - "properties": {}, - "additionalProperties": false - }, - "v1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse": { + "v1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse": { "type": "object", "properties": { - "details": { + "info": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetServiceCustomerMatchDetails" + "$ref": "#/components/schemas/manaV2CustomerMatchInfo" } } }, "additionalProperties": false }, - "manaV2B2bExtranetServiceCustomerMatchDetails": { + "manaV2CustomerMatchInfo": { "type": "object", "properties": { - "consumerId": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "customerId": { + "type": "string", + "example": "example string" }, - "consumerPrefixes": { + "customerName": { + "type": "string", + "example": "example string" + }, + "emails": { "type": "array", "items": { "type": "string", "example": "example string" } }, - "customer": { - "$ref": "#/components/schemas/manaV2B2BExtranetServiceCustomerMatchDetailsCustomer" + "matchId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 }, - "oldConsumerPrefixes": { - "type": "array", - "items": { - "type": "string", - "example": "example string" - } + "matchedServices": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 }, - "oldServicePrefixes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix" - } + "peerType": { + "type": "string", + "example": "ENUM_VALUE" }, - "service": { - "$ref": "#/components/schemas/manaV2B2BExtranetServiceCustomerMatchDetailsService" + "status": { + "type": "string", + "example": "ENUM_VALUE" }, - "servicePrefixes": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix" - } + "updatedAt": { + "$ref": "#/components/schemas/googleProtobufTimestamp" } }, "additionalProperties": false }, - "manaV2B2BExtranetServiceCustomerMatchDetailsCustomer": { + "v1ExtranetsB2bPeeringCustomerPostRequest": { "type": "object", "properties": { - "companyName": { + "invite": { + "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceCustomerInvite" + }, + "name": { "type": "string", - "example": "example string" + "example": "example string", + "description": "Name of the peering service customer (required)" }, - "emails": { + "type": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Type of the peerings servicecustomer whether it is a graphiant or non-graphiant (required)" + } + }, + "additionalProperties": false, + "required": [ + "invite", + "name", + "type" + ] + }, + "manaV2B2bExtranetPeeringServiceCustomerInvite": { + "type": "object", + "properties": { + "adminEmail": { "type": "array", "items": { "type": "string", - "example": "example string" + "example": "example string", + "description": "Admin emails for the peering service customer (required)" } }, + "maximumNumberOfSites": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0, + "description": "Maximum number of sites for the peering service customer (required)" + } + }, + "additionalProperties": false, + "required": [ + "adminEmail", + "maximumNumberOfSites" + ] + }, + "v1ExtranetsB2bPeeringCustomerPostResponse": { + "type": "object", + "properties": { "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "numSites": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "response": { + "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceCustomerInvite" } }, "additionalProperties": false }, - "manaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix": { + "v1ExtranetsB2bPeeringCustomerIdDeleteResponse": { "type": "object", "properties": { - "customerTranslatedPrefix": { - "type": "string", - "example": "example string" - }, - "prefix": { + "activityId": { "type": "string", "example": "example string" }, - "tag": { + "consumerActivityId": { "type": "string", "example": "example string" } }, "additionalProperties": false }, - "manaV2B2BExtranetServiceCustomerMatchDetailsService": { + "v1ExtranetsB2bPeeringCustomerIdGetResponse": { "type": "object", "properties": { - "companyName": { + "customerName": { "type": "string", "example": "example string" }, - "contactEmail": { + "emails": { "type": "array", "items": { "type": "string", "example": "example string" } }, - "description": { - "type": "string", - "example": "example string" - }, - "id": { + "numSites": { "type": "integer", - "format": "int64", - "example": 1234567891011 + "format": "int32", + "example": 123, + "minimum": 0 }, - "serviceName": { + "status": { "type": "string", - "example": "example string" + "example": "ENUM_VALUE" + }, + "type": { + "type": "string", + "example": "ENUM_VALUE" } }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringConsumerMatchIdPostRequest": { + "v1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest": { "type": "object", "properties": { - "customerId": { + "id": { "type": "integer", "format": "int64", - "example": 1234567891011 - }, - "globalObjectOps": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/manaV2GlobalObjectServiceOps" - } + "example": 1234567891011, + "description": "ID of the customer (required)" }, + "service": { + "$ref": "#/components/schemas/manaV2B2bExtranetMatchServiceToCustomer" + } + }, + "additionalProperties": false, + "required": [ + "id", + "service" + ] + }, + "manaV2B2bExtranetMatchServiceToCustomer": { + "type": "object", + "properties": { "id": { "type": "integer", "format": "int64", "example": 1234567891011, - "description": "ID of the service which is being consumed by the customer (required)" + "description": "ID of the service being subscribed by the customer (required)" + }, + "lanSegment": { + "type": "integer", + "format": "int64", + "example": 1234567891011 }, "nat": { "type": "array", @@ -19959,81 +20939,120 @@ "$ref": "#/components/schemas/manaV2B2bNat" } }, - "policy": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy" - } + "numCustomers": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0, + "description": "Number of customers subscribed to the service" }, - "siteInformation": { + "servicePrefixes": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2B2bSiteInformation" + "$ref": "#/components/schemas/manaV2B2bExtranetPrefixTag" } - }, - "siteToSiteVpn": { - "$ref": "#/components/schemas/manaV2GuestConsumerSiteToSiteVpnConfig" } }, "additionalProperties": false, "required": [ "id", "nat", - "policy", - "siteInformation" + "servicePrefixes" ] }, - "manaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy": { + "manaV2B2bNat": { "type": "object", "properties": { - "consumerPrefixes": { + "outsideNatPrefix": { + "type": "string", + "example": "100.1.2.0/24", + "description": "Outside NAT prefix for the customer prefix" + }, + "prefix": { + "type": "string", + "example": "10.1.2.0/24", + "description": "Prefix imported into the service (required)" + } + }, + "additionalProperties": false, + "required": [ + "prefix" + ] + }, + "v1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse": { + "type": "object", + "properties": { + "matchId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "service": { "type": "array", "items": { - "type": "string", - "example": "example string" + "$ref": "#/components/schemas/manaV2B2bExtranetMatchServiceToCustomer" } - }, - "lanSegment": { + } + }, + "additionalProperties": false + }, + "v1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest": { + "type": "object", + "properties": { + "id": { "type": "integer", "format": "int64", - "example": 1234567891011 + "example": 1234567891011, + "description": "match ID for the customer's service subscription (required)" + }, + "status": { + "type": "string", + "example": "B2B_PEERING_SERVICE_STATUS_PAUSED", + "description": "Customer’s service status: Paused or Active (required)" + } + }, + "additionalProperties": false, + "required": [ + "id", + "status" + ] + }, + "v1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse": { + "type": "object", + "properties": { + "status": { + "type": "string", + "example": "ENUM_VALUE" } }, "additionalProperties": false }, - "manaV2GuestConsumerSiteToSiteVpnConfig": { + "v1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse": { "type": "object", "properties": { - "emails": { + "services": { "type": "array", "items": { - "type": "string", - "example": "example string" + "$ref": "#/components/schemas/manaV2B2bExtranetCustomerMatchServicesSummary" } - }, - "ipsecGatewayDetails": { - "$ref": "#/components/schemas/manaV2IPsecGatewayDetails" - }, - "regionId": { - "type": "integer", - "format": "int32", - "example": 123 } }, "additionalProperties": false }, - "manaV2IPsecGatewayDetails": { + "manaV2B2bExtranetCustomerMatchServicesSummary": { "type": "object", "properties": { - "destinationAddress": { - "type": "string", - "example": "example string" + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 }, - "ikeInitiator": { - "type": "boolean", - "example": true + "lanSegment": { + "type": "integer", + "format": "int64", + "example": 1234567891011 }, - "mtu": { + "matchedCustomers": { "type": "integer", "format": "int32", "example": 123, @@ -20043,1134 +21062,1351 @@ "type": "string", "example": "example string" }, - "remoteIkePeerIdentity": { + "status": { "type": "string", - "example": "example string" - }, - "routing": { - "$ref": "#/components/schemas/manaV2IpsecRoutingConfig" - }, - "tcpMss": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 - }, - "tunnel1": { - "$ref": "#/components/schemas/manaV2IPsecGatewayTunnelDetails" - }, - "tunnel2": { - "$ref": "#/components/schemas/manaV2IPsecGatewayTunnelDetails" + "example": "ENUM_VALUE" }, - "vpnProfile": { + "type": { "type": "string", - "example": "example string" + "example": "ENUM_VALUE" + }, + "updatedAt": { + "$ref": "#/components/schemas/googleProtobufTimestamp" } }, "additionalProperties": false }, - "manaV2IPsecGatewayTunnelDetails": { + "v1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse": { "type": "object", "properties": { - "insideIpv4Cidr": { + "customerName": { "type": "string", "example": "example string" }, - "insideIpv6Cidr": { - "type": "string", - "example": "example string" + "matchDetails": { + "$ref": "#/components/schemas/manaV2B2bExtranetMatchServiceToCustomer" }, - "localIkePeerIdentity": { + "matchId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "serviceName": { "type": "string", "example": "example string" }, - "psk": { + "status": { "type": "string", - "example": "example string" + "example": "ENUM_VALUE" } }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringConsumerMatchIdPostResponse": { + "v1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse": { "type": "object", "properties": { + "activityId": { + "type": "string", + "example": "example string", + "description": "activity id for the delete operation (required)" + }, "consumerActivityId": { "type": "string", - "example": "example string" + "example": "example string", + "description": "activity id for the consumer delete operation (required)" + } + }, + "additionalProperties": false + }, + "v1ExtranetsB2bGeneralCustomersSummaryGetResponse": { + "type": "object", + "properties": { + "customers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bExtranetCustomerServicesSummary" + } + } + }, + "additionalProperties": false + }, + "manaV2B2bExtranetCustomerServicesSummary": { + "type": "object", + "properties": { + "adminEmails": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } }, "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "lanSegment": { + "matchedServices": { "type": "integer", - "format": "int64", - "example": 1234567891011 + "format": "int32", + "example": 123, + "minimum": 0 }, - "nat": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bNat" - } + "name": { + "type": "string", + "example": "example string" }, - "siteInformation": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bSiteInformation" - } + "status": { + "type": "string", + "example": "ENUM_VALUE" + }, + "type": { + "type": "string", + "example": "ENUM_VALUE" + }, + "updatedAt": { + "$ref": "#/components/schemas/googleProtobufTimestamp" } }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest": { + "v1ExtranetsB2bGeneralServicesSummaryGetResponse": { "type": "object", "properties": { - "servicePrefixes": { + "info": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2B2bNat" + "$ref": "#/components/schemas/manaV2B2bExtranetApplication" } } }, - "additionalProperties": false, - "required": [ - "servicePrefixes" - ] - }, - "v1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse": { - "type": "object", - "properties": { - "consumerActiviyId": { - "type": "string", - "example": "example string" - } - }, "additionalProperties": false }, - "v1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse": { + "manaV2B2bExtranetApplication": { "type": "object", "properties": { - "consumerId": { + "createdAt": { + "$ref": "#/components/schemas/googleProtobufTimestamp" + }, + "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "consumerName": { + "isPublisher": { + "type": "boolean", + "example": true + }, + "lanSegment": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "matchedCustomers": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "name": { "type": "string", "example": "example string" }, - "emails": { + "serverIpAddress": { "type": "array", "items": { "type": "string", "example": "example string" } }, - "globalObjectDeviceSummaries": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/manaV2GlobalObjectServiceSummaries" - } - }, - "globalObjectSummaries": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/manaV2GlobalObjectServiceSummaries" - } + "status": { + "type": "string", + "example": "ENUM_VALUE" }, - "ipsecTunnelConfig": { - "type": "array", - "items": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponseIpsecVpnTunnelConfig" - } + "totalCustomers": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 }, - "matchDetails": { - "$ref": "#/components/schemas/manaV2B2bExtranetServiceCustomerMatchDetails" + "totalSites": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 }, - "peerType": { + "type": { "type": "string", "example": "ENUM_VALUE" }, + "updatedAt": { + "$ref": "#/components/schemas/googleProtobufTimestamp" + } + }, + "additionalProperties": false + }, + "v1ExtranetsB2bPostRequest": { + "type": "object", + "properties": { "policy": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy" - } - }, - "siteInformation": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bSiteInformation" - } + "$ref": "#/components/schemas/manaV2B2bExtranetProducerPolicy" }, - "siteToSiteVpn": { - "$ref": "#/components/schemas/manaV2GuestConsumerSiteToSiteVpnConfig" + "serviceName": { + "type": "string", + "example": "example string", + "description": "Name of the service (required)" }, - "status": { + "type": { "type": "string", - "example": "ENUM_VALUE" + "example": "ENUM_VALUE", + "description": "Type of the service whether it is application or peering (required)" } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "policy", + "serviceName", + "type" + ] }, - "v1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponseIpsecVpnTunnelConfig": { + "manaV2B2bExtranetProducerPolicy": { "type": "object", "properties": { - "bgpGraphiantAsn": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "description": { + "type": "string", + "example": "example string", + "description": "Description for the service" }, - "bgpLocalAsn": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "globalObjectDeviceSummaries": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2GlobalObjectServiceSummaries" + } }, - "bgpNeighborHoldTime": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "globalObjectSummaries": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2GlobalObjectServiceSummaries" + } }, - "bgpNeighborIpv4": { - "type": "string", - "example": "example string" + "natPools": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "NAT pools for the service (required)" + } }, - "bgpNeighborIpv6": { - "type": "string", - "example": "example string" + "prefixTags": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bExtranetPrefixTag" + } }, - "dpdInterval": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 + "profiles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ApplicationProfile" + } }, - "dpdRetries": { + "serviceLanSegment": { "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 - }, - "graphiantDestinationIp": { - "type": "string", - "example": "example string" + "format": "int64", + "example": 1234567891011, + "description": "LAN segment for the service (required)" }, - "graphiantIkeId": { - "type": "string", - "example": "example string" + "servicePrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Prefixes advertised by the service (required)" + } }, - "graphiantOuterTunnelIp": { - "type": "string", - "example": "example string" + "sites": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bSiteInformation" + } }, - "graphiantTunnelIp": { - "type": "string", - "example": "example string" + "sla": { + "$ref": "#/components/schemas/manaV2SlaInformation" }, - "graphiantTunnelIpv6": { + "status": { "type": "string", - "example": "example string" + "example": "ENUM_VALUE" }, - "ikeAuthenticationAlgorithm": { + "type": { "type": "string", - "example": "example string" + "example": "ENUM_VALUE", + "description": "Type of the service whether it is application or peering (required)" }, - "ikeAuthenticationMethod": { + "unmatchedCustomers": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + } + }, + "additionalProperties": false, + "required": [ + "natPools", + "serviceLanSegment", + "servicePrefixes", + "sites", + "type" + ] + }, + "manaV2ApplicationProfile": { + "type": "object", + "properties": { + "portRange": { "type": "string", - "example": "example string" + "example": "example string", + "description": "Port Range" }, - "ikeDhAlgorithm": { - "type": "string", - "example": "example string" + "ports": { + "type": "array", + "items": { + "type": "integer", + "format": "int32", + "example": 123, + "description": "Ports for the application profile (required)" + } }, - "ikeEncryptionAlgorithm": { + "protocol": { + "type": "integer", + "format": "int32", + "example": 123, + "description": "Protocol for the application profile (required)" + } + }, + "additionalProperties": false, + "required": [ + "ports", + "protocol" + ] + }, + "manaV2SlaInformation": { + "type": "object", + "properties": { + "backupCircuit": { "type": "string", - "example": "example string" + "example": "ENUM_VALUE", + "description": "Backup circuit for the SLA information" }, - "ikeLifetime": { + "class": { "type": "string", - "example": "example string" + "example": "ENUM_VALUE", + "description": "Class for the SLA information" }, - "ikePresharedKey": { + "primaryCircuit": { "type": "string", - "example": "example string" - }, - "ikeVersion": { + "example": "ENUM_VALUE", + "description": "Primary circuit for the SLA information" + } + }, + "additionalProperties": false + }, + "v1ExtranetsB2bPostResponse": { + "type": "object", + "properties": { + "id": { "type": "integer", - "format": "int32", - "example": 123 + "format": "int64", + "example": 1234567891011 }, - "ipsecAuthenticationAlgorithm": { + "policy": { + "$ref": "#/components/schemas/manaV2B2bExtranetPolicyResponse" + } + }, + "additionalProperties": false + }, + "manaV2B2bExtranetPolicyResponse": { + "type": "object", + "properties": { + "dnsName": { "type": "string", "example": "example string" }, - "ipsecEncryptionAlgorithm": { - "type": "string", - "example": "example string" + "inboundSecurityRules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2SecurityPolicyRule" + } }, - "ipsecExtendedSequenceNumber": { - "type": "boolean", - "example": true + "policy": { + "$ref": "#/components/schemas/manaV2B2bExtranetProducerPolicy" }, - "ipsecLifetime": { + "serviceName": { "type": "string", "example": "example string" }, - "ipsecMode": { + "trafficRules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2TrafficPolicyRule" + } + } + }, + "additionalProperties": false + }, + "manaV2SecurityPolicyRule": { + "type": "object", + "properties": { + "action": { "type": "string", - "example": "example string" + "example": "ENUM_VALUE" }, - "ipsecPfsAlgorithm": { - "type": "string", - "example": "example string" + "implicit": { + "type": "boolean", + "example": true }, - "ipsecProtocol": { - "type": "string", - "example": "example string" + "match": { + "$ref": "#/components/schemas/manaV2PolicyMatch" }, - "localIkeId": { - "type": "string", - "example": "example string" + "policyRuleIndex": { + "type": "integer", + "format": "int64", + "example": 1234567891011 }, - "localOuterTunnelIp": { - "type": "string", - "example": "example string" + "seq": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + } + }, + "additionalProperties": false + }, + "manaV2PolicyMatch": { + "type": "object", + "properties": { + "destinationPort": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 }, - "localTunnelIp": { + "destinationPrefix": { "type": "string", "example": "example string" }, - "localTunnelIpv6": { - "type": "string", - "example": "example string" + "icmpType": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 }, - "tcpMss": { + "protocol": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 }, - "tunnelMtu": { + "sourcePort": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 + }, + "sourcePrefix": { + "type": "string", + "example": "example string" } }, "additionalProperties": false }, - "v1ExtranetsB2bConsumerPostRequest": { + "manaV2TrafficPolicyRule": { "type": "object", "properties": { - "policy": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2ExtranetConsumerLanSegmentPolicy" - } + "action": { + "$ref": "#/components/schemas/manaV2TrafficPolicyAction" }, - "providerEnterpriseId": { + "match": { + "$ref": "#/components/schemas/manaV2PolicyMatch" + }, + "policyRuleIndex": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "serviceName": { - "type": "string", - "example": "example string" - }, - "siteInformation": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bSiteInformation" - } + "seq": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 } }, "additionalProperties": false }, - "manaV2ExtranetConsumerLanSegmentPolicy": { + "manaV2TrafficPolicyAction": { "type": "object", "properties": { - "consumerLanSegment": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "backup": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Backup circuit for the traffic policy action" }, - "restrictedPrefixes": { - "type": "array", - "items": { - "type": "string", - "example": "example string" - } + "class": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Class for the traffic policy action" }, - "rules": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2ExtranetConsumerNatRule" - } + "primary": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Primary circuit for the traffic policy action" + }, + "result": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Result for the traffic policy action" } }, "additionalProperties": false }, - "manaV2ExtranetConsumerNatRule": { + "v1ExtranetsB2bIdPutRequest": { "type": "object", "properties": { - "outsideNatPrefix": { - "type": "string", - "example": "example string", - "description": "Optional nat prefix associated with a service prefix with an empty string indicating no NATing" - }, - "servicePrefix": { - "type": "string", - "example": "10.1.2.0/24", - "description": "Service prefix for the NAT rule (required)" + "policy": { + "$ref": "#/components/schemas/manaV2B2bExtranetProducerPolicy" } }, "additionalProperties": false, "required": [ - "servicePrefix" + "policy" ] }, - "v1ExtranetsB2bConsumerPostResponse": { + "v1ExtranetsB2bIdPutResponse": { "type": "object", "properties": { - "device": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2ConsumerDeviceInformation" - } - }, "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, "policy": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2ExtranetConsumerLanSegmentPolicyResponse" - } - }, - "siteInformation": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bSiteInformation" - } + "$ref": "#/components/schemas/manaV2B2bExtranetPolicyResponse" } }, "additionalProperties": false }, - "manaV2ConsumerDeviceInformation": { + "v1ExtranetsB2bIdDeleteResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1ExtranetsB2bIdProducerGetResponse": { "type": "object", "properties": { - "deviceId": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "lastUpdated": { - "$ref": "#/components/schemas/googleProtobufTimestamp" - }, - "site": { + "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "status": { - "type": "string", - "example": "ENUM_VALUE" + "policy": { + "$ref": "#/components/schemas/manaV2B2bExtranetPolicyResponse" } }, "additionalProperties": false }, - "manaV2ExtranetConsumerLanSegmentPolicyResponse": { + "v1ExtranetsB2bProducerDeviceStatusIdGetResponse": { "type": "object", "properties": { - "consumerLanSegment": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "inboundSecurityRules": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2SecurityPolicyRule" - } - }, - "outboundSecurityRules": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2SecurityPolicyRule" - } - }, - "restrictedPrefixes": { + "summary": { "type": "array", "items": { - "type": "string", - "example": "example string" + "$ref": "#/components/schemas/manaV2B2bExtranetStatusSummary" } - }, - "rules": { + } + }, + "additionalProperties": false + }, + "v1ExtranetsB2bProducersSummaryGetResponse": { + "type": "object", + "properties": { + "info": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2ExtranetConsumerNatRule" + "$ref": "#/components/schemas/manaV2B2bExtranetApplication" } - }, - "trafficRules": { + } + }, + "additionalProperties": false + }, + "v1ExtranetsB2bIdCustomerSummaryGetResponse": { + "type": "object", + "properties": { + "customers": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2TrafficPolicyRule" + "$ref": "#/components/schemas/manaV2B2bApplicationCustomerSummary" } } }, "additionalProperties": false }, - "v1ExtranetsB2bConsumerIdGetResponse": { + "manaV2B2bApplicationCustomerSummary": { "type": "object", "properties": { - "consumerId": { + "adminEmail": { + "type": "string", + "example": "example string" + }, + "enterpriseId": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "policy": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2ExtranetConsumerLanSegmentPolicyResponse" - } + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 }, - "serviceName": { + "name": { "type": "string", "example": "example string" }, - "siteInformation": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2B2bSiteInformation" - } + "status": { + "type": "string", + "example": "ENUM_VALUE" + }, + "updatedAt": { + "$ref": "#/components/schemas/googleProtobufTimestamp" } }, "additionalProperties": false }, - "v1ExtranetsB2bConsumerIdDeleteResponse": { - "type": "object", - "properties": {}, - "additionalProperties": false - }, - "v1ExtranetsB2bConsumerSummaryGetResponse": { + "v1ExtranetsB2bIdCustomerPostRequest": { "type": "object", "properties": { - "summary": { + "invites": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetConsumersSummary" + "$ref": "#/components/schemas/manaV2B2bExtranetApplicationInvite" } } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "invites" + ] }, - "manaV2B2bExtranetConsumersSummary": { + "manaV2B2bExtranetApplicationInvite": { "type": "object", "properties": { - "b2bStatus": { + "adminEmail": { "type": "string", - "example": "ENUM_VALUE" - }, - "createdAt": { - "$ref": "#/components/schemas/googleProtobufTimestamp" - }, - "id": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "example": "example string", + "description": "Admin email of the customer (required)" }, - "numEdges": { + "consumerBurstSize": { "type": "integer", "format": "int32", "example": 123, - "minimum": 0 + "minimum": 0, + "description": "Maximum Burst size per site for the customer (required)" }, - "numSegments": { + "consumerBwSite": { "type": "integer", "format": "int32", "example": 123, - "minimum": 0 + "minimum": 0, + "description": "Maximum Bandwidth allocation per site for the customer (required)" }, - "numSites": { + "enterpriseId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Enterprise ID of the customer (required)" + }, + "maximumSiteCount": { "type": "integer", "format": "int32", "example": 123, - "minimum": 0 - }, - "providerName": { - "type": "string", - "example": "example string" - }, - "publisherName": { - "type": "string", - "example": "example string" - }, - "serviceName": { - "type": "string", - "example": "example string" - }, - "status": { - "type": "string", - "example": "ENUM_VALUE" + "minimum": 0, + "description": "Maximum number of sites for the customer (required)" }, - "type": { - "type": "string", - "example": "ENUM_VALUE" + "servicePrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "List of service prefixes for the application" + } } }, - "additionalProperties": false + "additionalProperties": false, + "required": [ + "adminEmail", + "consumerBurstSize", + "consumerBwSite", + "enterpriseId", + "maximumSiteCount" + ] }, - "v1ExtranetsB2bConsumerDeviceStatusIdGetResponse": { + "v1ExtranetsB2bIdCustomerPostResponse": { "type": "object", "properties": { - "serviceStatus": { - "type": "string", - "example": "ENUM_VALUE" - }, - "summary": { + "responses": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2B2bExtranetStatusSummary" + "$ref": "#/components/schemas/manaV2B2bExtranetApplicationInviteResponse" } } }, "additionalProperties": false }, - "v1ExtranetsB2bCustomerInfoIdGetResponse": { + "manaV2B2bExtranetApplicationInviteResponse": { "type": "object", "properties": { - "id": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "providerEnterpriseId": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "serviceName": { + "adminEmail": { "type": "string", "example": "example string" }, - "status": { - "type": "string", - "example": "ENUM_VALUE" - } - }, - "additionalProperties": false - }, - "v1ExtranetsMonitoringNatUsageGetResponse": { - "type": "object", - "properties": { - "allocatedCount": { + "consumerBurstSize": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 }, - "allocations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/v1ExtranetsMonitoringNatUsageGetResponseAllocation" - } - }, - "usageCount": { + "consumerBwSite": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 - } - }, - "additionalProperties": false - }, - "v1ExtranetsMonitoringNatUsageGetResponseAllocation": { - "type": "object", - "properties": { - "deviceId": { + }, + "enterpriseId": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "hostname": { - "type": "string", - "example": "example string" - }, - "ipAddress": { - "type": "string", - "example": "example string" - }, - "siteId": { + "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "siteName": { - "type": "string", - "example": "example string" + "maximumSiteCount": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "servicePrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } } }, "additionalProperties": false }, - "v1ExtranetsMonitoringLanSegmentsGetResponse": { + "v1ExtranetsB2bCustomerIdDeleteResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse": { "type": "object", "properties": { - "vrfs": { + "details": { "type": "array", "items": { - "$ref": "#/components/schemas/v1ExtranetsMonitoringLanSegmentsGetResponseVrf" + "$ref": "#/components/schemas/manaV2B2bExtranetServiceCustomerMatchDetails" } } }, "additionalProperties": false }, - "v1ExtranetsMonitoringLanSegmentsGetResponseVrf": { + "manaV2B2bExtranetServiceCustomerMatchDetails": { "type": "object", "properties": { - "id": { + "consumerId": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "name": { - "type": "string", - "example": "example string" - } - }, - "additionalProperties": false - }, - "v1ExtranetsMonitoringTrafficSecurityPolicyPostRequest": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "consumerPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } }, - "isProvider": { - "type": "boolean", - "example": true - } - }, - "additionalProperties": false - }, - "v1ExtranetsMonitoringTrafficSecurityPolicyPostResponse": { - "type": "object", - "properties": { - "securityRules": { + "customer": { + "$ref": "#/components/schemas/manaV2B2BExtranetServiceCustomerMatchDetailsCustomer" + }, + "oldConsumerPrefixes": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2SecurityPolicyRuleRow" + "type": "string", + "example": "example string" } }, - "trafficRules": { + "oldServicePrefixes": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2TrafficPolicyRuleRow" + "$ref": "#/components/schemas/manaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix" + } + }, + "service": { + "$ref": "#/components/schemas/manaV2B2BExtranetServiceCustomerMatchDetailsService" + }, + "servicePrefixes": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix" } } }, "additionalProperties": false }, - "manaV2SecurityPolicyRuleRow": { + "manaV2B2BExtranetServiceCustomerMatchDetailsCustomer": { "type": "object", "properties": { - "device": { - "$ref": "#/components/schemas/manaV2SiteDeviceStub" - }, - "securityPolicyRule": { - "$ref": "#/components/schemas/manaV2SecurityPolicyRule" - }, - "vrfName": { + "companyName": { "type": "string", "example": "example string" + }, + "emails": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } + }, + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "numSites": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 } }, "additionalProperties": false }, - "manaV2TrafficPolicyRuleRow": { + "manaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix": { "type": "object", "properties": { - "device": { - "$ref": "#/components/schemas/manaV2SiteDeviceStub" + "customerTranslatedPrefix": { + "type": "string", + "example": "example string" }, - "trafficPolicyRule": { - "$ref": "#/components/schemas/manaV2TrafficPolicyRule" + "prefix": { + "type": "string", + "example": "example string" }, - "vrfName": { + "tag": { "type": "string", "example": "example string" } }, "additionalProperties": false }, - "v2ExtranetsMonitoringConsumersPostRequest": { + "manaV2B2BExtranetServiceCustomerMatchDetailsService": { "type": "object", "properties": { + "companyName": { + "type": "string", + "example": "example string" + }, + "contactEmail": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } + }, + "description": { + "type": "string", + "example": "example string" + }, "id": { "type": "integer", "format": "int64", "example": 1234567891011 + }, + "serviceName": { + "type": "string", + "example": "example string" } }, "additionalProperties": false }, - "v2ExtranetsMonitoringConsumersPostResponse": { - "type": "object", - "properties": { - "consumers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2Consumer" - } - } - }, - "additionalProperties": false - }, - "manaV2Consumer": { + "v1ExtranetsB2bPeeringConsumerMatchIdPostRequest": { "type": "object", "properties": { - "id": { + "customerId": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "name": { - "type": "string", - "example": "example string" + "globalObjectOps": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2GlobalObjectServiceOps" + } }, - "vrfs": { + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "ID of the service which is being consumed by the customer (required)" + }, + "nat": { "type": "array", "items": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "$ref": "#/components/schemas/manaV2B2bNat" } - } - }, - "additionalProperties": false - }, - "v1ExtranetPublicVifPostRequest": { - "type": "object", - "properties": { - "consumerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicy" }, - "producerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifProducerPolicy" - }, - "serviceName": { - "type": "string", - "example": "example string" + "policy": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy" + } }, - "type": { - "type": "string", - "example": "ENUM_VALUE", - "description": "Type of the service whether it is application or peering (required)" - } - }, - "additionalProperties": false, - "required": [ - "consumerPolicy", - "producerPolicy", - "type" - ] - }, - "manaV2PublicVifConsumerPolicy": { - "type": "object", - "properties": { - "lanSegments": { + "siteInformation": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2PublicVifConsumerLanSegment" + "$ref": "#/components/schemas/manaV2B2bSiteInformation" } }, - "sites": { - "$ref": "#/components/schemas/manaV2SiteInformation" + "siteToSiteVpn": { + "$ref": "#/components/schemas/manaV2GuestConsumerSiteToSiteVpnConfig" } }, "additionalProperties": false, "required": [ - "lanSegments", - "sites" + "id", + "nat", + "policy", + "siteInformation" ] }, - "manaV2PublicVifConsumerLanSegment": { + "manaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy": { "type": "object", "properties": { - "allowedPrefixes": { + "consumerPrefixes": { "type": "array", "items": { "type": "string", - "example": "example string", - "description": "Allowed prefixes for the Lan Segment (required)" + "example": "example string" } }, - "serviceLanSegment": { + "lanSegment": { "type": "integer", "format": "int64", - "example": 1234567891011, - "description": "LAN segment ID for the service (required)" + "example": 1234567891011 } }, - "additionalProperties": false, - "required": [ - "allowedPrefixes", - "serviceLanSegment" - ] + "additionalProperties": false }, - "manaV2SiteInformation": { + "v1ExtranetsB2bPeeringConsumerMatchIdPostResponse": { "type": "object", "properties": { - "siteLists": { + "consumerActivityId": { + "type": "string", + "example": "example string" + }, + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "lanSegment": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "nat": { "type": "array", "items": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "$ref": "#/components/schemas/manaV2B2bNat" } }, - "sites": { + "siteInformation": { "type": "array", "items": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "$ref": "#/components/schemas/manaV2B2bSiteInformation" } } }, "additionalProperties": false }, - "manaV2PublicVifProducerPolicy": { + "v1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest": { "type": "object", "properties": { - "devices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/manaV2PublicVifDevice" - } - }, - "profiles": { + "servicePrefixes": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2ApplicationProfile" + "$ref": "#/components/schemas/manaV2B2bNat" } - }, - "serviceLanSegment": { - "type": "integer", - "format": "int64", - "example": 1234567891011, - "description": "LAN segment ID for the service (required)" - }, - "serviceName": { - "type": "string", - "example": "example string", - "description": "Public VIF service name (local_extranet_producer_service.name)" - }, - "sites": { - "$ref": "#/components/schemas/manaV2SiteInformation" - }, - "sla": { - "$ref": "#/components/schemas/manaV2SlaInformation" - }, - "vifs": { - "$ref": "#/components/schemas/manaV2PublicVif" } }, "additionalProperties": false, "required": [ - "devices", - "serviceLanSegment", - "sites", - "vifs" + "servicePrefixes" ] }, - "manaV2PublicVifDevice": { + "v1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse": { + "type": "object", + "properties": { + "consumerActiviyId": { + "type": "string", + "example": "example string" + } + }, + "additionalProperties": false + }, + "v1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse": { "type": "object", "properties": { - "consumerBurstSize": { + "consumerId": { "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0, - "description": "Maximum Burst size per device (required)" + "format": "int64", + "example": 1234567891011 }, - "consumerBwSite": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0, - "description": "Maximum Bandwidth allocation per device (required)" + "consumerName": { + "type": "string", + "example": "example string" }, - "natPools": { + "emails": { "type": "array", "items": { "type": "string", - "example": "example string", - "description": "NAT details for the service prefixes (required)" + "example": "example string" } - } - }, - "additionalProperties": false, - "required": [ - "consumerBurstSize", - "consumerBwSite", - "natPools" - ] - }, - "manaV2PublicVif": { - "type": "object", - "properties": { - "coveringPrefixes": { - "$ref": "#/components/schemas/manaV2PublicVifDynamic" }, - "fixedPrefixes": { - "$ref": "#/components/schemas/manaV2PublicVifFixed" + "globalObjectDeviceSummaries": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2GlobalObjectServiceSummaries" + } }, - "type": { - "type": "string", - "example": "ENUM_VALUE", - "description": "Type of Public VIF dynamic/fixed (required)" - } - }, - "additionalProperties": false, - "required": [ - "coveringPrefixes", - "fixedPrefixes", - "type" - ] - }, - "manaV2PublicVifDynamic": { - "type": "object", - "properties": { - "entries": { + "globalObjectSummaries": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2GlobalObjectServiceSummaries" + } + }, + "ipsecTunnelConfig": { "type": "array", "items": { - "type": "string", - "example": "example string" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponseIpsecVpnTunnelConfig" } - } - }, - "additionalProperties": false - }, - "manaV2PublicVifFixed": { - "type": "object", - "properties": { - "entries": { + }, + "matchDetails": { + "$ref": "#/components/schemas/manaV2B2bExtranetServiceCustomerMatchDetails" + }, + "peerType": { + "type": "string", + "example": "ENUM_VALUE" + }, + "policy": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy" + } + }, + "siteInformation": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2PublicVifFixedNat" + "$ref": "#/components/schemas/manaV2B2bSiteInformation" } + }, + "siteToSiteVpn": { + "$ref": "#/components/schemas/manaV2GuestConsumerSiteToSiteVpnConfig" + }, + "status": { + "type": "string", + "example": "ENUM_VALUE" } }, "additionalProperties": false }, - "manaV2PublicVifFixedNat": { + "v1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponseIpsecVpnTunnelConfig": { "type": "object", "properties": { - "outsideNatPrefix": { + "bgpGraphiantAsn": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "bgpLocalAsn": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "bgpNeighborHoldTime": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "bgpNeighborIpv4": { "type": "string", "example": "example string" }, - "servicePrefix": { + "bgpNeighborIpv6": { + "type": "string", + "example": "example string" + }, + "dpdInterval": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "dpdRetries": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "graphiantDestinationIp": { + "type": "string", + "example": "example string" + }, + "graphiantIkeId": { + "type": "string", + "example": "example string" + }, + "graphiantOuterTunnelIp": { + "type": "string", + "example": "example string" + }, + "graphiantTunnelIp": { + "type": "string", + "example": "example string" + }, + "graphiantTunnelIpv6": { + "type": "string", + "example": "example string" + }, + "ikeAuthenticationAlgorithm": { + "type": "string", + "example": "example string" + }, + "ikeAuthenticationMethod": { + "type": "string", + "example": "example string" + }, + "ikeDhAlgorithm": { + "type": "string", + "example": "example string" + }, + "ikeEncryptionAlgorithm": { + "type": "string", + "example": "example string" + }, + "ikeLifetime": { + "type": "string", + "example": "example string" + }, + "ikePresharedKey": { + "type": "string", + "example": "example string" + }, + "ikeVersion": { + "type": "integer", + "format": "int32", + "example": 123 + }, + "ipsecAuthenticationAlgorithm": { + "type": "string", + "example": "example string" + }, + "ipsecEncryptionAlgorithm": { + "type": "string", + "example": "example string" + }, + "ipsecExtendedSequenceNumber": { + "type": "boolean", + "example": true + }, + "ipsecLifetime": { + "type": "string", + "example": "example string" + }, + "ipsecMode": { + "type": "string", + "example": "example string" + }, + "ipsecPfsAlgorithm": { + "type": "string", + "example": "example string" + }, + "ipsecProtocol": { + "type": "string", + "example": "example string" + }, + "localIkeId": { + "type": "string", + "example": "example string" + }, + "localOuterTunnelIp": { + "type": "string", + "example": "example string" + }, + "localTunnelIp": { + "type": "string", + "example": "example string" + }, + "localTunnelIpv6": { "type": "string", "example": "example string" + }, + "tcpMss": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "tunnelMtu": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 } }, "additionalProperties": false }, - "v1ExtranetPublicVifPostResponse": { + "v1ExtranetsB2bConsumerPostRequest": { "type": "object", "properties": { - "consumerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicyResponse" + "policy": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ExtranetConsumerLanSegmentPolicy" + } }, - "id": { + "providerEnterpriseId": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "producerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifProducerPolicyResponse" - }, "serviceName": { "type": "string", "example": "example string" }, - "type": { - "type": "string", - "example": "ENUM_VALUE" + "siteInformation": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bSiteInformation" + } } }, "additionalProperties": false }, - "manaV2PublicVifConsumerPolicyResponse": { + "manaV2ExtranetConsumerLanSegmentPolicy": { "type": "object", "properties": { - "consumerServiceId": { + "consumerLanSegment": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "lanSegments": { + "restrictedPrefixes": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2PublicVifConsumerLanSegmentResponse" + "type": "string", + "example": "example string" } }, - "sites": { - "$ref": "#/components/schemas/manaV2SiteInformation" + "rules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ExtranetConsumerNatRule" + } } }, "additionalProperties": false }, - "manaV2PublicVifConsumerLanSegmentResponse": { + "manaV2ExtranetConsumerNatRule": { "type": "object", "properties": { - "allowedPrefixes": { - "type": "array", - "items": { - "type": "string", - "example": "example string", - "description": "Allowed prefixes for the Lan Segment" - } + "outsideNatPrefix": { + "type": "string", + "example": "example string", + "description": "Optional nat prefix associated with a service prefix with an empty string indicating no NATing" }, - "outboundSecurityRules": { + "servicePrefix": { + "type": "string", + "example": "10.1.2.0/24", + "description": "Service prefix for the NAT rule (required)" + } + }, + "additionalProperties": false, + "required": [ + "servicePrefix" + ] + }, + "v1ExtranetsB2bConsumerPostResponse": { + "type": "object", + "properties": { + "device": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2SecurityPolicyRule" + "$ref": "#/components/schemas/manaV2ConsumerDeviceInformation" } }, - "serviceLanSegment": { + "id": { "type": "integer", "format": "int64", - "example": 1234567891011, - "description": "LAN segment ID for the service" + "example": 1234567891011 }, - "trafficRules": { + "policy": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2TrafficPolicyRule" + "$ref": "#/components/schemas/manaV2ExtranetConsumerLanSegmentPolicyResponse" + } + }, + "siteInformation": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bSiteInformation" } } }, "additionalProperties": false }, - "manaV2PublicVifProducerPolicyResponse": { + "manaV2ConsumerDeviceInformation": { "type": "object", "properties": { - "devices": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/manaV2PublicVifDevice" - } + "deviceId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "lastUpdated": { + "$ref": "#/components/schemas/googleProtobufTimestamp" + }, + "site": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "status": { + "type": "string", + "example": "ENUM_VALUE" + } + }, + "additionalProperties": false + }, + "manaV2ExtranetConsumerLanSegmentPolicyResponse": { + "type": "object", + "properties": { + "consumerLanSegment": { + "type": "integer", + "format": "int64", + "example": 1234567891011 }, "inboundSecurityRules": { "type": "array", @@ -21178,104 +22414,127 @@ "$ref": "#/components/schemas/manaV2SecurityPolicyRule" } }, - "profiles": { + "outboundSecurityRules": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2ApplicationProfile" + "$ref": "#/components/schemas/manaV2SecurityPolicyRule" } }, - "serviceLanSegment": { - "type": "integer", - "format": "int64", - "example": 1234567891011, - "description": "LAN segment ID for the service" - }, - "serviceName": { - "type": "string", - "example": "example string", - "description": "Public VIF service name (local_extranet_producer_service.name)" - }, - "sites": { - "$ref": "#/components/schemas/manaV2SiteInformation" + "restrictedPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } }, - "sla": { - "$ref": "#/components/schemas/manaV2SlaInformation" + "rules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ExtranetConsumerNatRule" + } }, "trafficRules": { "type": "array", "items": { "$ref": "#/components/schemas/manaV2TrafficPolicyRule" } - }, - "vifs": { - "$ref": "#/components/schemas/manaV2PublicVif" } }, "additionalProperties": false }, - "v1ExtranetPublicVifIdPutRequest": { - "type": "object", - "properties": { - "consumerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicy" - }, - "producerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifProducerPolicy" - } - }, - "additionalProperties": false, - "required": [ - "producerPolicy" - ] - }, - "v1ExtranetPublicVifIdPutResponse": { + "v1ExtranetsB2bConsumerIdGetResponse": { "type": "object", "properties": { - "consumerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicyResponse" - }, - "id": { + "consumerId": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "producerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifProducerPolicyResponse" + "policy": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ExtranetConsumerLanSegmentPolicyResponse" + } }, "serviceName": { "type": "string", "example": "example string" }, - "type": { - "type": "string", - "example": "ENUM_VALUE" + "siteInformation": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bSiteInformation" + } } }, "additionalProperties": false }, - "v1ExtranetPublicVifIdDeleteResponse": { + "v1ExtranetsB2bConsumerIdDeleteResponse": { "type": "object", "properties": {}, "additionalProperties": false }, - "v1ExtranetPublicVifIdGetResponse": { + "v1ExtranetsB2bConsumerSummaryGetResponse": { + "type": "object", + "properties": { + "summary": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bExtranetConsumersSummary" + } + } + }, + "additionalProperties": false + }, + "manaV2B2bExtranetConsumersSummary": { "type": "object", "properties": { - "consumerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicyResponse" + "b2bStatus": { + "type": "string", + "example": "ENUM_VALUE" + }, + "createdAt": { + "$ref": "#/components/schemas/googleProtobufTimestamp" }, "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "producerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifProducerPolicyResponse" + "numEdges": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "numSegments": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "numSites": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "providerName": { + "type": "string", + "example": "example string" + }, + "publisherName": { + "type": "string", + "example": "example string" }, "serviceName": { "type": "string", "example": "example string" }, + "status": { + "type": "string", + "example": "ENUM_VALUE" + }, "type": { "type": "string", "example": "ENUM_VALUE" @@ -21283,136 +22542,733 @@ }, "additionalProperties": false }, - "v1ExtranetPublicVifCheckPostRequest": { + "v1ExtranetsB2bConsumerDeviceStatusIdGetResponse": { "type": "object", "properties": { - "consumerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicy" - }, - "producerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifProducerPolicy" - }, - "serviceName": { + "serviceStatus": { "type": "string", - "example": "example string" + "example": "ENUM_VALUE" }, - "type": { - "type": "string", - "example": "ENUM_VALUE", - "description": "Type of the service whether it is application or peering (required)" + "summary": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2B2bExtranetStatusSummary" + } } }, - "additionalProperties": false, - "required": [ - "consumerPolicy", - "producerPolicy", - "type" - ] + "additionalProperties": false }, - "v1ExtranetPublicVifCheckPostResponse": { + "v1ExtranetsB2bCustomerInfoIdGetResponse": { "type": "object", "properties": { - "consumerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicyResponse" - }, "id": { "type": "integer", "format": "int64", "example": 1234567891011 }, - "producerPolicy": { - "$ref": "#/components/schemas/manaV2PublicVifProducerPolicyResponse" + "providerEnterpriseId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 }, "serviceName": { "type": "string", "example": "example string" }, - "type": { + "status": { "type": "string", "example": "ENUM_VALUE" } }, "additionalProperties": false }, - "v1ExtranetPublicVifGetResponse": { + "v1ExtranetsMonitoringNatUsageGetResponse": { "type": "object", "properties": { - "summary": { + "allocatedCount": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "allocations": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2PublicVifSummary" + "$ref": "#/components/schemas/v1ExtranetsMonitoringNatUsageGetResponseAllocation" } + }, + "usageCount": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 } }, "additionalProperties": false }, - "manaV2PublicVifSummary": { + "v1ExtranetsMonitoringNatUsageGetResponseAllocation": { "type": "object", "properties": { - "id": { + "deviceId": { "type": "integer", "format": "int64", - "example": 1234567891011, - "description": "id of this Public VIF" + "example": 1234567891011 }, - "serviceName": { + "hostname": { "type": "string", - "example": "example string", - "description": "name of this Public VIF" + "example": "example string" }, - "updatedAt": { - "$ref": "#/components/schemas/googleProtobufTimestamp" + "ipAddress": { + "type": "string", + "example": "example string" }, - "userName": { + "siteId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "siteName": { "type": "string", - "example": "example string", - "description": "creator of this Public VIF" + "example": "example string" } }, "additionalProperties": false }, - "v1DevicesDeviceIdInterfacesGetResponse": { + "v1ExtranetsMonitoringLanSegmentsGetResponse": { "type": "object", "properties": { - "interfaces": { + "vrfs": { "type": "array", "items": { - "$ref": "#/components/schemas/manaV2Interface" + "$ref": "#/components/schemas/v1ExtranetsMonitoringLanSegmentsGetResponseVrf" } - }, - "pageInfo": { - "$ref": "#/components/schemas/commonPageInfo" } }, "additionalProperties": false }, - "v1DevicesDeviceIdTwampCoreGetResponse": { + "v1ExtranetsMonitoringLanSegmentsGetResponseVrf": { "type": "object", "properties": { - "links": { - "type": "array", - "items": { - "type": "string", - "example": "example string" - } + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "name": { + "type": "string", + "example": "example string" } }, "additionalProperties": false }, - "v1DevicesDeviceIdSlicePeersGetResponse": { + "v1ExtranetsMonitoringTrafficSecurityPolicyPostRequest": { "type": "object", "properties": { - "slices": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2NetworkSlice" - } - } - }, - "additionalProperties": false - }, - "manaV2NetworkSlice": { - "type": "object", + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "isProvider": { + "type": "boolean", + "example": true + } + }, + "additionalProperties": false + }, + "v1ExtranetsMonitoringTrafficSecurityPolicyPostResponse": { + "type": "object", + "properties": { + "securityRules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2SecurityPolicyRuleRow" + } + }, + "trafficRules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2TrafficPolicyRuleRow" + } + } + }, + "additionalProperties": false + }, + "manaV2SecurityPolicyRuleRow": { + "type": "object", + "properties": { + "device": { + "$ref": "#/components/schemas/manaV2SiteDeviceStub" + }, + "securityPolicyRule": { + "$ref": "#/components/schemas/manaV2SecurityPolicyRule" + }, + "vrfName": { + "type": "string", + "example": "example string" + } + }, + "additionalProperties": false + }, + "manaV2TrafficPolicyRuleRow": { + "type": "object", + "properties": { + "device": { + "$ref": "#/components/schemas/manaV2SiteDeviceStub" + }, + "trafficPolicyRule": { + "$ref": "#/components/schemas/manaV2TrafficPolicyRule" + }, + "vrfName": { + "type": "string", + "example": "example string" + } + }, + "additionalProperties": false + }, + "v2ExtranetsMonitoringConsumersPostRequest": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + }, + "additionalProperties": false + }, + "v2ExtranetsMonitoringConsumersPostResponse": { + "type": "object", + "properties": { + "consumers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2Consumer" + } + } + }, + "additionalProperties": false + }, + "manaV2Consumer": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "name": { + "type": "string", + "example": "example string" + }, + "vrfs": { + "type": "array", + "items": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + }, + "additionalProperties": false + }, + "v1PvifPostRequest": { + "type": "object", + "properties": { + "advertisement": { + "$ref": "#/components/schemas/manaV2SiteInformation" + }, + "consumerLanSegments": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayConsumerLanDevices" + } + }, + "coveringPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Prefixes monitored for this service; empty means 0.0.0.0/0" + } + }, + "gatewayBgpNeighbors": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2BgpNeighborConfig" + } + }, + "lanSegmentId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Producer LAN segment (VRF) on gateway appliances (required)" + }, + "natPrefixStrategy": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayNatPrefixStrategy" + }, + "regionId": { + "type": "integer", + "format": "int32", + "example": 123, + "description": "Graphiant region for gateway appliances (required)" + }, + "serviceName": { + "type": "string", + "example": "example string", + "description": "Service display name (required)" + }, + "storageProvider": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Storage provider; each gateway appliance must match region and provider (required)" + } + }, + "additionalProperties": false, + "required": [ + "consumerLanSegments", + "gatewayBgpNeighbors", + "lanSegmentId", + "natPrefixStrategy", + "regionId", + "serviceName", + "storageProvider" + ] + }, + "manaV2SiteInformation": { + "type": "object", + "properties": { + "siteLists": { + "type": "array", + "items": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + }, + "sites": { + "type": "array", + "items": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + }, + "additionalProperties": false + }, + "manaV2PublicVifGatewayConsumerLanDevices": { + "type": "object", + "properties": { + "consumerPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Allow prefixes for this consumer LAN; empty means 0.0.0.0/0" + } + } + }, + "additionalProperties": false + }, + "manaV2PublicVifGatewayNatPrefixStrategy": { + "type": "object", + "properties": { + "centralized": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayCentralizedNat" + }, + "decentralized": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayDecentralizedPrefixes" + } + }, + "additionalProperties": false + }, + "manaV2PublicVifGatewayCentralizedNat": { + "type": "object", + "properties": { + "consumerPrefix": { + "type": "object", + "additionalProperties": { + "type": "string", + "example": "example string" + } + } + }, + "additionalProperties": false, + "required": [ + "consumerPrefix" + ] + }, + "manaV2PublicVifGatewayDecentralizedPrefixes": { + "type": "object", + "properties": { + "prefixes": { + "type": "object", + "additionalProperties": { + "type": "string", + "example": "example string" + } + } + }, + "additionalProperties": false, + "required": [ + "prefixes" + ] + }, + "v1PvifPostResponse": { + "type": "object", + "properties": { + "advertiseAllSites": { + "type": "boolean", + "example": true, + "description": "True when consumer scope is all symmetric sites (snapshotted on create and update); false when advertisement lists explicit sites or site lists" + }, + "advertisement": { + "$ref": "#/components/schemas/manaV2SiteInformation" + }, + "consumerLanSegments": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayConsumerLanDevices" + } + }, + "coveringPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Prefixes monitored for this service" + } + }, + "gatewayBgpNeighbors": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2BgpNeighbor" + } + }, + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Producer service id" + }, + "lanSegmentId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Producer LAN segment (VRF) id" + }, + "natPrefixStrategy": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayNatPrefixStrategy" + }, + "regionId": { + "type": "integer", + "format": "int32", + "example": 123, + "description": "Graphiant region for gateway appliances" + }, + "serviceName": { + "type": "string", + "example": "example string", + "description": "Service display name" + }, + "storageProvider": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Storage provider for gateway appliances" + } + }, + "additionalProperties": false + }, + "v1PvifIdPutRequest": { + "type": "object", + "properties": { + "configuration": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayWriteRequest" + } + }, + "additionalProperties": false, + "required": [ + "configuration" + ] + }, + "manaV2PublicVifGatewayWriteRequest": { + "type": "object", + "properties": { + "advertisement": { + "$ref": "#/components/schemas/manaV2SiteInformation" + }, + "consumerLanSegments": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayConsumerLanDevices" + } + }, + "coveringPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Prefixes monitored for this service; empty means 0.0.0.0/0" + } + }, + "gatewayBgpNeighbors": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2BgpNeighborConfig" + } + }, + "lanSegmentId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Producer LAN segment (VRF) on gateway appliances (required)" + }, + "natPrefixStrategy": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayNatPrefixStrategy" + }, + "regionId": { + "type": "integer", + "format": "int32", + "example": 123, + "description": "Graphiant region for gateway appliances (required)" + }, + "serviceName": { + "type": "string", + "example": "example string", + "description": "Service display name (required)" + }, + "storageProvider": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Storage provider; each gateway appliance must match region and provider (required)" + } + }, + "additionalProperties": false, + "required": [ + "consumerLanSegments", + "gatewayBgpNeighbors", + "lanSegmentId", + "natPrefixStrategy", + "regionId", + "serviceName", + "storageProvider" + ] + }, + "v1PvifIdPutResponse": { + "type": "object", + "properties": { + "advertiseAllSites": { + "type": "boolean", + "example": true, + "description": "True when consumer scope is all symmetric sites (snapshotted on create and update); false when advertisement lists explicit sites or site lists" + }, + "advertisement": { + "$ref": "#/components/schemas/manaV2SiteInformation" + }, + "consumerLanSegments": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayConsumerLanDevices" + } + }, + "coveringPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Prefixes monitored for this service" + } + }, + "gatewayBgpNeighbors": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2BgpNeighbor" + } + }, + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Producer service id" + }, + "lanSegmentId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Producer LAN segment (VRF) id" + }, + "natPrefixStrategy": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayNatPrefixStrategy" + }, + "regionId": { + "type": "integer", + "format": "int32", + "example": 123, + "description": "Graphiant region for gateway appliances" + }, + "serviceName": { + "type": "string", + "example": "example string", + "description": "Service display name" + }, + "storageProvider": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Storage provider for gateway appliances" + } + }, + "additionalProperties": false + }, + "v1PvifIdDeleteResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1PvifIdDetailsGetResponse": { + "type": "object", + "properties": { + "advertiseAllSites": { + "type": "boolean", + "example": true, + "description": "True when consumer scope is all symmetric sites (snapshotted on create and update); false when advertisement lists explicit sites or site lists" + }, + "advertisement": { + "$ref": "#/components/schemas/manaV2SiteInformation" + }, + "consumerLanSegments": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayConsumerLanDevices" + } + }, + "coveringPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Prefixes monitored for this service" + } + }, + "gatewayBgpNeighbors": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2BgpNeighbor" + } + }, + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Producer service id" + }, + "lanSegmentId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "Producer LAN segment (VRF) id" + }, + "natPrefixStrategy": { + "$ref": "#/components/schemas/manaV2PublicVifGatewayNatPrefixStrategy" + }, + "regionId": { + "type": "integer", + "format": "int32", + "example": 123, + "description": "Graphiant region for gateway appliances" + }, + "serviceName": { + "type": "string", + "example": "example string", + "description": "Service display name" + }, + "storageProvider": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Storage provider for gateway appliances" + } + }, + "additionalProperties": false + }, + "v1PvifSummaryGetResponse": { + "type": "object", + "properties": { + "summary": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2PublicVifSummary" + } + } + }, + "additionalProperties": false + }, + "manaV2PublicVifSummary": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "id of this Public VIF" + }, + "serviceName": { + "type": "string", + "example": "example string", + "description": "name of this Public VIF" + }, + "updatedAt": { + "$ref": "#/components/schemas/googleProtobufTimestamp" + }, + "userName": { + "type": "string", + "example": "example string", + "description": "creator of this Public VIF" + } + }, + "additionalProperties": false + }, + "v1DevicesDeviceIdInterfacesGetResponse": { + "type": "object", + "properties": { + "interfaces": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2Interface" + } + }, + "pageInfo": { + "$ref": "#/components/schemas/commonPageInfo" + } + }, + "additionalProperties": false + }, + "v1DevicesDeviceIdTwampCoreGetResponse": { + "type": "object", + "properties": { + "links": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } + } + }, + "additionalProperties": false + }, + "v1DevicesDeviceIdSlicePeersGetResponse": { + "type": "object", + "properties": { + "slices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2NetworkSlice" + } + } + }, + "additionalProperties": false + }, + "manaV2NetworkSlice": { + "type": "object", "properties": { "id": { "type": "integer", @@ -22146,28 +24002,120 @@ "hostname": { "type": "string", "example": "example string" + }, + "siteId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 } }, "additionalProperties": false }, - "v1RegionsGetResponse": { + "v1LanSegmentsInterfacesPublicGetResponse": { "type": "object", "properties": { - "regions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/manaV2Region" + "lanSegmentIds": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2LanSegmentPublicInterfacesLists" } } }, "additionalProperties": false }, - "v1LanSegmentsGetResponse": { + "manaV2LanSegmentPublicInterfacesLists": { "type": "object", "properties": { - "pageInfo": { - "$ref": "#/components/schemas/commonPageInfo" - }, + "privateInterfaces": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2LanSegmentPublicInterfaceEntry" + } + }, + "publicInterfaces": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2LanSegmentPublicInterfaceEntry" + } + } + }, + "additionalProperties": false + }, + "manaV2LanSegmentPublicInterfaceEntry": { + "type": "object", + "properties": { + "interfaceId": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "network.interface id (required)" + }, + "ipv4Addresses": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "IPv4 host/prefix strings from interface_ip_address (non-stale rows)" + } + }, + "name": { + "type": "string", + "example": "example string", + "description": "Device interface name (BGP local_interface uses this) (required)" + }, + "storageProvider": { + "type": "string", + "example": "ENUM_VALUE", + "description": "Interface storage provider (cloud provider for gateway LAN interfaces)" + } + }, + "additionalProperties": false + }, + "v1RegionsGetResponse": { + "type": "object", + "properties": { + "regions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2Region" + } + } + }, + "additionalProperties": false + }, + "v1RegionsRegionIdGatewaysGetResponse": { + "type": "object", + "properties": { + "gateways": { + "type": "array", + "items": { + "$ref": "#/components/schemas/v1RegionsRegionIdGatewaysGetResponseGateway" + } + } + }, + "additionalProperties": false + }, + "v1RegionsRegionIdGatewaysGetResponseGateway": { + "type": "object", + "properties": { + "deviceId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "hostname": { + "type": "string", + "example": "example string" + } + }, + "additionalProperties": false + }, + "v1LanSegmentsGetResponse": { + "type": "object", + "properties": { + "pageInfo": { + "$ref": "#/components/schemas/commonPageInfo" + }, "segments": { "type": "array", "items": { @@ -23129,6 +25077,9 @@ "properties": { "ipsecGatewayDetails": { "$ref": "#/components/schemas/manaV2IPsecGatewayDetails" + }, + "ipsecGatewayPeers": { + "$ref": "#/components/schemas/manaV2IPsecGatewayPeersConfig" } }, "additionalProperties": false @@ -24440,6 +26391,9 @@ "items": { "$ref": "#/components/schemas/manaV2RegionalAllocation" } + }, + "zeroTrustSummary": { + "$ref": "#/components/schemas/manaV2ZeroTrustConsumptionSummary" } }, "additionalProperties": false @@ -24706,6 +26660,18 @@ }, "additionalProperties": false }, + "manaV2ZeroTrustConsumptionSummary": { + "type": "object", + "properties": { + "userAgentCredits": { + "type": "number", + "format": "float", + "example": 12.34, + "description": "Number of devices that have been installed with the zero trust agent" + } + }, + "additionalProperties": false + }, "v1EnterpriseConfigurationPutRequest": { "type": "object", "properties": { @@ -33425,6 +35391,11 @@ }, "rolloutConfig": { "$ref": "#/components/schemas/upgradeRolloutConfig" + }, + "status": { + "type": "string", + "example": "idle", + "description": "Status of the upgrade rollout group" } }, "additionalProperties": false @@ -33616,278 +35587,1331 @@ "description": "Authentication status (returned for MFA users)" } } - }, - "v1AuthLoginTempPostRequest": { - "type": "object", - "properties": { - "email": { - "type": "string", - "example": "user@example.com" - }, - "tempPassword": { - "type": "string", - "example": "temp123456" - }, - "matchId": { - "type": "number", - "example": 12345 + }, + "v1AuthLoginTempPostRequest": { + "type": "object", + "properties": { + "email": { + "type": "string", + "example": "user@example.com" + }, + "tempPassword": { + "type": "string", + "example": "temp123456" + }, + "matchId": { + "type": "number", + "example": 12345 + } + }, + "required": [ + "email", + "tempPassword", + "matchId" + ] + }, + "v1AuthLoginCallbackPostRequest": { + "type": "object", + "properties": { + "SAMLResponse": { + "type": "string", + "example": "PHNhbWxwOlJlc3BvbnNl..." + }, + "RelayState": { + "type": "string", + "example": "information-to-relay" + } + }, + "required": [ + "SAMLResponse" + ] + }, + "v1AuthErrorPostResponse": { + "type": "object", + "properties": { + "auth": { + "type": "boolean", + "example": false + }, + "token": { + "type": "string", + "nullable": true, + "example": null + }, + "error": { + "type": "string", + "example": "email not provided" + } + }, + "required": [ + "auth", + "token", + "error" + ] + }, + "v1AuthGcsPostRequest": { + "type": "object", + "properties": { + "gcsName": { + "type": "string", + "example": "my-gcs-instance" + }, + "apiKey": { + "type": "string", + "example": "api-key-12345" + } + }, + "required": [ + "gcsName", + "apiKey" + ] + }, + "v1AuthMfaPostRequest": { + "type": "object", + "properties": { + "email": { + "type": "string", + "example": "user@example.com" + }, + "mfaType": { + "type": "string", + "example": "TOTP" + }, + "code": { + "type": "string", + "example": 123456 + }, + "stateToken": { + "type": "string", + "example": "state-token-12345" + } + }, + "required": [ + "email", + "mfaType", + "code" + ] + }, + "v1AuthRefreshGetEntryPointResponse": { + "type": "object", + "properties": { + "entryPoint": { + "type": "string", + "example": "https://saml.example.com/sso" + } + } + }, + "authPermissions": { + "type": "object", + "properties": { + "billingAndInvoicing": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read_write" + }, + "licensing": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read_write" + }, + "orderStatus": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read" + }, + "support": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read" + }, + "userAndTenantManagement": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read_write" + }, + "assetManager": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read_write" + }, + "globalServices": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read" + }, + "networkConfigurations": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read_write" + }, + "safetyAndSecurity": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read_write" + }, + "servicePolicies": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read_write" + }, + "compliance": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read" + }, + "developerTools": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read" + }, + "insights": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read_write" + }, + "logs": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read_write" + }, + "monitoringAndTroubleshooting": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read_write" + }, + "reports": { + "type": "string", + "enum": [ + "none", + "read", + "read_write" + ], + "example": "read" + } + } + } + } + }, + "security": [ + { + "jwtAuth": [] + } + ], + "paths": { + "/v2/allowlist/create": { + "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/v2AllowlistCreatePostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AllowlistCreatePostResponse" + } + } + } + } + } + } + }, + "/v2/integration/": { + "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/v2IntegrationPostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2IntegrationPostResponse" + } + } + } + } + } + } + }, + "/v2/notificationmutelist/create": { + "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/v2NotificationmutelistCreatePostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2NotificationmutelistCreatePostResponse" + } + } + } + } + } + } + }, + "/v2/notification/create": { + "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/v2NotificationCreatePostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2NotificationCreatePostResponse" + } + } + } + } + } + } + }, + "/v2/ack/createupdate": { + "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/v2AckCreateupdatePostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AckCreateupdatePostResponse" + } + } + } + } + } + } + }, + "/v2/allowlist/deletebyalertid/{alertId}": { + "delete": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "alertId", + "in": "path", + "required": true, + "description": "Alert id of the alert to delete allowlist/mutelist for", + "schema": { + "type": "string", + "example": "example string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AllowlistDeletebyalertidAlertIdDeleteResponse" + } + } + } + } + } + } + }, + "/v2/allowlist/deletebyentityid/{entityId}": { + "delete": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "entityId", + "in": "path", + "required": true, + "description": "Entity id of the alert to delete allowlist/mutelist for", + "schema": { + "type": "string", + "example": "example string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AllowlistDeletebyentityidEntityIdDeleteResponse" + } + } + } + } + } + } + }, + "/v2/integration/{integrationId}": { + "delete": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "integrationId", + "in": "path", + "required": true, + "description": "ID of the integration to be deleted", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2IntegrationIntegrationIdDeleteResponse" + } + } + } + } + } + }, + "put": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "integrationId", + "in": "path", + "required": true, + "description": "integration id", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2IntegrationIntegrationIdPutRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2IntegrationIntegrationIdPutResponse" + } + } + } + } + } + } + }, + "/v2/notificationmutelist/deletebyalertid/{alertId}": { + "delete": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "alertId", + "in": "path", + "required": true, + "description": "Alert id of the alert to delete allowlist/mutelist for", + "schema": { + "type": "string", + "example": "example string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2NotificationmutelistDeletebyalertidAlertIdDeleteResponse" + } + } + } + } + } + } + }, + "/v2/notificationmutelist/deletebyentityid/{entityId}": { + "delete": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "entityId", + "in": "path", + "required": true, + "description": "Entity id of the alert to delete allowlist/mutelist for", + "schema": { + "type": "string", + "example": "example string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2NotificationmutelistDeletebyentityidEntityIdDeleteResponse" + } + } + } + } + } + } + }, + "/v2/notification/delete": { + "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/v2NotificationDeletePostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2NotificationDeletePostResponse" + } + } + } + } + } + } + }, + "/v2/aggregated-notification/enable-disable": { + "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/v2AggregatedNotificationEnableDisablePostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AggregatedNotificationEnableDisablePostResponse" + } + } + } + } + } + } + }, + "/v2/notification/enabledisable": { + "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/v2NotificationEnabledisablePostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2NotificationEnabledisablePostResponse" + } + } + } + } + } + } + }, + "/v2/rule/enabledisable": { + "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/v2RuleEnabledisablePostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2RuleEnabledisablePostResponse" + } + } + } + } + } + } + }, + "/v2/integration/getall/{enterpriseId}": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "enterpriseId", + "in": "path", + "required": true, + "description": "Enterprise id", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2IntegrationGetallEnterpriseIdGetResponse" + } + } + } + } + } + } + }, + "/v2/childalertlist": { + "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/v2ChildalertlistPostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2ChildalertlistPostResponse" + } + } + } + } + } + } + }, + "/v2/notificationlist": { + "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/v2NotificationlistPostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2NotificationlistPostResponse" + } + } + } + } + } + } + }, + "/v2/rulelist": { + "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/v2RulelistPostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2RulelistPostResponse" + } + } + } + } + } + } + }, + "/v2/parentalertlist": { + "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/v2ParentalertlistPostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2ParentalertlistPostResponse" + } + } + } + } + } + } + }, + "/v2/aggregated-notification/get-state": { + "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/v2AggregatedNotificationGetStateGetResponse" + } + } + } + } + } + } + }, + "/v2/allowlist/{ruleId}": { + "get": { + "security": [ + { + "jwtAuth": [] } - }, - "required": [ - "email", - "tempPassword", - "matchId" - ] - }, - "v1AuthLoginCallbackPostRequest": { - "type": "object", - "properties": { - "SAMLResponse": { - "type": "string", - "example": "PHNhbWxwOlJlc3BvbnNl..." + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " }, - "RelayState": { - "type": "string", - "example": "information-to-relay" + { + "name": "ruleId", + "in": "path", + "required": true, + "description": "Alert id of the alert to retrieve allowlist/mutelist for", + "schema": { + "type": "string", + "example": "example string" + } } - }, - "required": [ - "SAMLResponse" - ] - }, - "v1AuthErrorPostResponse": { - "type": "object", - "properties": { - "auth": { - "type": "boolean", - "example": false - }, - "token": { - "type": "string", - "nullable": true, - "example": null - }, - "error": { - "type": "string", - "example": "email not provided" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AllowlistRuleIdGetResponse" + } + } + } } - }, - "required": [ - "auth", - "token", - "error" - ] - }, - "v1AuthGcsPostRequest": { - "type": "object", - "properties": { - "gcsName": { - "type": "string", - "example": "my-gcs-instance" - }, - "apiKey": { - "type": "string", - "example": "api-key-12345" + } + } + }, + "/v2/allowlist-by-enterprise": { + "get": { + "security": [ + { + "jwtAuth": [] } - }, - "required": [ - "gcsName", - "apiKey" - ] - }, - "v1AuthMfaPostRequest": { - "type": "object", - "properties": { - "email": { - "type": "string", - "example": "user@example.com" - }, - "mfaType": { - "type": "string", - "example": "TOTP" - }, - "code": { - "type": "string", - "example": 123456 - }, - "stateToken": { - "type": "string", - "example": "state-token-12345" + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " } - }, - "required": [ - "email", - "mfaType", - "code" - ] - }, - "v1AuthRefreshGetEntryPointResponse": { - "type": "object", - "properties": { - "entryPoint": { - "type": "string", - "example": "https://saml.example.com/sso" + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AllowlistByEnterpriseGetResponse" + } + } + } } } - }, - "authPermissions": { - "type": "object", - "properties": { - "billingAndInvoicing": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read_write" - }, - "licensing": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read_write" - }, - "orderStatus": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read" - }, - "support": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read" - }, - "userAndTenantManagement": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read_write" - }, - "assetManager": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read_write" - }, - "globalServices": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read" - }, - "networkConfigurations": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read_write" - }, - "safetyAndSecurity": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read_write" - }, - "servicePolicies": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read_write" - }, - "compliance": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read" - }, - "developerTools": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read" - }, - "insights": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read_write" + } + }, + "/v2/notificationmutelist/{ruleId}": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " }, - "logs": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read_write" + { + "name": "ruleId", + "in": "path", + "required": true, + "description": "Alert id of the alert to retrieve allowlist/mutelist for", + "schema": { + "type": "string", + "example": "example string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2NotificationmutelistRuleIdGetResponse" + } + } + } + } + } + } + }, + "/v2/integration/test/{enterpriseId}/{integrationId}": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " }, - "monitoringAndTroubleshooting": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read_write" + { + "name": "enterpriseId", + "in": "path", + "required": true, + "description": "Enterprise id", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } }, - "reports": { - "type": "string", - "enum": [ - "none", - "read", - "read_write" - ], - "example": "read" + { + "name": "integrationId", + "in": "path", + "required": true, + "description": "Integration id", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2IntegrationTestEnterpriseIdIntegrationIdGetResponse" + } + } + } } } } - } - }, - "security": [ - { - "jwtAuth": [] - } - ], - "paths": { - "/v2/allowlist/create": { + }, + "/v2/notification/update": { "post": { "security": [ { @@ -33910,7 +36934,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AllowlistCreatePostRequest" + "$ref": "#/components/schemas/v2NotificationUpdatePostRequest" } } } @@ -33921,7 +36945,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AllowlistCreatePostResponse" + "$ref": "#/components/schemas/v2NotificationUpdatePostResponse" } } } @@ -33929,7 +36953,7 @@ } } }, - "/v2/integration/": { + "/v2/assistant/add-to-conversation": { "post": { "security": [ { @@ -33952,7 +36976,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2IntegrationPostRequest" + "$ref": "#/components/schemas/v2AssistantAddToConversationPostRequest" } } } @@ -33963,7 +36987,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2IntegrationPostResponse" + "$ref": "#/components/schemas/v2AssistantAddToConversationPostResponse" } } } @@ -33971,7 +36995,49 @@ } } }, - "/v2/notificationmutelist/create": { + "/v2/assistant/delete-conversation-chat/{conversationId}": { + "delete": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "conversationId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "string", + "example": "example string" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AssistantDeleteConversationChatConversationIdDeleteResponse" + } + } + } + } + } + } + }, + "/v2/assistant/conversation-interface-enable-disable/": { "post": { "security": [ { @@ -33994,7 +37060,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationmutelistCreatePostRequest" + "$ref": "#/components/schemas/v2AssistantConversationInterfaceEnableDisablePostRequest" } } } @@ -34005,7 +37071,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationmutelistCreatePostResponse" + "$ref": "#/components/schemas/v2AssistantConversationInterfaceEnableDisablePostResponse" } } } @@ -34013,7 +37079,7 @@ } } }, - "/v2/notification/create": { + "/v2/assistant/conversation-context-history/": { "post": { "security": [ { @@ -34036,7 +37102,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationCreatePostRequest" + "$ref": "#/components/schemas/v2AssistantConversationContextHistoryPostRequest" } } } @@ -34047,7 +37113,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationCreatePostResponse" + "$ref": "#/components/schemas/v2AssistantConversationContextHistoryPostResponse" } } } @@ -34055,7 +37121,7 @@ } } }, - "/v2/ack/createupdate": { + "/v2/assistant/version": { "post": { "security": [ { @@ -34078,7 +37144,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AckCreateupdatePostRequest" + "$ref": "#/components/schemas/v2AssistantVersionPostRequest" } } } @@ -34089,7 +37155,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AckCreateupdatePostResponse" + "$ref": "#/components/schemas/v2AssistantVersionPostResponse" } } } @@ -34097,8 +37163,8 @@ } } }, - "/v2/allowlist/deletebyalertid/{alertId}": { - "delete": { + "/v2/assistant/conversation-interface-state/": { + "get": { "security": [ { "jwtAuth": [] @@ -34113,16 +37179,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "alertId", - "in": "path", - "required": true, - "description": "Alert id of the alert to delete allowlist/mutelist for", - "schema": { - "type": "string", - "example": "example string" - } } ], "responses": { @@ -34131,7 +37187,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AllowlistDeletebyalertidAlertIdDeleteResponse" + "$ref": "#/components/schemas/v2AssistantConversationInterfaceStateGetResponse" } } } @@ -34139,8 +37195,8 @@ } } }, - "/v2/allowlist/deletebyentityid/{entityId}": { - "delete": { + "/v2/assistant/get-conversation-details": { + "post": { "security": [ { "jwtAuth": [] @@ -34155,25 +37211,25 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "entityId", - "in": "path", - "required": true, - "description": "Entity id of the alert to delete allowlist/mutelist for", - "schema": { - "type": "string", - "example": "example string" - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AssistantGetConversationDetailsPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AllowlistDeletebyentityidEntityIdDeleteResponse" + "$ref": "#/components/schemas/v2AssistantGetConversationDetailsPostResponse" } } } @@ -34181,8 +37237,8 @@ } } }, - "/v2/integration/{integrationId}": { - "delete": { + "/v2/assistant/get-conversations": { + "post": { "security": [ { "jwtAuth": [] @@ -34197,33 +37253,34 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "integrationId", - "in": "path", - "required": true, - "description": "ID of the integration to be deleted", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AssistantGetConversationsPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2IntegrationIntegrationIdDeleteResponse" + "$ref": "#/components/schemas/v2AssistantGetConversationsPostResponse" } } } } } - }, - "put": { + } + }, + "/v2/assistant/update-conversation-name": { + "post": { "security": [ { "jwtAuth": [] @@ -34238,17 +37295,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "integrationId", - "in": "path", - "required": true, - "description": "integration id", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "requestBody": { @@ -34256,7 +37302,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2IntegrationIntegrationIdPutRequest" + "$ref": "#/components/schemas/v2AssistantUpdateConversationNamePostRequest" } } } @@ -34267,7 +37313,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2IntegrationIntegrationIdPutResponse" + "$ref": "#/components/schemas/v2AssistantUpdateConversationNamePostResponse" } } } @@ -34275,8 +37321,8 @@ } } }, - "/v2/notificationmutelist/deletebyalertid/{alertId}": { - "delete": { + "/v2/assurance/create-ai-adoption-approve-entry": { + "post": { "security": [ { "jwtAuth": [] @@ -34291,25 +37337,25 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "alertId", - "in": "path", - "required": true, - "description": "Alert id of the alert to delete allowlist/mutelist for", - "schema": { - "type": "string", - "example": "example string" - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AssuranceCreateAiAdoptionApproveEntryPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationmutelistDeletebyalertidAlertIdDeleteResponse" + "$ref": "#/components/schemas/v2AssuranceCreateAiAdoptionApproveEntryPostResponse" } } } @@ -34317,8 +37363,8 @@ } } }, - "/v2/notificationmutelist/deletebyentityid/{entityId}": { - "delete": { + "/v2/assurance/createclassifiedapplication": { + "post": { "security": [ { "jwtAuth": [] @@ -34333,25 +37379,25 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "entityId", - "in": "path", - "required": true, - "description": "Entity id of the alert to delete allowlist/mutelist for", - "schema": { - "type": "string", - "example": "example string" - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AssuranceCreateclassifiedapplicationPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationmutelistDeletebyentityidEntityIdDeleteResponse" + "$ref": "#/components/schemas/v2AssuranceCreateclassifiedapplicationPostResponse" } } } @@ -34359,7 +37405,7 @@ } } }, - "/v2/notification/delete": { + "/v2/assurance/create-dnsproxy-entry": { "post": { "security": [ { @@ -34382,7 +37428,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationDeletePostRequest" + "$ref": "#/components/schemas/v2AssuranceCreateDnsproxyEntryPostRequest" } } } @@ -34393,7 +37439,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationDeletePostResponse" + "$ref": "#/components/schemas/v2AssuranceCreateDnsproxyEntryPostResponse" } } } @@ -34401,7 +37447,7 @@ } } }, - "/v2/aggregated-notification/enable-disable": { + "/v2/assurance/create-user-report": { "post": { "security": [ { @@ -34424,7 +37470,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AggregatedNotificationEnableDisablePostRequest" + "$ref": "#/components/schemas/v2AssuranceCreateUserReportPostRequest" } } } @@ -34435,7 +37481,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AggregatedNotificationEnableDisablePostResponse" + "$ref": "#/components/schemas/v2AssuranceCreateUserReportPostResponse" } } } @@ -34443,8 +37489,8 @@ } } }, - "/v2/notification/enabledisable": { - "post": { + "/v2/assurance/delete-ai-adoption-approve-entry": { + "delete": { "security": [ { "jwtAuth": [] @@ -34459,25 +37505,33 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "idList", + "in": "query", + "description": "list of approved app entry identifiers to delete", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + }, + "example": [ + "example" + ] + }, + "style": "form", + "explode": true } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2NotificationEnabledisablePostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationEnabledisablePostResponse" + "$ref": "#/components/schemas/v2AssuranceDeleteAiAdoptionApproveEntryDeleteResponse" } } } @@ -34485,8 +37539,8 @@ } } }, - "/v2/rule/enabledisable": { - "post": { + "/v2/assurance/deleteclassifiedapplication": { + "delete": { "security": [ { "jwtAuth": [] @@ -34501,25 +37555,33 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "classificationEntryIdList", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + }, + "example": [ + "example" + ] + }, + "style": "form", + "explode": true } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2RuleEnabledisablePostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2RuleEnabledisablePostResponse" + "$ref": "#/components/schemas/v2AssuranceDeleteclassifiedapplicationDeleteResponse" } } } @@ -34527,8 +37589,8 @@ } } }, - "/v2/integration/getall/{enterpriseId}": { - "get": { + "/v2/assurance/delete-dnsproxy-entry": { + "delete": { "security": [ { "jwtAuth": [] @@ -34543,17 +37605,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "enterpriseId", - "in": "path", - "required": true, - "description": "Enterprise id", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -34562,7 +37613,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2IntegrationGetallEnterpriseIdGetResponse" + "$ref": "#/components/schemas/v2AssuranceDeleteDnsproxyEntryDeleteResponse" } } } @@ -34570,8 +37621,8 @@ } } }, - "/v2/childalertlist": { - "post": { + "/v2/assurance/delete-user-report": { + "delete": { "security": [ { "jwtAuth": [] @@ -34586,25 +37637,26 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2ChildalertlistPostRequest" - } + }, + { + "name": "reportId", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ChildalertlistPostResponse" + "$ref": "#/components/schemas/v2AssuranceDeleteUserReportDeleteResponse" } } } @@ -34612,8 +37664,8 @@ } } }, - "/v2/notificationlist": { - "post": { + "/v2/assurance/download-user-report": { + "get": { "security": [ { "jwtAuth": [] @@ -34630,23 +37682,13 @@ "description": "Bearer token. Format: Bearer " } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2NotificationlistPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationlistPostResponse" + "$ref": "#/components/schemas/v2AssuranceDownloadUserReportGetResponse" } } } @@ -34654,7 +37696,7 @@ } } }, - "/v2/rulelist": { + "/v2/assurance/ai-adoption-summary": { "post": { "security": [ { @@ -34677,7 +37719,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2RulelistPostRequest" + "$ref": "#/components/schemas/v2AssuranceAiAdoptionSummaryPostRequest" } } } @@ -34688,7 +37730,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2RulelistPostResponse" + "$ref": "#/components/schemas/v2AssuranceAiAdoptionSummaryPostResponse" } } } @@ -34696,7 +37738,7 @@ } } }, - "/v2/parentalertlist": { + "/v2/assurance/get-app-names": { "post": { "security": [ { @@ -34719,7 +37761,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ParentalertlistPostRequest" + "$ref": "#/components/schemas/v2AssuranceGetAppNamesPostRequest" } } } @@ -34730,7 +37772,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ParentalertlistPostResponse" + "$ref": "#/components/schemas/v2AssuranceGetAppNamesPostResponse" } } } @@ -34738,8 +37780,8 @@ } } }, - "/v2/aggregated-notification/get-state": { - "get": { + "/v2/assurance/applicationprofilesummary": { + "post": { "security": [ { "jwtAuth": [] @@ -34756,13 +37798,23 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AssuranceApplicationprofilesummaryPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AggregatedNotificationGetStateGetResponse" + "$ref": "#/components/schemas/v2AssuranceApplicationprofilesummaryPostResponse" } } } @@ -34770,8 +37822,8 @@ } } }, - "/v2/allowlist/{ruleId}": { - "get": { + "/v2/assurance/applicationdetailsbyname": { + "post": { "security": [ { "jwtAuth": [] @@ -34786,25 +37838,25 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "ruleId", - "in": "path", - "required": true, - "description": "Alert id of the alert to retrieve allowlist/mutelist for", - "schema": { - "type": "string", - "example": "example string" - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AssuranceApplicationdetailsbynamePostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AllowlistRuleIdGetResponse" + "$ref": "#/components/schemas/v2AssuranceApplicationdetailsbynamePostResponse" } } } @@ -34812,8 +37864,8 @@ } } }, - "/v2/allowlist-by-enterprise": { - "get": { + "/v2/assurance/bucket-app-servers": { + "post": { "security": [ { "jwtAuth": [] @@ -34830,13 +37882,23 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AssuranceBucketAppServersPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AllowlistByEnterpriseGetResponse" + "$ref": "#/components/schemas/v2AssuranceBucketAppServersPostResponse" } } } @@ -34844,8 +37906,8 @@ } } }, - "/v2/notificationmutelist/{ruleId}": { - "get": { + "/v2/assurance/bucket-apps": { + "post": { "security": [ { "jwtAuth": [] @@ -34860,25 +37922,25 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "ruleId", - "in": "path", - "required": true, - "description": "Alert id of the alert to retrieve allowlist/mutelist for", - "schema": { - "type": "string", - "example": "example string" - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AssuranceBucketAppsPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationmutelistRuleIdGetResponse" + "$ref": "#/components/schemas/v2AssuranceBucketAppsPostResponse" } } } @@ -34886,8 +37948,8 @@ } } }, - "/v2/integration/test/{enterpriseId}/{integrationId}": { - "get": { + "/v2/assurance/bucketdetails": { + "post": { "security": [ { "jwtAuth": [] @@ -34902,37 +37964,25 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "enterpriseId", - "in": "path", - "required": true, - "description": "Enterprise id", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } - }, - { - "name": "integrationId", - "in": "path", - "required": true, - "description": "Integration id", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AssuranceBucketdetailsPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2IntegrationTestEnterpriseIdIntegrationIdGetResponse" + "$ref": "#/components/schemas/v2AssuranceBucketdetailsPostResponse" } } } @@ -34940,7 +37990,7 @@ } } }, - "/v2/notification/update": { + "/v2/assurance/bucket-services": { "post": { "security": [ { @@ -34963,7 +38013,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationUpdatePostRequest" + "$ref": "#/components/schemas/v2AssuranceBucketServicesPostRequest" } } } @@ -34974,7 +38024,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2NotificationUpdatePostResponse" + "$ref": "#/components/schemas/v2AssuranceBucketServicesPostResponse" } } } @@ -34982,7 +38032,7 @@ } } }, - "/v2/assistant/add-to-conversation": { + "/v2/assurance/bucket-topologies": { "post": { "security": [ { @@ -35005,7 +38055,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantAddToConversationPostRequest" + "$ref": "#/components/schemas/v2AssuranceBucketTopologiesPostRequest" } } } @@ -35016,7 +38066,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantAddToConversationPostResponse" + "$ref": "#/components/schemas/v2AssuranceBucketTopologiesPostResponse" } } } @@ -35024,8 +38074,8 @@ } } }, - "/v2/assistant/delete-conversation-chat/{conversationId}": { - "delete": { + "/v2/assurance/getclassifiedapplicationlist": { + "get": { "security": [ { "jwtAuth": [] @@ -35040,16 +38090,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "conversationId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "string", - "example": "example string" - } } ], "responses": { @@ -35058,7 +38098,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantDeleteConversationChatConversationIdDeleteResponse" + "$ref": "#/components/schemas/v2AssuranceGetclassifiedapplicationlistGetResponse" } } } @@ -35066,7 +38106,7 @@ } } }, - "/v2/assistant/conversation-interface-enable-disable/": { + "/v2/assurance/enterprisesummary": { "post": { "security": [ { @@ -35089,7 +38129,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantConversationInterfaceEnableDisablePostRequest" + "$ref": "#/components/schemas/v2AssuranceEnterprisesummaryPostRequest" } } } @@ -35100,7 +38140,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantConversationInterfaceEnableDisablePostResponse" + "$ref": "#/components/schemas/v2AssuranceEnterprisesummaryPostResponse" } } } @@ -35108,7 +38148,7 @@ } } }, - "/v2/assistant/conversation-context-history/": { + "/v2/assurance/scoredetails": { "post": { "security": [ { @@ -35131,7 +38171,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantConversationContextHistoryPostRequest" + "$ref": "#/components/schemas/v2AssuranceScoredetailsPostRequest" } } } @@ -35142,7 +38182,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantConversationContextHistoryPostResponse" + "$ref": "#/components/schemas/v2AssuranceScoredetailsPostResponse" } } } @@ -35150,7 +38190,7 @@ } } }, - "/v2/assistant/version": { + "/v2/assurance/topology-client-session-details": { "post": { "security": [ { @@ -35173,7 +38213,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantVersionPostRequest" + "$ref": "#/components/schemas/v2AssuranceTopologyClientSessionDetailsPostRequest" } } } @@ -35184,39 +38224,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantVersionPostResponse" - } - } - } - } - } - } - }, - "/v2/assistant/conversation-interface-state/": { - "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/v2AssistantConversationInterfaceStateGetResponse" + "$ref": "#/components/schemas/v2AssuranceTopologyClientSessionDetailsPostResponse" } } } @@ -35224,7 +38232,7 @@ } } }, - "/v2/assistant/get-conversation-details": { + "/v2/assurance/topology-client-sessions": { "post": { "security": [ { @@ -35247,7 +38255,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantGetConversationDetailsPostRequest" + "$ref": "#/components/schemas/v2AssuranceTopologyClientSessionsPostRequest" } } } @@ -35258,7 +38266,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantGetConversationDetailsPostResponse" + "$ref": "#/components/schemas/v2AssuranceTopologyClientSessionsPostResponse" } } } @@ -35266,7 +38274,7 @@ } } }, - "/v2/assistant/get-conversations": { + "/v2/assurance/topology-client-summaries": { "post": { "security": [ { @@ -35289,7 +38297,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantGetConversationsPostRequest" + "$ref": "#/components/schemas/v2AssuranceTopologyClientSummariesPostRequest" } } } @@ -35300,7 +38308,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantGetConversationsPostResponse" + "$ref": "#/components/schemas/v2AssuranceTopologyClientSummariesPostResponse" } } } @@ -35308,7 +38316,7 @@ } } }, - "/v2/assistant/update-conversation-name": { + "/v2/assurance/topology-inventory": { "post": { "security": [ { @@ -35331,7 +38339,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantUpdateConversationNamePostRequest" + "$ref": "#/components/schemas/v2AssuranceTopologyInventoryPostRequest" } } } @@ -35342,7 +38350,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssistantUpdateConversationNamePostResponse" + "$ref": "#/components/schemas/v2AssuranceTopologyInventoryPostResponse" } } } @@ -35350,7 +38358,7 @@ } } }, - "/v2/assurance/createclassifiedapplication": { + "/v2/assurance/topology-overview": { "post": { "security": [ { @@ -35373,7 +38381,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceCreateclassifiedapplicationPostRequest" + "$ref": "#/components/schemas/v2AssuranceTopologyOverviewPostRequest" } } } @@ -35384,7 +38392,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceCreateclassifiedapplicationPostResponse" + "$ref": "#/components/schemas/v2AssuranceTopologyOverviewPostResponse" } } } @@ -35392,7 +38400,7 @@ } } }, - "/v2/assurance/create-dnsproxy-entry": { + "/v2/assurance/topology-region-summary": { "post": { "security": [ { @@ -35415,7 +38423,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceCreateDnsproxyEntryPostRequest" + "$ref": "#/components/schemas/v2AssuranceTopologyRegionSummaryPostRequest" } } } @@ -35426,7 +38434,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceCreateDnsproxyEntryPostResponse" + "$ref": "#/components/schemas/v2AssuranceTopologyRegionSummaryPostResponse" } } } @@ -35434,7 +38442,7 @@ } } }, - "/v2/assurance/create-user-report": { + "/v2/assurance/topology-site-summaries": { "post": { "security": [ { @@ -35457,7 +38465,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceCreateUserReportPostRequest" + "$ref": "#/components/schemas/v2AssuranceTopologySiteSummariesPostRequest" } } } @@ -35468,7 +38476,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceCreateUserReportPostResponse" + "$ref": "#/components/schemas/v2AssuranceTopologySiteSummariesPostResponse" } } } @@ -35476,8 +38484,8 @@ } } }, - "/v2/assurance/deleteclassifiedapplication": { - "delete": { + "/v2/assurance/unclassifiedapplicationprofilesummary": { + "post": { "security": [ { "jwtAuth": [] @@ -35492,33 +38500,25 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "classificationEntryIdList", - "in": "query", - "description": "", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string", - "example": "example string" - }, - "example": [ - "example" - ] - }, - "style": "form", - "explode": true } - ], + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2AssuranceUnclassifiedapplicationprofilesummaryPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceDeleteclassifiedapplicationDeleteResponse" + "$ref": "#/components/schemas/v2AssuranceUnclassifiedapplicationprofilesummaryPostResponse" } } } @@ -35526,8 +38526,8 @@ } } }, - "/v2/assurance/delete-dnsproxy-entry": { - "delete": { + "/v2/assurance/read-ai-adoption-approve-entries": { + "get": { "security": [ { "jwtAuth": [] @@ -35550,7 +38550,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceDeleteDnsproxyEntryDeleteResponse" + "$ref": "#/components/schemas/v2AssuranceReadAiAdoptionApproveEntriesGetResponse" } } } @@ -35558,8 +38558,8 @@ } } }, - "/v2/assurance/delete-user-report": { - "delete": { + "/v2/assurance/read-dnsproxy-list": { + "get": { "security": [ { "jwtAuth": [] @@ -35574,17 +38574,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "reportId", - "in": "query", - "description": "", - "required": false, - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -35593,7 +38582,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceDeleteUserReportDeleteResponse" + "$ref": "#/components/schemas/v2AssuranceReadDnsproxyListGetResponse" } } } @@ -35601,7 +38590,7 @@ } } }, - "/v2/assurance/download-user-report": { + "/v2/assurance/read-user-report-list": { "get": { "security": [ { @@ -35625,7 +38614,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceDownloadUserReportGetResponse" + "$ref": "#/components/schemas/v2AssuranceReadUserReportListGetResponse" } } } @@ -35633,7 +38622,7 @@ } } }, - "/v2/assurance/applicationprofilesummary": { + "/v2/assurance/update-ai-adoption-approve-entry": { "post": { "security": [ { @@ -35656,7 +38645,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceApplicationprofilesummaryPostRequest" + "$ref": "#/components/schemas/v2AssuranceUpdateAiAdoptionApproveEntryPostRequest" } } } @@ -35667,7 +38656,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceApplicationprofilesummaryPostResponse" + "$ref": "#/components/schemas/v2AssuranceUpdateAiAdoptionApproveEntryPostResponse" } } } @@ -35675,7 +38664,7 @@ } } }, - "/v2/assurance/applicationdetailsbyname": { + "/v2/assurance/updateclassifiedapplication": { "post": { "security": [ { @@ -35698,7 +38687,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceApplicationdetailsbynamePostRequest" + "$ref": "#/components/schemas/v2AssuranceUpdateclassifiedapplicationPostRequest" } } } @@ -35709,7 +38698,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceApplicationdetailsbynamePostResponse" + "$ref": "#/components/schemas/v2AssuranceUpdateclassifiedapplicationPostResponse" } } } @@ -35717,7 +38706,7 @@ } } }, - "/v2/assurance/bucket-app-servers": { + "/v2/assurance/update-dnsproxy-entry": { "post": { "security": [ { @@ -35740,7 +38729,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceBucketAppServersPostRequest" + "$ref": "#/components/schemas/v2AssuranceUpdateDnsproxyEntryPostRequest" } } } @@ -35751,7 +38740,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceBucketAppServersPostResponse" + "$ref": "#/components/schemas/v2AssuranceUpdateDnsproxyEntryPostResponse" } } } @@ -35759,7 +38748,7 @@ } } }, - "/v2/assurance/bucket-apps": { + "/v1/activity/logs": { "post": { "security": [ { @@ -35782,7 +38771,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceBucketAppsPostRequest" + "$ref": "#/components/schemas/v1ActivityLogsPostRequest" } } } @@ -35793,7 +38782,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceBucketAppsPostResponse" + "$ref": "#/components/schemas/v1ActivityLogsPostResponse" } } } @@ -35801,7 +38790,7 @@ } } }, - "/v2/assurance/bucketdetails": { + "/v1/audit/logs": { "post": { "security": [ { @@ -35824,7 +38813,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceBucketdetailsPostRequest" + "$ref": "#/components/schemas/v1AuditLogsPostRequest" } } } @@ -35835,7 +38824,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceBucketdetailsPostResponse" + "$ref": "#/components/schemas/v1AuditLogsPostResponse" } } } @@ -35843,7 +38832,7 @@ } } }, - "/v2/assurance/bucket-services": { + "/v2/audit/logs": { "post": { "security": [ { @@ -35866,7 +38855,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceBucketServicesPostRequest" + "$ref": "#/components/schemas/v2AuditLogsPostRequest" } } } @@ -35877,7 +38866,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceBucketServicesPostResponse" + "$ref": "#/components/schemas/v2AuditLogsPostResponse" } } } @@ -35885,8 +38874,8 @@ } } }, - "/v2/assurance/bucket-topologies": { - "post": { + "/v1/ztagent/agents": { + "get": { "security": [ { "jwtAuth": [] @@ -35901,33 +38890,134 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2AssuranceBucketTopologiesPostRequest" - } + }, + { + "name": "createdDateEnd", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "string", + "example": "example string" + } + }, + { + "name": "createdDateStart", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "string", + "example": "example string" + } + }, + { + "name": "endpoints", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + }, + "example": [ + "example" + ] + }, + "style": "form", + "explode": true + }, + { + "name": "hostname", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "string", + "example": "example string" + } + }, + { + "name": "limit", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "example": 123 + } + }, + { + "name": "machineId", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "string", + "example": "example string" + } + }, + { + "name": "page", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "example": 123 + } + }, + { + "name": "tenantId", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "string", + "example": "example string" + } + }, + { + "name": "updatedDateEnd", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "string", + "example": "example string" + } + }, + { + "name": "updatedDateStart", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "string", + "example": "example string" } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceBucketTopologiesPostResponse" + "$ref": "#/components/schemas/v1ZtagentAgentsGetResponse" } } } } - } + }, + "description": "List Conceal agents (devices) with pagination and filters." } }, - "/v2/assurance/getclassifiedapplicationlist": { + "/v1/ztagent/bindings": { "get": { "security": [ { @@ -35943,6 +39033,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "enterpriseId", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -35951,16 +39052,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceGetclassifiedapplicationlistGetResponse" + "$ref": "#/components/schemas/v1ZtagentBindingsGetResponse" } } } } - } - } - }, - "/v2/assurance/enterprisesummary": { - "post": { + }, + "description": "Return the ZTAgent integration binding for an enterprise." + }, + "put": { "security": [ { "jwtAuth": [] @@ -35982,7 +39082,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceEnterprisesummaryPostRequest" + "$ref": "#/components/schemas/v1ZtagentBindingsPutRequest" } } } @@ -35993,16 +39093,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceEnterprisesummaryPostResponse" + "$ref": "#/components/schemas/v1ZtagentBindingsPutResponse" } } } } - } + }, + "description": "Create or replace the ZTAgent integration binding for an enterprise (site and customer identifiers)." } }, - "/v2/assurance/scoredetails": { - "post": { + "/v1/devices/{deviceId}/jobs/{jobId}": { + "get": { "security": [ { "jwtAuth": [] @@ -36017,34 +39118,48 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2AssuranceScoredetailsPostRequest" - } + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 } + }, + { + "name": "jobId", + "in": "path", + "required": true, + "description": "id of the job as received from the Enqueue* calls.", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 1234 } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceScoredetailsPostResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdJobsJobIdGetResponse" } } } } - } + }, + "description": "Get device job status" } }, - "/v2/assurance/topology-client-session-details": { - "post": { + "/v1/diagnostic/clear-arp/{deviceId}": { + "put": { "security": [ { "jwtAuth": [] @@ -36059,6 +39174,18 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "Unique identifier for a specific device", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 1000000 } ], "requestBody": { @@ -36066,26 +39193,20 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyClientSessionDetailsPostRequest" + "$ref": "#/components/schemas/v1DiagnosticClearArpDeviceIdPutRequest" } } } }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyClientSessionDetailsPostResponse" - } - } - } + "204": { + "description": "No Content" } - } + }, + "description": "Clear arp entries" } }, - "/v2/assurance/topology-client-sessions": { + "/v1/diagnostic/archive-create/{deviceId}": { "post": { "security": [ { @@ -36101,6 +39222,18 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "Valid Provisioned device ID", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 1000000 } ], "requestBody": { @@ -36108,27 +39241,66 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyClientSessionsPostRequest" + "$ref": "#/components/schemas/v1DiagnosticArchiveCreateDeviceIdPostRequest" } } } }, "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyClientSessionsPostResponse" + "$ref": "#/components/schemas/v1DiagnosticArchiveCreateDeviceIdPostResponse" } } } } - } + }, + "description": "Create a device debug archive" } }, - "/v2/assurance/topology-client-summaries": { - "post": { + "/v1/diagnostic/archive-delete/{archiveId}": { + "delete": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "archiveId", + "in": "path", + "required": true, + "description": "Unique identifier for a specific archive", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 1000000 + } + ], + "responses": { + "204": { + "description": "No Content" + } + }, + "description": "Delete a device debug archive" + } + }, + "/v1/diagnostic/archive-edit/{archiveId}": { + "put": { "security": [ { "jwtAuth": [] @@ -36143,6 +39315,18 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "archiveId", + "in": "path", + "required": true, + "description": "Unique identifier for a specific archive", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 1000000 } ], "requestBody": { @@ -36150,27 +39334,67 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyClientSummariesPostRequest" + "$ref": "#/components/schemas/v1DiagnosticArchiveEditArchiveIdPutRequest" } } } }, + "responses": { + "204": { + "description": "No Content" + } + }, + "description": "Edit metadata for a previously generated device debug archive" + } + }, + "/v1/diagnostic/gnmi-ping": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "query", + "description": "Device Id", + "required": true, + "schema": { + "type": "integer", + "format": "int64", + "example": 12345678910, + "minimum": 0 + }, + "example": 30000022569 + } + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyClientSummariesPostResponse" + "$ref": "#/components/schemas/v1DiagnosticGnmiPingGetResponse" } } } } - } + }, + "description": "perform GNMI ping test" } }, - "/v2/assurance/topology-inventory": { - "post": { + "/v1/diagnostic/archives/{deviceId}": { + "get": { "security": [ { "jwtAuth": [] @@ -36185,34 +39409,37 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "Valid Provisioned device ID", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 1000000 } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyInventoryPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyInventoryPostResponse" + "$ref": "#/components/schemas/v1DiagnosticArchivesDeviceIdGetResponse" } } } } - } + }, + "description": "Get a list of device debug archive collections" } }, - "/v2/assurance/topology-overview": { - "post": { + "/v1/diagnostic/otp/{deviceId}": { + "get": { "security": [ { "jwtAuth": [] @@ -36227,34 +39454,82 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "Unique identifier for a specific device", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 1000000 } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyOverviewPostRequest" + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1DiagnosticOtpDeviceIdGetResponse" + } } } } }, + "description": "Get a one-time passcode to access a device" + } + }, + "/v1/diagnostic/packetcapture/{pcapId}": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "pcapId", + "in": "path", + "required": true, + "description": "Unique identifier for a specific packet capture", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 1000000 + } + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyOverviewPostResponse" + "$ref": "#/components/schemas/v1DiagnosticPacketcapturePcapIdGetResponse" } } } } - } + }, + "description": "get a packet capture" } }, - "/v2/assurance/topology-region-summary": { - "post": { + "/v1/diagnostic/speedtest-providers": { + "get": { "security": [ { "jwtAuth": [] @@ -36271,32 +39546,23 @@ "description": "Bearer token. Format: Bearer " } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyRegionSummaryPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologyRegionSummaryPostResponse" + "$ref": "#/components/schemas/v1DiagnosticSpeedtestProvidersGetResponse" } } } } - } + }, + "description": "Get list of supported speedtest service providers" } }, - "/v2/assurance/topology-site-summaries": { - "post": { + "/v1/diagnostic/speedtest-servers": { + "get": { "security": [ { "jwtAuth": [] @@ -36311,33 +39577,59 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "query", + "description": "Unique identifier for a specific device", + "required": true, + "schema": { + "type": "integer", + "format": "int64", + "example": 12345678910, + "minimum": 0 + }, + "example": 30000000555 + }, + { + "name": "provider", + "in": "query", + "description": "supported provider for speedtest utility", + "required": true, + "schema": { + "type": "string", + "example": "ENUM_VALUE" + }, + "example": "ookla" + }, + { + "name": "vrfName", + "in": "query", + "description": "Configured Wan Circuit Name", + "required": true, + "schema": { + "type": "string", + "example": "example string" + }, + "example": "c-gigabitethernet1" } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologySiteSummariesPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceTopologySiteSummariesPostResponse" + "$ref": "#/components/schemas/v1DiagnosticSpeedtestServersGetResponse" } } } } - } + }, + "description": "Get list of servers for a provider" } }, - "/v2/assurance/unclassifiedapplicationprofilesummary": { + "/v1/diagnostic/packetcapture-start": { "post": { "security": [ { @@ -36360,27 +39652,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceUnclassifiedapplicationprofilesummaryPostRequest" + "$ref": "#/components/schemas/v1DiagnosticPacketcaptureStartPostRequest" } } } }, "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceUnclassifiedapplicationprofilesummaryPostResponse" + "$ref": "#/components/schemas/v1DiagnosticPacketcaptureStartPostResponse" } } } } - } + }, + "description": "Start packet capture" } }, - "/v2/assurance/read-dnsproxy-list": { - "get": { + "/v1/diagnostic/packetcapture-stop": { + "post": { "security": [ { "jwtAuth": [] @@ -36397,22 +39690,26 @@ "description": "Bearer token. Format: Bearer " } ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2AssuranceReadDnsproxyListGetResponse" - } + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1DiagnosticPacketcaptureStopPostRequest" } } } - } + }, + "responses": { + "204": { + "description": "No Content" + } + }, + "description": "Stop packet capture" } }, - "/v2/assurance/read-user-report-list": { - "get": { + "/v1/diagnostic/reboot/{deviceId}": { + "put": { "security": [ { "jwtAuth": [] @@ -36427,38 +39724,19 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2AssuranceReadUserReportListGetResponse" - } - } - } - } - } - } - }, - "/v2/assurance/updateclassifiedapplication": { - "post": { - "security": [ - { - "jwtAuth": [] - } - ], - "parameters": [ + }, { - "in": "header", - "name": "Authorization", + "name": "deviceId", + "in": "path", "required": true, + "description": "Valid Provisioned device ID", "schema": { - "type": "string" + "type": "integer", + "format": "int64", + "example": 12345678910, + "minimum": 0 }, - "description": "Bearer token. Format: Bearer " + "example": 1000000 } ], "requestBody": { @@ -36466,27 +39744,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceUpdateclassifiedapplicationPostRequest" + "$ref": "#/components/schemas/v1DiagnosticRebootDeviceIdPutRequest" } } } }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2AssuranceUpdateclassifiedapplicationPostResponse" - } - } - } + "204": { + "description": "No Content" } - } + }, + "description": "Trigger a device reboot" } }, - "/v2/assurance/update-dnsproxy-entry": { - "post": { + "/v1/diagnostic/bgp-reset/{deviceId}": { + "put": { "security": [ { "jwtAuth": [] @@ -36501,6 +39773,18 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "Unique identifier for a specific device", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 1000000 } ], "requestBody": { @@ -36508,27 +39792,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AssuranceUpdateDnsproxyEntryPostRequest" + "$ref": "#/components/schemas/v1DiagnosticBgpResetDeviceIdPutRequest" } } } }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2AssuranceUpdateDnsproxyEntryPostResponse" - } - } - } + "204": { + "description": "No Content" } - } + }, + "description": "Reset a BGP neighbor" } }, - "/v1/activity/logs": { - "post": { + "/v1/diagnostic/reset-ipsec-session/{deviceId}": { + "put": { "security": [ { "jwtAuth": [] @@ -36543,6 +39821,18 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "Unique identifier for a specific device", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 1000000 } ], "requestBody": { @@ -36550,27 +39840,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ActivityLogsPostRequest" + "$ref": "#/components/schemas/v1DiagnosticResetIpsecSessionDeviceIdPutRequest" } } } }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1ActivityLogsPostResponse" - } - } - } + "204": { + "description": "No Content" } - } + }, + "description": "Reset IPSec sessions" } }, - "/v1/audit/logs": { - "post": { + "/v1/diagnostic/interface-reset/{deviceId}": { + "put": { "security": [ { "jwtAuth": [] @@ -36585,6 +39869,18 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "Unique identifier for a specific device", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 1000000 } ], "requestBody": { @@ -36592,27 +39888,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AuditLogsPostRequest" + "$ref": "#/components/schemas/v1DiagnosticInterfaceResetDeviceIdPutRequest" } } } }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1AuditLogsPostResponse" - } - } - } + "204": { + "description": "No Content" } - } + }, + "description": "Reset an interface" } }, - "/v2/audit/logs": { - "post": { + "/v1/diagnostic/speedtest-report": { + "put": { "security": [ { "jwtAuth": [] @@ -36634,7 +39924,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AuditLogsPostRequest" + "$ref": "#/components/schemas/v1DiagnosticSpeedtestReportPutRequest" } } } @@ -36645,16 +39935,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2AuditLogsPostResponse" + "$ref": "#/components/schemas/v1DiagnosticSpeedtestReportPutResponse" } } } } - } + }, + "description": "Generate a speedtest history report" } }, - "/v1/ztagent/bindings": { - "get": { + "/v1/diagnostic/ping": { + "post": { "security": [ { "jwtAuth": [] @@ -36669,34 +39960,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "enterpriseId", - "in": "query", - "description": "", - "required": false, - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1DiagnosticPingPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ZtagentBindingsGetResponse" + "$ref": "#/components/schemas/v1DiagnosticPingPostResponse" } } } } }, - "description": "Return the ZTAgent integration binding for an enterprise." - }, - "put": { + "description": "Trigger a diagnostic test" + } + }, + "/v1/diagnostic/traceroute": { + "post": { "security": [ { "jwtAuth": [] @@ -36718,7 +40010,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ZtagentBindingsPutRequest" + "$ref": "#/components/schemas/v1DiagnosticTraceroutePostRequest" } } } @@ -36729,17 +40021,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ZtagentBindingsPutResponse" + "$ref": "#/components/schemas/v1DiagnosticTraceroutePostResponse" } } } } }, - "description": "Create or replace the ZTAgent integration binding for an enterprise (site and customer identifiers)." + "description": "Trigger a diagnostic test" } }, - "/v1/devices/{deviceId}/jobs/{jobId}": { - "get": { + "/v1/diagnostic/speedtest": { + "post": { "security": [ { "jwtAuth": [] @@ -36754,48 +40046,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "deviceId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } - }, - { - "name": "jobId", - "in": "path", - "required": true, - "description": "id of the job as received from the Enqueue* calls.", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": 1234 } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1DiagnosticSpeedtestPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdJobsJobIdGetResponse" + "$ref": "#/components/schemas/v1DiagnosticSpeedtestPostResponse" } } } } }, - "description": "Get device job status" + "description": "Trigger Speedtest utility" } }, - "/v1/diagnostic/clear-arp/{deviceId}": { - "put": { + "/v1/diagnostic/ping-stop/{token}": { + "post": { "security": [ { "jwtAuth": [] @@ -36812,16 +40091,14 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "token", "in": "path", "required": true, - "description": "Unique identifier for a specific device", + "description": "Identifier which was received in initial response", "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": 1000000 + "type": "string", + "example": "example string" + } } ], "requestBody": { @@ -36829,7 +40106,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticClearArpDeviceIdPutRequest" + "$ref": "#/components/schemas/v1DiagnosticPingStopTokenPostRequest" } } } @@ -36839,37 +40116,32 @@ "description": "No Content" } }, - "description": "Clear arp entries" + "description": "Stop ping session" } }, - "/v1/diagnostic/archive-create/{deviceId}": { - "post": { - "security": [ - { - "jwtAuth": [] - } - ], + "/v1/users/{email}/password": { + "patch": { + "description": "Change password for a user using email and token", "parameters": [ { - "in": "header", - "name": "Authorization", + "in": "path", + "name": "email", "required": true, "schema": { - "type": "string" + "type": "string", + "example": "user@example.com" }, - "description": "Bearer token. Format: Bearer " + "description": "User email address" }, { - "name": "deviceId", - "in": "path", + "in": "query", + "name": "token", "required": true, - "description": "Valid Provisioned device ID", "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "type": "string", + "example": "verification-token-12345" }, - "example": 1000000 + "description": "Password reset token" } ], "requestBody": { @@ -36877,66 +40149,98 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticArchiveCreateDeviceIdPostRequest" + "$ref": "#/components/schemas/v1UsersEmailPasswordPatchRequest" } } } }, "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticArchiveCreateDeviceIdPostResponse" - } - } - } + "204": { + "description": "Password changed successfully" + }, + "400": { + "description": "Bad request - Invalid input" + }, + "403": { + "description": "Forbidden - Invalid token" + }, + "500": { + "description": "Internal server error" } - }, - "description": "Create a device debug archive" + } } }, - "/v1/diagnostic/archive-delete/{archiveId}": { - "delete": { - "security": [ + "/v1/users/{email}/recovery": { + "get": { + "description": "Send password recovery email to user", + "parameters": [ { - "jwtAuth": [] + "in": "path", + "name": "email", + "required": true, + "schema": { + "type": "string", + "example": "user@example.com" + }, + "description": "User email address" } ], + "responses": { + "200": { + "description": "Recovery email sent successfully" + }, + "400": { + "description": "Bad request - Invalid email" + }, + "500": { + "description": "Internal server error" + } + } + } + }, + "/v1/users/{email}/verified": { + "patch": { + "description": "Verify user email using verification token", "parameters": [ { - "in": "header", - "name": "Authorization", + "in": "path", + "name": "email", "required": true, "schema": { - "type": "string" + "type": "string", + "example": "user@example.com" }, - "description": "Bearer token. Format: Bearer " + "description": "User email address" }, { - "name": "archiveId", - "in": "path", + "in": "query", + "name": "token", "required": true, - "description": "Unique identifier for a specific archive", "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "type": "string", + "example": "verification-token-12345" }, - "example": 1000000 + "description": "Email verification token" } ], "responses": { "204": { - "description": "No Content" + "description": "User email verified successfully" + }, + "400": { + "description": "Bad request - Invalid input" + }, + "403": { + "description": "Forbidden - Invalid token" + }, + "500": { + "description": "Internal server error" } - }, - "description": "Delete a device debug archive" + } } }, - "/v1/diagnostic/archive-edit/{archiveId}": { - "put": { + "/v1/enterprises/eula": { + "post": { "security": [ { "jwtAuth": [] @@ -36945,24 +40249,12 @@ "parameters": [ { "in": "header", - "name": "Authorization", - "required": true, - "schema": { - "type": "string" - }, - "description": "Bearer token. Format: Bearer " - }, - { - "name": "archiveId", - "in": "path", + "name": "Authorization", "required": true, - "description": "Unique identifier for a specific archive", "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "type": "string" }, - "example": 1000000 + "description": "Bearer token. Format: Bearer " } ], "requestBody": { @@ -36970,7 +40262,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticArchiveEditArchiveIdPutRequest" + "$ref": "#/components/schemas/v1EnterprisesEulaPostRequest" } } } @@ -36980,11 +40272,11 @@ "description": "No Content" } }, - "description": "Edit metadata for a previously generated device debug archive" + "description": "Accept End User License Agreement for the enterprise." } }, - "/v1/diagnostic/gnmi-ping": { - "get": { + "/v1/groups/{id}/enterprises": { + "post": { "security": [ { "jwtAuth": [] @@ -37001,36 +40293,36 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", - "in": "query", - "description": "Device Id", + "name": "id", + "in": "path", "required": true, + "description": "", "schema": { - "type": "integer", - "format": "int64", - "example": 12345678910, - "minimum": 0 - }, - "example": 30000022569 + "type": "string", + "example": "example string" + } } ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticGnmiPingGetResponse" - } + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GroupsIdEnterprisesPostRequest" } } } }, - "description": "perform GNMI ping test" + "responses": { + "204": { + "description": "No Content" + } + }, + "description": "Associate group with additional enterprises to enable cross-enterprise access and management." } }, - "/v1/diagnostic/archives/{deviceId}": { - "get": { + "/v1/groups/{id}/members": { + "post": { "security": [ { "jwtAuth": [] @@ -37047,34 +40339,33 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "id", "in": "path", "required": true, - "description": "Valid Provisioned device ID", + "description": "", "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": 1000000 + "type": "string", + "example": "example string" + } } ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticArchivesDeviceIdGetResponse" - } + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GroupsIdMembersPostRequest" } } } }, - "description": "Get a list of device debug archive collections" - } - }, - "/v1/diagnostic/otp/{deviceId}": { + "responses": { + "204": { + "description": "No Content" + } + }, + "description": "Add multiple users to a group by their global IDs." + }, "get": { "security": [ { @@ -37092,16 +40383,14 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "id", "in": "path", "required": true, - "description": "Unique identifier for a specific device", + "description": "", "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": 1000000 + "type": "string", + "example": "example string" + } } ], "responses": { @@ -37110,17 +40399,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticOtpDeviceIdGetResponse" + "$ref": "#/components/schemas/v1GroupsIdMembersGetResponse" } } } } }, - "description": "Get a one-time passcode to access a device" + "description": "Get all members of a specific group." } }, - "/v1/diagnostic/packetcapture/{pcapId}": { - "get": { + "/v1/account/mfa/confirmation": { + "post": { "security": [ { "jwtAuth": [] @@ -37135,37 +40424,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "pcapId", - "in": "path", - "required": true, - "description": "Unique identifier for a specific packet capture", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": 1000000 } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1AccountMfaConfirmationPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticPacketcapturePcapIdGetResponse" + "$ref": "#/components/schemas/v1AccountMfaConfirmationPostResponse" } } } } }, - "description": "get a packet capture" + "description": "Confirm MFA type change with verification code." } }, - "/v1/diagnostic/speedtest-providers": { - "get": { + "/v1/enterprises": { + "put": { "security": [ { "jwtAuth": [] @@ -37182,22 +40469,23 @@ "description": "Bearer token. Format: Bearer " } ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticSpeedtestProvidersGetResponse" - } + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1EnterprisesPutRequest" } } } }, - "description": "Get list of supported speedtest service providers" - } - }, - "/v1/diagnostic/speedtest-servers": { + "responses": { + "204": { + "description": "No Content" + } + }, + "description": "Create a new enterprise with company details, account type, and admin user. MSP callers creating a managed enterprise supply pool credit allocation fields (allocated_credits and optional term end)." + }, "get": { "security": [ { @@ -37215,39 +40503,23 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", - "in": "query", - "description": "Unique identifier for a specific device", - "required": true, - "schema": { - "type": "integer", - "format": "int64", - "example": 12345678910, - "minimum": 0 - }, - "example": 30000000555 - }, - { - "name": "provider", - "in": "query", - "description": "supported provider for speedtest utility", - "required": true, - "schema": { - "type": "string", - "example": "ENUM_VALUE" - }, - "example": "ookla" - }, - { - "name": "vrfName", + "name": "enterpriseIds", "in": "query", - "description": "Configured Wan Circuit Name", - "required": true, + "description": "Lists enterprises", + "required": false, "schema": { - "type": "string", - "example": "example string" + "type": "array", + "items": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": [ + 0 + ] }, - "example": "c-gigabitethernet1" + "style": "form", + "explode": true } ], "responses": { @@ -37256,17 +40528,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticSpeedtestServersGetResponse" + "$ref": "#/components/schemas/v1EnterprisesGetResponse" } } } } }, - "description": "Get list of servers for a provider" - } - }, - "/v1/diagnostic/packetcapture-start": { - "post": { + "description": "Get specific enterprises by their IDs with detailed information. Query just your own enterprise Id for more detailed info." + }, + "patch": { "security": [ { "jwtAuth": [] @@ -37288,28 +40558,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticPacketcaptureStartPostRequest" + "$ref": "#/components/schemas/v1EnterprisesPatchRequest" } } } }, "responses": { - "201": { - "description": "Created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticPacketcaptureStartPostResponse" - } - } - } + "204": { + "description": "No Content" } }, - "description": "Start packet capture" + "description": "Updates all relevent enterprise information." } }, - "/v1/diagnostic/packetcapture-stop": { - "post": { + "/v1/groups": { + "put": { "security": [ { "jwtAuth": [] @@ -37331,7 +40594,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticPacketcaptureStopPostRequest" + "$ref": "#/components/schemas/v1GroupsPutRequest" } } } @@ -37341,11 +40604,9 @@ "description": "No Content" } }, - "description": "Stop packet capture" - } - }, - "/v1/diagnostic/reboot/{deviceId}": { - "put": { + "description": "Create a new group with and set permissions. Set group's enterprise management capabilities (msp only)." + }, + "get": { "security": [ { "jwtAuth": [] @@ -37360,40 +40621,24 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "deviceId", - "in": "path", - "required": true, - "description": "Valid Provisioned device ID", - "schema": { - "type": "integer", - "format": "int64", - "example": 12345678910, - "minimum": 0 - }, - "example": 1000000 } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticRebootDeviceIdPutRequest" + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GroupsGetResponse" + } } } } }, - "responses": { - "204": { - "description": "No Content" - } - }, - "description": "Trigger a device reboot" + "description": "Get all groups in the enterprise." } }, - "/v1/diagnostic/bgp-reset/{deviceId}": { + "/v1/auth": { "put": { "security": [ { @@ -37409,18 +40654,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "deviceId", - "in": "path", - "required": true, - "description": "Unique identifier for a specific device", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": 1000000 } ], "requestBody": { @@ -37428,7 +40661,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticBgpResetDeviceIdPutRequest" + "$ref": "#/components/schemas/v1AuthPutRequest" } } } @@ -37438,11 +40671,9 @@ "description": "No Content" } }, - "description": "Reset a BGP neighbor" - } - }, - "/v1/diagnostic/reset-ipsec-session/{deviceId}": { - "put": { + "description": "Configure Identity Provider (SAML) for enterprise. Creates IDP configuration affecting all users in the enterprise." + }, + "delete": { "security": [ { "jwtAuth": [] @@ -37457,40 +40688,16 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "deviceId", - "in": "path", - "required": true, - "description": "Unique identifier for a specific device", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": 1000000 } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticResetIpsecSessionDeviceIdPutRequest" - } - } - } - }, "responses": { "204": { "description": "No Content" } }, - "description": "Reset IPSec sessions" - } - }, - "/v1/diagnostic/interface-reset/{deviceId}": { - "put": { + "description": "Remove Identity Provider configuration and revert to default authentication." + }, + "get": { "security": [ { "jwtAuth": [] @@ -37505,40 +40712,23 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "deviceId", - "in": "path", - "required": true, - "description": "Unique identifier for a specific device", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": 1000000 } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticInterfaceResetDeviceIdPutRequest" + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1AuthGetResponse" + } } } } }, - "responses": { - "204": { - "description": "No Content" - } - }, - "description": "Reset an interface" - } - }, - "/v1/diagnostic/speedtest-report": { - "put": { + "description": "Get current Identity Provider configuration for enterprise." + }, + "patch": { "security": [ { "jwtAuth": [] @@ -37560,28 +40750,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticSpeedtestReportPutRequest" + "$ref": "#/components/schemas/v1AuthPatchRequest" } } } }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticSpeedtestReportPutResponse" - } - } - } + "204": { + "description": "No Content" } }, - "description": "Generate a speedtest history report" + "description": "Update Identity Provider configuration (certificates, endpoints, etc.)." } }, - "/v1/diagnostic/ping": { - "post": { + "/v1/users": { + "put": { "security": [ { "jwtAuth": [] @@ -37603,28 +40786,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticPingPostRequest" + "$ref": "#/components/schemas/v1UsersPutRequest" } } } }, "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticPingPostResponse" - } - } - } + "204": { + "description": "No Content" } }, - "description": "Trigger a diagnostic test" - } - }, - "/v1/diagnostic/traceroute": { - "post": { + "description": "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": { "security": [ { "jwtAuth": [] @@ -37639,35 +40813,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticTraceroutePostRequest" - } + }, + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "string", + "example": "example string" } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticTraceroutePostResponse" + "$ref": "#/components/schemas/v1UsersGetResponse" } } } } }, - "description": "Trigger a diagnostic test" + "description": "Get user information by user IDs with detailed profile data." } }, - "/v1/diagnostic/speedtest": { - "post": { + "/v1/groups/{id}": { + "delete": { "security": [ { "jwtAuth": [] @@ -37682,35 +40856,26 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticSpeedtestPostRequest" - } + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "string", + "example": "example string" } } - }, + ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DiagnosticSpeedtestPostResponse" - } - } - } + "204": { + "description": "No Content" } }, - "description": "Trigger Speedtest utility" - } - }, - "/v1/diagnostic/ping-stop/{token}": { - "post": { + "description": "Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified." + }, + "patch": { "security": [ { "jwtAuth": [] @@ -37727,10 +40892,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "token", + "name": "id", "in": "path", "required": true, - "description": "Identifier which was received in initial response", + "description": "", "schema": { "type": "string", "example": "example string" @@ -37742,7 +40907,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DiagnosticPingStopTokenPostRequest" + "$ref": "#/components/schemas/v1GroupsIdPatchRequest" } } } @@ -37752,130 +40917,103 @@ "description": "No Content" } }, - "description": "Stop ping session" + "description": "Update group information." } }, - "/v1/users/{email}/password": { - "patch": { - "description": "Change password for a user using email and token", + "/v1/groups/{id}/enterprises/{enterpriseId}": { + "delete": { + "security": [ + { + "jwtAuth": [] + } + ], "parameters": [ { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "enterpriseId", "in": "path", - "name": "email", "required": true, + "description": "", "schema": { - "type": "string", - "example": "user@example.com" - }, - "description": "User email address" + "type": "integer", + "format": "int64", + "example": 1234567891011 + } }, { - "in": "query", - "name": "token", + "name": "id", + "in": "path", "required": true, + "description": "", "schema": { "type": "string", - "example": "verification-token-12345" - }, - "description": "Password reset token" - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1UsersEmailPasswordPatchRequest" - } + "example": "example string" } } - }, + ], "responses": { "204": { - "description": "Password changed successfully" - }, - "400": { - "description": "Bad request - Invalid input" - }, - "403": { - "description": "Forbidden - Invalid token" - }, - "500": { - "description": "Internal server error" + "description": "No Content" } - } + }, + "description": "Remove group's association with a specific enterprise, revoking cross-enterprise access." } }, - "/v1/users/{email}/recovery": { - "get": { - "description": "Send password recovery email to user", + "/v1/groups/{id}/members/{memberId}": { + "delete": { + "security": [ + { + "jwtAuth": [] + } + ], "parameters": [ { - "in": "path", - "name": "email", + "in": "header", + "name": "Authorization", "required": true, "schema": { - "type": "string", - "example": "user@example.com" + "type": "string" }, - "description": "User email address" - } - ], - "responses": { - "200": { - "description": "Recovery email sent successfully" - }, - "400": { - "description": "Bad request - Invalid email" + "description": "Bearer token. Format: Bearer " }, - "500": { - "description": "Internal server error" - } - } - } - }, - "/v1/users/{email}/verified": { - "patch": { - "description": "Verify user email using verification token", - "parameters": [ { + "name": "id", "in": "path", - "name": "email", "required": true, + "description": "", "schema": { "type": "string", - "example": "user@example.com" - }, - "description": "User email address" + "example": "example string" + } }, { - "in": "query", - "name": "token", + "name": "memberId", + "in": "path", "required": true, + "description": "", "schema": { "type": "string", - "example": "verification-token-12345" - }, - "description": "Email verification token" + "example": "example string" + } } ], "responses": { "204": { - "description": "User email verified successfully" - }, - "400": { - "description": "Bad request - Invalid input" - }, - "403": { - "description": "Forbidden - Invalid token" - }, - "500": { - "description": "Internal server error" + "description": "No Content" } - } + }, + "description": "Remove a specific user from a group by member ID." } }, - "/v1/enterprises/eula": { + "/v1/groups/{id}/members/delete": { "post": { "security": [ { @@ -37891,6 +41029,16 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "string", + "example": "example string" + } } ], "requestBody": { @@ -37898,7 +41046,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1EnterprisesEulaPostRequest" + "$ref": "#/components/schemas/v1GroupsIdMembersDeletePostRequest" } } } @@ -37908,11 +41056,11 @@ "description": "No Content" } }, - "description": "Accept End User License Agreement for the enterprise." + "description": "Remove multiple users from a group by their member IDs." } }, - "/v1/groups/{id}/enterprises": { - "post": { + "/v1/enterprises/{enterpriseId}": { + "delete": { "security": [ { "jwtAuth": [] @@ -37929,36 +41077,27 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "enterpriseId", "in": "path", "required": true, "description": "", "schema": { - "type": "string", - "example": "example string" + "type": "integer", + "format": "int64", + "example": 1234567891011 } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1GroupsIdEnterprisesPostRequest" - } - } - } - }, "responses": { "204": { "description": "No Content" } }, - "description": "Associate group with additional enterprises to enable cross-enterprise access and management." + "description": "Delete a specific enterprise by ID (you must manage this tenant)." } }, - "/v1/groups/{id}/members": { - "post": { + "/v1/users/{id}": { + "delete": { "security": [ { "jwtAuth": [] @@ -37985,22 +41124,38 @@ } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1GroupsIdMembersPostRequest" - } - } + "responses": { + "204": { + "description": "No Content" } }, + "description": "Delete user account." + } + }, + "/v1/account/mfa": { + "delete": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + } + ], "responses": { "204": { "description": "No Content" } }, - "description": "Add multiple users to a group by their global IDs." + "description": "Remove user's MFA enrollment." }, "get": { "security": [ @@ -38017,16 +41172,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "string", - "example": "example string" - } } ], "responses": { @@ -38035,17 +41180,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GroupsIdMembersGetResponse" + "$ref": "#/components/schemas/v1AccountMfaGetResponse" } } } } }, - "description": "Get all members of a specific group." - } - }, - "/v1/account/mfa/confirmation": { - "post": { + "description": "Get user's current MFA type and enrollment status." + }, + "put": { "security": [ { "jwtAuth": [] @@ -38067,7 +41210,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AccountMfaConfirmationPostRequest" + "$ref": "#/components/schemas/v1AccountMfaPutRequest" } } } @@ -38078,17 +41221,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AccountMfaConfirmationPostResponse" + "$ref": "#/components/schemas/v1AccountMfaPutResponse" } } } } }, - "description": "Confirm MFA type change with verification code." + "description": "Update user's MFA type (SMS, GoogleAuth) with verification." } }, - "/v1/enterprises": { - "put": { + "/v1/auth/mfa": { + "patch": { "security": [ { "jwtAuth": [] @@ -38110,7 +41253,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1EnterprisesPutRequest" + "$ref": "#/components/schemas/v1AuthMfaPatchRequest" } } } @@ -38120,9 +41263,9 @@ "description": "No Content" } }, - "description": "Create a new enterprise with company details, account type, and admin user. MSP callers creating a managed enterprise supply pool credit allocation fields (allocated_credits and optional term end)." + "description": "Enroll tenant in Multi-Factor Authentication (SMS, GoogleAuth)." }, - "get": { + "delete": { "security": [ { "jwtAuth": [] @@ -38137,42 +41280,68 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "enterpriseIds", - "in": "query", - "description": "Lists enterprises", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": [ - 0 - ] - }, - "style": "form", - "explode": true } ], + "responses": { + "204": { + "description": "No Content" + } + }, + "description": "Remove Multi-Factor Authentication enrollment for the tenant." + }, + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1AuthMfaPostRequest" + } + } + } + }, "responses": { "200": { - "description": "OK", + "description": "MFA verification successful", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1EnterprisesGetResponse" + "$ref": "#/components/schemas/v1AuthLoginPostResponse" + } + } + } + }, + "400": { + "description": "Bad request - Missing required fields", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1AuthErrorPostResponse" + } + } + } + }, + "500": { + "description": "Internal server error", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "error": { + "type": "string", + "example": "Internal error" + } + } } } } } - }, - "description": "Get specific enterprises by their IDs with detailed information. Query just your own enterprise Id for more detailed info." - }, - "patch": { + } + } + }, + "/v1/users/passwords/expire": { + "post": { "security": [ { "jwtAuth": [] @@ -38194,21 +41363,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1EnterprisesPatchRequest" + "$ref": "#/components/schemas/v1UsersPasswordsExpirePostRequest" } } } }, "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1UsersPasswordsExpirePostResponse" + } + } + } } }, - "description": "Updates all relevent enterprise information." + "description": "Expire passwords for multiple users and send password reset emails (Graphiant cloud only)." } }, - "/v1/groups": { - "put": { + "/v1/groups/enterprises": { + "get": { "security": [ { "jwtAuth": [] @@ -38225,23 +41401,55 @@ "description": "Bearer token. Format: Bearer " } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1GroupsPutRequest" + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GroupsEnterprisesGetResponse" + } } } } }, + "description": "Get all enterprise-level groups." + } + }, + "/v1/groups/root": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + } + ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GroupsRootGetResponse" + } + } + } } }, - "description": "Create a new group with and set permissions. Set group's enterprise management capabilities (msp only)." - }, + "description": "Get all root-level groups." + } + }, + "/v1/enterprises/{enterpriseId}/admin": { "get": { "security": [ { @@ -38257,6 +41465,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "enterpriseId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -38265,16 +41484,47 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GroupsGetResponse" + "$ref": "#/components/schemas/v1EnterprisesEnterpriseIdAdminGetResponse" } } } } }, - "description": "Get all groups in the enterprise." + "description": "Get the admin account for an enterprise." } }, - "/v1/auth": { + "/v1/auth/mfa/types": { + "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/v1AuthMfaTypesGetResponse" + } + } + } + } + }, + "description": "Get MFA types allowed by enterprise policy." + }, "put": { "security": [ { @@ -38297,7 +41547,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AuthPutRequest" + "$ref": "#/components/schemas/v1AuthMfaTypesPutRequest" } } } @@ -38307,9 +41557,11 @@ "description": "No Content" } }, - "description": "Configure Identity Provider (SAML) for enterprise. Creates IDP configuration affecting all users in the enterprise." - }, - "delete": { + "description": "Update enterprise MFA policy to allow/disallow specific MFA types." + } + }, + "/v1/enterprises/managed": { + "get": { "security": [ { "jwtAuth": [] @@ -38324,15 +41576,34 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "type", + "in": "query", + "description": "msp or enterprise", + "required": true, + "schema": { + "type": "string", + "example": "ENUM_VALUE" + } } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1EnterprisesManagedGetResponse" + } + } + } } }, - "description": "Remove Identity Provider configuration and revert to default authentication." - }, + "description": "Get enterprises managed by your tenant, filtered by enterprise type. For MSP-managed enterprises, responses include MSP pool fields such as allocated_credits and credit_allocation_contract_expiration when applicable." + } + }, + "/v1/users/{id}/groups/enterprises": { "get": { "security": [ { @@ -38348,6 +41619,16 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "userId", + "schema": { + "type": "string", + "example": "example string" + } } ], "responses": { @@ -38356,15 +41637,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AuthGetResponse" + "$ref": "#/components/schemas/v1UsersIdGroupsEnterprisesGetResponse" } } } } }, - "description": "Get current Identity Provider configuration for enterprise." - }, - "patch": { + "description": "Get enterprise-specific groups for a user." + } + }, + "/v1/users/{id}/enterprises": { + "get": { "security": [ { "jwtAuth": [] @@ -38379,28 +41662,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "userId", + "schema": { + "type": "string", + "example": "example string" + } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1AuthPatchRequest" + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1UsersIdEnterprisesGetResponse" + } } } } }, - "responses": { - "204": { - "description": "No Content" - } - }, - "description": "Update Identity Provider configuration (certificates, endpoints, etc.)." + "description": "Get all enterprises a specific user can access." } }, - "/v1/users": { - "put": { + "/v1/users/{id}/groups": { + "get": { "security": [ { "jwtAuth": [] @@ -38415,25 +41705,34 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "userId", + "schema": { + "type": "string", + "example": "example string" + } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1UsersPutRequest" + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1UsersIdGroupsGetResponse" + } } } } }, - "responses": { - "204": { - "description": "No Content" - } - }, - "description": "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." - }, + "description": "Get all groups that a specific user belongs to." + } + }, + "/v1/users/{id}/groups/root": { "get": { "security": [ { @@ -38452,9 +41751,9 @@ }, { "name": "id", - "in": "query", - "description": "", - "required": false, + "in": "path", + "required": true, + "description": "userId", "schema": { "type": "string", "example": "example string" @@ -38467,17 +41766,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1UsersGetResponse" + "$ref": "#/components/schemas/v1UsersIdGroupsRootGetResponse" } } } } }, - "description": "Get user information by user IDs with detailed profile data." + "description": "Get root-level groups for a user." } }, - "/v1/groups/{id}": { - "delete": { + "/v1/users/{id}/verify": { + "patch": { "security": [ { "jwtAuth": [] @@ -38504,14 +41803,26 @@ } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1UsersIdVerifyPatchRequest" + } + } + } + }, "responses": { "204": { "description": "No Content" } }, - "description": "Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified." - }, - "patch": { + "description": "Resend account verification email to user." + } + }, + "/v1/invitation/email": { + "post": { "security": [ { "jwtAuth": [] @@ -38526,16 +41837,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "string", - "example": "example string" - } } ], "requestBody": { @@ -38543,21 +41844,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GroupsIdPatchRequest" + "$ref": "#/components/schemas/v1InvitationEmailPostRequest" } } } }, "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1InvitationEmailPostResponse" + } + } + } } }, - "description": "Update group information." + "description": "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." } }, - "/v1/groups/{id}/enterprises/{enterpriseId}": { - "delete": { + "/v1/temp/password": { + "put": { "security": [ { "jwtAuth": [] @@ -38572,39 +41880,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "enterpriseId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "string", - "example": "example string" - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1TempPasswordPutRequest" + } + } + } + }, "responses": { - "204": { - "description": "No Content" + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1TempPasswordPutResponse" + } + } + } } }, - "description": "Remove group's association with a specific enterprise, revoking cross-enterprise access." + "description": "Generate and send temporary passwords to multiple emails for B2B service access." } }, - "/v1/groups/{id}/members/{memberId}": { - "delete": { + "/v1/account/email": { + "patch": { "security": [ { "jwtAuth": [] @@ -38619,38 +41923,28 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "string", - "example": "example string" - } - }, - { - "name": "memberId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "string", - "example": "example string" - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1AccountEmailPatchRequest" + } + } + } + }, "responses": { "204": { "description": "No Content" } }, - "description": "Remove a specific user from a group by member ID." + "description": "Update user's email address with verification." } }, - "/v1/groups/{id}/members/delete": { - "post": { + "/v1/account/info": { + "patch": { "security": [ { "jwtAuth": [] @@ -38665,16 +41959,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "string", - "example": "example string" - } } ], "requestBody": { @@ -38682,7 +41966,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GroupsIdMembersDeletePostRequest" + "$ref": "#/components/schemas/v1AccountInfoPatchRequest" } } } @@ -38692,11 +41976,11 @@ "description": "No Content" } }, - "description": "Remove multiple users from a group by their member IDs." + "description": "Update current user's profile information." } }, - "/v1/enterprises/{enterpriseId}": { - "delete": { + "/v1/account/password": { + "patch": { "security": [ { "jwtAuth": [] @@ -38711,29 +41995,28 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "enterpriseId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1AccountPasswordPatchRequest" + } + } + } + }, "responses": { "204": { "description": "No Content" } }, - "description": "Delete a specific enterprise by ID (you must manage this tenant)." + "description": "Change user password with current password verification (Graphiant cloud only)." } }, - "/v1/users/{id}": { - "delete": { + "/v1/apps/bandwidth": { + "post": { "security": [ { "jwtAuth": [] @@ -38748,28 +42031,34 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "string", - "example": "example string" - } } ], - "responses": { - "204": { - "description": "No Content" + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1AppsBandwidthPostRequest" + } + } } }, - "description": "Delete user account." + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1AppsBandwidthPostResponse" + } + } + } + } + } } }, - "/v1/account/mfa": { - "delete": { + "/v1/flows/flow-table": { + "post": { "security": [ { "jwtAuth": [] @@ -38786,14 +42075,33 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1FlowsFlowTablePostRequest" + } + } + } + }, "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1FlowsFlowTablePostResponse" + } + } + } } }, - "description": "Remove user's MFA enrollment." - }, - "get": { + "description": "Get flow table for the app on the device" + } + }, + "/v1/apps/app-summary": { + "post": { "security": [ { "jwtAuth": [] @@ -38810,21 +42118,33 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1AppsAppSummaryPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AccountMfaGetResponse" + "$ref": "#/components/schemas/v1AppsAppSummaryPostResponse" } } } } }, - "description": "Get user's current MFA type and enrollment status." - }, - "put": { + "description": "Get app state summary counts" + } + }, + "/v1/apps/visualization": { + "post": { "security": [ { "jwtAuth": [] @@ -38846,7 +42166,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AccountMfaPutRequest" + "$ref": "#/components/schemas/v1AppsVisualizationPostRequest" } } } @@ -38857,17 +42177,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AccountMfaPutResponse" + "$ref": "#/components/schemas/v1AppsVisualizationPostResponse" } } } } }, - "description": "Update user's MFA type (SMS, GoogleAuth) with verification." + "description": "Get the app and circuit visualization info for the device" } }, - "/v1/auth/mfa": { - "patch": { + "/v1/extranet-b2b-monitoring/peering-service/consumption-overview": { + "post": { "security": [ { "jwtAuth": [] @@ -38889,19 +42209,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AuthMfaPatchRequest" + "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest" } } } }, "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse" + } + } + } } }, - "description": "Enroll tenant in Multi-Factor Authentication (SMS, GoogleAuth)." - }, - "delete": { + "description": "Get b2b extranet peering consumption overview" + } + }, + "/v1/extranet-b2b-monitoring/peering-service/bandwidth-usage": { + "post": { "security": [ { "jwtAuth": [] @@ -38918,65 +42247,75 @@ "description": "Bearer token. Format: Bearer " } ], - "responses": { - "204": { - "description": "No Content" - } - }, - "description": "Remove Multi-Factor Authentication enrollment for the tenant." - }, - "post": { "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AuthMfaPostRequest" + "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest" } } } }, "responses": { "200": { - "description": "MFA verification successful", + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AuthLoginPostResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse" } } } - }, - "400": { - "description": "Bad request - Missing required fields", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1AuthErrorPostResponse" - } + } + }, + "description": "Get b2b extranet peering service sites usage stats" + } + }, + "/v1/extranet-b2b-monitoring/peering-service/service-overtime-consumption": { + "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/v1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest" } } - }, - "500": { - "description": "Internal server error", + } + }, + "responses": { + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "type": "object", - "properties": { - "error": { - "type": "string", - "example": "Internal error" - } - } + "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse" } } } } - } + }, + "description": "Get b2b extranet peering service overtime consumption" } }, - "/v1/users/passwords/expire": { + "/v1/extranet-b2b-monitoring/peering-service/consumers-usage/top": { "post": { "security": [ { @@ -38999,7 +42338,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1UsersPasswordsExpirePostRequest" + "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest" } } } @@ -39010,17 +42349,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1UsersPasswordsExpirePostResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse" } } } } }, - "description": "Expire passwords for multiple users and send password reset emails (Graphiant cloud only)." + "description": "Get b2b extranet peering service top consumers usage stats" } }, - "/v1/groups/enterprises": { - "get": { + "/v1/extranet-b2b-monitoring/peering-service/service-customer-list": { + "post": { "security": [ { "jwtAuth": [] @@ -39037,23 +42376,33 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GroupsEnterprisesGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse" } } } } }, - "description": "Get all enterprise-level groups." + "description": "Get b2b extranet peering service customer list within a time window" } }, - "/v1/groups/root": { - "get": { + "/v2/extranet/sites-consumption-overview": { + "post": { "security": [ { "jwtAuth": [] @@ -39070,23 +42419,33 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2ExtranetSitesConsumptionOverviewPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GroupsRootGetResponse" + "$ref": "#/components/schemas/v2ExtranetSitesConsumptionOverviewPostResponse" } } } } }, - "description": "Get all root-level groups." + "description": "Get extranet service consumption overview over timewindow" } }, - "/v1/enterprises/{enterpriseId}/admin": { - "get": { + "/v2/extranet/service-overtime-consumption": { + "post": { "security": [ { "jwtAuth": [] @@ -39101,36 +42460,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "enterpriseId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2ExtranetServiceOvertimeConsumptionPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1EnterprisesEnterpriseIdAdminGetResponse" + "$ref": "#/components/schemas/v2ExtranetServiceOvertimeConsumptionPostResponse" } } } } }, - "description": "Get the admin account for an enterprise." + "description": "Get extranet service cumulative consumption over timewindow" } }, - "/v1/auth/mfa/types": { - "get": { + "/v2/extranet/sites-usage": { + "post": { "security": [ { "jwtAuth": [] @@ -39147,21 +42505,33 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2ExtranetSitesUsagePostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AuthMfaTypesGetResponse" + "$ref": "#/components/schemas/v2ExtranetSitesUsagePostResponse" } } } } }, - "description": "Get MFA types allowed by enterprise policy." - }, - "put": { + "description": "Get extranet service sites usage stats v2" + } + }, + "/v2/extranet/consumers-usage/top": { + "post": { "security": [ { "jwtAuth": [] @@ -39183,21 +42553,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AuthMfaTypesPutRequest" + "$ref": "#/components/schemas/v2ExtranetConsumersUsageTopPostRequest" } } } }, "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2ExtranetConsumersUsageTopPostResponse" + } + } + } } }, - "description": "Update enterprise MFA policy to allow/disallow specific MFA types." + "description": "Get extranet service top consumer usage stats" } }, - "/v1/enterprises/managed": { - "get": { + "/v2/extranet/lan-segments-usage/top": { + "post": { "security": [ { "jwtAuth": [] @@ -39212,35 +42589,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "type", - "in": "query", - "description": "msp or enterprise", - "required": true, - "schema": { - "type": "string", - "example": "ENUM_VALUE" - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2ExtranetLanSegmentsUsageTopPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1EnterprisesManagedGetResponse" + "$ref": "#/components/schemas/v2ExtranetLanSegmentsUsageTopPostResponse" } } } } }, - "description": "Get enterprises managed by your tenant, filtered by enterprise type. For MSP-managed enterprises, responses include MSP pool fields such as allocated_credits and credit_allocation_contract_expiration when applicable." + "description": "Get extranet service top lan segment usage stats" } }, - "/v1/users/{id}/groups/enterprises": { - "get": { + "/v1/extranet/sites-usage/top": { + "post": { "security": [ { "jwtAuth": [] @@ -39255,35 +42632,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "userId", - "schema": { - "type": "string", - "example": "example string" - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetSitesUsageTopPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1UsersIdGroupsEnterprisesGetResponse" + "$ref": "#/components/schemas/v1ExtranetSitesUsageTopPostResponse" } } } } }, - "description": "Get enterprise-specific groups for a user." + "description": "Get extranet service top sites usage stats" } }, - "/v1/users/{id}/enterprises": { - "get": { + "/v2/extranet/total-usage": { + "post": { "security": [ { "jwtAuth": [] @@ -39298,34 +42675,34 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "userId", - "schema": { - "type": "string", - "example": "example string" - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2ExtranetTotalUsagePostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1UsersIdEnterprisesGetResponse" + "$ref": "#/components/schemas/v2ExtranetTotalUsagePostResponse" } } } } }, - "description": "Get all enterprises a specific user can access." + "description": "Get extranet service total usage stats" } }, - "/v1/users/{id}/groups": { + "/v1/nat/entries/{deviceId}": { "get": { "security": [ { @@ -39343,13 +42720,14 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "deviceId", "in": "path", "required": true, - "description": "userId", + "description": "", "schema": { - "type": "string", - "example": "example string" + "type": "integer", + "format": "int64", + "example": 1234567891011 } } ], @@ -39359,16 +42737,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1UsersIdGroupsGetResponse" + "$ref": "#/components/schemas/v1NatEntriesDeviceIdGetResponse" } } } } }, - "description": "Get all groups that a specific user belongs to." + "description": "Get the NAT entries for the device" } }, - "/v1/users/{id}/groups/root": { + "/v1/nat/utilization/{deviceId}": { "get": { "security": [ { @@ -39386,13 +42764,14 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "deviceId", "in": "path", "required": true, - "description": "userId", + "description": "", "schema": { - "type": "string", - "example": "example string" + "type": "integer", + "format": "int64", + "example": 1234567891011 } } ], @@ -39402,17 +42781,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1UsersIdGroupsRootGetResponse" + "$ref": "#/components/schemas/v1NatUtilizationDeviceIdGetResponse" } } } } }, - "description": "Get root-level groups for a user." + "description": "Get the NAT usage for the device" } }, - "/v1/users/{id}/verify": { - "patch": { + "/v1/flows/topology": { + "post": { "security": [ { "jwtAuth": [] @@ -39427,16 +42806,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "string", - "example": "example string" - } } ], "requestBody": { @@ -39444,20 +42813,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1UsersIdVerifyPatchRequest" + "$ref": "#/components/schemas/v1FlowsTopologyPostRequest" } } } }, "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1FlowsTopologyPostResponse" + } + } + } } }, - "description": "Resend account verification email to user." + "description": "Get flow based node and circuit topology for the device" } }, - "/v1/invitation/email": { + "/v1/apps/device/{deviceId}/top": { "post": { "security": [ { @@ -39473,6 +42849,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "requestBody": { @@ -39480,7 +42867,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1InvitationEmailPostRequest" + "$ref": "#/components/schemas/v1AppsDeviceDeviceIdTopPostRequest" } } } @@ -39491,17 +42878,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1InvitationEmailPostResponse" + "$ref": "#/components/schemas/v1AppsDeviceDeviceIdTopPostResponse" } } } } }, - "description": "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." + "description": "Get top apps for a device" } }, - "/v1/temp/password": { - "put": { + "/v1/apps/site/{siteId}/top": { + "post": { "security": [ { "jwtAuth": [] @@ -39516,6 +42903,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "siteId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "requestBody": { @@ -39523,28 +42921,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TempPasswordPutRequest" + "$ref": "#/components/schemas/v1AppsSiteSiteIdTopPostRequest" } } } }, "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TempPasswordPutResponse" + "$ref": "#/components/schemas/v1AppsSiteSiteIdTopPostResponse" } } } } }, - "description": "Generate and send temporary passwords to multiple emails for B2B service access." + "description": "Get top apps for a site" } }, - "/v1/account/email": { - "patch": { + "/v1/talkers/device/{deviceId}/top": { + "post": { "security": [ { "jwtAuth": [] @@ -39559,42 +42957,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1AccountEmailPatchRequest" - } - } - } - }, - "responses": { - "204": { - "description": "No Content" - } - }, - "description": "Update user's email address with verification." - } - }, - "/v1/account/info": { - "patch": { - "security": [ - { - "jwtAuth": [] - } - ], - "parameters": [ + }, { - "in": "header", - "name": "Authorization", + "name": "deviceId", + "in": "path", "required": true, + "description": "", "schema": { - "type": "string" - }, - "description": "Bearer token. Format: Bearer " + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "requestBody": { @@ -39602,21 +42975,28 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AccountInfoPatchRequest" + "$ref": "#/components/schemas/v1TalkersDeviceDeviceIdTopPostRequest" } } } }, "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1TalkersDeviceDeviceIdTopPostResponse" + } + } + } } }, - "description": "Update current user's profile information." + "description": "Get top talkers for a device" } }, - "/v1/account/password": { - "patch": { + "/v1/talkers/site/{siteId}/top": { + "post": { "security": [ { "jwtAuth": [] @@ -39631,6 +43011,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "siteId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "requestBody": { @@ -39638,20 +43029,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AccountPasswordPatchRequest" + "$ref": "#/components/schemas/v1TalkersSiteSiteIdTopPostRequest" } } } }, "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1TalkersSiteSiteIdTopPostResponse" + } + } + } } }, - "description": "Change user password with current password verification (Graphiant cloud only)." + "description": "Get top talkers for a site" } }, - "/v1/apps/bandwidth": { + "/v1/extranets/{id}/apply": { "post": { "security": [ { @@ -39667,6 +43065,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "requestBody": { @@ -39674,18 +43083,18 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsBandwidthPostRequest" + "$ref": "#/components/schemas/v1ExtranetsIdApplyPostRequest" } } } }, "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsBandwidthPostResponse" + "$ref": "#/components/schemas/v1ExtranetsIdApplyPostResponse" } } } @@ -39693,7 +43102,7 @@ } } }, - "/v1/flows/flow-table": { + "/v1/extranet/b2b/matches/{matchId}/consumer/check": { "post": { "security": [ { @@ -39709,6 +43118,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "matchId", + "in": "path", + "required": true, + "description": "Match id (URL path :matchId)", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "requestBody": { @@ -39716,7 +43136,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1FlowsFlowTablePostRequest" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest" } } } @@ -39727,17 +43147,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1FlowsFlowTablePostResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse" } } } } }, - "description": "Get flow table for the app on the device" + "description": "Check extranet service consumer configuration" } }, - "/v1/apps/app-summary": { - "post": { + "/v1/global/config": { + "patch": { "security": [ { "jwtAuth": [] @@ -39759,7 +43179,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsAppSummaryPostRequest" + "$ref": "#/components/schemas/v1GlobalConfigPatchRequest" } } } @@ -39770,16 +43190,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsAppSummaryPostResponse" + "$ref": "#/components/schemas/v1GlobalConfigPatchResponse" } } } } }, - "description": "Get app state summary counts" + "description": "Update global objects for an enterprise" } }, - "/v1/apps/visualization": { + "/v1/global/apps/app-lists": { "post": { "security": [ { @@ -39802,7 +43222,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsVisualizationPostRequest" + "$ref": "#/components/schemas/v1GlobalAppsAppListsPostRequest" } } } @@ -39813,17 +43233,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsVisualizationPostResponse" + "$ref": "#/components/schemas/v1GlobalAppsAppListsPostResponse" } } } } }, - "description": "Get the app and circuit visualization info for the device" - } - }, - "/v1/extranet-b2b-monitoring/peering-service/consumption-overview": { - "post": { + "description": "Create an app list under the current enterprise" + }, + "get": { "security": [ { "jwtAuth": [] @@ -39840,32 +43258,22 @@ "description": "Bearer token. Format: Bearer " } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse" + "$ref": "#/components/schemas/v1GlobalAppsAppListsGetResponse" } } } } }, - "description": "Get b2b extranet peering consumption overview" + "description": "Get all app lists for the current enterprise" } }, - "/v1/extranet-b2b-monitoring/peering-service/bandwidth-usage": { + "/v1/data-assurance/assurances/global": { "post": { "security": [ { @@ -39888,7 +43296,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest" + "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalPostRequest" } } } @@ -39899,17 +43307,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse" + "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalPostResponse" } } } } }, - "description": "Get b2b extranet peering service sites usage stats" - } - }, - "/v1/extranet-b2b-monitoring/peering-service/service-overtime-consumption": { - "post": { + "description": "Configure a new assurance under the current enterprise" + }, + "get": { "security": [ { "jwtAuth": [] @@ -39926,32 +43332,22 @@ "description": "Bearer token. Format: Bearer " } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse" + "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalGetResponse" } } } } }, - "description": "Get b2b extranet peering service overtime consumption" + "description": "Get all assurances under the current enterprise" } }, - "/v1/extranet-b2b-monitoring/peering-service/consumers-usage/top": { + "/v1/extranets-b2b/{id}/customer/": { "post": { "security": [ { @@ -39967,6 +43363,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "Service ID of the application customer is invited to", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "requestBody": { @@ -39974,7 +43381,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest" + "$ref": "#/components/schemas/v1ExtranetsB2bIdCustomerPostRequest" } } } @@ -39985,16 +43392,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bIdCustomerPostResponse" } } } } }, - "description": "Get b2b extranet peering service top consumers usage stats" + "description": "Create B2B extranet application customer invite" } }, - "/v1/extranet-b2b-monitoring/peering-service/service-customer-list": { + "/v1/extranets-b2b/consumer": { "post": { "security": [ { @@ -40017,7 +43424,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest" + "$ref": "#/components/schemas/v1ExtranetsB2bConsumerPostRequest" } } } @@ -40028,16 +43435,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bConsumerPostResponse" } } } } }, - "description": "Get b2b extranet peering service customer list within a time window" + "description": "Create a new B2B extranet consumer" } }, - "/v2/extranet/sites-consumption-overview": { + "/v1/extranets-b2b-peering/match/service-to-customer": { "post": { "security": [ { @@ -40060,7 +43467,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ExtranetSitesConsumptionOverviewPostRequest" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest" } } } @@ -40071,16 +43478,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ExtranetSitesConsumptionOverviewPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse" } } } } }, - "description": "Get extranet service consumption overview over timewindow" + "description": "Create B2B extranet configuration for matching a service to a customer" } }, - "/v2/extranet/service-overtime-consumption": { + "/v1/extranets-b2b-peering/consumer/{matchId}": { "post": { "security": [ { @@ -40096,49 +43503,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2ExtranetServiceOvertimeConsumptionPostRequest" - } - } - } - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2ExtranetServiceOvertimeConsumptionPostResponse" - } - } - } - } - }, - "description": "Get extranet service cumulative consumption over timewindow" - } - }, - "/v2/extranet/sites-usage": { - "post": { - "security": [ - { - "jwtAuth": [] - } - ], - "parameters": [ + }, { - "in": "header", - "name": "Authorization", + "name": "matchId", + "in": "path", "required": true, + "description": "ID of the match for the customer subscription of the service", "schema": { - "type": "string" - }, - "description": "Bearer token. Format: Bearer " + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "requestBody": { @@ -40146,7 +43521,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ExtranetSitesUsagePostRequest" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringConsumerMatchIdPostRequest" } } } @@ -40157,16 +43532,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ExtranetSitesUsagePostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringConsumerMatchIdPostResponse" } } } } }, - "description": "Get extranet service sites usage stats v2" + "description": "Create B2B extranet peering service consumer" } }, - "/v2/extranet/consumers-usage/top": { + "/v1/extranets-b2b-peering/customer": { "post": { "security": [ { @@ -40189,7 +43564,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ExtranetConsumersUsageTopPostRequest" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringCustomerPostRequest" } } } @@ -40200,16 +43575,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ExtranetConsumersUsageTopPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringCustomerPostResponse" } } } } }, - "description": "Get extranet service top consumer usage stats" + "description": "Create a new B2B extranet peering service customer" } }, - "/v2/extranet/lan-segments-usage/top": { + "/v1/extranets-b2b-peering/producer": { "post": { "security": [ { @@ -40232,7 +43607,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ExtranetLanSegmentsUsageTopPostRequest" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringProducerPostRequest" } } } @@ -40243,16 +43618,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ExtranetLanSegmentsUsageTopPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringProducerPostResponse" } } } } }, - "description": "Get extranet service top lan segment usage stats" + "description": "Create a new B2B extranet peering service producer" } }, - "/v1/extranet/sites-usage/top": { + "/v1/extranets-b2b": { "post": { "security": [ { @@ -40275,7 +43650,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetSitesUsageTopPostRequest" + "$ref": "#/components/schemas/v1ExtranetsB2bPostRequest" } } } @@ -40286,16 +43661,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetSitesUsageTopPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPostResponse" } } } } }, - "description": "Get extranet service top sites usage stats" + "description": "Create a new B2B extranet producer" } }, - "/v2/extranet/total-usage": { + "/v1/device/snapshot": { "post": { "security": [ { @@ -40318,27 +43693,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ExtranetTotalUsagePostRequest" + "$ref": "#/components/schemas/v1DeviceSnapshotPostRequest" } } } }, "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ExtranetTotalUsagePostResponse" + "$ref": "#/components/schemas/v1DeviceSnapshotPostResponse" } } } } }, - "description": "Get extranet service total usage stats" - } - }, - "/v1/nat/entries/{deviceId}": { + "description": "Create a device snapshot" + }, "get": { "security": [ { @@ -40354,17 +43727,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "deviceId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -40373,17 +43735,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1NatEntriesDeviceIdGetResponse" + "$ref": "#/components/schemas/v1DeviceSnapshotGetResponse" } } } } }, - "description": "Get the NAT entries for the device" - } - }, - "/v1/nat/utilization/{deviceId}": { - "get": { + "description": "Get the specified device snapshots using the snapshot id" + }, + "put": { "security": [ { "jwtAuth": [] @@ -40398,35 +43758,34 @@ "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/v1DeviceSnapshotPutRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1NatUtilizationDeviceIdGetResponse" + "$ref": "#/components/schemas/v1DeviceSnapshotPutResponse" } } } } }, - "description": "Get the NAT usage for the device" + "description": "Update an existing device snapshot" } }, - "/v1/flows/topology": { + "/v1/extranets": { "post": { "security": [ { @@ -40449,7 +43808,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1FlowsTopologyPostRequest" + "$ref": "#/components/schemas/v1ExtranetsPostRequest" } } } @@ -40460,17 +43819,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1FlowsTopologyPostResponse" + "$ref": "#/components/schemas/v1ExtranetsPostResponse" } } } } - }, - "description": "Get flow based node and circuit topology for the device" - } - }, - "/v1/apps/device/{deviceId}/top": { - "post": { + } + }, + "get": { "security": [ { "jwtAuth": [] @@ -40485,45 +43841,23 @@ "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/v1AppsDeviceDeviceIdTopPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsDeviceDeviceIdTopPostResponse" + "$ref": "#/components/schemas/v1ExtranetsGetResponse" } } } } - }, - "description": "Get top apps for a device" + } } }, - "/v1/apps/site/{siteId}/top": { + "/v1/extranet/b2b/producer": { "post": { "security": [ { @@ -40539,17 +43873,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "siteId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "requestBody": { @@ -40557,7 +43880,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsSiteSiteIdTopPostRequest" + "$ref": "#/components/schemas/v1ExtranetB2bProducerPostRequest" } } } @@ -40568,16 +43891,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsSiteSiteIdTopPostResponse" + "$ref": "#/components/schemas/v1ExtranetB2bProducerPostResponse" } } } } }, - "description": "Get top apps for a site" + "description": "Create an inter-enterprise extranet service (peering, client-to-server, …)" } }, - "/v1/talkers/device/{deviceId}/top": { + "/v1/extranet/b2b/matches/{matchId}/consumer": { "post": { "security": [ { @@ -40595,10 +43918,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "matchId", "in": "path", "required": true, - "description": "", + "description": "Match id (URL path :matchId)", "schema": { "type": "integer", "format": "int64", @@ -40611,7 +43934,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TalkersDeviceDeviceIdTopPostRequest" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesMatchIdConsumerPostRequest" } } } @@ -40622,16 +43945,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TalkersDeviceDeviceIdTopPostResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesMatchIdConsumerPostResponse" } } } } }, - "description": "Get top talkers for a device" + "description": "Consumer accepts an extranet service match" } }, - "/v1/talkers/site/{siteId}/top": { + "/v1/extranet/b2b/customers": { "post": { "security": [ { @@ -40647,17 +43970,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "siteId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "requestBody": { @@ -40665,7 +43977,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TalkersSiteSiteIdTopPostRequest" + "$ref": "#/components/schemas/v1ExtranetB2bCustomersPostRequest" } } } @@ -40676,16 +43988,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TalkersSiteSiteIdTopPostResponse" + "$ref": "#/components/schemas/v1ExtranetB2bCustomersPostResponse" } } } } }, - "description": "Get top talkers for a site" + "description": "Create an extranet service customer (partner directory entry)" } }, - "/v1/extranets/{id}/apply": { + "/v1/extranet/b2b/matches": { "post": { "security": [ { @@ -40701,17 +44013,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "requestBody": { @@ -40719,26 +44020,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsIdApplyPostRequest" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesPostRequest" } } } }, "responses": { - "202": { - "description": "Accepted", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsIdApplyPostResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesPostResponse" } } } } - } + }, + "description": "Match an extranet service to a customer" } }, - "/v1/extranet-public-vif/check": { + "/v1/extranet/b2b/matches/customers": { "post": { "security": [ { @@ -40761,7 +44063,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetPublicVifCheckPostRequest" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesCustomersPostRequest" } } } @@ -40772,17 +44074,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetPublicVifCheckPostResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesCustomersPostResponse" } } } } }, - "description": "Check Public Vif service" + "description": "Bulk subscribe customers to an extranet service" } }, - "/v1/global/config": { - "patch": { + "/v1/gateways": { + "post": { "security": [ { "jwtAuth": [] @@ -40804,7 +44106,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalConfigPatchRequest" + "$ref": "#/components/schemas/v1GatewaysPostRequest" } } } @@ -40815,17 +44117,14 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalConfigPatchResponse" + "$ref": "#/components/schemas/v1GatewaysPostResponse" } } } } - }, - "description": "Update global objects for an enterprise" - } - }, - "/v1/global/apps/app-lists": { - "post": { + } + }, + "delete": { "security": [ { "jwtAuth": [] @@ -40840,33 +44139,33 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1GlobalAppsAppListsPostRequest" - } + }, + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsAppListsPostResponse" + "$ref": "#/components/schemas/v1GatewaysDeleteResponse" } } } } - }, - "description": "Create an app list under the current enterprise" + } }, - "get": { + "put": { "security": [ { "jwtAuth": [] @@ -40883,22 +44182,31 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GatewaysPutRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsAppListsGetResponse" + "$ref": "#/components/schemas/v1GatewaysPutResponse" } } } } - }, - "description": "Get all app lists for the current enterprise" + } } }, - "/v1/data-assurance/assurances/global": { + "/v1/global/apps/custom": { "post": { "security": [ { @@ -40921,7 +44229,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalPostRequest" + "$ref": "#/components/schemas/v1GlobalAppsCustomPostRequest" } } } @@ -40932,13 +44240,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalPostResponse" + "$ref": "#/components/schemas/v1GlobalAppsCustomPostResponse" } } } } }, - "description": "Configure a new assurance under the current enterprise" + "description": "Create a new global app under the current enterprise" }, "get": { "security": [ @@ -40963,16 +44271,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalGetResponse" + "$ref": "#/components/schemas/v1GlobalAppsCustomGetResponse" } } } } }, - "description": "Get all assurances under the current enterprise" + "description": "Get all global apps mapped by the current enterprise" } }, - "/v1/extranets-b2b/{id}/customer/": { + "/v1/global/content-filters": { "post": { "security": [ { @@ -40988,17 +44296,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "Service ID of the application customer is invited to", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "requestBody": { @@ -41006,7 +44303,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bIdCustomerPostRequest" + "$ref": "#/components/schemas/v1GlobalContentFiltersPostRequest" } } } @@ -41017,17 +44314,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bIdCustomerPostResponse" + "$ref": "#/components/schemas/v1GlobalContentFiltersPostResponse" } } } } }, - "description": "Create B2B extranet application customer invite" - } - }, - "/v1/extranets-b2b/consumer": { - "post": { + "description": "Configure a new content filter under the current enterprise" + }, + "get": { "security": [ { "jwtAuth": [] @@ -41044,32 +44339,22 @@ "description": "Bearer token. Format: Bearer " } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bConsumerPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bConsumerPostResponse" + "$ref": "#/components/schemas/v1GlobalContentFiltersGetResponse" } } } } }, - "description": "Create a new B2B extranet consumer" + "description": "Get basic details for all content filter under the current enterprise" } }, - "/v1/extranets-b2b-peering/match/service-to-customer": { + "/v1/global/lan-segments": { "post": { "security": [ { @@ -41092,7 +44377,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest" + "$ref": "#/components/schemas/v1GlobalLanSegmentsPostRequest" } } } @@ -41103,17 +44388,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse" + "$ref": "#/components/schemas/v1GlobalLanSegmentsPostResponse" } } } } }, - "description": "Create B2B extranet configuration for matching a service to a customer" - } - }, - "/v1/extranets-b2b-peering/consumer/{matchId}": { - "post": { + "description": "Create a new lan-segment scoped to the enterprise" + }, + "get": { "security": [ { "jwtAuth": [] @@ -41130,43 +44413,33 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "matchId", - "in": "path", - "required": true, - "description": "ID of the match for the customer subscription of the service", + "name": "filterExtranetProducers", + "in": "query", + "description": "", + "required": false, "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } + "type": "boolean", + "example": true + }, + "example": true } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringConsumerMatchIdPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringConsumerMatchIdPostResponse" + "$ref": "#/components/schemas/v1GlobalLanSegmentsGetResponse" } } } } }, - "description": "Create B2B extranet peering service consumer" + "description": "Get a list of lan-segments under the currently logged in enterprise" } }, - "/v1/extranets-b2b-peering/customer": { + "/v1/pvif": { "post": { "security": [ { @@ -41189,7 +44462,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringCustomerPostRequest" + "$ref": "#/components/schemas/v1PvifPostRequest" } } } @@ -41200,16 +44473,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringCustomerPostResponse" + "$ref": "#/components/schemas/v1PvifPostResponse" } } } } }, - "description": "Create a new B2B extranet peering service customer" + "description": "Create a gateway Public VIF service" } }, - "/v1/extranets-b2b-peering/producer": { + "/v1/policy/route-tag-sets": { "post": { "security": [ { @@ -41232,7 +44505,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringProducerPostRequest" + "$ref": "#/components/schemas/v1PolicyRouteTagSetsPostRequest" } } } @@ -41243,16 +44516,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringProducerPostResponse" + "$ref": "#/components/schemas/v1PolicyRouteTagSetsPostResponse" } } } } }, - "description": "Create a new B2B extranet peering service producer" + "description": "Create a new route tag scoped to the enterprise" } }, - "/v1/extranets-b2b": { + "/v1/sites": { "post": { "security": [ { @@ -41275,7 +44548,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPostRequest" + "$ref": "#/components/schemas/v1SitesPostRequest" } } } @@ -41286,17 +44559,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPostResponse" + "$ref": "#/components/schemas/v1SitesPostResponse" } } } } }, - "description": "Create a new B2B extranet producer" - } - }, - "/v1/device/snapshot": { - "post": { + "description": "Create an enterprise site" + }, + "get": { "security": [ { "jwtAuth": [] @@ -41313,31 +44584,23 @@ "description": "Bearer token. Format: Bearer " } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DeviceSnapshotPostRequest" - } - } - } - }, "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DeviceSnapshotPostResponse" + "$ref": "#/components/schemas/v1SitesGetResponse" } } } } }, - "description": "Create a device snapshot" - }, - "get": { + "description": "Get sites for the current enterprise" + } + }, + "/v1/global/site-lists": { + "post": { "security": [ { "jwtAuth": [] @@ -41354,21 +44617,31 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalSiteListsPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DeviceSnapshotGetResponse" + "$ref": "#/components/schemas/v1GlobalSiteListsPostResponse" } } } } }, - "description": "Get the specified device snapshots using the snapshot id" + "description": "Create a new site list scoped to the enterprise" }, - "put": { + "get": { "security": [ { "jwtAuth": [] @@ -41385,33 +44658,23 @@ "description": "Bearer token. Format: Bearer " } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DeviceSnapshotPutRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DeviceSnapshotPutResponse" + "$ref": "#/components/schemas/v1GlobalSiteListsGetResponse" } } } } }, - "description": "Update an existing device snapshot" + "description": "Get a list of site lists under the currently logged in enterprise" } }, - "/v1/extranets": { - "post": { + "/v1/global/apps/app-lists/{appListId}": { + "delete": { "security": [ { "jwtAuth": [] @@ -41426,30 +44689,32 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1ExtranetsPostRequest" - } + }, + { + "name": "appListId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsPostResponse" + "$ref": "#/components/schemas/v1GlobalAppsAppListsAppListIdDeleteResponse" } } } } - } + }, + "description": "Delete an app list under the current enterprise" }, "get": { "security": [ @@ -41466,6 +44731,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "appListId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -41474,16 +44750,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsGetResponse" + "$ref": "#/components/schemas/v1GlobalAppsAppListsAppListIdGetResponse" } } } } - } - } - }, - "/v1/gateways": { - "post": { + }, + "description": "Get the configuration for an app list under the current enterprise" + }, + "put": { "security": [ { "jwtAuth": [] @@ -41498,6 +44773,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "appListId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "requestBody": { @@ -41505,7 +44791,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GatewaysPostRequest" + "$ref": "#/components/schemas/v1GlobalAppsAppListsAppListIdPutRequest" } } } @@ -41516,13 +44802,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GatewaysPostResponse" + "$ref": "#/components/schemas/v1GlobalAppsAppListsAppListIdPutResponse" } } } } - } - }, + }, + "description": "Overwrite the configuration for an app list under the current enterprise" + } + }, + "/v1/data-assurance/assurances/global/{id}": { "delete": { "security": [ { @@ -41541,9 +44830,9 @@ }, { "name": "id", - "in": "query", + "in": "path", + "required": true, "description": "", - "required": false, "schema": { "type": "integer", "format": "int64", @@ -41557,14 +44846,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GatewaysDeleteResponse" + "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalIdDeleteResponse" } } } } - } + }, + "description": "Delete an assurance under the current enterprise" }, - "put": { + "get": { "security": [ { "jwtAuth": [] @@ -41579,34 +44869,34 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1GatewaysPutRequest" - } + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GatewaysPutResponse" + "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalIdGetResponse" } } } } - } - } - }, - "/v1/global/apps/custom": { - "post": { + }, + "description": "Get the config for an assurance under the current enterprise" + }, + "put": { "security": [ { "jwtAuth": [] @@ -41621,6 +44911,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "requestBody": { @@ -41628,7 +44929,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomPostRequest" + "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalIdPutRequest" } } } @@ -41639,15 +44940,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomPostResponse" + "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalIdPutResponse" } } } } }, - "description": "Create a new global app under the current enterprise" - }, - "get": { + "description": "Overwrite a pre-existing assurance under the current enterprise" + } + }, + "/v1/extranets-b2b/consumer/{id}": { + "delete": { "security": [ { "jwtAuth": [] @@ -41662,6 +44965,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -41670,17 +44984,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bConsumerIdDeleteResponse" } } } } }, - "description": "Get all global apps mapped by the current enterprise" - } - }, - "/v1/global/content-filters": { - "post": { + "description": "Delete a B2B extranet consumer" + }, + "get": { "security": [ { "jwtAuth": [] @@ -41695,33 +45007,36 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1GlobalContentFiltersPostRequest" - } + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalContentFiltersPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bConsumerIdGetResponse" } } } } }, - "description": "Configure a new content filter under the current enterprise" - }, - "get": { + "description": "Get a B2B extranet consumer" + } + }, + "/v1/extranets-b2b/customer/{id}": { + "delete": { "security": [ { "jwtAuth": [] @@ -41736,6 +45051,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -41744,17 +45070,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalContentFiltersGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bCustomerIdDeleteResponse" } } } } }, - "description": "Get basic details for all content filter under the current enterprise" + "description": "Delete a B2B extranet customer" } }, - "/v1/global/lan-segments": { - "post": { + "/v1/extranets-b2b-peering/match/service-to-customer/{id}": { + "delete": { "security": [ { "jwtAuth": [] @@ -41769,31 +45095,32 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1GlobalLanSegmentsPostRequest" - } + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "ID for the service to customer match to be deleted", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalLanSegmentsPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse" } } } } }, - "description": "Create a new lan-segment scoped to the enterprise" + "description": "Unsubscribe a customer from a service" }, "get": { "security": [ @@ -41810,6 +45137,28 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "Service id for which match details are requested", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + }, + { + "name": "customerId", + "in": "query", + "description": "Customer id", + "required": true, + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -41818,17 +45167,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalLanSegmentsGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse" } } } } }, - "description": "Get a list of lan-segments under the currently logged in enterprise" + "description": "Get details for a service to customer subscription" } }, - "/v1/extranet-public-vif": { - "post": { + "/v1/extranets-b2b-peering/customer/{id}": { + "delete": { "security": [ { "jwtAuth": [] @@ -41843,31 +45192,32 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1ExtranetPublicVifPostRequest" - } + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "ID of the peering service customer", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetPublicVifPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringCustomerIdDeleteResponse" } } } } }, - "description": "Create Public Vif service" + "description": "Delete a B2B extranet peering service customer" }, "get": { "security": [ @@ -41884,6 +45234,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "ID of the peering service customer", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -41892,17 +45253,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetPublicVifGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringCustomerIdGetResponse" } } } } }, - "description": "Get Public Vif summary" + "description": "Get a B2B extranet peering service customer" } }, - "/v1/policy/route-tag-sets": { - "post": { + "/v1/extranets-b2b/{id}": { + "delete": { "security": [ { "jwtAuth": [] @@ -41917,35 +45278,34 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1PolicyRouteTagSetsPostRequest" - } + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "ID of the producer service to be deleted", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1PolicyRouteTagSetsPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bIdDeleteResponse" } } } } }, - "description": "Create a new route tag scoped to the enterprise" - } - }, - "/v1/sites": { - "post": { + "description": "Delete a B2B extranet producer" + }, + "put": { "security": [ { "jwtAuth": [] @@ -41960,6 +45320,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "ID of the B2B Application service", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "requestBody": { @@ -41967,7 +45338,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1SitesPostRequest" + "$ref": "#/components/schemas/v1ExtranetsB2bIdPutRequest" } } } @@ -41978,15 +45349,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1SitesPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bIdPutResponse" } } } } }, - "description": "Create an enterprise site" - }, - "get": { + "description": "Update a B2B extranet producer" + } + }, + "/v1/device/snapshot/{snapshotId}": { + "delete": { "security": [ { "jwtAuth": [] @@ -42001,25 +45374,29 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "snapshotId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1SitesGetResponse" - } - } - } + "204": { + "description": "No Content" } }, - "description": "Get sites for the current enterprise" + "description": "Delete specified device snapshot" } }, - "/v1/global/site-lists": { - "post": { + "/v1/devices/{deviceId}/draft": { + "delete": { "security": [ { "jwtAuth": [] @@ -42034,33 +45411,69 @@ "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/v1GlobalSiteListsPostRequest" - } - } + "responses": { + "204": { + "description": "No Content" } }, + "description": "Delete draft configuration" + }, + "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/v1GlobalSiteListsPostResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdDraftGetResponse" } } } } }, - "description": "Create a new site list scoped to the enterprise" + "description": "Get draft configuration" }, - "get": { + "post": { "security": [ { "jwtAuth": [] @@ -42075,24 +45488,45 @@ "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/v1DevicesDeviceIdDraftPostRequest" + } + } + } + }, "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalSiteListsGetResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdDraftPostResponse" } } } } }, - "description": "Get a list of site lists under the currently logged in enterprise" + "description": "Save draft configuration" } }, - "/v1/global/apps/app-lists/{appListId}": { + "/v1/extranets/{id}": { "delete": { "security": [ { @@ -42110,7 +45544,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "appListId", + "name": "id", "in": "path", "required": true, "description": "", @@ -42127,13 +45561,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsAppListsAppListIdDeleteResponse" + "$ref": "#/components/schemas/v1ExtranetsIdDeleteResponse" } } } } - }, - "description": "Delete an app list under the current enterprise" + } }, "get": { "security": [ @@ -42152,7 +45585,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "appListId", + "name": "id", "in": "path", "required": true, "description": "", @@ -42169,13 +45602,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsAppListsAppListIdGetResponse" + "$ref": "#/components/schemas/v1ExtranetsIdGetResponse" } } } } - }, - "description": "Get the configuration for an app list under the current enterprise" + } }, "put": { "security": [ @@ -42194,7 +45626,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "appListId", + "name": "id", "in": "path", "required": true, "description": "", @@ -42210,7 +45642,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsAppListsAppListIdPutRequest" + "$ref": "#/components/schemas/v1ExtranetsIdPutRequest" } } } @@ -42221,16 +45653,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsAppListsAppListIdPutResponse" + "$ref": "#/components/schemas/v1ExtranetsIdPutResponse" } } } } - }, - "description": "Overwrite the configuration for an app list under the current enterprise" + } } }, - "/v1/data-assurance/assurances/global/{id}": { + "/v1/extranet/b2b/producer/{id}": { "delete": { "security": [ { @@ -42265,15 +45696,57 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalIdDeleteResponse" + "$ref": "#/components/schemas/v1ExtranetB2bProducerIdDeleteResponse" + } + } + } + } + }, + "description": "Delete an inter-enterprise extranet service" + }, + "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": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bProducerIdGetResponse" } } } } }, - "description": "Delete an assurance under the current enterprise" + "description": "Get an inter-enterprise extranet service" }, - "get": { + "put": { "security": [ { "jwtAuth": [] @@ -42301,21 +45774,33 @@ } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bProducerIdPutRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalIdGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bProducerIdPutResponse" } } } } }, - "description": "Get the config for an assurance under the current enterprise" - }, - "put": { + "description": "Update an inter-enterprise extranet service" + } + }, + "/v1/extranet/b2b/consumers/{id}": { + "delete": { "security": [ { "jwtAuth": [] @@ -42343,33 +45828,21 @@ } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalIdPutRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DataAssuranceAssurancesGlobalIdPutResponse" + "$ref": "#/components/schemas/v1ExtranetB2bConsumersIdDeleteResponse" } } } } }, - "description": "Overwrite a pre-existing assurance under the current enterprise" - } - }, - "/v1/extranets-b2b/consumer/{id}": { - "delete": { + "description": "Delete an extranet service consumer subscription" + }, + "put": { "security": [ { "jwtAuth": [] @@ -42389,7 +45862,7 @@ "name": "id", "in": "path", "required": true, - "description": "", + "description": "Consumer subscription id", "schema": { "type": "integer", "format": "int64", @@ -42397,21 +45870,33 @@ } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bConsumersIdPutRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bConsumerIdDeleteResponse" + "$ref": "#/components/schemas/v1ExtranetB2bConsumersIdPutResponse" } } } } }, - "description": "Delete a B2B extranet consumer" - }, - "get": { + "description": "Update extranet service consumer" + } + }, + "/v1/extranet/b2b/customers/{id}": { + "delete": { "security": [ { "jwtAuth": [] @@ -42445,17 +45930,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bConsumerIdGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bCustomersIdDeleteResponse" } } } } }, - "description": "Get a B2B extranet consumer" - } - }, - "/v1/extranets-b2b/customer/{id}": { - "delete": { + "description": "Delete an extranet service customer" + }, + "put": { "security": [ { "jwtAuth": [] @@ -42483,22 +45966,32 @@ } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bCustomersIdPutRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bCustomerIdDeleteResponse" + "$ref": "#/components/schemas/v1ExtranetB2bCustomersIdPutResponse" } } } } }, - "description": "Delete a B2B extranet customer" + "description": "Update an extranet service customer" } }, - "/v1/extranets-b2b-peering/match/service-to-customer/{id}": { + "/v1/extranet/b2b/matches/{matchId}": { "delete": { "security": [ { @@ -42516,10 +46009,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "matchId", "in": "path", "required": true, - "description": "ID for the service to customer match to be deleted", + "description": "Match id (URL path :matchId)", "schema": { "type": "integer", "format": "int64", @@ -42533,13 +46026,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesMatchIdDeleteResponse" } } } } }, - "description": "Unsubscribe a customer from a service" + "description": "Delete an extranet service match" }, "get": { "security": [ @@ -42558,21 +46051,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "matchId", "in": "path", "required": true, - "description": "Service id for which match details are requested", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } - }, - { - "name": "customerId", - "in": "query", - "description": "Customer id", - "required": true, + "description": "Match id (URL path :matchId)", "schema": { "type": "integer", "format": "int64", @@ -42586,17 +46068,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesMatchIdGetResponse" } } } } }, - "description": "Get details for a service to customer subscription" - } - }, - "/v1/extranets-b2b-peering/customer/{id}": { - "delete": { + "description": "Get extranet service match details" + }, + "put": { "security": [ { "jwtAuth": [] @@ -42613,10 +46093,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "matchId", "in": "path", "required": true, - "description": "ID of the peering service customer", + "description": "Match id (URL path :matchId)", "schema": { "type": "integer", "format": "int64", @@ -42624,21 +46104,33 @@ } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bMatchesMatchIdPutRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringCustomerIdDeleteResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesMatchIdPutResponse" } } } } }, - "description": "Delete a B2B extranet peering service customer" - }, - "get": { + "description": "Update extranet service match" + } + }, + "/v1/global/apps/custom/{appId}": { + "delete": { "security": [ { "jwtAuth": [] @@ -42655,10 +46147,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "appId", "in": "path", "required": true, - "description": "ID of the peering service customer", + "description": "", "schema": { "type": "integer", "format": "int64", @@ -42672,17 +46164,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringCustomerIdGetResponse" + "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdDeleteResponse" } } } } }, - "description": "Get a B2B extranet peering service customer" - } - }, - "/v1/extranets-b2b/{id}": { - "delete": { + "description": "Delete a global app under the current enterprise" + }, + "get": { "security": [ { "jwtAuth": [] @@ -42699,10 +46189,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "appId", "in": "path", "required": true, - "description": "ID of the producer service to be deleted", + "description": "", "schema": { "type": "integer", "format": "int64", @@ -42716,13 +46206,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bIdDeleteResponse" + "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdGetResponse" } } } } }, - "description": "Delete a B2B extranet producer" + "description": "Get the configuration for a global app under the current enterprise" }, "put": { "security": [ @@ -42741,10 +46231,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "appId", "in": "path", "required": true, - "description": "ID of the B2B Application service", + "description": "", "schema": { "type": "integer", "format": "int64", @@ -42757,7 +46247,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bIdPutRequest" + "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdPutRequest" } } } @@ -42768,16 +46258,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bIdPutResponse" + "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdPutResponse" } } } } }, - "description": "Update a B2B extranet producer" + "description": "Overwrite the configuration for a global app under the current enterprise" } }, - "/v1/device/snapshot/{snapshotId}": { + "/v1/global/content-filters/{globalContentFilterId}": { "delete": { "security": [ { @@ -42795,10 +46285,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "snapshotId", + "name": "globalContentFilterId", "in": "path", "required": true, - "description": "", + "description": "ID of the global content filter to remove.", "schema": { "type": "integer", "format": "int64", @@ -42807,48 +46297,18 @@ } ], "responses": { - "204": { - "description": "No Content" - } - }, - "description": "Delete specified device snapshot" - } - }, - "/v1/devices/{deviceId}/draft": { - "delete": { - "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 + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdDeleteResponse" + } + } } } - ], - "responses": { - "204": { - "description": "No Content" - } }, - "description": "Delete draft configuration" + "description": "Delete a content filter under the current enterprise" }, "get": { "security": [ @@ -42867,10 +46327,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "globalContentFilterId", "in": "path", "required": true, - "description": "", + "description": "ID of the global content filter whose configuration should be returned.", "schema": { "type": "integer", "format": "int64", @@ -42884,15 +46344,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdDraftGetResponse" + "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdGetResponse" } } } } }, - "description": "Get draft configuration" + "description": "Get the config for a content filter under the current enterprise" }, - "post": { + "put": { "security": [ { "jwtAuth": [] @@ -42909,10 +46369,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "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", @@ -42925,27 +46385,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdDraftPostRequest" + "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdPutRequest" } } } }, "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdDraftPostResponse" + "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdPutResponse" } } } } }, - "description": "Save draft configuration" + "description": "Overwrite a pre-existing content filter under the current enterprise" } }, - "/v1/extranets/{id}": { + "/v1/global/lan-segments/{id}": { "delete": { "security": [ { @@ -42975,19 +46435,15 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1ExtranetsIdDeleteResponse" - } - } - } + "204": { + "description": "No Content" } - } - }, - "get": { + }, + "description": "Delete a lan-segment" + } + }, + "/v1/pvif/{id}": { + "delete": { "security": [ { "jwtAuth": [] @@ -43007,7 +46463,7 @@ "name": "id", "in": "path", "required": true, - "description": "", + "description": "Producer service id", "schema": { "type": "integer", "format": "int64", @@ -43021,12 +46477,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsIdGetResponse" + "$ref": "#/components/schemas/v1PvifIdDeleteResponse" } } } } - } + }, + "description": "Delete a gateway Public VIF service" }, "put": { "security": [ @@ -43048,7 +46505,7 @@ "name": "id", "in": "path", "required": true, - "description": "", + "description": "Producer service id", "schema": { "type": "integer", "format": "int64", @@ -43061,7 +46518,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsIdPutRequest" + "$ref": "#/components/schemas/v1PvifIdPutRequest" } } } @@ -43072,15 +46529,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsIdPutResponse" + "$ref": "#/components/schemas/v1PvifIdPutResponse" } } } } - } + }, + "description": "Update a gateway Public VIF service" } }, - "/v1/global/apps/custom/{appId}": { + "/v1/policy/route-tag-sets/{id}": { "delete": { "security": [ { @@ -43098,7 +46556,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "appId", + "name": "id", "in": "path", "required": true, "description": "", @@ -43107,6 +46565,18 @@ "format": "int64", "example": 1234567891011 } + }, + { + "name": "level", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + } } ], "responses": { @@ -43115,15 +46585,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdDeleteResponse" + "$ref": "#/components/schemas/v1PolicyRouteTagSetsIdDeleteResponse" } } } } }, - "description": "Delete a global app under the current enterprise" - }, - "get": { + "description": "Create a new route-tag scoped to the enterprise" + } + }, + "/v1/sites/{siteId}": { + "delete": { "security": [ { "jwtAuth": [] @@ -43140,7 +46612,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "appId", + "name": "siteId", "in": "path", "required": true, "description": "", @@ -43152,20 +46624,13 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdGetResponse" - } - } - } + "204": { + "description": "No Content" } }, - "description": "Get the configuration for a global app under the current enterprise" + "description": "Delete a site" }, - "put": { + "post": { "security": [ { "jwtAuth": [] @@ -43182,7 +46647,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "appId", + "name": "siteId", "in": "path", "required": true, "description": "", @@ -43198,7 +46663,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdPutRequest" + "$ref": "#/components/schemas/v1SitesSiteIdPostRequest" } } } @@ -43209,16 +46674,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdPutResponse" + "$ref": "#/components/schemas/v1SitesSiteIdPostResponse" } } } } }, - "description": "Overwrite the configuration for a global app under the current enterprise" + "description": "Update a site" } }, - "/v1/global/content-filters/{globalContentFilterId}": { + "/v1/global/site-lists/{id}": { "delete": { "security": [ { @@ -43236,10 +46701,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "globalContentFilterId", + "name": "id", "in": "path", "required": true, - "description": "ID of the global content filter to remove.", + "description": "", "schema": { "type": "integer", "format": "int64", @@ -43248,18 +46713,11 @@ } ], "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdDeleteResponse" - } - } - } + "204": { + "description": "No Content" } }, - "description": "Delete a content filter under the current enterprise" + "description": "Delete a site list" }, "get": { "security": [ @@ -43278,10 +46736,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "globalContentFilterId", + "name": "id", "in": "path", "required": true, - "description": "ID of the global content filter whose configuration should be returned.", + "description": "", "schema": { "type": "integer", "format": "int64", @@ -43295,13 +46753,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdGetResponse" + "$ref": "#/components/schemas/v1GlobalSiteListsIdGetResponse" } } } } }, - "description": "Get the config for a content filter under the current enterprise" + "description": "Get a details of a site list" }, "put": { "security": [ @@ -43320,10 +46778,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "globalContentFilterId", + "name": "id", "in": "path", "required": true, - "description": "ID of the global content filter to replace with the supplied configuration.", + "description": "", "schema": { "type": "integer", "format": "int64", @@ -43336,7 +46794,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdPutRequest" + "$ref": "#/components/schemas/v1GlobalSiteListsIdPutRequest" } } } @@ -43347,17 +46805,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalContentFiltersGlobalContentFilterIdPutResponse" + "$ref": "#/components/schemas/v1GlobalSiteListsIdPutResponse" } } } } }, - "description": "Overwrite a pre-existing content filter under the current enterprise" + "description": "Update a new site list scoped to the enterprise" } }, - "/v1/global/lan-segments/{id}": { - "delete": { + "/v1/extranets/source-segments": { + "post": { "security": [ { "jwtAuth": [] @@ -43372,29 +46830,67 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetsSourceSegmentsPostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetsSourceSegmentsPostResponse" + } + } + } + } + } + } + }, + "/v1/enterprise/snapshot": { + "get": { + "security": [ { - "name": "id", - "in": "path", + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", "required": true, - "description": "", "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } + "type": "string" + }, + "description": "Bearer token. Format: Bearer " } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1EnterpriseSnapshotGetResponse" + } + } + } } }, - "description": "Delete a lan-segment" + "description": "Get a all of the device snapshots for every device in an enterprise" } }, - "/v1/extranet-public-vif/{id}": { - "delete": { + "/v1/enterprise/allocation": { + "get": { "security": [ { "jwtAuth": [] @@ -43409,17 +46905,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -43428,14 +46913,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetPublicVifIdDeleteResponse" + "$ref": "#/components/schemas/v1EnterpriseAllocationGetResponse" } } } } }, - "description": "Delete Public Vif service" - }, + "description": "Get all allocation for the given enterprise on a given month" + } + }, + "/v1/global/apps/categories": { "get": { "security": [ { @@ -43451,17 +46938,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "Public VIF producer policy", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -43470,15 +46946,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetPublicVifIdGetResponse" + "$ref": "#/components/schemas/v1GlobalAppsCategoriesGetResponse" } } } } }, - "description": "Get Public Vif service" - }, - "put": { + "description": "Get all app categories holding Graphiant apps" + } + }, + "/v1/global/apps/custom/{appId}/details/app-lists": { + "get": { "security": [ { "jwtAuth": [] @@ -43495,10 +46973,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "appId", "in": "path", "required": true, - "description": "Public VIF producer service id", + "description": "", "schema": { "type": "integer", "format": "int64", @@ -43506,33 +46984,23 @@ } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1ExtranetPublicVifIdPutRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetPublicVifIdPutResponse" + "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdDetailsAppListsGetResponse" } } } } }, - "description": "Update Public Vif service" + "description": "Get all app lists that contain the relevant global app" } }, - "/v1/policy/route-tag-sets/{id}": { - "delete": { + "/v1/global/apps/app-list-options": { + "get": { "security": [ { "jwtAuth": [] @@ -43547,29 +47015,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } - }, - { - "name": "level", - "in": "query", - "description": "", - "required": false, - "schema": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 - } } ], "responses": { @@ -43578,17 +47023,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1PolicyRouteTagSetsIdDeleteResponse" + "$ref": "#/components/schemas/v1GlobalAppsAppListOptionsGetResponse" } } } } }, - "description": "Create a new route-tag scoped to the enterprise" + "description": "Gets all apps and categories assignable to an app list for the the current enterprise" } }, - "/v1/sites/{siteId}": { - "delete": { + "/v1/global/apps/categories/{categoryId}/apps": { + "get": { "security": [ { "jwtAuth": [] @@ -43605,7 +47050,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "siteId", + "name": "categoryId", "in": "path", "required": true, "description": "", @@ -43617,13 +47062,22 @@ } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalAppsCategoriesCategoryIdAppsGetResponse" + } + } + } } }, - "description": "Delete a site" - }, - "post": { + "description": "Get all Graphiant apps in an app category" + } + }, + "/v1/global/apps/app-lists/{appListId}/details/apps": { + "get": { "security": [ { "jwtAuth": [] @@ -43640,7 +47094,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "siteId", + "name": "appListId", "in": "path", "required": true, "description": "", @@ -43651,33 +47105,23 @@ } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1SitesSiteIdPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1SitesSiteIdPostResponse" + "$ref": "#/components/schemas/v1GlobalAppsAppListsAppListIdDetailsAppsGetResponse" } } } } }, - "description": "Update a site" + "description": "Get all apps that are members of the provided app list" } }, - "/v1/global/site-lists/{id}": { - "delete": { + "/v1/data-assurance/assurances/applications/{bucketAppName}": { + "get": { "security": [ { "jwtAuth": [] @@ -43694,25 +47138,33 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "bucketAppName", "in": "path", "required": true, "description": "", "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 + "type": "string", + "example": "example string" } } ], "responses": { - "204": { - "description": "No Content" + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse" + } + } + } } }, - "description": "Delete a site list" - }, - "get": { + "description": "Gets the assurance details for all edges under the current enterprise" + } + }, + "/v1/global/attached-edges": { + "post": { "security": [ { "jwtAuth": [] @@ -43727,34 +47179,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalAttachedEdgesPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalSiteListsIdGetResponse" + "$ref": "#/components/schemas/v1GlobalAttachedEdgesPostResponse" } } } } }, - "description": "Get a details of a site list" - }, - "put": { + "description": "Returns attached edges for global object" + } + }, + "/v1/extranets-b2b/customer-info/{id}": { + "get": { "security": [ { "jwtAuth": [] @@ -43782,33 +47235,23 @@ } } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1GlobalSiteListsIdPutRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalSiteListsIdPutResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bCustomerInfoIdGetResponse" } } } } }, - "description": "Update a new site list scoped to the enterprise" + "description": "Get B2B extranet application customer" } }, - "/v1/extranets/source-segments": { - "post": { + "/v1/extranets-b2b/{id}/customer-summary": { + "get": { "security": [ { "jwtAuth": [] @@ -43823,33 +47266,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1ExtranetsSourceSegmentsPostRequest" - } + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsSourceSegmentsPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bIdCustomerSummaryGetResponse" } } } } - } + }, + "description": "Get B2B extranet application customers summary" } }, - "/v1/enterprise/snapshot": { + "/v1/extranets-b2b/consumer-device-status/{id}": { "get": { "security": [ { @@ -43865,6 +47310,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -43873,16 +47329,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1EnterpriseSnapshotGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bConsumerDeviceStatusIdGetResponse" } } } } }, - "description": "Get a all of the device snapshots for every device in an enterprise" + "description": "Get B2B extranet consumer status" } }, - "/v1/enterprise/allocation": { + "/v1/extranets-b2b/consumer-summary": { "get": { "security": [ { @@ -43906,16 +47362,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1EnterpriseAllocationGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bConsumerSummaryGetResponse" } } } } }, - "description": "Get all allocation for the given enterprise on a given month" + "description": "Get B2B extranet consumers summary" } }, - "/v1/global/apps/categories": { + "/v1/extranets-b2b-general/customers-summary": { "get": { "security": [ { @@ -43939,16 +47395,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCategoriesGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bGeneralCustomersSummaryGetResponse" } } } } }, - "description": "Get all app categories holding Graphiant apps" + "description": "Get summary for a B2B extranet peering services customers" } }, - "/v1/global/apps/custom/{appId}/details/app-lists": { + "/v1/extranets-b2b-peering/producer/{id}/matching-customers-summary": { "get": { "security": [ { @@ -43966,10 +47422,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "appId", + "name": "id", "in": "path", "required": true, - "description": "", + "description": "ID of the customer", "schema": { "type": "integer", "format": "int64", @@ -43983,16 +47439,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCustomAppIdDetailsAppListsGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse" } } } } }, - "description": "Get all app lists that contain the relevant global app" + "description": "Get B2B extranet customers summary" } }, - "/v1/global/apps/app-list-options": { + "/v1/extranets-b2b-peering/match/services/summary/{id}": { "get": { "security": [ { @@ -44008,6 +47464,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "ID of the customer", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -44016,16 +47483,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsAppListOptionsGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse" } } } } }, - "description": "Gets all apps and categories assignable to an app list for the the current enterprise" + "description": "Get B2B extranet services matching customers summary" } }, - "/v1/global/apps/categories/{categoryId}/apps": { + "/v1/extranets-b2b-peering/consumer/{customerId}/consumer-details": { "get": { "security": [ { @@ -44043,7 +47510,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "categoryId", + "name": "customerId", "in": "path", "required": true, "description": "", @@ -44052,6 +47519,17 @@ "format": "int64", "example": 1234567891011 } + }, + { + "name": "serviceId", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -44060,16 +47538,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsCategoriesCategoryIdAppsGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse" } } } } }, - "description": "Get all Graphiant apps in an app category" + "description": "Get details of a service subscription for a customer" } }, - "/v1/global/apps/app-lists/{appListId}/details/apps": { + "/v1/extranets-b2b-peering/producer/{id}": { "get": { "security": [ { @@ -44087,10 +47565,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "appListId", + "name": "id", "in": "path", "required": true, - "description": "", + "description": "ID of the service", "schema": { "type": "integer", "format": "int64", @@ -44104,16 +47582,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAppsAppListsAppListIdDetailsAppsGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringProducerIdGetResponse" } } } } }, - "description": "Get all apps that are members of the provided app list" + "description": "Get B2B extranet peering service producer" } }, - "/v1/data-assurance/assurances/applications/{bucketAppName}": { + "/v1/extranets-b2b/{id}/producer": { "get": { "security": [ { @@ -44131,75 +47609,43 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "bucketAppName", + "name": "id", "in": "path", "required": true, "description": "", "schema": { - "type": "string", - "example": "example string" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse" - } - } + "type": "integer", + "format": "int64", + "example": 1234567891011 } - } - }, - "description": "Gets the assurance details for all edges under the current enterprise" - } - }, - "/v1/global/attached-edges": { - "post": { - "security": [ - { - "jwtAuth": [] - } - ], - "parameters": [ + }, { - "in": "header", - "name": "Authorization", - "required": true, + "name": "type", + "in": "query", + "description": "", + "required": false, "schema": { - "type": "string" - }, - "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1GlobalAttachedEdgesPostRequest" - } + "type": "string", + "example": "ENUM_VALUE" } } - }, + ], "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalAttachedEdgesPostResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bIdProducerGetResponse" } } } } }, - "description": "Returns attached edges for global object" + "description": "Get a B2B extranet producer" } }, - "/v1/extranets-b2b/customer-info/{id}": { + "/v1/extranets-b2b/producer-device-status/{id}": { "get": { "security": [ { @@ -44234,16 +47680,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bCustomerInfoIdGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bProducerDeviceStatusIdGetResponse" } } } } }, - "description": "Get B2B extranet application customer" + "description": "Get B2B extranet producer status" } }, - "/v1/extranets-b2b/{id}/customer-summary": { + "/v1/extranets-b2b/producers-summary": { "get": { "security": [ { @@ -44259,17 +47705,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -44278,16 +47713,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bIdCustomerSummaryGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bProducersSummaryGetResponse" } } } } }, - "description": "Get B2B extranet application customers summary" + "description": "Get B2B extranet producers summary" } }, - "/v1/extranets-b2b/consumer-device-status/{id}": { + "/v1/extranets-b2b-peering/consumer/{matchId}/match-details": { "get": { "security": [ { @@ -44305,7 +47740,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "matchId", "in": "path", "required": true, "description": "", @@ -44322,49 +47757,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bConsumerDeviceStatusIdGetResponse" - } - } - } - } - }, - "description": "Get B2B extranet consumer status" - } - }, - "/v1/extranets-b2b/consumer-summary": { - "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/v1ExtranetsB2bConsumerSummaryGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse" } } } } }, - "description": "Get B2B extranet consumers summary" + "description": "Get details of a service match for a customer" } }, - "/v1/extranets-b2b-general/customers-summary": { + "/v1/extranets-b2b-general/services-summary": { "get": { "security": [ { @@ -44388,17 +47790,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bGeneralCustomersSummaryGetResponse" + "$ref": "#/components/schemas/v1ExtranetsB2bGeneralServicesSummaryGetResponse" } } } } }, - "description": "Get summary for a B2B extranet peering services customers" + "description": "Get a summary for all the B2B extranet services" } }, - "/v1/extranets-b2b-peering/producer/{id}/matching-customers-summary": { - "get": { + "/v1/devices/session-status": { + "post": { "security": [ { "jwtAuth": [] @@ -44413,35 +47815,34 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "ID of the customer", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1DevicesSessionStatusPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse" + "$ref": "#/components/schemas/v1DevicesSessionStatusPostResponse" } } } } }, - "description": "Get B2B extranet customers summary" + "description": "Get all the BGP session states for the devices" } }, - "/v1/extranets-b2b-peering/match/services/summary/{id}": { + "/v1/devices/{deviceId}/candidate-circuits": { "get": { "security": [ { @@ -44459,10 +47860,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "deviceId", "in": "path", "required": true, - "description": "ID of the customer", + "description": "", "schema": { "type": "integer", "format": "int64", @@ -44476,16 +47877,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdCandidateCircuitsGetResponse" } } } } }, - "description": "Get B2B extranet services matching customers summary" + "description": "Get the candidate circuits for a device" } }, - "/v1/extranets-b2b-peering/consumer/{customerId}/consumer-details": { + "/v1/qos/circuit-profiles": { "get": { "security": [ { @@ -44501,28 +47902,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "customerId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } - }, - { - "name": "serviceId", - "in": "query", - "description": "", - "required": false, - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -44531,16 +47910,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse" + "$ref": "#/components/schemas/v1QosCircuitProfilesGetResponse" } } } } }, - "description": "Get details of a service subscription for a customer" + "description": "Returns a list of QoS profiles for circuits with associated queues & attributes" } }, - "/v1/extranets-b2b-peering/producer/{id}": { + "/v1/sites/{siteId}/circuits": { "get": { "security": [ { @@ -44558,10 +47937,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "siteId", "in": "path", "required": true, - "description": "ID of the service", + "description": "", "schema": { "type": "integer", "format": "int64", @@ -44575,16 +47954,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringProducerIdGetResponse" + "$ref": "#/components/schemas/v1SitesSiteIdCircuitsGetResponse" } } } } }, - "description": "Get B2B extranet peering service producer" + "description": "Get Circuits for the site" } }, - "/v1/extranets-b2b/{id}/producer": { + "/v1/devices/{deviceId}/vrf/protocols": { "get": { "security": [ { @@ -44602,7 +47981,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "deviceId", "in": "path", "required": true, "description": "", @@ -44613,14 +47992,15 @@ } }, { - "name": "type", + "name": "vrfName", "in": "query", - "description": "", - "required": false, + "description": "Valid Configured Vrf Name", + "required": true, "schema": { "type": "string", - "example": "ENUM_VALUE" - } + "example": "example string" + }, + "example": "lan-1-business" } ], "responses": { @@ -44629,16 +48009,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bIdProducerGetResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdVrfProtocolsGetResponse" } } } } - }, - "description": "Get a B2B extranet producer" + } } }, - "/v1/extranets-b2b/producer-device-status/{id}": { + "/v1/devices/{deviceId}/connectivity": { "get": { "security": [ { @@ -44656,7 +48035,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "deviceId", "in": "path", "required": true, "description": "", @@ -44673,16 +48052,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bProducerDeviceStatusIdGetResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdConnectivityGetResponse" } } } } }, - "description": "Get B2B extranet producer status" + "description": "Get the connectivity graph for a device" } }, - "/v1/extranets-b2b/producers-summary": { + "/v1/devices/{deviceId}/twamp/core": { "get": { "security": [ { @@ -44698,6 +48077,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -44706,16 +48096,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bProducersSummaryGetResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdTwampCoreGetResponse" } } } } }, - "description": "Get B2B extranet producers summary" + "description": "Get core TWAMP neighbors for a given device" } }, - "/v1/extranets-b2b-peering/consumer/{matchId}/match-details": { + "/v1/devices/{deviceId}/dhcp-server/leases": { "get": { "security": [ { @@ -44733,7 +48123,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "matchId", + "name": "deviceId", "in": "path", "required": true, "description": "", @@ -44750,16 +48140,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdDhcpServerLeasesGetResponse" } } } } }, - "description": "Get details of a service match for a customer" + "description": "Get current DHCP leases for a device" } }, - "/v1/extranets-b2b-general/services-summary": { + "/v1/policy/applications": { "get": { "security": [ { @@ -44783,17 +48173,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsB2bGeneralServicesSummaryGetResponse" + "$ref": "#/components/schemas/v1PolicyApplicationsGetResponse" } } } } }, - "description": "Get a summary for all the B2B extranet services" + "description": "Get a list of builtin DPI applications" } }, - "/v1/devices/session-status": { - "post": { + "/v1/devices/{deviceId}/policy/applications": { + "get": { "security": [ { "jwtAuth": [] @@ -44808,34 +48198,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DevicesSessionStatusPostRequest" - } + }, + { + "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/v1DevicesSessionStatusPostResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdPolicyApplicationsGetResponse" } } } } }, - "description": "Get all the BGP session states for the devices" + "description": "Get a list of builtin DPI applications able to be configured on a given device based on GNOS version" } }, - "/v1/devices/{deviceId}/candidate-circuits": { + "/v1/devices/{deviceId}": { "get": { "security": [ { @@ -44870,16 +48261,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdCandidateCircuitsGetResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdGetResponse" } } } } }, - "description": "Get the candidate circuits for a device" + "description": "Get a specific device" } }, - "/v1/qos/circuit-profiles": { + "/v1/devices/{deviceId}/versions/{version}": { "get": { "security": [ { @@ -44895,6 +48286,31 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "path", + "required": true, + "description": "16 bytes (base64 encoded) identifier for the device.", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 3000000000 + }, + { + "name": "version", + "in": "path", + "required": true, + "description": "8 bytes (base32 encoded) version number.", + "schema": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0 + }, + "example": 150 } ], "responses": { @@ -44903,16 +48319,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1QosCircuitProfilesGetResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdVersionsVersionGetResponse" } } } } }, - "description": "Returns a list of QoS profiles for circuits with associated queues & attributes" + "description": "Get device config for a specific version" } }, - "/v1/sites/{siteId}/circuits": { + "/v1/devices/{deviceId}/versions": { "get": { "security": [ { @@ -44930,15 +48346,16 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "siteId", + "name": "deviceId", "in": "path", "required": true, - "description": "", + "description": "16 bytes (base64 encoded) identifier for the device.", "schema": { "type": "integer", "format": "int64", "example": 1234567891011 - } + }, + "example": 3000000000 } ], "responses": { @@ -44947,16 +48364,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1SitesSiteIdCircuitsGetResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdVersionsGetResponse" } } } } }, - "description": "Get Circuits for the site" + "description": "Get device config versions" } }, - "/v1/devices/{deviceId}/vrf/protocols": { + "/v1/device/snapshot/{deviceId}": { "get": { "security": [ { @@ -44983,17 +48400,6 @@ "format": "int64", "example": 1234567891011 } - }, - { - "name": "vrfName", - "in": "query", - "description": "Valid Configured Vrf Name", - "required": true, - "schema": { - "type": "string", - "example": "example string" - }, - "example": "lan-1-business" } ], "responses": { @@ -45002,15 +48408,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdVrfProtocolsGetResponse" + "$ref": "#/components/schemas/v1DeviceSnapshotDeviceIdGetResponse" } } } } - } + }, + "description": "Get all of a device's snapshots" } }, - "/v1/devices/{deviceId}/connectivity": { + "/v1/devices": { "get": { "security": [ { @@ -45026,17 +48433,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "deviceId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -45045,16 +48441,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdConnectivityGetResponse" + "$ref": "#/components/schemas/v1DevicesGetResponse" } } } } }, - "description": "Get the connectivity graph for a device" + "description": "Get devices for the current enterprise" } }, - "/v1/devices/{deviceId}/twamp/core": { + "/v1/sites/{siteId}/devices": { "get": { "security": [ { @@ -45072,14 +48468,15 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "siteId", "in": "path", "required": true, "description": "", "schema": { "type": "integer", "format": "int64", - "example": 1234567891011 + "example": 12345678910, + "minimum": 0 } } ], @@ -45089,16 +48486,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdTwampCoreGetResponse" + "$ref": "#/components/schemas/v1SitesSiteIdDevicesGetResponse" } } } } }, - "description": "Get core TWAMP neighbors for a given device" + "description": "Get Devices for the site" } }, - "/v1/devices/{deviceId}/dhcp-server/leases": { + "/v1/devices-summary": { "get": { "security": [ { @@ -45114,17 +48511,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "deviceId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -45133,16 +48519,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdDhcpServerLeasesGetResponse" + "$ref": "#/components/schemas/v1DevicesSummaryGetResponse" } } } } }, - "description": "Get current DHCP leases for a device" + "description": "Get devices summary for the specified enterprise" } }, - "/v1/policy/applications": { + "/v1/global/domain-categories": { "get": { "security": [ { @@ -45166,16 +48552,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1PolicyApplicationsGetResponse" + "$ref": "#/components/schemas/v1GlobalDomainCategoriesGetResponse" } } } } }, - "description": "Get a list of builtin DPI applications" + "description": "Get all domain categories from the DPI engine" } }, - "/v1/devices/{deviceId}/policy/applications": { + "/v1/enterprise/configuration": { "get": { "security": [ { @@ -45191,17 +48577,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "deviceId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -45210,17 +48585,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdPolicyApplicationsGetResponse" + "$ref": "#/components/schemas/v1EnterpriseConfigurationGetResponse" } } } } }, - "description": "Get a list of builtin DPI applications able to be configured on a given device based on GNOS version" - } - }, - "/v1/devices/{deviceId}": { - "get": { + "description": "Get enterprise-level information relevant to device configuration" + }, + "put": { "security": [ { "jwtAuth": [] @@ -45235,35 +48608,34 @@ "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/v1EnterpriseConfigurationPutRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdGetResponse" + "$ref": "#/components/schemas/v1EnterpriseConfigurationPutResponse" } } } } }, - "description": "Get a specific device" + "description": "Update enterprise-level information relevant to device configuration" } }, - "/v1/devices/{deviceId}/versions/{version}": { + "/v1/extranets/{id}/status": { "get": { "security": [ { @@ -45281,29 +48653,15 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "id", "in": "path", "required": true, - "description": "16 bytes (base64 encoded) identifier for the device.", + "description": "", "schema": { "type": "integer", "format": "int64", "example": 1234567891011 - }, - "example": 3000000000 - }, - { - "name": "version", - "in": "path", - "required": true, - "description": "8 bytes (base32 encoded) version number.", - "schema": { - "type": "integer", - "format": "int32", - "example": 123, - "minimum": 0 - }, - "example": 150 + } } ], "responses": { @@ -45312,16 +48670,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdVersionsVersionGetResponse" + "$ref": "#/components/schemas/v1ExtranetsIdStatusGetResponse" } } } } - }, - "description": "Get device config for a specific version" + } } }, - "/v1/devices/{deviceId}/versions": { + "/v1/extranet/b2b/consumers/{customerId}": { "get": { "security": [ { @@ -45339,16 +48696,26 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "customerId", "in": "path", "required": true, - "description": "16 bytes (base64 encoded) identifier for the device.", + "description": "Partner customer id", "schema": { "type": "integer", "format": "int64", "example": 1234567891011 - }, - "example": 3000000000 + } + }, + { + "name": "serviceId", + "in": "query", + "description": "Producer service id", + "required": false, + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -45357,16 +48724,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdVersionsGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bConsumersCustomerIdGetResponse" } } } } }, - "description": "Get device config versions" + "description": "Get extranet service consumer subscription" } }, - "/v1/device/snapshot/{deviceId}": { + "/v1/extranet/b2b/consumers/{id}/device-status": { "get": { "security": [ { @@ -45384,7 +48751,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "id", "in": "path", "required": true, "description": "", @@ -45401,17 +48768,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DeviceSnapshotDeviceIdGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bConsumersIdDeviceStatusGetResponse" } } } } }, - "description": "Get all of a device's snapshots" + "description": "Get extranet consumer device rollout status" } }, - "/v1/devices": { - "get": { + "/v2/extranets-monitoring/consumers": { + "post": { "security": [ { "jwtAuth": [] @@ -45428,22 +48795,32 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2ExtranetsMonitoringConsumersPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesGetResponse" + "$ref": "#/components/schemas/v2ExtranetsMonitoringConsumersPostResponse" } } } } }, - "description": "Get devices for the current enterprise" + "description": "Get consumer list for b2b producer service" } }, - "/v1/sites/{siteId}/devices": { + "/v1/extranet/b2b/customers/{id}/details": { "get": { "security": [ { @@ -45461,15 +48838,14 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "siteId", + "name": "id", "in": "path", "required": true, "description": "", "schema": { "type": "integer", "format": "int64", - "example": 12345678910, - "minimum": 0 + "example": 1234567891011 } } ], @@ -45479,16 +48855,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1SitesSiteIdDevicesGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bCustomersIdDetailsGetResponse" } } } } }, - "description": "Get Devices for the site" + "description": "Get an extranet service customer" } }, - "/v1/devices-summary": { + "/v1/extranet/b2b/customers/{id}/matches/summary": { "get": { "security": [ { @@ -45504,6 +48880,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "Customer id", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -45512,16 +48899,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesSummaryGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bCustomersIdMatchesSummaryGetResponse" } } } } }, - "description": "Get devices summary for the specified enterprise" + "description": "Get matched services summary for a customer" } }, - "/v1/global/domain-categories": { + "/v1/extranet/b2b/customers/summary": { "get": { "security": [ { @@ -45545,16 +48932,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalDomainCategoriesGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bCustomersSummaryGetResponse" } } } } }, - "description": "Get all domain categories from the DPI engine" + "description": "List extranet service customers for the enterprise" } }, - "/v1/enterprise/configuration": { + "/v1/extranets-monitoring/lan-segments": { "get": { "security": [ { @@ -45570,65 +48957,46 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1EnterpriseConfigurationGetResponse" - } - } - } - } - }, - "description": "Get enterprise-level information relevant to device configuration" - }, - "put": { - "security": [ + }, { - "jwtAuth": [] - } - ], - "parameters": [ + "name": "id", + "in": "query", + "description": "Extranet Service Id", + "required": false, + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 800 + }, { - "in": "header", - "name": "Authorization", - "required": true, + "name": "isProvider", + "in": "query", + "description": "", + "required": false, "schema": { - "type": "string" + "type": "boolean", + "example": true }, - "description": "Bearer token. Format: Bearer " + "example": true } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1EnterpriseConfigurationPutRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1EnterpriseConfigurationPutResponse" + "$ref": "#/components/schemas/v1ExtranetsMonitoringLanSegmentsGetResponse" } } } } - }, - "description": "Update enterprise-level information relevant to device configuration" + } } }, - "/v1/extranets/{id}/status": { + "/v1/extranet/b2b/matches/{matchId}/details": { "get": { "security": [ { @@ -45646,7 +49014,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "matchId", "in": "path", "required": true, "description": "", @@ -45663,16 +49031,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsIdStatusGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesMatchIdDetailsGetResponse" } } } } - } + }, + "description": "Get match details for consumer accept flow" } }, - "/v2/extranets-monitoring/consumers": { - "post": { + "/v1/extranets-monitoring/nat-usage": { + "get": { "security": [ { "jwtAuth": [] @@ -45687,34 +49056,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "query", + "description": "Extranet Service Id", + "required": true, + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": 800 } ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2ExtranetsMonitoringConsumersPostRequest" - } - } - } - }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v2ExtranetsMonitoringConsumersPostResponse" + "$ref": "#/components/schemas/v1ExtranetsMonitoringNatUsageGetResponse" } } } } - }, - "description": "Get consumer list for b2b producer service" + } } }, - "/v1/extranets-monitoring/lan-segments": { + "/v1/extranet/b2b/producer/{id}/customers": { "get": { "security": [ { @@ -45733,26 +49103,14 @@ }, { "name": "id", - "in": "query", - "description": "Extranet Service Id", - "required": false, + "in": "path", + "required": true, + "description": "Producer service id", "schema": { "type": "integer", "format": "int64", "example": 1234567891011 - }, - "example": 800 - }, - { - "name": "isProvider", - "in": "query", - "description": "", - "required": false, - "schema": { - "type": "boolean", - "example": true - }, - "example": true + } } ], "responses": { @@ -45761,15 +49119,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsMonitoringLanSegmentsGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bProducerIdCustomersGetResponse" } } } } - } + }, + "description": "List customers matched to an extranet producer service" } }, - "/v1/extranets-monitoring/nat-usage": { + "/v1/extranet/b2b/producer/{id}/device-status": { "get": { "security": [ { @@ -45788,15 +49147,14 @@ }, { "name": "id", - "in": "query", - "description": "Extranet Service Id", + "in": "path", "required": true, + "description": "", "schema": { "type": "integer", "format": "int64", "example": 1234567891011 - }, - "example": 800 + } } ], "responses": { @@ -45805,12 +49163,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsMonitoringNatUsageGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bProducerIdDeviceStatusGetResponse" } } } } - } + }, + "description": "Get extranet producer device rollout status" } }, "/v1/extranets-monitoring/traffic-security-policy": { @@ -45856,6 +49215,39 @@ "description": "Get lists of traffic and security policies" } }, + "/v1/extranet/b2b/services/summary": { + "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/v1ExtranetB2bServicesSummaryGetResponse" + } + } + } + } + }, + "description": "List inter-enterprise extranet services" + } + }, "/v1/devices/{deviceId}/policy/zonepairs": { "get": { "security": [ @@ -46008,6 +49400,60 @@ } } }, + "/v1/regions/{regionId}/gateways": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "regionId", + "in": "path", + "required": true, + "description": "Graphiant region id", + "schema": { + "type": "integer", + "format": "int32", + "example": 123 + } + }, + { + "name": "storageProvider", + "in": "query", + "description": "Storage provider; only gateways with a LAN interface for this provider are returned", + "required": true, + "schema": { + "type": "string", + "example": "ENUM_VALUE" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1RegionsRegionIdGatewaysGetResponse" + } + } + } + } + }, + "description": "List gateway appliances in a region with at least one LAN interface for the given storage provider" + } + }, "/v1/gateways/summary": { "get": { "security": [ @@ -47220,16 +50666,355 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdInterfacesGetResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdInterfacesGetResponse" + } + } + } + } + }, + "description": "Get interfaces for the given device" + } + }, + "/v1/lldp/{interfaceId}/neighbors": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "interfaceId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1LldpInterfaceIdNeighborsGetResponse" + } + } + } + } + }, + "description": "Get the LLDP neighbors for an interface and optionally for a specific vendor" + } + }, + "/v1/lldp/{interfaceId}/summary": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "interfaceId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1LldpInterfaceIdSummaryGetResponse" + } + } + } + } + }, + "description": "Get the summary of LLDP neighbors for an interface" + } + }, + "/v1/lldp/{interfaceId}/vendors": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "interfaceId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1LldpInterfaceIdVendorsGetResponse" + } + } + } + } + }, + "description": "Get the list LLDP vendors for an interface" + } + }, + "/v1/global/lan-segments/{vrfId}/devices": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "vrfId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalLanSegmentsVrfIdDevicesGetResponse" + } + } + } + } + }, + "description": "Get a list of lan-segment devices under the currently logged in enterprise" + } + }, + "/v1/lan-segments/interfaces/public": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "deviceId", + "in": "query", + "description": "device id", + "required": true, + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1LanSegmentsInterfacesPublicGetResponse" + } + } + } + } + }, + "description": "Per LAN segment (VRF) on a device: interfaces split by globally routable IPv4 (for Public VIF / BGP)" + } + }, + "/v1/msp/managed-enterprise-contract-info": { + "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/v1MspManagedEnterpriseContractInfoGetResponse" + } + } + } + } + }, + "description": "Managed enterprises under the MSP with contract and credit allocation details for the requested month" + } + }, + "/v1/devices/{deviceId}/ospfv2/defaultOriginate": { + "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/v1DevicesDeviceIdOspfv2DefaultOriginateGetResponse" + } + } + } + } + } + } + }, + "/v1/devices/{deviceId}/ospfv3/defaultOriginate": { + "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/v1DevicesDeviceIdOspfv3DefaultOriginateGetResponse" } } } } - }, - "description": "Get interfaces for the given device" + } } }, - "/v1/lldp/{interfaceId}/neighbors": { + "/v1/presharedkey": { "get": { "security": [ { @@ -47245,17 +51030,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "interfaceId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -47264,16 +51038,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1LldpInterfaceIdNeighborsGetResponse" + "$ref": "#/components/schemas/v1PresharedkeyGetResponse" } } } } }, - "description": "Get the LLDP neighbors for an interface and optionally for a specific vendor" + "description": "Get all domain categories from the DPI engine" } }, - "/v1/lldp/{interfaceId}/summary": { + "/v1/pvif/{id}/details": { "get": { "security": [ { @@ -47291,10 +51065,10 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "interfaceId", + "name": "id", "in": "path", "required": true, - "description": "", + "description": "Producer service id", "schema": { "type": "integer", "format": "int64", @@ -47308,16 +51082,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1LldpInterfaceIdSummaryGetResponse" + "$ref": "#/components/schemas/v1PvifIdDetailsGetResponse" } } } } }, - "description": "Get the summary of LLDP neighbors for an interface" + "description": "Get a gateway Public VIF service" } }, - "/v1/lldp/{interfaceId}/vendors": { + "/v1/pvif/summary": { "get": { "security": [ { @@ -47333,17 +51107,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "interfaceId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -47352,16 +51115,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1LldpInterfaceIdVendorsGetResponse" + "$ref": "#/components/schemas/v1PvifSummaryGetResponse" } } } } }, - "description": "Get the list LLDP vendors for an interface" + "description": "List gateway Public VIF services" } }, - "/v1/global/lan-segments/{vrfId}/devices": { + "/v1/gateways/reference-consumer": { "get": { "security": [ { @@ -47377,17 +51140,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "vrfId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -47396,16 +51148,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalLanSegmentsVrfIdDevicesGetResponse" + "$ref": "#/components/schemas/v1GatewaysReferenceConsumerGetResponse" } } } } }, - "description": "Get a list of lan-segment devices under the currently logged in enterprise" + "description": "Get the priorly-configured IPSec gateway details for a customer, lan segment, region combination to be re-used for any new service matches for that customer with the given lan segment and region" } }, - "/v1/msp/managed-enterprise-contract-info": { + "/v1/regions": { "get": { "security": [ { @@ -47429,16 +51181,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1MspManagedEnterpriseContractInfoGetResponse" + "$ref": "#/components/schemas/v1RegionsGetResponse" } } } } }, - "description": "Managed enterprises under the MSP with contract and credit allocation details for the requested month" + "description": "Get regions used for the current enterprise" } }, - "/v1/devices/{deviceId}/ospfv2/defaultOriginate": { + "/v1/policy/route-tag-sets/tag-detail": { "get": { "security": [ { @@ -47454,17 +51206,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "deviceId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -47473,15 +51214,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdOspfv2DefaultOriginateGetResponse" + "$ref": "#/components/schemas/v1PolicyRouteTagSetsTagDetailGetResponse" } } } } - } + }, + "description": "Get all the route tags summary for the the enterprise" } }, - "/v1/devices/{deviceId}/ospfv3/defaultOriginate": { + "/v1/policy/route-tag-sets/tags": { "get": { "security": [ { @@ -47497,17 +51239,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "deviceId", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "responses": { @@ -47516,15 +51247,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdOspfv3DefaultOriginateGetResponse" + "$ref": "#/components/schemas/v1PolicyRouteTagSetsTagsGetResponse" } } } } - } + }, + "description": "Get all the route tags for the enterprise" } }, - "/v1/presharedkey": { + "/v1/policy/route-tag-sets/tags-summary": { "get": { "security": [ { @@ -47548,16 +51280,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1PresharedkeyGetResponse" + "$ref": "#/components/schemas/v1PolicyRouteTagSetsTagsSummaryGetResponse" } } } } }, - "description": "Get all domain categories from the DPI engine" + "description": "Get all the route tags summary for the the enterprise" } }, - "/v1/gateways/reference-consumer": { + "/v1/site/{id}/details/interfaces": { "get": { "security": [ { @@ -47573,6 +51305,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -47581,17 +51324,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GatewaysReferenceConsumerGetResponse" + "$ref": "#/components/schemas/v1SiteIdDetailsInterfacesGetResponse" } } } } }, - "description": "Get the priorly-configured IPSec gateway details for a customer, lan segment, region combination to be re-used for any new service matches for that customer with the given lan segment and region" + "description": "Get a list of a site's interfaces, loopback listed first" } }, - "/v1/regions": { - "get": { + "/v1/site/details/sitelists": { + "post": { "security": [ { "jwtAuth": [] @@ -47608,22 +51351,32 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1SiteDetailsSitelistsPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1RegionsGetResponse" + "$ref": "#/components/schemas/v1SiteDetailsSitelistsPostResponse" } } } } }, - "description": "Get regions used for the current enterprise" + "description": "Get a list of site list references for a site" } }, - "/v1/policy/route-tag-sets/tag-detail": { + "/v1/global/site-lists/{id}/sites": { "get": { "security": [ { @@ -47639,6 +51392,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -47647,16 +51411,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1PolicyRouteTagSetsTagDetailGetResponse" + "$ref": "#/components/schemas/v1GlobalSiteListsIdSitesGetResponse" } } } } }, - "description": "Get all the route tags summary for the the enterprise" + "description": "Get a details of a site list sites" } }, - "/v1/policy/route-tag-sets/tags": { + "/v1/global/ipsec-profile/{vpnProfileId}/site-to-site": { "get": { "security": [ { @@ -47672,6 +51436,17 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " + }, + { + "name": "vpnProfileId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } } ], "responses": { @@ -47680,16 +51455,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1PolicyRouteTagSetsTagsGetResponse" + "$ref": "#/components/schemas/v1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse" } } } } }, - "description": "Get all the route tags for the enterprise" + "description": "Get Site-to-site VPNs that are using the given global IPsec Profile" } }, - "/v1/policy/route-tag-sets/tags-summary": { + "/v1/sites/details": { "get": { "security": [ { @@ -47713,16 +51488,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1PolicyRouteTagSetsTagsSummaryGetResponse" + "$ref": "#/components/schemas/v1SitesDetailsGetResponse" } } } } }, - "description": "Get all the route tags summary for the the enterprise" + "description": "Get a list of sites with aggregated values and site wide status" } }, - "/v1/site/{id}/details/interfaces": { + "/v1/sites/map/details": { "get": { "security": [ { @@ -47740,15 +51515,61 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", - "in": "path", - "required": true, + "name": "lanSegmentIds", + "in": "query", "description": "", + "required": false, "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } + "type": "array", + "items": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": [ + 0 + ] + }, + "style": "form", + "explode": true + }, + { + "name": "siteIds", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": [ + 0 + ] + }, + "style": "form", + "explode": true + }, + { + "name": "siteListIds", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": [ + 0 + ] + }, + "style": "form", + "explode": true } ], "responses": { @@ -47757,17 +51578,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1SiteIdDetailsInterfacesGetResponse" + "$ref": "#/components/schemas/v1SitesMapDetailsGetResponse" } } } } }, - "description": "Get a list of a site's interfaces, loopback listed first" + "description": "Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site" } }, - "/v1/site/details/sitelists": { - "post": { + "/v1/devices/{deviceId}/slice/peers": { + "get": { "security": [ { "jwtAuth": [] @@ -47782,34 +51603,34 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1SiteDetailsSitelistsPostRequest" - } + }, + { + "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/v1SiteDetailsSitelistsPostResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdSlicePeersGetResponse" } } } } - }, - "description": "Get a list of site list references for a site" + } } }, - "/v1/global/site-lists/{id}/sites": { + "/v1/devices/{deviceId}/circuits/vrf-associations": { "get": { "security": [ { @@ -47827,7 +51648,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "id", + "name": "deviceId", "in": "path", "required": true, "description": "", @@ -47836,6 +51657,24 @@ "format": "int64", "example": 1234567891011 } + }, + { + "name": "circuitNames", + "in": "query", + "description": "Circuit name configured of wan interface", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "example": "isp" + }, + "example": [ + "isp" + ] + }, + "style": "form", + "explode": true } ], "responses": { @@ -47844,16 +51683,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalSiteListsIdSitesGetResponse" + "$ref": "#/components/schemas/v1DevicesDeviceIdCircuitsVrfAssociationsGetResponse" } } } } }, - "description": "Get a details of a site list sites" + "description": "Get the VRF, interface, &, if relevant, loopback interfaces for a list of circuits" } }, - "/v1/global/ipsec-profile/{vpnProfileId}/site-to-site": { + "/v1/lan-segments": { "get": { "security": [ { @@ -47871,15 +51710,54 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "vpnProfileId", - "in": "path", - "required": true, + "name": "deviceId", + "in": "query", "description": "", + "required": false, "schema": { "type": "integer", "format": "int64", "example": 1234567891011 } + }, + { + "name": "deviceIds", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "example": [ + 0 + ] + }, + "style": "form", + "explode": true + }, + { + "name": "filter", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "string", + "example": "example string" + } + }, + { + "name": "gatewayCloudProvider", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "string", + "example": "ENUM_VALUE" + } } ], "responses": { @@ -47888,16 +51766,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse" + "$ref": "#/components/schemas/v1LanSegmentsGetResponse" } } } } }, - "description": "Get Site-to-site VPNs that are using the given global IPsec Profile" + "description": "Get LAN Segments for the current enterprise" } }, - "/v1/sites/details": { + "/v1/zones": { "get": { "security": [ { @@ -47921,17 +51799,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1SitesDetailsGetResponse" + "$ref": "#/components/schemas/v1ZonesGetResponse" } } } } }, - "description": "Get a list of sites with aggregated values and site wide status" + "description": "Get Zones for the current enterprise" } }, - "/v1/sites/map/details": { - "get": { + "/v1/extranet/b2b/matches/pause": { + "put": { "security": [ { "jwtAuth": [] @@ -47946,82 +51824,35 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "lanSegmentIds", - "in": "query", - "description": "", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": [ - 0 - ] - }, - "style": "form", - "explode": true - }, - { - "name": "siteIds", - "in": "query", - "description": "", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": [ - 0 - ] - }, - "style": "form", - "explode": true - }, - { - "name": "siteListIds", - "in": "query", - "description": "", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - }, - "example": [ - 0 - ] - }, - "style": "form", - "explode": true } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bMatchesPausePutRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1SitesMapDetailsGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesPausePutResponse" } } } } }, - "description": "Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site" + "description": "Pause extranet service matches via customer summary" } }, - "/v1/devices/{deviceId}/slice/peers": { - "get": { + "/v1/extranets/resolve-policy-target": { + "post": { "security": [ { "jwtAuth": [] @@ -48036,26 +51867,25 @@ "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/v1ExtranetsResolvePolicyTargetPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdSlicePeersGetResponse" + "$ref": "#/components/schemas/v1ExtranetsResolvePolicyTargetPostResponse" } } } @@ -48063,8 +51893,8 @@ } } }, - "/v1/devices/{deviceId}/circuits/vrf-associations": { - "get": { + "/v1/extranet/b2b/customers/{id}/retry": { + "post": { "security": [ { "jwtAuth": [] @@ -48081,7 +51911,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "id", "in": "path", "required": true, "description": "", @@ -48090,76 +51920,35 @@ "format": "int64", "example": 1234567891011 } - }, - { - "name": "circuitNames", - "in": "query", - "description": "Circuit name configured of wan interface", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string", - "example": "isp" - }, - "example": [ - "isp" - ] - }, - "style": "form", - "explode": true } ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1DevicesDeviceIdCircuitsVrfAssociationsGetResponse" - } + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bCustomersIdRetryPostRequest" } } } }, - "description": "Get the VRF, interface, &, if relevant, loopback interfaces for a list of circuits" - } - }, - "/v1/lan-segments": { - "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/v1LanSegmentsGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bCustomersIdRetryPostResponse" } } } } }, - "description": "Get LAN Segments for the current enterprise" + "description": "Retry extranet service customer invite" } }, - "/v1/zones": { - "get": { + "/v1/extranet/b2b/producer/review": { + "post": { "security": [ { "jwtAuth": [] @@ -48176,22 +51965,32 @@ "description": "Bearer token. Format: Bearer " } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bProducerReviewPostRequest" + } + } + } + }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ZonesGetResponse" + "$ref": "#/components/schemas/v1ExtranetB2bProducerReviewPostResponse" } } } } }, - "description": "Get Zones for the current enterprise" + "description": "Review inter-enterprise extranet service configuration" } }, - "/v1/extranets/resolve-policy-target": { + "/v1/extranet/b2b/matches/review": { "post": { "security": [ { @@ -48214,7 +52013,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsResolvePolicyTargetPostRequest" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesReviewPostRequest" } } } @@ -48225,12 +52024,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsResolvePolicyTargetPostResponse" + "$ref": "#/components/schemas/v1ExtranetB2bMatchesReviewPostResponse" } } } } - } + }, + "description": "Review extranet service match" } }, "/v1/global/sync": { @@ -48567,6 +52367,168 @@ "description": "Update an enterprise (or MSP tenant) to use a new monthly or term-based contract. For MSPs, sets total pool credits and contract shape; per-managed-enterprise allocations are set via IAM CreateEnterprise / UpdateEnterprise." } }, + "/v1/extranet/b2b/consumers/{id}/prefixes": { + "put": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "Consumer subscription id", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bConsumersIdPrefixesPutRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bConsumersIdPrefixesPutResponse" + } + } + } + } + }, + "description": "Update extranet service consumer prefix NAT (peering preset)" + } + }, + "/v1/extranet/b2b/matches/{matchId}/status": { + "put": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "matchId", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bMatchesMatchIdStatusPutRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bMatchesMatchIdStatusPutResponse" + } + } + } + } + }, + "description": "Pause or resume an extranet service match" + } + }, + "/v1/extranet/b2b/producer/{id}/status": { + "put": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + }, + { + "name": "id", + "in": "path", + "required": true, + "description": "", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bProducerIdStatusPutRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetB2bProducerIdStatusPutResponse" + } + } + } + } + }, + "description": "Pause or resume an inter-enterprise extranet service" + } + }, "/v1/gateways/status": { "post": { "security": [ diff --git a/docs/AssuranceAppNameRecord.md b/docs/AssuranceAppNameRecord.md index 4e430604..1b344343 100644 --- a/docs/AssuranceAppNameRecord.md +++ b/docs/AssuranceAppNameRecord.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **affected_regions** | **int** | | [optional] **affected_sites** | **int** | | [optional] **affected_vrfs** | **int** | | [optional] +**app_ai_tag** | **str** | | [optional] **app_id** | **int** | | [optional] **app_id_records** | [**List[AssuranceAppIdRecord]**](AssuranceAppIdRecord.md) | | [optional] **app_name** | **str** | | [optional] diff --git a/docs/AssuranceApprovedAppEntry.md b/docs/AssuranceApprovedAppEntry.md new file mode 100644 index 00000000..01503dc1 --- /dev/null +++ b/docs/AssuranceApprovedAppEntry.md @@ -0,0 +1,33 @@ +# AssuranceApprovedAppEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active_users** | **int** | number of active users (required) | [optional] +**category** | **str** | approved AI tool category (required) | [optional] +**data_sent_kbps** | **float** | data sent in kbps (required) | [optional] +**id** | **str** | approved app entry identifier (required) | [optional] +**tool** | **str** | approved AI tool name (required) | [optional] + +## Example + +```python +from graphiant_sdk.models.assurance_approved_app_entry import AssuranceApprovedAppEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of AssuranceApprovedAppEntry from a JSON string +assurance_approved_app_entry_instance = AssuranceApprovedAppEntry.from_json(json) +# print the JSON string representation of the object +print(AssuranceApprovedAppEntry.to_json()) + +# convert the object into a dict +assurance_approved_app_entry_dict = assurance_approved_app_entry_instance.to_dict() +# create an instance of AssuranceApprovedAppEntry from a dict +assurance_approved_app_entry_from_dict = AssuranceApprovedAppEntry.from_dict(assurance_approved_app_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/AssuranceApprovedAppEntryRequest.md b/docs/AssuranceApprovedAppEntryRequest.md new file mode 100644 index 00000000..a59c4b46 --- /dev/null +++ b/docs/AssuranceApprovedAppEntryRequest.md @@ -0,0 +1,32 @@ +# AssuranceApprovedAppEntryRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_name** | **str** | app name to approve (required) | +**domain** | **str** | app name to approve | [optional] +**id** | **str** | approved app entry identifier | [optional] +**tag_requested** | **str** | resulting tag, approved or shadow (required) | + +## Example + +```python +from graphiant_sdk.models.assurance_approved_app_entry_request import AssuranceApprovedAppEntryRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AssuranceApprovedAppEntryRequest from a JSON string +assurance_approved_app_entry_request_instance = AssuranceApprovedAppEntryRequest.from_json(json) +# print the JSON string representation of the object +print(AssuranceApprovedAppEntryRequest.to_json()) + +# convert the object into a dict +assurance_approved_app_entry_request_dict = assurance_approved_app_entry_request_instance.to_dict() +# create an instance of AssuranceApprovedAppEntryRequest from a dict +assurance_approved_app_entry_request_from_dict = AssuranceApprovedAppEntryRequest.from_dict(assurance_approved_app_entry_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/AssuranceKpiMetric.md b/docs/AssuranceKpiMetric.md new file mode 100644 index 00000000..202f884b --- /dev/null +++ b/docs/AssuranceKpiMetric.md @@ -0,0 +1,34 @@ +# AssuranceKpiMetric + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**delta** | **float** | delta value for the metric | [optional] +**name** | **str** | name of the metric | [optional] +**percent** | **float** | AI adoption percent for the metric | [optional] +**tag** | **str** | AI adoption tag for the metric | [optional] +**token_usage** | **float** | AI adoption token usage value | [optional] +**value** | **float** | metric value (required) | [optional] + +## Example + +```python +from graphiant_sdk.models.assurance_kpi_metric import AssuranceKpiMetric + +# TODO update the JSON string below +json = "{}" +# create an instance of AssuranceKpiMetric from a JSON string +assurance_kpi_metric_instance = AssuranceKpiMetric.from_json(json) +# print the JSON string representation of the object +print(AssuranceKpiMetric.to_json()) + +# convert the object into a dict +assurance_kpi_metric_dict = assurance_kpi_metric_instance.to_dict() +# create an instance of AssuranceKpiMetric from a dict +assurance_kpi_metric_from_dict = AssuranceKpiMetric.from_dict(assurance_kpi_metric_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/AssuranceTopLevelKpi.md b/docs/AssuranceTopLevelKpi.md new file mode 100644 index 00000000..1cc83811 --- /dev/null +++ b/docs/AssuranceTopLevelKpi.md @@ -0,0 +1,32 @@ +# AssuranceTopLevelKpi + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data_transferred_kbps_metric** | [**AssuranceKpiMetric**](AssuranceKpiMetric.md) | | [optional] +**shadow_ai_tools_metric** | [**AssuranceKpiMetric**](AssuranceKpiMetric.md) | | [optional] +**tools_metric** | [**AssuranceKpiMetric**](AssuranceKpiMetric.md) | | [optional] +**users_metric** | [**AssuranceKpiMetric**](AssuranceKpiMetric.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.assurance_top_level_kpi import AssuranceTopLevelKpi + +# TODO update the JSON string below +json = "{}" +# create an instance of AssuranceTopLevelKpi from a JSON string +assurance_top_level_kpi_instance = AssuranceTopLevelKpi.from_json(json) +# print the JSON string representation of the object +print(AssuranceTopLevelKpi.to_json()) + +# convert the object into a dict +assurance_top_level_kpi_dict = assurance_top_level_kpi_instance.to_dict() +# create an instance of AssuranceTopLevelKpi from a dict +assurance_top_level_kpi_from_dict = AssuranceTopLevelKpi.from_dict(assurance_top_level_kpi_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/AssuranceUserDefinition.md b/docs/AssuranceUserDefinition.md new file mode 100644 index 00000000..290d5aae --- /dev/null +++ b/docs/AssuranceUserDefinition.md @@ -0,0 +1,35 @@ +# AssuranceUserDefinition + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data_sent** | **float** | tokens sent by the user (required) | [optional] +**managed** | **bool** | whether the user is managed (required) | [optional] +**sessions_day** | **float** | daily sessions for the user (required) | [optional] +**tokens_usage** | **float** | token usage (required) | [optional] +**tokens_usage_days** | **float** | token usage per day (required) | [optional] +**user** | **str** | user identifier (required) | [optional] +**vrf** | **str** | VRF associated with the user (required) | [optional] + +## Example + +```python +from graphiant_sdk.models.assurance_user_definition import AssuranceUserDefinition + +# TODO update the JSON string below +json = "{}" +# create an instance of AssuranceUserDefinition from a JSON string +assurance_user_definition_instance = AssuranceUserDefinition.from_json(json) +# print the JSON string representation of the object +print(AssuranceUserDefinition.to_json()) + +# convert the object into a dict +assurance_user_definition_dict = assurance_user_definition_instance.to_dict() +# create an instance of AssuranceUserDefinition from a dict +assurance_user_definition_from_dict = AssuranceUserDefinition.from_dict(assurance_user_definition_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/AssuranceWhatWidget.md b/docs/AssuranceWhatWidget.md new file mode 100644 index 00000000..01ae8227 --- /dev/null +++ b/docs/AssuranceWhatWidget.md @@ -0,0 +1,31 @@ +# AssuranceWhatWidget + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bubble_categories** | [**List[AssuranceKpiMetric]**](AssuranceKpiMetric.md) | | [optional] +**top_tools_by_active_users** | [**List[AssuranceKpiMetric]**](AssuranceKpiMetric.md) | | [optional] +**top_tools_by_data_transferred** | [**List[AssuranceKpiMetric]**](AssuranceKpiMetric.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.assurance_what_widget import AssuranceWhatWidget + +# TODO update the JSON string below +json = "{}" +# create an instance of AssuranceWhatWidget from a JSON string +assurance_what_widget_instance = AssuranceWhatWidget.from_json(json) +# print the JSON string representation of the object +print(AssuranceWhatWidget.to_json()) + +# convert the object into a dict +assurance_what_widget_dict = assurance_what_widget_instance.to_dict() +# create an instance of AssuranceWhatWidget from a dict +assurance_what_widget_from_dict = AssuranceWhatWidget.from_dict(assurance_what_widget_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/AssuranceWhenWidget.md b/docs/AssuranceWhenWidget.md new file mode 100644 index 00000000..21ef664a --- /dev/null +++ b/docs/AssuranceWhenWidget.md @@ -0,0 +1,32 @@ +# AssuranceWhenWidget + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**day_of_week** | [**List[AssuranceKpiMetric]**](AssuranceKpiMetric.md) | | [optional] +**hour_of_day** | [**List[AssuranceKpiMetric]**](AssuranceKpiMetric.md) | | [optional] +**monthly_active_users** | [**List[AssuranceKpiMetric]**](AssuranceKpiMetric.md) | | [optional] +**monthly_bandwidth_transferred** | [**List[AssuranceKpiMetric]**](AssuranceKpiMetric.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.assurance_when_widget import AssuranceWhenWidget + +# TODO update the JSON string below +json = "{}" +# create an instance of AssuranceWhenWidget from a JSON string +assurance_when_widget_instance = AssuranceWhenWidget.from_json(json) +# print the JSON string representation of the object +print(AssuranceWhenWidget.to_json()) + +# convert the object into a dict +assurance_when_widget_dict = assurance_when_widget_instance.to_dict() +# create an instance of AssuranceWhenWidget from a dict +assurance_when_widget_from_dict = AssuranceWhenWidget.from_dict(assurance_when_widget_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/AssuranceWhereWidget.md b/docs/AssuranceWhereWidget.md new file mode 100644 index 00000000..b12c34d6 --- /dev/null +++ b/docs/AssuranceWhereWidget.md @@ -0,0 +1,31 @@ +# AssuranceWhereWidget + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**top_sites_by_users** | [**List[AssuranceKpiMetric]**](AssuranceKpiMetric.md) | | [optional] +**top_users_by_data_transferred** | [**List[AssuranceUserDefinition]**](AssuranceUserDefinition.md) | | [optional] +**top_vrfs_by_users** | [**List[AssuranceKpiMetric]**](AssuranceKpiMetric.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.assurance_where_widget import AssuranceWhereWidget + +# TODO update the JSON string below +json = "{}" +# create an instance of AssuranceWhereWidget from a JSON string +assurance_where_widget_instance = AssuranceWhereWidget.from_json(json) +# print the JSON string representation of the object +print(AssuranceWhereWidget.to_json()) + +# convert the object into a dict +assurance_where_widget_dict = assurance_where_widget_instance.to_dict() +# create an instance of AssuranceWhereWidget from a dict +assurance_where_widget_from_dict = AssuranceWhereWidget.from_dict(assurance_where_widget_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/ConcealAgent.md b/docs/ConcealAgent.md new file mode 100644 index 00000000..ca2f4930 --- /dev/null +++ b/docs/ConcealAgent.md @@ -0,0 +1,34 @@ +# ConcealAgent + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | **str** | | [optional] +**disabled** | **bool** | | [optional] +**id** | **str** | | [optional] +**identifier** | **str** | | [optional] +**last_checkin** | **str** | | [optional] +**machine** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.conceal_agent import ConcealAgent + +# TODO update the JSON string below +json = "{}" +# create an instance of ConcealAgent from a JSON string +conceal_agent_instance = ConcealAgent.from_json(json) +# print the JSON string representation of the object +print(ConcealAgent.to_json()) + +# convert the object into a dict +conceal_agent_dict = conceal_agent_instance.to_dict() +# create an instance of ConcealAgent from a dict +conceal_agent_from_dict = ConcealAgent.from_dict(conceal_agent_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/DefaultApi.md b/docs/DefaultApi.md index 5c751091..1bf65dae 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -183,18 +183,44 @@ Method | HTTP request | Description [**v1_enterprises_managed_get**](DefaultApi.md#v1_enterprises_managed_get) | **GET** /v1/enterprises/managed | [**v1_enterprises_patch**](DefaultApi.md#v1_enterprises_patch) | **PATCH** /v1/enterprises | [**v1_enterprises_put**](DefaultApi.md#v1_enterprises_put) | **PUT** /v1/enterprises | +[**v1_extranet_b2b_consumers_customer_id_get**](DefaultApi.md#v1_extranet_b2b_consumers_customer_id_get) | **GET** /v1/extranet/b2b/consumers/{customerId} | +[**v1_extranet_b2b_consumers_id_delete**](DefaultApi.md#v1_extranet_b2b_consumers_id_delete) | **DELETE** /v1/extranet/b2b/consumers/{id} | +[**v1_extranet_b2b_consumers_id_device_status_get**](DefaultApi.md#v1_extranet_b2b_consumers_id_device_status_get) | **GET** /v1/extranet/b2b/consumers/{id}/device-status | +[**v1_extranet_b2b_consumers_id_prefixes_put**](DefaultApi.md#v1_extranet_b2b_consumers_id_prefixes_put) | **PUT** /v1/extranet/b2b/consumers/{id}/prefixes | +[**v1_extranet_b2b_consumers_id_put**](DefaultApi.md#v1_extranet_b2b_consumers_id_put) | **PUT** /v1/extranet/b2b/consumers/{id} | +[**v1_extranet_b2b_customers_id_delete**](DefaultApi.md#v1_extranet_b2b_customers_id_delete) | **DELETE** /v1/extranet/b2b/customers/{id} | +[**v1_extranet_b2b_customers_id_details_get**](DefaultApi.md#v1_extranet_b2b_customers_id_details_get) | **GET** /v1/extranet/b2b/customers/{id}/details | +[**v1_extranet_b2b_customers_id_matches_summary_get**](DefaultApi.md#v1_extranet_b2b_customers_id_matches_summary_get) | **GET** /v1/extranet/b2b/customers/{id}/matches/summary | +[**v1_extranet_b2b_customers_id_put**](DefaultApi.md#v1_extranet_b2b_customers_id_put) | **PUT** /v1/extranet/b2b/customers/{id} | +[**v1_extranet_b2b_customers_id_retry_post**](DefaultApi.md#v1_extranet_b2b_customers_id_retry_post) | **POST** /v1/extranet/b2b/customers/{id}/retry | +[**v1_extranet_b2b_customers_post**](DefaultApi.md#v1_extranet_b2b_customers_post) | **POST** /v1/extranet/b2b/customers | +[**v1_extranet_b2b_customers_summary_get**](DefaultApi.md#v1_extranet_b2b_customers_summary_get) | **GET** /v1/extranet/b2b/customers/summary | +[**v1_extranet_b2b_matches_customers_post**](DefaultApi.md#v1_extranet_b2b_matches_customers_post) | **POST** /v1/extranet/b2b/matches/customers | +[**v1_extranet_b2b_matches_match_id_consumer_check_post**](DefaultApi.md#v1_extranet_b2b_matches_match_id_consumer_check_post) | **POST** /v1/extranet/b2b/matches/{matchId}/consumer/check | +[**v1_extranet_b2b_matches_match_id_consumer_post**](DefaultApi.md#v1_extranet_b2b_matches_match_id_consumer_post) | **POST** /v1/extranet/b2b/matches/{matchId}/consumer | +[**v1_extranet_b2b_matches_match_id_delete**](DefaultApi.md#v1_extranet_b2b_matches_match_id_delete) | **DELETE** /v1/extranet/b2b/matches/{matchId} | +[**v1_extranet_b2b_matches_match_id_details_get**](DefaultApi.md#v1_extranet_b2b_matches_match_id_details_get) | **GET** /v1/extranet/b2b/matches/{matchId}/details | +[**v1_extranet_b2b_matches_match_id_get**](DefaultApi.md#v1_extranet_b2b_matches_match_id_get) | **GET** /v1/extranet/b2b/matches/{matchId} | +[**v1_extranet_b2b_matches_match_id_put**](DefaultApi.md#v1_extranet_b2b_matches_match_id_put) | **PUT** /v1/extranet/b2b/matches/{matchId} | +[**v1_extranet_b2b_matches_match_id_status_put**](DefaultApi.md#v1_extranet_b2b_matches_match_id_status_put) | **PUT** /v1/extranet/b2b/matches/{matchId}/status | +[**v1_extranet_b2b_matches_pause_put**](DefaultApi.md#v1_extranet_b2b_matches_pause_put) | **PUT** /v1/extranet/b2b/matches/pause | +[**v1_extranet_b2b_matches_post**](DefaultApi.md#v1_extranet_b2b_matches_post) | **POST** /v1/extranet/b2b/matches | +[**v1_extranet_b2b_matches_review_post**](DefaultApi.md#v1_extranet_b2b_matches_review_post) | **POST** /v1/extranet/b2b/matches/review | [**v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post**](DefaultApi.md#v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post) | **POST** /v1/extranet-b2b-monitoring/peering-service/bandwidth-usage | [**v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post**](DefaultApi.md#v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post) | **POST** /v1/extranet-b2b-monitoring/peering-service/consumers-usage/top | [**v1_extranet_b2b_monitoring_peering_service_consumption_overview_post**](DefaultApi.md#v1_extranet_b2b_monitoring_peering_service_consumption_overview_post) | **POST** /v1/extranet-b2b-monitoring/peering-service/consumption-overview | [**v1_extranet_b2b_monitoring_peering_service_service_customer_list_post**](DefaultApi.md#v1_extranet_b2b_monitoring_peering_service_service_customer_list_post) | **POST** /v1/extranet-b2b-monitoring/peering-service/service-customer-list | [**v1_extranet_b2b_monitoring_peering_service_service_health_post**](DefaultApi.md#v1_extranet_b2b_monitoring_peering_service_service_health_post) | **POST** /v1/extranet-b2b-monitoring/peering-service/service-health | [**v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post**](DefaultApi.md#v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post) | **POST** /v1/extranet-b2b-monitoring/peering-service/service-overtime-consumption | -[**v1_extranet_public_vif_check_post**](DefaultApi.md#v1_extranet_public_vif_check_post) | **POST** /v1/extranet-public-vif/check | -[**v1_extranet_public_vif_get**](DefaultApi.md#v1_extranet_public_vif_get) | **GET** /v1/extranet-public-vif | -[**v1_extranet_public_vif_id_delete**](DefaultApi.md#v1_extranet_public_vif_id_delete) | **DELETE** /v1/extranet-public-vif/{id} | -[**v1_extranet_public_vif_id_get**](DefaultApi.md#v1_extranet_public_vif_id_get) | **GET** /v1/extranet-public-vif/{id} | -[**v1_extranet_public_vif_id_put**](DefaultApi.md#v1_extranet_public_vif_id_put) | **PUT** /v1/extranet-public-vif/{id} | -[**v1_extranet_public_vif_post**](DefaultApi.md#v1_extranet_public_vif_post) | **POST** /v1/extranet-public-vif | +[**v1_extranet_b2b_producer_id_customers_get**](DefaultApi.md#v1_extranet_b2b_producer_id_customers_get) | **GET** /v1/extranet/b2b/producer/{id}/customers | +[**v1_extranet_b2b_producer_id_delete**](DefaultApi.md#v1_extranet_b2b_producer_id_delete) | **DELETE** /v1/extranet/b2b/producer/{id} | +[**v1_extranet_b2b_producer_id_device_status_get**](DefaultApi.md#v1_extranet_b2b_producer_id_device_status_get) | **GET** /v1/extranet/b2b/producer/{id}/device-status | +[**v1_extranet_b2b_producer_id_get**](DefaultApi.md#v1_extranet_b2b_producer_id_get) | **GET** /v1/extranet/b2b/producer/{id} | +[**v1_extranet_b2b_producer_id_put**](DefaultApi.md#v1_extranet_b2b_producer_id_put) | **PUT** /v1/extranet/b2b/producer/{id} | +[**v1_extranet_b2b_producer_id_status_put**](DefaultApi.md#v1_extranet_b2b_producer_id_status_put) | **PUT** /v1/extranet/b2b/producer/{id}/status | +[**v1_extranet_b2b_producer_post**](DefaultApi.md#v1_extranet_b2b_producer_post) | **POST** /v1/extranet/b2b/producer | +[**v1_extranet_b2b_producer_review_post**](DefaultApi.md#v1_extranet_b2b_producer_review_post) | **POST** /v1/extranet/b2b/producer/review | +[**v1_extranet_b2b_services_summary_get**](DefaultApi.md#v1_extranet_b2b_services_summary_get) | **GET** /v1/extranet/b2b/services/summary | [**v1_extranet_sites_usage_top_post**](DefaultApi.md#v1_extranet_sites_usage_top_post) | **POST** /v1/extranet/sites-usage/top | [**v1_extranets_b2b_consumer_device_status_id_get**](DefaultApi.md#v1_extranets_b2b_consumer_device_status_id_get) | **GET** /v1/extranets-b2b/consumer-device-status/{id} | [**v1_extranets_b2b_consumer_id_delete**](DefaultApi.md#v1_extranets_b2b_consumer_id_delete) | **DELETE** /v1/extranets-b2b/consumer/{id} | @@ -322,6 +348,7 @@ Method | HTTP request | Description [**v1_groups_root_get**](DefaultApi.md#v1_groups_root_get) | **GET** /v1/groups/root | [**v1_invitation_email_post**](DefaultApi.md#v1_invitation_email_post) | **POST** /v1/invitation/email | [**v1_lan_segments_get**](DefaultApi.md#v1_lan_segments_get) | **GET** /v1/lan-segments | +[**v1_lan_segments_interfaces_public_get**](DefaultApi.md#v1_lan_segments_interfaces_public_get) | **GET** /v1/lan-segments/interfaces/public | [**v1_lldp_interface_id_neighbors_get**](DefaultApi.md#v1_lldp_interface_id_neighbors_get) | **GET** /v1/lldp/{interfaceId}/neighbors | [**v1_lldp_interface_id_summary_get**](DefaultApi.md#v1_lldp_interface_id_summary_get) | **GET** /v1/lldp/{interfaceId}/summary | [**v1_lldp_interface_id_vendors_get**](DefaultApi.md#v1_lldp_interface_id_vendors_get) | **GET** /v1/lldp/{interfaceId}/vendors | @@ -339,8 +366,14 @@ Method | HTTP request | Description [**v1_policy_route_tag_sets_tags_get**](DefaultApi.md#v1_policy_route_tag_sets_tags_get) | **GET** /v1/policy/route-tag-sets/tags | [**v1_policy_route_tag_sets_tags_summary_get**](DefaultApi.md#v1_policy_route_tag_sets_tags_summary_get) | **GET** /v1/policy/route-tag-sets/tags-summary | [**v1_presharedkey_get**](DefaultApi.md#v1_presharedkey_get) | **GET** /v1/presharedkey | +[**v1_pvif_id_delete**](DefaultApi.md#v1_pvif_id_delete) | **DELETE** /v1/pvif/{id} | +[**v1_pvif_id_details_get**](DefaultApi.md#v1_pvif_id_details_get) | **GET** /v1/pvif/{id}/details | +[**v1_pvif_id_put**](DefaultApi.md#v1_pvif_id_put) | **PUT** /v1/pvif/{id} | +[**v1_pvif_post**](DefaultApi.md#v1_pvif_post) | **POST** /v1/pvif | +[**v1_pvif_summary_get**](DefaultApi.md#v1_pvif_summary_get) | **GET** /v1/pvif/summary | [**v1_qos_circuit_profiles_get**](DefaultApi.md#v1_qos_circuit_profiles_get) | **GET** /v1/qos/circuit-profiles | [**v1_regions_get**](DefaultApi.md#v1_regions_get) | **GET** /v1/regions | +[**v1_regions_region_id_gateways_get**](DefaultApi.md#v1_regions_region_id_gateways_get) | **GET** /v1/regions/{regionId}/gateways | [**v1_search_get**](DefaultApi.md#v1_search_get) | **GET** /v1/search | [**v1_site_details_sitelists_post**](DefaultApi.md#v1_site_details_sitelists_post) | **POST** /v1/site/details/sitelists | [**v1_site_id_details_interfaces_get**](DefaultApi.md#v1_site_id_details_interfaces_get) | **GET** /v1/site/{id}/details/interfaces | @@ -388,6 +421,7 @@ 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_agents_get**](DefaultApi.md#v1_ztagent_agents_get) | **GET** /v1/ztagent/agents | [**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 | @@ -407,6 +441,7 @@ Method | HTTP request | Description [**v2_assistant_get_conversations_post**](DefaultApi.md#v2_assistant_get_conversations_post) | **POST** /v2/assistant/get-conversations | [**v2_assistant_update_conversation_name_post**](DefaultApi.md#v2_assistant_update_conversation_name_post) | **POST** /v2/assistant/update-conversation-name | [**v2_assistant_version_post**](DefaultApi.md#v2_assistant_version_post) | **POST** /v2/assistant/version | +[**v2_assurance_ai_adoption_summary_post**](DefaultApi.md#v2_assurance_ai_adoption_summary_post) | **POST** /v2/assurance/ai-adoption-summary | [**v2_assurance_applicationdetailsbyname_post**](DefaultApi.md#v2_assurance_applicationdetailsbyname_post) | **POST** /v2/assurance/applicationdetailsbyname | [**v2_assurance_applicationprofilesummary_post**](DefaultApi.md#v2_assurance_applicationprofilesummary_post) | **POST** /v2/assurance/applicationprofilesummary | [**v2_assurance_bucket_app_servers_post**](DefaultApi.md#v2_assurance_bucket_app_servers_post) | **POST** /v2/assurance/bucket-app-servers | @@ -414,15 +449,19 @@ Method | HTTP request | Description [**v2_assurance_bucket_services_post**](DefaultApi.md#v2_assurance_bucket_services_post) | **POST** /v2/assurance/bucket-services | [**v2_assurance_bucket_topologies_post**](DefaultApi.md#v2_assurance_bucket_topologies_post) | **POST** /v2/assurance/bucket-topologies | [**v2_assurance_bucketdetails_post**](DefaultApi.md#v2_assurance_bucketdetails_post) | **POST** /v2/assurance/bucketdetails | +[**v2_assurance_create_ai_adoption_approve_entry_post**](DefaultApi.md#v2_assurance_create_ai_adoption_approve_entry_post) | **POST** /v2/assurance/create-ai-adoption-approve-entry | [**v2_assurance_create_dnsproxy_entry_post**](DefaultApi.md#v2_assurance_create_dnsproxy_entry_post) | **POST** /v2/assurance/create-dnsproxy-entry | [**v2_assurance_create_user_report_post**](DefaultApi.md#v2_assurance_create_user_report_post) | **POST** /v2/assurance/create-user-report | [**v2_assurance_createclassifiedapplication_post**](DefaultApi.md#v2_assurance_createclassifiedapplication_post) | **POST** /v2/assurance/createclassifiedapplication | +[**v2_assurance_delete_ai_adoption_approve_entry_delete**](DefaultApi.md#v2_assurance_delete_ai_adoption_approve_entry_delete) | **DELETE** /v2/assurance/delete-ai-adoption-approve-entry | [**v2_assurance_delete_dnsproxy_entry_delete**](DefaultApi.md#v2_assurance_delete_dnsproxy_entry_delete) | **DELETE** /v2/assurance/delete-dnsproxy-entry | [**v2_assurance_delete_user_report_delete**](DefaultApi.md#v2_assurance_delete_user_report_delete) | **DELETE** /v2/assurance/delete-user-report | [**v2_assurance_deleteclassifiedapplication_delete**](DefaultApi.md#v2_assurance_deleteclassifiedapplication_delete) | **DELETE** /v2/assurance/deleteclassifiedapplication | [**v2_assurance_download_user_report_get**](DefaultApi.md#v2_assurance_download_user_report_get) | **GET** /v2/assurance/download-user-report | [**v2_assurance_enterprisesummary_post**](DefaultApi.md#v2_assurance_enterprisesummary_post) | **POST** /v2/assurance/enterprisesummary | +[**v2_assurance_get_app_names_post**](DefaultApi.md#v2_assurance_get_app_names_post) | **POST** /v2/assurance/get-app-names | [**v2_assurance_getclassifiedapplicationlist_get**](DefaultApi.md#v2_assurance_getclassifiedapplicationlist_get) | **GET** /v2/assurance/getclassifiedapplicationlist | +[**v2_assurance_read_ai_adoption_approve_entries_get**](DefaultApi.md#v2_assurance_read_ai_adoption_approve_entries_get) | **GET** /v2/assurance/read-ai-adoption-approve-entries | [**v2_assurance_read_dnsproxy_list_get**](DefaultApi.md#v2_assurance_read_dnsproxy_list_get) | **GET** /v2/assurance/read-dnsproxy-list | [**v2_assurance_read_user_report_list_get**](DefaultApi.md#v2_assurance_read_user_report_list_get) | **GET** /v2/assurance/read-user-report-list | [**v2_assurance_scoredetails_post**](DefaultApi.md#v2_assurance_scoredetails_post) | **POST** /v2/assurance/scoredetails | @@ -434,6 +473,7 @@ Method | HTTP request | Description [**v2_assurance_topology_region_summary_post**](DefaultApi.md#v2_assurance_topology_region_summary_post) | **POST** /v2/assurance/topology-region-summary | [**v2_assurance_topology_site_summaries_post**](DefaultApi.md#v2_assurance_topology_site_summaries_post) | **POST** /v2/assurance/topology-site-summaries | [**v2_assurance_unclassifiedapplicationprofilesummary_post**](DefaultApi.md#v2_assurance_unclassifiedapplicationprofilesummary_post) | **POST** /v2/assurance/unclassifiedapplicationprofilesummary | +[**v2_assurance_update_ai_adoption_approve_entry_post**](DefaultApi.md#v2_assurance_update_ai_adoption_approve_entry_post) | **POST** /v2/assurance/update-ai-adoption-approve-entry | [**v2_assurance_update_dnsproxy_entry_post**](DefaultApi.md#v2_assurance_update_dnsproxy_entry_post) | **POST** /v2/assurance/update-dnsproxy-entry | [**v2_assurance_updateclassifiedapplication_post**](DefaultApi.md#v2_assurance_updateclassifiedapplication_post) | **POST** /v2/assurance/updateclassifiedapplication | [**v2_audit_logs_post**](DefaultApi.md#v2_audit_logs_post) | **POST** /v2/audit/logs | @@ -14435,10 +14475,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_extranet_b2b_monitoring_peering_service_bandwidth_usage_post** -> V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post(authorization, v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request) +# **v1_extranet_b2b_consumers_customer_id_get** +> V1ExtranetB2bConsumersCustomerIdGetResponse v1_extranet_b2b_consumers_customer_id_get(authorization, customer_id, service_id=service_id) -Get b2b extranet peering service sites usage stats +Get extranet service consumer subscription ### Example @@ -14446,8 +14486,7 @@ Get b2b extranet peering service sites usage stats ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request import V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_response import V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_customer_id_get_response import V1ExtranetB2bConsumersCustomerIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -14473,14 +14512,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 - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest() # V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest | + customer_id = 1234567891011 # int | Partner customer id + service_id = 1234567891011 # int | Producer service id (optional) try: - api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post(authorization, v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request) - print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post:\n") + api_response = api_instance.v1_extranet_b2b_consumers_customer_id_get(authorization, customer_id, service_id=service_id) + print("The response of DefaultApi->v1_extranet_b2b_consumers_customer_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_consumers_customer_id_get: %s\n" % e) ``` @@ -14491,11 +14531,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest**](V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest.md)| | + **customer_id** | **int**| Partner customer id | + **service_id** | **int**| Producer service id | [optional] ### Return type -[**V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse**](V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse.md) +[**V1ExtranetB2bConsumersCustomerIdGetResponse**](V1ExtranetB2bConsumersCustomerIdGetResponse.md) ### Authorization @@ -14503,7 +14544,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -14514,10 +14555,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_extranet_b2b_monitoring_peering_service_consumers_usage_top_post** -> V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post(authorization, v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request) +# **v1_extranet_b2b_consumers_id_delete** +> object v1_extranet_b2b_consumers_id_delete(authorization, id) -Get b2b extranet peering service top consumers usage stats +Delete an extranet service consumer subscription ### Example @@ -14525,8 +14566,6 @@ Get b2b extranet peering service top consumers usage stats ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request import V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_response import V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -14552,14 +14591,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_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest() # V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest | + id = 1234567891011 # int | try: - api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post(authorization, v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request) - print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post:\n") + api_response = api_instance.v1_extranet_b2b_consumers_id_delete(authorization, id) + print("The response of DefaultApi->v1_extranet_b2b_consumers_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_consumers_id_delete: %s\n" % e) ``` @@ -14570,11 +14609,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest**](V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest.md)| | + **id** | **int**| | ### Return type -[**V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse**](V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse.md) +**object** ### Authorization @@ -14582,7 +14621,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -14593,10 +14632,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_extranet_b2b_monitoring_peering_service_consumption_overview_post** -> V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse v1_extranet_b2b_monitoring_peering_service_consumption_overview_post(authorization, v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request) +# **v1_extranet_b2b_consumers_id_device_status_get** +> V1ExtranetB2bConsumersIdDeviceStatusGetResponse v1_extranet_b2b_consumers_id_device_status_get(authorization, id) -Get b2b extranet peering consumption overview +Get extranet consumer device rollout status ### Example @@ -14604,8 +14643,7 @@ Get b2b extranet peering consumption overview ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request import V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_response import V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_device_status_get_response import V1ExtranetB2bConsumersIdDeviceStatusGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -14631,14 +14669,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_extranet_b2b_monitoring_peering_service_consumption_overview_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest() # V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest | + id = 1234567891011 # int | try: - api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_consumption_overview_post(authorization, v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request) - print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_consumption_overview_post:\n") + api_response = api_instance.v1_extranet_b2b_consumers_id_device_status_get(authorization, id) + print("The response of DefaultApi->v1_extranet_b2b_consumers_id_device_status_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_consumption_overview_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_consumers_id_device_status_get: %s\n" % e) ``` @@ -14649,11 +14687,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest**](V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest.md)| | + **id** | **int**| | ### Return type -[**V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse**](V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse.md) +[**V1ExtranetB2bConsumersIdDeviceStatusGetResponse**](V1ExtranetB2bConsumersIdDeviceStatusGetResponse.md) ### Authorization @@ -14661,7 +14699,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -14672,10 +14710,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_extranet_b2b_monitoring_peering_service_service_customer_list_post** -> V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse v1_extranet_b2b_monitoring_peering_service_service_customer_list_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request) +# **v1_extranet_b2b_consumers_id_prefixes_put** +> V1ExtranetB2bConsumersIdPrefixesPutResponse v1_extranet_b2b_consumers_id_prefixes_put(authorization, id, v1_extranet_b2b_consumers_id_prefixes_put_request) -Get b2b extranet peering service customer list within a time window +Update extranet service consumer prefix NAT (peering preset) ### Example @@ -14683,8 +14721,8 @@ Get b2b extranet peering service customer list within a time window ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request import V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_prefixes_put_request import V1ExtranetB2bConsumersIdPrefixesPutRequest +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_prefixes_put_response import V1ExtranetB2bConsumersIdPrefixesPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -14710,14 +14748,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 - v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest() # V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest | + id = 1234567891011 # int | Consumer subscription id + v1_extranet_b2b_consumers_id_prefixes_put_request = graphiant_sdk.V1ExtranetB2bConsumersIdPrefixesPutRequest() # V1ExtranetB2bConsumersIdPrefixesPutRequest | try: - api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_service_customer_list_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request) - print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_customer_list_post:\n") + api_response = api_instance.v1_extranet_b2b_consumers_id_prefixes_put(authorization, id, v1_extranet_b2b_consumers_id_prefixes_put_request) + print("The response of DefaultApi->v1_extranet_b2b_consumers_id_prefixes_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_customer_list_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_consumers_id_prefixes_put: %s\n" % e) ``` @@ -14728,11 +14767,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest**](V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest.md)| | + **id** | **int**| Consumer subscription id | + **v1_extranet_b2b_consumers_id_prefixes_put_request** | [**V1ExtranetB2bConsumersIdPrefixesPutRequest**](V1ExtranetB2bConsumersIdPrefixesPutRequest.md)| | ### Return type -[**V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse**](V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse.md) +[**V1ExtranetB2bConsumersIdPrefixesPutResponse**](V1ExtranetB2bConsumersIdPrefixesPutResponse.md) ### Authorization @@ -14751,10 +14791,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_extranet_b2b_monitoring_peering_service_service_health_post** -> V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse v1_extranet_b2b_monitoring_peering_service_service_health_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_health_post_request) +# **v1_extranet_b2b_consumers_id_put** +> V1ExtranetB2bConsumersIdPutResponse v1_extranet_b2b_consumers_id_put(authorization, id, v1_extranet_b2b_consumers_id_put_request) -Returns connectivity status for a b2b peering service. Provides overall service connectivity status and detailed status for producer and customer prefixes for each consumer of the serviceShows whether the service is healthy, impaired, or down, and lists any missing prefixes in Impaired state. +Update extranet service consumer ### Example @@ -14762,8 +14802,8 @@ Returns connectivity status for a b2b peering service. Provides overall service ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_health_post_request import V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_health_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_put_request import V1ExtranetB2bConsumersIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_put_response import V1ExtranetB2bConsumersIdPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -14789,14 +14829,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 - v1_extranet_b2b_monitoring_peering_service_service_health_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest() # V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest | + id = 1234567891011 # int | Consumer subscription id + v1_extranet_b2b_consumers_id_put_request = graphiant_sdk.V1ExtranetB2bConsumersIdPutRequest() # V1ExtranetB2bConsumersIdPutRequest | try: - api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_service_health_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_health_post_request) - print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_health_post:\n") + api_response = api_instance.v1_extranet_b2b_consumers_id_put(authorization, id, v1_extranet_b2b_consumers_id_put_request) + print("The response of DefaultApi->v1_extranet_b2b_consumers_id_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_health_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_consumers_id_put: %s\n" % e) ``` @@ -14807,11 +14848,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranet_b2b_monitoring_peering_service_service_health_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest**](V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest.md)| | + **id** | **int**| Consumer subscription id | + **v1_extranet_b2b_consumers_id_put_request** | [**V1ExtranetB2bConsumersIdPutRequest**](V1ExtranetB2bConsumersIdPutRequest.md)| | ### Return type -[**V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse**](V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse.md) +[**V1ExtranetB2bConsumersIdPutResponse**](V1ExtranetB2bConsumersIdPutResponse.md) ### Authorization @@ -14830,10 +14872,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_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post** -> V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request) +# **v1_extranet_b2b_customers_id_delete** +> V1ExtranetB2bCustomersIdDeleteResponse v1_extranet_b2b_customers_id_delete(authorization, id) -Get b2b extranet peering service overtime consumption +Delete an extranet service customer ### Example @@ -14841,8 +14883,7 @@ Get b2b extranet peering service overtime consumption ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request import V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest -from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_delete_response import V1ExtranetB2bCustomersIdDeleteResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -14868,14 +14909,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_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest() # V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest | + id = 1234567891011 # int | try: - api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request) - print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post:\n") + api_response = api_instance.v1_extranet_b2b_customers_id_delete(authorization, id) + print("The response of DefaultApi->v1_extranet_b2b_customers_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_customers_id_delete: %s\n" % e) ``` @@ -14886,11 +14927,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest**](V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest.md)| | + **id** | **int**| | ### Return type -[**V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse**](V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse.md) +[**V1ExtranetB2bCustomersIdDeleteResponse**](V1ExtranetB2bCustomersIdDeleteResponse.md) ### Authorization @@ -14898,7 +14939,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -14909,10 +14950,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_extranet_public_vif_check_post** -> V1ExtranetPublicVifCheckPostResponse v1_extranet_public_vif_check_post(authorization, v1_extranet_public_vif_check_post_request) +# **v1_extranet_b2b_customers_id_details_get** +> V1ExtranetB2bCustomersIdDetailsGetResponse v1_extranet_b2b_customers_id_details_get(authorization, id) -Check Public Vif service +Get an extranet service customer ### Example @@ -14920,8 +14961,7 @@ Check Public Vif service ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_public_vif_check_post_request import V1ExtranetPublicVifCheckPostRequest -from graphiant_sdk.models.v1_extranet_public_vif_check_post_response import V1ExtranetPublicVifCheckPostResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_details_get_response import V1ExtranetB2bCustomersIdDetailsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -14947,14 +14987,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_extranet_public_vif_check_post_request = graphiant_sdk.V1ExtranetPublicVifCheckPostRequest() # V1ExtranetPublicVifCheckPostRequest | + id = 1234567891011 # int | try: - api_response = api_instance.v1_extranet_public_vif_check_post(authorization, v1_extranet_public_vif_check_post_request) - print("The response of DefaultApi->v1_extranet_public_vif_check_post:\n") + api_response = api_instance.v1_extranet_b2b_customers_id_details_get(authorization, id) + print("The response of DefaultApi->v1_extranet_b2b_customers_id_details_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_public_vif_check_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_customers_id_details_get: %s\n" % e) ``` @@ -14965,11 +15005,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranet_public_vif_check_post_request** | [**V1ExtranetPublicVifCheckPostRequest**](V1ExtranetPublicVifCheckPostRequest.md)| | + **id** | **int**| | ### Return type -[**V1ExtranetPublicVifCheckPostResponse**](V1ExtranetPublicVifCheckPostResponse.md) +[**V1ExtranetB2bCustomersIdDetailsGetResponse**](V1ExtranetB2bCustomersIdDetailsGetResponse.md) ### Authorization @@ -14977,7 +15017,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -14988,10 +15028,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_extranet_public_vif_get** -> V1ExtranetPublicVifGetResponse v1_extranet_public_vif_get(authorization) +# **v1_extranet_b2b_customers_id_matches_summary_get** +> V1ExtranetB2bCustomersIdMatchesSummaryGetResponse v1_extranet_b2b_customers_id_matches_summary_get(authorization, id) -Get Public Vif summary +Get matched services summary for a customer ### Example @@ -14999,7 +15039,7 @@ Get Public Vif summary ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_public_vif_get_response import V1ExtranetPublicVifGetResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_matches_summary_get_response import V1ExtranetB2bCustomersIdMatchesSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15025,13 +15065,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 | Customer id try: - api_response = api_instance.v1_extranet_public_vif_get(authorization) - print("The response of DefaultApi->v1_extranet_public_vif_get:\n") + api_response = api_instance.v1_extranet_b2b_customers_id_matches_summary_get(authorization, id) + print("The response of DefaultApi->v1_extranet_b2b_customers_id_matches_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_public_vif_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_customers_id_matches_summary_get: %s\n" % e) ``` @@ -15042,10 +15083,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| Customer id | ### Return type -[**V1ExtranetPublicVifGetResponse**](V1ExtranetPublicVifGetResponse.md) +[**V1ExtranetB2bCustomersIdMatchesSummaryGetResponse**](V1ExtranetB2bCustomersIdMatchesSummaryGetResponse.md) ### Authorization @@ -15064,10 +15106,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_extranet_public_vif_id_delete** -> object v1_extranet_public_vif_id_delete(authorization, id) +# **v1_extranet_b2b_customers_id_put** +> V1ExtranetB2bCustomersIdPutResponse v1_extranet_b2b_customers_id_put(authorization, id, v1_extranet_b2b_customers_id_put_request) -Delete Public Vif service +Update an extranet service customer ### Example @@ -15075,6 +15117,8 @@ Delete Public Vif service ```python import graphiant_sdk +from graphiant_sdk.models.v1_extranet_b2b_customers_id_put_request import V1ExtranetB2bCustomersIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_customers_id_put_response import V1ExtranetB2bCustomersIdPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15101,13 +15145,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: api_instance = graphiant_sdk.DefaultApi(api_client) authorization = 'authorization_example' # str | Bearer token. Format: Bearer id = 1234567891011 # int | + v1_extranet_b2b_customers_id_put_request = graphiant_sdk.V1ExtranetB2bCustomersIdPutRequest() # V1ExtranetB2bCustomersIdPutRequest | try: - api_response = api_instance.v1_extranet_public_vif_id_delete(authorization, id) - print("The response of DefaultApi->v1_extranet_public_vif_id_delete:\n") + api_response = api_instance.v1_extranet_b2b_customers_id_put(authorization, id, v1_extranet_b2b_customers_id_put_request) + print("The response of DefaultApi->v1_extranet_b2b_customers_id_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_public_vif_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_customers_id_put: %s\n" % e) ``` @@ -15119,10 +15164,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | **id** | **int**| | + **v1_extranet_b2b_customers_id_put_request** | [**V1ExtranetB2bCustomersIdPutRequest**](V1ExtranetB2bCustomersIdPutRequest.md)| | ### Return type -**object** +[**V1ExtranetB2bCustomersIdPutResponse**](V1ExtranetB2bCustomersIdPutResponse.md) ### Authorization @@ -15130,7 +15176,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -15141,10 +15187,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_extranet_public_vif_id_get** -> V1ExtranetPublicVifIdGetResponse v1_extranet_public_vif_id_get(authorization, id) +# **v1_extranet_b2b_customers_id_retry_post** +> object v1_extranet_b2b_customers_id_retry_post(authorization, id, body) -Get Public Vif service +Retry extranet service customer invite ### Example @@ -15152,7 +15198,6 @@ Get Public Vif service ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_public_vif_id_get_response import V1ExtranetPublicVifIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15178,14 +15223,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 | Public VIF producer policy + id = 1234567891011 # int | + body = None # object | try: - api_response = api_instance.v1_extranet_public_vif_id_get(authorization, id) - print("The response of DefaultApi->v1_extranet_public_vif_id_get:\n") + api_response = api_instance.v1_extranet_b2b_customers_id_retry_post(authorization, id, body) + print("The response of DefaultApi->v1_extranet_b2b_customers_id_retry_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_public_vif_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_customers_id_retry_post: %s\n" % e) ``` @@ -15196,11 +15242,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| Public VIF producer policy | + **id** | **int**| | + **body** | **object**| | ### Return type -[**V1ExtranetPublicVifIdGetResponse**](V1ExtranetPublicVifIdGetResponse.md) +**object** ### Authorization @@ -15208,7 +15255,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -15219,10 +15266,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_extranet_public_vif_id_put** -> V1ExtranetPublicVifIdPutResponse v1_extranet_public_vif_id_put(authorization, id, v1_extranet_public_vif_id_put_request) +# **v1_extranet_b2b_customers_post** +> V1ExtranetB2bCustomersPostResponse v1_extranet_b2b_customers_post(authorization, v1_extranet_b2b_customers_post_request) -Update Public Vif service +Create an extranet service customer (partner directory entry) ### Example @@ -15230,8 +15277,8 @@ Update Public Vif service ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_public_vif_id_put_request import V1ExtranetPublicVifIdPutRequest -from graphiant_sdk.models.v1_extranet_public_vif_id_put_response import V1ExtranetPublicVifIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_post_request import V1ExtranetB2bCustomersPostRequest +from graphiant_sdk.models.v1_extranet_b2b_customers_post_response import V1ExtranetB2bCustomersPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15257,15 +15304,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 | Public VIF producer service id - v1_extranet_public_vif_id_put_request = graphiant_sdk.V1ExtranetPublicVifIdPutRequest() # V1ExtranetPublicVifIdPutRequest | + v1_extranet_b2b_customers_post_request = graphiant_sdk.V1ExtranetB2bCustomersPostRequest() # V1ExtranetB2bCustomersPostRequest | try: - api_response = api_instance.v1_extranet_public_vif_id_put(authorization, id, v1_extranet_public_vif_id_put_request) - print("The response of DefaultApi->v1_extranet_public_vif_id_put:\n") + api_response = api_instance.v1_extranet_b2b_customers_post(authorization, v1_extranet_b2b_customers_post_request) + print("The response of DefaultApi->v1_extranet_b2b_customers_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_public_vif_id_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_customers_post: %s\n" % e) ``` @@ -15276,12 +15322,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| Public VIF producer service id | - **v1_extranet_public_vif_id_put_request** | [**V1ExtranetPublicVifIdPutRequest**](V1ExtranetPublicVifIdPutRequest.md)| | + **v1_extranet_b2b_customers_post_request** | [**V1ExtranetB2bCustomersPostRequest**](V1ExtranetB2bCustomersPostRequest.md)| | ### Return type -[**V1ExtranetPublicVifIdPutResponse**](V1ExtranetPublicVifIdPutResponse.md) +[**V1ExtranetB2bCustomersPostResponse**](V1ExtranetB2bCustomersPostResponse.md) ### Authorization @@ -15300,10 +15345,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_extranet_public_vif_post** -> V1ExtranetPublicVifPostResponse v1_extranet_public_vif_post(authorization, v1_extranet_public_vif_post_request) +# **v1_extranet_b2b_customers_summary_get** +> V1ExtranetB2bCustomersSummaryGetResponse v1_extranet_b2b_customers_summary_get(authorization) -Create Public Vif service +List extranet service customers for the enterprise ### Example @@ -15311,8 +15356,7 @@ Create Public Vif service ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_public_vif_post_request import V1ExtranetPublicVifPostRequest -from graphiant_sdk.models.v1_extranet_public_vif_post_response import V1ExtranetPublicVifPostResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_summary_get_response import V1ExtranetB2bCustomersSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15338,14 +15382,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_extranet_public_vif_post_request = graphiant_sdk.V1ExtranetPublicVifPostRequest() # V1ExtranetPublicVifPostRequest | try: - api_response = api_instance.v1_extranet_public_vif_post(authorization, v1_extranet_public_vif_post_request) - print("The response of DefaultApi->v1_extranet_public_vif_post:\n") + api_response = api_instance.v1_extranet_b2b_customers_summary_get(authorization) + print("The response of DefaultApi->v1_extranet_b2b_customers_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_public_vif_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_customers_summary_get: %s\n" % e) ``` @@ -15356,11 +15399,89 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranet_public_vif_post_request** | [**V1ExtranetPublicVifPostRequest**](V1ExtranetPublicVifPostRequest.md)| | ### Return type -[**V1ExtranetPublicVifPostResponse**](V1ExtranetPublicVifPostResponse.md) +[**V1ExtranetB2bCustomersSummaryGetResponse**](V1ExtranetB2bCustomersSummaryGetResponse.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_extranet_b2b_matches_customers_post** +> V1ExtranetB2bMatchesCustomersPostResponse v1_extranet_b2b_matches_customers_post(authorization, v1_extranet_b2b_matches_customers_post_request) + +Bulk subscribe customers to an extranet service + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_extranet_b2b_matches_customers_post_request import V1ExtranetB2bMatchesCustomersPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_customers_post_response import V1ExtranetB2bMatchesCustomersPostResponse +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_extranet_b2b_matches_customers_post_request = graphiant_sdk.V1ExtranetB2bMatchesCustomersPostRequest() # V1ExtranetB2bMatchesCustomersPostRequest | + + try: + api_response = api_instance.v1_extranet_b2b_matches_customers_post(authorization, v1_extranet_b2b_matches_customers_post_request) + print("The response of DefaultApi->v1_extranet_b2b_matches_customers_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_extranet_b2b_matches_customers_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_extranet_b2b_matches_customers_post_request** | [**V1ExtranetB2bMatchesCustomersPostRequest**](V1ExtranetB2bMatchesCustomersPostRequest.md)| | + +### Return type + +[**V1ExtranetB2bMatchesCustomersPostResponse**](V1ExtranetB2bMatchesCustomersPostResponse.md) ### Authorization @@ -15379,10 +15500,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_extranet_sites_usage_top_post** -> V1ExtranetSitesUsageTopPostResponse v1_extranet_sites_usage_top_post(authorization, v1_extranet_sites_usage_top_post_request) +# **v1_extranet_b2b_matches_match_id_consumer_check_post** +> V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse v1_extranet_b2b_matches_match_id_consumer_check_post(authorization, match_id, v1_extranet_b2b_matches_match_id_consumer_check_post_request) -Get extranet service top sites usage stats +Check extranet service consumer configuration ### Example @@ -15390,8 +15511,8 @@ Get extranet service top sites usage stats ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranet_sites_usage_top_post_request import V1ExtranetSitesUsageTopPostRequest -from graphiant_sdk.models.v1_extranet_sites_usage_top_post_response import V1ExtranetSitesUsageTopPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_check_post_request import V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_check_post_response import V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15417,14 +15538,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 - v1_extranet_sites_usage_top_post_request = graphiant_sdk.V1ExtranetSitesUsageTopPostRequest() # V1ExtranetSitesUsageTopPostRequest | + match_id = 1234567891011 # int | Match id (URL path :matchId) + v1_extranet_b2b_matches_match_id_consumer_check_post_request = graphiant_sdk.V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest() # V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest | try: - api_response = api_instance.v1_extranet_sites_usage_top_post(authorization, v1_extranet_sites_usage_top_post_request) - print("The response of DefaultApi->v1_extranet_sites_usage_top_post:\n") + api_response = api_instance.v1_extranet_b2b_matches_match_id_consumer_check_post(authorization, match_id, v1_extranet_b2b_matches_match_id_consumer_check_post_request) + print("The response of DefaultApi->v1_extranet_b2b_matches_match_id_consumer_check_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranet_sites_usage_top_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_matches_match_id_consumer_check_post: %s\n" % e) ``` @@ -15435,11 +15557,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranet_sites_usage_top_post_request** | [**V1ExtranetSitesUsageTopPostRequest**](V1ExtranetSitesUsageTopPostRequest.md)| | + **match_id** | **int**| Match id (URL path :matchId) | + **v1_extranet_b2b_matches_match_id_consumer_check_post_request** | [**V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest**](V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest.md)| | ### Return type -[**V1ExtranetSitesUsageTopPostResponse**](V1ExtranetSitesUsageTopPostResponse.md) +[**V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse**](V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse.md) ### Authorization @@ -15458,10 +15581,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_extranets_b2b_consumer_device_status_id_get** -> V1ExtranetsB2bConsumerDeviceStatusIdGetResponse v1_extranets_b2b_consumer_device_status_id_get(authorization, id) +# **v1_extranet_b2b_matches_match_id_consumer_post** +> V1ExtranetB2bMatchesMatchIdConsumerPostResponse v1_extranet_b2b_matches_match_id_consumer_post(authorization, match_id, v1_extranet_b2b_matches_match_id_consumer_post_request) -Get B2B extranet consumer status +Consumer accepts an extranet service match ### Example @@ -15469,7 +15592,8 @@ Get B2B extranet consumer status ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_consumer_device_status_id_get_response import V1ExtranetsB2bConsumerDeviceStatusIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_post_request import V1ExtranetB2bMatchesMatchIdConsumerPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_post_response import V1ExtranetB2bMatchesMatchIdConsumerPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15495,14 +15619,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 | + match_id = 1234567891011 # int | Match id (URL path :matchId) + v1_extranet_b2b_matches_match_id_consumer_post_request = graphiant_sdk.V1ExtranetB2bMatchesMatchIdConsumerPostRequest() # V1ExtranetB2bMatchesMatchIdConsumerPostRequest | try: - api_response = api_instance.v1_extranets_b2b_consumer_device_status_id_get(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_consumer_device_status_id_get:\n") + api_response = api_instance.v1_extranet_b2b_matches_match_id_consumer_post(authorization, match_id, v1_extranet_b2b_matches_match_id_consumer_post_request) + print("The response of DefaultApi->v1_extranet_b2b_matches_match_id_consumer_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_consumer_device_status_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_matches_match_id_consumer_post: %s\n" % e) ``` @@ -15513,11 +15638,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | + **match_id** | **int**| Match id (URL path :matchId) | + **v1_extranet_b2b_matches_match_id_consumer_post_request** | [**V1ExtranetB2bMatchesMatchIdConsumerPostRequest**](V1ExtranetB2bMatchesMatchIdConsumerPostRequest.md)| | ### Return type -[**V1ExtranetsB2bConsumerDeviceStatusIdGetResponse**](V1ExtranetsB2bConsumerDeviceStatusIdGetResponse.md) +[**V1ExtranetB2bMatchesMatchIdConsumerPostResponse**](V1ExtranetB2bMatchesMatchIdConsumerPostResponse.md) ### Authorization @@ -15525,7 +15651,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -15536,10 +15662,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_extranets_b2b_consumer_id_delete** -> object v1_extranets_b2b_consumer_id_delete(authorization, id) +# **v1_extranet_b2b_matches_match_id_delete** +> V1ExtranetB2bMatchesMatchIdDeleteResponse v1_extranet_b2b_matches_match_id_delete(authorization, match_id) -Delete a B2B extranet consumer +Delete an extranet service match ### Example @@ -15547,6 +15673,7 @@ Delete a B2B extranet consumer ```python import graphiant_sdk +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_delete_response import V1ExtranetB2bMatchesMatchIdDeleteResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15572,14 +15699,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 | + match_id = 1234567891011 # int | Match id (URL path :matchId) try: - api_response = api_instance.v1_extranets_b2b_consumer_id_delete(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_consumer_id_delete:\n") + api_response = api_instance.v1_extranet_b2b_matches_match_id_delete(authorization, match_id) + print("The response of DefaultApi->v1_extranet_b2b_matches_match_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_consumer_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_matches_match_id_delete: %s\n" % e) ``` @@ -15590,11 +15717,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | + **match_id** | **int**| Match id (URL path :matchId) | ### Return type -**object** +[**V1ExtranetB2bMatchesMatchIdDeleteResponse**](V1ExtranetB2bMatchesMatchIdDeleteResponse.md) ### Authorization @@ -15613,10 +15740,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_extranets_b2b_consumer_id_get** -> V1ExtranetsB2bConsumerIdGetResponse v1_extranets_b2b_consumer_id_get(authorization, id) +# **v1_extranet_b2b_matches_match_id_details_get** +> V1ExtranetB2bMatchesMatchIdDetailsGetResponse v1_extranet_b2b_matches_match_id_details_get(authorization, match_id) -Get a B2B extranet consumer +Get match details for consumer accept flow ### Example @@ -15624,7 +15751,7 @@ Get a B2B extranet consumer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_consumer_id_get_response import V1ExtranetsB2bConsumerIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_details_get_response import V1ExtranetB2bMatchesMatchIdDetailsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15650,14 +15777,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 | + match_id = 1234567891011 # int | try: - api_response = api_instance.v1_extranets_b2b_consumer_id_get(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_consumer_id_get:\n") + api_response = api_instance.v1_extranet_b2b_matches_match_id_details_get(authorization, match_id) + print("The response of DefaultApi->v1_extranet_b2b_matches_match_id_details_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_consumer_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_matches_match_id_details_get: %s\n" % e) ``` @@ -15668,11 +15795,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | + **match_id** | **int**| | ### Return type -[**V1ExtranetsB2bConsumerIdGetResponse**](V1ExtranetsB2bConsumerIdGetResponse.md) +[**V1ExtranetB2bMatchesMatchIdDetailsGetResponse**](V1ExtranetB2bMatchesMatchIdDetailsGetResponse.md) ### Authorization @@ -15691,10 +15818,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_extranets_b2b_consumer_post** -> V1ExtranetsB2bConsumerPostResponse v1_extranets_b2b_consumer_post(authorization, v1_extranets_b2b_consumer_post_request) +# **v1_extranet_b2b_matches_match_id_get** +> V1ExtranetB2bMatchesMatchIdGetResponse v1_extranet_b2b_matches_match_id_get(authorization, match_id) -Create a new B2B extranet consumer +Get extranet service match details ### Example @@ -15702,8 +15829,7 @@ Create a new B2B extranet consumer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_consumer_post_request import V1ExtranetsB2bConsumerPostRequest -from graphiant_sdk.models.v1_extranets_b2b_consumer_post_response import V1ExtranetsB2bConsumerPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_get_response import V1ExtranetB2bMatchesMatchIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15729,14 +15855,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_extranets_b2b_consumer_post_request = graphiant_sdk.V1ExtranetsB2bConsumerPostRequest() # V1ExtranetsB2bConsumerPostRequest | + match_id = 1234567891011 # int | Match id (URL path :matchId) try: - api_response = api_instance.v1_extranets_b2b_consumer_post(authorization, v1_extranets_b2b_consumer_post_request) - print("The response of DefaultApi->v1_extranets_b2b_consumer_post:\n") + api_response = api_instance.v1_extranet_b2b_matches_match_id_get(authorization, match_id) + print("The response of DefaultApi->v1_extranet_b2b_matches_match_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_consumer_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_matches_match_id_get: %s\n" % e) ``` @@ -15747,11 +15873,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranets_b2b_consumer_post_request** | [**V1ExtranetsB2bConsumerPostRequest**](V1ExtranetsB2bConsumerPostRequest.md)| | + **match_id** | **int**| Match id (URL path :matchId) | ### Return type -[**V1ExtranetsB2bConsumerPostResponse**](V1ExtranetsB2bConsumerPostResponse.md) +[**V1ExtranetB2bMatchesMatchIdGetResponse**](V1ExtranetB2bMatchesMatchIdGetResponse.md) ### Authorization @@ -15759,7 +15885,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -15770,10 +15896,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_extranets_b2b_consumer_summary_get** -> V1ExtranetsB2bConsumerSummaryGetResponse v1_extranets_b2b_consumer_summary_get(authorization) +# **v1_extranet_b2b_matches_match_id_put** +> V1ExtranetB2bMatchesMatchIdPutResponse v1_extranet_b2b_matches_match_id_put(authorization, match_id, v1_extranet_b2b_matches_match_id_put_request) -Get B2B extranet consumers summary +Update extranet service match ### Example @@ -15781,7 +15907,8 @@ Get B2B extranet consumers summary ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_consumer_summary_get_response import V1ExtranetsB2bConsumerSummaryGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_put_request import V1ExtranetB2bMatchesMatchIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_put_response import V1ExtranetB2bMatchesMatchIdPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15807,13 +15934,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 + match_id = 1234567891011 # int | Match id (URL path :matchId) + v1_extranet_b2b_matches_match_id_put_request = graphiant_sdk.V1ExtranetB2bMatchesMatchIdPutRequest() # V1ExtranetB2bMatchesMatchIdPutRequest | try: - api_response = api_instance.v1_extranets_b2b_consumer_summary_get(authorization) - print("The response of DefaultApi->v1_extranets_b2b_consumer_summary_get:\n") + api_response = api_instance.v1_extranet_b2b_matches_match_id_put(authorization, match_id, v1_extranet_b2b_matches_match_id_put_request) + print("The response of DefaultApi->v1_extranet_b2b_matches_match_id_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_consumer_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_matches_match_id_put: %s\n" % e) ``` @@ -15824,10 +15953,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **match_id** | **int**| Match id (URL path :matchId) | + **v1_extranet_b2b_matches_match_id_put_request** | [**V1ExtranetB2bMatchesMatchIdPutRequest**](V1ExtranetB2bMatchesMatchIdPutRequest.md)| | ### Return type -[**V1ExtranetsB2bConsumerSummaryGetResponse**](V1ExtranetsB2bConsumerSummaryGetResponse.md) +[**V1ExtranetB2bMatchesMatchIdPutResponse**](V1ExtranetB2bMatchesMatchIdPutResponse.md) ### Authorization @@ -15835,7 +15966,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -15846,10 +15977,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_extranets_b2b_customer_id_delete** -> object v1_extranets_b2b_customer_id_delete(authorization, id) +# **v1_extranet_b2b_matches_match_id_status_put** +> V1ExtranetB2bMatchesMatchIdStatusPutResponse v1_extranet_b2b_matches_match_id_status_put(authorization, match_id, v1_extranet_b2b_matches_match_id_status_put_request) -Delete a B2B extranet customer +Pause or resume an extranet service match ### Example @@ -15857,6 +15988,8 @@ Delete a B2B extranet customer ```python import graphiant_sdk +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_status_put_request import V1ExtranetB2bMatchesMatchIdStatusPutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_status_put_response import V1ExtranetB2bMatchesMatchIdStatusPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15882,14 +16015,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 | + match_id = 1234567891011 # int | + v1_extranet_b2b_matches_match_id_status_put_request = graphiant_sdk.V1ExtranetB2bMatchesMatchIdStatusPutRequest() # V1ExtranetB2bMatchesMatchIdStatusPutRequest | try: - api_response = api_instance.v1_extranets_b2b_customer_id_delete(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_customer_id_delete:\n") + api_response = api_instance.v1_extranet_b2b_matches_match_id_status_put(authorization, match_id, v1_extranet_b2b_matches_match_id_status_put_request) + print("The response of DefaultApi->v1_extranet_b2b_matches_match_id_status_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_customer_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_matches_match_id_status_put: %s\n" % e) ``` @@ -15900,11 +16034,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | + **match_id** | **int**| | + **v1_extranet_b2b_matches_match_id_status_put_request** | [**V1ExtranetB2bMatchesMatchIdStatusPutRequest**](V1ExtranetB2bMatchesMatchIdStatusPutRequest.md)| | ### Return type -**object** +[**V1ExtranetB2bMatchesMatchIdStatusPutResponse**](V1ExtranetB2bMatchesMatchIdStatusPutResponse.md) ### Authorization @@ -15912,7 +16047,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -15923,10 +16058,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_extranets_b2b_customer_info_id_get** -> V1ExtranetsB2bCustomerInfoIdGetResponse v1_extranets_b2b_customer_info_id_get(authorization, id) +# **v1_extranet_b2b_matches_pause_put** +> V1ExtranetB2bMatchesPausePutResponse v1_extranet_b2b_matches_pause_put(authorization, v1_extranet_b2b_matches_pause_put_request) -Get B2B extranet application customer +Pause extranet service matches via customer summary ### Example @@ -15934,7 +16069,8 @@ Get B2B extranet application customer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_customer_info_id_get_response import V1ExtranetsB2bCustomerInfoIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_pause_put_request import V1ExtranetB2bMatchesPausePutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_pause_put_response import V1ExtranetB2bMatchesPausePutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -15960,14 +16096,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_extranet_b2b_matches_pause_put_request = graphiant_sdk.V1ExtranetB2bMatchesPausePutRequest() # V1ExtranetB2bMatchesPausePutRequest | try: - api_response = api_instance.v1_extranets_b2b_customer_info_id_get(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_customer_info_id_get:\n") + api_response = api_instance.v1_extranet_b2b_matches_pause_put(authorization, v1_extranet_b2b_matches_pause_put_request) + print("The response of DefaultApi->v1_extranet_b2b_matches_pause_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_customer_info_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_matches_pause_put: %s\n" % e) ``` @@ -15978,11 +16114,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_extranet_b2b_matches_pause_put_request** | [**V1ExtranetB2bMatchesPausePutRequest**](V1ExtranetB2bMatchesPausePutRequest.md)| | ### Return type -[**V1ExtranetsB2bCustomerInfoIdGetResponse**](V1ExtranetsB2bCustomerInfoIdGetResponse.md) +[**V1ExtranetB2bMatchesPausePutResponse**](V1ExtranetB2bMatchesPausePutResponse.md) ### Authorization @@ -15990,7 +16126,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -16001,10 +16137,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_extranets_b2b_general_customers_summary_get** -> V1ExtranetsB2bGeneralCustomersSummaryGetResponse v1_extranets_b2b_general_customers_summary_get(authorization) +# **v1_extranet_b2b_matches_post** +> V1ExtranetB2bMatchesPostResponse v1_extranet_b2b_matches_post(authorization, v1_extranet_b2b_matches_post_request) -Get summary for a B2B extranet peering services customers +Match an extranet service to a customer ### Example @@ -16012,7 +16148,8 @@ Get summary for a B2B extranet peering services customers ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_general_customers_summary_get_response import V1ExtranetsB2bGeneralCustomersSummaryGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_post_request import V1ExtranetB2bMatchesPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_post_response import V1ExtranetB2bMatchesPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16038,13 +16175,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_extranet_b2b_matches_post_request = graphiant_sdk.V1ExtranetB2bMatchesPostRequest() # V1ExtranetB2bMatchesPostRequest | try: - api_response = api_instance.v1_extranets_b2b_general_customers_summary_get(authorization) - print("The response of DefaultApi->v1_extranets_b2b_general_customers_summary_get:\n") + api_response = api_instance.v1_extranet_b2b_matches_post(authorization, v1_extranet_b2b_matches_post_request) + print("The response of DefaultApi->v1_extranet_b2b_matches_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_general_customers_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_matches_post: %s\n" % e) ``` @@ -16055,10 +16193,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_extranet_b2b_matches_post_request** | [**V1ExtranetB2bMatchesPostRequest**](V1ExtranetB2bMatchesPostRequest.md)| | ### Return type -[**V1ExtranetsB2bGeneralCustomersSummaryGetResponse**](V1ExtranetsB2bGeneralCustomersSummaryGetResponse.md) +[**V1ExtranetB2bMatchesPostResponse**](V1ExtranetB2bMatchesPostResponse.md) ### Authorization @@ -16066,7 +16205,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -16077,10 +16216,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_extranets_b2b_general_services_summary_get** -> V1ExtranetsB2bGeneralServicesSummaryGetResponse v1_extranets_b2b_general_services_summary_get(authorization) +# **v1_extranet_b2b_matches_review_post** +> V1ExtranetB2bMatchesReviewPostResponse v1_extranet_b2b_matches_review_post(authorization, v1_extranet_b2b_matches_review_post_request) -Get a summary for all the B2B extranet services +Review extranet service match ### Example @@ -16088,7 +16227,8 @@ Get a summary for all the B2B extranet services ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_general_services_summary_get_response import V1ExtranetsB2bGeneralServicesSummaryGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_review_post_request import V1ExtranetB2bMatchesReviewPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_review_post_response import V1ExtranetB2bMatchesReviewPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16114,13 +16254,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_extranet_b2b_matches_review_post_request = graphiant_sdk.V1ExtranetB2bMatchesReviewPostRequest() # V1ExtranetB2bMatchesReviewPostRequest | try: - api_response = api_instance.v1_extranets_b2b_general_services_summary_get(authorization) - print("The response of DefaultApi->v1_extranets_b2b_general_services_summary_get:\n") + api_response = api_instance.v1_extranet_b2b_matches_review_post(authorization, v1_extranet_b2b_matches_review_post_request) + print("The response of DefaultApi->v1_extranet_b2b_matches_review_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_general_services_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_matches_review_post: %s\n" % e) ``` @@ -16131,10 +16272,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_extranet_b2b_matches_review_post_request** | [**V1ExtranetB2bMatchesReviewPostRequest**](V1ExtranetB2bMatchesReviewPostRequest.md)| | ### Return type -[**V1ExtranetsB2bGeneralServicesSummaryGetResponse**](V1ExtranetsB2bGeneralServicesSummaryGetResponse.md) +[**V1ExtranetB2bMatchesReviewPostResponse**](V1ExtranetB2bMatchesReviewPostResponse.md) ### Authorization @@ -16142,7 +16284,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -16153,10 +16295,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_extranets_b2b_id_customer_post** -> V1ExtranetsB2bIdCustomerPostResponse v1_extranets_b2b_id_customer_post(authorization, id, v1_extranets_b2b_id_customer_post_request) +# **v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post** +> V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post(authorization, v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request) -Create B2B extranet application customer invite +Get b2b extranet peering service sites usage stats ### Example @@ -16164,8 +16306,8 @@ Create B2B extranet application customer invite ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_id_customer_post_request import V1ExtranetsB2bIdCustomerPostRequest -from graphiant_sdk.models.v1_extranets_b2b_id_customer_post_response import V1ExtranetsB2bIdCustomerPostResponse +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request import V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_response import V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16191,15 +16333,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 | Service ID of the application customer is invited to - v1_extranets_b2b_id_customer_post_request = graphiant_sdk.V1ExtranetsB2bIdCustomerPostRequest() # V1ExtranetsB2bIdCustomerPostRequest | + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest() # V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest | try: - api_response = api_instance.v1_extranets_b2b_id_customer_post(authorization, id, v1_extranets_b2b_id_customer_post_request) - print("The response of DefaultApi->v1_extranets_b2b_id_customer_post:\n") + api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post(authorization, v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request) + print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_id_customer_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post: %s\n" % e) ``` @@ -16210,12 +16351,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| Service ID of the application customer is invited to | - **v1_extranets_b2b_id_customer_post_request** | [**V1ExtranetsB2bIdCustomerPostRequest**](V1ExtranetsB2bIdCustomerPostRequest.md)| | + **v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest**](V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest.md)| | ### Return type -[**V1ExtranetsB2bIdCustomerPostResponse**](V1ExtranetsB2bIdCustomerPostResponse.md) +[**V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse**](V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse.md) ### Authorization @@ -16234,10 +16374,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_extranets_b2b_id_customer_summary_get** -> V1ExtranetsB2bIdCustomerSummaryGetResponse v1_extranets_b2b_id_customer_summary_get(authorization, id) +# **v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post** +> V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post(authorization, v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request) -Get B2B extranet application customers summary +Get b2b extranet peering service top consumers usage stats ### Example @@ -16245,7 +16385,8 @@ Get B2B extranet application customers summary ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_id_customer_summary_get_response import V1ExtranetsB2bIdCustomerSummaryGetResponse +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request import V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_response import V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16271,14 +16412,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_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest() # V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest | try: - api_response = api_instance.v1_extranets_b2b_id_customer_summary_get(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_id_customer_summary_get:\n") + api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post(authorization, v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request) + print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_id_customer_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post: %s\n" % e) ``` @@ -16289,11 +16430,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_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest**](V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest.md)| | ### Return type -[**V1ExtranetsB2bIdCustomerSummaryGetResponse**](V1ExtranetsB2bIdCustomerSummaryGetResponse.md) +[**V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse**](V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse.md) ### Authorization @@ -16301,7 +16442,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -16312,10 +16453,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_extranets_b2b_id_delete** -> object v1_extranets_b2b_id_delete(authorization, id) +# **v1_extranet_b2b_monitoring_peering_service_consumption_overview_post** +> V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse v1_extranet_b2b_monitoring_peering_service_consumption_overview_post(authorization, v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request) -Delete a B2B extranet producer +Get b2b extranet peering consumption overview ### Example @@ -16323,6 +16464,8 @@ Delete a B2B extranet producer ```python import graphiant_sdk +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request import V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_response import V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16348,14 +16491,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 | ID of the producer service to be deleted + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest() # V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest | try: - api_response = api_instance.v1_extranets_b2b_id_delete(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_id_delete:\n") + api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_consumption_overview_post(authorization, v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request) + print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_consumption_overview_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_consumption_overview_post: %s\n" % e) ``` @@ -16366,11 +16509,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| ID of the producer service to be deleted | + **v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest**](V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest.md)| | ### Return type -**object** +[**V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse**](V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse.md) ### Authorization @@ -16378,7 +16521,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -16389,10 +16532,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_extranets_b2b_id_producer_get** -> V1ExtranetsB2bIdProducerGetResponse v1_extranets_b2b_id_producer_get(authorization, id, type=type) +# **v1_extranet_b2b_monitoring_peering_service_service_customer_list_post** +> V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse v1_extranet_b2b_monitoring_peering_service_service_customer_list_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request) -Get a B2B extranet producer +Get b2b extranet peering service customer list within a time window ### Example @@ -16400,7 +16543,8 @@ Get a B2B extranet producer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_id_producer_get_response import V1ExtranetsB2bIdProducerGetResponse +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request import V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16426,15 +16570,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 | - type = 'ENUM_VALUE' # str | (optional) + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest() # V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest | try: - api_response = api_instance.v1_extranets_b2b_id_producer_get(authorization, id, type=type) - print("The response of DefaultApi->v1_extranets_b2b_id_producer_get:\n") + api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_service_customer_list_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request) + print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_customer_list_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_id_producer_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_customer_list_post: %s\n" % e) ``` @@ -16445,12 +16588,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | - **type** | **str**| | [optional] + **v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest**](V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest.md)| | ### Return type -[**V1ExtranetsB2bIdProducerGetResponse**](V1ExtranetsB2bIdProducerGetResponse.md) +[**V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse**](V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse.md) ### Authorization @@ -16458,7 +16600,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -16469,10 +16611,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_extranets_b2b_id_put** -> V1ExtranetsB2bIdPutResponse v1_extranets_b2b_id_put(authorization, id, v1_extranets_b2b_id_put_request) +# **v1_extranet_b2b_monitoring_peering_service_service_health_post** +> V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse v1_extranet_b2b_monitoring_peering_service_service_health_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_health_post_request) -Update a B2B extranet producer +Returns connectivity status for a b2b peering service. Provides overall service connectivity status and detailed status for producer and customer prefixes for each consumer of the serviceShows whether the service is healthy, impaired, or down, and lists any missing prefixes in Impaired state. ### Example @@ -16480,8 +16622,8 @@ Update a B2B extranet producer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_id_put_request import V1ExtranetsB2bIdPutRequest -from graphiant_sdk.models.v1_extranets_b2b_id_put_response import V1ExtranetsB2bIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_health_post_request import V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_health_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16507,15 +16649,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 | ID of the B2B Application service - v1_extranets_b2b_id_put_request = graphiant_sdk.V1ExtranetsB2bIdPutRequest() # V1ExtranetsB2bIdPutRequest | + v1_extranet_b2b_monitoring_peering_service_service_health_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest() # V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest | try: - api_response = api_instance.v1_extranets_b2b_id_put(authorization, id, v1_extranets_b2b_id_put_request) - print("The response of DefaultApi->v1_extranets_b2b_id_put:\n") + api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_service_health_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_health_post_request) + print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_health_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_id_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_health_post: %s\n" % e) ``` @@ -16526,12 +16667,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| ID of the B2B Application service | - **v1_extranets_b2b_id_put_request** | [**V1ExtranetsB2bIdPutRequest**](V1ExtranetsB2bIdPutRequest.md)| | + **v1_extranet_b2b_monitoring_peering_service_service_health_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest**](V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest.md)| | ### Return type -[**V1ExtranetsB2bIdPutResponse**](V1ExtranetsB2bIdPutResponse.md) +[**V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse**](V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse.md) ### Authorization @@ -16550,10 +16690,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_extranets_b2b_peering_consumer_customer_id_consumer_details_get** -> V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get(authorization, customer_id, service_id=service_id) +# **v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post** +> V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request) -Get details of a service subscription for a customer +Get b2b extranet peering service overtime consumption ### Example @@ -16561,7 +16701,8 @@ Get details of a service subscription for a customer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_response import V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request import V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest +from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16587,15 +16728,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 - customer_id = 1234567891011 # int | - service_id = 1234567891011 # int | (optional) + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request = graphiant_sdk.V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest() # V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest | try: - api_response = api_instance.v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get(authorization, customer_id, service_id=service_id) - print("The response of DefaultApi->v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get:\n") + api_response = api_instance.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post(authorization, v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request) + print("The response of DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post: %s\n" % e) ``` @@ -16606,12 +16746,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **customer_id** | **int**| | - **service_id** | **int**| | [optional] + **v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request** | [**V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest**](V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest.md)| | ### Return type -[**V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse**](V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse.md) +[**V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse**](V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse.md) ### Authorization @@ -16619,7 +16758,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -16630,10 +16769,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_extranets_b2b_peering_consumer_id_prefixes_put** -> V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse v1_extranets_b2b_peering_consumer_id_prefixes_put(authorization, id, v1_extranets_b2b_peering_consumer_id_prefixes_put_request) +# **v1_extranet_b2b_producer_id_customers_get** +> V1ExtranetB2bProducerIdCustomersGetResponse v1_extranet_b2b_producer_id_customers_get(authorization, id) -Update B2B extranet peering service consumer +List customers matched to an extranet producer service ### Example @@ -16641,8 +16780,7 @@ Update B2B extranet peering service consumer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_id_prefixes_put_request import V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest -from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_id_prefixes_put_response import V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_customers_get_response import V1ExtranetB2bProducerIdCustomersGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16668,15 +16806,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 | consumer id - v1_extranets_b2b_peering_consumer_id_prefixes_put_request = graphiant_sdk.V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest() # V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest | + id = 1234567891011 # int | Producer service id try: - api_response = api_instance.v1_extranets_b2b_peering_consumer_id_prefixes_put(authorization, id, v1_extranets_b2b_peering_consumer_id_prefixes_put_request) - print("The response of DefaultApi->v1_extranets_b2b_peering_consumer_id_prefixes_put:\n") + api_response = api_instance.v1_extranet_b2b_producer_id_customers_get(authorization, id) + print("The response of DefaultApi->v1_extranet_b2b_producer_id_customers_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_consumer_id_prefixes_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_producer_id_customers_get: %s\n" % e) ``` @@ -16687,12 +16824,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| consumer id | - **v1_extranets_b2b_peering_consumer_id_prefixes_put_request** | [**V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest**](V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest.md)| | + **id** | **int**| Producer service id | ### Return type -[**V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse**](V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse.md) +[**V1ExtranetB2bProducerIdCustomersGetResponse**](V1ExtranetB2bProducerIdCustomersGetResponse.md) ### Authorization @@ -16700,7 +16836,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -16711,10 +16847,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_extranets_b2b_peering_consumer_match_id_match_details_get** -> V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse v1_extranets_b2b_peering_consumer_match_id_match_details_get(authorization, match_id) +# **v1_extranet_b2b_producer_id_delete** +> object v1_extranet_b2b_producer_id_delete(authorization, id) -Get details of a service match for a customer +Delete an inter-enterprise extranet service ### Example @@ -16722,7 +16858,6 @@ Get details of a service match for a customer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_match_details_get_response import V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16748,14 +16883,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 - match_id = 1234567891011 # int | + id = 1234567891011 # int | try: - api_response = api_instance.v1_extranets_b2b_peering_consumer_match_id_match_details_get(authorization, match_id) - print("The response of DefaultApi->v1_extranets_b2b_peering_consumer_match_id_match_details_get:\n") + api_response = api_instance.v1_extranet_b2b_producer_id_delete(authorization, id) + print("The response of DefaultApi->v1_extranet_b2b_producer_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_consumer_match_id_match_details_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_producer_id_delete: %s\n" % e) ``` @@ -16766,11 +16901,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **match_id** | **int**| | + **id** | **int**| | ### Return type -[**V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse**](V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse.md) +**object** ### Authorization @@ -16789,10 +16924,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_extranets_b2b_peering_consumer_match_id_post** -> V1ExtranetsB2bPeeringConsumerMatchIdPostResponse v1_extranets_b2b_peering_consumer_match_id_post(authorization, match_id, v1_extranets_b2b_peering_consumer_match_id_post_request) +# **v1_extranet_b2b_producer_id_device_status_get** +> V1ExtranetB2bProducerIdDeviceStatusGetResponse v1_extranet_b2b_producer_id_device_status_get(authorization, id) -Create B2B extranet peering service consumer +Get extranet producer device rollout status ### Example @@ -16800,8 +16935,7 @@ Create B2B extranet peering service consumer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_request import V1ExtranetsB2bPeeringConsumerMatchIdPostRequest -from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_response import V1ExtranetsB2bPeeringConsumerMatchIdPostResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_device_status_get_response import V1ExtranetB2bProducerIdDeviceStatusGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16827,15 +16961,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 - match_id = 1234567891011 # int | ID of the match for the customer subscription of the service - v1_extranets_b2b_peering_consumer_match_id_post_request = graphiant_sdk.V1ExtranetsB2bPeeringConsumerMatchIdPostRequest() # V1ExtranetsB2bPeeringConsumerMatchIdPostRequest | + id = 1234567891011 # int | try: - api_response = api_instance.v1_extranets_b2b_peering_consumer_match_id_post(authorization, match_id, v1_extranets_b2b_peering_consumer_match_id_post_request) - print("The response of DefaultApi->v1_extranets_b2b_peering_consumer_match_id_post:\n") + api_response = api_instance.v1_extranet_b2b_producer_id_device_status_get(authorization, id) + print("The response of DefaultApi->v1_extranet_b2b_producer_id_device_status_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_consumer_match_id_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_producer_id_device_status_get: %s\n" % e) ``` @@ -16846,12 +16979,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **match_id** | **int**| ID of the match for the customer subscription of the service | - **v1_extranets_b2b_peering_consumer_match_id_post_request** | [**V1ExtranetsB2bPeeringConsumerMatchIdPostRequest**](V1ExtranetsB2bPeeringConsumerMatchIdPostRequest.md)| | + **id** | **int**| | ### Return type -[**V1ExtranetsB2bPeeringConsumerMatchIdPostResponse**](V1ExtranetsB2bPeeringConsumerMatchIdPostResponse.md) +[**V1ExtranetB2bProducerIdDeviceStatusGetResponse**](V1ExtranetB2bProducerIdDeviceStatusGetResponse.md) ### Authorization @@ -16859,7 +16991,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -16870,10 +17002,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_extranets_b2b_peering_customer_id_delete** -> V1ExtranetsB2bPeeringCustomerIdDeleteResponse v1_extranets_b2b_peering_customer_id_delete(authorization, id) +# **v1_extranet_b2b_producer_id_get** +> V1ExtranetB2bProducerIdGetResponse v1_extranet_b2b_producer_id_get(authorization, id) -Delete a B2B extranet peering service customer +Get an inter-enterprise extranet service ### Example @@ -16881,7 +17013,7 @@ Delete a B2B extranet peering service customer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_customer_id_delete_response import V1ExtranetsB2bPeeringCustomerIdDeleteResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_get_response import V1ExtranetB2bProducerIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16907,14 +17039,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 | ID of the peering service customer + id = 1234567891011 # int | try: - api_response = api_instance.v1_extranets_b2b_peering_customer_id_delete(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_peering_customer_id_delete:\n") + api_response = api_instance.v1_extranet_b2b_producer_id_get(authorization, id) + print("The response of DefaultApi->v1_extranet_b2b_producer_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_customer_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_producer_id_get: %s\n" % e) ``` @@ -16925,11 +17057,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| ID of the peering service customer | + **id** | **int**| | ### Return type -[**V1ExtranetsB2bPeeringCustomerIdDeleteResponse**](V1ExtranetsB2bPeeringCustomerIdDeleteResponse.md) +[**V1ExtranetB2bProducerIdGetResponse**](V1ExtranetB2bProducerIdGetResponse.md) ### Authorization @@ -16948,10 +17080,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_extranets_b2b_peering_customer_id_get** -> V1ExtranetsB2bPeeringCustomerIdGetResponse v1_extranets_b2b_peering_customer_id_get(authorization, id) +# **v1_extranet_b2b_producer_id_put** +> V1ExtranetB2bProducerIdPutResponse v1_extranet_b2b_producer_id_put(authorization, id, v1_extranet_b2b_producer_id_put_request) -Get a B2B extranet peering service customer +Update an inter-enterprise extranet service ### Example @@ -16959,7 +17091,8 @@ Get a B2B extranet peering service customer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_customer_id_get_response import V1ExtranetsB2bPeeringCustomerIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_put_request import V1ExtranetB2bProducerIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_id_put_response import V1ExtranetB2bProducerIdPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -16985,14 +17118,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 | ID of the peering service customer + id = 1234567891011 # int | + v1_extranet_b2b_producer_id_put_request = graphiant_sdk.V1ExtranetB2bProducerIdPutRequest() # V1ExtranetB2bProducerIdPutRequest | try: - api_response = api_instance.v1_extranets_b2b_peering_customer_id_get(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_peering_customer_id_get:\n") + api_response = api_instance.v1_extranet_b2b_producer_id_put(authorization, id, v1_extranet_b2b_producer_id_put_request) + print("The response of DefaultApi->v1_extranet_b2b_producer_id_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_customer_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_producer_id_put: %s\n" % e) ``` @@ -17003,11 +17137,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| ID of the peering service customer | + **id** | **int**| | + **v1_extranet_b2b_producer_id_put_request** | [**V1ExtranetB2bProducerIdPutRequest**](V1ExtranetB2bProducerIdPutRequest.md)| | ### Return type -[**V1ExtranetsB2bPeeringCustomerIdGetResponse**](V1ExtranetsB2bPeeringCustomerIdGetResponse.md) +[**V1ExtranetB2bProducerIdPutResponse**](V1ExtranetB2bProducerIdPutResponse.md) ### Authorization @@ -17015,7 +17150,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -17026,10 +17161,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_extranets_b2b_peering_customer_post** -> V1ExtranetsB2bPeeringCustomerPostResponse v1_extranets_b2b_peering_customer_post(authorization, v1_extranets_b2b_peering_customer_post_request) +# **v1_extranet_b2b_producer_id_status_put** +> V1ExtranetB2bProducerIdStatusPutResponse v1_extranet_b2b_producer_id_status_put(authorization, id, v1_extranet_b2b_producer_id_status_put_request) -Create a new B2B extranet peering service customer +Pause or resume an inter-enterprise extranet service ### Example @@ -17037,8 +17172,8 @@ Create a new B2B extranet peering service customer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_customer_post_request import V1ExtranetsB2bPeeringCustomerPostRequest -from graphiant_sdk.models.v1_extranets_b2b_peering_customer_post_response import V1ExtranetsB2bPeeringCustomerPostResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_status_put_request import V1ExtranetB2bProducerIdStatusPutRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_id_status_put_response import V1ExtranetB2bProducerIdStatusPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17064,14 +17199,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 - v1_extranets_b2b_peering_customer_post_request = graphiant_sdk.V1ExtranetsB2bPeeringCustomerPostRequest() # V1ExtranetsB2bPeeringCustomerPostRequest | + id = 1234567891011 # int | + v1_extranet_b2b_producer_id_status_put_request = graphiant_sdk.V1ExtranetB2bProducerIdStatusPutRequest() # V1ExtranetB2bProducerIdStatusPutRequest | try: - api_response = api_instance.v1_extranets_b2b_peering_customer_post(authorization, v1_extranets_b2b_peering_customer_post_request) - print("The response of DefaultApi->v1_extranets_b2b_peering_customer_post:\n") + api_response = api_instance.v1_extranet_b2b_producer_id_status_put(authorization, id, v1_extranet_b2b_producer_id_status_put_request) + print("The response of DefaultApi->v1_extranet_b2b_producer_id_status_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_customer_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_producer_id_status_put: %s\n" % e) ``` @@ -17082,11 +17218,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranets_b2b_peering_customer_post_request** | [**V1ExtranetsB2bPeeringCustomerPostRequest**](V1ExtranetsB2bPeeringCustomerPostRequest.md)| | + **id** | **int**| | + **v1_extranet_b2b_producer_id_status_put_request** | [**V1ExtranetB2bProducerIdStatusPutRequest**](V1ExtranetB2bProducerIdStatusPutRequest.md)| | ### Return type -[**V1ExtranetsB2bPeeringCustomerPostResponse**](V1ExtranetsB2bPeeringCustomerPostResponse.md) +[**V1ExtranetB2bProducerIdStatusPutResponse**](V1ExtranetB2bProducerIdStatusPutResponse.md) ### Authorization @@ -17105,10 +17242,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_extranets_b2b_peering_match_service_to_customer_id_delete** -> V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse v1_extranets_b2b_peering_match_service_to_customer_id_delete(authorization, id) +# **v1_extranet_b2b_producer_post** +> V1ExtranetB2bProducerPostResponse v1_extranet_b2b_producer_post(authorization, v1_extranet_b2b_producer_post_request) -Unsubscribe a customer from a service +Create an inter-enterprise extranet service (peering, client-to-server, …) ### Example @@ -17116,7 +17253,8 @@ Unsubscribe a customer from a service ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_id_delete_response import V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_post_request import V1ExtranetB2bProducerPostRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_post_response import V1ExtranetB2bProducerPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17142,14 +17280,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 | ID for the service to customer match to be deleted + v1_extranet_b2b_producer_post_request = graphiant_sdk.V1ExtranetB2bProducerPostRequest() # V1ExtranetB2bProducerPostRequest | try: - api_response = api_instance.v1_extranets_b2b_peering_match_service_to_customer_id_delete(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_id_delete:\n") + api_response = api_instance.v1_extranet_b2b_producer_post(authorization, v1_extranet_b2b_producer_post_request) + print("The response of DefaultApi->v1_extranet_b2b_producer_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_producer_post: %s\n" % e) ``` @@ -17160,11 +17298,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| ID for the service to customer match to be deleted | + **v1_extranet_b2b_producer_post_request** | [**V1ExtranetB2bProducerPostRequest**](V1ExtranetB2bProducerPostRequest.md)| | ### Return type -[**V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse**](V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse.md) +[**V1ExtranetB2bProducerPostResponse**](V1ExtranetB2bProducerPostResponse.md) ### Authorization @@ -17172,7 +17310,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -17183,10 +17321,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_extranets_b2b_peering_match_service_to_customer_id_get** -> V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse v1_extranets_b2b_peering_match_service_to_customer_id_get(authorization, id, customer_id) +# **v1_extranet_b2b_producer_review_post** +> V1ExtranetB2bProducerReviewPostResponse v1_extranet_b2b_producer_review_post(authorization, v1_extranet_b2b_producer_review_post_request) -Get details for a service to customer subscription +Review inter-enterprise extranet service configuration ### Example @@ -17194,7 +17332,8 @@ Get details for a service to customer subscription ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_id_get_response import V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_review_post_request import V1ExtranetB2bProducerReviewPostRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_review_post_response import V1ExtranetB2bProducerReviewPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17220,15 +17359,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 | Service id for which match details are requested - customer_id = 1234567891011 # int | Customer id + v1_extranet_b2b_producer_review_post_request = graphiant_sdk.V1ExtranetB2bProducerReviewPostRequest() # V1ExtranetB2bProducerReviewPostRequest | try: - api_response = api_instance.v1_extranets_b2b_peering_match_service_to_customer_id_get(authorization, id, customer_id) - print("The response of DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_id_get:\n") + api_response = api_instance.v1_extranet_b2b_producer_review_post(authorization, v1_extranet_b2b_producer_review_post_request) + print("The response of DefaultApi->v1_extranet_b2b_producer_review_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_producer_review_post: %s\n" % e) ``` @@ -17239,12 +17377,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| Service id for which match details are requested | - **customer_id** | **int**| Customer id | + **v1_extranet_b2b_producer_review_post_request** | [**V1ExtranetB2bProducerReviewPostRequest**](V1ExtranetB2bProducerReviewPostRequest.md)| | ### Return type -[**V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse**](V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse.md) +[**V1ExtranetB2bProducerReviewPostResponse**](V1ExtranetB2bProducerReviewPostResponse.md) ### Authorization @@ -17252,7 +17389,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -17263,10 +17400,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_extranets_b2b_peering_match_service_to_customer_post** -> V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse v1_extranets_b2b_peering_match_service_to_customer_post(authorization, v1_extranets_b2b_peering_match_service_to_customer_post_request) +# **v1_extranet_b2b_services_summary_get** +> V1ExtranetB2bServicesSummaryGetResponse v1_extranet_b2b_services_summary_get(authorization) -Create B2B extranet configuration for matching a service to a customer +List inter-enterprise extranet services ### Example @@ -17274,8 +17411,7 @@ Create B2B extranet configuration for matching a service to a customer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_post_request import V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest -from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_post_response import V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse +from graphiant_sdk.models.v1_extranet_b2b_services_summary_get_response import V1ExtranetB2bServicesSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17301,14 +17437,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_extranets_b2b_peering_match_service_to_customer_post_request = graphiant_sdk.V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest() # V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest | try: - api_response = api_instance.v1_extranets_b2b_peering_match_service_to_customer_post(authorization, v1_extranets_b2b_peering_match_service_to_customer_post_request) - print("The response of DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_post:\n") + api_response = api_instance.v1_extranet_b2b_services_summary_get(authorization) + print("The response of DefaultApi->v1_extranet_b2b_services_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_b2b_services_summary_get: %s\n" % e) ``` @@ -17319,11 +17454,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranets_b2b_peering_match_service_to_customer_post_request** | [**V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest**](V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest.md)| | ### Return type -[**V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse**](V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse.md) +[**V1ExtranetB2bServicesSummaryGetResponse**](V1ExtranetB2bServicesSummaryGetResponse.md) ### Authorization @@ -17331,7 +17465,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -17342,10 +17476,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_extranets_b2b_peering_match_service_to_customer_service_status_put** -> V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse v1_extranets_b2b_peering_match_service_to_customer_service_status_put(authorization, v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request) +# **v1_extranet_sites_usage_top_post** +> V1ExtranetSitesUsageTopPostResponse v1_extranet_sites_usage_top_post(authorization, v1_extranet_sites_usage_top_post_request) -Pause B2B match service to customer +Get extranet service top sites usage stats ### Example @@ -17353,8 +17487,8 @@ Pause B2B match service to customer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request import V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest -from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_service_status_put_response import V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse +from graphiant_sdk.models.v1_extranet_sites_usage_top_post_request import V1ExtranetSitesUsageTopPostRequest +from graphiant_sdk.models.v1_extranet_sites_usage_top_post_response import V1ExtranetSitesUsageTopPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17380,14 +17514,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_extranets_b2b_peering_match_service_to_customer_service_status_put_request = graphiant_sdk.V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest() # V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest | + v1_extranet_sites_usage_top_post_request = graphiant_sdk.V1ExtranetSitesUsageTopPostRequest() # V1ExtranetSitesUsageTopPostRequest | try: - api_response = api_instance.v1_extranets_b2b_peering_match_service_to_customer_service_status_put(authorization, v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request) - print("The response of DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_service_status_put:\n") + api_response = api_instance.v1_extranet_sites_usage_top_post(authorization, v1_extranet_sites_usage_top_post_request) + print("The response of DefaultApi->v1_extranet_sites_usage_top_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_service_status_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranet_sites_usage_top_post: %s\n" % e) ``` @@ -17398,11 +17532,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request** | [**V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest**](V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest.md)| | + **v1_extranet_sites_usage_top_post_request** | [**V1ExtranetSitesUsageTopPostRequest**](V1ExtranetSitesUsageTopPostRequest.md)| | ### Return type -[**V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse**](V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse.md) +[**V1ExtranetSitesUsageTopPostResponse**](V1ExtranetSitesUsageTopPostResponse.md) ### Authorization @@ -17421,10 +17555,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_extranets_b2b_peering_match_services_summary_id_get** -> V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse v1_extranets_b2b_peering_match_services_summary_id_get(authorization, id) +# **v1_extranets_b2b_consumer_device_status_id_get** +> V1ExtranetsB2bConsumerDeviceStatusIdGetResponse v1_extranets_b2b_consumer_device_status_id_get(authorization, id) -Get B2B extranet services matching customers summary +Get B2B extranet consumer status ### Example @@ -17432,7 +17566,7 @@ Get B2B extranet services matching customers summary ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_match_services_summary_id_get_response import V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse +from graphiant_sdk.models.v1_extranets_b2b_consumer_device_status_id_get_response import V1ExtranetsB2bConsumerDeviceStatusIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17458,14 +17592,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 | ID of the customer + id = 1234567891011 # int | try: - api_response = api_instance.v1_extranets_b2b_peering_match_services_summary_id_get(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_peering_match_services_summary_id_get:\n") + api_response = api_instance.v1_extranets_b2b_consumer_device_status_id_get(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_consumer_device_status_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_match_services_summary_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_consumer_device_status_id_get: %s\n" % e) ``` @@ -17476,11 +17610,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| ID of the customer | + **id** | **int**| | ### Return type -[**V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse**](V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse.md) +[**V1ExtranetsB2bConsumerDeviceStatusIdGetResponse**](V1ExtranetsB2bConsumerDeviceStatusIdGetResponse.md) ### Authorization @@ -17499,10 +17633,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_extranets_b2b_peering_producer_id_get** -> V1ExtranetsB2bPeeringProducerIdGetResponse v1_extranets_b2b_peering_producer_id_get(authorization, id) +# **v1_extranets_b2b_consumer_id_delete** +> object v1_extranets_b2b_consumer_id_delete(authorization, id) -Get B2B extranet peering service producer +Delete a B2B extranet consumer ### Example @@ -17510,7 +17644,6 @@ Get B2B extranet peering service producer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_producer_id_get_response import V1ExtranetsB2bPeeringProducerIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17536,14 +17669,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 | ID of the service + id = 1234567891011 # int | try: - api_response = api_instance.v1_extranets_b2b_peering_producer_id_get(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_peering_producer_id_get:\n") + api_response = api_instance.v1_extranets_b2b_consumer_id_delete(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_consumer_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_producer_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_consumer_id_delete: %s\n" % e) ``` @@ -17554,11 +17687,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| ID of the service | + **id** | **int**| | ### Return type -[**V1ExtranetsB2bPeeringProducerIdGetResponse**](V1ExtranetsB2bPeeringProducerIdGetResponse.md) +**object** ### Authorization @@ -17577,10 +17710,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_extranets_b2b_peering_producer_id_matching_customers_summary_get** -> V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse v1_extranets_b2b_peering_producer_id_matching_customers_summary_get(authorization, id) +# **v1_extranets_b2b_consumer_id_get** +> V1ExtranetsB2bConsumerIdGetResponse v1_extranets_b2b_consumer_id_get(authorization, id) -Get B2B extranet customers summary +Get a B2B extranet consumer ### Example @@ -17588,7 +17721,7 @@ Get B2B extranet customers summary ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_response import V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse +from graphiant_sdk.models.v1_extranets_b2b_consumer_id_get_response import V1ExtranetsB2bConsumerIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17614,14 +17747,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 | ID of the customer + id = 1234567891011 # int | try: - api_response = api_instance.v1_extranets_b2b_peering_producer_id_matching_customers_summary_get(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_peering_producer_id_matching_customers_summary_get:\n") + api_response = api_instance.v1_extranets_b2b_consumer_id_get(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_consumer_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_producer_id_matching_customers_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_consumer_id_get: %s\n" % e) ``` @@ -17632,11 +17765,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| ID of the customer | + **id** | **int**| | ### Return type -[**V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse**](V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse.md) +[**V1ExtranetsB2bConsumerIdGetResponse**](V1ExtranetsB2bConsumerIdGetResponse.md) ### Authorization @@ -17655,10 +17788,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_extranets_b2b_peering_producer_post** -> V1ExtranetsB2bPeeringProducerPostResponse v1_extranets_b2b_peering_producer_post(authorization, v1_extranets_b2b_peering_producer_post_request) +# **v1_extranets_b2b_consumer_post** +> V1ExtranetsB2bConsumerPostResponse v1_extranets_b2b_consumer_post(authorization, v1_extranets_b2b_consumer_post_request) -Create a new B2B extranet peering service producer +Create a new B2B extranet consumer ### Example @@ -17666,8 +17799,8 @@ Create a new B2B extranet peering service producer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_peering_producer_post_request import V1ExtranetsB2bPeeringProducerPostRequest -from graphiant_sdk.models.v1_extranets_b2b_peering_producer_post_response import V1ExtranetsB2bPeeringProducerPostResponse +from graphiant_sdk.models.v1_extranets_b2b_consumer_post_request import V1ExtranetsB2bConsumerPostRequest +from graphiant_sdk.models.v1_extranets_b2b_consumer_post_response import V1ExtranetsB2bConsumerPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17693,14 +17826,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_extranets_b2b_peering_producer_post_request = graphiant_sdk.V1ExtranetsB2bPeeringProducerPostRequest() # V1ExtranetsB2bPeeringProducerPostRequest | + v1_extranets_b2b_consumer_post_request = graphiant_sdk.V1ExtranetsB2bConsumerPostRequest() # V1ExtranetsB2bConsumerPostRequest | try: - api_response = api_instance.v1_extranets_b2b_peering_producer_post(authorization, v1_extranets_b2b_peering_producer_post_request) - print("The response of DefaultApi->v1_extranets_b2b_peering_producer_post:\n") + api_response = api_instance.v1_extranets_b2b_consumer_post(authorization, v1_extranets_b2b_consumer_post_request) + print("The response of DefaultApi->v1_extranets_b2b_consumer_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_peering_producer_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_consumer_post: %s\n" % e) ``` @@ -17711,11 +17844,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranets_b2b_peering_producer_post_request** | [**V1ExtranetsB2bPeeringProducerPostRequest**](V1ExtranetsB2bPeeringProducerPostRequest.md)| | + **v1_extranets_b2b_consumer_post_request** | [**V1ExtranetsB2bConsumerPostRequest**](V1ExtranetsB2bConsumerPostRequest.md)| | ### Return type -[**V1ExtranetsB2bPeeringProducerPostResponse**](V1ExtranetsB2bPeeringProducerPostResponse.md) +[**V1ExtranetsB2bConsumerPostResponse**](V1ExtranetsB2bConsumerPostResponse.md) ### Authorization @@ -17734,10 +17867,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_extranets_b2b_post** -> V1ExtranetsB2bPostResponse v1_extranets_b2b_post(authorization, v1_extranets_b2b_post_request) +# **v1_extranets_b2b_consumer_summary_get** +> V1ExtranetsB2bConsumerSummaryGetResponse v1_extranets_b2b_consumer_summary_get(authorization) -Create a new B2B extranet producer +Get B2B extranet consumers summary ### Example @@ -17745,8 +17878,7 @@ Create a new B2B extranet producer ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_post_request import V1ExtranetsB2bPostRequest -from graphiant_sdk.models.v1_extranets_b2b_post_response import V1ExtranetsB2bPostResponse +from graphiant_sdk.models.v1_extranets_b2b_consumer_summary_get_response import V1ExtranetsB2bConsumerSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17772,14 +17904,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_extranets_b2b_post_request = graphiant_sdk.V1ExtranetsB2bPostRequest() # V1ExtranetsB2bPostRequest | try: - api_response = api_instance.v1_extranets_b2b_post(authorization, v1_extranets_b2b_post_request) - print("The response of DefaultApi->v1_extranets_b2b_post:\n") + api_response = api_instance.v1_extranets_b2b_consumer_summary_get(authorization) + print("The response of DefaultApi->v1_extranets_b2b_consumer_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_consumer_summary_get: %s\n" % e) ``` @@ -17790,11 +17921,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranets_b2b_post_request** | [**V1ExtranetsB2bPostRequest**](V1ExtranetsB2bPostRequest.md)| | ### Return type -[**V1ExtranetsB2bPostResponse**](V1ExtranetsB2bPostResponse.md) +[**V1ExtranetsB2bConsumerSummaryGetResponse**](V1ExtranetsB2bConsumerSummaryGetResponse.md) ### Authorization @@ -17802,7 +17932,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -17813,10 +17943,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_extranets_b2b_producer_device_status_id_get** -> V1ExtranetsB2bProducerDeviceStatusIdGetResponse v1_extranets_b2b_producer_device_status_id_get(authorization, id) +# **v1_extranets_b2b_customer_id_delete** +> object v1_extranets_b2b_customer_id_delete(authorization, id) -Get B2B extranet producer status +Delete a B2B extranet customer ### Example @@ -17824,7 +17954,6 @@ Get B2B extranet producer status ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_producer_device_status_id_get_response import V1ExtranetsB2bProducerDeviceStatusIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17853,11 +17982,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: id = 1234567891011 # int | try: - api_response = api_instance.v1_extranets_b2b_producer_device_status_id_get(authorization, id) - print("The response of DefaultApi->v1_extranets_b2b_producer_device_status_id_get:\n") + api_response = api_instance.v1_extranets_b2b_customer_id_delete(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_customer_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_producer_device_status_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_customer_id_delete: %s\n" % e) ``` @@ -17872,7 +18001,7 @@ Name | Type | Description | Notes ### Return type -[**V1ExtranetsB2bProducerDeviceStatusIdGetResponse**](V1ExtranetsB2bProducerDeviceStatusIdGetResponse.md) +**object** ### Authorization @@ -17891,10 +18020,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_extranets_b2b_producers_summary_get** -> V1ExtranetsB2bProducersSummaryGetResponse v1_extranets_b2b_producers_summary_get(authorization) +# **v1_extranets_b2b_customer_info_id_get** +> V1ExtranetsB2bCustomerInfoIdGetResponse v1_extranets_b2b_customer_info_id_get(authorization, id) -Get B2B extranet producers summary +Get B2B extranet application customer ### Example @@ -17902,7 +18031,7 @@ Get B2B extranet producers summary ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_b2b_producers_summary_get_response import V1ExtranetsB2bProducersSummaryGetResponse +from graphiant_sdk.models.v1_extranets_b2b_customer_info_id_get_response import V1ExtranetsB2bCustomerInfoIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -17928,13 +18057,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_extranets_b2b_producers_summary_get(authorization) - print("The response of DefaultApi->v1_extranets_b2b_producers_summary_get:\n") + api_response = api_instance.v1_extranets_b2b_customer_info_id_get(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_customer_info_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_b2b_producers_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_customer_info_id_get: %s\n" % e) ``` @@ -17945,10 +18075,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 -[**V1ExtranetsB2bProducersSummaryGetResponse**](V1ExtranetsB2bProducersSummaryGetResponse.md) +[**V1ExtranetsB2bCustomerInfoIdGetResponse**](V1ExtranetsB2bCustomerInfoIdGetResponse.md) ### Authorization @@ -17967,82 +18098,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_extranets_get** -> V1ExtranetsGetResponse v1_extranets_get(authorization) - -### Example - -* Api Key Authentication (jwtAuth): - -```python -import graphiant_sdk -from graphiant_sdk.models.v1_extranets_get_response import V1ExtranetsGetResponse -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_extranets_get(authorization) - print("The response of DefaultApi->v1_extranets_get:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_get: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - -### Return type - -[**V1ExtranetsGetResponse**](V1ExtranetsGetResponse.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_extranets_b2b_general_customers_summary_get** +> V1ExtranetsB2bGeneralCustomersSummaryGetResponse v1_extranets_b2b_general_customers_summary_get(authorization) -# **v1_extranets_id_apply_post** -> V1ExtranetsIdApplyPostResponse v1_extranets_id_apply_post(authorization, id, v1_extranets_id_apply_post_request) +Get summary for a B2B extranet peering services customers ### Example @@ -18050,8 +18109,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_id_apply_post_request import V1ExtranetsIdApplyPostRequest -from graphiant_sdk.models.v1_extranets_id_apply_post_response import V1ExtranetsIdApplyPostResponse +from graphiant_sdk.models.v1_extranets_b2b_general_customers_summary_get_response import V1ExtranetsB2bGeneralCustomersSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -18077,92 +18135,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 | - v1_extranets_id_apply_post_request = graphiant_sdk.V1ExtranetsIdApplyPostRequest() # V1ExtranetsIdApplyPostRequest | try: - api_response = api_instance.v1_extranets_id_apply_post(authorization, id, v1_extranets_id_apply_post_request) - print("The response of DefaultApi->v1_extranets_id_apply_post:\n") - pprint(api_response) - except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_id_apply_post: %s\n" % e) -``` - - - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | - **v1_extranets_id_apply_post_request** | [**V1ExtranetsIdApplyPostRequest**](V1ExtranetsIdApplyPostRequest.md)| | - -### Return type - -[**V1ExtranetsIdApplyPostResponse**](V1ExtranetsIdApplyPostResponse.md) - -### Authorization - -[jwtAuth](../README.md#jwtAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -### HTTP response details - -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**202** | Accepted | - | - -[[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_extranets_id_delete** -> V1ExtranetsIdDeleteResponse v1_extranets_id_delete(authorization, id) - -### Example - -* Api Key Authentication (jwtAuth): - -```python -import graphiant_sdk -from graphiant_sdk.models.v1_extranets_id_delete_response import V1ExtranetsIdDeleteResponse -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_extranets_id_delete(authorization, id) - print("The response of DefaultApi->v1_extranets_id_delete:\n") + api_response = api_instance.v1_extranets_b2b_general_customers_summary_get(authorization) + print("The response of DefaultApi->v1_extranets_b2b_general_customers_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_general_customers_summary_get: %s\n" % e) ``` @@ -18173,11 +18152,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 -[**V1ExtranetsIdDeleteResponse**](V1ExtranetsIdDeleteResponse.md) +[**V1ExtranetsB2bGeneralCustomersSummaryGetResponse**](V1ExtranetsB2bGeneralCustomersSummaryGetResponse.md) ### Authorization @@ -18196,8 +18174,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_extranets_id_get** -> V1ExtranetsIdGetResponse v1_extranets_id_get(authorization, id) +# **v1_extranets_b2b_general_services_summary_get** +> V1ExtranetsB2bGeneralServicesSummaryGetResponse v1_extranets_b2b_general_services_summary_get(authorization) + +Get a summary for all the B2B extranet services ### Example @@ -18205,7 +18185,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_id_get_response import V1ExtranetsIdGetResponse +from graphiant_sdk.models.v1_extranets_b2b_general_services_summary_get_response import V1ExtranetsB2bGeneralServicesSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -18231,14 +18211,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_extranets_id_get(authorization, id) - print("The response of DefaultApi->v1_extranets_id_get:\n") + api_response = api_instance.v1_extranets_b2b_general_services_summary_get(authorization) + print("The response of DefaultApi->v1_extranets_b2b_general_services_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_general_services_summary_get: %s\n" % e) ``` @@ -18249,11 +18228,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 -[**V1ExtranetsIdGetResponse**](V1ExtranetsIdGetResponse.md) +[**V1ExtranetsB2bGeneralServicesSummaryGetResponse**](V1ExtranetsB2bGeneralServicesSummaryGetResponse.md) ### Authorization @@ -18272,8 +18250,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_extranets_id_put** -> V1ExtranetsIdPutResponse v1_extranets_id_put(authorization, id, v1_extranets_id_put_request) +# **v1_extranets_b2b_id_customer_post** +> V1ExtranetsB2bIdCustomerPostResponse v1_extranets_b2b_id_customer_post(authorization, id, v1_extranets_b2b_id_customer_post_request) + +Create B2B extranet application customer invite ### Example @@ -18281,8 +18261,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_id_put_request import V1ExtranetsIdPutRequest -from graphiant_sdk.models.v1_extranets_id_put_response import V1ExtranetsIdPutResponse +from graphiant_sdk.models.v1_extranets_b2b_id_customer_post_request import V1ExtranetsB2bIdCustomerPostRequest +from graphiant_sdk.models.v1_extranets_b2b_id_customer_post_response import V1ExtranetsB2bIdCustomerPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -18308,15 +18288,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 | - v1_extranets_id_put_request = graphiant_sdk.V1ExtranetsIdPutRequest() # V1ExtranetsIdPutRequest | + id = 1234567891011 # int | Service ID of the application customer is invited to + v1_extranets_b2b_id_customer_post_request = graphiant_sdk.V1ExtranetsB2bIdCustomerPostRequest() # V1ExtranetsB2bIdCustomerPostRequest | try: - api_response = api_instance.v1_extranets_id_put(authorization, id, v1_extranets_id_put_request) - print("The response of DefaultApi->v1_extranets_id_put:\n") + api_response = api_instance.v1_extranets_b2b_id_customer_post(authorization, id, v1_extranets_b2b_id_customer_post_request) + print("The response of DefaultApi->v1_extranets_b2b_id_customer_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_id_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_id_customer_post: %s\n" % e) ``` @@ -18327,12 +18307,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | - **v1_extranets_id_put_request** | [**V1ExtranetsIdPutRequest**](V1ExtranetsIdPutRequest.md)| | + **id** | **int**| Service ID of the application customer is invited to | + **v1_extranets_b2b_id_customer_post_request** | [**V1ExtranetsB2bIdCustomerPostRequest**](V1ExtranetsB2bIdCustomerPostRequest.md)| | ### Return type -[**V1ExtranetsIdPutResponse**](V1ExtranetsIdPutResponse.md) +[**V1ExtranetsB2bIdCustomerPostResponse**](V1ExtranetsB2bIdCustomerPostResponse.md) ### Authorization @@ -18351,8 +18331,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_extranets_id_status_get** -> V1ExtranetsIdStatusGetResponse v1_extranets_id_status_get(authorization, id) +# **v1_extranets_b2b_id_customer_summary_get** +> V1ExtranetsB2bIdCustomerSummaryGetResponse v1_extranets_b2b_id_customer_summary_get(authorization, id) + +Get B2B extranet application customers summary ### Example @@ -18360,7 +18342,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_id_status_get_response import V1ExtranetsIdStatusGetResponse +from graphiant_sdk.models.v1_extranets_b2b_id_customer_summary_get_response import V1ExtranetsB2bIdCustomerSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -18389,11 +18371,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: id = 1234567891011 # int | try: - api_response = api_instance.v1_extranets_id_status_get(authorization, id) - print("The response of DefaultApi->v1_extranets_id_status_get:\n") + api_response = api_instance.v1_extranets_b2b_id_customer_summary_get(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_id_customer_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_id_status_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_id_customer_summary_get: %s\n" % e) ``` @@ -18408,7 +18390,7 @@ Name | Type | Description | Notes ### Return type -[**V1ExtranetsIdStatusGetResponse**](V1ExtranetsIdStatusGetResponse.md) +[**V1ExtranetsB2bIdCustomerSummaryGetResponse**](V1ExtranetsB2bIdCustomerSummaryGetResponse.md) ### Authorization @@ -18427,8 +18409,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_extranets_monitoring_lan_segments_get** -> V1ExtranetsMonitoringLanSegmentsGetResponse v1_extranets_monitoring_lan_segments_get(authorization, id=id, is_provider=is_provider) +# **v1_extranets_b2b_id_delete** +> object v1_extranets_b2b_id_delete(authorization, id) + +Delete a B2B extranet producer ### Example @@ -18436,7 +18420,6 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_monitoring_lan_segments_get_response import V1ExtranetsMonitoringLanSegmentsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -18462,15 +18445,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 = 800 # int | Extranet Service Id (optional) - is_provider = true # bool | (optional) + id = 1234567891011 # int | ID of the producer service to be deleted try: - api_response = api_instance.v1_extranets_monitoring_lan_segments_get(authorization, id=id, is_provider=is_provider) - print("The response of DefaultApi->v1_extranets_monitoring_lan_segments_get:\n") + api_response = api_instance.v1_extranets_b2b_id_delete(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_monitoring_lan_segments_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_id_delete: %s\n" % e) ``` @@ -18481,12 +18463,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| Extranet Service Id | [optional] - **is_provider** | **bool**| | [optional] + **id** | **int**| ID of the producer service to be deleted | ### Return type -[**V1ExtranetsMonitoringLanSegmentsGetResponse**](V1ExtranetsMonitoringLanSegmentsGetResponse.md) +**object** ### Authorization @@ -18505,8 +18486,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_extranets_monitoring_nat_usage_get** -> V1ExtranetsMonitoringNatUsageGetResponse v1_extranets_monitoring_nat_usage_get(authorization, id) +# **v1_extranets_b2b_id_producer_get** +> V1ExtranetsB2bIdProducerGetResponse v1_extranets_b2b_id_producer_get(authorization, id, type=type) + +Get a B2B extranet producer ### Example @@ -18514,7 +18497,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_monitoring_nat_usage_get_response import V1ExtranetsMonitoringNatUsageGetResponse +from graphiant_sdk.models.v1_extranets_b2b_id_producer_get_response import V1ExtranetsB2bIdProducerGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -18540,14 +18523,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 = 800 # int | Extranet Service Id + id = 1234567891011 # int | + type = 'ENUM_VALUE' # str | (optional) try: - api_response = api_instance.v1_extranets_monitoring_nat_usage_get(authorization, id) - print("The response of DefaultApi->v1_extranets_monitoring_nat_usage_get:\n") + api_response = api_instance.v1_extranets_b2b_id_producer_get(authorization, id, type=type) + print("The response of DefaultApi->v1_extranets_b2b_id_producer_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_monitoring_nat_usage_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_id_producer_get: %s\n" % e) ``` @@ -18558,11 +18542,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| Extranet Service Id | + **id** | **int**| | + **type** | **str**| | [optional] ### Return type -[**V1ExtranetsMonitoringNatUsageGetResponse**](V1ExtranetsMonitoringNatUsageGetResponse.md) +[**V1ExtranetsB2bIdProducerGetResponse**](V1ExtranetsB2bIdProducerGetResponse.md) ### Authorization @@ -18581,10 +18566,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_extranets_monitoring_traffic_security_policy_post** -> V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse v1_extranets_monitoring_traffic_security_policy_post(authorization, v1_extranets_monitoring_traffic_security_policy_post_request) +# **v1_extranets_b2b_id_put** +> V1ExtranetsB2bIdPutResponse v1_extranets_b2b_id_put(authorization, id, v1_extranets_b2b_id_put_request) -Get lists of traffic and security policies +Update a B2B extranet producer ### Example @@ -18592,8 +18577,8 @@ Get lists of traffic and security policies ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_monitoring_traffic_security_policy_post_request import V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest -from graphiant_sdk.models.v1_extranets_monitoring_traffic_security_policy_post_response import V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse +from graphiant_sdk.models.v1_extranets_b2b_id_put_request import V1ExtranetsB2bIdPutRequest +from graphiant_sdk.models.v1_extranets_b2b_id_put_response import V1ExtranetsB2bIdPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -18619,14 +18604,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 - v1_extranets_monitoring_traffic_security_policy_post_request = graphiant_sdk.V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest() # V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest | + id = 1234567891011 # int | ID of the B2B Application service + v1_extranets_b2b_id_put_request = graphiant_sdk.V1ExtranetsB2bIdPutRequest() # V1ExtranetsB2bIdPutRequest | try: - api_response = api_instance.v1_extranets_monitoring_traffic_security_policy_post(authorization, v1_extranets_monitoring_traffic_security_policy_post_request) - print("The response of DefaultApi->v1_extranets_monitoring_traffic_security_policy_post:\n") + api_response = api_instance.v1_extranets_b2b_id_put(authorization, id, v1_extranets_b2b_id_put_request) + print("The response of DefaultApi->v1_extranets_b2b_id_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_monitoring_traffic_security_policy_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_id_put: %s\n" % e) ``` @@ -18637,11 +18623,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranets_monitoring_traffic_security_policy_post_request** | [**V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest**](V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest.md)| | + **id** | **int**| ID of the B2B Application service | + **v1_extranets_b2b_id_put_request** | [**V1ExtranetsB2bIdPutRequest**](V1ExtranetsB2bIdPutRequest.md)| | ### Return type -[**V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse**](V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse.md) +[**V1ExtranetsB2bIdPutResponse**](V1ExtranetsB2bIdPutResponse.md) ### Authorization @@ -18660,8 +18647,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_extranets_post** -> V1ExtranetsPostResponse v1_extranets_post(authorization, v1_extranets_post_request) +# **v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get** +> V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get(authorization, customer_id, service_id=service_id) + +Get details of a service subscription for a customer ### Example @@ -18669,8 +18658,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_post_request import V1ExtranetsPostRequest -from graphiant_sdk.models.v1_extranets_post_response import V1ExtranetsPostResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_response import V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -18696,14 +18684,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 - v1_extranets_post_request = graphiant_sdk.V1ExtranetsPostRequest() # V1ExtranetsPostRequest | + customer_id = 1234567891011 # int | + service_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v1_extranets_post(authorization, v1_extranets_post_request) - print("The response of DefaultApi->v1_extranets_post:\n") + api_response = api_instance.v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get(authorization, customer_id, service_id=service_id) + print("The response of DefaultApi->v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get: %s\n" % e) ``` @@ -18714,11 +18703,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranets_post_request** | [**V1ExtranetsPostRequest**](V1ExtranetsPostRequest.md)| | + **customer_id** | **int**| | + **service_id** | **int**| | [optional] ### Return type -[**V1ExtranetsPostResponse**](V1ExtranetsPostResponse.md) +[**V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse**](V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse.md) ### Authorization @@ -18726,7 +18716,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -18737,8 +18727,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_extranets_resolve_policy_target_post** -> V1ExtranetsResolvePolicyTargetPostResponse v1_extranets_resolve_policy_target_post(authorization, v1_extranets_resolve_policy_target_post_request) +# **v1_extranets_b2b_peering_consumer_id_prefixes_put** +> V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse v1_extranets_b2b_peering_consumer_id_prefixes_put(authorization, id, v1_extranets_b2b_peering_consumer_id_prefixes_put_request) + +Update B2B extranet peering service consumer ### Example @@ -18746,8 +18738,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_resolve_policy_target_post_request import V1ExtranetsResolvePolicyTargetPostRequest -from graphiant_sdk.models.v1_extranets_resolve_policy_target_post_response import V1ExtranetsResolvePolicyTargetPostResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_id_prefixes_put_request import V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest +from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_id_prefixes_put_response import V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -18773,14 +18765,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 - v1_extranets_resolve_policy_target_post_request = graphiant_sdk.V1ExtranetsResolvePolicyTargetPostRequest() # V1ExtranetsResolvePolicyTargetPostRequest | + id = 1234567891011 # int | consumer id + v1_extranets_b2b_peering_consumer_id_prefixes_put_request = graphiant_sdk.V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest() # V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest | try: - api_response = api_instance.v1_extranets_resolve_policy_target_post(authorization, v1_extranets_resolve_policy_target_post_request) - print("The response of DefaultApi->v1_extranets_resolve_policy_target_post:\n") + api_response = api_instance.v1_extranets_b2b_peering_consumer_id_prefixes_put(authorization, id, v1_extranets_b2b_peering_consumer_id_prefixes_put_request) + print("The response of DefaultApi->v1_extranets_b2b_peering_consumer_id_prefixes_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_resolve_policy_target_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_consumer_id_prefixes_put: %s\n" % e) ``` @@ -18791,11 +18784,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranets_resolve_policy_target_post_request** | [**V1ExtranetsResolvePolicyTargetPostRequest**](V1ExtranetsResolvePolicyTargetPostRequest.md)| | + **id** | **int**| consumer id | + **v1_extranets_b2b_peering_consumer_id_prefixes_put_request** | [**V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest**](V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest.md)| | ### Return type -[**V1ExtranetsResolvePolicyTargetPostResponse**](V1ExtranetsResolvePolicyTargetPostResponse.md) +[**V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse**](V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse.md) ### Authorization @@ -18814,8 +18808,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_extranets_source_segments_post** -> V1ExtranetsSourceSegmentsPostResponse v1_extranets_source_segments_post(authorization, v1_extranets_source_segments_post_request) +# **v1_extranets_b2b_peering_consumer_match_id_match_details_get** +> V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse v1_extranets_b2b_peering_consumer_match_id_match_details_get(authorization, match_id) + +Get details of a service match for a customer ### Example @@ -18823,8 +18819,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_extranets_source_segments_post_request import V1ExtranetsSourceSegmentsPostRequest -from graphiant_sdk.models.v1_extranets_source_segments_post_response import V1ExtranetsSourceSegmentsPostResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_match_details_get_response import V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -18850,14 +18845,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_extranets_source_segments_post_request = graphiant_sdk.V1ExtranetsSourceSegmentsPostRequest() # V1ExtranetsSourceSegmentsPostRequest | + match_id = 1234567891011 # int | try: - api_response = api_instance.v1_extranets_source_segments_post(authorization, v1_extranets_source_segments_post_request) - print("The response of DefaultApi->v1_extranets_source_segments_post:\n") + api_response = api_instance.v1_extranets_b2b_peering_consumer_match_id_match_details_get(authorization, match_id) + print("The response of DefaultApi->v1_extranets_b2b_peering_consumer_match_id_match_details_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_extranets_source_segments_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_consumer_match_id_match_details_get: %s\n" % e) ``` @@ -18868,11 +18863,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_extranets_source_segments_post_request** | [**V1ExtranetsSourceSegmentsPostRequest**](V1ExtranetsSourceSegmentsPostRequest.md)| | + **match_id** | **int**| | ### Return type -[**V1ExtranetsSourceSegmentsPostResponse**](V1ExtranetsSourceSegmentsPostResponse.md) +[**V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse**](V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse.md) ### Authorization @@ -18880,7 +18875,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -18891,10 +18886,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_flows_flow_table_post** -> V1FlowsFlowTablePostResponse v1_flows_flow_table_post(authorization, v1_flows_flow_table_post_request) +# **v1_extranets_b2b_peering_consumer_match_id_post** +> V1ExtranetsB2bPeeringConsumerMatchIdPostResponse v1_extranets_b2b_peering_consumer_match_id_post(authorization, match_id, v1_extranets_b2b_peering_consumer_match_id_post_request) -Get flow table for the app on the device +Create B2B extranet peering service consumer ### Example @@ -18902,8 +18897,8 @@ Get flow table for the app on the device ```python import graphiant_sdk -from graphiant_sdk.models.v1_flows_flow_table_post_request import V1FlowsFlowTablePostRequest -from graphiant_sdk.models.v1_flows_flow_table_post_response import V1FlowsFlowTablePostResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_request import V1ExtranetsB2bPeeringConsumerMatchIdPostRequest +from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_match_id_post_response import V1ExtranetsB2bPeeringConsumerMatchIdPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -18929,14 +18924,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 - v1_flows_flow_table_post_request = graphiant_sdk.V1FlowsFlowTablePostRequest() # V1FlowsFlowTablePostRequest | + match_id = 1234567891011 # int | ID of the match for the customer subscription of the service + v1_extranets_b2b_peering_consumer_match_id_post_request = graphiant_sdk.V1ExtranetsB2bPeeringConsumerMatchIdPostRequest() # V1ExtranetsB2bPeeringConsumerMatchIdPostRequest | try: - api_response = api_instance.v1_flows_flow_table_post(authorization, v1_flows_flow_table_post_request) - print("The response of DefaultApi->v1_flows_flow_table_post:\n") + api_response = api_instance.v1_extranets_b2b_peering_consumer_match_id_post(authorization, match_id, v1_extranets_b2b_peering_consumer_match_id_post_request) + print("The response of DefaultApi->v1_extranets_b2b_peering_consumer_match_id_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_flows_flow_table_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_consumer_match_id_post: %s\n" % e) ``` @@ -18947,11 +18943,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_flows_flow_table_post_request** | [**V1FlowsFlowTablePostRequest**](V1FlowsFlowTablePostRequest.md)| | + **match_id** | **int**| ID of the match for the customer subscription of the service | + **v1_extranets_b2b_peering_consumer_match_id_post_request** | [**V1ExtranetsB2bPeeringConsumerMatchIdPostRequest**](V1ExtranetsB2bPeeringConsumerMatchIdPostRequest.md)| | ### Return type -[**V1FlowsFlowTablePostResponse**](V1FlowsFlowTablePostResponse.md) +[**V1ExtranetsB2bPeeringConsumerMatchIdPostResponse**](V1ExtranetsB2bPeeringConsumerMatchIdPostResponse.md) ### Authorization @@ -18970,10 +18967,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_flows_topology_post** -> V1FlowsTopologyPostResponse v1_flows_topology_post(authorization, v1_flows_topology_post_request) +# **v1_extranets_b2b_peering_customer_id_delete** +> V1ExtranetsB2bPeeringCustomerIdDeleteResponse v1_extranets_b2b_peering_customer_id_delete(authorization, id) -Get flow based node and circuit topology for the device +Delete a B2B extranet peering service customer ### Example @@ -18981,8 +18978,7 @@ Get flow based node and circuit topology for the device ```python import graphiant_sdk -from graphiant_sdk.models.v1_flows_topology_post_request import V1FlowsTopologyPostRequest -from graphiant_sdk.models.v1_flows_topology_post_response import V1FlowsTopologyPostResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_customer_id_delete_response import V1ExtranetsB2bPeeringCustomerIdDeleteResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19008,14 +19004,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_flows_topology_post_request = graphiant_sdk.V1FlowsTopologyPostRequest() # V1FlowsTopologyPostRequest | + id = 1234567891011 # int | ID of the peering service customer try: - api_response = api_instance.v1_flows_topology_post(authorization, v1_flows_topology_post_request) - print("The response of DefaultApi->v1_flows_topology_post:\n") + api_response = api_instance.v1_extranets_b2b_peering_customer_id_delete(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_peering_customer_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_flows_topology_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_customer_id_delete: %s\n" % e) ``` @@ -19026,11 +19022,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_flows_topology_post_request** | [**V1FlowsTopologyPostRequest**](V1FlowsTopologyPostRequest.md)| | + **id** | **int**| ID of the peering service customer | ### Return type -[**V1FlowsTopologyPostResponse**](V1FlowsTopologyPostResponse.md) +[**V1ExtranetsB2bPeeringCustomerIdDeleteResponse**](V1ExtranetsB2bPeeringCustomerIdDeleteResponse.md) ### Authorization @@ -19038,7 +19034,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -19049,8 +19045,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_gateways_delete** -> object v1_gateways_delete(authorization, id=id) +# **v1_extranets_b2b_peering_customer_id_get** +> V1ExtranetsB2bPeeringCustomerIdGetResponse v1_extranets_b2b_peering_customer_id_get(authorization, id) + +Get a B2B extranet peering service customer ### Example @@ -19058,6 +19056,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk +from graphiant_sdk.models.v1_extranets_b2b_peering_customer_id_get_response import V1ExtranetsB2bPeeringCustomerIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19083,14 +19082,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 | (optional) + id = 1234567891011 # int | ID of the peering service customer try: - api_response = api_instance.v1_gateways_delete(authorization, id=id) - print("The response of DefaultApi->v1_gateways_delete:\n") + api_response = api_instance.v1_extranets_b2b_peering_customer_id_get(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_peering_customer_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_gateways_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_customer_id_get: %s\n" % e) ``` @@ -19101,11 +19100,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | [optional] + **id** | **int**| ID of the peering service customer | ### Return type -**object** +[**V1ExtranetsB2bPeeringCustomerIdGetResponse**](V1ExtranetsB2bPeeringCustomerIdGetResponse.md) ### Authorization @@ -19124,10 +19123,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_gateways_guest_consumer_match_id_get** -> V1GatewaysGuestConsumerMatchIdGetResponse v1_gateways_guest_consumer_match_id_get(authorization, match_id, email=email) +# **v1_extranets_b2b_peering_customer_post** +> V1ExtranetsB2bPeeringCustomerPostResponse v1_extranets_b2b_peering_customer_post(authorization, v1_extranets_b2b_peering_customer_post_request) -Get Site to Site VPN information for a non-Graphiant guest consumer by their email +Create a new B2B extranet peering service customer ### Example @@ -19135,7 +19134,8 @@ Get Site to Site VPN information for a non-Graphiant guest consumer by their ema ```python import graphiant_sdk -from graphiant_sdk.models.v1_gateways_guest_consumer_match_id_get_response import V1GatewaysGuestConsumerMatchIdGetResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_customer_post_request import V1ExtranetsB2bPeeringCustomerPostRequest +from graphiant_sdk.models.v1_extranets_b2b_peering_customer_post_response import V1ExtranetsB2bPeeringCustomerPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19161,15 +19161,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 - match_id = 1234567891011 # int | - email = 'example string' # str | (optional) + v1_extranets_b2b_peering_customer_post_request = graphiant_sdk.V1ExtranetsB2bPeeringCustomerPostRequest() # V1ExtranetsB2bPeeringCustomerPostRequest | try: - api_response = api_instance.v1_gateways_guest_consumer_match_id_get(authorization, match_id, email=email) - print("The response of DefaultApi->v1_gateways_guest_consumer_match_id_get:\n") + api_response = api_instance.v1_extranets_b2b_peering_customer_post(authorization, v1_extranets_b2b_peering_customer_post_request) + print("The response of DefaultApi->v1_extranets_b2b_peering_customer_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_gateways_guest_consumer_match_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_customer_post: %s\n" % e) ``` @@ -19180,12 +19179,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **match_id** | **int**| | - **email** | **str**| | [optional] + **v1_extranets_b2b_peering_customer_post_request** | [**V1ExtranetsB2bPeeringCustomerPostRequest**](V1ExtranetsB2bPeeringCustomerPostRequest.md)| | ### Return type -[**V1GatewaysGuestConsumerMatchIdGetResponse**](V1GatewaysGuestConsumerMatchIdGetResponse.md) +[**V1ExtranetsB2bPeeringCustomerPostResponse**](V1ExtranetsB2bPeeringCustomerPostResponse.md) ### Authorization @@ -19193,7 +19191,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -19204,8 +19202,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_gateways_id_details_get** -> V1GatewaysIdDetailsGetResponse v1_gateways_id_details_get(authorization, id) +# **v1_extranets_b2b_peering_match_service_to_customer_id_delete** +> V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse v1_extranets_b2b_peering_match_service_to_customer_id_delete(authorization, id) + +Unsubscribe a customer from a service ### Example @@ -19213,7 +19213,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_gateways_id_details_get_response import V1GatewaysIdDetailsGetResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_id_delete_response import V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19239,14 +19239,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 | + id = 1234567891011 # int | ID for the service to customer match to be deleted try: - api_response = api_instance.v1_gateways_id_details_get(authorization, id) - print("The response of DefaultApi->v1_gateways_id_details_get:\n") + api_response = api_instance.v1_extranets_b2b_peering_match_service_to_customer_id_delete(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_gateways_id_details_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_id_delete: %s\n" % e) ``` @@ -19257,11 +19257,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | + **id** | **int**| ID for the service to customer match to be deleted | ### Return type -[**V1GatewaysIdDetailsGetResponse**](V1GatewaysIdDetailsGetResponse.md) +[**V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse**](V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse.md) ### Authorization @@ -19280,10 +19280,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_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get** -> V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get(authorization, region_id, vrf_id, address_family=address_family) +# **v1_extranets_b2b_peering_match_service_to_customer_id_get** +> V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse v1_extranets_b2b_peering_match_service_to_customer_id_get(authorization, id, customer_id) -Get the IPv4/Ipv6 Overlay Subnet for an ipsec gateway +Get details for a service to customer subscription ### Example @@ -19291,7 +19291,7 @@ Get the IPv4/Ipv6 Overlay Subnet for an ipsec gateway ```python import graphiant_sdk -from graphiant_sdk.models.v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_response import V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_id_get_response import V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19317,16 +19317,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 - region_id = 123 # int | - vrf_id = 1234567891011 # int | - address_family = 'example string' # str | (optional) + id = 1234567891011 # int | Service id for which match details are requested + customer_id = 1234567891011 # int | Customer id try: - api_response = api_instance.v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get(authorization, region_id, vrf_id, address_family=address_family) - print("The response of DefaultApi->v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get:\n") + api_response = api_instance.v1_extranets_b2b_peering_match_service_to_customer_id_get(authorization, id, customer_id) + print("The response of DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_id_get: %s\n" % e) ``` @@ -19337,13 +19336,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **region_id** | **int**| | - **vrf_id** | **int**| | - **address_family** | **str**| | [optional] + **id** | **int**| Service id for which match details are requested | + **customer_id** | **int**| Customer id | ### Return type -[**V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse**](V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse.md) +[**V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse**](V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse.md) ### Authorization @@ -19362,8 +19360,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_gateways_post** -> V1GatewaysPostResponse v1_gateways_post(authorization, v1_gateways_post_request) +# **v1_extranets_b2b_peering_match_service_to_customer_post** +> V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse v1_extranets_b2b_peering_match_service_to_customer_post(authorization, v1_extranets_b2b_peering_match_service_to_customer_post_request) + +Create B2B extranet configuration for matching a service to a customer ### Example @@ -19371,8 +19371,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_gateways_post_request import V1GatewaysPostRequest -from graphiant_sdk.models.v1_gateways_post_response import V1GatewaysPostResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_post_request import V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest +from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_post_response import V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19398,14 +19398,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_gateways_post_request = graphiant_sdk.V1GatewaysPostRequest() # V1GatewaysPostRequest | + v1_extranets_b2b_peering_match_service_to_customer_post_request = graphiant_sdk.V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest() # V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest | try: - api_response = api_instance.v1_gateways_post(authorization, v1_gateways_post_request) - print("The response of DefaultApi->v1_gateways_post:\n") + api_response = api_instance.v1_extranets_b2b_peering_match_service_to_customer_post(authorization, v1_extranets_b2b_peering_match_service_to_customer_post_request) + print("The response of DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_gateways_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_post: %s\n" % e) ``` @@ -19416,11 +19416,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_gateways_post_request** | [**V1GatewaysPostRequest**](V1GatewaysPostRequest.md)| | + **v1_extranets_b2b_peering_match_service_to_customer_post_request** | [**V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest**](V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest.md)| | ### Return type -[**V1GatewaysPostResponse**](V1GatewaysPostResponse.md) +[**V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse**](V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse.md) ### Authorization @@ -19439,8 +19439,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_gateways_put** -> object v1_gateways_put(authorization, v1_gateways_put_request) +# **v1_extranets_b2b_peering_match_service_to_customer_service_status_put** +> V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse v1_extranets_b2b_peering_match_service_to_customer_service_status_put(authorization, v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request) + +Pause B2B match service to customer ### Example @@ -19448,7 +19450,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_gateways_put_request import V1GatewaysPutRequest +from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request import V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest +from graphiant_sdk.models.v1_extranets_b2b_peering_match_service_to_customer_service_status_put_response import V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19474,14 +19477,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_gateways_put_request = graphiant_sdk.V1GatewaysPutRequest() # V1GatewaysPutRequest | + v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request = graphiant_sdk.V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest() # V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest | try: - api_response = api_instance.v1_gateways_put(authorization, v1_gateways_put_request) - print("The response of DefaultApi->v1_gateways_put:\n") + api_response = api_instance.v1_extranets_b2b_peering_match_service_to_customer_service_status_put(authorization, v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request) + print("The response of DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_service_status_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_gateways_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_match_service_to_customer_service_status_put: %s\n" % e) ``` @@ -19492,11 +19495,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_gateways_put_request** | [**V1GatewaysPutRequest**](V1GatewaysPutRequest.md)| | + **v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request** | [**V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest**](V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest.md)| | ### Return type -**object** +[**V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse**](V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse.md) ### Authorization @@ -19515,10 +19518,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_gateways_reference_consumer_get** -> V1GatewaysReferenceConsumerGetResponse v1_gateways_reference_consumer_get(authorization) +# **v1_extranets_b2b_peering_match_services_summary_id_get** +> V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse v1_extranets_b2b_peering_match_services_summary_id_get(authorization, id) -Get the priorly-configured IPSec gateway details for a customer, lan segment, region combination to be re-used for any new service matches for that customer with the given lan segment and region +Get B2B extranet services matching customers summary ### Example @@ -19526,7 +19529,7 @@ Get the priorly-configured IPSec gateway details for a customer, lan segment, re ```python import graphiant_sdk -from graphiant_sdk.models.v1_gateways_reference_consumer_get_response import V1GatewaysReferenceConsumerGetResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_match_services_summary_id_get_response import V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19552,13 +19555,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 | ID of the customer try: - api_response = api_instance.v1_gateways_reference_consumer_get(authorization) - print("The response of DefaultApi->v1_gateways_reference_consumer_get:\n") + api_response = api_instance.v1_extranets_b2b_peering_match_services_summary_id_get(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_peering_match_services_summary_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_gateways_reference_consumer_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_match_services_summary_id_get: %s\n" % e) ``` @@ -19569,10 +19573,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| ID of the customer | ### Return type -[**V1GatewaysReferenceConsumerGetResponse**](V1GatewaysReferenceConsumerGetResponse.md) +[**V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse**](V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse.md) ### Authorization @@ -19591,8 +19596,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_gateways_regions_get** -> V1GatewaysRegionsGetResponse v1_gateways_regions_get(authorization) +# **v1_extranets_b2b_peering_producer_id_get** +> V1ExtranetsB2bPeeringProducerIdGetResponse v1_extranets_b2b_peering_producer_id_get(authorization, id) + +Get B2B extranet peering service producer ### Example @@ -19600,7 +19607,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_gateways_regions_get_response import V1GatewaysRegionsGetResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_producer_id_get_response import V1ExtranetsB2bPeeringProducerIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19626,13 +19633,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 | ID of the service try: - api_response = api_instance.v1_gateways_regions_get(authorization) - print("The response of DefaultApi->v1_gateways_regions_get:\n") + api_response = api_instance.v1_extranets_b2b_peering_producer_id_get(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_peering_producer_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_gateways_regions_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_producer_id_get: %s\n" % e) ``` @@ -19643,10 +19651,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| ID of the service | ### Return type -[**V1GatewaysRegionsGetResponse**](V1GatewaysRegionsGetResponse.md) +[**V1ExtranetsB2bPeeringProducerIdGetResponse**](V1ExtranetsB2bPeeringProducerIdGetResponse.md) ### Authorization @@ -19665,8 +19674,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_gateways_status_post** -> object v1_gateways_status_post(authorization, v1_gateways_status_post_request) +# **v1_extranets_b2b_peering_producer_id_matching_customers_summary_get** +> V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse v1_extranets_b2b_peering_producer_id_matching_customers_summary_get(authorization, id) + +Get B2B extranet customers summary ### Example @@ -19674,7 +19685,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_gateways_status_post_request import V1GatewaysStatusPostRequest +from graphiant_sdk.models.v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_response import V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19700,14 +19711,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_gateways_status_post_request = graphiant_sdk.V1GatewaysStatusPostRequest() # V1GatewaysStatusPostRequest | + id = 1234567891011 # int | ID of the customer try: - api_response = api_instance.v1_gateways_status_post(authorization, v1_gateways_status_post_request) - print("The response of DefaultApi->v1_gateways_status_post:\n") + api_response = api_instance.v1_extranets_b2b_peering_producer_id_matching_customers_summary_get(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_peering_producer_id_matching_customers_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_gateways_status_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_producer_id_matching_customers_summary_get: %s\n" % e) ``` @@ -19718,11 +19729,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_gateways_status_post_request** | [**V1GatewaysStatusPostRequest**](V1GatewaysStatusPostRequest.md)| | + **id** | **int**| ID of the customer | ### Return type -**object** +[**V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse**](V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse.md) ### Authorization @@ -19730,7 +19741,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -19741,8 +19752,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_gateways_summary_get** -> V1GatewaysSummaryGetResponse v1_gateways_summary_get(authorization) +# **v1_extranets_b2b_peering_producer_post** +> V1ExtranetsB2bPeeringProducerPostResponse v1_extranets_b2b_peering_producer_post(authorization, v1_extranets_b2b_peering_producer_post_request) + +Create a new B2B extranet peering service producer ### Example @@ -19750,7 +19763,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_gateways_summary_get_response import V1GatewaysSummaryGetResponse +from graphiant_sdk.models.v1_extranets_b2b_peering_producer_post_request import V1ExtranetsB2bPeeringProducerPostRequest +from graphiant_sdk.models.v1_extranets_b2b_peering_producer_post_response import V1ExtranetsB2bPeeringProducerPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19776,13 +19790,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_extranets_b2b_peering_producer_post_request = graphiant_sdk.V1ExtranetsB2bPeeringProducerPostRequest() # V1ExtranetsB2bPeeringProducerPostRequest | try: - api_response = api_instance.v1_gateways_summary_get(authorization) - print("The response of DefaultApi->v1_gateways_summary_get:\n") + api_response = api_instance.v1_extranets_b2b_peering_producer_post(authorization, v1_extranets_b2b_peering_producer_post_request) + print("The response of DefaultApi->v1_extranets_b2b_peering_producer_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_gateways_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_peering_producer_post: %s\n" % e) ``` @@ -19793,10 +19808,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_extranets_b2b_peering_producer_post_request** | [**V1ExtranetsB2bPeeringProducerPostRequest**](V1ExtranetsB2bPeeringProducerPostRequest.md)| | ### Return type -[**V1GatewaysSummaryGetResponse**](V1GatewaysSummaryGetResponse.md) +[**V1ExtranetsB2bPeeringProducerPostResponse**](V1ExtranetsB2bPeeringProducerPostResponse.md) ### Authorization @@ -19804,7 +19820,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -19815,10 +19831,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_apps_app_list_options_get** -> V1GlobalAppsAppListOptionsGetResponse v1_global_apps_app_list_options_get(authorization) +# **v1_extranets_b2b_post** +> V1ExtranetsB2bPostResponse v1_extranets_b2b_post(authorization, v1_extranets_b2b_post_request) -Gets all apps and categories assignable to an app list for the the current enterprise +Create a new B2B extranet producer ### Example @@ -19826,7 +19842,8 @@ Gets all apps and categories assignable to an app list for the the current enter ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_app_list_options_get_response import V1GlobalAppsAppListOptionsGetResponse +from graphiant_sdk.models.v1_extranets_b2b_post_request import V1ExtranetsB2bPostRequest +from graphiant_sdk.models.v1_extranets_b2b_post_response import V1ExtranetsB2bPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19852,13 +19869,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_extranets_b2b_post_request = graphiant_sdk.V1ExtranetsB2bPostRequest() # V1ExtranetsB2bPostRequest | try: - api_response = api_instance.v1_global_apps_app_list_options_get(authorization) - print("The response of DefaultApi->v1_global_apps_app_list_options_get:\n") + api_response = api_instance.v1_extranets_b2b_post(authorization, v1_extranets_b2b_post_request) + print("The response of DefaultApi->v1_extranets_b2b_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_app_list_options_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_post: %s\n" % e) ``` @@ -19869,10 +19887,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_extranets_b2b_post_request** | [**V1ExtranetsB2bPostRequest**](V1ExtranetsB2bPostRequest.md)| | ### Return type -[**V1GlobalAppsAppListOptionsGetResponse**](V1GlobalAppsAppListOptionsGetResponse.md) +[**V1ExtranetsB2bPostResponse**](V1ExtranetsB2bPostResponse.md) ### Authorization @@ -19880,7 +19899,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -19891,10 +19910,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_apps_app_lists_app_list_id_delete** -> object v1_global_apps_app_lists_app_list_id_delete(authorization, app_list_id) +# **v1_extranets_b2b_producer_device_status_id_get** +> V1ExtranetsB2bProducerDeviceStatusIdGetResponse v1_extranets_b2b_producer_device_status_id_get(authorization, id) -Delete an app list under the current enterprise +Get B2B extranet producer status ### Example @@ -19902,6 +19921,7 @@ Delete an app list under the current enterprise ```python import graphiant_sdk +from graphiant_sdk.models.v1_extranets_b2b_producer_device_status_id_get_response import V1ExtranetsB2bProducerDeviceStatusIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -19927,14 +19947,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 - app_list_id = 1234567891011 # int | + id = 1234567891011 # int | try: - api_response = api_instance.v1_global_apps_app_lists_app_list_id_delete(authorization, app_list_id) - print("The response of DefaultApi->v1_global_apps_app_lists_app_list_id_delete:\n") + api_response = api_instance.v1_extranets_b2b_producer_device_status_id_get(authorization, id) + print("The response of DefaultApi->v1_extranets_b2b_producer_device_status_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_app_lists_app_list_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_producer_device_status_id_get: %s\n" % e) ``` @@ -19945,11 +19965,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **app_list_id** | **int**| | + **id** | **int**| | ### Return type -**object** +[**V1ExtranetsB2bProducerDeviceStatusIdGetResponse**](V1ExtranetsB2bProducerDeviceStatusIdGetResponse.md) ### Authorization @@ -19968,10 +19988,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_apps_app_lists_app_list_id_details_apps_get** -> V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse v1_global_apps_app_lists_app_list_id_details_apps_get(authorization, app_list_id) +# **v1_extranets_b2b_producers_summary_get** +> V1ExtranetsB2bProducersSummaryGetResponse v1_extranets_b2b_producers_summary_get(authorization) -Get all apps that are members of the provided app list +Get B2B extranet producers summary ### Example @@ -19979,7 +19999,7 @@ Get all apps that are members of the provided app list ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_app_lists_app_list_id_details_apps_get_response import V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse +from graphiant_sdk.models.v1_extranets_b2b_producers_summary_get_response import V1ExtranetsB2bProducersSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20005,14 +20025,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 - app_list_id = 1234567891011 # int | try: - api_response = api_instance.v1_global_apps_app_lists_app_list_id_details_apps_get(authorization, app_list_id) - print("The response of DefaultApi->v1_global_apps_app_lists_app_list_id_details_apps_get:\n") + api_response = api_instance.v1_extranets_b2b_producers_summary_get(authorization) + print("The response of DefaultApi->v1_extranets_b2b_producers_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_app_lists_app_list_id_details_apps_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_b2b_producers_summary_get: %s\n" % e) ``` @@ -20023,11 +20042,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **app_list_id** | **int**| | ### Return type -[**V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse**](V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse.md) +[**V1ExtranetsB2bProducersSummaryGetResponse**](V1ExtranetsB2bProducersSummaryGetResponse.md) ### Authorization @@ -20046,10 +20064,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_global_apps_app_lists_app_list_id_get** -> V1GlobalAppsAppListsAppListIdGetResponse v1_global_apps_app_lists_app_list_id_get(authorization, app_list_id) - -Get the configuration for an app list under the current enterprise +# **v1_extranets_get** +> V1ExtranetsGetResponse v1_extranets_get(authorization) ### Example @@ -20057,7 +20073,7 @@ Get the configuration for an app list under the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_app_lists_app_list_id_get_response import V1GlobalAppsAppListsAppListIdGetResponse +from graphiant_sdk.models.v1_extranets_get_response import V1ExtranetsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20083,14 +20099,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 - app_list_id = 1234567891011 # int | try: - api_response = api_instance.v1_global_apps_app_lists_app_list_id_get(authorization, app_list_id) - print("The response of DefaultApi->v1_global_apps_app_lists_app_list_id_get:\n") + api_response = api_instance.v1_extranets_get(authorization) + print("The response of DefaultApi->v1_extranets_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_app_lists_app_list_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_get: %s\n" % e) ``` @@ -20101,11 +20116,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **app_list_id** | **int**| | ### Return type -[**V1GlobalAppsAppListsAppListIdGetResponse**](V1GlobalAppsAppListsAppListIdGetResponse.md) +[**V1ExtranetsGetResponse**](V1ExtranetsGetResponse.md) ### Authorization @@ -20124,10 +20138,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_global_apps_app_lists_app_list_id_put** -> object v1_global_apps_app_lists_app_list_id_put(authorization, app_list_id, v1_global_apps_app_lists_app_list_id_put_request) - -Overwrite the configuration for an app list under the current enterprise +# **v1_extranets_id_apply_post** +> V1ExtranetsIdApplyPostResponse v1_extranets_id_apply_post(authorization, id, v1_extranets_id_apply_post_request) ### Example @@ -20135,7 +20147,8 @@ Overwrite the configuration for an app list under the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_app_lists_app_list_id_put_request import V1GlobalAppsAppListsAppListIdPutRequest +from graphiant_sdk.models.v1_extranets_id_apply_post_request import V1ExtranetsIdApplyPostRequest +from graphiant_sdk.models.v1_extranets_id_apply_post_response import V1ExtranetsIdApplyPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20161,15 +20174,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 - app_list_id = 1234567891011 # int | - v1_global_apps_app_lists_app_list_id_put_request = graphiant_sdk.V1GlobalAppsAppListsAppListIdPutRequest() # V1GlobalAppsAppListsAppListIdPutRequest | + id = 1234567891011 # int | + v1_extranets_id_apply_post_request = graphiant_sdk.V1ExtranetsIdApplyPostRequest() # V1ExtranetsIdApplyPostRequest | try: - api_response = api_instance.v1_global_apps_app_lists_app_list_id_put(authorization, app_list_id, v1_global_apps_app_lists_app_list_id_put_request) - print("The response of DefaultApi->v1_global_apps_app_lists_app_list_id_put:\n") + api_response = api_instance.v1_extranets_id_apply_post(authorization, id, v1_extranets_id_apply_post_request) + print("The response of DefaultApi->v1_extranets_id_apply_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_app_lists_app_list_id_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_id_apply_post: %s\n" % e) ``` @@ -20180,12 +20193,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **app_list_id** | **int**| | - **v1_global_apps_app_lists_app_list_id_put_request** | [**V1GlobalAppsAppListsAppListIdPutRequest**](V1GlobalAppsAppListsAppListIdPutRequest.md)| | + **id** | **int**| | + **v1_extranets_id_apply_post_request** | [**V1ExtranetsIdApplyPostRequest**](V1ExtranetsIdApplyPostRequest.md)| | ### Return type -**object** +[**V1ExtranetsIdApplyPostResponse**](V1ExtranetsIdApplyPostResponse.md) ### Authorization @@ -20200,14 +20213,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | +**202** | Accepted | - | [[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_apps_app_lists_get** -> V1GlobalAppsAppListsGetResponse v1_global_apps_app_lists_get(authorization) - -Get all app lists for the current enterprise +# **v1_extranets_id_delete** +> V1ExtranetsIdDeleteResponse v1_extranets_id_delete(authorization, id) ### Example @@ -20215,7 +20226,7 @@ Get all app lists for the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_app_lists_get_response import V1GlobalAppsAppListsGetResponse +from graphiant_sdk.models.v1_extranets_id_delete_response import V1ExtranetsIdDeleteResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20241,13 +20252,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_global_apps_app_lists_get(authorization) - print("The response of DefaultApi->v1_global_apps_app_lists_get:\n") + api_response = api_instance.v1_extranets_id_delete(authorization, id) + print("The response of DefaultApi->v1_extranets_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_app_lists_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_id_delete: %s\n" % e) ``` @@ -20258,10 +20270,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 -[**V1GlobalAppsAppListsGetResponse**](V1GlobalAppsAppListsGetResponse.md) +[**V1ExtranetsIdDeleteResponse**](V1ExtranetsIdDeleteResponse.md) ### Authorization @@ -20280,10 +20293,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) -# **v1_global_apps_app_lists_post** -> V1GlobalAppsAppListsPostResponse v1_global_apps_app_lists_post(authorization, v1_global_apps_app_lists_post_request) +# **v1_extranets_id_get** +> V1ExtranetsIdGetResponse v1_extranets_id_get(authorization, id) -Create an app list under the current enterprise +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_extranets_id_get_response import V1ExtranetsIdGetResponse +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_extranets_id_get(authorization, id) + print("The response of DefaultApi->v1_extranets_id_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_extranets_id_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| | + +### Return type + +[**V1ExtranetsIdGetResponse**](V1ExtranetsIdGetResponse.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_extranets_id_put** +> V1ExtranetsIdPutResponse v1_extranets_id_put(authorization, id, v1_extranets_id_put_request) ### Example @@ -20291,8 +20378,8 @@ Create an app list under the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_app_lists_post_request import V1GlobalAppsAppListsPostRequest -from graphiant_sdk.models.v1_global_apps_app_lists_post_response import V1GlobalAppsAppListsPostResponse +from graphiant_sdk.models.v1_extranets_id_put_request import V1ExtranetsIdPutRequest +from graphiant_sdk.models.v1_extranets_id_put_response import V1ExtranetsIdPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20318,14 +20405,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 - v1_global_apps_app_lists_post_request = graphiant_sdk.V1GlobalAppsAppListsPostRequest() # V1GlobalAppsAppListsPostRequest | + id = 1234567891011 # int | + v1_extranets_id_put_request = graphiant_sdk.V1ExtranetsIdPutRequest() # V1ExtranetsIdPutRequest | try: - api_response = api_instance.v1_global_apps_app_lists_post(authorization, v1_global_apps_app_lists_post_request) - print("The response of DefaultApi->v1_global_apps_app_lists_post:\n") + api_response = api_instance.v1_extranets_id_put(authorization, id, v1_extranets_id_put_request) + print("The response of DefaultApi->v1_extranets_id_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_app_lists_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_id_put: %s\n" % e) ``` @@ -20336,11 +20424,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_apps_app_lists_post_request** | [**V1GlobalAppsAppListsPostRequest**](V1GlobalAppsAppListsPostRequest.md)| | + **id** | **int**| | + **v1_extranets_id_put_request** | [**V1ExtranetsIdPutRequest**](V1ExtranetsIdPutRequest.md)| | ### Return type -[**V1GlobalAppsAppListsPostResponse**](V1GlobalAppsAppListsPostResponse.md) +[**V1ExtranetsIdPutResponse**](V1ExtranetsIdPutResponse.md) ### Authorization @@ -20359,10 +20448,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_global_apps_categories_category_id_apps_get** -> V1GlobalAppsCategoriesCategoryIdAppsGetResponse v1_global_apps_categories_category_id_apps_get(authorization, category_id) - -Get all Graphiant apps in an app category +# **v1_extranets_id_status_get** +> V1ExtranetsIdStatusGetResponse v1_extranets_id_status_get(authorization, id) ### Example @@ -20370,7 +20457,7 @@ Get all Graphiant apps in an app category ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_categories_category_id_apps_get_response import V1GlobalAppsCategoriesCategoryIdAppsGetResponse +from graphiant_sdk.models.v1_extranets_id_status_get_response import V1ExtranetsIdStatusGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20396,14 +20483,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 - category_id = 1234567891011 # int | + id = 1234567891011 # int | try: - api_response = api_instance.v1_global_apps_categories_category_id_apps_get(authorization, category_id) - print("The response of DefaultApi->v1_global_apps_categories_category_id_apps_get:\n") + api_response = api_instance.v1_extranets_id_status_get(authorization, id) + print("The response of DefaultApi->v1_extranets_id_status_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_categories_category_id_apps_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_id_status_get: %s\n" % e) ``` @@ -20414,11 +20501,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **category_id** | **int**| | + **id** | **int**| | ### Return type -[**V1GlobalAppsCategoriesCategoryIdAppsGetResponse**](V1GlobalAppsCategoriesCategoryIdAppsGetResponse.md) +[**V1ExtranetsIdStatusGetResponse**](V1ExtranetsIdStatusGetResponse.md) ### Authorization @@ -20437,10 +20524,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_global_apps_categories_get** -> V1GlobalAppsCategoriesGetResponse v1_global_apps_categories_get(authorization) - -Get all app categories holding Graphiant apps +# **v1_extranets_monitoring_lan_segments_get** +> V1ExtranetsMonitoringLanSegmentsGetResponse v1_extranets_monitoring_lan_segments_get(authorization, id=id, is_provider=is_provider) ### Example @@ -20448,7 +20533,7 @@ Get all app categories holding Graphiant apps ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_categories_get_response import V1GlobalAppsCategoriesGetResponse +from graphiant_sdk.models.v1_extranets_monitoring_lan_segments_get_response import V1ExtranetsMonitoringLanSegmentsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20474,13 +20559,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 = 800 # int | Extranet Service Id (optional) + is_provider = true # bool | (optional) try: - api_response = api_instance.v1_global_apps_categories_get(authorization) - print("The response of DefaultApi->v1_global_apps_categories_get:\n") + api_response = api_instance.v1_extranets_monitoring_lan_segments_get(authorization, id=id, is_provider=is_provider) + print("The response of DefaultApi->v1_extranets_monitoring_lan_segments_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_categories_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_monitoring_lan_segments_get: %s\n" % e) ``` @@ -20491,10 +20578,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| Extranet Service Id | [optional] + **is_provider** | **bool**| | [optional] ### Return type -[**V1GlobalAppsCategoriesGetResponse**](V1GlobalAppsCategoriesGetResponse.md) +[**V1ExtranetsMonitoringLanSegmentsGetResponse**](V1ExtranetsMonitoringLanSegmentsGetResponse.md) ### Authorization @@ -20513,10 +20602,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_global_apps_custom_app_id_delete** -> object v1_global_apps_custom_app_id_delete(authorization, app_id) - -Delete a global app under the current enterprise +# **v1_extranets_monitoring_nat_usage_get** +> V1ExtranetsMonitoringNatUsageGetResponse v1_extranets_monitoring_nat_usage_get(authorization, id) ### Example @@ -20524,6 +20611,7 @@ Delete a global app under the current enterprise ```python import graphiant_sdk +from graphiant_sdk.models.v1_extranets_monitoring_nat_usage_get_response import V1ExtranetsMonitoringNatUsageGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20549,14 +20637,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 - app_id = 1234567891011 # int | + id = 800 # int | Extranet Service Id try: - api_response = api_instance.v1_global_apps_custom_app_id_delete(authorization, app_id) - print("The response of DefaultApi->v1_global_apps_custom_app_id_delete:\n") + api_response = api_instance.v1_extranets_monitoring_nat_usage_get(authorization, id) + print("The response of DefaultApi->v1_extranets_monitoring_nat_usage_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_custom_app_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_monitoring_nat_usage_get: %s\n" % e) ``` @@ -20567,11 +20655,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **app_id** | **int**| | + **id** | **int**| Extranet Service Id | ### Return type -**object** +[**V1ExtranetsMonitoringNatUsageGetResponse**](V1ExtranetsMonitoringNatUsageGetResponse.md) ### Authorization @@ -20590,10 +20678,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_apps_custom_app_id_details_app_lists_get** -> V1GlobalAppsCustomAppIdDetailsAppListsGetResponse v1_global_apps_custom_app_id_details_app_lists_get(authorization, app_id) +# **v1_extranets_monitoring_traffic_security_policy_post** +> V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse v1_extranets_monitoring_traffic_security_policy_post(authorization, v1_extranets_monitoring_traffic_security_policy_post_request) -Get all app lists that contain the relevant global app +Get lists of traffic and security policies ### Example @@ -20601,7 +20689,8 @@ Get all app lists that contain the relevant global app ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_custom_app_id_details_app_lists_get_response import V1GlobalAppsCustomAppIdDetailsAppListsGetResponse +from graphiant_sdk.models.v1_extranets_monitoring_traffic_security_policy_post_request import V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest +from graphiant_sdk.models.v1_extranets_monitoring_traffic_security_policy_post_response import V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20627,14 +20716,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 - app_id = 1234567891011 # int | + v1_extranets_monitoring_traffic_security_policy_post_request = graphiant_sdk.V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest() # V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest | try: - api_response = api_instance.v1_global_apps_custom_app_id_details_app_lists_get(authorization, app_id) - print("The response of DefaultApi->v1_global_apps_custom_app_id_details_app_lists_get:\n") + api_response = api_instance.v1_extranets_monitoring_traffic_security_policy_post(authorization, v1_extranets_monitoring_traffic_security_policy_post_request) + print("The response of DefaultApi->v1_extranets_monitoring_traffic_security_policy_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_custom_app_id_details_app_lists_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_monitoring_traffic_security_policy_post: %s\n" % e) ``` @@ -20645,11 +20734,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **app_id** | **int**| | + **v1_extranets_monitoring_traffic_security_policy_post_request** | [**V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest**](V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest.md)| | ### Return type -[**V1GlobalAppsCustomAppIdDetailsAppListsGetResponse**](V1GlobalAppsCustomAppIdDetailsAppListsGetResponse.md) +[**V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse**](V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse.md) ### Authorization @@ -20657,7 +20746,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -20668,10 +20757,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_global_apps_custom_app_id_get** -> V1GlobalAppsCustomAppIdGetResponse v1_global_apps_custom_app_id_get(authorization, app_id) - -Get the configuration for a global app under the current enterprise +# **v1_extranets_post** +> V1ExtranetsPostResponse v1_extranets_post(authorization, v1_extranets_post_request) ### Example @@ -20679,7 +20766,8 @@ Get the configuration for a global app under the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_custom_app_id_get_response import V1GlobalAppsCustomAppIdGetResponse +from graphiant_sdk.models.v1_extranets_post_request import V1ExtranetsPostRequest +from graphiant_sdk.models.v1_extranets_post_response import V1ExtranetsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20705,14 +20793,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 - app_id = 1234567891011 # int | + v1_extranets_post_request = graphiant_sdk.V1ExtranetsPostRequest() # V1ExtranetsPostRequest | try: - api_response = api_instance.v1_global_apps_custom_app_id_get(authorization, app_id) - print("The response of DefaultApi->v1_global_apps_custom_app_id_get:\n") + api_response = api_instance.v1_extranets_post(authorization, v1_extranets_post_request) + print("The response of DefaultApi->v1_extranets_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_custom_app_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_post: %s\n" % e) ``` @@ -20723,11 +20811,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **app_id** | **int**| | + **v1_extranets_post_request** | [**V1ExtranetsPostRequest**](V1ExtranetsPostRequest.md)| | ### Return type -[**V1GlobalAppsCustomAppIdGetResponse**](V1GlobalAppsCustomAppIdGetResponse.md) +[**V1ExtranetsPostResponse**](V1ExtranetsPostResponse.md) ### Authorization @@ -20735,7 +20823,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -20746,10 +20834,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_global_apps_custom_app_id_put** -> object v1_global_apps_custom_app_id_put(authorization, app_id, v1_global_apps_custom_app_id_put_request) - -Overwrite the configuration for a global app under the current enterprise +# **v1_extranets_resolve_policy_target_post** +> V1ExtranetsResolvePolicyTargetPostResponse v1_extranets_resolve_policy_target_post(authorization, v1_extranets_resolve_policy_target_post_request) ### Example @@ -20757,7 +20843,8 @@ Overwrite the configuration for a global app under the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_custom_app_id_put_request import V1GlobalAppsCustomAppIdPutRequest +from graphiant_sdk.models.v1_extranets_resolve_policy_target_post_request import V1ExtranetsResolvePolicyTargetPostRequest +from graphiant_sdk.models.v1_extranets_resolve_policy_target_post_response import V1ExtranetsResolvePolicyTargetPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20783,15 +20870,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 - app_id = 1234567891011 # int | - v1_global_apps_custom_app_id_put_request = graphiant_sdk.V1GlobalAppsCustomAppIdPutRequest() # V1GlobalAppsCustomAppIdPutRequest | + v1_extranets_resolve_policy_target_post_request = graphiant_sdk.V1ExtranetsResolvePolicyTargetPostRequest() # V1ExtranetsResolvePolicyTargetPostRequest | try: - api_response = api_instance.v1_global_apps_custom_app_id_put(authorization, app_id, v1_global_apps_custom_app_id_put_request) - print("The response of DefaultApi->v1_global_apps_custom_app_id_put:\n") + api_response = api_instance.v1_extranets_resolve_policy_target_post(authorization, v1_extranets_resolve_policy_target_post_request) + print("The response of DefaultApi->v1_extranets_resolve_policy_target_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_custom_app_id_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_resolve_policy_target_post: %s\n" % e) ``` @@ -20802,12 +20888,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **app_id** | **int**| | - **v1_global_apps_custom_app_id_put_request** | [**V1GlobalAppsCustomAppIdPutRequest**](V1GlobalAppsCustomAppIdPutRequest.md)| | + **v1_extranets_resolve_policy_target_post_request** | [**V1ExtranetsResolvePolicyTargetPostRequest**](V1ExtranetsResolvePolicyTargetPostRequest.md)| | ### Return type -**object** +[**V1ExtranetsResolvePolicyTargetPostResponse**](V1ExtranetsResolvePolicyTargetPostResponse.md) ### Authorization @@ -20826,10 +20911,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_global_apps_custom_get** -> V1GlobalAppsCustomGetResponse v1_global_apps_custom_get(authorization) - -Get all global apps mapped by the current enterprise +# **v1_extranets_source_segments_post** +> V1ExtranetsSourceSegmentsPostResponse v1_extranets_source_segments_post(authorization, v1_extranets_source_segments_post_request) ### Example @@ -20837,7 +20920,8 @@ Get all global apps mapped by the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_custom_get_response import V1GlobalAppsCustomGetResponse +from graphiant_sdk.models.v1_extranets_source_segments_post_request import V1ExtranetsSourceSegmentsPostRequest +from graphiant_sdk.models.v1_extranets_source_segments_post_response import V1ExtranetsSourceSegmentsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20863,13 +20947,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_extranets_source_segments_post_request = graphiant_sdk.V1ExtranetsSourceSegmentsPostRequest() # V1ExtranetsSourceSegmentsPostRequest | try: - api_response = api_instance.v1_global_apps_custom_get(authorization) - print("The response of DefaultApi->v1_global_apps_custom_get:\n") + api_response = api_instance.v1_extranets_source_segments_post(authorization, v1_extranets_source_segments_post_request) + print("The response of DefaultApi->v1_extranets_source_segments_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_custom_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_extranets_source_segments_post: %s\n" % e) ``` @@ -20880,10 +20965,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_extranets_source_segments_post_request** | [**V1ExtranetsSourceSegmentsPostRequest**](V1ExtranetsSourceSegmentsPostRequest.md)| | ### Return type -[**V1GlobalAppsCustomGetResponse**](V1GlobalAppsCustomGetResponse.md) +[**V1ExtranetsSourceSegmentsPostResponse**](V1ExtranetsSourceSegmentsPostResponse.md) ### Authorization @@ -20891,7 +20977,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -20902,10 +20988,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_apps_custom_post** -> V1GlobalAppsCustomPostResponse v1_global_apps_custom_post(authorization, v1_global_apps_custom_post_request) +# **v1_flows_flow_table_post** +> V1FlowsFlowTablePostResponse v1_flows_flow_table_post(authorization, v1_flows_flow_table_post_request) -Create a new global app under the current enterprise +Get flow table for the app on the device ### Example @@ -20913,8 +20999,8 @@ Create a new global app under the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_custom_post_request import V1GlobalAppsCustomPostRequest -from graphiant_sdk.models.v1_global_apps_custom_post_response import V1GlobalAppsCustomPostResponse +from graphiant_sdk.models.v1_flows_flow_table_post_request import V1FlowsFlowTablePostRequest +from graphiant_sdk.models.v1_flows_flow_table_post_response import V1FlowsFlowTablePostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -20940,14 +21026,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_apps_custom_post_request = graphiant_sdk.V1GlobalAppsCustomPostRequest() # V1GlobalAppsCustomPostRequest | + v1_flows_flow_table_post_request = graphiant_sdk.V1FlowsFlowTablePostRequest() # V1FlowsFlowTablePostRequest | try: - api_response = api_instance.v1_global_apps_custom_post(authorization, v1_global_apps_custom_post_request) - print("The response of DefaultApi->v1_global_apps_custom_post:\n") + api_response = api_instance.v1_flows_flow_table_post(authorization, v1_flows_flow_table_post_request) + print("The response of DefaultApi->v1_flows_flow_table_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_custom_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_flows_flow_table_post: %s\n" % e) ``` @@ -20958,11 +21044,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_apps_custom_post_request** | [**V1GlobalAppsCustomPostRequest**](V1GlobalAppsCustomPostRequest.md)| | + **v1_flows_flow_table_post_request** | [**V1FlowsFlowTablePostRequest**](V1FlowsFlowTablePostRequest.md)| | ### Return type -[**V1GlobalAppsCustomPostResponse**](V1GlobalAppsCustomPostResponse.md) +[**V1FlowsFlowTablePostResponse**](V1FlowsFlowTablePostResponse.md) ### Authorization @@ -20981,10 +21067,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_apps_graphiant_get** -> V1GlobalAppsGraphiantGetResponse v1_global_apps_graphiant_get(authorization) +# **v1_flows_topology_post** +> V1FlowsTopologyPostResponse v1_flows_topology_post(authorization, v1_flows_topology_post_request) -Get all apps mapped by Graphiant +Get flow based node and circuit topology for the device ### Example @@ -20992,7 +21078,8 @@ Get all apps mapped by Graphiant ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_apps_graphiant_get_response import V1GlobalAppsGraphiantGetResponse +from graphiant_sdk.models.v1_flows_topology_post_request import V1FlowsTopologyPostRequest +from graphiant_sdk.models.v1_flows_topology_post_response import V1FlowsTopologyPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21018,13 +21105,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_flows_topology_post_request = graphiant_sdk.V1FlowsTopologyPostRequest() # V1FlowsTopologyPostRequest | try: - api_response = api_instance.v1_global_apps_graphiant_get(authorization) - print("The response of DefaultApi->v1_global_apps_graphiant_get:\n") + api_response = api_instance.v1_flows_topology_post(authorization, v1_flows_topology_post_request) + print("The response of DefaultApi->v1_flows_topology_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_apps_graphiant_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_flows_topology_post: %s\n" % e) ``` @@ -21035,10 +21123,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_flows_topology_post_request** | [**V1FlowsTopologyPostRequest**](V1FlowsTopologyPostRequest.md)| | ### Return type -[**V1GlobalAppsGraphiantGetResponse**](V1GlobalAppsGraphiantGetResponse.md) +[**V1FlowsTopologyPostResponse**](V1FlowsTopologyPostResponse.md) ### Authorization @@ -21046,7 +21135,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -21057,10 +21146,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_global_attached_edges_post** -> V1GlobalAttachedEdgesPostResponse v1_global_attached_edges_post(authorization, v1_global_attached_edges_post_request) - -Returns attached edges for global object +# **v1_gateways_delete** +> object v1_gateways_delete(authorization, id=id) ### Example @@ -21068,8 +21155,6 @@ Returns attached edges for global object ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_attached_edges_post_request import V1GlobalAttachedEdgesPostRequest -from graphiant_sdk.models.v1_global_attached_edges_post_response import V1GlobalAttachedEdgesPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21095,14 +21180,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_attached_edges_post_request = graphiant_sdk.V1GlobalAttachedEdgesPostRequest() # V1GlobalAttachedEdgesPostRequest | + id = 1234567891011 # int | (optional) try: - api_response = api_instance.v1_global_attached_edges_post(authorization, v1_global_attached_edges_post_request) - print("The response of DefaultApi->v1_global_attached_edges_post:\n") + api_response = api_instance.v1_gateways_delete(authorization, id=id) + print("The response of DefaultApi->v1_gateways_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_attached_edges_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_gateways_delete: %s\n" % e) ``` @@ -21113,11 +21198,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_attached_edges_post_request** | [**V1GlobalAttachedEdgesPostRequest**](V1GlobalAttachedEdgesPostRequest.md)| | + **id** | **int**| | [optional] ### Return type -[**V1GlobalAttachedEdgesPostResponse**](V1GlobalAttachedEdgesPostResponse.md) +**object** ### Authorization @@ -21125,7 +21210,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -21136,10 +21221,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_config_patch** -> V1GlobalConfigPatchResponse v1_global_config_patch(authorization, v1_global_config_patch_request) +# **v1_gateways_guest_consumer_match_id_get** +> V1GatewaysGuestConsumerMatchIdGetResponse v1_gateways_guest_consumer_match_id_get(authorization, match_id, email=email) -Update global objects for an enterprise +Get Site to Site VPN information for a non-Graphiant guest consumer by their email ### Example @@ -21147,8 +21232,7 @@ Update global objects for an enterprise ```python import graphiant_sdk -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_gateways_guest_consumer_match_id_get_response import V1GatewaysGuestConsumerMatchIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21174,14 +21258,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 - v1_global_config_patch_request = graphiant_sdk.V1GlobalConfigPatchRequest() # V1GlobalConfigPatchRequest | + match_id = 1234567891011 # int | + email = 'example string' # str | (optional) try: - api_response = api_instance.v1_global_config_patch(authorization, v1_global_config_patch_request) - print("The response of DefaultApi->v1_global_config_patch:\n") + api_response = api_instance.v1_gateways_guest_consumer_match_id_get(authorization, match_id, email=email) + print("The response of DefaultApi->v1_gateways_guest_consumer_match_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_config_patch: %s\n" % e) + print("Exception when calling DefaultApi->v1_gateways_guest_consumer_match_id_get: %s\n" % e) ``` @@ -21192,11 +21277,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_config_patch_request** | [**V1GlobalConfigPatchRequest**](V1GlobalConfigPatchRequest.md)| | + **match_id** | **int**| | + **email** | **str**| | [optional] ### Return type -[**V1GlobalConfigPatchResponse**](V1GlobalConfigPatchResponse.md) +[**V1GatewaysGuestConsumerMatchIdGetResponse**](V1GatewaysGuestConsumerMatchIdGetResponse.md) ### Authorization @@ -21204,7 +21290,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -21215,10 +21301,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_global_content_filters_get** -> V1GlobalContentFiltersGetResponse v1_global_content_filters_get(authorization) - -Get basic details for all content filter under the current enterprise +# **v1_gateways_id_details_get** +> V1GatewaysIdDetailsGetResponse v1_gateways_id_details_get(authorization, id) ### Example @@ -21226,7 +21310,7 @@ Get basic details for all content filter under the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_content_filters_get_response import V1GlobalContentFiltersGetResponse +from graphiant_sdk.models.v1_gateways_id_details_get_response import V1GatewaysIdDetailsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21252,13 +21336,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_global_content_filters_get(authorization) - print("The response of DefaultApi->v1_global_content_filters_get:\n") + api_response = api_instance.v1_gateways_id_details_get(authorization, id) + print("The response of DefaultApi->v1_gateways_id_details_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_content_filters_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_gateways_id_details_get: %s\n" % e) ``` @@ -21269,10 +21354,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 -[**V1GlobalContentFiltersGetResponse**](V1GlobalContentFiltersGetResponse.md) +[**V1GatewaysIdDetailsGetResponse**](V1GatewaysIdDetailsGetResponse.md) ### Authorization @@ -21291,10 +21377,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_content_filters_global_content_filter_id_delete** -> object v1_global_content_filters_global_content_filter_id_delete(authorization, global_content_filter_id) +# **v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get** +> V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get(authorization, region_id, vrf_id, address_family=address_family) -Delete a content filter under the current enterprise +Get the IPv4/Ipv6 Overlay Subnet for an ipsec gateway ### Example @@ -21302,6 +21388,7 @@ Delete a content filter under the current enterprise ```python import graphiant_sdk +from graphiant_sdk.models.v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_response import V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21327,14 +21414,16 @@ 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 remove. + region_id = 123 # int | + vrf_id = 1234567891011 # int | + address_family = 'example string' # str | (optional) try: - 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") + api_response = api_instance.v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get(authorization, region_id, vrf_id, address_family=address_family) + print("The response of DefaultApi->v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_content_filters_global_content_filter_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get: %s\n" % e) ``` @@ -21345,11 +21434,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: 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 remove. | + **region_id** | **int**| | + **vrf_id** | **int**| | + **address_family** | **str**| | [optional] ### Return type -**object** +[**V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse**](V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse.md) ### Authorization @@ -21368,10 +21459,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_global_content_filters_global_content_filter_id_get** -> V1GlobalContentFiltersGlobalContentFilterIdGetResponse v1_global_content_filters_global_content_filter_id_get(authorization, global_content_filter_id) - -Get the config for a content filter under the current enterprise +# **v1_gateways_post** +> V1GatewaysPostResponse v1_gateways_post(authorization, v1_gateways_post_request) ### Example @@ -21379,7 +21468,8 @@ Get the config for a content filter under the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_get_response import V1GlobalContentFiltersGlobalContentFilterIdGetResponse +from graphiant_sdk.models.v1_gateways_post_request import V1GatewaysPostRequest +from graphiant_sdk.models.v1_gateways_post_response import V1GatewaysPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21405,14 +21495,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 - global_content_filter_id = 1234567891011 # int | ID of the global content filter whose configuration should be returned. + v1_gateways_post_request = graphiant_sdk.V1GatewaysPostRequest() # V1GatewaysPostRequest | try: - 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") + api_response = api_instance.v1_gateways_post(authorization, v1_gateways_post_request) + print("The response of DefaultApi->v1_gateways_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_content_filters_global_content_filter_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_gateways_post: %s\n" % e) ``` @@ -21423,11 +21513,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **global_content_filter_id** | **int**| ID of the global content filter whose configuration should be returned. | + **v1_gateways_post_request** | [**V1GatewaysPostRequest**](V1GatewaysPostRequest.md)| | ### Return type -[**V1GlobalContentFiltersGlobalContentFilterIdGetResponse**](V1GlobalContentFiltersGlobalContentFilterIdGetResponse.md) +[**V1GatewaysPostResponse**](V1GatewaysPostResponse.md) ### Authorization @@ -21435,7 +21525,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -21446,10 +21536,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_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 +# **v1_gateways_put** +> object v1_gateways_put(authorization, v1_gateways_put_request) ### Example @@ -21457,7 +21545,7 @@ Overwrite a pre-existing content filter under the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_content_filters_global_content_filter_id_put_request import V1GlobalContentFiltersGlobalContentFilterIdPutRequest +from graphiant_sdk.models.v1_gateways_put_request import V1GatewaysPutRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21483,15 +21571,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 - 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 | + v1_gateways_put_request = graphiant_sdk.V1GatewaysPutRequest() # V1GatewaysPutRequest | 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") + api_response = api_instance.v1_gateways_put(authorization, v1_gateways_put_request) + print("The response of DefaultApi->v1_gateways_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) + print("Exception when calling DefaultApi->v1_gateways_put: %s\n" % e) ``` @@ -21502,8 +21589,7 @@ with graphiant_sdk.ApiClient(configuration) as api_client: 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)| | + **v1_gateways_put_request** | [**V1GatewaysPutRequest**](V1GatewaysPutRequest.md)| | ### Return type @@ -21526,10 +21612,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_content_filters_post** -> V1GlobalContentFiltersPostResponse v1_global_content_filters_post(authorization, v1_global_content_filters_post_request) +# **v1_gateways_reference_consumer_get** +> V1GatewaysReferenceConsumerGetResponse v1_gateways_reference_consumer_get(authorization) -Configure a new content filter under the current enterprise +Get the priorly-configured IPSec gateway details for a customer, lan segment, region combination to be re-used for any new service matches for that customer with the given lan segment and region ### Example @@ -21537,8 +21623,7 @@ Configure a new content filter under the current enterprise ```python import graphiant_sdk -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_gateways_reference_consumer_get_response import V1GatewaysReferenceConsumerGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21564,14 +21649,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_content_filters_post_request = graphiant_sdk.V1GlobalContentFiltersPostRequest() # V1GlobalContentFiltersPostRequest | try: - 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") + api_response = api_instance.v1_gateways_reference_consumer_get(authorization) + print("The response of DefaultApi->v1_gateways_reference_consumer_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_content_filters_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_gateways_reference_consumer_get: %s\n" % e) ``` @@ -21582,11 +21666,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_global_content_filters_post_request** | [**V1GlobalContentFiltersPostRequest**](V1GlobalContentFiltersPostRequest.md)| | ### Return type -[**V1GlobalContentFiltersPostResponse**](V1GlobalContentFiltersPostResponse.md) +[**V1GatewaysReferenceConsumerGetResponse**](V1GatewaysReferenceConsumerGetResponse.md) ### Authorization @@ -21594,7 +21677,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -21605,10 +21688,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_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 status on global collector attached to devices +# **v1_gateways_regions_get** +> V1GatewaysRegionsGetResponse v1_gateways_regions_get(authorization) ### Example @@ -21616,7 +21697,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_gateways_regions_get_response import V1GatewaysRegionsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21642,20 +21723,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_gateways_regions_get(authorization) + print("The response of DefaultApi->v1_gateways_regions_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_gateways_regions_get: %s\n" % e) ``` @@ -21666,17 +21740,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) +[**V1GatewaysRegionsGetResponse**](V1GatewaysRegionsGetResponse.md) ### Authorization @@ -21695,10 +21762,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) -# **v1_global_domain_categories_get** -> V1GlobalDomainCategoriesGetResponse v1_global_domain_categories_get(authorization) +# **v1_gateways_status_post** +> object v1_gateways_status_post(authorization, v1_gateways_status_post_request) -Get all domain categories from the DPI engine +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_gateways_status_post_request import V1GatewaysStatusPostRequest +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_gateways_status_post_request = graphiant_sdk.V1GatewaysStatusPostRequest() # V1GatewaysStatusPostRequest | + + try: + api_response = api_instance.v1_gateways_status_post(authorization, v1_gateways_status_post_request) + print("The response of DefaultApi->v1_gateways_status_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_gateways_status_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_gateways_status_post_request** | [**V1GatewaysStatusPostRequest**](V1GatewaysStatusPostRequest.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) + +# **v1_gateways_summary_get** +> V1GatewaysSummaryGetResponse v1_gateways_summary_get(authorization) ### Example @@ -21706,7 +21847,7 @@ Get all domain categories from the DPI engine ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_domain_categories_get_response import V1GlobalDomainCategoriesGetResponse +from graphiant_sdk.models.v1_gateways_summary_get_response import V1GatewaysSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21734,11 +21875,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_response = api_instance.v1_global_domain_categories_get(authorization) - print("The response of DefaultApi->v1_global_domain_categories_get:\n") + api_response = api_instance.v1_gateways_summary_get(authorization) + print("The response of DefaultApi->v1_gateways_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_domain_categories_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_gateways_summary_get: %s\n" % e) ``` @@ -21752,7 +21893,7 @@ Name | Type | Description | Notes ### Return type -[**V1GlobalDomainCategoriesGetResponse**](V1GlobalDomainCategoriesGetResponse.md) +[**V1GatewaysSummaryGetResponse**](V1GatewaysSummaryGetResponse.md) ### Authorization @@ -21771,10 +21912,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_apps_app_list_options_get** +> V1GlobalAppsAppListOptionsGetResponse v1_global_apps_app_list_options_get(authorization) -Get global ipfix exporters objects that failed to attach for a device +Gets all apps and categories assignable to an app list for the the current enterprise ### Example @@ -21782,7 +21923,7 @@ 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.models.v1_global_apps_app_list_options_get_response import V1GlobalAppsAppListOptionsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21808,14 +21949,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 | (optional) 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_apps_app_list_options_get(authorization) + print("The response of DefaultApi->v1_global_apps_app_list_options_get:\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_apps_app_list_options_get: %s\n" % e) ``` @@ -21826,11 +21966,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**| | [optional] ### Return type -[**V1GlobalIpfixDeviceGetResponse**](V1GlobalIpfixDeviceGetResponse.md) +[**V1GlobalAppsAppListOptionsGetResponse**](V1GlobalAppsAppListOptionsGetResponse.md) ### Authorization @@ -21849,10 +21988,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_apps_app_lists_app_list_id_delete** +> object v1_global_apps_app_lists_app_list_id_delete(authorization, app_list_id) -Get configured global ipfix exporters +Delete an app list under the current enterprise ### Example @@ -21860,8 +21999,6 @@ 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.rest import ApiException from pprint import pprint @@ -21887,14 +22024,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 | + app_list_id = 1234567891011 # int | 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_apps_app_lists_app_list_id_delete(authorization, app_list_id) + print("The response of DefaultApi->v1_global_apps_app_lists_app_list_id_delete:\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_apps_app_lists_app_list_id_delete: %s\n" % e) ``` @@ -21905,11 +22042,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)| | + **app_list_id** | **int**| | ### Return type -[**V1GlobalIpfixPostResponse**](V1GlobalIpfixPostResponse.md) +**object** ### Authorization @@ -21917,7 +22054,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -21928,10 +22065,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_apps_app_lists_app_list_id_details_apps_get** +> V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse v1_global_apps_app_lists_app_list_id_details_apps_get(authorization, app_list_id) -Get configured global ipfix exporters for a site +Get all apps that are members of the provided app list ### Example @@ -21939,7 +22076,7 @@ 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_apps_app_lists_app_list_id_details_apps_get_response import V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -21965,14 +22102,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) + app_list_id = 1234567891011 # int | 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_apps_app_lists_app_list_id_details_apps_get(authorization, app_list_id) + print("The response of DefaultApi->v1_global_apps_app_lists_app_list_id_details_apps_get:\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_apps_app_lists_app_list_id_details_apps_get: %s\n" % e) ``` @@ -21983,11 +22120,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] + **app_list_id** | **int**| | ### Return type -[**V1GlobalIpfixSiteGetResponse**](V1GlobalIpfixSiteGetResponse.md) +[**V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse**](V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse.md) ### Authorization @@ -22006,10 +22143,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_apps_app_lists_app_list_id_get** +> V1GlobalAppsAppListsAppListIdGetResponse v1_global_apps_app_lists_app_list_id_get(authorization, app_list_id) -Get all the configured global IPsec Profiles for the current enterprise +Get the configuration for an app list under the current enterprise ### Example @@ -22017,7 +22154,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_apps_app_lists_app_list_id_get_response import V1GlobalAppsAppListsAppListIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22043,13 +22180,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 + app_list_id = 1234567891011 # int | 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_apps_app_lists_app_list_id_get(authorization, app_list_id) + print("The response of DefaultApi->v1_global_apps_app_lists_app_list_id_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_apps_app_lists_app_list_id_get: %s\n" % e) ``` @@ -22060,10 +22198,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **app_list_id** | **int**| | ### Return type -[**V1GlobalIpsecProfileGetResponse**](V1GlobalIpsecProfileGetResponse.md) +[**V1GlobalAppsAppListsAppListIdGetResponse**](V1GlobalAppsAppListsAppListIdGetResponse.md) ### Authorization @@ -22082,10 +22221,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_apps_app_lists_app_list_id_put** +> object v1_global_apps_app_lists_app_list_id_put(authorization, app_list_id, v1_global_apps_app_lists_app_list_id_put_request) -Get details of the configured global IPsec Profiles +Overwrite the configuration for an app list under the current enterprise ### Example @@ -22093,7 +22232,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_apps_app_lists_app_list_id_put_request import V1GlobalAppsAppListsAppListIdPutRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22119,14 +22258,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 | + app_list_id = 1234567891011 # int | + v1_global_apps_app_lists_app_list_id_put_request = graphiant_sdk.V1GlobalAppsAppListsAppListIdPutRequest() # V1GlobalAppsAppListsAppListIdPutRequest | 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_apps_app_lists_app_list_id_put(authorization, app_list_id, v1_global_apps_app_lists_app_list_id_put_request) + print("The response of DefaultApi->v1_global_apps_app_lists_app_list_id_put:\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_apps_app_lists_app_list_id_put: %s\n" % e) ``` @@ -22137,11 +22277,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **int**| | + **app_list_id** | **int**| | + **v1_global_apps_app_lists_app_list_id_put_request** | [**V1GlobalAppsAppListsAppListIdPutRequest**](V1GlobalAppsAppListsAppListIdPutRequest.md)| | ### Return type -[**V1GlobalIpsecProfileIdGetResponse**](V1GlobalIpsecProfileIdGetResponse.md) +**object** ### Authorization @@ -22149,7 +22290,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -22160,10 +22301,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_apps_app_lists_get** +> V1GlobalAppsAppListsGetResponse v1_global_apps_app_lists_get(authorization) -Get Site-to-site VPNs that are using the given global IPsec Profile +Get all app lists for the current enterprise ### Example @@ -22171,7 +22312,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_apps_app_lists_get_response import V1GlobalAppsAppListsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22197,14 +22338,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 - vpn_profile_id = 1234567891011 # int | 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_apps_app_lists_get(authorization) + print("The response of DefaultApi->v1_global_apps_app_lists_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_apps_app_lists_get: %s\n" % e) ``` @@ -22215,11 +22355,10 @@ 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**| | ### Return type -[**V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse**](V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse.md) +[**V1GlobalAppsAppListsGetResponse**](V1GlobalAppsAppListsGetResponse.md) ### Authorization @@ -22238,10 +22377,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_apps_app_lists_post** +> V1GlobalAppsAppListsPostResponse v1_global_apps_app_lists_post(authorization, v1_global_apps_app_lists_post_request) -Get a list of lan-segments under the currently logged in enterprise +Create an app list under the current enterprise ### Example @@ -22249,7 +22388,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_apps_app_lists_post_request import V1GlobalAppsAppListsPostRequest +from graphiant_sdk.models.v1_global_apps_app_lists_post_response import V1GlobalAppsAppListsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22275,13 +22415,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_apps_app_lists_post_request = graphiant_sdk.V1GlobalAppsAppListsPostRequest() # V1GlobalAppsAppListsPostRequest | 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_apps_app_lists_post(authorization, v1_global_apps_app_lists_post_request) + print("The response of DefaultApi->v1_global_apps_app_lists_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_apps_app_lists_post: %s\n" % e) ``` @@ -22292,10 +22433,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_global_apps_app_lists_post_request** | [**V1GlobalAppsAppListsPostRequest**](V1GlobalAppsAppListsPostRequest.md)| | ### Return type -[**V1GlobalLanSegmentsGetResponse**](V1GlobalLanSegmentsGetResponse.md) +[**V1GlobalAppsAppListsPostResponse**](V1GlobalAppsAppListsPostResponse.md) ### Authorization @@ -22303,7 +22445,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -22314,85 +22456,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) - -Delete a lan-segment - -### Example - -* Api Key Authentication (jwtAuth): - -```python -import graphiant_sdk -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_lan_segments_id_delete(authorization, id) - except Exception as e: - print("Exception when calling DefaultApi->v1_global_lan_segments_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_lan_segments_post** -> V1GlobalLanSegmentsPostResponse v1_global_lan_segments_post(authorization, v1_global_lan_segments_post_request) +# **v1_global_apps_categories_category_id_apps_get** +> V1GlobalAppsCategoriesCategoryIdAppsGetResponse v1_global_apps_categories_category_id_apps_get(authorization, category_id) -Create a new lan-segment scoped to the enterprise +Get all Graphiant apps in an app category ### Example @@ -22400,8 +22467,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_apps_categories_category_id_apps_get_response import V1GlobalAppsCategoriesCategoryIdAppsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22427,14 +22493,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_lan_segments_post_request = graphiant_sdk.V1GlobalLanSegmentsPostRequest() # V1GlobalLanSegmentsPostRequest | + category_id = 1234567891011 # int | 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_apps_categories_category_id_apps_get(authorization, category_id) + print("The response of DefaultApi->v1_global_apps_categories_category_id_apps_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_apps_categories_category_id_apps_get: %s\n" % e) ``` @@ -22445,11 +22511,11 @@ 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)| | + **category_id** | **int**| | ### Return type -[**V1GlobalLanSegmentsPostResponse**](V1GlobalLanSegmentsPostResponse.md) +[**V1GlobalAppsCategoriesCategoryIdAppsGetResponse**](V1GlobalAppsCategoriesCategoryIdAppsGetResponse.md) ### Authorization @@ -22457,7 +22523,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -22468,10 +22534,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_apps_categories_get** +> V1GlobalAppsCategoriesGetResponse v1_global_apps_categories_get(authorization) -Get a list of lan-segment devices under the currently logged in enterprise +Get all app categories holding Graphiant apps ### Example @@ -22479,7 +22545,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_apps_categories_get_response import V1GlobalAppsCategoriesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22505,14 +22571,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 - vrf_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_apps_categories_get(authorization) + print("The response of DefaultApi->v1_global_apps_categories_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_apps_categories_get: %s\n" % e) ``` @@ -22523,11 +22588,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **vrf_id** | **int**| | ### Return type -[**V1GlobalLanSegmentsVrfIdDevicesGetResponse**](V1GlobalLanSegmentsVrfIdDevicesGetResponse.md) +[**V1GlobalAppsCategoriesGetResponse**](V1GlobalAppsCategoriesGetResponse.md) ### Authorization @@ -22546,10 +22610,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_apps_custom_app_id_delete** +> object v1_global_apps_custom_app_id_delete(authorization, app_id) -Get global ntp objects that failed to attach for a device +Delete a global app under the current enterprise ### Example @@ -22557,7 +22621,6 @@ 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.rest import ApiException from pprint import pprint @@ -22583,14 +22646,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) + app_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_apps_custom_app_id_delete(authorization, app_id) + print("The response of DefaultApi->v1_global_apps_custom_app_id_delete:\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_apps_custom_app_id_delete: %s\n" % e) ``` @@ -22601,11 +22664,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] + **app_id** | **int**| | ### Return type -[**V1GlobalNtpsDeviceGetResponse**](V1GlobalNtpsDeviceGetResponse.md) +**object** ### Authorization @@ -22624,10 +22687,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_apps_custom_app_id_details_app_lists_get** +> V1GlobalAppsCustomAppIdDetailsAppListsGetResponse v1_global_apps_custom_app_id_details_app_lists_get(authorization, app_id) -Get configured global ntps +Get all app lists that contain the relevant global app ### Example @@ -22635,8 +22698,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_apps_custom_app_id_details_app_lists_get_response import V1GlobalAppsCustomAppIdDetailsAppListsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22662,14 +22724,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_ntps_post_request = graphiant_sdk.V1GlobalNtpsPostRequest() # V1GlobalNtpsPostRequest | + app_id = 1234567891011 # int | 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_apps_custom_app_id_details_app_lists_get(authorization, app_id) + print("The response of DefaultApi->v1_global_apps_custom_app_id_details_app_lists_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_apps_custom_app_id_details_app_lists_get: %s\n" % e) ``` @@ -22680,11 +22742,11 @@ 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)| | + **app_id** | **int**| | ### Return type -[**V1GlobalNtpsPostResponse**](V1GlobalNtpsPostResponse.md) +[**V1GlobalAppsCustomAppIdDetailsAppListsGetResponse**](V1GlobalAppsCustomAppIdDetailsAppListsGetResponse.md) ### Authorization @@ -22692,7 +22754,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -22703,10 +22765,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_apps_custom_app_id_get** +> V1GlobalAppsCustomAppIdGetResponse v1_global_apps_custom_app_id_get(authorization, app_id) -Get configured global ntps +Get the configuration for a global app under the current enterprise ### Example @@ -22714,7 +22776,7 @@ Get configured global ntps ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_ntps_site_get_response import V1GlobalNtpsSiteGetResponse +from graphiant_sdk.models.v1_global_apps_custom_app_id_get_response import V1GlobalAppsCustomAppIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22740,14 +22802,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) + app_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") + api_response = api_instance.v1_global_apps_custom_app_id_get(authorization, app_id) + print("The response of DefaultApi->v1_global_apps_custom_app_id_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_global_ntps_site_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_apps_custom_app_id_get: %s\n" % e) ``` @@ -22758,11 +22820,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] + **app_id** | **int**| | ### Return type -[**V1GlobalNtpsSiteGetResponse**](V1GlobalNtpsSiteGetResponse.md) +[**V1GlobalAppsCustomAppIdGetResponse**](V1GlobalAppsCustomAppIdGetResponse.md) ### Authorization @@ -22781,10 +22843,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_prefix_sets_post** -> V1GlobalPrefixSetsPostResponse v1_global_prefix_sets_post(authorization, v1_global_prefix_sets_post_request) +# **v1_global_apps_custom_app_id_put** +> object v1_global_apps_custom_app_id_put(authorization, app_id, v1_global_apps_custom_app_id_put_request) -Get configured global prefix-sets +Overwrite the configuration for a global app under the current enterprise ### Example @@ -22792,8 +22854,7 @@ 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_apps_custom_app_id_put_request import V1GlobalAppsCustomAppIdPutRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22819,14 +22880,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 - v1_global_prefix_sets_post_request = graphiant_sdk.V1GlobalPrefixSetsPostRequest() # V1GlobalPrefixSetsPostRequest | + app_id = 1234567891011 # int | + v1_global_apps_custom_app_id_put_request = graphiant_sdk.V1GlobalAppsCustomAppIdPutRequest() # V1GlobalAppsCustomAppIdPutRequest | 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_apps_custom_app_id_put(authorization, app_id, v1_global_apps_custom_app_id_put_request) + print("The response of DefaultApi->v1_global_apps_custom_app_id_put:\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_apps_custom_app_id_put: %s\n" % e) ``` @@ -22837,11 +22899,12 @@ 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)| | + **app_id** | **int**| | + **v1_global_apps_custom_app_id_put_request** | [**V1GlobalAppsCustomAppIdPutRequest**](V1GlobalAppsCustomAppIdPutRequest.md)| | ### Return type -[**V1GlobalPrefixSetsPostResponse**](V1GlobalPrefixSetsPostResponse.md) +**object** ### Authorization @@ -22860,10 +22923,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_apps_custom_get** +> V1GlobalAppsCustomGetResponse v1_global_apps_custom_get(authorization) -Get configured global routing-policies +Get all global apps mapped by the current enterprise ### Example @@ -22871,8 +22934,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_apps_custom_get_response import V1GlobalAppsCustomGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22898,14 +22960,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_routing_policies_post_request = graphiant_sdk.V1GlobalRoutingPoliciesPostRequest() # V1GlobalRoutingPoliciesPostRequest | 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_apps_custom_get(authorization) + print("The response of DefaultApi->v1_global_apps_custom_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_apps_custom_get: %s\n" % e) ``` @@ -22916,11 +22977,10 @@ 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)| | ### Return type -[**V1GlobalRoutingPoliciesPostResponse**](V1GlobalRoutingPoliciesPostResponse.md) +[**V1GlobalAppsCustomGetResponse**](V1GlobalAppsCustomGetResponse.md) ### Authorization @@ -22928,7 +22988,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -22939,10 +22999,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_apps_custom_post** +> V1GlobalAppsCustomPostResponse v1_global_apps_custom_post(authorization, v1_global_apps_custom_post_request) -Get a list of site lists under the currently logged in enterprise +Create a new global app under the current enterprise ### Example @@ -22950,7 +23010,8 @@ 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_apps_custom_post_request import V1GlobalAppsCustomPostRequest +from graphiant_sdk.models.v1_global_apps_custom_post_response import V1GlobalAppsCustomPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -22976,13 +23037,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_apps_custom_post_request = graphiant_sdk.V1GlobalAppsCustomPostRequest() # V1GlobalAppsCustomPostRequest | 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_apps_custom_post(authorization, v1_global_apps_custom_post_request) + print("The response of DefaultApi->v1_global_apps_custom_post:\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_apps_custom_post: %s\n" % e) ``` @@ -22993,10 +23055,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_global_apps_custom_post_request** | [**V1GlobalAppsCustomPostRequest**](V1GlobalAppsCustomPostRequest.md)| | ### Return type -[**V1GlobalSiteListsGetResponse**](V1GlobalSiteListsGetResponse.md) +[**V1GlobalAppsCustomPostResponse**](V1GlobalAppsCustomPostResponse.md) ### Authorization @@ -23004,7 +23067,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -23015,10 +23078,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_apps_graphiant_get** +> V1GlobalAppsGraphiantGetResponse v1_global_apps_graphiant_get(authorization) -Delete a site list +Get all apps mapped by Graphiant ### Example @@ -23026,6 +23089,7 @@ Delete a site list ```python import graphiant_sdk +from graphiant_sdk.models.v1_global_apps_graphiant_get_response import V1GlobalAppsGraphiantGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23051,12 +23115,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_instance.v1_global_site_lists_id_delete(authorization, id) + api_response = api_instance.v1_global_apps_graphiant_get(authorization) + print("The response of DefaultApi->v1_global_apps_graphiant_get:\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_apps_graphiant_get: %s\n" % e) ``` @@ -23067,11 +23132,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 -void (empty response body) +[**V1GlobalAppsGraphiantGetResponse**](V1GlobalAppsGraphiantGetResponse.md) ### Authorization @@ -23080,20 +23144,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_site_lists_id_get** -> V1GlobalSiteListsIdGetResponse v1_global_site_lists_id_get(authorization, id) +# **v1_global_attached_edges_post** +> V1GlobalAttachedEdgesPostResponse v1_global_attached_edges_post(authorization, v1_global_attached_edges_post_request) -Get a details of a site list +Returns attached edges for global object ### Example @@ -23101,7 +23165,8 @@ 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_attached_edges_post_request import V1GlobalAttachedEdgesPostRequest +from graphiant_sdk.models.v1_global_attached_edges_post_response import V1GlobalAttachedEdgesPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23127,14 +23192,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_attached_edges_post_request = graphiant_sdk.V1GlobalAttachedEdgesPostRequest() # V1GlobalAttachedEdgesPostRequest | 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_attached_edges_post(authorization, v1_global_attached_edges_post_request) + print("The response of DefaultApi->v1_global_attached_edges_post:\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_attached_edges_post: %s\n" % e) ``` @@ -23145,11 +23210,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_attached_edges_post_request** | [**V1GlobalAttachedEdgesPostRequest**](V1GlobalAttachedEdgesPostRequest.md)| | ### Return type -[**V1GlobalSiteListsIdGetResponse**](V1GlobalSiteListsIdGetResponse.md) +[**V1GlobalAttachedEdgesPostResponse**](V1GlobalAttachedEdgesPostResponse.md) ### Authorization @@ -23157,7 +23222,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -23168,10 +23233,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_config_patch** +> V1GlobalConfigPatchResponse v1_global_config_patch(authorization, v1_global_config_patch_request) -Update a new site list scoped to the enterprise +Update global objects for an enterprise ### Example @@ -23179,8 +23244,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_config_patch_request import V1GlobalConfigPatchRequest +from graphiant_sdk.models.v1_global_config_patch_response import V1GlobalConfigPatchResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23206,15 +23271,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_config_patch_request = graphiant_sdk.V1GlobalConfigPatchRequest() # V1GlobalConfigPatchRequest | 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_config_patch(authorization, v1_global_config_patch_request) + print("The response of DefaultApi->v1_global_config_patch:\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_config_patch: %s\n" % e) ``` @@ -23225,12 +23289,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_config_patch_request** | [**V1GlobalConfigPatchRequest**](V1GlobalConfigPatchRequest.md)| | ### Return type -[**V1GlobalSiteListsIdPutResponse**](V1GlobalSiteListsIdPutResponse.md) +[**V1GlobalConfigPatchResponse**](V1GlobalConfigPatchResponse.md) ### Authorization @@ -23249,10 +23312,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_content_filters_get** +> V1GlobalContentFiltersGetResponse v1_global_content_filters_get(authorization) -Get a details of a site list sites +Get basic details for all content filter under the current enterprise ### Example @@ -23260,7 +23323,7 @@ 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_content_filters_get_response import V1GlobalContentFiltersGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23286,14 +23349,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_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_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_site_lists_id_sites_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_content_filters_get: %s\n" % e) ``` @@ -23304,11 +23366,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 -[**V1GlobalSiteListsIdSitesGetResponse**](V1GlobalSiteListsIdSitesGetResponse.md) +[**V1GlobalContentFiltersGetResponse**](V1GlobalContentFiltersGetResponse.md) ### Authorization @@ -23327,10 +23388,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_content_filters_global_content_filter_id_delete** +> object v1_global_content_filters_global_content_filter_id_delete(authorization, global_content_filter_id) -Create a new site list scoped to the enterprise +Delete a content filter under the current enterprise ### Example @@ -23338,8 +23399,6 @@ 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.rest import ApiException from pprint import pprint @@ -23365,14 +23424,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_site_lists_post_request = graphiant_sdk.V1GlobalSiteListsPostRequest() # V1GlobalSiteListsPostRequest | + global_content_filter_id = 1234567891011 # int | ID of the global content filter to remove. 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_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_site_lists_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_content_filters_global_content_filter_id_delete: %s\n" % e) ``` @@ -23383,11 +23442,11 @@ 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)| | + **global_content_filter_id** | **int**| ID of the global content filter to remove. | ### Return type -[**V1GlobalSiteListsPostResponse**](V1GlobalSiteListsPostResponse.md) +**object** ### Authorization @@ -23395,7 +23454,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -23406,10 +23465,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_content_filters_global_content_filter_id_get** +> V1GlobalContentFiltersGlobalContentFilterIdGetResponse v1_global_content_filters_global_content_filter_id_get(authorization, global_content_filter_id) -Get status on global objects attached to a site +Get the config for a content filter under the current enterprise ### Example @@ -23417,7 +23476,7 @@ 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.models.v1_global_content_filters_global_content_filter_id_get_response import V1GlobalContentFiltersGlobalContentFilterIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23443,20 +23502,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 - ipfix_exported_site_id = 1234567891011 # int | (optional) - ntp_site_id = 1234567891011 # int | (optional) - prefix_set_site_id = 1234567891011 # int | (optional) - routing_policy_site_id = 1234567891011 # int | (optional) - snmp_site_id = 1234567891011 # int | (optional) - syslog_server_site_id = 1234567891011 # int | (optional) - traffic_policy_site_id = 1234567891011 # int | (optional) + global_content_filter_id = 1234567891011 # int | ID of the global content filter whose configuration should be returned. try: - api_response = api_instance.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) - print("The response of DefaultApi->v1_global_site_status_get:\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_site_status_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_content_filters_global_content_filter_id_get: %s\n" % e) ``` @@ -23467,17 +23520,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **ipfix_exported_site_id** | **int**| | [optional] - **ntp_site_id** | **int**| | [optional] - **prefix_set_site_id** | **int**| | [optional] - **routing_policy_site_id** | **int**| | [optional] - **snmp_site_id** | **int**| | [optional] - **syslog_server_site_id** | **int**| | [optional] - **traffic_policy_site_id** | **int**| | [optional] + **global_content_filter_id** | **int**| ID of the global content filter whose configuration should be returned. | ### Return type -[**V1GlobalSiteStatusGetResponse**](V1GlobalSiteStatusGetResponse.md) +[**V1GlobalContentFiltersGlobalContentFilterIdGetResponse**](V1GlobalContentFiltersGlobalContentFilterIdGetResponse.md) ### Authorization @@ -23496,10 +23543,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_device_get** -> V1GlobalSnmpsDeviceGetResponse v1_global_snmps_device_get(authorization, device_id=device_id) +# **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) -Get global snmp objects that failed to attach for a device +Overwrite a pre-existing content filter under the current enterprise ### Example @@ -23507,7 +23554,7 @@ Get global snmp objects that failed to attach for a device ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_snmps_device_get_response import V1GlobalSnmpsDeviceGetResponse +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 @@ -23533,14 +23580,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 - device_id = 1234567891011 # int | (optional) + 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_snmps_device_get(authorization, device_id=device_id) - print("The response of DefaultApi->v1_global_snmps_device_get:\n") + 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_snmps_device_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_content_filters_global_content_filter_id_put: %s\n" % e) ``` @@ -23551,11 +23599,12 @@ 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 replace with the supplied configuration. | + **v1_global_content_filters_global_content_filter_id_put_request** | [**V1GlobalContentFiltersGlobalContentFilterIdPutRequest**](V1GlobalContentFiltersGlobalContentFilterIdPutRequest.md)| | ### Return type -[**V1GlobalSnmpsDeviceGetResponse**](V1GlobalSnmpsDeviceGetResponse.md) +**object** ### Authorization @@ -23563,7 +23612,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -23574,10 +23623,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_post** -> V1GlobalSnmpsPostResponse v1_global_snmps_post(authorization, v1_global_snmps_post_request) +# **v1_global_content_filters_post** +> V1GlobalContentFiltersPostResponse v1_global_content_filters_post(authorization, v1_global_content_filters_post_request) -Get configured global snmps +Configure a new content filter under the current enterprise ### Example @@ -23585,8 +23634,8 @@ Get configured global snmps ```python import graphiant_sdk -from graphiant_sdk.models.v1_global_snmps_post_request import V1GlobalSnmpsPostRequest -from graphiant_sdk.models.v1_global_snmps_post_response import V1GlobalSnmpsPostResponse +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 @@ -23612,14 +23661,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_snmps_post_request = graphiant_sdk.V1GlobalSnmpsPostRequest() # V1GlobalSnmpsPostRequest | + v1_global_content_filters_post_request = graphiant_sdk.V1GlobalContentFiltersPostRequest() # V1GlobalContentFiltersPostRequest | 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_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_snmps_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_content_filters_post: %s\n" % e) ``` @@ -23630,11 +23679,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_content_filters_post_request** | [**V1GlobalContentFiltersPostRequest**](V1GlobalContentFiltersPostRequest.md)| | ### Return type -[**V1GlobalSnmpsPostResponse**](V1GlobalSnmpsPostResponse.md) +[**V1GlobalContentFiltersPostResponse**](V1GlobalContentFiltersPostResponse.md) ### Authorization @@ -23653,10 +23702,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_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 configured global snmps +Get status on global collector attached to devices ### Example @@ -23664,7 +23713,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_device_status_get_response import V1GlobalDeviceStatusGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23690,14 +23739,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 - site_id = 1234567891011 # int | (optional) + 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_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_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_snmps_site_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_device_status_get: %s\n" % e) ``` @@ -23708,11 +23763,17 @@ 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] + **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 -[**V1GlobalSnmpsSiteGetResponse**](V1GlobalSnmpsSiteGetResponse.md) +[**V1GlobalDeviceStatusGetResponse**](V1GlobalDeviceStatusGetResponse.md) ### Authorization @@ -23731,10 +23792,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_domain_categories_get** +> V1GlobalDomainCategoriesGetResponse v1_global_domain_categories_get(authorization) -Get summary on global objects +Get all domain categories from the DPI engine ### Example @@ -23742,8 +23803,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_domain_categories_get_response import V1GlobalDomainCategoriesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23769,14 +23829,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_summary_post_request = graphiant_sdk.V1GlobalSummaryPostRequest() # V1GlobalSummaryPostRequest | 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_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_summary_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_domain_categories_get: %s\n" % e) ``` @@ -23787,11 +23846,10 @@ 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)| | ### Return type -[**V1GlobalSummaryPostResponse**](V1GlobalSummaryPostResponse.md) +[**V1GlobalDomainCategoriesGetResponse**](V1GlobalDomainCategoriesGetResponse.md) ### Authorization @@ -23799,7 +23857,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -23810,10 +23868,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_ipfix_device_get** +> V1GlobalIpfixDeviceGetResponse v1_global_ipfix_device_get(authorization, device_id=device_id) -Tries synching device with the global objects +Get global ipfix exporters objects that failed to attach for a device ### Example @@ -23821,7 +23879,7 @@ 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_ipfix_device_get_response import V1GlobalIpfixDeviceGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -23847,14 +23905,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 | + device_id = 1234567891011 # int | (optional) 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_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_sync_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipfix_device_get: %s\n" % e) ``` @@ -23865,11 +23923,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)| | + **device_id** | **int**| | [optional] ### Return type -**object** +[**V1GlobalIpfixDeviceGetResponse**](V1GlobalIpfixDeviceGetResponse.md) ### Authorization @@ -23877,7 +23935,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -23888,10 +23946,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_ipfix_post** +> V1GlobalIpfixPostResponse v1_global_ipfix_post(authorization, v1_global_ipfix_post_request) -Get global syslog objects that failed to attach for a device +Get configured global ipfix exporters ### Example @@ -23899,7 +23957,8 @@ 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_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 @@ -23925,14 +23984,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) + v1_global_ipfix_post_request = graphiant_sdk.V1GlobalIpfixPostRequest() # V1GlobalIpfixPostRequest | 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_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_syslogs_device_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipfix_post: %s\n" % e) ``` @@ -23943,11 +24002,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] + **v1_global_ipfix_post_request** | [**V1GlobalIpfixPostRequest**](V1GlobalIpfixPostRequest.md)| | ### Return type -[**V1GlobalSyslogsDeviceGetResponse**](V1GlobalSyslogsDeviceGetResponse.md) +[**V1GlobalIpfixPostResponse**](V1GlobalIpfixPostResponse.md) ### Authorization @@ -23955,7 +24014,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -23966,10 +24025,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_ipfix_site_get** +> V1GlobalIpfixSiteGetResponse v1_global_ipfix_site_get(authorization, site_id=site_id) -Get configured global syslog collectors +Get configured global ipfix exporters for a site ### Example @@ -23977,8 +24036,7 @@ 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_ipfix_site_get_response import V1GlobalIpfixSiteGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24004,14 +24062,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 | + site_id = 1234567891011 # int | (optional) 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_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_syslogs_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipfix_site_get: %s\n" % e) ``` @@ -24022,11 +24080,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)| | + **site_id** | **int**| | [optional] ### Return type -[**V1GlobalSyslogsPostResponse**](V1GlobalSyslogsPostResponse.md) +[**V1GlobalIpfixSiteGetResponse**](V1GlobalIpfixSiteGetResponse.md) ### Authorization @@ -24034,7 +24092,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -24045,10 +24103,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_global_ipsec_profile_get** +> V1GlobalIpsecProfileGetResponse v1_global_ipsec_profile_get(authorization) -Get configured global syslog collectors +Get all the configured global IPsec Profiles for the current enterprise ### Example @@ -24056,7 +24114,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_global_ipsec_profile_get_response import V1GlobalIpsecProfileGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24082,14 +24140,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_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_syslogs_site_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipsec_profile_get: %s\n" % e) ``` @@ -24100,11 +24157,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) +[**V1GlobalIpsecProfileGetResponse**](V1GlobalIpsecProfileGetResponse.md) ### Authorization @@ -24123,10 +24179,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_global_ipsec_profile_id_get** +> V1GlobalIpsecProfileIdGetResponse v1_global_ipsec_profile_id_get(authorization, id) -Get configured global traffic-policies +Get details of the configured global IPsec Profiles ### Example @@ -24134,8 +24190,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_global_ipsec_profile_id_get_response import V1GlobalIpsecProfileIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24161,14 +24216,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_traffic_policies_post_request = graphiant_sdk.V1GlobalTrafficPoliciesPostRequest() # V1GlobalTrafficPoliciesPostRequest | + id = 1234567891011 # int | 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_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_traffic_policies_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipsec_profile_id_get: %s\n" % e) ``` @@ -24179,11 +24234,11 @@ 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)| | + **id** | **int**| | ### Return type -[**V1GlobalTrafficPoliciesPostResponse**](V1GlobalTrafficPoliciesPostResponse.md) +[**V1GlobalIpsecProfileIdGetResponse**](V1GlobalIpsecProfileIdGetResponse.md) ### Authorization @@ -24191,7 +24246,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -24202,10 +24257,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_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 all enterprise-level groups. +Get Site-to-site VPNs that are using the given global IPsec Profile ### Example @@ -24213,7 +24268,7 @@ Get all enterprise-level groups. ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_enterprises_get_response import V1GroupsEnterprisesGetResponse +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 @@ -24239,13 +24294,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 | try: - api_response = api_instance.v1_groups_enterprises_get(authorization) - print("The response of DefaultApi->v1_groups_enterprises_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_groups_enterprises_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ipsec_profile_vpn_profile_id_site_to_site_get: %s\n" % e) ``` @@ -24256,10 +24312,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**| | ### Return type -[**V1GroupsEnterprisesGetResponse**](V1GroupsEnterprisesGetResponse.md) +[**V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse**](V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse.md) ### Authorization @@ -24278,10 +24335,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_get** -> V1GroupsGetResponse v1_groups_get(authorization) +# **v1_global_lan_segments_get** +> V1GlobalLanSegmentsGetResponse v1_global_lan_segments_get(authorization, filter_extranet_producers=filter_extranet_producers) -Get all groups in the enterprise. +Get a list of lan-segments under the currently logged in enterprise ### Example @@ -24289,7 +24346,7 @@ Get all groups in the enterprise. ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_get_response import V1GroupsGetResponse +from graphiant_sdk.models.v1_global_lan_segments_get_response import V1GlobalLanSegmentsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24315,13 +24372,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 + filter_extranet_producers = true # bool | (optional) try: - api_response = api_instance.v1_groups_get(authorization) - print("The response of DefaultApi->v1_groups_get:\n") + api_response = api_instance.v1_global_lan_segments_get(authorization, filter_extranet_producers=filter_extranet_producers) + print("The response of DefaultApi->v1_global_lan_segments_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_lan_segments_get: %s\n" % e) ``` @@ -24332,10 +24390,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **filter_extranet_producers** | **bool**| | [optional] ### Return type -[**V1GroupsGetResponse**](V1GroupsGetResponse.md) +[**V1GlobalLanSegmentsGetResponse**](V1GlobalLanSegmentsGetResponse.md) ### Authorization @@ -24354,10 +24413,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_id_delete** -> v1_groups_id_delete(authorization, id) +# **v1_global_lan_segments_id_delete** +> v1_global_lan_segments_id_delete(authorization, id) -Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. +Delete a lan-segment ### Example @@ -24390,12 +24449,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 | + id = 1234567891011 # int | try: - api_instance.v1_groups_id_delete(authorization, id) + api_instance.v1_global_lan_segments_id_delete(authorization, id) except Exception as e: - print("Exception when calling DefaultApi->v1_groups_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_lan_segments_id_delete: %s\n" % e) ``` @@ -24406,7 +24465,7 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| | + **id** | **int**| | ### Return type @@ -24429,10 +24488,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_global_lan_segments_post** +> V1GlobalLanSegmentsPostResponse v1_global_lan_segments_post(authorization, v1_global_lan_segments_post_request) -Remove group's association with a specific enterprise, revoking cross-enterprise access. +Create a new lan-segment scoped to the enterprise ### Example @@ -24440,6 +24499,8 @@ Remove group's association with a specific enterprise, revoking cross-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.rest import ApiException from pprint import pprint @@ -24465,13 +24526,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 - enterprise_id = 1234567891011 # int | - id = 'example string' # str | + v1_global_lan_segments_post_request = graphiant_sdk.V1GlobalLanSegmentsPostRequest() # V1GlobalLanSegmentsPostRequest | try: - api_instance.v1_groups_id_enterprises_enterprise_id_delete(authorization, enterprise_id, id) + 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_groups_id_enterprises_enterprise_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_lan_segments_post: %s\n" % e) ``` @@ -24482,12 +24544,11 @@ 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_global_lan_segments_post_request** | [**V1GlobalLanSegmentsPostRequest**](V1GlobalLanSegmentsPostRequest.md)| | ### Return type -void (empty response body) +[**V1GlobalLanSegmentsPostResponse**](V1GlobalLanSegmentsPostResponse.md) ### Authorization @@ -24495,21 +24556,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_groups_id_enterprises_post** -> v1_groups_id_enterprises_post(authorization, id, v1_groups_id_enterprises_post_request) +# **v1_global_lan_segments_vrf_id_devices_get** +> V1GlobalLanSegmentsVrfIdDevicesGetResponse v1_global_lan_segments_vrf_id_devices_get(authorization, vrf_id) -Associate group with additional enterprises to enable cross-enterprise access and management. +Get a list of lan-segment devices under the currently logged in enterprise ### Example @@ -24517,7 +24578,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_global_lan_segments_vrf_id_devices_get_response import V1GlobalLanSegmentsVrfIdDevicesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24543,13 +24604,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 = 'example string' # str | - v1_groups_id_enterprises_post_request = graphiant_sdk.V1GroupsIdEnterprisesPostRequest() # V1GroupsIdEnterprisesPostRequest | + vrf_id = 1234567891011 # int | try: - api_instance.v1_groups_id_enterprises_post(authorization, id, v1_groups_id_enterprises_post_request) + 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_groups_id_enterprises_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_lan_segments_vrf_id_devices_get: %s\n" % e) ``` @@ -24560,12 +24622,11 @@ 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_enterprises_post_request** | [**V1GroupsIdEnterprisesPostRequest**](V1GroupsIdEnterprisesPostRequest.md)| | + **vrf_id** | **int**| | ### Return type -void (empty response body) +[**V1GlobalLanSegmentsVrfIdDevicesGetResponse**](V1GlobalLanSegmentsVrfIdDevicesGetResponse.md) ### Authorization @@ -24573,21 +24634,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_global_ntps_device_get** +> V1GlobalNtpsDeviceGetResponse v1_global_ntps_device_get(authorization, device_id=device_id) -Remove multiple users from a group by their member IDs. +Get global ntp objects that failed to attach for a device ### Example @@ -24595,7 +24656,7 @@ 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.models.v1_global_ntps_device_get_response import V1GlobalNtpsDeviceGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -24621,13 +24682,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 = 'example string' # str | - v1_groups_id_members_delete_post_request = graphiant_sdk.V1GroupsIdMembersDeletePostRequest() # V1GroupsIdMembersDeletePostRequest | + device_id = 1234567891011 # int | (optional) try: - api_instance.v1_groups_id_members_delete_post(authorization, id, v1_groups_id_members_delete_post_request) + 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_groups_id_members_delete_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ntps_device_get: %s\n" % e) ``` @@ -24638,12 +24700,11 @@ 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_delete_post_request** | [**V1GroupsIdMembersDeletePostRequest**](V1GroupsIdMembersDeletePostRequest.md)| | + **device_id** | **int**| | [optional] ### Return type -void (empty response body) +[**V1GlobalNtpsDeviceGetResponse**](V1GlobalNtpsDeviceGetResponse.md) ### Authorization @@ -24651,21 +24712,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_get** -> V1GroupsIdMembersGetResponse v1_groups_id_members_get(authorization, id) +# **v1_global_ntps_post** +> V1GlobalNtpsPostResponse v1_global_ntps_post(authorization, v1_global_ntps_post_request) -Get all members of a specific group. +Get configured global ntps ### Example @@ -24673,7 +24734,8 @@ 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_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 @@ -24699,14 +24761,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 = 'example string' # str | + v1_global_ntps_post_request = graphiant_sdk.V1GlobalNtpsPostRequest() # V1GlobalNtpsPostRequest | try: - api_response = api_instance.v1_groups_id_members_get(authorization, id) - print("The response of DefaultApi->v1_groups_id_members_get:\n") + 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_groups_id_members_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ntps_post: %s\n" % e) ``` @@ -24717,11 +24779,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| | + **v1_global_ntps_post_request** | [**V1GlobalNtpsPostRequest**](V1GlobalNtpsPostRequest.md)| | ### Return type -[**V1GroupsIdMembersGetResponse**](V1GroupsIdMembersGetResponse.md) +[**V1GlobalNtpsPostResponse**](V1GlobalNtpsPostResponse.md) ### Authorization @@ -24729,7 +24791,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -24740,10 +24802,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_id_members_member_id_delete** -> v1_groups_id_members_member_id_delete(authorization, id, member_id) +# **v1_global_ntps_site_get** +> V1GlobalNtpsSiteGetResponse v1_global_ntps_site_get(authorization, site_id=site_id) -Remove a specific user from a group by member ID. +Get configured global ntps ### Example @@ -24751,6 +24813,7 @@ Remove a specific user from a group by member ID. ```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 @@ -24776,13 +24839,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 = 'example string' # str | - member_id = 'example string' # str | + site_id = 1234567891011 # int | (optional) try: - api_instance.v1_groups_id_members_member_id_delete(authorization, id, member_id) + 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_groups_id_members_member_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_ntps_site_get: %s\n" % e) ``` @@ -24793,12 +24857,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| | - **member_id** | **str**| | + **site_id** | **int**| | [optional] ### Return type -void (empty response body) +[**V1GlobalNtpsSiteGetResponse**](V1GlobalNtpsSiteGetResponse.md) ### Authorization @@ -24807,98 +24870,20 @@ void (empty response body) ### 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_groups_id_members_post** -> v1_groups_id_members_post(authorization, id, v1_groups_id_members_post_request) - -Add multiple users to a group by their global IDs. - -### Example - -* Api Key Authentication (jwtAuth): - -```python -import graphiant_sdk -from graphiant_sdk.models.v1_groups_id_members_post_request import V1GroupsIdMembersPostRequest -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 = 'example string' # str | - v1_groups_id_members_post_request = graphiant_sdk.V1GroupsIdMembersPostRequest() # V1GroupsIdMembersPostRequest | - - try: - 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_post: %s\n" % e) -``` - - - -### Parameters - - -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 - -void (empty response body) - -### Authorization - -[jwtAuth](../README.md#jwtAuth) - -### 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_id_patch** -> v1_groups_id_patch(authorization, id, v1_groups_id_patch_request) +# **v1_global_prefix_sets_post** +> V1GlobalPrefixSetsPostResponse v1_global_prefix_sets_post(authorization, v1_global_prefix_sets_post_request) -Update group information. +Get configured global prefix-sets ### Example @@ -24906,7 +24891,8 @@ Update group information. ```python import graphiant_sdk -from graphiant_sdk.models.v1_groups_id_patch_request import V1GroupsIdPatchRequest +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 @@ -24932,13 +24918,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 = 'example string' # str | - v1_groups_id_patch_request = graphiant_sdk.V1GroupsIdPatchRequest() # V1GroupsIdPatchRequest | + v1_global_prefix_sets_post_request = graphiant_sdk.V1GlobalPrefixSetsPostRequest() # V1GlobalPrefixSetsPostRequest | try: - api_instance.v1_groups_id_patch(authorization, id, v1_groups_id_patch_request) + 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_groups_id_patch: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_prefix_sets_post: %s\n" % e) ``` @@ -24949,12 +24936,11 @@ 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)| | + **v1_global_prefix_sets_post_request** | [**V1GlobalPrefixSetsPostRequest**](V1GlobalPrefixSetsPostRequest.md)| | ### Return type -void (empty response body) +[**V1GlobalPrefixSetsPostResponse**](V1GlobalPrefixSetsPostResponse.md) ### Authorization @@ -24963,20 +24949,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_put** -> v1_groups_put(authorization, v1_groups_put_request) +# **v1_global_routing_policies_post** +> V1GlobalRoutingPoliciesPostResponse v1_global_routing_policies_post(authorization, v1_global_routing_policies_post_request) -Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). +Get configured global routing-policies ### Example @@ -24984,7 +24970,8 @@ 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_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 @@ -25010,12 +24997,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_global_routing_policies_post_request = graphiant_sdk.V1GlobalRoutingPoliciesPostRequest() # V1GlobalRoutingPoliciesPostRequest | try: - api_instance.v1_groups_put(authorization, v1_groups_put_request) + 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_groups_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_routing_policies_post: %s\n" % e) ``` @@ -25026,11 +25015,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_global_routing_policies_post_request** | [**V1GlobalRoutingPoliciesPostRequest**](V1GlobalRoutingPoliciesPostRequest.md)| | ### Return type -void (empty response body) +[**V1GlobalRoutingPoliciesPostResponse**](V1GlobalRoutingPoliciesPostResponse.md) ### Authorization @@ -25039,20 +25028,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_global_site_lists_get** +> V1GlobalSiteListsGetResponse v1_global_site_lists_get(authorization) -Get all root-level groups. +Get a list of site lists under the currently logged in enterprise ### Example @@ -25060,7 +25049,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_global_site_lists_get_response import V1GlobalSiteListsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25088,11 +25077,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_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_groups_root_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_site_lists_get: %s\n" % e) ``` @@ -25106,7 +25095,7 @@ Name | Type | Description | Notes ### Return type -[**V1GroupsRootGetResponse**](V1GroupsRootGetResponse.md) +[**V1GlobalSiteListsGetResponse**](V1GlobalSiteListsGetResponse.md) ### Authorization @@ -25125,10 +25114,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_global_site_lists_id_delete** +> v1_global_site_lists_id_delete(authorization, 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. +Delete a site list ### Example @@ -25136,7 +25125,6 @@ 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.rest import ApiException from pprint import pprint @@ -25162,14 +25150,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 - v1_invitation_email_post_request = graphiant_sdk.V1InvitationEmailPostRequest() # V1InvitationEmailPostRequest | + 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") - pprint(api_response) + api_instance.v1_global_site_lists_id_delete(authorization, id) except Exception as e: - print("Exception when calling DefaultApi->v1_invitation_email_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_site_lists_id_delete: %s\n" % e) ``` @@ -25180,11 +25166,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)| | + **id** | **int**| | ### Return type -**object** +void (empty response body) ### Authorization @@ -25192,21 +25178,21 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json + - **Content-Type**: Not defined + - **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_lan_segments_get** -> V1LanSegmentsGetResponse v1_lan_segments_get(authorization) +# **v1_global_site_lists_id_get** +> V1GlobalSiteListsIdGetResponse v1_global_site_lists_id_get(authorization, id) -Get LAN Segments for the current enterprise +Get a details of a site list ### Example @@ -25214,7 +25200,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_global_site_lists_id_get_response import V1GlobalSiteListsIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25240,13 +25226,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_lan_segments_get(authorization) - print("The response of DefaultApi->v1_lan_segments_get:\n") + 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_lan_segments_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_site_lists_id_get: %s\n" % e) ``` @@ -25257,10 +25244,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 -[**V1LanSegmentsGetResponse**](V1LanSegmentsGetResponse.md) +[**V1GlobalSiteListsIdGetResponse**](V1GlobalSiteListsIdGetResponse.md) ### Authorization @@ -25279,10 +25267,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_global_site_lists_id_put** +> V1GlobalSiteListsIdPutResponse v1_global_site_lists_id_put(authorization, id, v1_global_site_lists_id_put_request) -Get the LLDP neighbors for an interface and optionally for a specific vendor +Update a new site list scoped to the enterprise ### Example @@ -25290,7 +25278,8 @@ 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_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 @@ -25316,14 +25305,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 - interface_id = 1234567891011 # int | + id = 1234567891011 # int | + v1_global_site_lists_id_put_request = graphiant_sdk.V1GlobalSiteListsIdPutRequest() # V1GlobalSiteListsIdPutRequest | 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_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_lldp_interface_id_neighbors_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_site_lists_id_put: %s\n" % e) ``` @@ -25334,11 +25324,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **interface_id** | **int**| | + **id** | **int**| | + **v1_global_site_lists_id_put_request** | [**V1GlobalSiteListsIdPutRequest**](V1GlobalSiteListsIdPutRequest.md)| | ### Return type -[**V1LldpInterfaceIdNeighborsGetResponse**](V1LldpInterfaceIdNeighborsGetResponse.md) +[**V1GlobalSiteListsIdPutResponse**](V1GlobalSiteListsIdPutResponse.md) ### Authorization @@ -25346,7 +25337,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -25357,10 +25348,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_global_site_lists_id_sites_get** +> V1GlobalSiteListsIdSitesGetResponse v1_global_site_lists_id_sites_get(authorization, id) -Get the summary of LLDP neighbors for an interface +Get a details of a site list sites ### Example @@ -25368,7 +25359,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_global_site_lists_id_sites_get_response import V1GlobalSiteListsIdSitesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25394,14 +25385,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 | + 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_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_lldp_interface_id_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_site_lists_id_sites_get: %s\n" % e) ``` @@ -25412,11 +25403,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**| | + **id** | **int**| | ### Return type -[**V1LldpInterfaceIdSummaryGetResponse**](V1LldpInterfaceIdSummaryGetResponse.md) +[**V1GlobalSiteListsIdSitesGetResponse**](V1GlobalSiteListsIdSitesGetResponse.md) ### Authorization @@ -25435,10 +25426,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_global_site_lists_post** +> V1GlobalSiteListsPostResponse v1_global_site_lists_post(authorization, v1_global_site_lists_post_request) -Get the list LLDP vendors for an interface +Create a new site list scoped to the enterprise ### Example @@ -25446,7 +25437,8 @@ 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_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 @@ -25472,14 +25464,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_global_site_lists_post_request = graphiant_sdk.V1GlobalSiteListsPostRequest() # V1GlobalSiteListsPostRequest | 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_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_lldp_interface_id_vendors_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_site_lists_post: %s\n" % e) ``` @@ -25490,11 +25482,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_global_site_lists_post_request** | [**V1GlobalSiteListsPostRequest**](V1GlobalSiteListsPostRequest.md)| | ### Return type -[**V1LldpInterfaceIdVendorsGetResponse**](V1LldpInterfaceIdVendorsGetResponse.md) +[**V1GlobalSiteListsPostResponse**](V1GlobalSiteListsPostResponse.md) ### Authorization @@ -25502,7 +25494,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -25513,8 +25505,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_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 @@ -25522,8 +25516,7 @@ 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.models.v1_global_site_status_get_response import V1GlobalSiteStatusGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25549,14 +25542,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 - v1_logs_post_request = graphiant_sdk.V1LogsPostRequest() # V1LogsPostRequest | + ipfix_exported_site_id = 1234567891011 # int | (optional) + ntp_site_id = 1234567891011 # int | (optional) + prefix_set_site_id = 1234567891011 # int | (optional) + routing_policy_site_id = 1234567891011 # int | (optional) + snmp_site_id = 1234567891011 # int | (optional) + syslog_server_site_id = 1234567891011 # int | (optional) + traffic_policy_site_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v1_logs_post(authorization, v1_logs_post_request) - print("The response of DefaultApi->v1_logs_post:\n") + api_response = api_instance.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) + print("The response of DefaultApi->v1_global_site_status_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_global_site_status_get: %s\n" % e) ``` @@ -25567,11 +25566,17 @@ 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)| | + **ipfix_exported_site_id** | **int**| | [optional] + **ntp_site_id** | **int**| | [optional] + **prefix_set_site_id** | **int**| | [optional] + **routing_policy_site_id** | **int**| | [optional] + **snmp_site_id** | **int**| | [optional] + **syslog_server_site_id** | **int**| | [optional] + **traffic_policy_site_id** | **int**| | [optional] ### Return type -[**V1LogsPostResponse**](V1LogsPostResponse.md) +[**V1GlobalSiteStatusGetResponse**](V1GlobalSiteStatusGetResponse.md) ### Authorization @@ -25579,7 +25584,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -25590,10 +25595,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_msp_managed_enterprise_contract_info_get** -> V1MspManagedEnterpriseContractInfoGetResponse v1_msp_managed_enterprise_contract_info_get(authorization) +# **v1_global_snmps_device_get** +> V1GlobalSnmpsDeviceGetResponse v1_global_snmps_device_get(authorization, device_id=device_id) -Managed enterprises under the MSP with contract and credit allocation details for the requested month +Get global snmp objects that failed to attach for a device ### Example @@ -25601,7 +25606,7 @@ Managed enterprises under the MSP with contract and credit allocation details fo ```python import graphiant_sdk -from graphiant_sdk.models.v1_msp_managed_enterprise_contract_info_get_response import V1MspManagedEnterpriseContractInfoGetResponse +from graphiant_sdk.models.v1_global_snmps_device_get_response import V1GlobalSnmpsDeviceGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25627,13 +25632,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_msp_managed_enterprise_contract_info_get(authorization) - print("The response of DefaultApi->v1_msp_managed_enterprise_contract_info_get:\n") + api_response = api_instance.v1_global_snmps_device_get(authorization, device_id=device_id) + print("The response of DefaultApi->v1_global_snmps_device_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_msp_managed_enterprise_contract_info_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_snmps_device_get: %s\n" % e) ``` @@ -25644,10 +25650,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 -[**V1MspManagedEnterpriseContractInfoGetResponse**](V1MspManagedEnterpriseContractInfoGetResponse.md) +[**V1GlobalSnmpsDeviceGetResponse**](V1GlobalSnmpsDeviceGetResponse.md) ### Authorization @@ -25666,10 +25673,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_global_snmps_post** +> V1GlobalSnmpsPostResponse v1_global_snmps_post(authorization, v1_global_snmps_post_request) -Get the NAT entries for the device +Get configured global snmps ### Example @@ -25677,7 +25684,8 @@ 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_global_snmps_post_request import V1GlobalSnmpsPostRequest +from graphiant_sdk.models.v1_global_snmps_post_response import V1GlobalSnmpsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25703,14 +25711,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_global_snmps_post_request = graphiant_sdk.V1GlobalSnmpsPostRequest() # V1GlobalSnmpsPostRequest | 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_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_nat_entries_device_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_snmps_post: %s\n" % e) ``` @@ -25721,11 +25729,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_global_snmps_post_request** | [**V1GlobalSnmpsPostRequest**](V1GlobalSnmpsPostRequest.md)| | ### Return type -[**V1NatEntriesDeviceIdGetResponse**](V1NatEntriesDeviceIdGetResponse.md) +[**V1GlobalSnmpsPostResponse**](V1GlobalSnmpsPostResponse.md) ### Authorization @@ -25733,7 +25741,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -25744,10 +25752,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_utilization_device_id_get** -> V1NatUtilizationDeviceIdGetResponse v1_nat_utilization_device_id_get(authorization, device_id) +# **v1_global_snmps_site_get** +> V1GlobalSnmpsSiteGetResponse v1_global_snmps_site_get(authorization, site_id=site_id) -Get the NAT usage for the device +Get configured global snmps ### Example @@ -25755,7 +25763,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_global_snmps_site_get_response import V1GlobalSnmpsSiteGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25781,14 +25789,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 | + site_id = 1234567891011 # int | (optional) 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_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_nat_utilization_device_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_snmps_site_get: %s\n" % e) ``` @@ -25799,11 +25807,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**| | + **site_id** | **int**| | [optional] ### Return type -[**V1NatUtilizationDeviceIdGetResponse**](V1NatUtilizationDeviceIdGetResponse.md) +[**V1GlobalSnmpsSiteGetResponse**](V1GlobalSnmpsSiteGetResponse.md) ### Authorization @@ -25822,10 +25830,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_global_summary_post** +> V1GlobalSummaryPostResponse v1_global_summary_post(authorization, v1_global_summary_post_request) -Delete the onboarding token +Get summary on global objects ### Example @@ -25833,6 +25841,8 @@ Delete the onboarding token ```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 @@ -25858,11 +25868,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 | try: - api_instance.v1_onboarding_cloudinit_delete(authorization) + 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_onboarding_cloudinit_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_summary_post: %s\n" % e) ``` @@ -25873,10 +25886,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)| | ### Return type -void (empty response body) +[**V1GlobalSummaryPostResponse**](V1GlobalSummaryPostResponse.md) ### Authorization @@ -25884,21 +25898,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_onboarding_cloudinit_get** -> V1OnboardingCloudinitGetResponse v1_onboarding_cloudinit_get(authorization) +# **v1_global_sync_post** +> object v1_global_sync_post(authorization, v1_global_sync_post_request) -Get all the onboarding tokens +Tries synching device with the global objects ### Example @@ -25906,7 +25920,7 @@ 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_global_sync_post_request import V1GlobalSyncPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -25932,13 +25946,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 | 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_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_onboarding_cloudinit_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_sync_post: %s\n" % e) ``` @@ -25949,10 +25964,89 @@ 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)| | ### Return type -[**V1OnboardingCloudinitGetResponse**](V1OnboardingCloudinitGetResponse.md) +**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) + +# **v1_global_syslogs_device_get** +> V1GlobalSyslogsDeviceGetResponse v1_global_syslogs_device_get(authorization, device_id=device_id) + +Get global syslog objects that failed to attach for a device + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_global_syslogs_device_get_response import V1GlobalSyslogsDeviceGetResponse +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 | (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") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_global_syslogs_device_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **device_id** | **int**| | [optional] + +### Return type + +[**V1GlobalSyslogsDeviceGetResponse**](V1GlobalSyslogsDeviceGetResponse.md) ### Authorization @@ -25971,10 +26065,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_global_syslogs_post** +> V1GlobalSyslogsPostResponse v1_global_syslogs_post(authorization, v1_global_syslogs_post_request) -Create a onboarding token +Get configured global syslog collectors ### Example @@ -25982,7 +26076,8 @@ Create a onboarding token ```python import graphiant_sdk -from graphiant_sdk.models.v1_onboarding_cloudinit_post_request import V1OnboardingCloudinitPostRequest +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 @@ -26008,14 +26103,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_onboarding_cloudinit_post_request = graphiant_sdk.V1OnboardingCloudinitPostRequest() # V1OnboardingCloudinitPostRequest | + v1_global_syslogs_post_request = graphiant_sdk.V1GlobalSyslogsPostRequest() # V1GlobalSyslogsPostRequest | 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_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_onboarding_cloudinit_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_syslogs_post: %s\n" % e) ``` @@ -26026,11 +26121,11 @@ 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)| | + **v1_global_syslogs_post_request** | [**V1GlobalSyslogsPostRequest**](V1GlobalSyslogsPostRequest.md)| | ### Return type -**object** +[**V1GlobalSyslogsPostResponse**](V1GlobalSyslogsPostResponse.md) ### Authorization @@ -26045,14 +26140,14 @@ Name | Type | Description | Notes | 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_global_syslogs_site_get** +> V1GlobalSyslogsSiteGetResponse v1_global_syslogs_site_get(authorization, site_id=site_id) -Get a list of builtin DPI applications +Get configured global syslog collectors ### Example @@ -26060,7 +26155,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_global_syslogs_site_get_response import V1GlobalSyslogsSiteGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26086,13 +26181,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) 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_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_policy_applications_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_syslogs_site_get: %s\n" % e) ``` @@ -26103,10 +26199,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] ### Return type -[**V1PolicyApplicationsGetResponse**](V1PolicyApplicationsGetResponse.md) +[**V1GlobalSyslogsSiteGetResponse**](V1GlobalSyslogsSiteGetResponse.md) ### Authorization @@ -26125,10 +26222,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_global_traffic_policies_post** +> V1GlobalTrafficPoliciesPostResponse v1_global_traffic_policies_post(authorization, v1_global_traffic_policies_post_request) -Create a new route-tag scoped to the enterprise +Get configured global traffic-policies ### Example @@ -26136,7 +26233,8 @@ 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_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 @@ -26162,15 +26260,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 | - level = 123 # int | (optional) + v1_global_traffic_policies_post_request = graphiant_sdk.V1GlobalTrafficPoliciesPostRequest() # V1GlobalTrafficPoliciesPostRequest | 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_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_policy_route_tag_sets_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_global_traffic_policies_post: %s\n" % e) ``` @@ -26181,12 +26278,11 @@ 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] + **v1_global_traffic_policies_post_request** | [**V1GlobalTrafficPoliciesPostRequest**](V1GlobalTrafficPoliciesPostRequest.md)| | ### Return type -[**V1PolicyRouteTagSetsIdDeleteResponse**](V1PolicyRouteTagSetsIdDeleteResponse.md) +[**V1GlobalTrafficPoliciesPostResponse**](V1GlobalTrafficPoliciesPostResponse.md) ### Authorization @@ -26194,7 +26290,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -26205,10 +26301,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_groups_enterprises_get** +> V1GroupsEnterprisesGetResponse v1_groups_enterprises_get(authorization) -Create a new route tag scoped to the enterprise +Get all enterprise-level groups. ### Example @@ -26216,8 +26312,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_groups_enterprises_get_response import V1GroupsEnterprisesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26243,14 +26338,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_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_policy_route_tag_sets_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_enterprises_get: %s\n" % e) ``` @@ -26261,11 +26355,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) +[**V1GroupsEnterprisesGetResponse**](V1GroupsEnterprisesGetResponse.md) ### Authorization @@ -26273,7 +26366,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -26284,10 +26377,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_groups_get** +> V1GroupsGetResponse v1_groups_get(authorization) -Get all the route tags summary for the the enterprise +Get all groups in the enterprise. ### Example @@ -26295,7 +26388,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_groups_get_response import V1GroupsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26323,11 +26416,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_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_policy_route_tag_sets_tag_detail_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_get: %s\n" % e) ``` @@ -26341,7 +26434,7 @@ Name | Type | Description | Notes ### Return type -[**V1PolicyRouteTagSetsTagDetailGetResponse**](V1PolicyRouteTagSetsTagDetailGetResponse.md) +[**V1GroupsGetResponse**](V1GroupsGetResponse.md) ### Authorization @@ -26360,10 +26453,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_groups_id_delete** +> v1_groups_id_delete(authorization, id) -Get all the route tags for the enterprise +Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. ### Example @@ -26371,7 +26464,6 @@ 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.rest import ApiException from pprint import pprint @@ -26397,13 +26489,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_policy_route_tag_sets_tags_get(authorization) - print("The response of DefaultApi->v1_policy_route_tag_sets_tags_get:\n") - pprint(api_response) + api_instance.v1_groups_id_delete(authorization, id) 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_groups_id_delete: %s\n" % e) ``` @@ -26414,10 +26505,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 -[**V1PolicyRouteTagSetsTagsGetResponse**](V1PolicyRouteTagSetsTagsGetResponse.md) +void (empty response body) ### Authorization @@ -26426,20 +26518,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_policy_route_tag_sets_tags_summary_get** -> V1PolicyRouteTagSetsTagsSummaryGetResponse v1_policy_route_tag_sets_tags_summary_get(authorization) +# **v1_groups_id_enterprises_enterprise_id_delete** +> v1_groups_id_enterprises_enterprise_id_delete(authorization, enterprise_id, id) -Get all the route tags summary for the the enterprise +Remove group's association with a specific enterprise, revoking cross-enterprise access. ### Example @@ -26447,7 +26539,6 @@ 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.rest import ApiException from pprint import pprint @@ -26473,13 +26564,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_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) + api_instance.v1_groups_id_enterprises_enterprise_id_delete(authorization, enterprise_id, id) 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_groups_id_enterprises_enterprise_id_delete: %s\n" % e) ``` @@ -26490,10 +26581,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 -[**V1PolicyRouteTagSetsTagsSummaryGetResponse**](V1PolicyRouteTagSetsTagsSummaryGetResponse.md) +void (empty response body) ### Authorization @@ -26502,20 +26595,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_presharedkey_get** -> V1PresharedkeyGetResponse v1_presharedkey_get(authorization) +# **v1_groups_id_enterprises_post** +> v1_groups_id_enterprises_post(authorization, id, v1_groups_id_enterprises_post_request) -Get all domain categories from the DPI engine +Associate group with additional enterprises to enable cross-enterprise access and management. ### Example @@ -26523,7 +26616,7 @@ 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_groups_id_enterprises_post_request import V1GroupsIdEnterprisesPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26549,13 +26642,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_enterprises_post_request = graphiant_sdk.V1GroupsIdEnterprisesPostRequest() # V1GroupsIdEnterprisesPostRequest | try: - api_response = api_instance.v1_presharedkey_get(authorization) - print("The response of DefaultApi->v1_presharedkey_get:\n") - pprint(api_response) + 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_presharedkey_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_enterprises_post: %s\n" % e) ``` @@ -26566,10 +26659,12 @@ 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_enterprises_post_request** | [**V1GroupsIdEnterprisesPostRequest**](V1GroupsIdEnterprisesPostRequest.md)| | ### Return type -[**V1PresharedkeyGetResponse**](V1PresharedkeyGetResponse.md) +void (empty response body) ### Authorization @@ -26577,21 +26672,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_qos_circuit_profiles_get** -> V1QosCircuitProfilesGetResponse v1_qos_circuit_profiles_get(authorization) +# **v1_groups_id_members_delete_post** +> v1_groups_id_members_delete_post(authorization, id, v1_groups_id_members_delete_post_request) -Returns a list of QoS profiles for circuits with associated queues & attributes +Remove multiple users from a group by their member IDs. ### Example @@ -26599,7 +26694,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_groups_id_members_delete_post_request import V1GroupsIdMembersDeletePostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26625,13 +26720,92 @@ 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_delete_post_request = graphiant_sdk.V1GroupsIdMembersDeletePostRequest() # V1GroupsIdMembersDeletePostRequest | try: - api_response = api_instance.v1_qos_circuit_profiles_get(authorization) - print("The response of DefaultApi->v1_qos_circuit_profiles_get:\n") + 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_members_delete_post: %s\n" % e) +``` + + + +### Parameters + + +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)| | + +### 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_groups_id_members_get** +> V1GroupsIdMembersGetResponse v1_groups_id_members_get(authorization, id) + +Get all members of a specific group. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_groups_id_members_get_response import V1GroupsIdMembersGetResponse +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 = 'example string' # str | + + 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) except Exception as e: - print("Exception when calling DefaultApi->v1_qos_circuit_profiles_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_members_get: %s\n" % e) ``` @@ -26642,10 +26816,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 -[**V1QosCircuitProfilesGetResponse**](V1QosCircuitProfilesGetResponse.md) +[**V1GroupsIdMembersGetResponse**](V1GroupsIdMembersGetResponse.md) ### Authorization @@ -26664,10 +26839,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_groups_id_members_member_id_delete** +> v1_groups_id_members_member_id_delete(authorization, id, member_id) -Get regions used for the current enterprise +Remove a specific user from a group by member ID. ### Example @@ -26675,7 +26850,6 @@ Get regions used for the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_regions_get_response import V1RegionsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26701,13 +26875,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 | + member_id = 'example string' # str | try: - api_response = api_instance.v1_regions_get(authorization) - print("The response of DefaultApi->v1_regions_get:\n") - pprint(api_response) + api_instance.v1_groups_id_members_member_id_delete(authorization, id, member_id) except Exception as e: - print("Exception when calling DefaultApi->v1_regions_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_members_member_id_delete: %s\n" % e) ``` @@ -26718,10 +26892,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **str**| | + **member_id** | **str**| | ### Return type -[**V1RegionsGetResponse**](V1RegionsGetResponse.md) +void (empty response body) ### Authorization @@ -26730,18 +26906,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_search_get** -> V1SearchGetResponse v1_search_get(authorization, max_results=max_results, search=search) +# **v1_groups_id_members_post** +> v1_groups_id_members_post(authorization, id, v1_groups_id_members_post_request) + +Add multiple users to a group by their global IDs. ### Example @@ -26749,7 +26927,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_search_get_response import V1SearchGetResponse +from graphiant_sdk.models.v1_groups_id_members_post_request import V1GroupsIdMembersPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26775,15 +26953,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) + id = 'example string' # str | + v1_groups_id_members_post_request = graphiant_sdk.V1GroupsIdMembersPostRequest() # V1GroupsIdMembersPostRequest | try: - 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) + 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_search_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_members_post: %s\n" % e) ``` @@ -26794,12 +26970,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] + **id** | **str**| | + **v1_groups_id_members_post_request** | [**V1GroupsIdMembersPostRequest**](V1GroupsIdMembersPostRequest.md)| | ### Return type -[**V1SearchGetResponse**](V1SearchGetResponse.md) +void (empty response body) ### Authorization @@ -26807,21 +26983,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_site_details_sitelists_post** -> V1SiteDetailsSitelistsPostResponse v1_site_details_sitelists_post(authorization, v1_site_details_sitelists_post_request) +# **v1_groups_id_patch** +> v1_groups_id_patch(authorization, id, v1_groups_id_patch_request) -Get a list of site list references for a site +Update group information. ### Example @@ -26829,8 +27005,7 @@ 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_groups_id_patch_request import V1GroupsIdPatchRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26856,14 +27031,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_site_details_sitelists_post_request = graphiant_sdk.V1SiteDetailsSitelistsPostRequest() # V1SiteDetailsSitelistsPostRequest | + id = 'example string' # str | + v1_groups_id_patch_request = graphiant_sdk.V1GroupsIdPatchRequest() # V1GroupsIdPatchRequest | 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") - pprint(api_response) + api_instance.v1_groups_id_patch(authorization, id, v1_groups_id_patch_request) except Exception as e: - print("Exception when calling DefaultApi->v1_site_details_sitelists_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_id_patch: %s\n" % e) ``` @@ -26874,11 +27048,12 @@ 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)| | + **id** | **str**| | + **v1_groups_id_patch_request** | [**V1GroupsIdPatchRequest**](V1GroupsIdPatchRequest.md)| | ### Return type -[**V1SiteDetailsSitelistsPostResponse**](V1SiteDetailsSitelistsPostResponse.md) +void (empty response body) ### Authorization @@ -26887,20 +27062,20 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **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_site_id_details_interfaces_get** -> V1SiteIdDetailsInterfacesGetResponse v1_site_id_details_interfaces_get(authorization, id) +# **v1_groups_put** +> v1_groups_put(authorization, v1_groups_put_request) -Get a list of a site's interfaces, loopback listed first +Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). ### Example @@ -26908,7 +27083,7 @@ 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.models.v1_groups_put_request import V1GroupsPutRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -26934,14 +27109,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 | + v1_groups_put_request = graphiant_sdk.V1GroupsPutRequest() # V1GroupsPutRequest | 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_groups_put(authorization, v1_groups_put_request) except Exception as e: - print("Exception when calling DefaultApi->v1_site_id_details_interfaces_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_put: %s\n" % e) ``` @@ -26952,11 +27125,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_groups_put_request** | [**V1GroupsPutRequest**](V1GroupsPutRequest.md)| | ### Return type -[**V1SiteIdDetailsInterfacesGetResponse**](V1SiteIdDetailsInterfacesGetResponse.md) +void (empty response body) ### Authorization @@ -26964,21 +27137,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_sites_details_get** -> V1SitesDetailsGetResponse v1_sites_details_get(authorization) +# **v1_groups_root_get** +> V1GroupsRootGetResponse v1_groups_root_get(authorization) -Get a list of sites with aggregated values and site wide status +Get all root-level groups. ### Example @@ -26986,7 +27159,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_groups_root_get_response import V1GroupsRootGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -27014,11 +27187,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer 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_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_sites_details_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_groups_root_get: %s\n" % e) ``` @@ -27032,7 +27205,7 @@ Name | Type | Description | Notes ### Return type -[**V1SitesDetailsGetResponse**](V1SitesDetailsGetResponse.md) +[**V1GroupsRootGetResponse**](V1GroupsRootGetResponse.md) ### Authorization @@ -27051,10 +27224,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_invitation_email_post** +> object v1_invitation_email_post(authorization, v1_invitation_email_post_request) -Get sites for the current enterprise +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 @@ -27062,7 +27235,7 @@ 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_invitation_email_post_request import V1InvitationEmailPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -27088,13 +27261,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 | try: - api_response = api_instance.v1_sites_get(authorization) - print("The response of DefaultApi->v1_sites_get:\n") + 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_sites_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_invitation_email_post: %s\n" % e) ``` @@ -27105,10 +27279,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)| | ### Return type -[**V1SitesGetResponse**](V1SitesGetResponse.md) +**object** ### Authorization @@ -27116,7 +27291,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -27127,10 +27302,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_map_details_get** -> V1SitesMapDetailsGetResponse v1_sites_map_details_get(authorization, lan_segment_ids=lan_segment_ids, site_ids=site_ids, site_list_ids=site_list_ids) +# **v1_lan_segments_get** +> V1LanSegmentsGetResponse v1_lan_segments_get(authorization, device_id=device_id, device_ids=device_ids, filter=filter, gateway_cloud_provider=gateway_cloud_provider) -Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site +Get LAN Segments for the current enterprise ### Example @@ -27138,7 +27313,7 @@ Per LAN segment (VRF), sites touched by that segment and device lists with/witho ```python import graphiant_sdk -from graphiant_sdk.models.v1_sites_map_details_get_response import V1SitesMapDetailsGetResponse +from graphiant_sdk.models.v1_lan_segments_get_response import V1LanSegmentsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -27164,16 +27339,17 @@ 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 - lan_segment_ids = [[0]] # List[int] | (optional) - site_ids = [[0]] # List[int] | (optional) - site_list_ids = [[0]] # List[int] | (optional) + device_id = 1234567891011 # int | (optional) + device_ids = [[0]] # List[int] | (optional) + filter = 'example string' # str | (optional) + gateway_cloud_provider = 'ENUM_VALUE' # str | (optional) try: - api_response = api_instance.v1_sites_map_details_get(authorization, lan_segment_ids=lan_segment_ids, site_ids=site_ids, site_list_ids=site_list_ids) - print("The response of DefaultApi->v1_sites_map_details_get:\n") + api_response = api_instance.v1_lan_segments_get(authorization, device_id=device_id, device_ids=device_ids, filter=filter, gateway_cloud_provider=gateway_cloud_provider) + print("The response of DefaultApi->v1_lan_segments_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_sites_map_details_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_lan_segments_get: %s\n" % e) ``` @@ -27184,13 +27360,14 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **lan_segment_ids** | [**List[int]**](int.md)| | [optional] - **site_ids** | [**List[int]**](int.md)| | [optional] - **site_list_ids** | [**List[int]**](int.md)| | [optional] + **device_id** | **int**| | [optional] + **device_ids** | [**List[int]**](int.md)| | [optional] + **filter** | **str**| | [optional] + **gateway_cloud_provider** | **str**| | [optional] ### Return type -[**V1SitesMapDetailsGetResponse**](V1SitesMapDetailsGetResponse.md) +[**V1LanSegmentsGetResponse**](V1LanSegmentsGetResponse.md) ### Authorization @@ -27209,10 +27386,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_post** -> V1SitesPostResponse v1_sites_post(authorization, v1_sites_post_request) +# **v1_lan_segments_interfaces_public_get** +> V1LanSegmentsInterfacesPublicGetResponse v1_lan_segments_interfaces_public_get(authorization, device_id) -Create an enterprise site +Per LAN segment (VRF) on a device: interfaces split by globally routable IPv4 (for Public VIF / BGP) ### Example @@ -27220,8 +27397,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_lan_segments_interfaces_public_get_response import V1LanSegmentsInterfacesPublicGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -27247,14 +27423,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_sites_post_request = graphiant_sdk.V1SitesPostRequest() # V1SitesPostRequest | + device_id = 1234567891011 # int | device id 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_lan_segments_interfaces_public_get(authorization, device_id) + print("The response of DefaultApi->v1_lan_segments_interfaces_public_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_lan_segments_interfaces_public_get: %s\n" % e) ``` @@ -27265,11 +27441,11 @@ 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)| | + **device_id** | **int**| device id | ### Return type -[**V1SitesPostResponse**](V1SitesPostResponse.md) +[**V1LanSegmentsInterfacesPublicGetResponse**](V1LanSegmentsInterfacesPublicGetResponse.md) ### Authorization @@ -27277,7 +27453,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -27288,10 +27464,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_circuits_get** -> V1SitesSiteIdCircuitsGetResponse v1_sites_site_id_circuits_get(authorization, site_id) +# **v1_lldp_interface_id_neighbors_get** +> V1LldpInterfaceIdNeighborsGetResponse v1_lldp_interface_id_neighbors_get(authorization, interface_id) -Get Circuits for the site +Get the LLDP neighbors for an interface and optionally for a specific vendor ### Example @@ -27299,7 +27475,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_lldp_interface_id_neighbors_get_response import V1LldpInterfaceIdNeighborsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -27325,14 +27501,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 | + interface_id = 1234567891011 # int | 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_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_sites_site_id_circuits_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_lldp_interface_id_neighbors_get: %s\n" % e) ``` @@ -27343,11 +27519,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**| | + **interface_id** | **int**| | ### Return type -[**V1SitesSiteIdCircuitsGetResponse**](V1SitesSiteIdCircuitsGetResponse.md) +[**V1LldpInterfaceIdNeighborsGetResponse**](V1LldpInterfaceIdNeighborsGetResponse.md) ### Authorization @@ -27366,10 +27542,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_delete** -> v1_sites_site_id_delete(authorization, site_id) +# **v1_lldp_interface_id_summary_get** +> V1LldpInterfaceIdSummaryGetResponse v1_lldp_interface_id_summary_get(authorization, interface_id) -Delete a site +Get the summary of LLDP neighbors for an interface ### Example @@ -27377,6 +27553,7 @@ Delete a site ```python import graphiant_sdk +from graphiant_sdk.models.v1_lldp_interface_id_summary_get_response import V1LldpInterfaceIdSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -27402,12 +27579,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 | + interface_id = 1234567891011 # int | try: - api_instance.v1_sites_site_id_delete(authorization, site_id) + 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_sites_site_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_lldp_interface_id_summary_get: %s\n" % e) ``` @@ -27418,11 +27597,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**| | + **interface_id** | **int**| | ### Return type -void (empty response body) +[**V1LldpInterfaceIdSummaryGetResponse**](V1LldpInterfaceIdSummaryGetResponse.md) ### Authorization @@ -27431,20 +27610,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_sites_site_id_devices_get** -> V1SitesSiteIdDevicesGetResponse v1_sites_site_id_devices_get(authorization, site_id) +# **v1_lldp_interface_id_vendors_get** +> V1LldpInterfaceIdVendorsGetResponse v1_lldp_interface_id_vendors_get(authorization, interface_id) -Get Devices for the site +Get the list LLDP vendors for an interface ### Example @@ -27452,7 +27631,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_lldp_interface_id_vendors_get_response import V1LldpInterfaceIdVendorsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -27478,14 +27657,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 | + interface_id = 1234567891011 # 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_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_sites_site_id_devices_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_lldp_interface_id_vendors_get: %s\n" % e) ``` @@ -27496,11 +27675,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**| | + **interface_id** | **int**| | ### Return type -[**V1SitesSiteIdDevicesGetResponse**](V1SitesSiteIdDevicesGetResponse.md) +[**V1LldpInterfaceIdVendorsGetResponse**](V1LldpInterfaceIdVendorsGetResponse.md) ### Authorization @@ -27519,10 +27698,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_post** -> V1SitesSiteIdPostResponse v1_sites_site_id_post(authorization, site_id, v1_sites_site_id_post_request) - -Update a site +# **v1_logs_post** +> V1LogsPostResponse v1_logs_post(authorization, v1_logs_post_request) ### Example @@ -27530,8 +27707,8 @@ 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_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 @@ -27557,15 +27734,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_sites_site_id_post_request = graphiant_sdk.V1SitesSiteIdPostRequest() # V1SitesSiteIdPostRequest | + v1_logs_post_request = graphiant_sdk.V1LogsPostRequest() # V1LogsPostRequest | 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_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_sites_site_id_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_logs_post: %s\n" % e) ``` @@ -27576,12 +27752,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_sites_site_id_post_request** | [**V1SitesSiteIdPostRequest**](V1SitesSiteIdPostRequest.md)| | + **v1_logs_post_request** | [**V1LogsPostRequest**](V1LogsPostRequest.md)| | ### Return type -[**V1SitesSiteIdPostResponse**](V1SitesSiteIdPostResponse.md) +[**V1LogsPostResponse**](V1LogsPostResponse.md) ### Authorization @@ -27600,8 +27775,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_msp_managed_enterprise_contract_info_get** +> V1MspManagedEnterpriseContractInfoGetResponse v1_msp_managed_enterprise_contract_info_get(authorization) + +Managed enterprises under the MSP with contract and credit allocation details for the requested month ### Example @@ -27609,7 +27786,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_auto_upgrade_default_get_response import V1SoftwareAutoUpgradeDefaultGetResponse +from graphiant_sdk.models.v1_msp_managed_enterprise_contract_info_get_response import V1MspManagedEnterpriseContractInfoGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -27637,11 +27814,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer 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_msp_managed_enterprise_contract_info_get(authorization) + print("The response of DefaultApi->v1_msp_managed_enterprise_contract_info_get:\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_msp_managed_enterprise_contract_info_get: %s\n" % e) ``` @@ -27655,7 +27832,7 @@ Name | Type | Description | Notes ### Return type -[**V1SoftwareAutoUpgradeDefaultGetResponse**](V1SoftwareAutoUpgradeDefaultGetResponse.md) +[**V1MspManagedEnterpriseContractInfoGetResponse**](V1MspManagedEnterpriseContractInfoGetResponse.md) ### Authorization @@ -27674,8 +27851,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_nat_entries_device_id_get** +> V1NatEntriesDeviceIdGetResponse v1_nat_entries_device_id_get(authorization, device_id) + +Get the NAT entries for the device ### Example @@ -27683,7 +27862,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_nat_entries_device_id_get_response import V1NatEntriesDeviceIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -27709,12 +27888,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 | + device_id = 1234567891011 # int | try: - api_instance.v1_software_auto_upgrade_default_put(authorization, v1_software_auto_upgrade_default_put_request) + 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_software_auto_upgrade_default_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_nat_entries_device_id_get: %s\n" % e) ``` @@ -27725,11 +27906,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)| | + **device_id** | **int**| | ### Return type -void (empty response body) +[**V1NatEntriesDeviceIdGetResponse**](V1NatEntriesDeviceIdGetResponse.md) ### Authorization @@ -27737,19 +27918,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_nat_utilization_device_id_get** +> V1NatUtilizationDeviceIdGetResponse v1_nat_utilization_device_id_get(authorization, device_id) + +Get the NAT usage for the device ### Example @@ -27757,7 +27940,7 @@ 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_nat_utilization_device_id_get_response import V1NatUtilizationDeviceIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -27783,14 +27966,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 | + device_id = 1234567891011 # int | 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_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_software_gcsrelease_upload_notes_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_nat_utilization_device_id_get: %s\n" % e) ``` @@ -27801,11 +27984,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)| | + **device_id** | **int**| | ### Return type -**object** +[**V1NatUtilizationDeviceIdGetResponse**](V1NatUtilizationDeviceIdGetResponse.md) ### Authorization @@ -27813,7 +27996,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -27824,8 +28007,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_onboarding_cloudinit_delete** +> v1_onboarding_cloudinit_delete(authorization) + +Delete the onboarding token ### Example @@ -27833,7 +28018,6 @@ Name | Type | Description | Notes ```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 @@ -27859,15 +28043,11 @@ 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 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") - pprint(api_response) + api_instance.v1_onboarding_cloudinit_delete(authorization) except Exception as e: - print("Exception when calling DefaultApi->v1_software_releases_download_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_onboarding_cloudinit_delete: %s\n" % e) ``` @@ -27878,12 +28058,10 @@ 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 | ### Return type -[**V1SoftwareReleasesDownloadGetResponse**](V1SoftwareReleasesDownloadGetResponse.md) +void (empty response body) ### Authorization @@ -27892,18 +28070,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_software_releases_summary_get** -> V1SoftwareReleasesSummaryGetResponse v1_software_releases_summary_get(authorization) +# **v1_onboarding_cloudinit_get** +> V1OnboardingCloudinitGetResponse v1_onboarding_cloudinit_get(authorization) + +Get all the onboarding tokens ### Example @@ -27911,7 +28091,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_onboarding_cloudinit_get_response import V1OnboardingCloudinitGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -27939,11 +28119,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer 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_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_software_releases_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_onboarding_cloudinit_get: %s\n" % e) ``` @@ -27957,7 +28137,7 @@ Name | Type | Description | Notes ### Return type -[**V1SoftwareReleasesSummaryGetResponse**](V1SoftwareReleasesSummaryGetResponse.md) +[**V1OnboardingCloudinitGetResponse**](V1OnboardingCloudinitGetResponse.md) ### Authorization @@ -27976,10 +28156,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_rollouts_get** -> V1SoftwareRolloutsGetResponse v1_software_rollouts_get(authorization) +# **v1_onboarding_cloudinit_post** +> object v1_onboarding_cloudinit_post(authorization, v1_onboarding_cloudinit_post_request) -Returns all the configured upgrade rollouts +Create a onboarding token ### Example @@ -27987,7 +28167,7 @@ Returns all the configured upgrade rollouts ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_rollouts_get_response import V1SoftwareRolloutsGetResponse +from graphiant_sdk.models.v1_onboarding_cloudinit_post_request import V1OnboardingCloudinitPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -28013,13 +28193,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_onboarding_cloudinit_post_request = graphiant_sdk.V1OnboardingCloudinitPostRequest() # V1OnboardingCloudinitPostRequest | try: - api_response = api_instance.v1_software_rollouts_get(authorization) - print("The response of DefaultApi->v1_software_rollouts_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_software_rollouts_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_onboarding_cloudinit_post: %s\n" % e) ``` @@ -28030,10 +28211,11 @@ 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 -[**V1SoftwareRolloutsGetResponse**](V1SoftwareRolloutsGetResponse.md) +**object** ### Authorization @@ -28041,21 +28223,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_software_rollouts_id_delete** -> object v1_software_rollouts_id_delete(authorization, id) +# **v1_policy_applications_get** +> V1PolicyApplicationsGetResponse v1_policy_applications_get(authorization) -Delete given upgrade rollout +Get a list of builtin DPI applications ### Example @@ -28063,6 +28245,7 @@ Delete given upgrade rollout ```python import graphiant_sdk +from graphiant_sdk.models.v1_policy_applications_get_response import V1PolicyApplicationsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -28088,14 +28271,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 = 42 # int | Rollout identifier to delete. try: - api_response = api_instance.v1_software_rollouts_id_delete(authorization, id) - print("The response of DefaultApi->v1_software_rollouts_id_delete:\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_software_rollouts_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_applications_get: %s\n" % e) ``` @@ -28106,11 +28288,10 @@ 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 -**object** +[**V1PolicyApplicationsGetResponse**](V1PolicyApplicationsGetResponse.md) ### Authorization @@ -28129,10 +28310,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_rollouts_id_get** -> V1SoftwareRolloutsIdGetResponse v1_software_rollouts_id_get(authorization, id) +# **v1_policy_route_tag_sets_id_delete** +> V1PolicyRouteTagSetsIdDeleteResponse v1_policy_route_tag_sets_id_delete(authorization, id, level=level) -Returns details about given upgrade rollout +Create a new route-tag scoped to the enterprise ### Example @@ -28140,7 +28321,7 @@ Returns details about given upgrade rollout ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_rollouts_id_get_response import V1SoftwareRolloutsIdGetResponse +from graphiant_sdk.models.v1_policy_route_tag_sets_id_delete_response import V1PolicyRouteTagSetsIdDeleteResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -28166,14 +28347,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 = 42 # int | Rollout identifier to fetch. + id = 1234567891011 # int | + level = 123 # int | (optional) try: - api_response = api_instance.v1_software_rollouts_id_get(authorization, id) - print("The response of DefaultApi->v1_software_rollouts_id_get:\n") + 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_software_rollouts_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_route_tag_sets_id_delete: %s\n" % e) ``` @@ -28184,11 +28366,12 @@ 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 fetch. | + **id** | **int**| | + **level** | **int**| | [optional] ### Return type -[**V1SoftwareRolloutsIdGetResponse**](V1SoftwareRolloutsIdGetResponse.md) +[**V1PolicyRouteTagSetsIdDeleteResponse**](V1PolicyRouteTagSetsIdDeleteResponse.md) ### Authorization @@ -28207,10 +28390,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_rollouts_post** -> V1SoftwareRolloutsPostResponse v1_software_rollouts_post(authorization, v1_software_rollouts_post_request) +# **v1_policy_route_tag_sets_post** +> V1PolicyRouteTagSetsPostResponse v1_policy_route_tag_sets_post(authorization, v1_policy_route_tag_sets_post_request) -Create upgrade rollout and returns rollout identifier +Create a new route tag scoped to the enterprise ### Example @@ -28218,8 +28401,8 @@ Create upgrade rollout and returns rollout identifier ```python import graphiant_sdk -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_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 @@ -28245,14 +28428,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_post_request = graphiant_sdk.V1SoftwareRolloutsPostRequest() # V1SoftwareRolloutsPostRequest | + v1_policy_route_tag_sets_post_request = graphiant_sdk.V1PolicyRouteTagSetsPostRequest() # V1PolicyRouteTagSetsPostRequest | try: - api_response = api_instance.v1_software_rollouts_post(authorization, v1_software_rollouts_post_request) - print("The response of DefaultApi->v1_software_rollouts_post:\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_software_rollouts_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_route_tag_sets_post: %s\n" % e) ``` @@ -28263,11 +28446,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_post_request** | [**V1SoftwareRolloutsPostRequest**](V1SoftwareRolloutsPostRequest.md)| | + **v1_policy_route_tag_sets_post_request** | [**V1PolicyRouteTagSetsPostRequest**](V1PolicyRouteTagSetsPostRequest.md)| | ### Return type -[**V1SoftwareRolloutsPostResponse**](V1SoftwareRolloutsPostResponse.md) +[**V1PolicyRouteTagSetsPostResponse**](V1PolicyRouteTagSetsPostResponse.md) ### Authorization @@ -28286,10 +28469,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_rollouts_put** -> object v1_software_rollouts_put(authorization, v1_software_rollouts_put_request) +# **v1_policy_route_tag_sets_tag_detail_get** +> V1PolicyRouteTagSetsTagDetailGetResponse v1_policy_route_tag_sets_tag_detail_get(authorization) -Modify update rollout +Get all the route tags summary for the the enterprise ### Example @@ -28297,7 +28480,7 @@ Modify update rollout ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_rollouts_put_request import V1SoftwareRolloutsPutRequest +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 @@ -28323,14 +28506,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_software_rollouts_put_request = graphiant_sdk.V1SoftwareRolloutsPutRequest() # V1SoftwareRolloutsPutRequest | try: - api_response = api_instance.v1_software_rollouts_put(authorization, v1_software_rollouts_put_request) - print("The response of DefaultApi->v1_software_rollouts_put:\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_software_rollouts_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_route_tag_sets_tag_detail_get: %s\n" % e) ``` @@ -28341,11 +28523,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_software_rollouts_put_request** | [**V1SoftwareRolloutsPutRequest**](V1SoftwareRolloutsPutRequest.md)| | ### Return type -**object** +[**V1PolicyRouteTagSetsTagDetailGetResponse**](V1PolicyRouteTagSetsTagDetailGetResponse.md) ### Authorization @@ -28353,7 +28534,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -28364,10 +28545,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_rollouts_schedule_post** -> object v1_software_rollouts_schedule_post(authorization, v1_software_rollouts_schedule_post_request) +# **v1_policy_route_tag_sets_tags_get** +> V1PolicyRouteTagSetsTagsGetResponse v1_policy_route_tag_sets_tags_get(authorization) -Schedule rollout to upgrade now, later or user-triggered +Get all the route tags for the enterprise ### Example @@ -28375,7 +28556,7 @@ Schedule rollout to upgrade now, later or user-triggered ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_rollouts_schedule_post_request import V1SoftwareRolloutsSchedulePostRequest +from graphiant_sdk.models.v1_policy_route_tag_sets_tags_get_response import V1PolicyRouteTagSetsTagsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -28401,14 +28582,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_software_rollouts_schedule_post_request = graphiant_sdk.V1SoftwareRolloutsSchedulePostRequest() # V1SoftwareRolloutsSchedulePostRequest | try: - 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") + 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_software_rollouts_schedule_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_route_tag_sets_tags_get: %s\n" % e) ``` @@ -28419,11 +28599,10 @@ 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 -**object** +[**V1PolicyRouteTagSetsTagsGetResponse**](V1PolicyRouteTagSetsTagsGetResponse.md) ### Authorization @@ -28431,7 +28610,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -28442,8 +28621,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_running_details_get** -> V1SoftwareRunningDetailsGetResponse v1_software_running_details_get(authorization, running_version=running_version) +# **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 ### Example @@ -28451,7 +28632,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_running_details_get_response import V1SoftwareRunningDetailsGetResponse +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 @@ -28477,14 +28658,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 - running_version = 'example string' # str | (optional) try: - api_response = api_instance.v1_software_running_details_get(authorization, running_version=running_version) - print("The response of DefaultApi->v1_software_running_details_get:\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_software_running_details_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_policy_route_tag_sets_tags_summary_get: %s\n" % e) ``` @@ -28495,11 +28675,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **running_version** | **str**| | [optional] ### Return type -[**V1SoftwareRunningDetailsGetResponse**](V1SoftwareRunningDetailsGetResponse.md) +[**V1PolicyRouteTagSetsTagsSummaryGetResponse**](V1PolicyRouteTagSetsTagsSummaryGetResponse.md) ### Authorization @@ -28518,8 +28697,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_running_summary_get** -> V1SoftwareRunningSummaryGetResponse v1_software_running_summary_get(authorization) +# **v1_presharedkey_get** +> V1PresharedkeyGetResponse v1_presharedkey_get(authorization) + +Get all domain categories from the DPI engine ### Example @@ -28527,7 +28708,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_software_running_summary_get_response import V1SoftwareRunningSummaryGetResponse +from graphiant_sdk.models.v1_presharedkey_get_response import V1PresharedkeyGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -28555,11 +28736,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_response = api_instance.v1_software_running_summary_get(authorization) - print("The response of DefaultApi->v1_software_running_summary_get:\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_software_running_summary_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_presharedkey_get: %s\n" % e) ``` @@ -28573,7 +28754,7 @@ Name | Type | Description | Notes ### Return type -[**V1SoftwareRunningSummaryGetResponse**](V1SoftwareRunningSummaryGetResponse.md) +[**V1PresharedkeyGetResponse**](V1PresharedkeyGetResponse.md) ### Authorization @@ -28592,10 +28773,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_talkers_device_device_id_top_post** -> V1TalkersDeviceDeviceIdTopPostResponse v1_talkers_device_device_id_top_post(authorization, device_id, v1_talkers_device_device_id_top_post_request) +# **v1_pvif_id_delete** +> object v1_pvif_id_delete(authorization, id) -Get top talkers for a device +Delete a gateway Public VIF service ### Example @@ -28603,8 +28784,6 @@ Get top talkers for a device ```python import graphiant_sdk -from graphiant_sdk.models.v1_talkers_device_device_id_top_post_request import V1TalkersDeviceDeviceIdTopPostRequest -from graphiant_sdk.models.v1_talkers_device_device_id_top_post_response import V1TalkersDeviceDeviceIdTopPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -28630,15 +28809,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_talkers_device_device_id_top_post_request = graphiant_sdk.V1TalkersDeviceDeviceIdTopPostRequest() # V1TalkersDeviceDeviceIdTopPostRequest | + id = 1234567891011 # int | Producer service id try: - api_response = api_instance.v1_talkers_device_device_id_top_post(authorization, device_id, v1_talkers_device_device_id_top_post_request) - print("The response of DefaultApi->v1_talkers_device_device_id_top_post:\n") + api_response = api_instance.v1_pvif_id_delete(authorization, id) + print("The response of DefaultApi->v1_pvif_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_talkers_device_device_id_top_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_pvif_id_delete: %s\n" % e) ``` @@ -28649,12 +28827,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_talkers_device_device_id_top_post_request** | [**V1TalkersDeviceDeviceIdTopPostRequest**](V1TalkersDeviceDeviceIdTopPostRequest.md)| | + **id** | **int**| Producer service id | ### Return type -[**V1TalkersDeviceDeviceIdTopPostResponse**](V1TalkersDeviceDeviceIdTopPostResponse.md) +**object** ### Authorization @@ -28662,7 +28839,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -28673,10 +28850,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_talkers_site_site_id_top_post** -> V1TalkersSiteSiteIdTopPostResponse v1_talkers_site_site_id_top_post(authorization, site_id, v1_talkers_site_site_id_top_post_request) +# **v1_pvif_id_details_get** +> V1PvifIdDetailsGetResponse v1_pvif_id_details_get(authorization, id) -Get top talkers for a site +Get a gateway Public VIF service ### Example @@ -28684,8 +28861,7 @@ Get top talkers for a site ```python import graphiant_sdk -from graphiant_sdk.models.v1_talkers_site_site_id_top_post_request import V1TalkersSiteSiteIdTopPostRequest -from graphiant_sdk.models.v1_talkers_site_site_id_top_post_response import V1TalkersSiteSiteIdTopPostResponse +from graphiant_sdk.models.v1_pvif_id_details_get_response import V1PvifIdDetailsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -28711,15 +28887,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_talkers_site_site_id_top_post_request = graphiant_sdk.V1TalkersSiteSiteIdTopPostRequest() # V1TalkersSiteSiteIdTopPostRequest | + id = 1234567891011 # int | Producer service id try: - api_response = api_instance.v1_talkers_site_site_id_top_post(authorization, site_id, v1_talkers_site_site_id_top_post_request) - print("The response of DefaultApi->v1_talkers_site_site_id_top_post:\n") + api_response = api_instance.v1_pvif_id_details_get(authorization, id) + print("The response of DefaultApi->v1_pvif_id_details_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_talkers_site_site_id_top_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_pvif_id_details_get: %s\n" % e) ``` @@ -28730,12 +28905,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_talkers_site_site_id_top_post_request** | [**V1TalkersSiteSiteIdTopPostRequest**](V1TalkersSiteSiteIdTopPostRequest.md)| | + **id** | **int**| Producer service id | ### Return type -[**V1TalkersSiteSiteIdTopPostResponse**](V1TalkersSiteSiteIdTopPostResponse.md) +[**V1PvifIdDetailsGetResponse**](V1PvifIdDetailsGetResponse.md) ### Authorization @@ -28743,7 +28917,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -28754,10 +28928,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_temp_password_put** -> object v1_temp_password_put(authorization, v1_temp_password_put_request) +# **v1_pvif_id_put** +> V1PvifIdPutResponse v1_pvif_id_put(authorization, id, v1_pvif_id_put_request) -Generate and send temporary passwords to multiple emails for B2B service access. +Update a gateway Public VIF service ### Example @@ -28765,7 +28939,8 @@ Generate and send temporary passwords to multiple emails for B2B service access. ```python import graphiant_sdk -from graphiant_sdk.models.v1_temp_password_put_request import V1TempPasswordPutRequest +from graphiant_sdk.models.v1_pvif_id_put_request import V1PvifIdPutRequest +from graphiant_sdk.models.v1_pvif_id_put_response import V1PvifIdPutResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -28791,14 +28966,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 - v1_temp_password_put_request = graphiant_sdk.V1TempPasswordPutRequest() # V1TempPasswordPutRequest | + id = 1234567891011 # int | Producer service id + v1_pvif_id_put_request = graphiant_sdk.V1PvifIdPutRequest() # V1PvifIdPutRequest | try: - api_response = api_instance.v1_temp_password_put(authorization, v1_temp_password_put_request) - print("The response of DefaultApi->v1_temp_password_put:\n") + api_response = api_instance.v1_pvif_id_put(authorization, id, v1_pvif_id_put_request) + print("The response of DefaultApi->v1_pvif_id_put:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_temp_password_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_pvif_id_put: %s\n" % e) ``` @@ -28809,11 +28985,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_temp_password_put_request** | [**V1TempPasswordPutRequest**](V1TempPasswordPutRequest.md)| | + **id** | **int**| Producer service id | + **v1_pvif_id_put_request** | [**V1PvifIdPutRequest**](V1PvifIdPutRequest.md)| | ### Return type -**object** +[**V1PvifIdPutResponse**](V1PvifIdPutResponse.md) ### Authorization @@ -28828,12 +29005,14 @@ Name | Type | Description | Notes | 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_troubleshooting_device_device_id_post** -> V1TroubleshootingDeviceDeviceIdPostResponse v1_troubleshooting_device_device_id_post(authorization, device_id, v1_troubleshooting_device_device_id_post_request) +# **v1_pvif_post** +> V1PvifPostResponse v1_pvif_post(authorization, v1_pvif_post_request) + +Create a gateway Public VIF service ### Example @@ -28841,8 +29020,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_troubleshooting_device_device_id_post_request import V1TroubleshootingDeviceDeviceIdPostRequest -from graphiant_sdk.models.v1_troubleshooting_device_device_id_post_response import V1TroubleshootingDeviceDeviceIdPostResponse +from graphiant_sdk.models.v1_pvif_post_request import V1PvifPostRequest +from graphiant_sdk.models.v1_pvif_post_response import V1PvifPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -28868,15 +29047,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_troubleshooting_device_device_id_post_request = graphiant_sdk.V1TroubleshootingDeviceDeviceIdPostRequest() # V1TroubleshootingDeviceDeviceIdPostRequest | + v1_pvif_post_request = graphiant_sdk.V1PvifPostRequest() # V1PvifPostRequest | try: - api_response = api_instance.v1_troubleshooting_device_device_id_post(authorization, device_id, v1_troubleshooting_device_device_id_post_request) - print("The response of DefaultApi->v1_troubleshooting_device_device_id_post:\n") + api_response = api_instance.v1_pvif_post(authorization, v1_pvif_post_request) + print("The response of DefaultApi->v1_pvif_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_troubleshooting_device_device_id_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_pvif_post: %s\n" % e) ``` @@ -28887,12 +29065,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_troubleshooting_device_device_id_post_request** | [**V1TroubleshootingDeviceDeviceIdPostRequest**](V1TroubleshootingDeviceDeviceIdPostRequest.md)| | + **v1_pvif_post_request** | [**V1PvifPostRequest**](V1PvifPostRequest.md)| | ### Return type -[**V1TroubleshootingDeviceDeviceIdPostResponse**](V1TroubleshootingDeviceDeviceIdPostResponse.md) +[**V1PvifPostResponse**](V1PvifPostResponse.md) ### Authorization @@ -28911,8 +29088,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_troubleshooting_enterprise_post** -> V1TroubleshootingEnterprisePostResponse v1_troubleshooting_enterprise_post(authorization, v1_troubleshooting_enterprise_post_request) +# **v1_pvif_summary_get** +> V1PvifSummaryGetResponse v1_pvif_summary_get(authorization) + +List gateway Public VIF services ### Example @@ -28920,8 +29099,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_troubleshooting_enterprise_post_request import V1TroubleshootingEnterprisePostRequest -from graphiant_sdk.models.v1_troubleshooting_enterprise_post_response import V1TroubleshootingEnterprisePostResponse +from graphiant_sdk.models.v1_pvif_summary_get_response import V1PvifSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -28947,14 +29125,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_troubleshooting_enterprise_post_request = graphiant_sdk.V1TroubleshootingEnterprisePostRequest() # V1TroubleshootingEnterprisePostRequest | try: - api_response = api_instance.v1_troubleshooting_enterprise_post(authorization, v1_troubleshooting_enterprise_post_request) - print("The response of DefaultApi->v1_troubleshooting_enterprise_post:\n") + api_response = api_instance.v1_pvif_summary_get(authorization) + print("The response of DefaultApi->v1_pvif_summary_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_troubleshooting_enterprise_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_pvif_summary_get: %s\n" % e) ``` @@ -28965,11 +29142,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_troubleshooting_enterprise_post_request** | [**V1TroubleshootingEnterprisePostRequest**](V1TroubleshootingEnterprisePostRequest.md)| | ### Return type -[**V1TroubleshootingEnterprisePostResponse**](V1TroubleshootingEnterprisePostResponse.md) +[**V1PvifSummaryGetResponse**](V1PvifSummaryGetResponse.md) ### Authorization @@ -28977,7 +29153,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -28988,8 +29164,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_troubleshooting_filter_get** -> V1TroubleshootingFilterGetResponse v1_troubleshooting_filter_get(authorization) +# **v1_qos_circuit_profiles_get** +> V1QosCircuitProfilesGetResponse v1_qos_circuit_profiles_get(authorization) + +Returns a list of QoS profiles for circuits with associated queues & attributes ### Example @@ -28997,7 +29175,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_troubleshooting_filter_get_response import V1TroubleshootingFilterGetResponse +from graphiant_sdk.models.v1_qos_circuit_profiles_get_response import V1QosCircuitProfilesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -29025,11 +29203,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_response = api_instance.v1_troubleshooting_filter_get(authorization) - print("The response of DefaultApi->v1_troubleshooting_filter_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_troubleshooting_filter_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_qos_circuit_profiles_get: %s\n" % e) ``` @@ -29043,7 +29221,7 @@ Name | Type | Description | Notes ### Return type -[**V1TroubleshootingFilterGetResponse**](V1TroubleshootingFilterGetResponse.md) +[**V1QosCircuitProfilesGetResponse**](V1QosCircuitProfilesGetResponse.md) ### Authorization @@ -29062,8 +29240,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_troubleshooting_site_connectivity_status_get** -> V1TroubleshootingSiteConnectivityStatusGetResponse v1_troubleshooting_site_connectivity_status_get(authorization) +# **v1_regions_get** +> V1RegionsGetResponse v1_regions_get(authorization) + +Get regions used for the current enterprise ### Example @@ -29071,7 +29251,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_troubleshooting_site_connectivity_status_get_response import V1TroubleshootingSiteConnectivityStatusGetResponse +from graphiant_sdk.models.v1_regions_get_response import V1RegionsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -29099,11 +29279,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_response = api_instance.v1_troubleshooting_site_connectivity_status_get(authorization) - print("The response of DefaultApi->v1_troubleshooting_site_connectivity_status_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_troubleshooting_site_connectivity_status_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_regions_get: %s\n" % e) ``` @@ -29117,7 +29297,7 @@ Name | Type | Description | Notes ### Return type -[**V1TroubleshootingSiteConnectivityStatusGetResponse**](V1TroubleshootingSiteConnectivityStatusGetResponse.md) +[**V1RegionsGetResponse**](V1RegionsGetResponse.md) ### Authorization @@ -29136,8 +29316,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_troubleshooting_site_site_id_get** -> V1TroubleshootingSiteSiteIdGetResponse v1_troubleshooting_site_site_id_get(authorization, site_id) +# **v1_regions_region_id_gateways_get** +> V1RegionsRegionIdGatewaysGetResponse v1_regions_region_id_gateways_get(authorization, region_id, storage_provider) + +List gateway appliances in a region with at least one LAN interface for the given storage provider ### Example @@ -29145,7 +29327,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_troubleshooting_site_site_id_get_response import V1TroubleshootingSiteSiteIdGetResponse +from graphiant_sdk.models.v1_regions_region_id_gateways_get_response import V1RegionsRegionIdGatewaysGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -29171,14 +29353,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 | + region_id = 123 # int | Graphiant region id + storage_provider = 'ENUM_VALUE' # str | Storage provider; only gateways with a LAN interface for this provider are returned try: - api_response = api_instance.v1_troubleshooting_site_site_id_get(authorization, site_id) - print("The response of DefaultApi->v1_troubleshooting_site_site_id_get:\n") + api_response = api_instance.v1_regions_region_id_gateways_get(authorization, region_id, storage_provider) + print("The response of DefaultApi->v1_regions_region_id_gateways_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_troubleshooting_site_site_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_regions_region_id_gateways_get: %s\n" % e) ``` @@ -29189,11 +29372,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**| | + **region_id** | **int**| Graphiant region id | + **storage_provider** | **str**| Storage provider; only gateways with a LAN interface for this provider are returned | ### Return type -[**V1TroubleshootingSiteSiteIdGetResponse**](V1TroubleshootingSiteSiteIdGetResponse.md) +[**V1RegionsRegionIdGatewaysGetResponse**](V1RegionsRegionIdGatewaysGetResponse.md) ### Authorization @@ -29212,8 +29396,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_troubleshooting_top_sites_by_alerts_post** -> V1TroubleshootingTopSitesByAlertsPostResponse v1_troubleshooting_top_sites_by_alerts_post(authorization, v1_troubleshooting_top_sites_by_alerts_post_request) +# **v1_search_get** +> V1SearchGetResponse v1_search_get(authorization, max_results=max_results, search=search) ### Example @@ -29221,8 +29405,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v1_troubleshooting_top_sites_by_alerts_post_request import V1TroubleshootingTopSitesByAlertsPostRequest -from graphiant_sdk.models.v1_troubleshooting_top_sites_by_alerts_post_response import V1TroubleshootingTopSitesByAlertsPostResponse +from graphiant_sdk.models.v1_search_get_response import V1SearchGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -29248,14 +29431,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 - v1_troubleshooting_top_sites_by_alerts_post_request = graphiant_sdk.V1TroubleshootingTopSitesByAlertsPostRequest() # V1TroubleshootingTopSitesByAlertsPostRequest | + max_results = 123 # int | (optional) + search = 'example string' # str | (optional) try: - api_response = api_instance.v1_troubleshooting_top_sites_by_alerts_post(authorization, v1_troubleshooting_top_sites_by_alerts_post_request) - print("The response of DefaultApi->v1_troubleshooting_top_sites_by_alerts_post:\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_troubleshooting_top_sites_by_alerts_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_search_get: %s\n" % e) ``` @@ -29266,11 +29450,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_troubleshooting_top_sites_by_alerts_post_request** | [**V1TroubleshootingTopSitesByAlertsPostRequest**](V1TroubleshootingTopSitesByAlertsPostRequest.md)| | + **max_results** | **int**| | [optional] + **search** | **str**| | [optional] ### Return type -[**V1TroubleshootingTopSitesByAlertsPostResponse**](V1TroubleshootingTopSitesByAlertsPostResponse.md) +[**V1SearchGetResponse**](V1SearchGetResponse.md) ### Authorization @@ -29278,7 +29463,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -29289,10 +29474,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_users_email_password_patch** -> v1_users_email_password_patch(email, token, v1_users_email_password_patch_request) +# **v1_site_details_sitelists_post** +> V1SiteDetailsSitelistsPostResponse v1_site_details_sitelists_post(authorization, v1_site_details_sitelists_post_request) -Change password for a user using email and token +Get a list of site list references for a site ### Example @@ -29300,7 +29485,8 @@ Change password for a user using email and token ```python import graphiant_sdk -from graphiant_sdk.models.v1_users_email_password_patch_request import V1UsersEmailPasswordPatchRequest +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 @@ -29325,14 +29511,15 @@ configuration.api_key['jwtAuth'] = os.environ["API_KEY"] with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) - email = 'user@example.com' # str | User email address - token = 'verification-token-12345' # str | Password reset token - v1_users_email_password_patch_request = graphiant_sdk.V1UsersEmailPasswordPatchRequest() # V1UsersEmailPasswordPatchRequest | + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + v1_site_details_sitelists_post_request = graphiant_sdk.V1SiteDetailsSitelistsPostRequest() # V1SiteDetailsSitelistsPostRequest | try: - api_instance.v1_users_email_password_patch(email, token, v1_users_email_password_patch_request) + 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_users_email_password_patch: %s\n" % e) + print("Exception when calling DefaultApi->v1_site_details_sitelists_post: %s\n" % e) ``` @@ -29342,13 +29529,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **str**| User email address | - **token** | **str**| Password reset token | - **v1_users_email_password_patch_request** | [**V1UsersEmailPasswordPatchRequest**](V1UsersEmailPasswordPatchRequest.md)| | + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_site_details_sitelists_post_request** | [**V1SiteDetailsSitelistsPostRequest**](V1SiteDetailsSitelistsPostRequest.md)| | ### Return type -void (empty response body) +[**V1SiteDetailsSitelistsPostResponse**](V1SiteDetailsSitelistsPostResponse.md) ### Authorization @@ -29357,23 +29543,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** | Password changed successfully | - | -**400** | Bad request - Invalid input | - | -**403** | Forbidden - Invalid token | - | -**500** | Internal server error | - | +**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_users_email_recovery_get** -> v1_users_email_recovery_get(email) +# **v1_site_id_details_interfaces_get** +> V1SiteIdDetailsInterfacesGetResponse v1_site_id_details_interfaces_get(authorization, id) -Send password recovery email to user +Get a list of a site's interfaces, loopback listed first ### Example @@ -29381,6 +29564,7 @@ Send password recovery email to user ```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 @@ -29405,12 +29589,15 @@ configuration.api_key['jwtAuth'] = os.environ["API_KEY"] with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) - email = 'user@example.com' # str | User email address + authorization = 'authorization_example' # str | Bearer token. Format: Bearer + id = 1234567891011 # int | try: - api_instance.v1_users_email_recovery_get(email) + 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_users_email_recovery_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_site_id_details_interfaces_get: %s\n" % e) ``` @@ -29420,11 +29607,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **str**| User email address | + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| | ### Return type -void (empty response body) +[**V1SiteIdDetailsInterfacesGetResponse**](V1SiteIdDetailsInterfacesGetResponse.md) ### Authorization @@ -29433,22 +29621,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 | |-------------|-------------|------------------| -**200** | Recovery email sent successfully | - | -**400** | Bad request - Invalid email | - | -**500** | Internal server error | - | +**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_users_email_verified_patch** -> v1_users_email_verified_patch(email, token) +# **v1_sites_details_get** +> V1SitesDetailsGetResponse v1_sites_details_get(authorization) -Verify user email using verification token +Get a list of sites with aggregated values and site wide status ### Example @@ -29456,6 +29642,7 @@ Verify user email using verification token ```python import graphiant_sdk +from graphiant_sdk.models.v1_sites_details_get_response import V1SitesDetailsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -29480,13 +29667,14 @@ configuration.api_key['jwtAuth'] = os.environ["API_KEY"] with graphiant_sdk.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = graphiant_sdk.DefaultApi(api_client) - email = 'user@example.com' # str | User email address - token = 'verification-token-12345' # str | Email verification token + authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_instance.v1_users_email_verified_patch(email, token) + 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_users_email_verified_patch: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_details_get: %s\n" % e) ``` @@ -29496,12 +29684,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **email** | **str**| User email address | - **token** | **str**| Email verification token | + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | ### Return type -void (empty response body) +[**V1SitesDetailsGetResponse**](V1SitesDetailsGetResponse.md) ### Authorization @@ -29510,23 +29697,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** | User email verified successfully | - | -**400** | Bad request - Invalid input | - | -**403** | Forbidden - Invalid token | - | -**500** | Internal server error | - | +**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_users_get** -> V1UsersGetResponse v1_users_get(authorization, id=id) +# **v1_sites_get** +> V1SitesGetResponse v1_sites_get(authorization) -Get user information by user IDs with detailed profile data. +Get sites for the current enterprise ### Example @@ -29534,7 +29718,7 @@ Get user information by user IDs with detailed profile data. ```python import graphiant_sdk -from graphiant_sdk.models.v1_users_get_response import V1UsersGetResponse +from graphiant_sdk.models.v1_sites_get_response import V1SitesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -29560,14 +29744,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 | (optional) try: - api_response = api_instance.v1_users_get(authorization, id=id) - print("The response of DefaultApi->v1_users_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_users_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_get: %s\n" % e) ``` @@ -29578,11 +29761,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| | [optional] ### Return type -[**V1UsersGetResponse**](V1UsersGetResponse.md) +[**V1SitesGetResponse**](V1SitesGetResponse.md) ### Authorization @@ -29601,10 +29783,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_users_id_delete** -> v1_users_id_delete(authorization, id) +# **v1_sites_map_details_get** +> V1SitesMapDetailsGetResponse v1_sites_map_details_get(authorization, lan_segment_ids=lan_segment_ids, site_ids=site_ids, site_list_ids=site_list_ids) -Delete user account. +Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site ### Example @@ -29612,6 +29794,7 @@ Delete user account. ```python import graphiant_sdk +from graphiant_sdk.models.v1_sites_map_details_get_response import V1SitesMapDetailsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -29637,12 +29820,16 @@ 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 | + lan_segment_ids = [[0]] # List[int] | (optional) + site_ids = [[0]] # List[int] | (optional) + site_list_ids = [[0]] # List[int] | (optional) try: - api_instance.v1_users_id_delete(authorization, id) + api_response = api_instance.v1_sites_map_details_get(authorization, lan_segment_ids=lan_segment_ids, site_ids=site_ids, site_list_ids=site_list_ids) + print("The response of DefaultApi->v1_sites_map_details_get:\n") + pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v1_users_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_map_details_get: %s\n" % e) ``` @@ -29653,11 +29840,13 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| | + **lan_segment_ids** | [**List[int]**](int.md)| | [optional] + **site_ids** | [**List[int]**](int.md)| | [optional] + **site_list_ids** | [**List[int]**](int.md)| | [optional] ### Return type -void (empty response body) +[**V1SitesMapDetailsGetResponse**](V1SitesMapDetailsGetResponse.md) ### Authorization @@ -29666,20 +29855,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_users_id_enterprises_get** -> V1UsersIdEnterprisesGetResponse v1_users_id_enterprises_get(authorization, id) +# **v1_sites_post** +> V1SitesPostResponse v1_sites_post(authorization, v1_sites_post_request) -Get all enterprises a specific user can access. +Create an enterprise site ### Example @@ -29687,7 +29876,8 @@ Get all enterprises a specific user can access. ```python import graphiant_sdk -from graphiant_sdk.models.v1_users_id_enterprises_get_response import V1UsersIdEnterprisesGetResponse +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 @@ -29713,14 +29903,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 = 'example string' # str | userId + v1_sites_post_request = graphiant_sdk.V1SitesPostRequest() # V1SitesPostRequest | try: - api_response = api_instance.v1_users_id_enterprises_get(authorization, id) - print("The response of DefaultApi->v1_users_id_enterprises_get:\n") + 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_users_id_enterprises_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_post: %s\n" % e) ``` @@ -29731,11 +29921,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| userId | + **v1_sites_post_request** | [**V1SitesPostRequest**](V1SitesPostRequest.md)| | ### Return type -[**V1UsersIdEnterprisesGetResponse**](V1UsersIdEnterprisesGetResponse.md) +[**V1SitesPostResponse**](V1SitesPostResponse.md) ### Authorization @@ -29743,7 +29933,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -29754,10 +29944,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_users_id_groups_enterprises_get** -> V1UsersIdGroupsEnterprisesGetResponse v1_users_id_groups_enterprises_get(authorization, id) +# **v1_sites_site_id_circuits_get** +> V1SitesSiteIdCircuitsGetResponse v1_sites_site_id_circuits_get(authorization, site_id) -Get enterprise-specific groups for a user. +Get Circuits for the site ### Example @@ -29765,7 +29955,7 @@ Get enterprise-specific groups for a user. ```python import graphiant_sdk -from graphiant_sdk.models.v1_users_id_groups_enterprises_get_response import V1UsersIdGroupsEnterprisesGetResponse +from graphiant_sdk.models.v1_sites_site_id_circuits_get_response import V1SitesSiteIdCircuitsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -29791,14 +29981,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 = 'example string' # str | userId + site_id = 1234567891011 # int | try: - api_response = api_instance.v1_users_id_groups_enterprises_get(authorization, id) - print("The response of DefaultApi->v1_users_id_groups_enterprises_get:\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_users_id_groups_enterprises_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_site_id_circuits_get: %s\n" % e) ``` @@ -29809,11 +29999,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| userId | + **site_id** | **int**| | ### Return type -[**V1UsersIdGroupsEnterprisesGetResponse**](V1UsersIdGroupsEnterprisesGetResponse.md) +[**V1SitesSiteIdCircuitsGetResponse**](V1SitesSiteIdCircuitsGetResponse.md) ### Authorization @@ -29832,10 +30022,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_users_id_groups_get** -> V1UsersIdGroupsGetResponse v1_users_id_groups_get(authorization, id) +# **v1_sites_site_id_delete** +> v1_sites_site_id_delete(authorization, site_id) -Get all groups that a specific user belongs to. +Delete a site ### Example @@ -29843,7 +30033,6 @@ Get all groups that a specific user belongs to. ```python import graphiant_sdk -from graphiant_sdk.models.v1_users_id_groups_get_response import V1UsersIdGroupsGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -29869,14 +30058,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 | userId + site_id = 1234567891011 # int | try: - api_response = api_instance.v1_users_id_groups_get(authorization, id) - print("The response of DefaultApi->v1_users_id_groups_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_users_id_groups_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_site_id_delete: %s\n" % e) ``` @@ -29887,11 +30074,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| userId | + **site_id** | **int**| | ### Return type -[**V1UsersIdGroupsGetResponse**](V1UsersIdGroupsGetResponse.md) +void (empty response body) ### Authorization @@ -29900,20 +30087,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_users_id_groups_root_get** -> V1UsersIdGroupsRootGetResponse v1_users_id_groups_root_get(authorization, id) +# **v1_sites_site_id_devices_get** +> V1SitesSiteIdDevicesGetResponse v1_sites_site_id_devices_get(authorization, site_id) -Get root-level groups for a user. +Get Devices for the site ### Example @@ -29921,7 +30108,7 @@ Get root-level groups for a user. ```python import graphiant_sdk -from graphiant_sdk.models.v1_users_id_groups_root_get_response import V1UsersIdGroupsRootGetResponse +from graphiant_sdk.models.v1_sites_site_id_devices_get_response import V1SitesSiteIdDevicesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -29947,14 +30134,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 = 'example string' # str | userId + site_id = 12345678910 # int | try: - api_response = api_instance.v1_users_id_groups_root_get(authorization, id) - print("The response of DefaultApi->v1_users_id_groups_root_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_users_id_groups_root_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_site_id_devices_get: %s\n" % e) ``` @@ -29965,11 +30152,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| userId | + **site_id** | **int**| | ### Return type -[**V1UsersIdGroupsRootGetResponse**](V1UsersIdGroupsRootGetResponse.md) +[**V1SitesSiteIdDevicesGetResponse**](V1SitesSiteIdDevicesGetResponse.md) ### Authorization @@ -29988,10 +30175,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_users_id_verify_patch** -> v1_users_id_verify_patch(authorization, id, body) +# **v1_sites_site_id_post** +> V1SitesSiteIdPostResponse v1_sites_site_id_post(authorization, site_id, v1_sites_site_id_post_request) -Resend account verification email to user. +Update a site ### Example @@ -29999,6 +30186,8 @@ Resend account verification email to user. ```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.rest import ApiException from pprint import pprint @@ -30024,13 +30213,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 = 'example string' # str | - body = None # object | + site_id = 1234567891011 # int | + v1_sites_site_id_post_request = graphiant_sdk.V1SitesSiteIdPostRequest() # V1SitesSiteIdPostRequest | try: - api_instance.v1_users_id_verify_patch(authorization, id, body) + 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_users_id_verify_patch: %s\n" % e) + print("Exception when calling DefaultApi->v1_sites_site_id_post: %s\n" % e) ``` @@ -30041,12 +30232,12 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **id** | **str**| | - **body** | **object**| | + **site_id** | **int**| | + **v1_sites_site_id_post_request** | [**V1SitesSiteIdPostRequest**](V1SitesSiteIdPostRequest.md)| | ### Return type -void (empty response body) +[**V1SitesSiteIdPostResponse**](V1SitesSiteIdPostResponse.md) ### Authorization @@ -30055,20 +30246,18 @@ 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_users_passwords_expire_post** -> V1UsersPasswordsExpirePostResponse v1_users_passwords_expire_post(authorization, v1_users_passwords_expire_post_request) - -Expire passwords for multiple users and send password reset emails (Graphiant cloud only). +# **v1_software_auto_upgrade_default_get** +> V1SoftwareAutoUpgradeDefaultGetResponse v1_software_auto_upgrade_default_get(authorization) ### Example @@ -30076,8 +30265,7 @@ Expire passwords for multiple users and send password reset emails (Graphiant cl ```python import graphiant_sdk -from graphiant_sdk.models.v1_users_passwords_expire_post_request import V1UsersPasswordsExpirePostRequest -from graphiant_sdk.models.v1_users_passwords_expire_post_response import V1UsersPasswordsExpirePostResponse +from graphiant_sdk.models.v1_software_auto_upgrade_default_get_response import V1SoftwareAutoUpgradeDefaultGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -30103,14 +30291,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_users_passwords_expire_post_request = graphiant_sdk.V1UsersPasswordsExpirePostRequest() # V1UsersPasswordsExpirePostRequest | try: - api_response = api_instance.v1_users_passwords_expire_post(authorization, v1_users_passwords_expire_post_request) - print("The response of DefaultApi->v1_users_passwords_expire_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_users_passwords_expire_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_auto_upgrade_default_get: %s\n" % e) ``` @@ -30121,11 +30308,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_users_passwords_expire_post_request** | [**V1UsersPasswordsExpirePostRequest**](V1UsersPasswordsExpirePostRequest.md)| | ### Return type -[**V1UsersPasswordsExpirePostResponse**](V1UsersPasswordsExpirePostResponse.md) +[**V1SoftwareAutoUpgradeDefaultGetResponse**](V1SoftwareAutoUpgradeDefaultGetResponse.md) ### Authorization @@ -30133,7 +30319,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -30144,10 +30330,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_users_put** -> v1_users_put(authorization, v1_users_put_request) - -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. +# **v1_software_auto_upgrade_default_put** +> v1_software_auto_upgrade_default_put(authorization, v1_software_auto_upgrade_default_put_request) ### Example @@ -30155,7 +30339,7 @@ Create a new user account with profile information. Assigns to specified group o ```python import graphiant_sdk -from graphiant_sdk.models.v1_users_put_request import V1UsersPutRequest +from graphiant_sdk.models.v1_software_auto_upgrade_default_put_request import V1SoftwareAutoUpgradeDefaultPutRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -30181,12 +30365,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 - v1_users_put_request = graphiant_sdk.V1UsersPutRequest() # V1UsersPutRequest | + v1_software_auto_upgrade_default_put_request = graphiant_sdk.V1SoftwareAutoUpgradeDefaultPutRequest() # V1SoftwareAutoUpgradeDefaultPutRequest | try: - api_instance.v1_users_put(authorization, v1_users_put_request) + 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_users_put: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_auto_upgrade_default_put: %s\n" % e) ``` @@ -30197,7 +30381,7 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_users_put_request** | [**V1UsersPutRequest**](V1UsersPutRequest.md)| | + **v1_software_auto_upgrade_default_put_request** | [**V1SoftwareAutoUpgradeDefaultPutRequest**](V1SoftwareAutoUpgradeDefaultPutRequest.md)| | ### Return type @@ -30220,10 +30404,8 @@ 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_version_post** -> V1VersionPostResponse v1_version_post(authorization, v1_version_post_request) - -Update device config version +# **v1_software_gcsrelease_upload_notes_post** +> object v1_software_gcsrelease_upload_notes_post(authorization, v1_software_gcsrelease_upload_notes_post_request) ### Example @@ -30231,8 +30413,7 @@ Update device config version ```python import graphiant_sdk -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_software_gcsrelease_upload_notes_post_request import V1SoftwareGcsreleaseUploadNotesPostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -30258,14 +30439,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_version_post_request = graphiant_sdk.V1VersionPostRequest() # V1VersionPostRequest | + v1_software_gcsrelease_upload_notes_post_request = graphiant_sdk.V1SoftwareGcsreleaseUploadNotesPostRequest() # V1SoftwareGcsreleaseUploadNotesPostRequest | try: - api_response = api_instance.v1_version_post(authorization, v1_version_post_request) - print("The response of DefaultApi->v1_version_post:\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_version_post: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_gcsrelease_upload_notes_post: %s\n" % e) ``` @@ -30276,11 +30457,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v1_version_post_request** | [**V1VersionPostRequest**](V1VersionPostRequest.md)| | + **v1_software_gcsrelease_upload_notes_post_request** | [**V1SoftwareGcsreleaseUploadNotesPostRequest**](V1SoftwareGcsreleaseUploadNotesPostRequest.md)| | ### Return type -[**V1VersionPostResponse**](V1VersionPostResponse.md) +**object** ### Authorization @@ -30299,10 +30480,86 @@ 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_zones_get** -> V1ZonesGetResponse v1_zones_get(authorization) +# **v1_software_releases_download_get** +> V1SoftwareReleasesDownloadGetResponse v1_software_releases_download_get(authorization, image_ext, version) -Get Zones for the current enterprise +### Example + +* Api Key Authentication (jwtAuth): + +```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 + +# 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 + image_ext = 'qcow2' # str | GNOS Image type (qcow2 or ova) + version = '9999.202406130322' # str | GNOS Image version + + 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") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_software_releases_download_get: %s\n" % e) +``` + + + +### Parameters + + +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 | + +### Return type + +[**V1SoftwareReleasesDownloadGetResponse**](V1SoftwareReleasesDownloadGetResponse.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_software_releases_summary_get** +> V1SoftwareReleasesSummaryGetResponse v1_software_releases_summary_get(authorization) ### Example @@ -30310,7 +30567,7 @@ Get Zones for the current enterprise ```python import graphiant_sdk -from graphiant_sdk.models.v1_zones_get_response import V1ZonesGetResponse +from graphiant_sdk.models.v1_software_releases_summary_get_response import V1SoftwareReleasesSummaryGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -30338,11 +30595,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_response = api_instance.v1_zones_get(authorization) - print("The response of DefaultApi->v1_zones_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_zones_get: %s\n" % e) + print("Exception when calling DefaultApi->v1_software_releases_summary_get: %s\n" % e) ``` @@ -30356,7 +30613,7 @@ Name | Type | Description | Notes ### Return type -[**V1ZonesGetResponse**](V1ZonesGetResponse.md) +[**V1SoftwareReleasesSummaryGetResponse**](V1SoftwareReleasesSummaryGetResponse.md) ### Authorization @@ -30375,10 +30632,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_ztagent_bindings_get** -> V1ZtagentBindingsGetResponse v1_ztagent_bindings_get(authorization, enterprise_id=enterprise_id) +# **v1_software_rollouts_get** +> V1SoftwareRolloutsGetResponse v1_software_rollouts_get(authorization) -Return the ZTAgent integration binding for an enterprise. +Returns all the configured upgrade rollouts ### Example @@ -30386,7 +30643,2502 @@ Return the ZTAgent integration binding for an enterprise. ```python import graphiant_sdk -from graphiant_sdk.models.v1_ztagent_bindings_get_response import V1ZtagentBindingsGetResponse +from graphiant_sdk.models.v1_software_rollouts_get_response import V1SoftwareRolloutsGetResponse +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_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_software_rollouts_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + +### Return type + +[**V1SoftwareRolloutsGetResponse**](V1SoftwareRolloutsGetResponse.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_software_rollouts_id_delete** +> object v1_software_rollouts_id_delete(authorization, id) + +Delete given upgrade rollout + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +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 = 42 # int | Rollout identifier to delete. + + try: + 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_rollouts_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| Rollout identifier to delete. | + +### Return type + +**object** + +### 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_software_rollouts_id_get** +> V1SoftwareRolloutsIdGetResponse v1_software_rollouts_id_get(authorization, id) + +Returns details about given upgrade rollout + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_software_rollouts_id_get_response import V1SoftwareRolloutsIdGetResponse +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 = 42 # int | Rollout identifier to fetch. + + try: + 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_rollouts_id_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| Rollout identifier to fetch. | + +### Return type + +[**V1SoftwareRolloutsIdGetResponse**](V1SoftwareRolloutsIdGetResponse.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_software_rollouts_post** +> V1SoftwareRolloutsPostResponse v1_software_rollouts_post(authorization, v1_software_rollouts_post_request) + +Create upgrade rollout and returns rollout identifier + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +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 + +# 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_rollouts_post_request = graphiant_sdk.V1SoftwareRolloutsPostRequest() # V1SoftwareRolloutsPostRequest | + + try: + 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_rollouts_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_software_rollouts_post_request** | [**V1SoftwareRolloutsPostRequest**](V1SoftwareRolloutsPostRequest.md)| | + +### Return type + +[**V1SoftwareRolloutsPostResponse**](V1SoftwareRolloutsPostResponse.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_software_rollouts_put** +> object v1_software_rollouts_put(authorization, v1_software_rollouts_put_request) + +Modify update rollout + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_software_rollouts_put_request import V1SoftwareRolloutsPutRequest +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_rollouts_put_request = graphiant_sdk.V1SoftwareRolloutsPutRequest() # V1SoftwareRolloutsPutRequest | + + try: + 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_rollouts_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_software_rollouts_put_request** | [**V1SoftwareRolloutsPutRequest**](V1SoftwareRolloutsPutRequest.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) + +# **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 + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_software_rollouts_schedule_post_request import V1SoftwareRolloutsSchedulePostRequest +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_rollouts_schedule_post_request = graphiant_sdk.V1SoftwareRolloutsSchedulePostRequest() # V1SoftwareRolloutsSchedulePostRequest | + + try: + 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_rollouts_schedule_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_software_rollouts_schedule_post_request** | [**V1SoftwareRolloutsSchedulePostRequest**](V1SoftwareRolloutsSchedulePostRequest.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) + +# **v1_software_running_details_get** +> V1SoftwareRunningDetailsGetResponse v1_software_running_details_get(authorization, running_version=running_version) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_software_running_details_get_response import V1SoftwareRunningDetailsGetResponse +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 + running_version = 'example string' # str | (optional) + + try: + api_response = api_instance.v1_software_running_details_get(authorization, running_version=running_version) + print("The response of DefaultApi->v1_software_running_details_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_software_running_details_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **running_version** | **str**| | [optional] + +### Return type + +[**V1SoftwareRunningDetailsGetResponse**](V1SoftwareRunningDetailsGetResponse.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_software_running_summary_get** +> V1SoftwareRunningSummaryGetResponse v1_software_running_summary_get(authorization) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_software_running_summary_get_response import V1SoftwareRunningSummaryGetResponse +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_software_running_summary_get(authorization) + print("The response of DefaultApi->v1_software_running_summary_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_software_running_summary_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + +### Return type + +[**V1SoftwareRunningSummaryGetResponse**](V1SoftwareRunningSummaryGetResponse.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_talkers_device_device_id_top_post** +> V1TalkersDeviceDeviceIdTopPostResponse v1_talkers_device_device_id_top_post(authorization, device_id, v1_talkers_device_device_id_top_post_request) + +Get top talkers for a device + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_talkers_device_device_id_top_post_request import V1TalkersDeviceDeviceIdTopPostRequest +from graphiant_sdk.models.v1_talkers_device_device_id_top_post_response import V1TalkersDeviceDeviceIdTopPostResponse +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 | + v1_talkers_device_device_id_top_post_request = graphiant_sdk.V1TalkersDeviceDeviceIdTopPostRequest() # V1TalkersDeviceDeviceIdTopPostRequest | + + try: + api_response = api_instance.v1_talkers_device_device_id_top_post(authorization, device_id, v1_talkers_device_device_id_top_post_request) + print("The response of DefaultApi->v1_talkers_device_device_id_top_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_talkers_device_device_id_top_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **device_id** | **int**| | + **v1_talkers_device_device_id_top_post_request** | [**V1TalkersDeviceDeviceIdTopPostRequest**](V1TalkersDeviceDeviceIdTopPostRequest.md)| | + +### Return type + +[**V1TalkersDeviceDeviceIdTopPostResponse**](V1TalkersDeviceDeviceIdTopPostResponse.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_talkers_site_site_id_top_post** +> V1TalkersSiteSiteIdTopPostResponse v1_talkers_site_site_id_top_post(authorization, site_id, v1_talkers_site_site_id_top_post_request) + +Get top talkers for a site + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_talkers_site_site_id_top_post_request import V1TalkersSiteSiteIdTopPostRequest +from graphiant_sdk.models.v1_talkers_site_site_id_top_post_response import V1TalkersSiteSiteIdTopPostResponse +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 | + v1_talkers_site_site_id_top_post_request = graphiant_sdk.V1TalkersSiteSiteIdTopPostRequest() # V1TalkersSiteSiteIdTopPostRequest | + + try: + api_response = api_instance.v1_talkers_site_site_id_top_post(authorization, site_id, v1_talkers_site_site_id_top_post_request) + print("The response of DefaultApi->v1_talkers_site_site_id_top_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_talkers_site_site_id_top_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **site_id** | **int**| | + **v1_talkers_site_site_id_top_post_request** | [**V1TalkersSiteSiteIdTopPostRequest**](V1TalkersSiteSiteIdTopPostRequest.md)| | + +### Return type + +[**V1TalkersSiteSiteIdTopPostResponse**](V1TalkersSiteSiteIdTopPostResponse.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_temp_password_put** +> object v1_temp_password_put(authorization, v1_temp_password_put_request) + +Generate and send temporary passwords to multiple emails for B2B service access. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_temp_password_put_request import V1TempPasswordPutRequest +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_temp_password_put_request = graphiant_sdk.V1TempPasswordPutRequest() # V1TempPasswordPutRequest | + + try: + api_response = api_instance.v1_temp_password_put(authorization, v1_temp_password_put_request) + print("The response of DefaultApi->v1_temp_password_put:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_temp_password_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_temp_password_put_request** | [**V1TempPasswordPutRequest**](V1TempPasswordPutRequest.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 | +|-------------|-------------|------------------| +**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_troubleshooting_device_device_id_post** +> V1TroubleshootingDeviceDeviceIdPostResponse v1_troubleshooting_device_device_id_post(authorization, device_id, v1_troubleshooting_device_device_id_post_request) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_troubleshooting_device_device_id_post_request import V1TroubleshootingDeviceDeviceIdPostRequest +from graphiant_sdk.models.v1_troubleshooting_device_device_id_post_response import V1TroubleshootingDeviceDeviceIdPostResponse +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 | + v1_troubleshooting_device_device_id_post_request = graphiant_sdk.V1TroubleshootingDeviceDeviceIdPostRequest() # V1TroubleshootingDeviceDeviceIdPostRequest | + + try: + api_response = api_instance.v1_troubleshooting_device_device_id_post(authorization, device_id, v1_troubleshooting_device_device_id_post_request) + print("The response of DefaultApi->v1_troubleshooting_device_device_id_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_troubleshooting_device_device_id_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **device_id** | **int**| | + **v1_troubleshooting_device_device_id_post_request** | [**V1TroubleshootingDeviceDeviceIdPostRequest**](V1TroubleshootingDeviceDeviceIdPostRequest.md)| | + +### Return type + +[**V1TroubleshootingDeviceDeviceIdPostResponse**](V1TroubleshootingDeviceDeviceIdPostResponse.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_troubleshooting_enterprise_post** +> V1TroubleshootingEnterprisePostResponse v1_troubleshooting_enterprise_post(authorization, v1_troubleshooting_enterprise_post_request) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_troubleshooting_enterprise_post_request import V1TroubleshootingEnterprisePostRequest +from graphiant_sdk.models.v1_troubleshooting_enterprise_post_response import V1TroubleshootingEnterprisePostResponse +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_troubleshooting_enterprise_post_request = graphiant_sdk.V1TroubleshootingEnterprisePostRequest() # V1TroubleshootingEnterprisePostRequest | + + try: + api_response = api_instance.v1_troubleshooting_enterprise_post(authorization, v1_troubleshooting_enterprise_post_request) + print("The response of DefaultApi->v1_troubleshooting_enterprise_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_troubleshooting_enterprise_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_troubleshooting_enterprise_post_request** | [**V1TroubleshootingEnterprisePostRequest**](V1TroubleshootingEnterprisePostRequest.md)| | + +### Return type + +[**V1TroubleshootingEnterprisePostResponse**](V1TroubleshootingEnterprisePostResponse.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_troubleshooting_filter_get** +> V1TroubleshootingFilterGetResponse v1_troubleshooting_filter_get(authorization) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_troubleshooting_filter_get_response import V1TroubleshootingFilterGetResponse +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_troubleshooting_filter_get(authorization) + print("The response of DefaultApi->v1_troubleshooting_filter_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_troubleshooting_filter_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + +### Return type + +[**V1TroubleshootingFilterGetResponse**](V1TroubleshootingFilterGetResponse.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_troubleshooting_site_connectivity_status_get** +> V1TroubleshootingSiteConnectivityStatusGetResponse v1_troubleshooting_site_connectivity_status_get(authorization) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_troubleshooting_site_connectivity_status_get_response import V1TroubleshootingSiteConnectivityStatusGetResponse +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_troubleshooting_site_connectivity_status_get(authorization) + print("The response of DefaultApi->v1_troubleshooting_site_connectivity_status_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_troubleshooting_site_connectivity_status_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + +### Return type + +[**V1TroubleshootingSiteConnectivityStatusGetResponse**](V1TroubleshootingSiteConnectivityStatusGetResponse.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_troubleshooting_site_site_id_get** +> V1TroubleshootingSiteSiteIdGetResponse v1_troubleshooting_site_site_id_get(authorization, site_id) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_troubleshooting_site_site_id_get_response import V1TroubleshootingSiteSiteIdGetResponse +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 | + + try: + api_response = api_instance.v1_troubleshooting_site_site_id_get(authorization, site_id) + print("The response of DefaultApi->v1_troubleshooting_site_site_id_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_troubleshooting_site_site_id_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **site_id** | **int**| | + +### Return type + +[**V1TroubleshootingSiteSiteIdGetResponse**](V1TroubleshootingSiteSiteIdGetResponse.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_troubleshooting_top_sites_by_alerts_post** +> V1TroubleshootingTopSitesByAlertsPostResponse v1_troubleshooting_top_sites_by_alerts_post(authorization, v1_troubleshooting_top_sites_by_alerts_post_request) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_troubleshooting_top_sites_by_alerts_post_request import V1TroubleshootingTopSitesByAlertsPostRequest +from graphiant_sdk.models.v1_troubleshooting_top_sites_by_alerts_post_response import V1TroubleshootingTopSitesByAlertsPostResponse +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_troubleshooting_top_sites_by_alerts_post_request = graphiant_sdk.V1TroubleshootingTopSitesByAlertsPostRequest() # V1TroubleshootingTopSitesByAlertsPostRequest | + + try: + api_response = api_instance.v1_troubleshooting_top_sites_by_alerts_post(authorization, v1_troubleshooting_top_sites_by_alerts_post_request) + print("The response of DefaultApi->v1_troubleshooting_top_sites_by_alerts_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_troubleshooting_top_sites_by_alerts_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_troubleshooting_top_sites_by_alerts_post_request** | [**V1TroubleshootingTopSitesByAlertsPostRequest**](V1TroubleshootingTopSitesByAlertsPostRequest.md)| | + +### Return type + +[**V1TroubleshootingTopSitesByAlertsPostResponse**](V1TroubleshootingTopSitesByAlertsPostResponse.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_users_email_password_patch** +> v1_users_email_password_patch(email, token, v1_users_email_password_patch_request) + +Change password for a user using email and token + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_users_email_password_patch_request import V1UsersEmailPasswordPatchRequest +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) + email = 'user@example.com' # str | User email address + token = 'verification-token-12345' # str | Password reset token + v1_users_email_password_patch_request = graphiant_sdk.V1UsersEmailPasswordPatchRequest() # V1UsersEmailPasswordPatchRequest | + + try: + api_instance.v1_users_email_password_patch(email, token, v1_users_email_password_patch_request) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_email_password_patch: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email** | **str**| User email address | + **token** | **str**| Password reset token | + **v1_users_email_password_patch_request** | [**V1UsersEmailPasswordPatchRequest**](V1UsersEmailPasswordPatchRequest.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** | Password changed successfully | - | +**400** | Bad request - Invalid input | - | +**403** | Forbidden - Invalid token | - | +**500** | Internal server error | - | + +[[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_users_email_recovery_get** +> v1_users_email_recovery_get(email) + +Send password recovery email to user + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +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) + email = 'user@example.com' # str | User email address + + try: + api_instance.v1_users_email_recovery_get(email) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_email_recovery_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email** | **str**| User email address | + +### 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 | +|-------------|-------------|------------------| +**200** | Recovery email sent successfully | - | +**400** | Bad request - Invalid email | - | +**500** | Internal server error | - | + +[[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_users_email_verified_patch** +> v1_users_email_verified_patch(email, token) + +Verify user email using verification token + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +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) + email = 'user@example.com' # str | User email address + token = 'verification-token-12345' # str | Email verification token + + try: + api_instance.v1_users_email_verified_patch(email, token) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_email_verified_patch: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email** | **str**| User email address | + **token** | **str**| Email verification token | + +### 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** | User email verified successfully | - | +**400** | Bad request - Invalid input | - | +**403** | Forbidden - Invalid token | - | +**500** | Internal server error | - | + +[[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_users_get** +> V1UsersGetResponse v1_users_get(authorization, id=id) + +Get user information by user IDs with detailed profile data. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_users_get_response import V1UsersGetResponse +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 = 'example string' # str | (optional) + + try: + api_response = api_instance.v1_users_get(authorization, id=id) + print("The response of DefaultApi->v1_users_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **str**| | [optional] + +### Return type + +[**V1UsersGetResponse**](V1UsersGetResponse.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_users_id_delete** +> v1_users_id_delete(authorization, id) + +Delete user account. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +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 = 'example string' # str | + + try: + api_instance.v1_users_id_delete(authorization, id) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **str**| | + +### 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_users_id_enterprises_get** +> V1UsersIdEnterprisesGetResponse v1_users_id_enterprises_get(authorization, id) + +Get all enterprises a specific user can access. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_users_id_enterprises_get_response import V1UsersIdEnterprisesGetResponse +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 = 'example string' # str | userId + + try: + api_response = api_instance.v1_users_id_enterprises_get(authorization, id) + print("The response of DefaultApi->v1_users_id_enterprises_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_id_enterprises_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **str**| userId | + +### Return type + +[**V1UsersIdEnterprisesGetResponse**](V1UsersIdEnterprisesGetResponse.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_users_id_groups_enterprises_get** +> V1UsersIdGroupsEnterprisesGetResponse v1_users_id_groups_enterprises_get(authorization, id) + +Get enterprise-specific groups for a user. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_users_id_groups_enterprises_get_response import V1UsersIdGroupsEnterprisesGetResponse +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 = 'example string' # str | userId + + try: + api_response = api_instance.v1_users_id_groups_enterprises_get(authorization, id) + print("The response of DefaultApi->v1_users_id_groups_enterprises_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_id_groups_enterprises_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **str**| userId | + +### Return type + +[**V1UsersIdGroupsEnterprisesGetResponse**](V1UsersIdGroupsEnterprisesGetResponse.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_users_id_groups_get** +> V1UsersIdGroupsGetResponse v1_users_id_groups_get(authorization, id) + +Get all groups that a specific user belongs to. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_users_id_groups_get_response import V1UsersIdGroupsGetResponse +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 = 'example string' # str | userId + + try: + api_response = api_instance.v1_users_id_groups_get(authorization, id) + print("The response of DefaultApi->v1_users_id_groups_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_id_groups_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **str**| userId | + +### Return type + +[**V1UsersIdGroupsGetResponse**](V1UsersIdGroupsGetResponse.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_users_id_groups_root_get** +> V1UsersIdGroupsRootGetResponse v1_users_id_groups_root_get(authorization, id) + +Get root-level groups for a user. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_users_id_groups_root_get_response import V1UsersIdGroupsRootGetResponse +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 = 'example string' # str | userId + + try: + api_response = api_instance.v1_users_id_groups_root_get(authorization, id) + print("The response of DefaultApi->v1_users_id_groups_root_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_id_groups_root_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **str**| userId | + +### Return type + +[**V1UsersIdGroupsRootGetResponse**](V1UsersIdGroupsRootGetResponse.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_users_id_verify_patch** +> v1_users_id_verify_patch(authorization, id, body) + +Resend account verification email to user. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +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 = 'example string' # str | + body = None # object | + + try: + api_instance.v1_users_id_verify_patch(authorization, id, body) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_id_verify_patch: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **str**| | + **body** | **object**| | + +### 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_users_passwords_expire_post** +> V1UsersPasswordsExpirePostResponse v1_users_passwords_expire_post(authorization, v1_users_passwords_expire_post_request) + +Expire passwords for multiple users and send password reset emails (Graphiant cloud only). + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_users_passwords_expire_post_request import V1UsersPasswordsExpirePostRequest +from graphiant_sdk.models.v1_users_passwords_expire_post_response import V1UsersPasswordsExpirePostResponse +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_users_passwords_expire_post_request = graphiant_sdk.V1UsersPasswordsExpirePostRequest() # V1UsersPasswordsExpirePostRequest | + + try: + api_response = api_instance.v1_users_passwords_expire_post(authorization, v1_users_passwords_expire_post_request) + print("The response of DefaultApi->v1_users_passwords_expire_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_passwords_expire_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_users_passwords_expire_post_request** | [**V1UsersPasswordsExpirePostRequest**](V1UsersPasswordsExpirePostRequest.md)| | + +### Return type + +[**V1UsersPasswordsExpirePostResponse**](V1UsersPasswordsExpirePostResponse.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_users_put** +> v1_users_put(authorization, v1_users_put_request) + +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. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_users_put_request import V1UsersPutRequest +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_users_put_request = graphiant_sdk.V1UsersPutRequest() # V1UsersPutRequest | + + try: + api_instance.v1_users_put(authorization, v1_users_put_request) + except Exception as e: + print("Exception when calling DefaultApi->v1_users_put: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_users_put_request** | [**V1UsersPutRequest**](V1UsersPutRequest.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_version_post** +> V1VersionPostResponse v1_version_post(authorization, v1_version_post_request) + +Update device config version + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_version_post_request import V1VersionPostRequest +from graphiant_sdk.models.v1_version_post_response import V1VersionPostResponse +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_version_post_request = graphiant_sdk.V1VersionPostRequest() # V1VersionPostRequest | + + try: + api_response = api_instance.v1_version_post(authorization, v1_version_post_request) + print("The response of DefaultApi->v1_version_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_version_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_version_post_request** | [**V1VersionPostRequest**](V1VersionPostRequest.md)| | + +### Return type + +[**V1VersionPostResponse**](V1VersionPostResponse.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_zones_get** +> V1ZonesGetResponse v1_zones_get(authorization) + +Get Zones for the current enterprise + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_zones_get_response import V1ZonesGetResponse +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_zones_get(authorization) + print("The response of DefaultApi->v1_zones_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_zones_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + +### Return type + +[**V1ZonesGetResponse**](V1ZonesGetResponse.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_agents_get** +> V1ZtagentAgentsGetResponse v1_ztagent_agents_get(authorization, created_date_end=created_date_end, created_date_start=created_date_start, endpoints=endpoints, hostname=hostname, limit=limit, machine_id=machine_id, page=page, tenant_id=tenant_id, updated_date_end=updated_date_end, updated_date_start=updated_date_start) + +List Conceal agents (devices) with pagination and filters. + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_ztagent_agents_get_response import V1ZtagentAgentsGetResponse +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 + created_date_end = 'example string' # str | (optional) + created_date_start = 'example string' # str | (optional) + endpoints = ['[\"example\"]'] # List[str] | (optional) + hostname = 'example string' # str | (optional) + limit = 123 # int | (optional) + machine_id = 'example string' # str | (optional) + page = 123 # int | (optional) + tenant_id = 'example string' # str | (optional) + updated_date_end = 'example string' # str | (optional) + updated_date_start = 'example string' # str | (optional) + + try: + api_response = api_instance.v1_ztagent_agents_get(authorization, created_date_end=created_date_end, created_date_start=created_date_start, endpoints=endpoints, hostname=hostname, limit=limit, machine_id=machine_id, page=page, tenant_id=tenant_id, updated_date_end=updated_date_end, updated_date_start=updated_date_start) + print("The response of DefaultApi->v1_ztagent_agents_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_ztagent_agents_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **created_date_end** | **str**| | [optional] + **created_date_start** | **str**| | [optional] + **endpoints** | [**List[str]**](str.md)| | [optional] + **hostname** | **str**| | [optional] + **limit** | **int**| | [optional] + **machine_id** | **str**| | [optional] + **page** | **int**| | [optional] + **tenant_id** | **str**| | [optional] + **updated_date_end** | **str**| | [optional] + **updated_date_start** | **str**| | [optional] + +### Return type + +[**V1ZtagentAgentsGetResponse**](V1ZtagentAgentsGetResponse.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_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 @@ -30941,14 +33693,394 @@ 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 - alert_id = 'example string' # str | Alert id of the alert to delete allowlist/mutelist for + alert_id = 'example string' # str | Alert id of the alert to delete allowlist/mutelist for + + try: + api_response = api_instance.v2_allowlist_deletebyalertid_alert_id_delete(authorization, alert_id) + print("The response of DefaultApi->v2_allowlist_deletebyalertid_alert_id_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v2_allowlist_deletebyalertid_alert_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **alert_id** | **str**| Alert id of the alert to delete allowlist/mutelist for | + +### Return type + +**object** + +### 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_allowlist_deletebyentityid_entity_id_delete** +> object v2_allowlist_deletebyentityid_entity_id_delete(authorization, entity_id) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +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 + entity_id = 'example string' # str | Entity id of the alert to delete allowlist/mutelist for + + try: + api_response = api_instance.v2_allowlist_deletebyentityid_entity_id_delete(authorization, entity_id) + print("The response of DefaultApi->v2_allowlist_deletebyentityid_entity_id_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v2_allowlist_deletebyentityid_entity_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **entity_id** | **str**| Entity id of the alert to delete allowlist/mutelist for | + +### Return type + +**object** + +### 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_allowlist_rule_id_get** +> V2AllowlistRuleIdGetResponse v2_allowlist_rule_id_get(authorization, rule_id) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v2_allowlist_rule_id_get_response import V2AllowlistRuleIdGetResponse +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 + rule_id = 'example string' # str | Alert id of the alert to retrieve allowlist/mutelist for + + try: + api_response = api_instance.v2_allowlist_rule_id_get(authorization, rule_id) + print("The response of DefaultApi->v2_allowlist_rule_id_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v2_allowlist_rule_id_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **rule_id** | **str**| Alert id of the alert to retrieve allowlist/mutelist for | + +### Return type + +[**V2AllowlistRuleIdGetResponse**](V2AllowlistRuleIdGetResponse.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_assistant_add_to_conversation_post** +> V2AssistantAddToConversationPostResponse v2_assistant_add_to_conversation_post(authorization, v2_assistant_add_to_conversation_post_request) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v2_assistant_add_to_conversation_post_request import V2AssistantAddToConversationPostRequest +from graphiant_sdk.models.v2_assistant_add_to_conversation_post_response import V2AssistantAddToConversationPostResponse +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 + v2_assistant_add_to_conversation_post_request = graphiant_sdk.V2AssistantAddToConversationPostRequest() # V2AssistantAddToConversationPostRequest | + + try: + api_response = api_instance.v2_assistant_add_to_conversation_post(authorization, v2_assistant_add_to_conversation_post_request) + print("The response of DefaultApi->v2_assistant_add_to_conversation_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v2_assistant_add_to_conversation_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v2_assistant_add_to_conversation_post_request** | [**V2AssistantAddToConversationPostRequest**](V2AssistantAddToConversationPostRequest.md)| | + +### Return type + +[**V2AssistantAddToConversationPostResponse**](V2AssistantAddToConversationPostResponse.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) + +# **v2_assistant_conversation_context_history_post** +> object v2_assistant_conversation_context_history_post(authorization, v2_assistant_conversation_context_history_post_request) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v2_assistant_conversation_context_history_post_request import V2AssistantConversationContextHistoryPostRequest +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 + v2_assistant_conversation_context_history_post_request = graphiant_sdk.V2AssistantConversationContextHistoryPostRequest() # V2AssistantConversationContextHistoryPostRequest | + + try: + api_response = api_instance.v2_assistant_conversation_context_history_post(authorization, v2_assistant_conversation_context_history_post_request) + print("The response of DefaultApi->v2_assistant_conversation_context_history_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v2_assistant_conversation_context_history_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v2_assistant_conversation_context_history_post_request** | [**V2AssistantConversationContextHistoryPostRequest**](V2AssistantConversationContextHistoryPostRequest.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_assistant_conversation_interface_enable_disable_post** +> object v2_assistant_conversation_interface_enable_disable_post(authorization, v2_assistant_conversation_interface_enable_disable_post_request) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v2_assistant_conversation_interface_enable_disable_post_request import V2AssistantConversationInterfaceEnableDisablePostRequest +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 + v2_assistant_conversation_interface_enable_disable_post_request = graphiant_sdk.V2AssistantConversationInterfaceEnableDisablePostRequest() # V2AssistantConversationInterfaceEnableDisablePostRequest | try: - api_response = api_instance.v2_allowlist_deletebyalertid_alert_id_delete(authorization, alert_id) - print("The response of DefaultApi->v2_allowlist_deletebyalertid_alert_id_delete:\n") + api_response = api_instance.v2_assistant_conversation_interface_enable_disable_post(authorization, v2_assistant_conversation_interface_enable_disable_post_request) + print("The response of DefaultApi->v2_assistant_conversation_interface_enable_disable_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_allowlist_deletebyalertid_alert_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v2_assistant_conversation_interface_enable_disable_post: %s\n" % e) ``` @@ -30959,7 +34091,7 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **alert_id** | **str**| Alert id of the alert to delete allowlist/mutelist for | + **v2_assistant_conversation_interface_enable_disable_post_request** | [**V2AssistantConversationInterfaceEnableDisablePostRequest**](V2AssistantConversationInterfaceEnableDisablePostRequest.md)| | ### Return type @@ -30971,7 +34103,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -30982,8 +34114,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) -# **v2_allowlist_deletebyentityid_entity_id_delete** -> object v2_allowlist_deletebyentityid_entity_id_delete(authorization, entity_id) +# **v2_assistant_conversation_interface_state_get** +> V2AssistantConversationInterfaceStateGetResponse v2_assistant_conversation_interface_state_get(authorization) ### Example @@ -30991,6 +34123,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk +from graphiant_sdk.models.v2_assistant_conversation_interface_state_get_response import V2AssistantConversationInterfaceStateGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31016,14 +34149,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 - entity_id = 'example string' # str | Entity id of the alert to delete allowlist/mutelist for try: - api_response = api_instance.v2_allowlist_deletebyentityid_entity_id_delete(authorization, entity_id) - print("The response of DefaultApi->v2_allowlist_deletebyentityid_entity_id_delete:\n") + api_response = api_instance.v2_assistant_conversation_interface_state_get(authorization) + print("The response of DefaultApi->v2_assistant_conversation_interface_state_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_allowlist_deletebyentityid_entity_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v2_assistant_conversation_interface_state_get: %s\n" % e) ``` @@ -31034,11 +34166,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **entity_id** | **str**| Entity id of the alert to delete allowlist/mutelist for | ### Return type -**object** +[**V2AssistantConversationInterfaceStateGetResponse**](V2AssistantConversationInterfaceStateGetResponse.md) ### Authorization @@ -31057,8 +34188,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) -# **v2_allowlist_rule_id_get** -> V2AllowlistRuleIdGetResponse v2_allowlist_rule_id_get(authorization, rule_id) +# **v2_assistant_delete_conversation_chat_conversation_id_delete** +> object v2_assistant_delete_conversation_chat_conversation_id_delete(authorization, conversation_id) ### Example @@ -31066,7 +34197,6 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_allowlist_rule_id_get_response import V2AllowlistRuleIdGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31092,14 +34222,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 - rule_id = 'example string' # str | Alert id of the alert to retrieve allowlist/mutelist for + conversation_id = 'example string' # str | try: - api_response = api_instance.v2_allowlist_rule_id_get(authorization, rule_id) - print("The response of DefaultApi->v2_allowlist_rule_id_get:\n") + api_response = api_instance.v2_assistant_delete_conversation_chat_conversation_id_delete(authorization, conversation_id) + print("The response of DefaultApi->v2_assistant_delete_conversation_chat_conversation_id_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_allowlist_rule_id_get: %s\n" % e) + print("Exception when calling DefaultApi->v2_assistant_delete_conversation_chat_conversation_id_delete: %s\n" % e) ``` @@ -31110,11 +34240,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **rule_id** | **str**| Alert id of the alert to retrieve allowlist/mutelist for | + **conversation_id** | **str**| | ### Return type -[**V2AllowlistRuleIdGetResponse**](V2AllowlistRuleIdGetResponse.md) +**object** ### Authorization @@ -31133,8 +34263,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) -# **v2_assistant_add_to_conversation_post** -> V2AssistantAddToConversationPostResponse v2_assistant_add_to_conversation_post(authorization, v2_assistant_add_to_conversation_post_request) +# **v2_assistant_get_conversation_details_post** +> V2AssistantGetConversationDetailsPostResponse v2_assistant_get_conversation_details_post(authorization, v2_assistant_get_conversation_details_post_request) ### Example @@ -31142,8 +34272,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assistant_add_to_conversation_post_request import V2AssistantAddToConversationPostRequest -from graphiant_sdk.models.v2_assistant_add_to_conversation_post_response import V2AssistantAddToConversationPostResponse +from graphiant_sdk.models.v2_assistant_get_conversation_details_post_request import V2AssistantGetConversationDetailsPostRequest +from graphiant_sdk.models.v2_assistant_get_conversation_details_post_response import V2AssistantGetConversationDetailsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31169,14 +34299,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 - v2_assistant_add_to_conversation_post_request = graphiant_sdk.V2AssistantAddToConversationPostRequest() # V2AssistantAddToConversationPostRequest | + v2_assistant_get_conversation_details_post_request = graphiant_sdk.V2AssistantGetConversationDetailsPostRequest() # V2AssistantGetConversationDetailsPostRequest | try: - api_response = api_instance.v2_assistant_add_to_conversation_post(authorization, v2_assistant_add_to_conversation_post_request) - print("The response of DefaultApi->v2_assistant_add_to_conversation_post:\n") + api_response = api_instance.v2_assistant_get_conversation_details_post(authorization, v2_assistant_get_conversation_details_post_request) + print("The response of DefaultApi->v2_assistant_get_conversation_details_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assistant_add_to_conversation_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assistant_get_conversation_details_post: %s\n" % e) ``` @@ -31187,11 +34317,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assistant_add_to_conversation_post_request** | [**V2AssistantAddToConversationPostRequest**](V2AssistantAddToConversationPostRequest.md)| | + **v2_assistant_get_conversation_details_post_request** | [**V2AssistantGetConversationDetailsPostRequest**](V2AssistantGetConversationDetailsPostRequest.md)| | ### Return type -[**V2AssistantAddToConversationPostResponse**](V2AssistantAddToConversationPostResponse.md) +[**V2AssistantGetConversationDetailsPostResponse**](V2AssistantGetConversationDetailsPostResponse.md) ### Authorization @@ -31210,8 +34340,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) -# **v2_assistant_conversation_context_history_post** -> object v2_assistant_conversation_context_history_post(authorization, v2_assistant_conversation_context_history_post_request) +# **v2_assistant_get_conversations_post** +> V2AssistantGetConversationsPostResponse v2_assistant_get_conversations_post(authorization, v2_assistant_get_conversations_post_request) ### Example @@ -31219,7 +34349,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assistant_conversation_context_history_post_request import V2AssistantConversationContextHistoryPostRequest +from graphiant_sdk.models.v2_assistant_get_conversations_post_request import V2AssistantGetConversationsPostRequest +from graphiant_sdk.models.v2_assistant_get_conversations_post_response import V2AssistantGetConversationsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31245,14 +34376,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 - v2_assistant_conversation_context_history_post_request = graphiant_sdk.V2AssistantConversationContextHistoryPostRequest() # V2AssistantConversationContextHistoryPostRequest | + v2_assistant_get_conversations_post_request = graphiant_sdk.V2AssistantGetConversationsPostRequest() # V2AssistantGetConversationsPostRequest | try: - api_response = api_instance.v2_assistant_conversation_context_history_post(authorization, v2_assistant_conversation_context_history_post_request) - print("The response of DefaultApi->v2_assistant_conversation_context_history_post:\n") + api_response = api_instance.v2_assistant_get_conversations_post(authorization, v2_assistant_get_conversations_post_request) + print("The response of DefaultApi->v2_assistant_get_conversations_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assistant_conversation_context_history_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assistant_get_conversations_post: %s\n" % e) ``` @@ -31263,11 +34394,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assistant_conversation_context_history_post_request** | [**V2AssistantConversationContextHistoryPostRequest**](V2AssistantConversationContextHistoryPostRequest.md)| | + **v2_assistant_get_conversations_post_request** | [**V2AssistantGetConversationsPostRequest**](V2AssistantGetConversationsPostRequest.md)| | ### Return type -**object** +[**V2AssistantGetConversationsPostResponse**](V2AssistantGetConversationsPostResponse.md) ### Authorization @@ -31286,8 +34417,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) -# **v2_assistant_conversation_interface_enable_disable_post** -> object v2_assistant_conversation_interface_enable_disable_post(authorization, v2_assistant_conversation_interface_enable_disable_post_request) +# **v2_assistant_update_conversation_name_post** +> object v2_assistant_update_conversation_name_post(authorization, v2_assistant_update_conversation_name_post_request) ### Example @@ -31295,7 +34426,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assistant_conversation_interface_enable_disable_post_request import V2AssistantConversationInterfaceEnableDisablePostRequest +from graphiant_sdk.models.v2_assistant_update_conversation_name_post_request import V2AssistantUpdateConversationNamePostRequest from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31321,14 +34452,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 - v2_assistant_conversation_interface_enable_disable_post_request = graphiant_sdk.V2AssistantConversationInterfaceEnableDisablePostRequest() # V2AssistantConversationInterfaceEnableDisablePostRequest | + v2_assistant_update_conversation_name_post_request = graphiant_sdk.V2AssistantUpdateConversationNamePostRequest() # V2AssistantUpdateConversationNamePostRequest | try: - api_response = api_instance.v2_assistant_conversation_interface_enable_disable_post(authorization, v2_assistant_conversation_interface_enable_disable_post_request) - print("The response of DefaultApi->v2_assistant_conversation_interface_enable_disable_post:\n") + api_response = api_instance.v2_assistant_update_conversation_name_post(authorization, v2_assistant_update_conversation_name_post_request) + print("The response of DefaultApi->v2_assistant_update_conversation_name_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assistant_conversation_interface_enable_disable_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assistant_update_conversation_name_post: %s\n" % e) ``` @@ -31339,7 +34470,7 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assistant_conversation_interface_enable_disable_post_request** | [**V2AssistantConversationInterfaceEnableDisablePostRequest**](V2AssistantConversationInterfaceEnableDisablePostRequest.md)| | + **v2_assistant_update_conversation_name_post_request** | [**V2AssistantUpdateConversationNamePostRequest**](V2AssistantUpdateConversationNamePostRequest.md)| | ### Return type @@ -31362,8 +34493,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) -# **v2_assistant_conversation_interface_state_get** -> V2AssistantConversationInterfaceStateGetResponse v2_assistant_conversation_interface_state_get(authorization) +# **v2_assistant_version_post** +> V2AssistantVersionPostResponse v2_assistant_version_post(authorization, body) ### Example @@ -31371,7 +34502,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assistant_conversation_interface_state_get_response import V2AssistantConversationInterfaceStateGetResponse +from graphiant_sdk.models.v2_assistant_version_post_response import V2AssistantVersionPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31397,13 +34528,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 + body = None # object | try: - api_response = api_instance.v2_assistant_conversation_interface_state_get(authorization) - print("The response of DefaultApi->v2_assistant_conversation_interface_state_get:\n") + api_response = api_instance.v2_assistant_version_post(authorization, body) + print("The response of DefaultApi->v2_assistant_version_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assistant_conversation_interface_state_get: %s\n" % e) + print("Exception when calling DefaultApi->v2_assistant_version_post: %s\n" % e) ``` @@ -31414,10 +34546,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **body** | **object**| | ### Return type -[**V2AssistantConversationInterfaceStateGetResponse**](V2AssistantConversationInterfaceStateGetResponse.md) +[**V2AssistantVersionPostResponse**](V2AssistantVersionPostResponse.md) ### Authorization @@ -31425,7 +34558,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -31436,8 +34569,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) -# **v2_assistant_delete_conversation_chat_conversation_id_delete** -> object v2_assistant_delete_conversation_chat_conversation_id_delete(authorization, conversation_id) +# **v2_assurance_ai_adoption_summary_post** +> V2AssuranceAiAdoptionSummaryPostResponse v2_assurance_ai_adoption_summary_post(authorization, v2_assurance_ai_adoption_summary_post_request) ### Example @@ -31445,6 +34578,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk +from graphiant_sdk.models.v2_assurance_ai_adoption_summary_post_request import V2AssuranceAiAdoptionSummaryPostRequest +from graphiant_sdk.models.v2_assurance_ai_adoption_summary_post_response import V2AssuranceAiAdoptionSummaryPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31470,14 +34605,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 - conversation_id = 'example string' # str | + v2_assurance_ai_adoption_summary_post_request = graphiant_sdk.V2AssuranceAiAdoptionSummaryPostRequest() # V2AssuranceAiAdoptionSummaryPostRequest | try: - api_response = api_instance.v2_assistant_delete_conversation_chat_conversation_id_delete(authorization, conversation_id) - print("The response of DefaultApi->v2_assistant_delete_conversation_chat_conversation_id_delete:\n") + api_response = api_instance.v2_assurance_ai_adoption_summary_post(authorization, v2_assurance_ai_adoption_summary_post_request) + print("The response of DefaultApi->v2_assurance_ai_adoption_summary_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assistant_delete_conversation_chat_conversation_id_delete: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_ai_adoption_summary_post: %s\n" % e) ``` @@ -31488,11 +34623,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **conversation_id** | **str**| | + **v2_assurance_ai_adoption_summary_post_request** | [**V2AssuranceAiAdoptionSummaryPostRequest**](V2AssuranceAiAdoptionSummaryPostRequest.md)| | ### Return type -**object** +[**V2AssuranceAiAdoptionSummaryPostResponse**](V2AssuranceAiAdoptionSummaryPostResponse.md) ### Authorization @@ -31500,7 +34635,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -31511,8 +34646,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) -# **v2_assistant_get_conversation_details_post** -> V2AssistantGetConversationDetailsPostResponse v2_assistant_get_conversation_details_post(authorization, v2_assistant_get_conversation_details_post_request) +# **v2_assurance_applicationdetailsbyname_post** +> V2AssuranceApplicationdetailsbynamePostResponse v2_assurance_applicationdetailsbyname_post(authorization, v2_assurance_applicationdetailsbyname_post_request) ### Example @@ -31520,8 +34655,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assistant_get_conversation_details_post_request import V2AssistantGetConversationDetailsPostRequest -from graphiant_sdk.models.v2_assistant_get_conversation_details_post_response import V2AssistantGetConversationDetailsPostResponse +from graphiant_sdk.models.v2_assurance_applicationdetailsbyname_post_request import V2AssuranceApplicationdetailsbynamePostRequest +from graphiant_sdk.models.v2_assurance_applicationdetailsbyname_post_response import V2AssuranceApplicationdetailsbynamePostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31547,14 +34682,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 - v2_assistant_get_conversation_details_post_request = graphiant_sdk.V2AssistantGetConversationDetailsPostRequest() # V2AssistantGetConversationDetailsPostRequest | + v2_assurance_applicationdetailsbyname_post_request = graphiant_sdk.V2AssuranceApplicationdetailsbynamePostRequest() # V2AssuranceApplicationdetailsbynamePostRequest | try: - api_response = api_instance.v2_assistant_get_conversation_details_post(authorization, v2_assistant_get_conversation_details_post_request) - print("The response of DefaultApi->v2_assistant_get_conversation_details_post:\n") + api_response = api_instance.v2_assurance_applicationdetailsbyname_post(authorization, v2_assurance_applicationdetailsbyname_post_request) + print("The response of DefaultApi->v2_assurance_applicationdetailsbyname_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assistant_get_conversation_details_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_applicationdetailsbyname_post: %s\n" % e) ``` @@ -31565,11 +34700,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assistant_get_conversation_details_post_request** | [**V2AssistantGetConversationDetailsPostRequest**](V2AssistantGetConversationDetailsPostRequest.md)| | + **v2_assurance_applicationdetailsbyname_post_request** | [**V2AssuranceApplicationdetailsbynamePostRequest**](V2AssuranceApplicationdetailsbynamePostRequest.md)| | ### Return type -[**V2AssistantGetConversationDetailsPostResponse**](V2AssistantGetConversationDetailsPostResponse.md) +[**V2AssuranceApplicationdetailsbynamePostResponse**](V2AssuranceApplicationdetailsbynamePostResponse.md) ### Authorization @@ -31588,8 +34723,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) -# **v2_assistant_get_conversations_post** -> V2AssistantGetConversationsPostResponse v2_assistant_get_conversations_post(authorization, v2_assistant_get_conversations_post_request) +# **v2_assurance_applicationprofilesummary_post** +> V2AssuranceApplicationprofilesummaryPostResponse v2_assurance_applicationprofilesummary_post(authorization, v2_assurance_applicationprofilesummary_post_request) ### Example @@ -31597,8 +34732,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assistant_get_conversations_post_request import V2AssistantGetConversationsPostRequest -from graphiant_sdk.models.v2_assistant_get_conversations_post_response import V2AssistantGetConversationsPostResponse +from graphiant_sdk.models.v2_assurance_applicationprofilesummary_post_request import V2AssuranceApplicationprofilesummaryPostRequest +from graphiant_sdk.models.v2_assurance_applicationprofilesummary_post_response import V2AssuranceApplicationprofilesummaryPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31624,14 +34759,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 - v2_assistant_get_conversations_post_request = graphiant_sdk.V2AssistantGetConversationsPostRequest() # V2AssistantGetConversationsPostRequest | + v2_assurance_applicationprofilesummary_post_request = graphiant_sdk.V2AssuranceApplicationprofilesummaryPostRequest() # V2AssuranceApplicationprofilesummaryPostRequest | try: - api_response = api_instance.v2_assistant_get_conversations_post(authorization, v2_assistant_get_conversations_post_request) - print("The response of DefaultApi->v2_assistant_get_conversations_post:\n") + api_response = api_instance.v2_assurance_applicationprofilesummary_post(authorization, v2_assurance_applicationprofilesummary_post_request) + print("The response of DefaultApi->v2_assurance_applicationprofilesummary_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assistant_get_conversations_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_applicationprofilesummary_post: %s\n" % e) ``` @@ -31642,11 +34777,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assistant_get_conversations_post_request** | [**V2AssistantGetConversationsPostRequest**](V2AssistantGetConversationsPostRequest.md)| | + **v2_assurance_applicationprofilesummary_post_request** | [**V2AssuranceApplicationprofilesummaryPostRequest**](V2AssuranceApplicationprofilesummaryPostRequest.md)| | ### Return type -[**V2AssistantGetConversationsPostResponse**](V2AssistantGetConversationsPostResponse.md) +[**V2AssuranceApplicationprofilesummaryPostResponse**](V2AssuranceApplicationprofilesummaryPostResponse.md) ### Authorization @@ -31665,8 +34800,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) -# **v2_assistant_update_conversation_name_post** -> object v2_assistant_update_conversation_name_post(authorization, v2_assistant_update_conversation_name_post_request) +# **v2_assurance_bucket_app_servers_post** +> V2AssuranceBucketAppServersPostResponse v2_assurance_bucket_app_servers_post(authorization, v2_assurance_bucket_app_servers_post_request) ### Example @@ -31674,7 +34809,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assistant_update_conversation_name_post_request import V2AssistantUpdateConversationNamePostRequest +from graphiant_sdk.models.v2_assurance_bucket_app_servers_post_request import V2AssuranceBucketAppServersPostRequest +from graphiant_sdk.models.v2_assurance_bucket_app_servers_post_response import V2AssuranceBucketAppServersPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31700,14 +34836,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 - v2_assistant_update_conversation_name_post_request = graphiant_sdk.V2AssistantUpdateConversationNamePostRequest() # V2AssistantUpdateConversationNamePostRequest | + v2_assurance_bucket_app_servers_post_request = graphiant_sdk.V2AssuranceBucketAppServersPostRequest() # V2AssuranceBucketAppServersPostRequest | try: - api_response = api_instance.v2_assistant_update_conversation_name_post(authorization, v2_assistant_update_conversation_name_post_request) - print("The response of DefaultApi->v2_assistant_update_conversation_name_post:\n") + api_response = api_instance.v2_assurance_bucket_app_servers_post(authorization, v2_assurance_bucket_app_servers_post_request) + print("The response of DefaultApi->v2_assurance_bucket_app_servers_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assistant_update_conversation_name_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_bucket_app_servers_post: %s\n" % e) ``` @@ -31718,11 +34854,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assistant_update_conversation_name_post_request** | [**V2AssistantUpdateConversationNamePostRequest**](V2AssistantUpdateConversationNamePostRequest.md)| | + **v2_assurance_bucket_app_servers_post_request** | [**V2AssuranceBucketAppServersPostRequest**](V2AssuranceBucketAppServersPostRequest.md)| | ### Return type -**object** +[**V2AssuranceBucketAppServersPostResponse**](V2AssuranceBucketAppServersPostResponse.md) ### Authorization @@ -31741,8 +34877,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) -# **v2_assistant_version_post** -> V2AssistantVersionPostResponse v2_assistant_version_post(authorization, body) +# **v2_assurance_bucket_apps_post** +> V2AssuranceBucketAppsPostResponse v2_assurance_bucket_apps_post(authorization, v2_assurance_bucket_apps_post_request) ### Example @@ -31750,7 +34886,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assistant_version_post_response import V2AssistantVersionPostResponse +from graphiant_sdk.models.v2_assurance_bucket_apps_post_request import V2AssuranceBucketAppsPostRequest +from graphiant_sdk.models.v2_assurance_bucket_apps_post_response import V2AssuranceBucketAppsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31776,14 +34913,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 - body = None # object | + v2_assurance_bucket_apps_post_request = graphiant_sdk.V2AssuranceBucketAppsPostRequest() # V2AssuranceBucketAppsPostRequest | try: - api_response = api_instance.v2_assistant_version_post(authorization, body) - print("The response of DefaultApi->v2_assistant_version_post:\n") + api_response = api_instance.v2_assurance_bucket_apps_post(authorization, v2_assurance_bucket_apps_post_request) + print("The response of DefaultApi->v2_assurance_bucket_apps_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assistant_version_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_bucket_apps_post: %s\n" % e) ``` @@ -31794,11 +34931,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **body** | **object**| | + **v2_assurance_bucket_apps_post_request** | [**V2AssuranceBucketAppsPostRequest**](V2AssuranceBucketAppsPostRequest.md)| | ### Return type -[**V2AssistantVersionPostResponse**](V2AssistantVersionPostResponse.md) +[**V2AssuranceBucketAppsPostResponse**](V2AssuranceBucketAppsPostResponse.md) ### Authorization @@ -31817,8 +34954,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) -# **v2_assurance_applicationdetailsbyname_post** -> V2AssuranceApplicationdetailsbynamePostResponse v2_assurance_applicationdetailsbyname_post(authorization, v2_assurance_applicationdetailsbyname_post_request) +# **v2_assurance_bucket_services_post** +> V2AssuranceBucketServicesPostResponse v2_assurance_bucket_services_post(authorization, v2_assurance_bucket_services_post_request) ### Example @@ -31826,8 +34963,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_applicationdetailsbyname_post_request import V2AssuranceApplicationdetailsbynamePostRequest -from graphiant_sdk.models.v2_assurance_applicationdetailsbyname_post_response import V2AssuranceApplicationdetailsbynamePostResponse +from graphiant_sdk.models.v2_assurance_bucket_services_post_request import V2AssuranceBucketServicesPostRequest +from graphiant_sdk.models.v2_assurance_bucket_services_post_response import V2AssuranceBucketServicesPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31853,14 +34990,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 - v2_assurance_applicationdetailsbyname_post_request = graphiant_sdk.V2AssuranceApplicationdetailsbynamePostRequest() # V2AssuranceApplicationdetailsbynamePostRequest | + v2_assurance_bucket_services_post_request = graphiant_sdk.V2AssuranceBucketServicesPostRequest() # V2AssuranceBucketServicesPostRequest | try: - api_response = api_instance.v2_assurance_applicationdetailsbyname_post(authorization, v2_assurance_applicationdetailsbyname_post_request) - print("The response of DefaultApi->v2_assurance_applicationdetailsbyname_post:\n") + api_response = api_instance.v2_assurance_bucket_services_post(authorization, v2_assurance_bucket_services_post_request) + print("The response of DefaultApi->v2_assurance_bucket_services_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_applicationdetailsbyname_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_bucket_services_post: %s\n" % e) ``` @@ -31871,11 +35008,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assurance_applicationdetailsbyname_post_request** | [**V2AssuranceApplicationdetailsbynamePostRequest**](V2AssuranceApplicationdetailsbynamePostRequest.md)| | + **v2_assurance_bucket_services_post_request** | [**V2AssuranceBucketServicesPostRequest**](V2AssuranceBucketServicesPostRequest.md)| | ### Return type -[**V2AssuranceApplicationdetailsbynamePostResponse**](V2AssuranceApplicationdetailsbynamePostResponse.md) +[**V2AssuranceBucketServicesPostResponse**](V2AssuranceBucketServicesPostResponse.md) ### Authorization @@ -31894,8 +35031,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) -# **v2_assurance_applicationprofilesummary_post** -> V2AssuranceApplicationprofilesummaryPostResponse v2_assurance_applicationprofilesummary_post(authorization, v2_assurance_applicationprofilesummary_post_request) +# **v2_assurance_bucket_topologies_post** +> V2AssuranceBucketTopologiesPostResponse v2_assurance_bucket_topologies_post(authorization, v2_assurance_bucket_topologies_post_request) ### Example @@ -31903,8 +35040,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_applicationprofilesummary_post_request import V2AssuranceApplicationprofilesummaryPostRequest -from graphiant_sdk.models.v2_assurance_applicationprofilesummary_post_response import V2AssuranceApplicationprofilesummaryPostResponse +from graphiant_sdk.models.v2_assurance_bucket_topologies_post_request import V2AssuranceBucketTopologiesPostRequest +from graphiant_sdk.models.v2_assurance_bucket_topologies_post_response import V2AssuranceBucketTopologiesPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -31930,14 +35067,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 - v2_assurance_applicationprofilesummary_post_request = graphiant_sdk.V2AssuranceApplicationprofilesummaryPostRequest() # V2AssuranceApplicationprofilesummaryPostRequest | + v2_assurance_bucket_topologies_post_request = graphiant_sdk.V2AssuranceBucketTopologiesPostRequest() # V2AssuranceBucketTopologiesPostRequest | try: - api_response = api_instance.v2_assurance_applicationprofilesummary_post(authorization, v2_assurance_applicationprofilesummary_post_request) - print("The response of DefaultApi->v2_assurance_applicationprofilesummary_post:\n") + api_response = api_instance.v2_assurance_bucket_topologies_post(authorization, v2_assurance_bucket_topologies_post_request) + print("The response of DefaultApi->v2_assurance_bucket_topologies_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_applicationprofilesummary_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_bucket_topologies_post: %s\n" % e) ``` @@ -31948,11 +35085,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assurance_applicationprofilesummary_post_request** | [**V2AssuranceApplicationprofilesummaryPostRequest**](V2AssuranceApplicationprofilesummaryPostRequest.md)| | + **v2_assurance_bucket_topologies_post_request** | [**V2AssuranceBucketTopologiesPostRequest**](V2AssuranceBucketTopologiesPostRequest.md)| | ### Return type -[**V2AssuranceApplicationprofilesummaryPostResponse**](V2AssuranceApplicationprofilesummaryPostResponse.md) +[**V2AssuranceBucketTopologiesPostResponse**](V2AssuranceBucketTopologiesPostResponse.md) ### Authorization @@ -31971,8 +35108,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) -# **v2_assurance_bucket_app_servers_post** -> V2AssuranceBucketAppServersPostResponse v2_assurance_bucket_app_servers_post(authorization, v2_assurance_bucket_app_servers_post_request) +# **v2_assurance_bucketdetails_post** +> V2AssuranceBucketdetailsPostResponse v2_assurance_bucketdetails_post(authorization, v2_assurance_bucketdetails_post_request) ### Example @@ -31980,8 +35117,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_bucket_app_servers_post_request import V2AssuranceBucketAppServersPostRequest -from graphiant_sdk.models.v2_assurance_bucket_app_servers_post_response import V2AssuranceBucketAppServersPostResponse +from graphiant_sdk.models.v2_assurance_bucketdetails_post_request import V2AssuranceBucketdetailsPostRequest +from graphiant_sdk.models.v2_assurance_bucketdetails_post_response import V2AssuranceBucketdetailsPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32007,14 +35144,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 - v2_assurance_bucket_app_servers_post_request = graphiant_sdk.V2AssuranceBucketAppServersPostRequest() # V2AssuranceBucketAppServersPostRequest | + v2_assurance_bucketdetails_post_request = graphiant_sdk.V2AssuranceBucketdetailsPostRequest() # V2AssuranceBucketdetailsPostRequest | try: - api_response = api_instance.v2_assurance_bucket_app_servers_post(authorization, v2_assurance_bucket_app_servers_post_request) - print("The response of DefaultApi->v2_assurance_bucket_app_servers_post:\n") + api_response = api_instance.v2_assurance_bucketdetails_post(authorization, v2_assurance_bucketdetails_post_request) + print("The response of DefaultApi->v2_assurance_bucketdetails_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_bucket_app_servers_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_bucketdetails_post: %s\n" % e) ``` @@ -32025,11 +35162,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assurance_bucket_app_servers_post_request** | [**V2AssuranceBucketAppServersPostRequest**](V2AssuranceBucketAppServersPostRequest.md)| | + **v2_assurance_bucketdetails_post_request** | [**V2AssuranceBucketdetailsPostRequest**](V2AssuranceBucketdetailsPostRequest.md)| | ### Return type -[**V2AssuranceBucketAppServersPostResponse**](V2AssuranceBucketAppServersPostResponse.md) +[**V2AssuranceBucketdetailsPostResponse**](V2AssuranceBucketdetailsPostResponse.md) ### Authorization @@ -32048,8 +35185,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) -# **v2_assurance_bucket_apps_post** -> V2AssuranceBucketAppsPostResponse v2_assurance_bucket_apps_post(authorization, v2_assurance_bucket_apps_post_request) +# **v2_assurance_create_ai_adoption_approve_entry_post** +> V2AssuranceCreateAiAdoptionApproveEntryPostResponse v2_assurance_create_ai_adoption_approve_entry_post(authorization, v2_assurance_create_ai_adoption_approve_entry_post_request) ### Example @@ -32057,8 +35194,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_bucket_apps_post_request import V2AssuranceBucketAppsPostRequest -from graphiant_sdk.models.v2_assurance_bucket_apps_post_response import V2AssuranceBucketAppsPostResponse +from graphiant_sdk.models.v2_assurance_create_ai_adoption_approve_entry_post_request import V2AssuranceCreateAiAdoptionApproveEntryPostRequest +from graphiant_sdk.models.v2_assurance_create_ai_adoption_approve_entry_post_response import V2AssuranceCreateAiAdoptionApproveEntryPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32084,14 +35221,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 - v2_assurance_bucket_apps_post_request = graphiant_sdk.V2AssuranceBucketAppsPostRequest() # V2AssuranceBucketAppsPostRequest | + v2_assurance_create_ai_adoption_approve_entry_post_request = graphiant_sdk.V2AssuranceCreateAiAdoptionApproveEntryPostRequest() # V2AssuranceCreateAiAdoptionApproveEntryPostRequest | try: - api_response = api_instance.v2_assurance_bucket_apps_post(authorization, v2_assurance_bucket_apps_post_request) - print("The response of DefaultApi->v2_assurance_bucket_apps_post:\n") + api_response = api_instance.v2_assurance_create_ai_adoption_approve_entry_post(authorization, v2_assurance_create_ai_adoption_approve_entry_post_request) + print("The response of DefaultApi->v2_assurance_create_ai_adoption_approve_entry_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_bucket_apps_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_create_ai_adoption_approve_entry_post: %s\n" % e) ``` @@ -32102,11 +35239,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assurance_bucket_apps_post_request** | [**V2AssuranceBucketAppsPostRequest**](V2AssuranceBucketAppsPostRequest.md)| | + **v2_assurance_create_ai_adoption_approve_entry_post_request** | [**V2AssuranceCreateAiAdoptionApproveEntryPostRequest**](V2AssuranceCreateAiAdoptionApproveEntryPostRequest.md)| | ### Return type -[**V2AssuranceBucketAppsPostResponse**](V2AssuranceBucketAppsPostResponse.md) +[**V2AssuranceCreateAiAdoptionApproveEntryPostResponse**](V2AssuranceCreateAiAdoptionApproveEntryPostResponse.md) ### Authorization @@ -32125,8 +35262,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) -# **v2_assurance_bucket_services_post** -> V2AssuranceBucketServicesPostResponse v2_assurance_bucket_services_post(authorization, v2_assurance_bucket_services_post_request) +# **v2_assurance_create_dnsproxy_entry_post** +> V2AssuranceCreateDnsproxyEntryPostResponse v2_assurance_create_dnsproxy_entry_post(authorization, v2_assurance_create_dnsproxy_entry_post_request) ### Example @@ -32134,8 +35271,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_bucket_services_post_request import V2AssuranceBucketServicesPostRequest -from graphiant_sdk.models.v2_assurance_bucket_services_post_response import V2AssuranceBucketServicesPostResponse +from graphiant_sdk.models.v2_assurance_create_dnsproxy_entry_post_request import V2AssuranceCreateDnsproxyEntryPostRequest +from graphiant_sdk.models.v2_assurance_create_dnsproxy_entry_post_response import V2AssuranceCreateDnsproxyEntryPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32161,14 +35298,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 - v2_assurance_bucket_services_post_request = graphiant_sdk.V2AssuranceBucketServicesPostRequest() # V2AssuranceBucketServicesPostRequest | + v2_assurance_create_dnsproxy_entry_post_request = graphiant_sdk.V2AssuranceCreateDnsproxyEntryPostRequest() # V2AssuranceCreateDnsproxyEntryPostRequest | try: - api_response = api_instance.v2_assurance_bucket_services_post(authorization, v2_assurance_bucket_services_post_request) - print("The response of DefaultApi->v2_assurance_bucket_services_post:\n") + api_response = api_instance.v2_assurance_create_dnsproxy_entry_post(authorization, v2_assurance_create_dnsproxy_entry_post_request) + print("The response of DefaultApi->v2_assurance_create_dnsproxy_entry_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_bucket_services_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_create_dnsproxy_entry_post: %s\n" % e) ``` @@ -32179,11 +35316,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assurance_bucket_services_post_request** | [**V2AssuranceBucketServicesPostRequest**](V2AssuranceBucketServicesPostRequest.md)| | + **v2_assurance_create_dnsproxy_entry_post_request** | [**V2AssuranceCreateDnsproxyEntryPostRequest**](V2AssuranceCreateDnsproxyEntryPostRequest.md)| | ### Return type -[**V2AssuranceBucketServicesPostResponse**](V2AssuranceBucketServicesPostResponse.md) +[**V2AssuranceCreateDnsproxyEntryPostResponse**](V2AssuranceCreateDnsproxyEntryPostResponse.md) ### Authorization @@ -32202,8 +35339,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) -# **v2_assurance_bucket_topologies_post** -> V2AssuranceBucketTopologiesPostResponse v2_assurance_bucket_topologies_post(authorization, v2_assurance_bucket_topologies_post_request) +# **v2_assurance_create_user_report_post** +> V2AssuranceCreateUserReportPostResponse v2_assurance_create_user_report_post(authorization, v2_assurance_create_user_report_post_request) ### Example @@ -32211,8 +35348,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_bucket_topologies_post_request import V2AssuranceBucketTopologiesPostRequest -from graphiant_sdk.models.v2_assurance_bucket_topologies_post_response import V2AssuranceBucketTopologiesPostResponse +from graphiant_sdk.models.v2_assurance_create_user_report_post_request import V2AssuranceCreateUserReportPostRequest +from graphiant_sdk.models.v2_assurance_create_user_report_post_response import V2AssuranceCreateUserReportPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32238,14 +35375,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 - v2_assurance_bucket_topologies_post_request = graphiant_sdk.V2AssuranceBucketTopologiesPostRequest() # V2AssuranceBucketTopologiesPostRequest | + v2_assurance_create_user_report_post_request = graphiant_sdk.V2AssuranceCreateUserReportPostRequest() # V2AssuranceCreateUserReportPostRequest | try: - api_response = api_instance.v2_assurance_bucket_topologies_post(authorization, v2_assurance_bucket_topologies_post_request) - print("The response of DefaultApi->v2_assurance_bucket_topologies_post:\n") + api_response = api_instance.v2_assurance_create_user_report_post(authorization, v2_assurance_create_user_report_post_request) + print("The response of DefaultApi->v2_assurance_create_user_report_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_bucket_topologies_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_create_user_report_post: %s\n" % e) ``` @@ -32256,11 +35393,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assurance_bucket_topologies_post_request** | [**V2AssuranceBucketTopologiesPostRequest**](V2AssuranceBucketTopologiesPostRequest.md)| | + **v2_assurance_create_user_report_post_request** | [**V2AssuranceCreateUserReportPostRequest**](V2AssuranceCreateUserReportPostRequest.md)| | ### Return type -[**V2AssuranceBucketTopologiesPostResponse**](V2AssuranceBucketTopologiesPostResponse.md) +[**V2AssuranceCreateUserReportPostResponse**](V2AssuranceCreateUserReportPostResponse.md) ### Authorization @@ -32279,8 +35416,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) -# **v2_assurance_bucketdetails_post** -> V2AssuranceBucketdetailsPostResponse v2_assurance_bucketdetails_post(authorization, v2_assurance_bucketdetails_post_request) +# **v2_assurance_createclassifiedapplication_post** +> V2AssuranceCreateclassifiedapplicationPostResponse v2_assurance_createclassifiedapplication_post(authorization, v2_assurance_createclassifiedapplication_post_request) ### Example @@ -32288,8 +35425,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_bucketdetails_post_request import V2AssuranceBucketdetailsPostRequest -from graphiant_sdk.models.v2_assurance_bucketdetails_post_response import V2AssuranceBucketdetailsPostResponse +from graphiant_sdk.models.v2_assurance_createclassifiedapplication_post_request import V2AssuranceCreateclassifiedapplicationPostRequest +from graphiant_sdk.models.v2_assurance_createclassifiedapplication_post_response import V2AssuranceCreateclassifiedapplicationPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32315,14 +35452,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 - v2_assurance_bucketdetails_post_request = graphiant_sdk.V2AssuranceBucketdetailsPostRequest() # V2AssuranceBucketdetailsPostRequest | + v2_assurance_createclassifiedapplication_post_request = graphiant_sdk.V2AssuranceCreateclassifiedapplicationPostRequest() # V2AssuranceCreateclassifiedapplicationPostRequest | try: - api_response = api_instance.v2_assurance_bucketdetails_post(authorization, v2_assurance_bucketdetails_post_request) - print("The response of DefaultApi->v2_assurance_bucketdetails_post:\n") + api_response = api_instance.v2_assurance_createclassifiedapplication_post(authorization, v2_assurance_createclassifiedapplication_post_request) + print("The response of DefaultApi->v2_assurance_createclassifiedapplication_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_bucketdetails_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_createclassifiedapplication_post: %s\n" % e) ``` @@ -32333,11 +35470,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assurance_bucketdetails_post_request** | [**V2AssuranceBucketdetailsPostRequest**](V2AssuranceBucketdetailsPostRequest.md)| | + **v2_assurance_createclassifiedapplication_post_request** | [**V2AssuranceCreateclassifiedapplicationPostRequest**](V2AssuranceCreateclassifiedapplicationPostRequest.md)| | ### Return type -[**V2AssuranceBucketdetailsPostResponse**](V2AssuranceBucketdetailsPostResponse.md) +[**V2AssuranceCreateclassifiedapplicationPostResponse**](V2AssuranceCreateclassifiedapplicationPostResponse.md) ### Authorization @@ -32356,8 +35493,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) -# **v2_assurance_create_dnsproxy_entry_post** -> V2AssuranceCreateDnsproxyEntryPostResponse v2_assurance_create_dnsproxy_entry_post(authorization, v2_assurance_create_dnsproxy_entry_post_request) +# **v2_assurance_delete_ai_adoption_approve_entry_delete** +> object v2_assurance_delete_ai_adoption_approve_entry_delete(authorization, id_list) ### Example @@ -32365,8 +35502,6 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_create_dnsproxy_entry_post_request import V2AssuranceCreateDnsproxyEntryPostRequest -from graphiant_sdk.models.v2_assurance_create_dnsproxy_entry_post_response import V2AssuranceCreateDnsproxyEntryPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32392,14 +35527,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 - v2_assurance_create_dnsproxy_entry_post_request = graphiant_sdk.V2AssuranceCreateDnsproxyEntryPostRequest() # V2AssuranceCreateDnsproxyEntryPostRequest | + id_list = ['[\"example\"]'] # List[str] | list of approved app entry identifiers to delete try: - api_response = api_instance.v2_assurance_create_dnsproxy_entry_post(authorization, v2_assurance_create_dnsproxy_entry_post_request) - print("The response of DefaultApi->v2_assurance_create_dnsproxy_entry_post:\n") + api_response = api_instance.v2_assurance_delete_ai_adoption_approve_entry_delete(authorization, id_list) + print("The response of DefaultApi->v2_assurance_delete_ai_adoption_approve_entry_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_create_dnsproxy_entry_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_delete_ai_adoption_approve_entry_delete: %s\n" % e) ``` @@ -32410,11 +35545,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assurance_create_dnsproxy_entry_post_request** | [**V2AssuranceCreateDnsproxyEntryPostRequest**](V2AssuranceCreateDnsproxyEntryPostRequest.md)| | + **id_list** | [**List[str]**](str.md)| list of approved app entry identifiers to delete | ### Return type -[**V2AssuranceCreateDnsproxyEntryPostResponse**](V2AssuranceCreateDnsproxyEntryPostResponse.md) +**object** ### Authorization @@ -32422,7 +35557,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -32433,8 +35568,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) -# **v2_assurance_create_user_report_post** -> V2AssuranceCreateUserReportPostResponse v2_assurance_create_user_report_post(authorization, v2_assurance_create_user_report_post_request) +# **v2_assurance_delete_dnsproxy_entry_delete** +> object v2_assurance_delete_dnsproxy_entry_delete(authorization) ### Example @@ -32442,8 +35577,6 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_create_user_report_post_request import V2AssuranceCreateUserReportPostRequest -from graphiant_sdk.models.v2_assurance_create_user_report_post_response import V2AssuranceCreateUserReportPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32469,14 +35602,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 - v2_assurance_create_user_report_post_request = graphiant_sdk.V2AssuranceCreateUserReportPostRequest() # V2AssuranceCreateUserReportPostRequest | try: - api_response = api_instance.v2_assurance_create_user_report_post(authorization, v2_assurance_create_user_report_post_request) - print("The response of DefaultApi->v2_assurance_create_user_report_post:\n") + api_response = api_instance.v2_assurance_delete_dnsproxy_entry_delete(authorization) + print("The response of DefaultApi->v2_assurance_delete_dnsproxy_entry_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_create_user_report_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_delete_dnsproxy_entry_delete: %s\n" % e) ``` @@ -32487,11 +35619,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assurance_create_user_report_post_request** | [**V2AssuranceCreateUserReportPostRequest**](V2AssuranceCreateUserReportPostRequest.md)| | ### Return type -[**V2AssuranceCreateUserReportPostResponse**](V2AssuranceCreateUserReportPostResponse.md) +**object** ### Authorization @@ -32499,7 +35630,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -32510,8 +35641,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) -# **v2_assurance_createclassifiedapplication_post** -> V2AssuranceCreateclassifiedapplicationPostResponse v2_assurance_createclassifiedapplication_post(authorization, v2_assurance_createclassifiedapplication_post_request) +# **v2_assurance_delete_user_report_delete** +> object v2_assurance_delete_user_report_delete(authorization, report_id=report_id) ### Example @@ -32519,8 +35650,6 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_createclassifiedapplication_post_request import V2AssuranceCreateclassifiedapplicationPostRequest -from graphiant_sdk.models.v2_assurance_createclassifiedapplication_post_response import V2AssuranceCreateclassifiedapplicationPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32546,14 +35675,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 - v2_assurance_createclassifiedapplication_post_request = graphiant_sdk.V2AssuranceCreateclassifiedapplicationPostRequest() # V2AssuranceCreateclassifiedapplicationPostRequest | + report_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v2_assurance_createclassifiedapplication_post(authorization, v2_assurance_createclassifiedapplication_post_request) - print("The response of DefaultApi->v2_assurance_createclassifiedapplication_post:\n") + api_response = api_instance.v2_assurance_delete_user_report_delete(authorization, report_id=report_id) + print("The response of DefaultApi->v2_assurance_delete_user_report_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_createclassifiedapplication_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_delete_user_report_delete: %s\n" % e) ``` @@ -32564,11 +35693,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assurance_createclassifiedapplication_post_request** | [**V2AssuranceCreateclassifiedapplicationPostRequest**](V2AssuranceCreateclassifiedapplicationPostRequest.md)| | + **report_id** | **int**| | [optional] ### Return type -[**V2AssuranceCreateclassifiedapplicationPostResponse**](V2AssuranceCreateclassifiedapplicationPostResponse.md) +**object** ### Authorization @@ -32576,7 +35705,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -32587,8 +35716,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) -# **v2_assurance_delete_dnsproxy_entry_delete** -> object v2_assurance_delete_dnsproxy_entry_delete(authorization) +# **v2_assurance_deleteclassifiedapplication_delete** +> object v2_assurance_deleteclassifiedapplication_delete(authorization, classification_entry_id_list=classification_entry_id_list) ### Example @@ -32621,13 +35750,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 + classification_entry_id_list = ['[\"example\"]'] # List[str] | (optional) try: - api_response = api_instance.v2_assurance_delete_dnsproxy_entry_delete(authorization) - print("The response of DefaultApi->v2_assurance_delete_dnsproxy_entry_delete:\n") + api_response = api_instance.v2_assurance_deleteclassifiedapplication_delete(authorization, classification_entry_id_list=classification_entry_id_list) + print("The response of DefaultApi->v2_assurance_deleteclassifiedapplication_delete:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_delete_dnsproxy_entry_delete: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_deleteclassifiedapplication_delete: %s\n" % e) ``` @@ -32638,6 +35768,7 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **classification_entry_id_list** | [**List[str]**](str.md)| | [optional] ### Return type @@ -32660,8 +35791,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) -# **v2_assurance_delete_user_report_delete** -> object v2_assurance_delete_user_report_delete(authorization, report_id=report_id) +# **v2_assurance_download_user_report_get** +> V2AssuranceDownloadUserReportGetResponse v2_assurance_download_user_report_get(authorization) ### Example @@ -32669,6 +35800,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk +from graphiant_sdk.models.v2_assurance_download_user_report_get_response import V2AssuranceDownloadUserReportGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32694,14 +35826,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 - report_id = 1234567891011 # int | (optional) try: - api_response = api_instance.v2_assurance_delete_user_report_delete(authorization, report_id=report_id) - print("The response of DefaultApi->v2_assurance_delete_user_report_delete:\n") + api_response = api_instance.v2_assurance_download_user_report_get(authorization) + print("The response of DefaultApi->v2_assurance_download_user_report_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_delete_user_report_delete: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_download_user_report_get: %s\n" % e) ``` @@ -32712,11 +35843,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **report_id** | **int**| | [optional] ### Return type -**object** +[**V2AssuranceDownloadUserReportGetResponse**](V2AssuranceDownloadUserReportGetResponse.md) ### Authorization @@ -32735,8 +35865,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) -# **v2_assurance_deleteclassifiedapplication_delete** -> object v2_assurance_deleteclassifiedapplication_delete(authorization, classification_entry_id_list=classification_entry_id_list) +# **v2_assurance_enterprisesummary_post** +> V2AssuranceEnterprisesummaryPostResponse v2_assurance_enterprisesummary_post(authorization, v2_assurance_enterprisesummary_post_request) ### Example @@ -32744,6 +35874,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk +from graphiant_sdk.models.v2_assurance_enterprisesummary_post_request import V2AssuranceEnterprisesummaryPostRequest +from graphiant_sdk.models.v2_assurance_enterprisesummary_post_response import V2AssuranceEnterprisesummaryPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32769,14 +35901,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 - classification_entry_id_list = ['[\"example\"]'] # List[str] | (optional) + v2_assurance_enterprisesummary_post_request = graphiant_sdk.V2AssuranceEnterprisesummaryPostRequest() # V2AssuranceEnterprisesummaryPostRequest | try: - api_response = api_instance.v2_assurance_deleteclassifiedapplication_delete(authorization, classification_entry_id_list=classification_entry_id_list) - print("The response of DefaultApi->v2_assurance_deleteclassifiedapplication_delete:\n") + api_response = api_instance.v2_assurance_enterprisesummary_post(authorization, v2_assurance_enterprisesummary_post_request) + print("The response of DefaultApi->v2_assurance_enterprisesummary_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_deleteclassifiedapplication_delete: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_enterprisesummary_post: %s\n" % e) ``` @@ -32787,11 +35919,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **classification_entry_id_list** | [**List[str]**](str.md)| | [optional] + **v2_assurance_enterprisesummary_post_request** | [**V2AssuranceEnterprisesummaryPostRequest**](V2AssuranceEnterprisesummaryPostRequest.md)| | ### Return type -**object** +[**V2AssuranceEnterprisesummaryPostResponse**](V2AssuranceEnterprisesummaryPostResponse.md) ### Authorization @@ -32799,7 +35931,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -32810,8 +35942,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) -# **v2_assurance_download_user_report_get** -> V2AssuranceDownloadUserReportGetResponse v2_assurance_download_user_report_get(authorization) +# **v2_assurance_get_app_names_post** +> V2AssuranceGetAppNamesPostResponse v2_assurance_get_app_names_post(authorization, v2_assurance_get_app_names_post_request) ### Example @@ -32819,7 +35951,8 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_download_user_report_get_response import V2AssuranceDownloadUserReportGetResponse +from graphiant_sdk.models.v2_assurance_get_app_names_post_request import V2AssuranceGetAppNamesPostRequest +from graphiant_sdk.models.v2_assurance_get_app_names_post_response import V2AssuranceGetAppNamesPostResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32845,13 +35978,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 + v2_assurance_get_app_names_post_request = graphiant_sdk.V2AssuranceGetAppNamesPostRequest() # V2AssuranceGetAppNamesPostRequest | try: - api_response = api_instance.v2_assurance_download_user_report_get(authorization) - print("The response of DefaultApi->v2_assurance_download_user_report_get:\n") + api_response = api_instance.v2_assurance_get_app_names_post(authorization, v2_assurance_get_app_names_post_request) + print("The response of DefaultApi->v2_assurance_get_app_names_post:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_download_user_report_get: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_get_app_names_post: %s\n" % e) ``` @@ -32862,10 +35996,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v2_assurance_get_app_names_post_request** | [**V2AssuranceGetAppNamesPostRequest**](V2AssuranceGetAppNamesPostRequest.md)| | ### Return type -[**V2AssuranceDownloadUserReportGetResponse**](V2AssuranceDownloadUserReportGetResponse.md) +[**V2AssuranceGetAppNamesPostResponse**](V2AssuranceGetAppNamesPostResponse.md) ### Authorization @@ -32873,7 +36008,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json ### HTTP response details @@ -32884,8 +36019,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) -# **v2_assurance_enterprisesummary_post** -> V2AssuranceEnterprisesummaryPostResponse v2_assurance_enterprisesummary_post(authorization, v2_assurance_enterprisesummary_post_request) +# **v2_assurance_getclassifiedapplicationlist_get** +> V2AssuranceGetclassifiedapplicationlistGetResponse v2_assurance_getclassifiedapplicationlist_get(authorization) ### Example @@ -32893,8 +36028,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_enterprisesummary_post_request import V2AssuranceEnterprisesummaryPostRequest -from graphiant_sdk.models.v2_assurance_enterprisesummary_post_response import V2AssuranceEnterprisesummaryPostResponse +from graphiant_sdk.models.v2_assurance_getclassifiedapplicationlist_get_response import V2AssuranceGetclassifiedapplicationlistGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32920,14 +36054,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 - v2_assurance_enterprisesummary_post_request = graphiant_sdk.V2AssuranceEnterprisesummaryPostRequest() # V2AssuranceEnterprisesummaryPostRequest | try: - api_response = api_instance.v2_assurance_enterprisesummary_post(authorization, v2_assurance_enterprisesummary_post_request) - print("The response of DefaultApi->v2_assurance_enterprisesummary_post:\n") + api_response = api_instance.v2_assurance_getclassifiedapplicationlist_get(authorization) + print("The response of DefaultApi->v2_assurance_getclassifiedapplicationlist_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_enterprisesummary_post: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_getclassifiedapplicationlist_get: %s\n" % e) ``` @@ -32938,11 +36071,10 @@ with graphiant_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | - **v2_assurance_enterprisesummary_post_request** | [**V2AssuranceEnterprisesummaryPostRequest**](V2AssuranceEnterprisesummaryPostRequest.md)| | ### Return type -[**V2AssuranceEnterprisesummaryPostResponse**](V2AssuranceEnterprisesummaryPostResponse.md) +[**V2AssuranceGetclassifiedapplicationlistGetResponse**](V2AssuranceGetclassifiedapplicationlistGetResponse.md) ### Authorization @@ -32950,7 +36082,7 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details @@ -32961,8 +36093,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) -# **v2_assurance_getclassifiedapplicationlist_get** -> V2AssuranceGetclassifiedapplicationlistGetResponse v2_assurance_getclassifiedapplicationlist_get(authorization) +# **v2_assurance_read_ai_adoption_approve_entries_get** +> V2AssuranceReadAiAdoptionApproveEntriesGetResponse v2_assurance_read_ai_adoption_approve_entries_get(authorization) ### Example @@ -32970,7 +36102,7 @@ Name | Type | Description | Notes ```python import graphiant_sdk -from graphiant_sdk.models.v2_assurance_getclassifiedapplicationlist_get_response import V2AssuranceGetclassifiedapplicationlistGetResponse +from graphiant_sdk.models.v2_assurance_read_ai_adoption_approve_entries_get_response import V2AssuranceReadAiAdoptionApproveEntriesGetResponse from graphiant_sdk.rest import ApiException from pprint import pprint @@ -32998,11 +36130,11 @@ with graphiant_sdk.ApiClient(configuration) as api_client: authorization = 'authorization_example' # str | Bearer token. Format: Bearer try: - api_response = api_instance.v2_assurance_getclassifiedapplicationlist_get(authorization) - print("The response of DefaultApi->v2_assurance_getclassifiedapplicationlist_get:\n") + api_response = api_instance.v2_assurance_read_ai_adoption_approve_entries_get(authorization) + print("The response of DefaultApi->v2_assurance_read_ai_adoption_approve_entries_get:\n") pprint(api_response) except Exception as e: - print("Exception when calling DefaultApi->v2_assurance_getclassifiedapplicationlist_get: %s\n" % e) + print("Exception when calling DefaultApi->v2_assurance_read_ai_adoption_approve_entries_get: %s\n" % e) ``` @@ -33016,7 +36148,7 @@ Name | Type | Description | Notes ### Return type -[**V2AssuranceGetclassifiedapplicationlistGetResponse**](V2AssuranceGetclassifiedapplicationlistGetResponse.md) +[**V2AssuranceReadAiAdoptionApproveEntriesGetResponse**](V2AssuranceReadAiAdoptionApproveEntriesGetResponse.md) ### Authorization @@ -33876,6 +37008,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) +# **v2_assurance_update_ai_adoption_approve_entry_post** +> object v2_assurance_update_ai_adoption_approve_entry_post(authorization, v2_assurance_update_ai_adoption_approve_entry_post_request) + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v2_assurance_update_ai_adoption_approve_entry_post_request import V2AssuranceUpdateAiAdoptionApproveEntryPostRequest +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 + v2_assurance_update_ai_adoption_approve_entry_post_request = graphiant_sdk.V2AssuranceUpdateAiAdoptionApproveEntryPostRequest() # V2AssuranceUpdateAiAdoptionApproveEntryPostRequest | + + try: + api_response = api_instance.v2_assurance_update_ai_adoption_approve_entry_post(authorization, v2_assurance_update_ai_adoption_approve_entry_post_request) + print("The response of DefaultApi->v2_assurance_update_ai_adoption_approve_entry_post:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v2_assurance_update_ai_adoption_approve_entry_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v2_assurance_update_ai_adoption_approve_entry_post_request** | [**V2AssuranceUpdateAiAdoptionApproveEntryPostRequest**](V2AssuranceUpdateAiAdoptionApproveEntryPostRequest.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_assurance_update_dnsproxy_entry_post** > object v2_assurance_update_dnsproxy_entry_post(authorization, v2_assurance_update_dnsproxy_entry_post_request) diff --git a/docs/ManaV2B2BExtranetMatchConsumerDetailsCustomer.md b/docs/ManaV2B2BExtranetMatchConsumerDetailsCustomer.md new file mode 100644 index 00000000..08b31098 --- /dev/null +++ b/docs/ManaV2B2BExtranetMatchConsumerDetailsCustomer.md @@ -0,0 +1,32 @@ +# ManaV2B2BExtranetMatchConsumerDetailsCustomer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**admin_emails** | **List[str]** | | [optional] +**company_name** | **str** | | [optional] +**id** | **int** | | [optional] +**num_sites** | **int** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_customer import ManaV2B2BExtranetMatchConsumerDetailsCustomer + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2B2BExtranetMatchConsumerDetailsCustomer from a JSON string +mana_v2_b2_b_extranet_match_consumer_details_customer_instance = ManaV2B2BExtranetMatchConsumerDetailsCustomer.from_json(json) +# print the JSON string representation of the object +print(ManaV2B2BExtranetMatchConsumerDetailsCustomer.to_json()) + +# convert the object into a dict +mana_v2_b2_b_extranet_match_consumer_details_customer_dict = mana_v2_b2_b_extranet_match_consumer_details_customer_instance.to_dict() +# create an instance of ManaV2B2BExtranetMatchConsumerDetailsCustomer from a dict +mana_v2_b2_b_extranet_match_consumer_details_customer_from_dict = ManaV2B2BExtranetMatchConsumerDetailsCustomer.from_dict(mana_v2_b2_b_extranet_match_consumer_details_customer_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/ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix.md b/docs/ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix.md new file mode 100644 index 00000000..8bb54919 --- /dev/null +++ b/docs/ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix.md @@ -0,0 +1,31 @@ +# ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer_translated_prefix** | **str** | | [optional] +**prefix** | **str** | | [optional] +**tag** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_producer_prefix import ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix from a JSON string +mana_v2_b2_b_extranet_match_consumer_details_producer_prefix_instance = ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix.from_json(json) +# print the JSON string representation of the object +print(ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix.to_json()) + +# convert the object into a dict +mana_v2_b2_b_extranet_match_consumer_details_producer_prefix_dict = mana_v2_b2_b_extranet_match_consumer_details_producer_prefix_instance.to_dict() +# create an instance of ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix from a dict +mana_v2_b2_b_extranet_match_consumer_details_producer_prefix_from_dict = ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix.from_dict(mana_v2_b2_b_extranet_match_consumer_details_producer_prefix_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/ManaV2B2BExtranetMatchConsumerDetailsService.md b/docs/ManaV2B2BExtranetMatchConsumerDetailsService.md new file mode 100644 index 00000000..d6fbde61 --- /dev/null +++ b/docs/ManaV2B2BExtranetMatchConsumerDetailsService.md @@ -0,0 +1,33 @@ +# ManaV2B2BExtranetMatchConsumerDetailsService + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**company_name** | **str** | | [optional] +**contact_email** | **List[str]** | | [optional] +**description** | **str** | | [optional] +**id** | **int** | | [optional] +**service_name** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_service import ManaV2B2BExtranetMatchConsumerDetailsService + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2B2BExtranetMatchConsumerDetailsService from a JSON string +mana_v2_b2_b_extranet_match_consumer_details_service_instance = ManaV2B2BExtranetMatchConsumerDetailsService.from_json(json) +# print the JSON string representation of the object +print(ManaV2B2BExtranetMatchConsumerDetailsService.to_json()) + +# convert the object into a dict +mana_v2_b2_b_extranet_match_consumer_details_service_dict = mana_v2_b2_b_extranet_match_consumer_details_service_instance.to_dict() +# create an instance of ManaV2B2BExtranetMatchConsumerDetailsService from a dict +mana_v2_b2_b_extranet_match_consumer_details_service_from_dict = ManaV2B2BExtranetMatchConsumerDetailsService.from_dict(mana_v2_b2_b_extranet_match_consumer_details_service_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/ManaV2B2bExtranetMatch.md b/docs/ManaV2B2bExtranetMatch.md new file mode 100644 index 00000000..c523eecb --- /dev/null +++ b/docs/ManaV2B2bExtranetMatch.md @@ -0,0 +1,34 @@ +# ManaV2B2bExtranetMatch + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_prefixes** | **List[str]** | | [optional] +**lan_segment** | **int** | | [optional] +**nat_translation_mode** | [**ManaV2ExtranetNatTranslationMode**](ManaV2ExtranetNatTranslationMode.md) | | [optional] +**num_customers** | **int** | Number of customers subscribed to the service | [optional] +**service_id** | **int** | Producer service id | [optional] +**service_prefixes** | [**List[ManaV2B2bExtranetPrefixTag]**](ManaV2B2bExtranetPrefixTag.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_b2b_extranet_match import ManaV2B2bExtranetMatch + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2B2bExtranetMatch from a JSON string +mana_v2_b2b_extranet_match_instance = ManaV2B2bExtranetMatch.from_json(json) +# print the JSON string representation of the object +print(ManaV2B2bExtranetMatch.to_json()) + +# convert the object into a dict +mana_v2_b2b_extranet_match_dict = mana_v2_b2b_extranet_match_instance.to_dict() +# create an instance of ManaV2B2bExtranetMatch from a dict +mana_v2_b2b_extranet_match_from_dict = ManaV2B2bExtranetMatch.from_dict(mana_v2_b2b_extranet_match_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/ManaV2B2bExtranetMatchConsumerDetails.md b/docs/ManaV2B2bExtranetMatchConsumerDetails.md new file mode 100644 index 00000000..2e408f8f --- /dev/null +++ b/docs/ManaV2B2bExtranetMatchConsumerDetails.md @@ -0,0 +1,35 @@ +# ManaV2B2bExtranetMatchConsumerDetails + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_id** | **int** | | [optional] +**consumer_prefixes** | **List[str]** | | [optional] +**customer** | [**ManaV2B2BExtranetMatchConsumerDetailsCustomer**](ManaV2B2BExtranetMatchConsumerDetailsCustomer.md) | | [optional] +**old_consumer_prefixes** | **List[str]** | | [optional] +**old_service_prefixes** | [**List[ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix]**](ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix.md) | | [optional] +**service** | [**ManaV2B2BExtranetMatchConsumerDetailsService**](ManaV2B2BExtranetMatchConsumerDetailsService.md) | | [optional] +**service_prefixes** | [**List[ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix]**](ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_b2b_extranet_match_consumer_details import ManaV2B2bExtranetMatchConsumerDetails + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2B2bExtranetMatchConsumerDetails from a JSON string +mana_v2_b2b_extranet_match_consumer_details_instance = ManaV2B2bExtranetMatchConsumerDetails.from_json(json) +# print the JSON string representation of the object +print(ManaV2B2bExtranetMatchConsumerDetails.to_json()) + +# convert the object into a dict +mana_v2_b2b_extranet_match_consumer_details_dict = mana_v2_b2b_extranet_match_consumer_details_instance.to_dict() +# create an instance of ManaV2B2bExtranetMatchConsumerDetails from a dict +mana_v2_b2b_extranet_match_consumer_details_from_dict = ManaV2B2bExtranetMatchConsumerDetails.from_dict(mana_v2_b2b_extranet_match_consumer_details_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/ManaV2ExtranetConsumerLanPrefixes.md b/docs/ManaV2ExtranetConsumerLanPrefixes.md new file mode 100644 index 00000000..c8614bfe --- /dev/null +++ b/docs/ManaV2ExtranetConsumerLanPrefixes.md @@ -0,0 +1,30 @@ +# ManaV2ExtranetConsumerLanPrefixes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_prefixes** | **List[str]** | | [optional] +**service_prefix_dnat** | **Dict[str, str]** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes import ManaV2ExtranetConsumerLanPrefixes + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetConsumerLanPrefixes from a JSON string +mana_v2_extranet_consumer_lan_prefixes_instance = ManaV2ExtranetConsumerLanPrefixes.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetConsumerLanPrefixes.to_json()) + +# convert the object into a dict +mana_v2_extranet_consumer_lan_prefixes_dict = mana_v2_extranet_consumer_lan_prefixes_instance.to_dict() +# create an instance of ManaV2ExtranetConsumerLanPrefixes from a dict +mana_v2_extranet_consumer_lan_prefixes_from_dict = ManaV2ExtranetConsumerLanPrefixes.from_dict(mana_v2_extranet_consumer_lan_prefixes_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/ManaV2ExtranetNatTranslationCentralized.md b/docs/ManaV2ExtranetNatTranslationCentralized.md new file mode 100644 index 00000000..70181a0f --- /dev/null +++ b/docs/ManaV2ExtranetNatTranslationCentralized.md @@ -0,0 +1,29 @@ +# ManaV2ExtranetNatTranslationCentralized + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**prefixes** | [**Dict[str, ManaV2ExtranetNatTranslationDevicePrefixes]**](ManaV2ExtranetNatTranslationDevicePrefixes.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized import ManaV2ExtranetNatTranslationCentralized + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetNatTranslationCentralized from a JSON string +mana_v2_extranet_nat_translation_centralized_instance = ManaV2ExtranetNatTranslationCentralized.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetNatTranslationCentralized.to_json()) + +# convert the object into a dict +mana_v2_extranet_nat_translation_centralized_dict = mana_v2_extranet_nat_translation_centralized_instance.to_dict() +# create an instance of ManaV2ExtranetNatTranslationCentralized from a dict +mana_v2_extranet_nat_translation_centralized_from_dict = ManaV2ExtranetNatTranslationCentralized.from_dict(mana_v2_extranet_nat_translation_centralized_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/ManaV2ExtranetNatTranslationDecentralized.md b/docs/ManaV2ExtranetNatTranslationDecentralized.md new file mode 100644 index 00000000..fb974ac0 --- /dev/null +++ b/docs/ManaV2ExtranetNatTranslationDecentralized.md @@ -0,0 +1,29 @@ +# ManaV2ExtranetNatTranslationDecentralized + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**prefixes** | [**Dict[str, ManaV2ExtranetNatTranslationDevicePrefixes]**](ManaV2ExtranetNatTranslationDevicePrefixes.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized import ManaV2ExtranetNatTranslationDecentralized + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetNatTranslationDecentralized from a JSON string +mana_v2_extranet_nat_translation_decentralized_instance = ManaV2ExtranetNatTranslationDecentralized.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetNatTranslationDecentralized.to_json()) + +# convert the object into a dict +mana_v2_extranet_nat_translation_decentralized_dict = mana_v2_extranet_nat_translation_decentralized_instance.to_dict() +# create an instance of ManaV2ExtranetNatTranslationDecentralized from a dict +mana_v2_extranet_nat_translation_decentralized_from_dict = ManaV2ExtranetNatTranslationDecentralized.from_dict(mana_v2_extranet_nat_translation_decentralized_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/ManaV2ExtranetNatTranslationDevicePrefixes.md b/docs/ManaV2ExtranetNatTranslationDevicePrefixes.md new file mode 100644 index 00000000..9e5cd0b7 --- /dev/null +++ b/docs/ManaV2ExtranetNatTranslationDevicePrefixes.md @@ -0,0 +1,29 @@ +# ManaV2ExtranetNatTranslationDevicePrefixes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**prefixes** | **List[str]** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes import ManaV2ExtranetNatTranslationDevicePrefixes + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetNatTranslationDevicePrefixes from a JSON string +mana_v2_extranet_nat_translation_device_prefixes_instance = ManaV2ExtranetNatTranslationDevicePrefixes.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetNatTranslationDevicePrefixes.to_json()) + +# convert the object into a dict +mana_v2_extranet_nat_translation_device_prefixes_dict = mana_v2_extranet_nat_translation_device_prefixes_instance.to_dict() +# create an instance of ManaV2ExtranetNatTranslationDevicePrefixes from a dict +mana_v2_extranet_nat_translation_device_prefixes_from_dict = ManaV2ExtranetNatTranslationDevicePrefixes.from_dict(mana_v2_extranet_nat_translation_device_prefixes_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/ManaV2ExtranetNatTranslationMode.md b/docs/ManaV2ExtranetNatTranslationMode.md new file mode 100644 index 00000000..98c5c9a9 --- /dev/null +++ b/docs/ManaV2ExtranetNatTranslationMode.md @@ -0,0 +1,31 @@ +# ManaV2ExtranetNatTranslationMode + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**centralized** | [**ManaV2ExtranetNatTranslationCentralized**](ManaV2ExtranetNatTranslationCentralized.md) | | [optional] +**decentralized** | [**ManaV2ExtranetNatTranslationDecentralized**](ManaV2ExtranetNatTranslationDecentralized.md) | | [optional] +**peer_to_peer** | [**ManaV2ExtranetNatTranslationPeerToPeer**](ManaV2ExtranetNatTranslationPeerToPeer.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_nat_translation_mode import ManaV2ExtranetNatTranslationMode + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetNatTranslationMode from a JSON string +mana_v2_extranet_nat_translation_mode_instance = ManaV2ExtranetNatTranslationMode.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetNatTranslationMode.to_json()) + +# convert the object into a dict +mana_v2_extranet_nat_translation_mode_dict = mana_v2_extranet_nat_translation_mode_instance.to_dict() +# create an instance of ManaV2ExtranetNatTranslationMode from a dict +mana_v2_extranet_nat_translation_mode_from_dict = ManaV2ExtranetNatTranslationMode.from_dict(mana_v2_extranet_nat_translation_mode_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/ManaV2ExtranetNatTranslationPeerToPeer.md b/docs/ManaV2ExtranetNatTranslationPeerToPeer.md new file mode 100644 index 00000000..6c89f3d4 --- /dev/null +++ b/docs/ManaV2ExtranetNatTranslationPeerToPeer.md @@ -0,0 +1,29 @@ +# ManaV2ExtranetNatTranslationPeerToPeer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**prefixes** | [**List[ManaV2ExtranetNatTranslationPeerToPeerPrefix]**](ManaV2ExtranetNatTranslationPeerToPeerPrefix.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer import ManaV2ExtranetNatTranslationPeerToPeer + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetNatTranslationPeerToPeer from a JSON string +mana_v2_extranet_nat_translation_peer_to_peer_instance = ManaV2ExtranetNatTranslationPeerToPeer.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetNatTranslationPeerToPeer.to_json()) + +# convert the object into a dict +mana_v2_extranet_nat_translation_peer_to_peer_dict = mana_v2_extranet_nat_translation_peer_to_peer_instance.to_dict() +# create an instance of ManaV2ExtranetNatTranslationPeerToPeer from a dict +mana_v2_extranet_nat_translation_peer_to_peer_from_dict = ManaV2ExtranetNatTranslationPeerToPeer.from_dict(mana_v2_extranet_nat_translation_peer_to_peer_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/ManaV2ExtranetNatTranslationPeerToPeerPrefix.md b/docs/ManaV2ExtranetNatTranslationPeerToPeerPrefix.md new file mode 100644 index 00000000..6bcc3dfe --- /dev/null +++ b/docs/ManaV2ExtranetNatTranslationPeerToPeerPrefix.md @@ -0,0 +1,30 @@ +# ManaV2ExtranetNatTranslationPeerToPeerPrefix + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**outside_nat_prefix** | **str** | Optional outside address presented for prefix on the far side of the attachment; omit for no NAT on that prefix | [optional] +**prefix** | **str** | At match: customer export prefix. At consumer accept/update (peering): subscribed service prefix | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer_prefix import ManaV2ExtranetNatTranslationPeerToPeerPrefix + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetNatTranslationPeerToPeerPrefix from a JSON string +mana_v2_extranet_nat_translation_peer_to_peer_prefix_instance = ManaV2ExtranetNatTranslationPeerToPeerPrefix.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetNatTranslationPeerToPeerPrefix.to_json()) + +# convert the object into a dict +mana_v2_extranet_nat_translation_peer_to_peer_prefix_dict = mana_v2_extranet_nat_translation_peer_to_peer_prefix_instance.to_dict() +# create an instance of ManaV2ExtranetNatTranslationPeerToPeerPrefix from a dict +mana_v2_extranet_nat_translation_peer_to_peer_prefix_from_dict = ManaV2ExtranetNatTranslationPeerToPeerPrefix.from_dict(mana_v2_extranet_nat_translation_peer_to_peer_prefix_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/ManaV2ExtranetServiceConsumerPolicy.md b/docs/ManaV2ExtranetServiceConsumerPolicy.md new file mode 100644 index 00000000..27d59ec5 --- /dev/null +++ b/docs/ManaV2ExtranetServiceConsumerPolicy.md @@ -0,0 +1,33 @@ +# ManaV2ExtranetServiceConsumerPolicy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_lan_segments** | [**Dict[str, ManaV2ExtranetConsumerLanPrefixes]**](ManaV2ExtranetConsumerLanPrefixes.md) | | +**global_object_ops** | [**Dict[str, ManaV2GlobalObjectServiceOps]**](ManaV2GlobalObjectServiceOps.md) | | [optional] +**nat_translation_mode** | [**ManaV2ExtranetNatTranslationMode**](ManaV2ExtranetNatTranslationMode.md) | | [optional] +**site_to_site_vpn** | [**ManaV2GuestConsumerSiteToSiteVpnConfig**](ManaV2GuestConsumerSiteToSiteVpnConfig.md) | | [optional] +**sites** | [**List[ManaV2B2bSiteInformation]**](ManaV2B2bSiteInformation.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_service_consumer_policy import ManaV2ExtranetServiceConsumerPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetServiceConsumerPolicy from a JSON string +mana_v2_extranet_service_consumer_policy_instance = ManaV2ExtranetServiceConsumerPolicy.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetServiceConsumerPolicy.to_json()) + +# convert the object into a dict +mana_v2_extranet_service_consumer_policy_dict = mana_v2_extranet_service_consumer_policy_instance.to_dict() +# create an instance of ManaV2ExtranetServiceConsumerPolicy from a dict +mana_v2_extranet_service_consumer_policy_from_dict = ManaV2ExtranetServiceConsumerPolicy.from_dict(mana_v2_extranet_service_consumer_policy_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/ManaV2ExtranetServiceCustomerInvite.md b/docs/ManaV2ExtranetServiceCustomerInvite.md new file mode 100644 index 00000000..54449c3a --- /dev/null +++ b/docs/ManaV2ExtranetServiceCustomerInvite.md @@ -0,0 +1,30 @@ +# ManaV2ExtranetServiceCustomerInvite + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**admin_emails** | **List[str]** | | [optional] +**maximum_number_of_sites** | **int** | Maximum number of consumer sites | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_service_customer_invite import ManaV2ExtranetServiceCustomerInvite + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetServiceCustomerInvite from a JSON string +mana_v2_extranet_service_customer_invite_instance = ManaV2ExtranetServiceCustomerInvite.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetServiceCustomerInvite.to_json()) + +# convert the object into a dict +mana_v2_extranet_service_customer_invite_dict = mana_v2_extranet_service_customer_invite_instance.to_dict() +# create an instance of ManaV2ExtranetServiceCustomerInvite from a dict +mana_v2_extranet_service_customer_invite_from_dict = ManaV2ExtranetServiceCustomerInvite.from_dict(mana_v2_extranet_service_customer_invite_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/ManaV2ExtranetServiceCustomerMatchSummary.md b/docs/ManaV2ExtranetServiceCustomerMatchSummary.md new file mode 100644 index 00000000..8b655c51 --- /dev/null +++ b/docs/ManaV2ExtranetServiceCustomerMatchSummary.md @@ -0,0 +1,35 @@ +# ManaV2ExtranetServiceCustomerMatchSummary + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**lan_segment** | **int** | | [optional] +**matched_customers** | **int** | | [optional] +**name** | **str** | | [optional] +**service_type** | **str** | | [optional] +**status** | **str** | | [optional] +**updated_at** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_service_customer_match_summary import ManaV2ExtranetServiceCustomerMatchSummary + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetServiceCustomerMatchSummary from a JSON string +mana_v2_extranet_service_customer_match_summary_instance = ManaV2ExtranetServiceCustomerMatchSummary.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetServiceCustomerMatchSummary.to_json()) + +# convert the object into a dict +mana_v2_extranet_service_customer_match_summary_dict = mana_v2_extranet_service_customer_match_summary_instance.to_dict() +# create an instance of ManaV2ExtranetServiceCustomerMatchSummary from a dict +mana_v2_extranet_service_customer_match_summary_from_dict = ManaV2ExtranetServiceCustomerMatchSummary.from_dict(mana_v2_extranet_service_customer_match_summary_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/ManaV2ExtranetServiceCustomerSummary.md b/docs/ManaV2ExtranetServiceCustomerSummary.md new file mode 100644 index 00000000..22873a40 --- /dev/null +++ b/docs/ManaV2ExtranetServiceCustomerSummary.md @@ -0,0 +1,35 @@ +# ManaV2ExtranetServiceCustomerSummary + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**admin_emails** | **List[str]** | | [optional] +**id** | **int** | | [optional] +**matched_services** | **int** | | [optional] +**name** | **str** | | [optional] +**status** | **str** | | [optional] +**type** | **str** | | [optional] +**updated_at** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_service_customer_summary import ManaV2ExtranetServiceCustomerSummary + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetServiceCustomerSummary from a JSON string +mana_v2_extranet_service_customer_summary_instance = ManaV2ExtranetServiceCustomerSummary.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetServiceCustomerSummary.to_json()) + +# convert the object into a dict +mana_v2_extranet_service_customer_summary_dict = mana_v2_extranet_service_customer_summary_instance.to_dict() +# create an instance of ManaV2ExtranetServiceCustomerSummary from a dict +mana_v2_extranet_service_customer_summary_from_dict = ManaV2ExtranetServiceCustomerSummary.from_dict(mana_v2_extranet_service_customer_summary_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/ManaV2ExtranetServicePolicyResponse.md b/docs/ManaV2ExtranetServicePolicyResponse.md new file mode 100644 index 00000000..d417c6f6 --- /dev/null +++ b/docs/ManaV2ExtranetServicePolicyResponse.md @@ -0,0 +1,31 @@ +# ManaV2ExtranetServicePolicyResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | [**ManaV2ExtranetServiceProducerPolicy**](ManaV2ExtranetServiceProducerPolicy.md) | | [optional] +**service_name** | **str** | | [optional] +**service_type** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_service_policy_response import ManaV2ExtranetServicePolicyResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetServicePolicyResponse from a JSON string +mana_v2_extranet_service_policy_response_instance = ManaV2ExtranetServicePolicyResponse.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetServicePolicyResponse.to_json()) + +# convert the object into a dict +mana_v2_extranet_service_policy_response_dict = mana_v2_extranet_service_policy_response_instance.to_dict() +# create an instance of ManaV2ExtranetServicePolicyResponse from a dict +mana_v2_extranet_service_policy_response_from_dict = ManaV2ExtranetServicePolicyResponse.from_dict(mana_v2_extranet_service_policy_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/ManaV2ExtranetServiceProducerCustomer.md b/docs/ManaV2ExtranetServiceProducerCustomer.md new file mode 100644 index 00000000..64735dc4 --- /dev/null +++ b/docs/ManaV2ExtranetServiceProducerCustomer.md @@ -0,0 +1,36 @@ +# ManaV2ExtranetServiceProducerCustomer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**admin_emails** | **List[str]** | | [optional] +**customer_id** | **str** | | [optional] +**match_id** | **int** | | [optional] +**matched_services** | **int** | | [optional] +**name** | **str** | | [optional] +**status** | **str** | | [optional] +**type** | **str** | | [optional] +**updated_at** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_service_producer_customer import ManaV2ExtranetServiceProducerCustomer + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetServiceProducerCustomer from a JSON string +mana_v2_extranet_service_producer_customer_instance = ManaV2ExtranetServiceProducerCustomer.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetServiceProducerCustomer.to_json()) + +# convert the object into a dict +mana_v2_extranet_service_producer_customer_dict = mana_v2_extranet_service_producer_customer_instance.to_dict() +# create an instance of ManaV2ExtranetServiceProducerCustomer from a dict +mana_v2_extranet_service_producer_customer_from_dict = ManaV2ExtranetServiceProducerCustomer.from_dict(mana_v2_extranet_service_producer_customer_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/ManaV2ExtranetServiceProducerPolicy.md b/docs/ManaV2ExtranetServiceProducerPolicy.md new file mode 100644 index 00000000..246509ce --- /dev/null +++ b/docs/ManaV2ExtranetServiceProducerPolicy.md @@ -0,0 +1,35 @@ +# ManaV2ExtranetServiceProducerPolicy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**global_object_device_summaries** | [**Dict[str, ManaV2GlobalObjectServiceSummaries]**](ManaV2GlobalObjectServiceSummaries.md) | | [optional] +**global_object_ops** | [**Dict[str, ManaV2GlobalObjectServiceOps]**](ManaV2GlobalObjectServiceOps.md) | | [optional] +**nat_translation_mode** | [**ManaV2ExtranetNatTranslationMode**](ManaV2ExtranetNatTranslationMode.md) | | [optional] +**prefix_tags** | [**List[ManaV2B2bExtranetPrefixTag]**](ManaV2B2bExtranetPrefixTag.md) | | [optional] +**service_lan_segment** | **int** | LAN segment ID for the service | [optional] +**sites** | [**List[ManaV2B2bSiteInformation]**](ManaV2B2bSiteInformation.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_service_producer_policy import ManaV2ExtranetServiceProducerPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetServiceProducerPolicy from a JSON string +mana_v2_extranet_service_producer_policy_instance = ManaV2ExtranetServiceProducerPolicy.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetServiceProducerPolicy.to_json()) + +# convert the object into a dict +mana_v2_extranet_service_producer_policy_dict = mana_v2_extranet_service_producer_policy_instance.to_dict() +# create an instance of ManaV2ExtranetServiceProducerPolicy from a dict +mana_v2_extranet_service_producer_policy_from_dict = ManaV2ExtranetServiceProducerPolicy.from_dict(mana_v2_extranet_service_producer_policy_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/ManaV2ExtranetServiceSummary.md b/docs/ManaV2ExtranetServiceSummary.md new file mode 100644 index 00000000..e31d5eca --- /dev/null +++ b/docs/ManaV2ExtranetServiceSummary.md @@ -0,0 +1,39 @@ +# ManaV2ExtranetServiceSummary + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] +**id** | **int** | | [optional] +**is_publisher** | **bool** | True when this enterprise publishes the service; false when consuming a remote producer | [optional] +**lan_segment** | **int** | Service LAN segment when is_publisher and VRF exists | [optional] +**last_updated** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] +**server_prefixes** | **List[str]** | | [optional] +**service_name** | **str** | | [optional] +**service_type** | **str** | | [optional] +**sites** | **List[int]** | | [optional] +**status** | **str** | | [optional] +**total_customers** | **int** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_extranet_service_summary import ManaV2ExtranetServiceSummary + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ExtranetServiceSummary from a JSON string +mana_v2_extranet_service_summary_instance = ManaV2ExtranetServiceSummary.from_json(json) +# print the JSON string representation of the object +print(ManaV2ExtranetServiceSummary.to_json()) + +# convert the object into a dict +mana_v2_extranet_service_summary_dict = mana_v2_extranet_service_summary_instance.to_dict() +# create an instance of ManaV2ExtranetServiceSummary from a dict +mana_v2_extranet_service_summary_from_dict = ManaV2ExtranetServiceSummary.from_dict(mana_v2_extranet_service_summary_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/ManaV2GuestConsumerSiteToSiteVpnConfig.md b/docs/ManaV2GuestConsumerSiteToSiteVpnConfig.md index 52d614b8..72a1d8bb 100644 --- a/docs/ManaV2GuestConsumerSiteToSiteVpnConfig.md +++ b/docs/ManaV2GuestConsumerSiteToSiteVpnConfig.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **emails** | **List[str]** | | [optional] **ipsec_gateway_details** | [**ManaV2IPsecGatewayDetails**](ManaV2IPsecGatewayDetails.md) | | [optional] +**ipsec_gateway_peers** | [**ManaV2IPsecGatewayPeersConfig**](ManaV2IPsecGatewayPeersConfig.md) | | [optional] **region_id** | **int** | | [optional] ## Example diff --git a/docs/ManaV2IPsecGatewayPeersConfig.md b/docs/ManaV2IPsecGatewayPeersConfig.md new file mode 100644 index 00000000..513d579c --- /dev/null +++ b/docs/ManaV2IPsecGatewayPeersConfig.md @@ -0,0 +1,31 @@ +# ManaV2IPsecGatewayPeersConfig + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the IPsec gateway service | [optional] +**remote_peers** | [**List[ManaV2IPsecGatewayRemotePeer]**](ManaV2IPsecGatewayRemotePeer.md) | | [optional] +**routing** | [**ManaV2IpsecRoutingConfig**](ManaV2IpsecRoutingConfig.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config import ManaV2IPsecGatewayPeersConfig + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2IPsecGatewayPeersConfig from a JSON string +mana_v2_i_psec_gateway_peers_config_instance = ManaV2IPsecGatewayPeersConfig.from_json(json) +# print the JSON string representation of the object +print(ManaV2IPsecGatewayPeersConfig.to_json()) + +# convert the object into a dict +mana_v2_i_psec_gateway_peers_config_dict = mana_v2_i_psec_gateway_peers_config_instance.to_dict() +# create an instance of ManaV2IPsecGatewayPeersConfig from a dict +mana_v2_i_psec_gateway_peers_config_from_dict = ManaV2IPsecGatewayPeersConfig.from_dict(mana_v2_i_psec_gateway_peers_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/ManaV2IPsecGatewayRemotePeer.md b/docs/ManaV2IPsecGatewayRemotePeer.md new file mode 100644 index 00000000..55693258 --- /dev/null +++ b/docs/ManaV2IPsecGatewayRemotePeer.md @@ -0,0 +1,37 @@ +# ManaV2IPsecGatewayRemotePeer + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**destination_address** | **str** | | [optional] +**ike_initiator** | **bool** | When true, Graphiant initiates IKE for this peer | [optional] +**mtu** | **int** | | [optional] +**name** | **str** | Optional display name or label for this peer; used when generating tunnel names | [optional] +**remote_ike_peer_identity** | **str** | IKE identity of the remote peer | [optional] +**tcp_mss** | **int** | | [optional] +**tunnel1** | [**ManaV2IPsecGatewayTunnelDetails**](ManaV2IPsecGatewayTunnelDetails.md) | | [optional] +**tunnel2** | [**ManaV2IPsecGatewayTunnelDetails**](ManaV2IPsecGatewayTunnelDetails.md) | | [optional] +**vpn_profile** | **str** | Enterprise IPsec VPN profile name for this peer | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer import ManaV2IPsecGatewayRemotePeer + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2IPsecGatewayRemotePeer from a JSON string +mana_v2_i_psec_gateway_remote_peer_instance = ManaV2IPsecGatewayRemotePeer.from_json(json) +# print the JSON string representation of the object +print(ManaV2IPsecGatewayRemotePeer.to_json()) + +# convert the object into a dict +mana_v2_i_psec_gateway_remote_peer_dict = mana_v2_i_psec_gateway_remote_peer_instance.to_dict() +# create an instance of ManaV2IPsecGatewayRemotePeer from a dict +mana_v2_i_psec_gateway_remote_peer_from_dict = ManaV2IPsecGatewayRemotePeer.from_dict(mana_v2_i_psec_gateway_remote_peer_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/ManaV2LanSegmentPublicInterfaceEntry.md b/docs/ManaV2LanSegmentPublicInterfaceEntry.md new file mode 100644 index 00000000..00c63572 --- /dev/null +++ b/docs/ManaV2LanSegmentPublicInterfaceEntry.md @@ -0,0 +1,32 @@ +# ManaV2LanSegmentPublicInterfaceEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interface_id** | **int** | network.interface id (required) | [optional] +**ipv4_addresses** | **List[str]** | | [optional] +**name** | **str** | Device interface name (BGP local_interface uses this) (required) | [optional] +**storage_provider** | **str** | Interface storage provider (cloud provider for gateway LAN interfaces) | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_lan_segment_public_interface_entry import ManaV2LanSegmentPublicInterfaceEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2LanSegmentPublicInterfaceEntry from a JSON string +mana_v2_lan_segment_public_interface_entry_instance = ManaV2LanSegmentPublicInterfaceEntry.from_json(json) +# print the JSON string representation of the object +print(ManaV2LanSegmentPublicInterfaceEntry.to_json()) + +# convert the object into a dict +mana_v2_lan_segment_public_interface_entry_dict = mana_v2_lan_segment_public_interface_entry_instance.to_dict() +# create an instance of ManaV2LanSegmentPublicInterfaceEntry from a dict +mana_v2_lan_segment_public_interface_entry_from_dict = ManaV2LanSegmentPublicInterfaceEntry.from_dict(mana_v2_lan_segment_public_interface_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/ManaV2LanSegmentPublicInterfacesLists.md b/docs/ManaV2LanSegmentPublicInterfacesLists.md new file mode 100644 index 00000000..9f48c419 --- /dev/null +++ b/docs/ManaV2LanSegmentPublicInterfacesLists.md @@ -0,0 +1,30 @@ +# ManaV2LanSegmentPublicInterfacesLists + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**private_interfaces** | [**List[ManaV2LanSegmentPublicInterfaceEntry]**](ManaV2LanSegmentPublicInterfaceEntry.md) | | [optional] +**public_interfaces** | [**List[ManaV2LanSegmentPublicInterfaceEntry]**](ManaV2LanSegmentPublicInterfaceEntry.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_lan_segment_public_interfaces_lists import ManaV2LanSegmentPublicInterfacesLists + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2LanSegmentPublicInterfacesLists from a JSON string +mana_v2_lan_segment_public_interfaces_lists_instance = ManaV2LanSegmentPublicInterfacesLists.from_json(json) +# print the JSON string representation of the object +print(ManaV2LanSegmentPublicInterfacesLists.to_json()) + +# convert the object into a dict +mana_v2_lan_segment_public_interfaces_lists_dict = mana_v2_lan_segment_public_interfaces_lists_instance.to_dict() +# create an instance of ManaV2LanSegmentPublicInterfacesLists from a dict +mana_v2_lan_segment_public_interfaces_lists_from_dict = ManaV2LanSegmentPublicInterfacesLists.from_dict(mana_v2_lan_segment_public_interfaces_lists_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/ManaV2PublicVifGatewayCentralizedNat.md b/docs/ManaV2PublicVifGatewayCentralizedNat.md new file mode 100644 index 00000000..12d88feb --- /dev/null +++ b/docs/ManaV2PublicVifGatewayCentralizedNat.md @@ -0,0 +1,29 @@ +# ManaV2PublicVifGatewayCentralizedNat + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_prefix** | **Dict[str, str]** | | + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat import ManaV2PublicVifGatewayCentralizedNat + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifGatewayCentralizedNat from a JSON string +mana_v2_public_vif_gateway_centralized_nat_instance = ManaV2PublicVifGatewayCentralizedNat.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifGatewayCentralizedNat.to_json()) + +# convert the object into a dict +mana_v2_public_vif_gateway_centralized_nat_dict = mana_v2_public_vif_gateway_centralized_nat_instance.to_dict() +# create an instance of ManaV2PublicVifGatewayCentralizedNat from a dict +mana_v2_public_vif_gateway_centralized_nat_from_dict = ManaV2PublicVifGatewayCentralizedNat.from_dict(mana_v2_public_vif_gateway_centralized_nat_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/ManaV2PublicVifGatewayConsumerLanDevices.md b/docs/ManaV2PublicVifGatewayConsumerLanDevices.md new file mode 100644 index 00000000..94003446 --- /dev/null +++ b/docs/ManaV2PublicVifGatewayConsumerLanDevices.md @@ -0,0 +1,29 @@ +# ManaV2PublicVifGatewayConsumerLanDevices + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_prefixes** | **List[str]** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices import ManaV2PublicVifGatewayConsumerLanDevices + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifGatewayConsumerLanDevices from a JSON string +mana_v2_public_vif_gateway_consumer_lan_devices_instance = ManaV2PublicVifGatewayConsumerLanDevices.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifGatewayConsumerLanDevices.to_json()) + +# convert the object into a dict +mana_v2_public_vif_gateway_consumer_lan_devices_dict = mana_v2_public_vif_gateway_consumer_lan_devices_instance.to_dict() +# create an instance of ManaV2PublicVifGatewayConsumerLanDevices from a dict +mana_v2_public_vif_gateway_consumer_lan_devices_from_dict = ManaV2PublicVifGatewayConsumerLanDevices.from_dict(mana_v2_public_vif_gateway_consumer_lan_devices_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/ManaV2PublicVifGatewayDecentralizedPrefixes.md b/docs/ManaV2PublicVifGatewayDecentralizedPrefixes.md new file mode 100644 index 00000000..a9b944ba --- /dev/null +++ b/docs/ManaV2PublicVifGatewayDecentralizedPrefixes.md @@ -0,0 +1,29 @@ +# ManaV2PublicVifGatewayDecentralizedPrefixes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**prefixes** | **Dict[str, str]** | | + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes import ManaV2PublicVifGatewayDecentralizedPrefixes + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifGatewayDecentralizedPrefixes from a JSON string +mana_v2_public_vif_gateway_decentralized_prefixes_instance = ManaV2PublicVifGatewayDecentralizedPrefixes.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifGatewayDecentralizedPrefixes.to_json()) + +# convert the object into a dict +mana_v2_public_vif_gateway_decentralized_prefixes_dict = mana_v2_public_vif_gateway_decentralized_prefixes_instance.to_dict() +# create an instance of ManaV2PublicVifGatewayDecentralizedPrefixes from a dict +mana_v2_public_vif_gateway_decentralized_prefixes_from_dict = ManaV2PublicVifGatewayDecentralizedPrefixes.from_dict(mana_v2_public_vif_gateway_decentralized_prefixes_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/ManaV2PublicVifGatewayNatPrefixStrategy.md b/docs/ManaV2PublicVifGatewayNatPrefixStrategy.md new file mode 100644 index 00000000..6291a099 --- /dev/null +++ b/docs/ManaV2PublicVifGatewayNatPrefixStrategy.md @@ -0,0 +1,30 @@ +# ManaV2PublicVifGatewayNatPrefixStrategy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**centralized** | [**ManaV2PublicVifGatewayCentralizedNat**](ManaV2PublicVifGatewayCentralizedNat.md) | | [optional] +**decentralized** | [**ManaV2PublicVifGatewayDecentralizedPrefixes**](ManaV2PublicVifGatewayDecentralizedPrefixes.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy import ManaV2PublicVifGatewayNatPrefixStrategy + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifGatewayNatPrefixStrategy from a JSON string +mana_v2_public_vif_gateway_nat_prefix_strategy_instance = ManaV2PublicVifGatewayNatPrefixStrategy.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifGatewayNatPrefixStrategy.to_json()) + +# convert the object into a dict +mana_v2_public_vif_gateway_nat_prefix_strategy_dict = mana_v2_public_vif_gateway_nat_prefix_strategy_instance.to_dict() +# create an instance of ManaV2PublicVifGatewayNatPrefixStrategy from a dict +mana_v2_public_vif_gateway_nat_prefix_strategy_from_dict = ManaV2PublicVifGatewayNatPrefixStrategy.from_dict(mana_v2_public_vif_gateway_nat_prefix_strategy_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/ManaV2PublicVifGatewayWriteRequest.md b/docs/ManaV2PublicVifGatewayWriteRequest.md new file mode 100644 index 00000000..5912370d --- /dev/null +++ b/docs/ManaV2PublicVifGatewayWriteRequest.md @@ -0,0 +1,37 @@ +# ManaV2PublicVifGatewayWriteRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertisement** | [**ManaV2SiteInformation**](ManaV2SiteInformation.md) | | [optional] +**consumer_lan_segments** | [**Dict[str, ManaV2PublicVifGatewayConsumerLanDevices]**](ManaV2PublicVifGatewayConsumerLanDevices.md) | | +**covering_prefixes** | **List[str]** | | [optional] +**gateway_bgp_neighbors** | [**Dict[str, ManaV2BgpNeighborConfig]**](ManaV2BgpNeighborConfig.md) | | +**lan_segment_id** | **int** | Producer LAN segment (VRF) on gateway appliances (required) | +**nat_prefix_strategy** | [**ManaV2PublicVifGatewayNatPrefixStrategy**](ManaV2PublicVifGatewayNatPrefixStrategy.md) | | +**region_id** | **int** | Graphiant region for gateway appliances (required) | +**service_name** | **str** | Service display name (required) | +**storage_provider** | **str** | Storage provider; each gateway appliance must match region and provider (required) | + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_gateway_write_request import ManaV2PublicVifGatewayWriteRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifGatewayWriteRequest from a JSON string +mana_v2_public_vif_gateway_write_request_instance = ManaV2PublicVifGatewayWriteRequest.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifGatewayWriteRequest.to_json()) + +# convert the object into a dict +mana_v2_public_vif_gateway_write_request_dict = mana_v2_public_vif_gateway_write_request_instance.to_dict() +# create an instance of ManaV2PublicVifGatewayWriteRequest from a dict +mana_v2_public_vif_gateway_write_request_from_dict = ManaV2PublicVifGatewayWriteRequest.from_dict(mana_v2_public_vif_gateway_write_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/ManaV2SiteDeviceSummary.md b/docs/ManaV2SiteDeviceSummary.md index 1406242d..35644b0d 100644 --- a/docs/ManaV2SiteDeviceSummary.md +++ b/docs/ManaV2SiteDeviceSummary.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **device_id** | **int** | | [optional] **hostname** | **str** | | [optional] +**site_id** | **int** | | [optional] ## Example diff --git a/docs/ManaV2ZeroTrustConsumptionSummary.md b/docs/ManaV2ZeroTrustConsumptionSummary.md new file mode 100644 index 00000000..477b6de1 --- /dev/null +++ b/docs/ManaV2ZeroTrustConsumptionSummary.md @@ -0,0 +1,29 @@ +# ManaV2ZeroTrustConsumptionSummary + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_agent_credits** | **float** | Number of devices that have been installed with the zero trust agent | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_zero_trust_consumption_summary import ManaV2ZeroTrustConsumptionSummary + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ZeroTrustConsumptionSummary from a JSON string +mana_v2_zero_trust_consumption_summary_instance = ManaV2ZeroTrustConsumptionSummary.from_json(json) +# print the JSON string representation of the object +print(ManaV2ZeroTrustConsumptionSummary.to_json()) + +# convert the object into a dict +mana_v2_zero_trust_consumption_summary_dict = mana_v2_zero_trust_consumption_summary_instance.to_dict() +# create an instance of ManaV2ZeroTrustConsumptionSummary from a dict +mana_v2_zero_trust_consumption_summary_from_dict = ManaV2ZeroTrustConsumptionSummary.from_dict(mana_v2_zero_trust_consumption_summary_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 index 2a1ee537..7231f27d 100644 --- a/docs/UpgradeRollout.md +++ b/docs/UpgradeRollout.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **next_run_ts** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] **num_devices** | **int** | Count of devices associated with the rollout. | [optional] **rollout_config** | [**UpgradeRolloutConfig**](UpgradeRolloutConfig.md) | | [optional] +**status** | **str** | Status of the upgrade rollout group | [optional] ## Example diff --git a/docs/V1DiagnosticSpeedtestReportPutResponse.md b/docs/V1DiagnosticSpeedtestReportPutResponse.md index 7074c70b..5228de2c 100644 --- a/docs/V1DiagnosticSpeedtestReportPutResponse.md +++ b/docs/V1DiagnosticSpeedtestReportPutResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**report** | **bytes** | The generated report | [optional] +**report** | **bytearray** | The generated report | [optional] **report_id** | **int** | 8 bytes (base32 encoded) identifier for the report | [optional] ## Example diff --git a/docs/V1EnterpriseAllocationGetResponse.md b/docs/V1EnterpriseAllocationGetResponse.md index 7eb2be09..fe4b3471 100644 --- a/docs/V1EnterpriseAllocationGetResponse.md +++ b/docs/V1EnterpriseAllocationGetResponse.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **consumption_summary** | [**ManaV2BandwidthConsumptionSummary**](ManaV2BandwidthConsumptionSummary.md) | | [optional] **conversion_holders** | [**Dict[str, ManaV2AllocationConversionHolder]**](ManaV2AllocationConversionHolder.md) | | [optional] **regional_allocations** | [**List[ManaV2RegionalAllocation]**](ManaV2RegionalAllocation.md) | | [optional] +**zero_trust_summary** | [**ManaV2ZeroTrustConsumptionSummary**](ManaV2ZeroTrustConsumptionSummary.md) | | [optional] ## Example diff --git a/docs/V1ExtranetB2bConsumersCustomerIdGetResponse.md b/docs/V1ExtranetB2bConsumersCustomerIdGetResponse.md new file mode 100644 index 00000000..5526eabc --- /dev/null +++ b/docs/V1ExtranetB2bConsumersCustomerIdGetResponse.md @@ -0,0 +1,37 @@ +# V1ExtranetB2bConsumersCustomerIdGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**global_object_device_summaries** | [**Dict[str, ManaV2GlobalObjectServiceSummaries]**](ManaV2GlobalObjectServiceSummaries.md) | | [optional] +**id** | **int** | | [optional] +**ipsec_tunnel_config** | [**List[V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig]**](V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig.md) | | [optional] +**match_details** | [**ManaV2B2bExtranetMatchConsumerDetails**](ManaV2B2bExtranetMatchConsumerDetails.md) | | [optional] +**match_id** | **int** | | [optional] +**peer_type** | **str** | | [optional] +**policy** | [**ManaV2ExtranetServiceConsumerPolicy**](ManaV2ExtranetServiceConsumerPolicy.md) | | [optional] +**site_to_site_vpn** | [**ManaV2GuestConsumerSiteToSiteVpnConfig**](ManaV2GuestConsumerSiteToSiteVpnConfig.md) | | [optional] +**status** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_consumers_customer_id_get_response import V1ExtranetB2bConsumersCustomerIdGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bConsumersCustomerIdGetResponse from a JSON string +v1_extranet_b2b_consumers_customer_id_get_response_instance = V1ExtranetB2bConsumersCustomerIdGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bConsumersCustomerIdGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_consumers_customer_id_get_response_dict = v1_extranet_b2b_consumers_customer_id_get_response_instance.to_dict() +# create an instance of V1ExtranetB2bConsumersCustomerIdGetResponse from a dict +v1_extranet_b2b_consumers_customer_id_get_response_from_dict = V1ExtranetB2bConsumersCustomerIdGetResponse.from_dict(v1_extranet_b2b_consumers_customer_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/V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig.md b/docs/V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig.md new file mode 100644 index 00000000..84d85cae --- /dev/null +++ b/docs/V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig.md @@ -0,0 +1,60 @@ +# V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bgp_graphiant_asn** | **int** | | [optional] +**bgp_local_asn** | **int** | | [optional] +**bgp_neighbor_hold_time** | **int** | | [optional] +**bgp_neighbor_ipv4** | **str** | | [optional] +**bgp_neighbor_ipv6** | **str** | | [optional] +**dpd_interval** | **int** | | [optional] +**dpd_retries** | **int** | | [optional] +**graphiant_destination_ip** | **str** | | [optional] +**graphiant_ike_id** | **str** | | [optional] +**graphiant_outer_tunnel_ip** | **str** | | [optional] +**graphiant_tunnel_ip** | **str** | | [optional] +**graphiant_tunnel_ipv6** | **str** | | [optional] +**ike_authentication_algorithm** | **str** | | [optional] +**ike_authentication_method** | **str** | | [optional] +**ike_dh_algorithm** | **str** | | [optional] +**ike_encryption_algorithm** | **str** | | [optional] +**ike_lifetime** | **str** | | [optional] +**ike_preshared_key** | **str** | | [optional] +**ike_version** | **int** | | [optional] +**ipsec_authentication_algorithm** | **str** | | [optional] +**ipsec_encryption_algorithm** | **str** | | [optional] +**ipsec_extended_sequence_number** | **bool** | | [optional] +**ipsec_lifetime** | **str** | | [optional] +**ipsec_mode** | **str** | | [optional] +**ipsec_pfs_algorithm** | **str** | | [optional] +**ipsec_protocol** | **str** | | [optional] +**local_ike_id** | **str** | | [optional] +**local_outer_tunnel_ip** | **str** | | [optional] +**local_tunnel_ip** | **str** | | [optional] +**local_tunnel_ipv6** | **str** | | [optional] +**tcp_mss** | **int** | | [optional] +**tunnel_mtu** | **int** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config import V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig from a JSON string +v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config_instance = V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig.to_json()) + +# convert the object into a dict +v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config_dict = v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config_instance.to_dict() +# create an instance of V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig from a dict +v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config_from_dict = V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig.from_dict(v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_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/V1ExtranetB2bConsumersIdDeviceStatusGetResponse.md b/docs/V1ExtranetB2bConsumersIdDeviceStatusGetResponse.md new file mode 100644 index 00000000..3b6dab12 --- /dev/null +++ b/docs/V1ExtranetB2bConsumersIdDeviceStatusGetResponse.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bConsumersIdDeviceStatusGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**service_status** | **str** | | [optional] +**summary** | [**List[ManaV2B2bExtranetStatusSummary]**](ManaV2B2bExtranetStatusSummary.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_device_status_get_response import V1ExtranetB2bConsumersIdDeviceStatusGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bConsumersIdDeviceStatusGetResponse from a JSON string +v1_extranet_b2b_consumers_id_device_status_get_response_instance = V1ExtranetB2bConsumersIdDeviceStatusGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bConsumersIdDeviceStatusGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_consumers_id_device_status_get_response_dict = v1_extranet_b2b_consumers_id_device_status_get_response_instance.to_dict() +# create an instance of V1ExtranetB2bConsumersIdDeviceStatusGetResponse from a dict +v1_extranet_b2b_consumers_id_device_status_get_response_from_dict = V1ExtranetB2bConsumersIdDeviceStatusGetResponse.from_dict(v1_extranet_b2b_consumers_id_device_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/V1ExtranetB2bConsumersIdPrefixesPutRequest.md b/docs/V1ExtranetB2bConsumersIdPrefixesPutRequest.md new file mode 100644 index 00000000..b2e90b52 --- /dev/null +++ b/docs/V1ExtranetB2bConsumersIdPrefixesPutRequest.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bConsumersIdPrefixesPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nat_translation_mode** | [**ManaV2ExtranetNatTranslationMode**](ManaV2ExtranetNatTranslationMode.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_prefixes_put_request import V1ExtranetB2bConsumersIdPrefixesPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bConsumersIdPrefixesPutRequest from a JSON string +v1_extranet_b2b_consumers_id_prefixes_put_request_instance = V1ExtranetB2bConsumersIdPrefixesPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bConsumersIdPrefixesPutRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_consumers_id_prefixes_put_request_dict = v1_extranet_b2b_consumers_id_prefixes_put_request_instance.to_dict() +# create an instance of V1ExtranetB2bConsumersIdPrefixesPutRequest from a dict +v1_extranet_b2b_consumers_id_prefixes_put_request_from_dict = V1ExtranetB2bConsumersIdPrefixesPutRequest.from_dict(v1_extranet_b2b_consumers_id_prefixes_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/V1ExtranetB2bConsumersIdPrefixesPutResponse.md b/docs/V1ExtranetB2bConsumersIdPrefixesPutResponse.md new file mode 100644 index 00000000..7a755368 --- /dev/null +++ b/docs/V1ExtranetB2bConsumersIdPrefixesPutResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bConsumersIdPrefixesPutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_activity_id** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_prefixes_put_response import V1ExtranetB2bConsumersIdPrefixesPutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bConsumersIdPrefixesPutResponse from a JSON string +v1_extranet_b2b_consumers_id_prefixes_put_response_instance = V1ExtranetB2bConsumersIdPrefixesPutResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bConsumersIdPrefixesPutResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_consumers_id_prefixes_put_response_dict = v1_extranet_b2b_consumers_id_prefixes_put_response_instance.to_dict() +# create an instance of V1ExtranetB2bConsumersIdPrefixesPutResponse from a dict +v1_extranet_b2b_consumers_id_prefixes_put_response_from_dict = V1ExtranetB2bConsumersIdPrefixesPutResponse.from_dict(v1_extranet_b2b_consumers_id_prefixes_put_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/V1ExtranetB2bConsumersIdPutRequest.md b/docs/V1ExtranetB2bConsumersIdPutRequest.md new file mode 100644 index 00000000..237d830f --- /dev/null +++ b/docs/V1ExtranetB2bConsumersIdPutRequest.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bConsumersIdPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | [**ManaV2ExtranetServiceConsumerPolicy**](ManaV2ExtranetServiceConsumerPolicy.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_put_request import V1ExtranetB2bConsumersIdPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bConsumersIdPutRequest from a JSON string +v1_extranet_b2b_consumers_id_put_request_instance = V1ExtranetB2bConsumersIdPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bConsumersIdPutRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_consumers_id_put_request_dict = v1_extranet_b2b_consumers_id_put_request_instance.to_dict() +# create an instance of V1ExtranetB2bConsumersIdPutRequest from a dict +v1_extranet_b2b_consumers_id_put_request_from_dict = V1ExtranetB2bConsumersIdPutRequest.from_dict(v1_extranet_b2b_consumers_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/V1ExtranetB2bConsumersIdPutResponse.md b/docs/V1ExtranetB2bConsumersIdPutResponse.md new file mode 100644 index 00000000..1ac86684 --- /dev/null +++ b/docs/V1ExtranetB2bConsumersIdPutResponse.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bConsumersIdPutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**policy** | [**ManaV2ExtranetServiceConsumerPolicy**](ManaV2ExtranetServiceConsumerPolicy.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_put_response import V1ExtranetB2bConsumersIdPutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bConsumersIdPutResponse from a JSON string +v1_extranet_b2b_consumers_id_put_response_instance = V1ExtranetB2bConsumersIdPutResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bConsumersIdPutResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_consumers_id_put_response_dict = v1_extranet_b2b_consumers_id_put_response_instance.to_dict() +# create an instance of V1ExtranetB2bConsumersIdPutResponse from a dict +v1_extranet_b2b_consumers_id_put_response_from_dict = V1ExtranetB2bConsumersIdPutResponse.from_dict(v1_extranet_b2b_consumers_id_put_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/V1ExtranetB2bCustomersIdDeleteResponse.md b/docs/V1ExtranetB2bCustomersIdDeleteResponse.md new file mode 100644 index 00000000..0108ee24 --- /dev/null +++ b/docs/V1ExtranetB2bCustomersIdDeleteResponse.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bCustomersIdDeleteResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**activity_id** | **str** | | [optional] +**consumer_activity_id** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_customers_id_delete_response import V1ExtranetB2bCustomersIdDeleteResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bCustomersIdDeleteResponse from a JSON string +v1_extranet_b2b_customers_id_delete_response_instance = V1ExtranetB2bCustomersIdDeleteResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bCustomersIdDeleteResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_customers_id_delete_response_dict = v1_extranet_b2b_customers_id_delete_response_instance.to_dict() +# create an instance of V1ExtranetB2bCustomersIdDeleteResponse from a dict +v1_extranet_b2b_customers_id_delete_response_from_dict = V1ExtranetB2bCustomersIdDeleteResponse.from_dict(v1_extranet_b2b_customers_id_delete_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/V1ExtranetB2bCustomersIdDetailsGetResponse.md b/docs/V1ExtranetB2bCustomersIdDetailsGetResponse.md new file mode 100644 index 00000000..d465793b --- /dev/null +++ b/docs/V1ExtranetB2bCustomersIdDetailsGetResponse.md @@ -0,0 +1,33 @@ +# V1ExtranetB2bCustomersIdDetailsGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**admin_emails** | **List[str]** | | [optional] +**name** | **str** | | [optional] +**num_sites** | **int** | | [optional] +**status** | **str** | | [optional] +**type** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_customers_id_details_get_response import V1ExtranetB2bCustomersIdDetailsGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bCustomersIdDetailsGetResponse from a JSON string +v1_extranet_b2b_customers_id_details_get_response_instance = V1ExtranetB2bCustomersIdDetailsGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bCustomersIdDetailsGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_customers_id_details_get_response_dict = v1_extranet_b2b_customers_id_details_get_response_instance.to_dict() +# create an instance of V1ExtranetB2bCustomersIdDetailsGetResponse from a dict +v1_extranet_b2b_customers_id_details_get_response_from_dict = V1ExtranetB2bCustomersIdDetailsGetResponse.from_dict(v1_extranet_b2b_customers_id_details_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/V1ExtranetB2bCustomersIdMatchesSummaryGetResponse.md b/docs/V1ExtranetB2bCustomersIdMatchesSummaryGetResponse.md new file mode 100644 index 00000000..bacdebdf --- /dev/null +++ b/docs/V1ExtranetB2bCustomersIdMatchesSummaryGetResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bCustomersIdMatchesSummaryGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matches** | [**List[ManaV2ExtranetServiceCustomerMatchSummary]**](ManaV2ExtranetServiceCustomerMatchSummary.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_customers_id_matches_summary_get_response import V1ExtranetB2bCustomersIdMatchesSummaryGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bCustomersIdMatchesSummaryGetResponse from a JSON string +v1_extranet_b2b_customers_id_matches_summary_get_response_instance = V1ExtranetB2bCustomersIdMatchesSummaryGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bCustomersIdMatchesSummaryGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_customers_id_matches_summary_get_response_dict = v1_extranet_b2b_customers_id_matches_summary_get_response_instance.to_dict() +# create an instance of V1ExtranetB2bCustomersIdMatchesSummaryGetResponse from a dict +v1_extranet_b2b_customers_id_matches_summary_get_response_from_dict = V1ExtranetB2bCustomersIdMatchesSummaryGetResponse.from_dict(v1_extranet_b2b_customers_id_matches_summary_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/V1ExtranetB2bCustomersIdPutRequest.md b/docs/V1ExtranetB2bCustomersIdPutRequest.md new file mode 100644 index 00000000..65eb499f --- /dev/null +++ b/docs/V1ExtranetB2bCustomersIdPutRequest.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bCustomersIdPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invite** | [**ManaV2ExtranetServiceCustomerInvite**](ManaV2ExtranetServiceCustomerInvite.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_customers_id_put_request import V1ExtranetB2bCustomersIdPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bCustomersIdPutRequest from a JSON string +v1_extranet_b2b_customers_id_put_request_instance = V1ExtranetB2bCustomersIdPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bCustomersIdPutRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_customers_id_put_request_dict = v1_extranet_b2b_customers_id_put_request_instance.to_dict() +# create an instance of V1ExtranetB2bCustomersIdPutRequest from a dict +v1_extranet_b2b_customers_id_put_request_from_dict = V1ExtranetB2bCustomersIdPutRequest.from_dict(v1_extranet_b2b_customers_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/V1ExtranetB2bCustomersIdPutResponse.md b/docs/V1ExtranetB2bCustomersIdPutResponse.md new file mode 100644 index 00000000..e8c118a7 --- /dev/null +++ b/docs/V1ExtranetB2bCustomersIdPutResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bCustomersIdPutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invite** | [**ManaV2ExtranetServiceCustomerInvite**](ManaV2ExtranetServiceCustomerInvite.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_customers_id_put_response import V1ExtranetB2bCustomersIdPutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bCustomersIdPutResponse from a JSON string +v1_extranet_b2b_customers_id_put_response_instance = V1ExtranetB2bCustomersIdPutResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bCustomersIdPutResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_customers_id_put_response_dict = v1_extranet_b2b_customers_id_put_response_instance.to_dict() +# create an instance of V1ExtranetB2bCustomersIdPutResponse from a dict +v1_extranet_b2b_customers_id_put_response_from_dict = V1ExtranetB2bCustomersIdPutResponse.from_dict(v1_extranet_b2b_customers_id_put_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/V1ExtranetB2bCustomersPostRequest.md b/docs/V1ExtranetB2bCustomersPostRequest.md new file mode 100644 index 00000000..c0d9a690 --- /dev/null +++ b/docs/V1ExtranetB2bCustomersPostRequest.md @@ -0,0 +1,31 @@ +# V1ExtranetB2bCustomersPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**invite** | [**ManaV2ExtranetServiceCustomerInvite**](ManaV2ExtranetServiceCustomerInvite.md) | | +**name** | **str** | Partner display name (required) | +**type** | **str** | Graphiant peer vs guest (non-Graphiant) partner (required) | + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_customers_post_request import V1ExtranetB2bCustomersPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bCustomersPostRequest from a JSON string +v1_extranet_b2b_customers_post_request_instance = V1ExtranetB2bCustomersPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bCustomersPostRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_customers_post_request_dict = v1_extranet_b2b_customers_post_request_instance.to_dict() +# create an instance of V1ExtranetB2bCustomersPostRequest from a dict +v1_extranet_b2b_customers_post_request_from_dict = V1ExtranetB2bCustomersPostRequest.from_dict(v1_extranet_b2b_customers_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/V1ExtranetB2bCustomersPostResponse.md b/docs/V1ExtranetB2bCustomersPostResponse.md new file mode 100644 index 00000000..b236918a --- /dev/null +++ b/docs/V1ExtranetB2bCustomersPostResponse.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bCustomersPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**invite** | [**ManaV2ExtranetServiceCustomerInvite**](ManaV2ExtranetServiceCustomerInvite.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_customers_post_response import V1ExtranetB2bCustomersPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bCustomersPostResponse from a JSON string +v1_extranet_b2b_customers_post_response_instance = V1ExtranetB2bCustomersPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bCustomersPostResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_customers_post_response_dict = v1_extranet_b2b_customers_post_response_instance.to_dict() +# create an instance of V1ExtranetB2bCustomersPostResponse from a dict +v1_extranet_b2b_customers_post_response_from_dict = V1ExtranetB2bCustomersPostResponse.from_dict(v1_extranet_b2b_customers_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/V1ExtranetB2bCustomersSummaryGetResponse.md b/docs/V1ExtranetB2bCustomersSummaryGetResponse.md new file mode 100644 index 00000000..3d20c4a5 --- /dev/null +++ b/docs/V1ExtranetB2bCustomersSummaryGetResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bCustomersSummaryGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customers** | [**List[ManaV2ExtranetServiceCustomerSummary]**](ManaV2ExtranetServiceCustomerSummary.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_customers_summary_get_response import V1ExtranetB2bCustomersSummaryGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bCustomersSummaryGetResponse from a JSON string +v1_extranet_b2b_customers_summary_get_response_instance = V1ExtranetB2bCustomersSummaryGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bCustomersSummaryGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_customers_summary_get_response_dict = v1_extranet_b2b_customers_summary_get_response_instance.to_dict() +# create an instance of V1ExtranetB2bCustomersSummaryGetResponse from a dict +v1_extranet_b2b_customers_summary_get_response_from_dict = V1ExtranetB2bCustomersSummaryGetResponse.from_dict(v1_extranet_b2b_customers_summary_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/V1ExtranetB2bMatchesCustomersPostRequest.md b/docs/V1ExtranetB2bMatchesCustomersPostRequest.md new file mode 100644 index 00000000..0c2297c0 --- /dev/null +++ b/docs/V1ExtranetB2bMatchesCustomersPostRequest.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bMatchesCustomersPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customers** | [**List[ManaV2ExtranetServiceProducerCustomer]**](ManaV2ExtranetServiceProducerCustomer.md) | | [optional] +**service_id** | **int** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_customers_post_request import V1ExtranetB2bMatchesCustomersPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesCustomersPostRequest from a JSON string +v1_extranet_b2b_matches_customers_post_request_instance = V1ExtranetB2bMatchesCustomersPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesCustomersPostRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_customers_post_request_dict = v1_extranet_b2b_matches_customers_post_request_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesCustomersPostRequest from a dict +v1_extranet_b2b_matches_customers_post_request_from_dict = V1ExtranetB2bMatchesCustomersPostRequest.from_dict(v1_extranet_b2b_matches_customers_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/V1ExtranetB2bMatchesCustomersPostResponse.md b/docs/V1ExtranetB2bMatchesCustomersPostResponse.md new file mode 100644 index 00000000..ca9c6f18 --- /dev/null +++ b/docs/V1ExtranetB2bMatchesCustomersPostResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bMatchesCustomersPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customers** | [**List[ManaV2ExtranetServiceProducerCustomer]**](ManaV2ExtranetServiceProducerCustomer.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_customers_post_response import V1ExtranetB2bMatchesCustomersPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesCustomersPostResponse from a JSON string +v1_extranet_b2b_matches_customers_post_response_instance = V1ExtranetB2bMatchesCustomersPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesCustomersPostResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_customers_post_response_dict = v1_extranet_b2b_matches_customers_post_response_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesCustomersPostResponse from a dict +v1_extranet_b2b_matches_customers_post_response_from_dict = V1ExtranetB2bMatchesCustomersPostResponse.from_dict(v1_extranet_b2b_matches_customers_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/V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest.md b/docs/V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest.md new file mode 100644 index 00000000..e9d3f08b --- /dev/null +++ b/docs/V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | [**ManaV2ExtranetServiceConsumerPolicy**](ManaV2ExtranetServiceConsumerPolicy.md) | | [optional] +**service_id** | **int** | Producer service id being consumed | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_check_post_request import V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest from a JSON string +v1_extranet_b2b_matches_match_id_consumer_check_post_request_instance = V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_match_id_consumer_check_post_request_dict = v1_extranet_b2b_matches_match_id_consumer_check_post_request_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest from a dict +v1_extranet_b2b_matches_match_id_consumer_check_post_request_from_dict = V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest.from_dict(v1_extranet_b2b_matches_match_id_consumer_check_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/V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse.md b/docs/V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse.md new file mode 100644 index 00000000..dd773e2d --- /dev/null +++ b/docs/V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse.md @@ -0,0 +1,31 @@ +# V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_activity_id** | **str** | | [optional] +**id** | **int** | | [optional] +**policy** | [**ManaV2ExtranetServiceConsumerPolicy**](ManaV2ExtranetServiceConsumerPolicy.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_check_post_response import V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse from a JSON string +v1_extranet_b2b_matches_match_id_consumer_check_post_response_instance = V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_match_id_consumer_check_post_response_dict = v1_extranet_b2b_matches_match_id_consumer_check_post_response_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse from a dict +v1_extranet_b2b_matches_match_id_consumer_check_post_response_from_dict = V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse.from_dict(v1_extranet_b2b_matches_match_id_consumer_check_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/V1ExtranetB2bMatchesMatchIdConsumerPostRequest.md b/docs/V1ExtranetB2bMatchesMatchIdConsumerPostRequest.md new file mode 100644 index 00000000..538af3d3 --- /dev/null +++ b/docs/V1ExtranetB2bMatchesMatchIdConsumerPostRequest.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bMatchesMatchIdConsumerPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | [**ManaV2ExtranetServiceConsumerPolicy**](ManaV2ExtranetServiceConsumerPolicy.md) | | [optional] +**service_id** | **int** | Producer service id being consumed | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_post_request import V1ExtranetB2bMatchesMatchIdConsumerPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesMatchIdConsumerPostRequest from a JSON string +v1_extranet_b2b_matches_match_id_consumer_post_request_instance = V1ExtranetB2bMatchesMatchIdConsumerPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesMatchIdConsumerPostRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_match_id_consumer_post_request_dict = v1_extranet_b2b_matches_match_id_consumer_post_request_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesMatchIdConsumerPostRequest from a dict +v1_extranet_b2b_matches_match_id_consumer_post_request_from_dict = V1ExtranetB2bMatchesMatchIdConsumerPostRequest.from_dict(v1_extranet_b2b_matches_match_id_consumer_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/V1ExtranetB2bMatchesMatchIdConsumerPostResponse.md b/docs/V1ExtranetB2bMatchesMatchIdConsumerPostResponse.md new file mode 100644 index 00000000..377738f8 --- /dev/null +++ b/docs/V1ExtranetB2bMatchesMatchIdConsumerPostResponse.md @@ -0,0 +1,31 @@ +# V1ExtranetB2bMatchesMatchIdConsumerPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_activity_id** | **str** | | [optional] +**id** | **int** | | [optional] +**policy** | [**ManaV2ExtranetServiceConsumerPolicy**](ManaV2ExtranetServiceConsumerPolicy.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_post_response import V1ExtranetB2bMatchesMatchIdConsumerPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesMatchIdConsumerPostResponse from a JSON string +v1_extranet_b2b_matches_match_id_consumer_post_response_instance = V1ExtranetB2bMatchesMatchIdConsumerPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesMatchIdConsumerPostResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_match_id_consumer_post_response_dict = v1_extranet_b2b_matches_match_id_consumer_post_response_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesMatchIdConsumerPostResponse from a dict +v1_extranet_b2b_matches_match_id_consumer_post_response_from_dict = V1ExtranetB2bMatchesMatchIdConsumerPostResponse.from_dict(v1_extranet_b2b_matches_match_id_consumer_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/V1ExtranetB2bMatchesMatchIdDeleteResponse.md b/docs/V1ExtranetB2bMatchesMatchIdDeleteResponse.md new file mode 100644 index 00000000..74debdf2 --- /dev/null +++ b/docs/V1ExtranetB2bMatchesMatchIdDeleteResponse.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bMatchesMatchIdDeleteResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**activity_id** | **str** | | [optional] +**consumer_activity_id** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_delete_response import V1ExtranetB2bMatchesMatchIdDeleteResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesMatchIdDeleteResponse from a JSON string +v1_extranet_b2b_matches_match_id_delete_response_instance = V1ExtranetB2bMatchesMatchIdDeleteResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesMatchIdDeleteResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_match_id_delete_response_dict = v1_extranet_b2b_matches_match_id_delete_response_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesMatchIdDeleteResponse from a dict +v1_extranet_b2b_matches_match_id_delete_response_from_dict = V1ExtranetB2bMatchesMatchIdDeleteResponse.from_dict(v1_extranet_b2b_matches_match_id_delete_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/V1ExtranetB2bMatchesMatchIdDetailsGetResponse.md b/docs/V1ExtranetB2bMatchesMatchIdDetailsGetResponse.md new file mode 100644 index 00000000..341a28a6 --- /dev/null +++ b/docs/V1ExtranetB2bMatchesMatchIdDetailsGetResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bMatchesMatchIdDetailsGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**details** | [**List[ManaV2B2bExtranetMatchConsumerDetails]**](ManaV2B2bExtranetMatchConsumerDetails.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_details_get_response import V1ExtranetB2bMatchesMatchIdDetailsGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesMatchIdDetailsGetResponse from a JSON string +v1_extranet_b2b_matches_match_id_details_get_response_instance = V1ExtranetB2bMatchesMatchIdDetailsGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesMatchIdDetailsGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_match_id_details_get_response_dict = v1_extranet_b2b_matches_match_id_details_get_response_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesMatchIdDetailsGetResponse from a dict +v1_extranet_b2b_matches_match_id_details_get_response_from_dict = V1ExtranetB2bMatchesMatchIdDetailsGetResponse.from_dict(v1_extranet_b2b_matches_match_id_details_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/V1ExtranetB2bMatchesMatchIdGetResponse.md b/docs/V1ExtranetB2bMatchesMatchIdGetResponse.md new file mode 100644 index 00000000..96c0fb2d --- /dev/null +++ b/docs/V1ExtranetB2bMatchesMatchIdGetResponse.md @@ -0,0 +1,33 @@ +# V1ExtranetB2bMatchesMatchIdGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer_name** | **str** | | [optional] +**match** | [**ManaV2B2bExtranetMatch**](ManaV2B2bExtranetMatch.md) | | [optional] +**match_id** | **int** | | [optional] +**service_name** | **str** | | [optional] +**status** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_get_response import V1ExtranetB2bMatchesMatchIdGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesMatchIdGetResponse from a JSON string +v1_extranet_b2b_matches_match_id_get_response_instance = V1ExtranetB2bMatchesMatchIdGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesMatchIdGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_match_id_get_response_dict = v1_extranet_b2b_matches_match_id_get_response_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesMatchIdGetResponse from a dict +v1_extranet_b2b_matches_match_id_get_response_from_dict = V1ExtranetB2bMatchesMatchIdGetResponse.from_dict(v1_extranet_b2b_matches_match_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/V1ExtranetB2bMatchesMatchIdPutRequest.md b/docs/V1ExtranetB2bMatchesMatchIdPutRequest.md new file mode 100644 index 00000000..026440e8 --- /dev/null +++ b/docs/V1ExtranetB2bMatchesMatchIdPutRequest.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bMatchesMatchIdPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**match** | [**ManaV2B2bExtranetMatch**](ManaV2B2bExtranetMatch.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_put_request import V1ExtranetB2bMatchesMatchIdPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesMatchIdPutRequest from a JSON string +v1_extranet_b2b_matches_match_id_put_request_instance = V1ExtranetB2bMatchesMatchIdPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesMatchIdPutRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_match_id_put_request_dict = v1_extranet_b2b_matches_match_id_put_request_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesMatchIdPutRequest from a dict +v1_extranet_b2b_matches_match_id_put_request_from_dict = V1ExtranetB2bMatchesMatchIdPutRequest.from_dict(v1_extranet_b2b_matches_match_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/V1ExtranetB2bMatchesMatchIdPutResponse.md b/docs/V1ExtranetB2bMatchesMatchIdPutResponse.md new file mode 100644 index 00000000..815bbca1 --- /dev/null +++ b/docs/V1ExtranetB2bMatchesMatchIdPutResponse.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bMatchesMatchIdPutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**activity_id** | **str** | | [optional] +**match** | [**ManaV2B2bExtranetMatch**](ManaV2B2bExtranetMatch.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_put_response import V1ExtranetB2bMatchesMatchIdPutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesMatchIdPutResponse from a JSON string +v1_extranet_b2b_matches_match_id_put_response_instance = V1ExtranetB2bMatchesMatchIdPutResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesMatchIdPutResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_match_id_put_response_dict = v1_extranet_b2b_matches_match_id_put_response_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesMatchIdPutResponse from a dict +v1_extranet_b2b_matches_match_id_put_response_from_dict = V1ExtranetB2bMatchesMatchIdPutResponse.from_dict(v1_extranet_b2b_matches_match_id_put_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/V1ExtranetB2bMatchesMatchIdStatusPutRequest.md b/docs/V1ExtranetB2bMatchesMatchIdStatusPutRequest.md new file mode 100644 index 00000000..4526e8ad --- /dev/null +++ b/docs/V1ExtranetB2bMatchesMatchIdStatusPutRequest.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bMatchesMatchIdStatusPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_status_put_request import V1ExtranetB2bMatchesMatchIdStatusPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesMatchIdStatusPutRequest from a JSON string +v1_extranet_b2b_matches_match_id_status_put_request_instance = V1ExtranetB2bMatchesMatchIdStatusPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesMatchIdStatusPutRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_match_id_status_put_request_dict = v1_extranet_b2b_matches_match_id_status_put_request_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesMatchIdStatusPutRequest from a dict +v1_extranet_b2b_matches_match_id_status_put_request_from_dict = V1ExtranetB2bMatchesMatchIdStatusPutRequest.from_dict(v1_extranet_b2b_matches_match_id_status_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/V1ExtranetB2bMatchesMatchIdStatusPutResponse.md b/docs/V1ExtranetB2bMatchesMatchIdStatusPutResponse.md new file mode 100644 index 00000000..092c5da4 --- /dev/null +++ b/docs/V1ExtranetB2bMatchesMatchIdStatusPutResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bMatchesMatchIdStatusPutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_status_put_response import V1ExtranetB2bMatchesMatchIdStatusPutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesMatchIdStatusPutResponse from a JSON string +v1_extranet_b2b_matches_match_id_status_put_response_instance = V1ExtranetB2bMatchesMatchIdStatusPutResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesMatchIdStatusPutResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_match_id_status_put_response_dict = v1_extranet_b2b_matches_match_id_status_put_response_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesMatchIdStatusPutResponse from a dict +v1_extranet_b2b_matches_match_id_status_put_response_from_dict = V1ExtranetB2bMatchesMatchIdStatusPutResponse.from_dict(v1_extranet_b2b_matches_match_id_status_put_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/V1ExtranetB2bMatchesPausePutRequest.md b/docs/V1ExtranetB2bMatchesPausePutRequest.md new file mode 100644 index 00000000..cadf908d --- /dev/null +++ b/docs/V1ExtranetB2bMatchesPausePutRequest.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bMatchesPausePutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer_id** | **int** | | [optional] +**status** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_pause_put_request import V1ExtranetB2bMatchesPausePutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesPausePutRequest from a JSON string +v1_extranet_b2b_matches_pause_put_request_instance = V1ExtranetB2bMatchesPausePutRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesPausePutRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_pause_put_request_dict = v1_extranet_b2b_matches_pause_put_request_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesPausePutRequest from a dict +v1_extranet_b2b_matches_pause_put_request_from_dict = V1ExtranetB2bMatchesPausePutRequest.from_dict(v1_extranet_b2b_matches_pause_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/V1ExtranetB2bMatchesPausePutResponse.md b/docs/V1ExtranetB2bMatchesPausePutResponse.md new file mode 100644 index 00000000..6ae8786a --- /dev/null +++ b/docs/V1ExtranetB2bMatchesPausePutResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bMatchesPausePutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_pause_put_response import V1ExtranetB2bMatchesPausePutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesPausePutResponse from a JSON string +v1_extranet_b2b_matches_pause_put_response_instance = V1ExtranetB2bMatchesPausePutResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesPausePutResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_pause_put_response_dict = v1_extranet_b2b_matches_pause_put_response_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesPausePutResponse from a dict +v1_extranet_b2b_matches_pause_put_response_from_dict = V1ExtranetB2bMatchesPausePutResponse.from_dict(v1_extranet_b2b_matches_pause_put_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/V1ExtranetB2bMatchesPostRequest.md b/docs/V1ExtranetB2bMatchesPostRequest.md new file mode 100644 index 00000000..55c2c81a --- /dev/null +++ b/docs/V1ExtranetB2bMatchesPostRequest.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bMatchesPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer_id** | **int** | | [optional] +**match** | [**ManaV2B2bExtranetMatch**](ManaV2B2bExtranetMatch.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_post_request import V1ExtranetB2bMatchesPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesPostRequest from a JSON string +v1_extranet_b2b_matches_post_request_instance = V1ExtranetB2bMatchesPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesPostRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_post_request_dict = v1_extranet_b2b_matches_post_request_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesPostRequest from a dict +v1_extranet_b2b_matches_post_request_from_dict = V1ExtranetB2bMatchesPostRequest.from_dict(v1_extranet_b2b_matches_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/V1ExtranetB2bMatchesPostResponse.md b/docs/V1ExtranetB2bMatchesPostResponse.md new file mode 100644 index 00000000..06ed6db4 --- /dev/null +++ b/docs/V1ExtranetB2bMatchesPostResponse.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bMatchesPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**match_id** | **int** | | [optional] +**matches** | [**List[ManaV2B2bExtranetMatch]**](ManaV2B2bExtranetMatch.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_post_response import V1ExtranetB2bMatchesPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesPostResponse from a JSON string +v1_extranet_b2b_matches_post_response_instance = V1ExtranetB2bMatchesPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesPostResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_post_response_dict = v1_extranet_b2b_matches_post_response_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesPostResponse from a dict +v1_extranet_b2b_matches_post_response_from_dict = V1ExtranetB2bMatchesPostResponse.from_dict(v1_extranet_b2b_matches_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/V1ExtranetB2bMatchesReviewPostRequest.md b/docs/V1ExtranetB2bMatchesReviewPostRequest.md new file mode 100644 index 00000000..f088f57b --- /dev/null +++ b/docs/V1ExtranetB2bMatchesReviewPostRequest.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bMatchesReviewPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customer_id** | **int** | | [optional] +**match** | [**ManaV2B2bExtranetMatch**](ManaV2B2bExtranetMatch.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_review_post_request import V1ExtranetB2bMatchesReviewPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesReviewPostRequest from a JSON string +v1_extranet_b2b_matches_review_post_request_instance = V1ExtranetB2bMatchesReviewPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesReviewPostRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_review_post_request_dict = v1_extranet_b2b_matches_review_post_request_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesReviewPostRequest from a dict +v1_extranet_b2b_matches_review_post_request_from_dict = V1ExtranetB2bMatchesReviewPostRequest.from_dict(v1_extranet_b2b_matches_review_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/V1ExtranetB2bMatchesReviewPostResponse.md b/docs/V1ExtranetB2bMatchesReviewPostResponse.md new file mode 100644 index 00000000..f204e7d0 --- /dev/null +++ b/docs/V1ExtranetB2bMatchesReviewPostResponse.md @@ -0,0 +1,30 @@ +# V1ExtranetB2bMatchesReviewPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**match_id** | **int** | | [optional] +**matches** | [**List[ManaV2B2bExtranetMatch]**](ManaV2B2bExtranetMatch.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_matches_review_post_response import V1ExtranetB2bMatchesReviewPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bMatchesReviewPostResponse from a JSON string +v1_extranet_b2b_matches_review_post_response_instance = V1ExtranetB2bMatchesReviewPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bMatchesReviewPostResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_matches_review_post_response_dict = v1_extranet_b2b_matches_review_post_response_instance.to_dict() +# create an instance of V1ExtranetB2bMatchesReviewPostResponse from a dict +v1_extranet_b2b_matches_review_post_response_from_dict = V1ExtranetB2bMatchesReviewPostResponse.from_dict(v1_extranet_b2b_matches_review_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/V1ExtranetB2bProducerIdCustomersGetResponse.md b/docs/V1ExtranetB2bProducerIdCustomersGetResponse.md new file mode 100644 index 00000000..89468bef --- /dev/null +++ b/docs/V1ExtranetB2bProducerIdCustomersGetResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bProducerIdCustomersGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customers** | [**List[ManaV2ExtranetServiceProducerCustomer]**](ManaV2ExtranetServiceProducerCustomer.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_producer_id_customers_get_response import V1ExtranetB2bProducerIdCustomersGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bProducerIdCustomersGetResponse from a JSON string +v1_extranet_b2b_producer_id_customers_get_response_instance = V1ExtranetB2bProducerIdCustomersGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bProducerIdCustomersGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_producer_id_customers_get_response_dict = v1_extranet_b2b_producer_id_customers_get_response_instance.to_dict() +# create an instance of V1ExtranetB2bProducerIdCustomersGetResponse from a dict +v1_extranet_b2b_producer_id_customers_get_response_from_dict = V1ExtranetB2bProducerIdCustomersGetResponse.from_dict(v1_extranet_b2b_producer_id_customers_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/V1ExtranetB2bProducerIdDeviceStatusGetResponse.md b/docs/V1ExtranetB2bProducerIdDeviceStatusGetResponse.md new file mode 100644 index 00000000..80552335 --- /dev/null +++ b/docs/V1ExtranetB2bProducerIdDeviceStatusGetResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bProducerIdDeviceStatusGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**summary** | [**List[ManaV2B2bExtranetStatusSummary]**](ManaV2B2bExtranetStatusSummary.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_producer_id_device_status_get_response import V1ExtranetB2bProducerIdDeviceStatusGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bProducerIdDeviceStatusGetResponse from a JSON string +v1_extranet_b2b_producer_id_device_status_get_response_instance = V1ExtranetB2bProducerIdDeviceStatusGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bProducerIdDeviceStatusGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_producer_id_device_status_get_response_dict = v1_extranet_b2b_producer_id_device_status_get_response_instance.to_dict() +# create an instance of V1ExtranetB2bProducerIdDeviceStatusGetResponse from a dict +v1_extranet_b2b_producer_id_device_status_get_response_from_dict = V1ExtranetB2bProducerIdDeviceStatusGetResponse.from_dict(v1_extranet_b2b_producer_id_device_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/V1ExtranetB2bProducerIdGetResponse.md b/docs/V1ExtranetB2bProducerIdGetResponse.md new file mode 100644 index 00000000..18e2b847 --- /dev/null +++ b/docs/V1ExtranetB2bProducerIdGetResponse.md @@ -0,0 +1,31 @@ +# V1ExtranetB2bProducerIdGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**policy** | [**ManaV2ExtranetServicePolicyResponse**](ManaV2ExtranetServicePolicyResponse.md) | | [optional] +**status** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_producer_id_get_response import V1ExtranetB2bProducerIdGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bProducerIdGetResponse from a JSON string +v1_extranet_b2b_producer_id_get_response_instance = V1ExtranetB2bProducerIdGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bProducerIdGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_producer_id_get_response_dict = v1_extranet_b2b_producer_id_get_response_instance.to_dict() +# create an instance of V1ExtranetB2bProducerIdGetResponse from a dict +v1_extranet_b2b_producer_id_get_response_from_dict = V1ExtranetB2bProducerIdGetResponse.from_dict(v1_extranet_b2b_producer_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/V1ExtranetB2bProducerIdPutRequest.md b/docs/V1ExtranetB2bProducerIdPutRequest.md new file mode 100644 index 00000000..92983962 --- /dev/null +++ b/docs/V1ExtranetB2bProducerIdPutRequest.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bProducerIdPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | [**ManaV2ExtranetServiceProducerPolicy**](ManaV2ExtranetServiceProducerPolicy.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_producer_id_put_request import V1ExtranetB2bProducerIdPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bProducerIdPutRequest from a JSON string +v1_extranet_b2b_producer_id_put_request_instance = V1ExtranetB2bProducerIdPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bProducerIdPutRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_producer_id_put_request_dict = v1_extranet_b2b_producer_id_put_request_instance.to_dict() +# create an instance of V1ExtranetB2bProducerIdPutRequest from a dict +v1_extranet_b2b_producer_id_put_request_from_dict = V1ExtranetB2bProducerIdPutRequest.from_dict(v1_extranet_b2b_producer_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/V1ExtranetB2bProducerIdPutResponse.md b/docs/V1ExtranetB2bProducerIdPutResponse.md new file mode 100644 index 00000000..7e918b46 --- /dev/null +++ b/docs/V1ExtranetB2bProducerIdPutResponse.md @@ -0,0 +1,32 @@ +# V1ExtranetB2bProducerIdPutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**activity_id** | **str** | | [optional] +**consumer_activity_id** | **str** | | [optional] +**id** | **int** | | [optional] +**policy** | [**ManaV2ExtranetServicePolicyResponse**](ManaV2ExtranetServicePolicyResponse.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_producer_id_put_response import V1ExtranetB2bProducerIdPutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bProducerIdPutResponse from a JSON string +v1_extranet_b2b_producer_id_put_response_instance = V1ExtranetB2bProducerIdPutResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bProducerIdPutResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_producer_id_put_response_dict = v1_extranet_b2b_producer_id_put_response_instance.to_dict() +# create an instance of V1ExtranetB2bProducerIdPutResponse from a dict +v1_extranet_b2b_producer_id_put_response_from_dict = V1ExtranetB2bProducerIdPutResponse.from_dict(v1_extranet_b2b_producer_id_put_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/V1ExtranetB2bProducerIdStatusPutRequest.md b/docs/V1ExtranetB2bProducerIdStatusPutRequest.md new file mode 100644 index 00000000..6d6f7b23 --- /dev/null +++ b/docs/V1ExtranetB2bProducerIdStatusPutRequest.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bProducerIdStatusPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_producer_id_status_put_request import V1ExtranetB2bProducerIdStatusPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bProducerIdStatusPutRequest from a JSON string +v1_extranet_b2b_producer_id_status_put_request_instance = V1ExtranetB2bProducerIdStatusPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bProducerIdStatusPutRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_producer_id_status_put_request_dict = v1_extranet_b2b_producer_id_status_put_request_instance.to_dict() +# create an instance of V1ExtranetB2bProducerIdStatusPutRequest from a dict +v1_extranet_b2b_producer_id_status_put_request_from_dict = V1ExtranetB2bProducerIdStatusPutRequest.from_dict(v1_extranet_b2b_producer_id_status_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/V1ExtranetB2bProducerIdStatusPutResponse.md b/docs/V1ExtranetB2bProducerIdStatusPutResponse.md new file mode 100644 index 00000000..b2ec6b9a --- /dev/null +++ b/docs/V1ExtranetB2bProducerIdStatusPutResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bProducerIdStatusPutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_producer_id_status_put_response import V1ExtranetB2bProducerIdStatusPutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bProducerIdStatusPutResponse from a JSON string +v1_extranet_b2b_producer_id_status_put_response_instance = V1ExtranetB2bProducerIdStatusPutResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bProducerIdStatusPutResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_producer_id_status_put_response_dict = v1_extranet_b2b_producer_id_status_put_response_instance.to_dict() +# create an instance of V1ExtranetB2bProducerIdStatusPutResponse from a dict +v1_extranet_b2b_producer_id_status_put_response_from_dict = V1ExtranetB2bProducerIdStatusPutResponse.from_dict(v1_extranet_b2b_producer_id_status_put_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/V1ExtranetB2bProducerPostRequest.md b/docs/V1ExtranetB2bProducerPostRequest.md new file mode 100644 index 00000000..0e0b33d2 --- /dev/null +++ b/docs/V1ExtranetB2bProducerPostRequest.md @@ -0,0 +1,31 @@ +# V1ExtranetB2bProducerPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | [**ManaV2ExtranetServiceProducerPolicy**](ManaV2ExtranetServiceProducerPolicy.md) | | +**service_name** | **str** | (required) | +**service_type** | **str** | Branded extranet service type (peering_service, client_to_server, …) (required) | + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_producer_post_request import V1ExtranetB2bProducerPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bProducerPostRequest from a JSON string +v1_extranet_b2b_producer_post_request_instance = V1ExtranetB2bProducerPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bProducerPostRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_producer_post_request_dict = v1_extranet_b2b_producer_post_request_instance.to_dict() +# create an instance of V1ExtranetB2bProducerPostRequest from a dict +v1_extranet_b2b_producer_post_request_from_dict = V1ExtranetB2bProducerPostRequest.from_dict(v1_extranet_b2b_producer_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/V1ExtranetB2bProducerPostResponse.md b/docs/V1ExtranetB2bProducerPostResponse.md new file mode 100644 index 00000000..9a764283 --- /dev/null +++ b/docs/V1ExtranetB2bProducerPostResponse.md @@ -0,0 +1,31 @@ +# V1ExtranetB2bProducerPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**activity_id** | **str** | | [optional] +**id** | **int** | | [optional] +**policy** | [**ManaV2ExtranetServicePolicyResponse**](ManaV2ExtranetServicePolicyResponse.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_producer_post_response import V1ExtranetB2bProducerPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bProducerPostResponse from a JSON string +v1_extranet_b2b_producer_post_response_instance = V1ExtranetB2bProducerPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bProducerPostResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_producer_post_response_dict = v1_extranet_b2b_producer_post_response_instance.to_dict() +# create an instance of V1ExtranetB2bProducerPostResponse from a dict +v1_extranet_b2b_producer_post_response_from_dict = V1ExtranetB2bProducerPostResponse.from_dict(v1_extranet_b2b_producer_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/V1ExtranetB2bProducerReviewPostRequest.md b/docs/V1ExtranetB2bProducerReviewPostRequest.md new file mode 100644 index 00000000..993bedf9 --- /dev/null +++ b/docs/V1ExtranetB2bProducerReviewPostRequest.md @@ -0,0 +1,31 @@ +# V1ExtranetB2bProducerReviewPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | [**ManaV2ExtranetServiceProducerPolicy**](ManaV2ExtranetServiceProducerPolicy.md) | | +**service_name** | **str** | (required) | +**service_type** | **str** | Branded extranet service type (peering_service, client_to_server, …) (required) | + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_producer_review_post_request import V1ExtranetB2bProducerReviewPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bProducerReviewPostRequest from a JSON string +v1_extranet_b2b_producer_review_post_request_instance = V1ExtranetB2bProducerReviewPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bProducerReviewPostRequest.to_json()) + +# convert the object into a dict +v1_extranet_b2b_producer_review_post_request_dict = v1_extranet_b2b_producer_review_post_request_instance.to_dict() +# create an instance of V1ExtranetB2bProducerReviewPostRequest from a dict +v1_extranet_b2b_producer_review_post_request_from_dict = V1ExtranetB2bProducerReviewPostRequest.from_dict(v1_extranet_b2b_producer_review_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/V1ExtranetB2bProducerReviewPostResponse.md b/docs/V1ExtranetB2bProducerReviewPostResponse.md new file mode 100644 index 00000000..56c56ef4 --- /dev/null +++ b/docs/V1ExtranetB2bProducerReviewPostResponse.md @@ -0,0 +1,31 @@ +# V1ExtranetB2bProducerReviewPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**activity_id** | **str** | | [optional] +**id** | **int** | | [optional] +**policy** | [**ManaV2ExtranetServicePolicyResponse**](ManaV2ExtranetServicePolicyResponse.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_producer_review_post_response import V1ExtranetB2bProducerReviewPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bProducerReviewPostResponse from a JSON string +v1_extranet_b2b_producer_review_post_response_instance = V1ExtranetB2bProducerReviewPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bProducerReviewPostResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_producer_review_post_response_dict = v1_extranet_b2b_producer_review_post_response_instance.to_dict() +# create an instance of V1ExtranetB2bProducerReviewPostResponse from a dict +v1_extranet_b2b_producer_review_post_response_from_dict = V1ExtranetB2bProducerReviewPostResponse.from_dict(v1_extranet_b2b_producer_review_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/V1ExtranetB2bServicesSummaryGetResponse.md b/docs/V1ExtranetB2bServicesSummaryGetResponse.md new file mode 100644 index 00000000..1263cf7e --- /dev/null +++ b/docs/V1ExtranetB2bServicesSummaryGetResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetB2bServicesSummaryGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**services** | [**List[ManaV2ExtranetServiceSummary]**](ManaV2ExtranetServiceSummary.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_b2b_services_summary_get_response import V1ExtranetB2bServicesSummaryGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetB2bServicesSummaryGetResponse from a JSON string +v1_extranet_b2b_services_summary_get_response_instance = V1ExtranetB2bServicesSummaryGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetB2bServicesSummaryGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_b2b_services_summary_get_response_dict = v1_extranet_b2b_services_summary_get_response_instance.to_dict() +# create an instance of V1ExtranetB2bServicesSummaryGetResponse from a dict +v1_extranet_b2b_services_summary_get_response_from_dict = V1ExtranetB2bServicesSummaryGetResponse.from_dict(v1_extranet_b2b_services_summary_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/V1GatewaysReferenceConsumerGetResponse.md b/docs/V1GatewaysReferenceConsumerGetResponse.md index e4a21263..aa0c8659 100644 --- a/docs/V1GatewaysReferenceConsumerGetResponse.md +++ b/docs/V1GatewaysReferenceConsumerGetResponse.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ipsec_gateway_details** | [**ManaV2IPsecGatewayDetails**](ManaV2IPsecGatewayDetails.md) | | [optional] +**ipsec_gateway_peers** | [**ManaV2IPsecGatewayPeersConfig**](ManaV2IPsecGatewayPeersConfig.md) | | [optional] ## Example diff --git a/docs/V1InvitationEmailPostRequest.md b/docs/V1InvitationEmailPostRequest.md index 6d16b888..252e6b16 100644 --- a/docs/V1InvitationEmailPostRequest.md +++ b/docs/V1InvitationEmailPostRequest.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **match_id** | **int** | (required) | **service_id** | **int** | (required) | **service_name** | **str** | (required) | +**service_type** | **str** | Extranet service type URL segment (e.g. peering_service, client_to_server) | [optional] ## Example diff --git a/docs/V1LanSegmentsInterfacesPublicGetResponse.md b/docs/V1LanSegmentsInterfacesPublicGetResponse.md new file mode 100644 index 00000000..7de3522c --- /dev/null +++ b/docs/V1LanSegmentsInterfacesPublicGetResponse.md @@ -0,0 +1,29 @@ +# V1LanSegmentsInterfacesPublicGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lan_segment_ids** | [**Dict[str, ManaV2LanSegmentPublicInterfacesLists]**](ManaV2LanSegmentPublicInterfacesLists.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_lan_segments_interfaces_public_get_response import V1LanSegmentsInterfacesPublicGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1LanSegmentsInterfacesPublicGetResponse from a JSON string +v1_lan_segments_interfaces_public_get_response_instance = V1LanSegmentsInterfacesPublicGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1LanSegmentsInterfacesPublicGetResponse.to_json()) + +# convert the object into a dict +v1_lan_segments_interfaces_public_get_response_dict = v1_lan_segments_interfaces_public_get_response_instance.to_dict() +# create an instance of V1LanSegmentsInterfacesPublicGetResponse from a dict +v1_lan_segments_interfaces_public_get_response_from_dict = V1LanSegmentsInterfacesPublicGetResponse.from_dict(v1_lan_segments_interfaces_public_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/V1PvifIdDetailsGetResponse.md b/docs/V1PvifIdDetailsGetResponse.md new file mode 100644 index 00000000..e1fb7f33 --- /dev/null +++ b/docs/V1PvifIdDetailsGetResponse.md @@ -0,0 +1,39 @@ +# V1PvifIdDetailsGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertise_all_sites** | **bool** | True when consumer scope is all symmetric sites (snapshotted on create and update); false when advertisement lists explicit sites or site lists | [optional] +**advertisement** | [**ManaV2SiteInformation**](ManaV2SiteInformation.md) | | [optional] +**consumer_lan_segments** | [**Dict[str, ManaV2PublicVifGatewayConsumerLanDevices]**](ManaV2PublicVifGatewayConsumerLanDevices.md) | | [optional] +**covering_prefixes** | **List[str]** | | [optional] +**gateway_bgp_neighbors** | [**Dict[str, ManaV2BgpNeighbor]**](ManaV2BgpNeighbor.md) | | [optional] +**id** | **int** | Producer service id | [optional] +**lan_segment_id** | **int** | Producer LAN segment (VRF) id | [optional] +**nat_prefix_strategy** | [**ManaV2PublicVifGatewayNatPrefixStrategy**](ManaV2PublicVifGatewayNatPrefixStrategy.md) | | [optional] +**region_id** | **int** | Graphiant region for gateway appliances | [optional] +**service_name** | **str** | Service display name | [optional] +**storage_provider** | **str** | Storage provider for gateway appliances | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_pvif_id_details_get_response import V1PvifIdDetailsGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PvifIdDetailsGetResponse from a JSON string +v1_pvif_id_details_get_response_instance = V1PvifIdDetailsGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1PvifIdDetailsGetResponse.to_json()) + +# convert the object into a dict +v1_pvif_id_details_get_response_dict = v1_pvif_id_details_get_response_instance.to_dict() +# create an instance of V1PvifIdDetailsGetResponse from a dict +v1_pvif_id_details_get_response_from_dict = V1PvifIdDetailsGetResponse.from_dict(v1_pvif_id_details_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/V1PvifIdPutRequest.md b/docs/V1PvifIdPutRequest.md new file mode 100644 index 00000000..e3bf1e83 --- /dev/null +++ b/docs/V1PvifIdPutRequest.md @@ -0,0 +1,29 @@ +# V1PvifIdPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | [**ManaV2PublicVifGatewayWriteRequest**](ManaV2PublicVifGatewayWriteRequest.md) | | + +## Example + +```python +from graphiant_sdk.models.v1_pvif_id_put_request import V1PvifIdPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PvifIdPutRequest from a JSON string +v1_pvif_id_put_request_instance = V1PvifIdPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1PvifIdPutRequest.to_json()) + +# convert the object into a dict +v1_pvif_id_put_request_dict = v1_pvif_id_put_request_instance.to_dict() +# create an instance of V1PvifIdPutRequest from a dict +v1_pvif_id_put_request_from_dict = V1PvifIdPutRequest.from_dict(v1_pvif_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/V1PvifIdPutResponse.md b/docs/V1PvifIdPutResponse.md new file mode 100644 index 00000000..7dc4ac75 --- /dev/null +++ b/docs/V1PvifIdPutResponse.md @@ -0,0 +1,39 @@ +# V1PvifIdPutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertise_all_sites** | **bool** | True when consumer scope is all symmetric sites (snapshotted on create and update); false when advertisement lists explicit sites or site lists | [optional] +**advertisement** | [**ManaV2SiteInformation**](ManaV2SiteInformation.md) | | [optional] +**consumer_lan_segments** | [**Dict[str, ManaV2PublicVifGatewayConsumerLanDevices]**](ManaV2PublicVifGatewayConsumerLanDevices.md) | | [optional] +**covering_prefixes** | **List[str]** | | [optional] +**gateway_bgp_neighbors** | [**Dict[str, ManaV2BgpNeighbor]**](ManaV2BgpNeighbor.md) | | [optional] +**id** | **int** | Producer service id | [optional] +**lan_segment_id** | **int** | Producer LAN segment (VRF) id | [optional] +**nat_prefix_strategy** | [**ManaV2PublicVifGatewayNatPrefixStrategy**](ManaV2PublicVifGatewayNatPrefixStrategy.md) | | [optional] +**region_id** | **int** | Graphiant region for gateway appliances | [optional] +**service_name** | **str** | Service display name | [optional] +**storage_provider** | **str** | Storage provider for gateway appliances | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_pvif_id_put_response import V1PvifIdPutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PvifIdPutResponse from a JSON string +v1_pvif_id_put_response_instance = V1PvifIdPutResponse.from_json(json) +# print the JSON string representation of the object +print(V1PvifIdPutResponse.to_json()) + +# convert the object into a dict +v1_pvif_id_put_response_dict = v1_pvif_id_put_response_instance.to_dict() +# create an instance of V1PvifIdPutResponse from a dict +v1_pvif_id_put_response_from_dict = V1PvifIdPutResponse.from_dict(v1_pvif_id_put_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/V1PvifPostRequest.md b/docs/V1PvifPostRequest.md new file mode 100644 index 00000000..db7cc4b8 --- /dev/null +++ b/docs/V1PvifPostRequest.md @@ -0,0 +1,37 @@ +# V1PvifPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertisement** | [**ManaV2SiteInformation**](ManaV2SiteInformation.md) | | [optional] +**consumer_lan_segments** | [**Dict[str, ManaV2PublicVifGatewayConsumerLanDevices]**](ManaV2PublicVifGatewayConsumerLanDevices.md) | | +**covering_prefixes** | **List[str]** | | [optional] +**gateway_bgp_neighbors** | [**Dict[str, ManaV2BgpNeighborConfig]**](ManaV2BgpNeighborConfig.md) | | +**lan_segment_id** | **int** | Producer LAN segment (VRF) on gateway appliances (required) | +**nat_prefix_strategy** | [**ManaV2PublicVifGatewayNatPrefixStrategy**](ManaV2PublicVifGatewayNatPrefixStrategy.md) | | +**region_id** | **int** | Graphiant region for gateway appliances (required) | +**service_name** | **str** | Service display name (required) | +**storage_provider** | **str** | Storage provider; each gateway appliance must match region and provider (required) | + +## Example + +```python +from graphiant_sdk.models.v1_pvif_post_request import V1PvifPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PvifPostRequest from a JSON string +v1_pvif_post_request_instance = V1PvifPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1PvifPostRequest.to_json()) + +# convert the object into a dict +v1_pvif_post_request_dict = v1_pvif_post_request_instance.to_dict() +# create an instance of V1PvifPostRequest from a dict +v1_pvif_post_request_from_dict = V1PvifPostRequest.from_dict(v1_pvif_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/V1PvifPostResponse.md b/docs/V1PvifPostResponse.md new file mode 100644 index 00000000..374e0f89 --- /dev/null +++ b/docs/V1PvifPostResponse.md @@ -0,0 +1,39 @@ +# V1PvifPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**advertise_all_sites** | **bool** | True when consumer scope is all symmetric sites (snapshotted on create and update); false when advertisement lists explicit sites or site lists | [optional] +**advertisement** | [**ManaV2SiteInformation**](ManaV2SiteInformation.md) | | [optional] +**consumer_lan_segments** | [**Dict[str, ManaV2PublicVifGatewayConsumerLanDevices]**](ManaV2PublicVifGatewayConsumerLanDevices.md) | | [optional] +**covering_prefixes** | **List[str]** | | [optional] +**gateway_bgp_neighbors** | [**Dict[str, ManaV2BgpNeighbor]**](ManaV2BgpNeighbor.md) | | [optional] +**id** | **int** | Producer service id | [optional] +**lan_segment_id** | **int** | Producer LAN segment (VRF) id | [optional] +**nat_prefix_strategy** | [**ManaV2PublicVifGatewayNatPrefixStrategy**](ManaV2PublicVifGatewayNatPrefixStrategy.md) | | [optional] +**region_id** | **int** | Graphiant region for gateway appliances | [optional] +**service_name** | **str** | Service display name | [optional] +**storage_provider** | **str** | Storage provider for gateway appliances | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_pvif_post_response import V1PvifPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PvifPostResponse from a JSON string +v1_pvif_post_response_instance = V1PvifPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1PvifPostResponse.to_json()) + +# convert the object into a dict +v1_pvif_post_response_dict = v1_pvif_post_response_instance.to_dict() +# create an instance of V1PvifPostResponse from a dict +v1_pvif_post_response_from_dict = V1PvifPostResponse.from_dict(v1_pvif_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/V1PvifSummaryGetResponse.md b/docs/V1PvifSummaryGetResponse.md new file mode 100644 index 00000000..b294e852 --- /dev/null +++ b/docs/V1PvifSummaryGetResponse.md @@ -0,0 +1,29 @@ +# V1PvifSummaryGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**summary** | [**List[ManaV2PublicVifSummary]**](ManaV2PublicVifSummary.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_pvif_summary_get_response import V1PvifSummaryGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1PvifSummaryGetResponse from a JSON string +v1_pvif_summary_get_response_instance = V1PvifSummaryGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1PvifSummaryGetResponse.to_json()) + +# convert the object into a dict +v1_pvif_summary_get_response_dict = v1_pvif_summary_get_response_instance.to_dict() +# create an instance of V1PvifSummaryGetResponse from a dict +v1_pvif_summary_get_response_from_dict = V1PvifSummaryGetResponse.from_dict(v1_pvif_summary_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/V1RegionsRegionIdGatewaysGetResponse.md b/docs/V1RegionsRegionIdGatewaysGetResponse.md new file mode 100644 index 00000000..7caa24d5 --- /dev/null +++ b/docs/V1RegionsRegionIdGatewaysGetResponse.md @@ -0,0 +1,29 @@ +# V1RegionsRegionIdGatewaysGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gateways** | [**List[V1RegionsRegionIdGatewaysGetResponseGateway]**](V1RegionsRegionIdGatewaysGetResponseGateway.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_regions_region_id_gateways_get_response import V1RegionsRegionIdGatewaysGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1RegionsRegionIdGatewaysGetResponse from a JSON string +v1_regions_region_id_gateways_get_response_instance = V1RegionsRegionIdGatewaysGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1RegionsRegionIdGatewaysGetResponse.to_json()) + +# convert the object into a dict +v1_regions_region_id_gateways_get_response_dict = v1_regions_region_id_gateways_get_response_instance.to_dict() +# create an instance of V1RegionsRegionIdGatewaysGetResponse from a dict +v1_regions_region_id_gateways_get_response_from_dict = V1RegionsRegionIdGatewaysGetResponse.from_dict(v1_regions_region_id_gateways_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/V1RegionsRegionIdGatewaysGetResponseGateway.md b/docs/V1RegionsRegionIdGatewaysGetResponseGateway.md new file mode 100644 index 00000000..55b55446 --- /dev/null +++ b/docs/V1RegionsRegionIdGatewaysGetResponseGateway.md @@ -0,0 +1,30 @@ +# V1RegionsRegionIdGatewaysGetResponseGateway + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_id** | **int** | | [optional] +**hostname** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_regions_region_id_gateways_get_response_gateway import V1RegionsRegionIdGatewaysGetResponseGateway + +# TODO update the JSON string below +json = "{}" +# create an instance of V1RegionsRegionIdGatewaysGetResponseGateway from a JSON string +v1_regions_region_id_gateways_get_response_gateway_instance = V1RegionsRegionIdGatewaysGetResponseGateway.from_json(json) +# print the JSON string representation of the object +print(V1RegionsRegionIdGatewaysGetResponseGateway.to_json()) + +# convert the object into a dict +v1_regions_region_id_gateways_get_response_gateway_dict = v1_regions_region_id_gateways_get_response_gateway_instance.to_dict() +# create an instance of V1RegionsRegionIdGatewaysGetResponseGateway from a dict +v1_regions_region_id_gateways_get_response_gateway_from_dict = V1RegionsRegionIdGatewaysGetResponseGateway.from_dict(v1_regions_region_id_gateways_get_response_gateway_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/V1ZtagentAgentsGetResponse.md b/docs/V1ZtagentAgentsGetResponse.md new file mode 100644 index 00000000..f8d63c2b --- /dev/null +++ b/docs/V1ZtagentAgentsGetResponse.md @@ -0,0 +1,30 @@ +# V1ZtagentAgentsGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agents** | [**List[ConcealAgent]**](ConcealAgent.md) | | [optional] +**count** | **int** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_ztagent_agents_get_response import V1ZtagentAgentsGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ZtagentAgentsGetResponse from a JSON string +v1_ztagent_agents_get_response_instance = V1ZtagentAgentsGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ZtagentAgentsGetResponse.to_json()) + +# convert the object into a dict +v1_ztagent_agents_get_response_dict = v1_ztagent_agents_get_response_instance.to_dict() +# create an instance of V1ZtagentAgentsGetResponse from a dict +v1_ztagent_agents_get_response_from_dict = V1ZtagentAgentsGetResponse.from_dict(v1_ztagent_agents_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/V2AssuranceAiAdoptionSummaryPostRequest.md b/docs/V2AssuranceAiAdoptionSummaryPostRequest.md new file mode 100644 index 00000000..c28275ea --- /dev/null +++ b/docs/V2AssuranceAiAdoptionSummaryPostRequest.md @@ -0,0 +1,30 @@ +# V2AssuranceAiAdoptionSummaryPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**time_window** | [**AssuranceTimeWindow**](AssuranceTimeWindow.md) | | +**user_list_size** | **int** | list size of user list in where widget (required) | + +## Example + +```python +from graphiant_sdk.models.v2_assurance_ai_adoption_summary_post_request import V2AssuranceAiAdoptionSummaryPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V2AssuranceAiAdoptionSummaryPostRequest from a JSON string +v2_assurance_ai_adoption_summary_post_request_instance = V2AssuranceAiAdoptionSummaryPostRequest.from_json(json) +# print the JSON string representation of the object +print(V2AssuranceAiAdoptionSummaryPostRequest.to_json()) + +# convert the object into a dict +v2_assurance_ai_adoption_summary_post_request_dict = v2_assurance_ai_adoption_summary_post_request_instance.to_dict() +# create an instance of V2AssuranceAiAdoptionSummaryPostRequest from a dict +v2_assurance_ai_adoption_summary_post_request_from_dict = V2AssuranceAiAdoptionSummaryPostRequest.from_dict(v2_assurance_ai_adoption_summary_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/V2AssuranceAiAdoptionSummaryPostResponse.md b/docs/V2AssuranceAiAdoptionSummaryPostResponse.md new file mode 100644 index 00000000..04e3a078 --- /dev/null +++ b/docs/V2AssuranceAiAdoptionSummaryPostResponse.md @@ -0,0 +1,32 @@ +# V2AssuranceAiAdoptionSummaryPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**top_level_kpi** | [**AssuranceTopLevelKpi**](AssuranceTopLevelKpi.md) | | [optional] +**what_widget** | [**AssuranceWhatWidget**](AssuranceWhatWidget.md) | | [optional] +**when_widget** | [**AssuranceWhenWidget**](AssuranceWhenWidget.md) | | [optional] +**where_widget** | [**AssuranceWhereWidget**](AssuranceWhereWidget.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v2_assurance_ai_adoption_summary_post_response import V2AssuranceAiAdoptionSummaryPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V2AssuranceAiAdoptionSummaryPostResponse from a JSON string +v2_assurance_ai_adoption_summary_post_response_instance = V2AssuranceAiAdoptionSummaryPostResponse.from_json(json) +# print the JSON string representation of the object +print(V2AssuranceAiAdoptionSummaryPostResponse.to_json()) + +# convert the object into a dict +v2_assurance_ai_adoption_summary_post_response_dict = v2_assurance_ai_adoption_summary_post_response_instance.to_dict() +# create an instance of V2AssuranceAiAdoptionSummaryPostResponse from a dict +v2_assurance_ai_adoption_summary_post_response_from_dict = V2AssuranceAiAdoptionSummaryPostResponse.from_dict(v2_assurance_ai_adoption_summary_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/V2AssuranceCreateAiAdoptionApproveEntryPostRequest.md b/docs/V2AssuranceCreateAiAdoptionApproveEntryPostRequest.md new file mode 100644 index 00000000..08a65a53 --- /dev/null +++ b/docs/V2AssuranceCreateAiAdoptionApproveEntryPostRequest.md @@ -0,0 +1,29 @@ +# V2AssuranceCreateAiAdoptionApproveEntryPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**approved_app_entry** | [**AssuranceApprovedAppEntryRequest**](AssuranceApprovedAppEntryRequest.md) | | + +## Example + +```python +from graphiant_sdk.models.v2_assurance_create_ai_adoption_approve_entry_post_request import V2AssuranceCreateAiAdoptionApproveEntryPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V2AssuranceCreateAiAdoptionApproveEntryPostRequest from a JSON string +v2_assurance_create_ai_adoption_approve_entry_post_request_instance = V2AssuranceCreateAiAdoptionApproveEntryPostRequest.from_json(json) +# print the JSON string representation of the object +print(V2AssuranceCreateAiAdoptionApproveEntryPostRequest.to_json()) + +# convert the object into a dict +v2_assurance_create_ai_adoption_approve_entry_post_request_dict = v2_assurance_create_ai_adoption_approve_entry_post_request_instance.to_dict() +# create an instance of V2AssuranceCreateAiAdoptionApproveEntryPostRequest from a dict +v2_assurance_create_ai_adoption_approve_entry_post_request_from_dict = V2AssuranceCreateAiAdoptionApproveEntryPostRequest.from_dict(v2_assurance_create_ai_adoption_approve_entry_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/V2AssuranceCreateAiAdoptionApproveEntryPostResponse.md b/docs/V2AssuranceCreateAiAdoptionApproveEntryPostResponse.md new file mode 100644 index 00000000..51afb0ff --- /dev/null +++ b/docs/V2AssuranceCreateAiAdoptionApproveEntryPostResponse.md @@ -0,0 +1,29 @@ +# V2AssuranceCreateAiAdoptionApproveEntryPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | identifier of the created approved app entry (required) | [optional] + +## Example + +```python +from graphiant_sdk.models.v2_assurance_create_ai_adoption_approve_entry_post_response import V2AssuranceCreateAiAdoptionApproveEntryPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V2AssuranceCreateAiAdoptionApproveEntryPostResponse from a JSON string +v2_assurance_create_ai_adoption_approve_entry_post_response_instance = V2AssuranceCreateAiAdoptionApproveEntryPostResponse.from_json(json) +# print the JSON string representation of the object +print(V2AssuranceCreateAiAdoptionApproveEntryPostResponse.to_json()) + +# convert the object into a dict +v2_assurance_create_ai_adoption_approve_entry_post_response_dict = v2_assurance_create_ai_adoption_approve_entry_post_response_instance.to_dict() +# create an instance of V2AssuranceCreateAiAdoptionApproveEntryPostResponse from a dict +v2_assurance_create_ai_adoption_approve_entry_post_response_from_dict = V2AssuranceCreateAiAdoptionApproveEntryPostResponse.from_dict(v2_assurance_create_ai_adoption_approve_entry_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/V2AssuranceCreateUserReportPostRequest.md b/docs/V2AssuranceCreateUserReportPostRequest.md index b63d30fa..192d500f 100644 --- a/docs/V2AssuranceCreateUserReportPostRequest.md +++ b/docs/V2AssuranceCreateUserReportPostRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_on** | **int** | | [optional] **email_list** | **List[str]** | | [optional] -**pdf_content** | **bytes** | | [optional] -**raw_content** | **List[bytes]** | | [optional] +**pdf_content** | **bytearray** | | [optional] +**raw_content** | **List[bytearray]** | | [optional] **report_name** | **str** | | [optional] **report_type** | **str** | | [optional] **time_period** | **str** | | [optional] diff --git a/docs/V2AssuranceDownloadUserReportGetResponse.md b/docs/V2AssuranceDownloadUserReportGetResponse.md index 66d57541..cc2b2b9f 100644 --- a/docs/V2AssuranceDownloadUserReportGetResponse.md +++ b/docs/V2AssuranceDownloadUserReportGetResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**pdf_content** | **bytes** | | [optional] +**pdf_content** | **bytearray** | | [optional] ## Example diff --git a/docs/V2AssuranceGetAppNamesPostRequest.md b/docs/V2AssuranceGetAppNamesPostRequest.md new file mode 100644 index 00000000..67f9d976 --- /dev/null +++ b/docs/V2AssuranceGetAppNamesPostRequest.md @@ -0,0 +1,29 @@ +# V2AssuranceGetAppNamesPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tags** | **List[str]** | | + +## Example + +```python +from graphiant_sdk.models.v2_assurance_get_app_names_post_request import V2AssuranceGetAppNamesPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V2AssuranceGetAppNamesPostRequest from a JSON string +v2_assurance_get_app_names_post_request_instance = V2AssuranceGetAppNamesPostRequest.from_json(json) +# print the JSON string representation of the object +print(V2AssuranceGetAppNamesPostRequest.to_json()) + +# convert the object into a dict +v2_assurance_get_app_names_post_request_dict = v2_assurance_get_app_names_post_request_instance.to_dict() +# create an instance of V2AssuranceGetAppNamesPostRequest from a dict +v2_assurance_get_app_names_post_request_from_dict = V2AssuranceGetAppNamesPostRequest.from_dict(v2_assurance_get_app_names_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/V2AssuranceGetAppNamesPostResponse.md b/docs/V2AssuranceGetAppNamesPostResponse.md new file mode 100644 index 00000000..b68db28d --- /dev/null +++ b/docs/V2AssuranceGetAppNamesPostResponse.md @@ -0,0 +1,29 @@ +# V2AssuranceGetAppNamesPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**app_names** | **List[str]** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v2_assurance_get_app_names_post_response import V2AssuranceGetAppNamesPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V2AssuranceGetAppNamesPostResponse from a JSON string +v2_assurance_get_app_names_post_response_instance = V2AssuranceGetAppNamesPostResponse.from_json(json) +# print the JSON string representation of the object +print(V2AssuranceGetAppNamesPostResponse.to_json()) + +# convert the object into a dict +v2_assurance_get_app_names_post_response_dict = v2_assurance_get_app_names_post_response_instance.to_dict() +# create an instance of V2AssuranceGetAppNamesPostResponse from a dict +v2_assurance_get_app_names_post_response_from_dict = V2AssuranceGetAppNamesPostResponse.from_dict(v2_assurance_get_app_names_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/V2AssuranceReadAiAdoptionApproveEntriesGetResponse.md b/docs/V2AssuranceReadAiAdoptionApproveEntriesGetResponse.md new file mode 100644 index 00000000..919f07cd --- /dev/null +++ b/docs/V2AssuranceReadAiAdoptionApproveEntriesGetResponse.md @@ -0,0 +1,29 @@ +# V2AssuranceReadAiAdoptionApproveEntriesGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**approved_app_list** | [**List[AssuranceApprovedAppEntry]**](AssuranceApprovedAppEntry.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v2_assurance_read_ai_adoption_approve_entries_get_response import V2AssuranceReadAiAdoptionApproveEntriesGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V2AssuranceReadAiAdoptionApproveEntriesGetResponse from a JSON string +v2_assurance_read_ai_adoption_approve_entries_get_response_instance = V2AssuranceReadAiAdoptionApproveEntriesGetResponse.from_json(json) +# print the JSON string representation of the object +print(V2AssuranceReadAiAdoptionApproveEntriesGetResponse.to_json()) + +# convert the object into a dict +v2_assurance_read_ai_adoption_approve_entries_get_response_dict = v2_assurance_read_ai_adoption_approve_entries_get_response_instance.to_dict() +# create an instance of V2AssuranceReadAiAdoptionApproveEntriesGetResponse from a dict +v2_assurance_read_ai_adoption_approve_entries_get_response_from_dict = V2AssuranceReadAiAdoptionApproveEntriesGetResponse.from_dict(v2_assurance_read_ai_adoption_approve_entries_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/V2AssuranceUpdateAiAdoptionApproveEntryPostRequest.md b/docs/V2AssuranceUpdateAiAdoptionApproveEntryPostRequest.md new file mode 100644 index 00000000..f2e3f7d8 --- /dev/null +++ b/docs/V2AssuranceUpdateAiAdoptionApproveEntryPostRequest.md @@ -0,0 +1,29 @@ +# V2AssuranceUpdateAiAdoptionApproveEntryPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**approved_app_entry** | [**AssuranceApprovedAppEntryRequest**](AssuranceApprovedAppEntryRequest.md) | | + +## Example + +```python +from graphiant_sdk.models.v2_assurance_update_ai_adoption_approve_entry_post_request import V2AssuranceUpdateAiAdoptionApproveEntryPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V2AssuranceUpdateAiAdoptionApproveEntryPostRequest from a JSON string +v2_assurance_update_ai_adoption_approve_entry_post_request_instance = V2AssuranceUpdateAiAdoptionApproveEntryPostRequest.from_json(json) +# print the JSON string representation of the object +print(V2AssuranceUpdateAiAdoptionApproveEntryPostRequest.to_json()) + +# convert the object into a dict +v2_assurance_update_ai_adoption_approve_entry_post_request_dict = v2_assurance_update_ai_adoption_approve_entry_post_request_instance.to_dict() +# create an instance of V2AssuranceUpdateAiAdoptionApproveEntryPostRequest from a dict +v2_assurance_update_ai_adoption_approve_entry_post_request_from_dict = V2AssuranceUpdateAiAdoptionApproveEntryPostRequest.from_dict(v2_assurance_update_ai_adoption_approve_entry_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/graphiant_cli/browser_capture.py b/graphiant_cli/browser_capture.py index c7c9e1d4..e50c0405 100644 --- a/graphiant_cli/browser_capture.py +++ b/graphiant_cli/browser_capture.py @@ -5,6 +5,7 @@ import subprocess import sys import time +from typing import TYPE_CHECKING, Any from graphiant_cli.cli_logging import ensure_cli_logging, get_logger, safe_api_url_for_log from graphiant_cli.token_parsing import ( @@ -19,16 +20,21 @@ logger = get_logger("browser_capture") +if TYPE_CHECKING: + from playwright.sync_api import Page, Request, Response + PLAYWRIGHT_AVAILABLE = False +sync_playwright: Any | None = None try: - from playwright.sync_api import sync_playwright + from playwright.sync_api import sync_playwright as _sync_playwright + sync_playwright = _sync_playwright PLAYWRIGHT_AVAILABLE = True except ImportError: - sync_playwright = None # type: ignore[misc, assignment] + pass -def playwright_yield_ms(page: object, ms: int) -> None: +def playwright_yield_ms(page: Page, ms: int) -> None: """ Yield so Playwright's sync driver can process network events. @@ -110,12 +116,12 @@ def _attempt() -> str | None: page = context.new_page() captured: list[str] = [] - def on_request(request: object) -> None: + def on_request(request: Request) -> None: try: if not is_graphiant_api_url(request.url): return tok = token_from_authorization_headers_only(request) - if eligible_capture(tok, request.url): + if tok is not None and eligible_capture(tok, request.url): captured.append(tok) logger.debug( "Captured bearer from request %s", @@ -124,7 +130,7 @@ def on_request(request: object) -> None: except Exception: logger.debug("on_request handler failed", exc_info=True) - def on_response(response: object) -> None: + def on_response(response: Response) -> None: try: url = response.url if not is_graphiant_api_url(url): @@ -133,7 +139,7 @@ def on_response(response: object) -> None: tok = extract_token_from_refresh_response(response) else: tok = extract_token_from_graphiant_api_response(response) - if eligible_capture(tok, url): + if tok is not None and eligible_capture(tok, url): captured.append(tok) logger.debug( "Captured bearer from response %s status=%s", @@ -164,9 +170,12 @@ def on_response(response: object) -> None: if time.time() >= next_progress: if verbose: print( - "Still waiting for a Graphiant API bearer token (…/v1/…, …/v2/…, or …/auth/refresh) … " - "(sign in in this Chromium window; after login, refresh the portal home page if needed — " - "e.g. F5 or the reload button. Press Ctrl+C to paste a token.)", + "Still waiting for a Graphiant API bearer token " + "(…/v1/…, …/v2/…, or …/auth/refresh) … " + "(sign in in this Chromium window; after login, " + "refresh the portal home page if needed — " + "e.g. F5 or the reload button. " + "Press Ctrl+C to paste a token.)", file=sys.stderr, ) else: @@ -198,7 +207,8 @@ def on_response(response: object) -> None: if verbose: print( "Signed in. The CLI will open the home URL and reload once. " - "If no further API traffic appears, refresh the portal home page yourself (F5 or reload).", + "If no further API traffic appears, refresh the portal home page " + "yourself (F5 or reload).", file=sys.stderr, ) else: @@ -233,7 +243,8 @@ def on_response(response: object) -> None: return _attempt() except Exception as e: if _launch_failure_suggests_missing_browser(e): - logger.warning("Browser missing or failed to start; attempting playwright install chromium") + logger.warning( + "Browser missing or failed to start; attempting playwright install chromium") if _install_chromium(): try: return _attempt() diff --git a/graphiant_cli/login_common.py b/graphiant_cli/login_common.py index bf834b01..7a7d9c81 100644 --- a/graphiant_cli/login_common.py +++ b/graphiant_cli/login_common.py @@ -3,6 +3,7 @@ from __future__ import annotations import json +import logging import sys from pathlib import Path @@ -20,7 +21,7 @@ def try_persist_login( profile: str, *, console: Console, - logger: object, + logger: logging.Logger, ) -> bool: """Persist token; print error and return False on filesystem/JSON failures.""" try: diff --git a/graphiant_cli/main.py b/graphiant_cli/main.py index 7c098c9b..73d47fac 100644 --- a/graphiant_cli/main.py +++ b/graphiant_cli/main.py @@ -38,7 +38,7 @@ open_portal, portal_url_from_config, ) -from graphiant_cli.rest_client import request as rest_request +from graphiant_cli.rest_client import QueryDict, request as rest_request from graphiant_cli.sdk_invoke import invoke_method, list_api_method_rows, list_api_methods from graphiant_sdk.exceptions import ApiException @@ -52,7 +52,10 @@ ) configure_app = typer.Typer(help="Default API host and portal URL.") login_app = typer.Typer( - help="Open the portal; auto-captures bearer from Graphiant API traffic (/v1/… or auth/refresh) after login.", + help=( + "Open the portal; auto-captures bearer from Graphiant API traffic " + "(/v1/… or auth/refresh) after login." + ), invoke_without_command=True, ) api_app = typer.Typer(help="Call DefaultApi methods or list operation names.") @@ -144,7 +147,8 @@ def configure_show() -> None: cfg = load_config() prof = get_profile() console.print("[bold]API host:[/bold]", cfg.get("host") or _default_host()) - console.print("[bold]Portal URL:[/bold]", cfg.get("portal_url") or portal_url_from_config().rstrip("/")) + console.print("[bold]Portal URL:[/bold]", cfg.get("portal_url") + or portal_url_from_config().rstrip("/")) console.print("[bold]Profile:[/bold]", os.environ.get("GRAPHIANT_PROFILE", DEFAULT_PROFILE)) if prof: console.print("[bold]Token:[/bold]", "present" if prof.get("access_token") else "none") @@ -159,7 +163,10 @@ def login_callback( portal_url: Optional[str] = typer.Option( None, "--portal-url", - help=f"Graphiant portal base URL (default: {DEFAULT_PORTAL_URL} or configure set-portal-url)", + help=( + f"Graphiant portal base URL (default: {DEFAULT_PORTAL_URL} " + "or configure set-portal-url)" + ), ), no_browser: bool = typer.Option(False, "--no-browser", help="Do not open a browser"), no_capture: bool = typer.Option( @@ -171,19 +178,28 @@ def login_callback( 90, "--timeout", "-t", - help="Seconds to wait for API bearer capture after opening the browser (default 90; then paste prompt)", + help=( + "Seconds to wait for API bearer capture after opening the browser " + "(default 90; then paste prompt)" + ), ), export_shell: bool = typer.Option( False, "--export/--no-export", - help="After success, also print 'export GRAPHIANT_ACCESS_TOKEN=…' to stdout (for scripts/eval). " - "Default off so the token is not echoed to the terminal; ~/.graphiant/env.sh is always written.", + help=( + "After success, also print 'export GRAPHIANT_ACCESS_TOKEN=…' to stdout " + "(for scripts/eval). Default off so the token is not echoed to the " + "terminal; ~/.graphiant/env.sh is always written." + ), ), verbose: bool = typer.Option( False, "--verbose", "-v", - help="Verbose login diagnostics on stderr (debug). Or set GRAPHIANT_LOG=debug|info|warning.", + help=( + "Verbose login diagnostics on stderr (debug). " + "Or set GRAPHIANT_LOG=debug|info|warning." + ), ), ) -> None: if ctx.invoked_subcommand is not None: @@ -208,12 +224,16 @@ def login_callback( if verbose: console.print( "[dim]Complete sign-in in the [bold]Chromium[/bold] window. " - "The CLI captures [bold]Bearer[/bold] from Graphiant [bold]…/v1/…[/bold] or [bold]…/v2/…[/bold] API calls or [bold]…/auth/refresh[/bold]. " - "After login, refresh the home page [bold]if needed[/bold] (F5); the CLI also opens [cyan]/[/cyan] and reloads once. " + "The CLI captures [bold]Bearer[/bold] from Graphiant " + "[bold]…/v1/…[/bold] or [bold]…/v2/…[/bold] API calls or " + "[bold]…/auth/refresh[/bold]. " + "After login, refresh the home page [bold]if needed[/bold] (F5); " + "the CLI also opens [cyan]/[/cyan] and reloads once. " "[bold]Ctrl+C[/bold] skips wait and prompts for a token.[/dim]" ) else: - console.print("[dim]Sign in in the browser window. [bold]Ctrl+C[/bold] to paste a token.[/dim]") + console.print( + "[dim]Sign in in the browser window. [bold]Ctrl+C[/bold] to paste a token.[/dim]") capture_interrupted = False try: tok = capture_token_via_browser( @@ -225,8 +245,8 @@ def login_callback( capture_interrupted = True console.print( "\n[yellow]Auto-capture interrupted. Paste your token below " - "(DevTools → Network: copy the full [cyan]Authorization[/cyan] value, including the word " - "[cyan]Bearer[/cyan]).[/yellow]\n" + "(DevTools → Network: copy the full [cyan]Authorization[/cyan] value, " + "including the word [cyan]Bearer[/cyan]).[/yellow]\n" ) tok = None except Exception as e: @@ -246,10 +266,13 @@ def login_callback( return if not capture_interrupted: console.print( - "[yellow]Auto-capture did not see a bearer token from Graphiant API traffic in time.[/yellow] " - "Try a longer wait: [cyan]graphiant login -t 180[/cyan], complete sign-in sooner, refresh the portal home (F5), " + "[yellow]Auto-capture did not see a bearer token from Graphiant API " + "traffic in time.[/yellow] " + "Try a longer wait: [cyan]graphiant login -t 180[/cyan], complete sign-in " + "sooner, refresh the portal home (F5), " "or use [cyan]graphiant login --no-capture[/cyan]. " - "Diagnostics: [cyan]graphiant login -v[/cyan] or [cyan]GRAPHIANT_LOG=debug[/cyan].\n" + "Diagnostics: [cyan]graphiant login -v[/cyan] or " + "[cyan]GRAPHIANT_LOG=debug[/cyan].\n" ) if not no_browser: @@ -260,14 +283,18 @@ def login_callback( if not PLAYWRIGHT_AVAILABLE and not no_capture: console.print( - "[dim]Playwright is not installed; cannot auto-capture. Install dependencies: pip install graphiant-sdk[/dim]\n" + "[dim]Playwright is not installed; cannot auto-capture. " + "Install dependencies: pip install graphiant-sdk[/dim]\n" ) console.print( - "After the portal home page loads, open [bold]Developer tools[/bold] → [bold]Network[/bold], " - "select a request to the Graphiant API ([cyan]api.graphiant.com[/cyan] or your configured host), " - "and copy the entire [bold]Authorization[/bold] request header value, including the word " - "[cyan]Bearer[/cyan] and the token (you can also paste a raw JWT only).\n" + "After the portal home page loads, open [bold]Developer tools[/bold] → " + "[bold]Network[/bold], " + "select a request to the Graphiant API ([cyan]api.graphiant.com[/cyan] " + "or your configured host), " + "and copy the entire [bold]Authorization[/bold] request header value, " + "including the word [cyan]Bearer[/cyan] and the token " + "(you can also paste a raw JWT only).\n" ) line = click.prompt("Authorization / token", err=True).strip() if not line: @@ -305,7 +332,8 @@ def login_env_export(profile: Optional[str] = typer.Option(None, "--profile", "- def logout_cmd(profile: Optional[str] = typer.Option(None, "--profile", "-p")) -> None: name = profile or os.environ.get("GRAPHIANT_PROFILE", DEFAULT_PROFILE) clear_profile(name) - login_logger.info("Logged out profile %s (clear shell with unset GRAPHIANT_ACCESS_TOKEN if needed)", name) + login_logger.info( + "Logged out profile %s (clear shell with unset GRAPHIANT_ACCESS_TOKEN if needed)", name) console.print(f"[green]Logged out[/green] profile [bold]{name}[/bold]") console.print( "[dim]If this terminal still has a token exported, run:[/dim] " @@ -364,7 +392,10 @@ def api_invoke_cmd( None, "--kwargs", "-k", - help='JSON object of keyword args (request bodies as nested objects), e.g. \'{"v1_foo_post_request": {...}}\'', + help=( + 'JSON object of keyword args (request bodies as nested objects), ' + 'e.g. \'{"v1_foo_post_request": {...}}\'' + ), ), profile: Optional[str] = typer.Option(None, "--profile", "-p"), ) -> None: @@ -399,7 +430,8 @@ def _print_api_list(prefix: str, plain: bool) -> None: @api_app.command("list") def api_list_cmd( - prefix: str = typer.Option("", "--prefix", help="Only methods starting with this prefix (e.g. v1_edges)"), + prefix: str = typer.Option( + "", "--prefix", help="Only methods starting with this prefix (e.g. v1_edges)"), plain: bool = typer.Option( False, "--plain", @@ -407,7 +439,7 @@ def api_list_cmd( help="Print one SDK method name per line (no HTTP/path table)", ), ) -> None: - """List DefaultApi method names and raw HTTP path (for graphiant api invoke / graphiant rest).""" + """List DefaultApi method names and raw HTTP path (for invoke / rest).""" _print_api_list(prefix, plain) @@ -424,7 +456,8 @@ def apis_alias_cmd( def rest_cmd( method: str = typer.Argument(..., help="HTTP method: GET, POST, PATCH, PUT, DELETE"), path: str = typer.Argument(..., help="Path starting with /v1/..."), - body: Optional[str] = typer.Option(None, "--body", "-b", help="JSON body string or @file.json"), + body: Optional[str] = typer.Option( + None, "--body", "-b", help="JSON body string or @file.json"), profile: Optional[str] = typer.Option(None, "--profile", "-p"), query: Optional[str] = typer.Option(None, "--query", "-q", help="Query string a=b&c=d"), ) -> None: @@ -433,7 +466,7 @@ def rest_cmd( if not token: console.print("[red]Not logged in.[/red]") raise typer.Exit(1) - payload: dict | str | None = None + payload: dict[str, Any] | str | None = None if body: if body.startswith("@"): with open(body[1:], encoding="utf-8") as f: @@ -443,7 +476,7 @@ def rest_cmd( payload = json.loads(body) except json.JSONDecodeError: payload = body - qdict: dict[str, str] | None = None + qdict: QueryDict | None = None if query: qdict = {} for pair in query.split("&"): @@ -655,7 +688,8 @@ def whoami_cmd(profile: Optional[str] = typer.Option(None, "--profile", "-p")) - raise typer.Exit(1) raw_tok = token[7:].strip() if token.lower().startswith("bearer ") else token try: - status, text, _ = rest_request(host, "GET", "/v1/auth/user", raw_tok, body=None, query=None) + status, text, _ = rest_request(host, "GET", "/v1/auth/user", + raw_tok, body=None, query=None) if 200 <= status < 300: try: payload = json.loads(text) @@ -682,7 +716,8 @@ def version_cmd() -> None: def main() -> None: - # Stable prog name for Click/Typer shell completion (_GRAPHIANT_COMPLETE, --install-completion). + # Stable prog name for Click/Typer shell completion + # (_GRAPHIANT_COMPLETE, --install-completion). app(prog_name="graphiant") diff --git a/graphiant_cli/token_parsing.py b/graphiant_cli/token_parsing.py index 32978b71..58ac570a 100644 --- a/graphiant_cli/token_parsing.py +++ b/graphiant_cli/token_parsing.py @@ -4,10 +4,14 @@ import json import re +from typing import TYPE_CHECKING from urllib.parse import parse_qs, urlparse, urlunparse from graphiant_cli.cli_logging import get_logger, safe_api_url_for_log +if TYPE_CHECKING: + from playwright.sync_api import Request, Response + logger = get_logger("token_parsing") # Minimum length for opaque/JWT-like session tokens (rejects "null", "Bearer null", etc.) @@ -128,7 +132,7 @@ def eligible_capture(tok: str | None, url: str) -> bool: return True -def extract_token_from_refresh_response(response: object) -> str | None: +def extract_token_from_refresh_response(response: Response) -> str | None: """Bearer from refresh: JSON body, then response/request ``Authorization`` headers.""" try: status = getattr(response, "status", None) @@ -174,14 +178,14 @@ def extract_token_from_refresh_response(response: object) -> str | None: return None -def token_from_authorization_headers_only(message: object) -> str | None: +def token_from_authorization_headers_only(message: Request | Response) -> str | None: try: return bearer_from_header_map(getattr(message, "headers", None)) except Exception: return None -def extract_token_from_graphiant_api_response(response: object) -> str | None: +def extract_token_from_graphiant_api_response(response: Response) -> str | None: """Non-refresh API response: ``Authorization`` on response or linked request only.""" try: status = getattr(response, "status", None) diff --git a/graphiant_sdk/__init__.py b/graphiant_sdk/__init__.py index 0936dd02..8c3748b8 100644 --- a/graphiant_sdk/__init__.py +++ b/graphiant_sdk/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "26.5.0" +__version__ = "26.6.0" # Define package exports __all__ = [ @@ -48,6 +48,8 @@ "AssuranceAppIdRecord", "AssuranceAppNameRecord", "AssuranceApplicationProfileSummary", + "AssuranceApprovedAppEntry", + "AssuranceApprovedAppEntryRequest", "AssuranceBucketApp", "AssuranceBucketAppServer", "AssuranceBucketDetails", @@ -67,11 +69,13 @@ "AssuranceExchangeServiceIdentifier", "AssuranceFlexAlgoIdentifier", "AssuranceGeolocation", + "AssuranceKpiMetric", "AssuranceRegion", "AssuranceScoreBucketCount", "AssuranceScoreDetails", "AssuranceSite", "AssuranceTimeWindow", + "AssuranceTopLevelKpi", "AssuranceTopology", "AssuranceTopologyEdge", "AssuranceTopologyEdgeLinkPerformance", @@ -79,7 +83,11 @@ "AssuranceTopologyNode", "AssuranceTopologyPath", "AssuranceTrendValue", + "AssuranceUserDefinition", "AssuranceUserReport", + "AssuranceWhatWidget", + "AssuranceWhenWidget", + "AssuranceWhereWidget", "AuditActivityItem", "AuditAuditEntry", "AuditTarget", @@ -101,6 +109,7 @@ "CommonPermissions", "CommonUser", "CommonUserInfo", + "ConcealAgent", "ConfigWorkerJobStatus", "DiagnosticToolsArchive", "DiagnosticToolsArpEntry", @@ -163,6 +172,9 @@ "ManaV2AwsGatewayDetails", "ManaV2AwsTransitGateway", "ManaV2AzureGatewayDetails", + "ManaV2B2BExtranetMatchConsumerDetailsCustomer", + "ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix", + "ManaV2B2BExtranetMatchConsumerDetailsService", "ManaV2B2BExtranetServiceCustomerMatchDetailsCustomer", "ManaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix", "ManaV2B2BExtranetServiceCustomerMatchDetailsService", @@ -173,6 +185,8 @@ "ManaV2B2bExtranetConsumersSummary", "ManaV2B2bExtranetCustomerMatchServicesSummary", "ManaV2B2bExtranetCustomerServicesSummary", + "ManaV2B2bExtranetMatch", + "ManaV2B2bExtranetMatchConsumerDetails", "ManaV2B2bExtranetMatchServiceToCustomer", "ManaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy", "ManaV2B2bExtranetPeeringServiceCustomerInvite", @@ -261,13 +275,28 @@ "ManaV2EnterprisePrefixSetInput", "ManaV2EnterprisePrefixSetInputEntry", "ManaV2ExtranetAutoReverseRoutes", + "ManaV2ExtranetConsumerLanPrefixes", "ManaV2ExtranetConsumerLanSegmentPolicy", "ManaV2ExtranetConsumerLanSegmentPolicyResponse", "ManaV2ExtranetConsumerNatRule", "ManaV2ExtranetDeviceStatus", "ManaV2ExtranetManualReverseRoutes", + "ManaV2ExtranetNatTranslationCentralized", + "ManaV2ExtranetNatTranslationDecentralized", + "ManaV2ExtranetNatTranslationDevicePrefixes", + "ManaV2ExtranetNatTranslationMode", + "ManaV2ExtranetNatTranslationPeerToPeer", + "ManaV2ExtranetNatTranslationPeerToPeerPrefix", "ManaV2ExtranetPolicy", "ManaV2ExtranetPolicyInput", + "ManaV2ExtranetServiceConsumerPolicy", + "ManaV2ExtranetServiceCustomerInvite", + "ManaV2ExtranetServiceCustomerMatchSummary", + "ManaV2ExtranetServiceCustomerSummary", + "ManaV2ExtranetServicePolicyResponse", + "ManaV2ExtranetServiceProducerCustomer", + "ManaV2ExtranetServiceProducerPolicy", + "ManaV2ExtranetServiceSummary", "ManaV2FirewallZonePair", "ManaV2ForwardingPolicy", "ManaV2ForwardingPolicyConfig", @@ -291,6 +320,8 @@ "ManaV2GuestConsumerSiteToSiteVpnConfig", "ManaV2IPsecBgpRouteConfig", "ManaV2IPsecGatewayDetails", + "ManaV2IPsecGatewayPeersConfig", + "ManaV2IPsecGatewayRemotePeer", "ManaV2IPsecGatewayTunnelDetails", "ManaV2IPsecProfile", "ManaV2IPsecStaticRouteConfig", @@ -326,6 +357,8 @@ "ManaV2LacpConfig", "ManaV2LagInterface", "ManaV2LagInterfaceConfig", + "ManaV2LanSegmentPublicInterfaceEntry", + "ManaV2LanSegmentPublicInterfacesLists", "ManaV2LanSegmentSitesMap", "ManaV2LatencyBandwidth", "ManaV2LldpNeighbor", @@ -490,17 +523,11 @@ "ManaV2PrometheusRuleGroupConfig", "ManaV2PrometheusSysDbMonitorConfig", "ManaV2PskConfiguration", - "ManaV2PublicVif", - "ManaV2PublicVifConsumerLanSegment", - "ManaV2PublicVifConsumerLanSegmentResponse", - "ManaV2PublicVifConsumerPolicy", - "ManaV2PublicVifConsumerPolicyResponse", - "ManaV2PublicVifDevice", - "ManaV2PublicVifDynamic", - "ManaV2PublicVifFixed", - "ManaV2PublicVifFixedNat", - "ManaV2PublicVifProducerPolicy", - "ManaV2PublicVifProducerPolicyResponse", + "ManaV2PublicVifGatewayCentralizedNat", + "ManaV2PublicVifGatewayConsumerLanDevices", + "ManaV2PublicVifGatewayDecentralizedPrefixes", + "ManaV2PublicVifGatewayNatPrefixStrategy", + "ManaV2PublicVifGatewayWriteRequest", "ManaV2PublicVifSummary", "ManaV2QoSProfile", "ManaV2QoSProfileQueue", @@ -601,6 +628,7 @@ "ManaV2VrfConfig", "ManaV2VrrpGroup", "ManaV2VrrpGroupConfig", + "ManaV2ZeroTrustConsumptionSummary", "ManaV2Zone", "ManaV2ZoneFirewallConfig", "ManaV2ZoneFirewallIpPolicyConfig", @@ -772,9 +800,12 @@ "V1AuthErrorPostResponse", "V1AuthGcsPostRequest", "V1AuthGetResponse", + "V1AuthLoginCallbackPost500Response", "V1AuthLoginPostRequest", "V1AuthLoginPostResponse", "V1AuthLoginPreGetResponse", + "V1AuthLoginSamlGet401Response", + "V1AuthLoginSamlGet500Response", "V1AuthLoginTempPostRequest", "V1AuthMfaPatchRequest", "V1AuthMfaPost500Response", @@ -784,7 +815,11 @@ "V1AuthPatchRequest", "V1AuthPutRequest", "V1AuthRefreshGet200Response", + "V1AuthRefreshGet403Response", + "V1AuthRefreshGet422Response", "V1AuthRefreshGetEntryPointResponse", + "V1AuthSessionGet403Response", + "V1AuthSessionGet422Response", "V1AuthUserGetResponse", "V1BackboneHealthDeviceDeviceIdPostRequest", "V1BackboneHealthDeviceDeviceIdPostResponse", @@ -992,6 +1027,40 @@ "V1EnterprisesPatchRequest", "V1EnterprisesPatchRequestTokenExpiry", "V1EnterprisesPutRequest", + "V1ExtranetB2bConsumersCustomerIdGetResponse", + "V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig", + "V1ExtranetB2bConsumersIdDeviceStatusGetResponse", + "V1ExtranetB2bConsumersIdPrefixesPutRequest", + "V1ExtranetB2bConsumersIdPrefixesPutResponse", + "V1ExtranetB2bConsumersIdPutRequest", + "V1ExtranetB2bConsumersIdPutResponse", + "V1ExtranetB2bCustomersIdDeleteResponse", + "V1ExtranetB2bCustomersIdDetailsGetResponse", + "V1ExtranetB2bCustomersIdMatchesSummaryGetResponse", + "V1ExtranetB2bCustomersIdPutRequest", + "V1ExtranetB2bCustomersIdPutResponse", + "V1ExtranetB2bCustomersPostRequest", + "V1ExtranetB2bCustomersPostResponse", + "V1ExtranetB2bCustomersSummaryGetResponse", + "V1ExtranetB2bMatchesCustomersPostRequest", + "V1ExtranetB2bMatchesCustomersPostResponse", + "V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest", + "V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse", + "V1ExtranetB2bMatchesMatchIdConsumerPostRequest", + "V1ExtranetB2bMatchesMatchIdConsumerPostResponse", + "V1ExtranetB2bMatchesMatchIdDeleteResponse", + "V1ExtranetB2bMatchesMatchIdDetailsGetResponse", + "V1ExtranetB2bMatchesMatchIdGetResponse", + "V1ExtranetB2bMatchesMatchIdPutRequest", + "V1ExtranetB2bMatchesMatchIdPutResponse", + "V1ExtranetB2bMatchesMatchIdStatusPutRequest", + "V1ExtranetB2bMatchesMatchIdStatusPutResponse", + "V1ExtranetB2bMatchesPausePutRequest", + "V1ExtranetB2bMatchesPausePutResponse", + "V1ExtranetB2bMatchesPostRequest", + "V1ExtranetB2bMatchesPostResponse", + "V1ExtranetB2bMatchesReviewPostRequest", + "V1ExtranetB2bMatchesReviewPostResponse", "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest", "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest", @@ -1004,14 +1073,18 @@ "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest", "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", - "V1ExtranetPublicVifCheckPostRequest", - "V1ExtranetPublicVifCheckPostResponse", - "V1ExtranetPublicVifGetResponse", - "V1ExtranetPublicVifIdGetResponse", - "V1ExtranetPublicVifIdPutRequest", - "V1ExtranetPublicVifIdPutResponse", - "V1ExtranetPublicVifPostRequest", - "V1ExtranetPublicVifPostResponse", + "V1ExtranetB2bProducerIdCustomersGetResponse", + "V1ExtranetB2bProducerIdDeviceStatusGetResponse", + "V1ExtranetB2bProducerIdGetResponse", + "V1ExtranetB2bProducerIdPutRequest", + "V1ExtranetB2bProducerIdPutResponse", + "V1ExtranetB2bProducerIdStatusPutRequest", + "V1ExtranetB2bProducerIdStatusPutResponse", + "V1ExtranetB2bProducerPostRequest", + "V1ExtranetB2bProducerPostResponse", + "V1ExtranetB2bProducerReviewPostRequest", + "V1ExtranetB2bProducerReviewPostResponse", + "V1ExtranetB2bServicesSummaryGetResponse", "V1ExtranetSitesUsageTopPostRequest", "V1ExtranetSitesUsageTopPostResponse", "V1ExtranetSitesUsageTopPostResponseSiteUsage", @@ -1182,6 +1255,7 @@ "V1GroupsRootGetResponse", "V1InvitationEmailPostRequest", "V1LanSegmentsGetResponse", + "V1LanSegmentsInterfacesPublicGetResponse", "V1LldpInterfaceIdNeighborsGetResponse", "V1LldpInterfaceIdSummaryGetResponse", "V1LldpInterfaceIdVendorsGetResponse", @@ -1201,8 +1275,16 @@ "V1PolicyRouteTagSetsTagsGetResponse", "V1PolicyRouteTagSetsTagsSummaryGetResponse", "V1PresharedkeyGetResponse", + "V1PvifIdDetailsGetResponse", + "V1PvifIdPutRequest", + "V1PvifIdPutResponse", + "V1PvifPostRequest", + "V1PvifPostResponse", + "V1PvifSummaryGetResponse", "V1QosCircuitProfilesGetResponse", "V1RegionsGetResponse", + "V1RegionsRegionIdGatewaysGetResponse", + "V1RegionsRegionIdGatewaysGetResponseGateway", "V1SearchGetResponse", "V1SiteDetailsSitelistsPostRequest", "V1SiteDetailsSitelistsPostResponse", @@ -1263,6 +1345,7 @@ "V1VersionPostRequest", "V1VersionPostResponse", "V1ZonesGetResponse", + "V1ZtagentAgentsGetResponse", "V1ZtagentBindingsGetResponse", "V1ZtagentBindingsPutRequest", "V2AckCreateupdatePostRequest", @@ -1282,6 +1365,8 @@ "V2AssistantGetConversationsPostResponse", "V2AssistantUpdateConversationNamePostRequest", "V2AssistantVersionPostResponse", + "V2AssuranceAiAdoptionSummaryPostRequest", + "V2AssuranceAiAdoptionSummaryPostResponse", "V2AssuranceApplicationdetailsbynamePostRequest", "V2AssuranceApplicationdetailsbynamePostResponse", "V2AssuranceApplicationprofilesummaryPostRequest", @@ -1296,6 +1381,8 @@ "V2AssuranceBucketTopologiesPostResponse", "V2AssuranceBucketdetailsPostRequest", "V2AssuranceBucketdetailsPostResponse", + "V2AssuranceCreateAiAdoptionApproveEntryPostRequest", + "V2AssuranceCreateAiAdoptionApproveEntryPostResponse", "V2AssuranceCreateDnsproxyEntryPostRequest", "V2AssuranceCreateDnsproxyEntryPostResponse", "V2AssuranceCreateUserReportPostRequest", @@ -1305,7 +1392,10 @@ "V2AssuranceDownloadUserReportGetResponse", "V2AssuranceEnterprisesummaryPostRequest", "V2AssuranceEnterprisesummaryPostResponse", + "V2AssuranceGetAppNamesPostRequest", + "V2AssuranceGetAppNamesPostResponse", "V2AssuranceGetclassifiedapplicationlistGetResponse", + "V2AssuranceReadAiAdoptionApproveEntriesGetResponse", "V2AssuranceReadDnsproxyListGetResponse", "V2AssuranceReadUserReportListGetResponse", "V2AssuranceScoredetailsPostRequest", @@ -1331,6 +1421,7 @@ "V2AssuranceTopologySiteSummariesPostResponseSummary", "V2AssuranceUnclassifiedapplicationprofilesummaryPostRequest", "V2AssuranceUnclassifiedapplicationprofilesummaryPostResponse", + "V2AssuranceUpdateAiAdoptionApproveEntryPostRequest", "V2AssuranceUpdateDnsproxyEntryPostRequest", "V2AssuranceUpdateclassifiedapplicationPostRequest", "V2AuditLogsPostRequest", @@ -1471,6 +1562,8 @@ from graphiant_sdk.models.assurance_app_id_record import AssuranceAppIdRecord as AssuranceAppIdRecord from graphiant_sdk.models.assurance_app_name_record import AssuranceAppNameRecord as AssuranceAppNameRecord from graphiant_sdk.models.assurance_application_profile_summary import AssuranceApplicationProfileSummary as AssuranceApplicationProfileSummary +from graphiant_sdk.models.assurance_approved_app_entry import AssuranceApprovedAppEntry as AssuranceApprovedAppEntry +from graphiant_sdk.models.assurance_approved_app_entry_request import AssuranceApprovedAppEntryRequest as AssuranceApprovedAppEntryRequest from graphiant_sdk.models.assurance_bucket_app import AssuranceBucketApp as AssuranceBucketApp from graphiant_sdk.models.assurance_bucket_app_server import AssuranceBucketAppServer as AssuranceBucketAppServer from graphiant_sdk.models.assurance_bucket_details import AssuranceBucketDetails as AssuranceBucketDetails @@ -1490,11 +1583,13 @@ from graphiant_sdk.models.assurance_exchange_service_identifier import AssuranceExchangeServiceIdentifier as AssuranceExchangeServiceIdentifier from graphiant_sdk.models.assurance_flex_algo_identifier import AssuranceFlexAlgoIdentifier as AssuranceFlexAlgoIdentifier from graphiant_sdk.models.assurance_geolocation import AssuranceGeolocation as AssuranceGeolocation +from graphiant_sdk.models.assurance_kpi_metric import AssuranceKpiMetric as AssuranceKpiMetric from graphiant_sdk.models.assurance_region import AssuranceRegion as AssuranceRegion from graphiant_sdk.models.assurance_score_bucket_count import AssuranceScoreBucketCount as AssuranceScoreBucketCount from graphiant_sdk.models.assurance_score_details import AssuranceScoreDetails as AssuranceScoreDetails from graphiant_sdk.models.assurance_site import AssuranceSite as AssuranceSite from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow as AssuranceTimeWindow +from graphiant_sdk.models.assurance_top_level_kpi import AssuranceTopLevelKpi as AssuranceTopLevelKpi from graphiant_sdk.models.assurance_topology import AssuranceTopology as AssuranceTopology from graphiant_sdk.models.assurance_topology_edge import AssuranceTopologyEdge as AssuranceTopologyEdge from graphiant_sdk.models.assurance_topology_edge_link_performance import AssuranceTopologyEdgeLinkPerformance as AssuranceTopologyEdgeLinkPerformance @@ -1502,7 +1597,11 @@ from graphiant_sdk.models.assurance_topology_node import AssuranceTopologyNode as AssuranceTopologyNode from graphiant_sdk.models.assurance_topology_path import AssuranceTopologyPath as AssuranceTopologyPath from graphiant_sdk.models.assurance_trend_value import AssuranceTrendValue as AssuranceTrendValue +from graphiant_sdk.models.assurance_user_definition import AssuranceUserDefinition as AssuranceUserDefinition from graphiant_sdk.models.assurance_user_report import AssuranceUserReport as AssuranceUserReport +from graphiant_sdk.models.assurance_what_widget import AssuranceWhatWidget as AssuranceWhatWidget +from graphiant_sdk.models.assurance_when_widget import AssuranceWhenWidget as AssuranceWhenWidget +from graphiant_sdk.models.assurance_where_widget import AssuranceWhereWidget as AssuranceWhereWidget from graphiant_sdk.models.audit_activity_item import AuditActivityItem as AuditActivityItem from graphiant_sdk.models.audit_audit_entry import AuditAuditEntry as AuditAuditEntry from graphiant_sdk.models.audit_target import AuditTarget as AuditTarget @@ -1524,6 +1623,7 @@ from graphiant_sdk.models.common_permissions import CommonPermissions as CommonPermissions from graphiant_sdk.models.common_user import CommonUser as CommonUser from graphiant_sdk.models.common_user_info import CommonUserInfo as CommonUserInfo +from graphiant_sdk.models.conceal_agent import ConcealAgent as ConcealAgent from graphiant_sdk.models.config_worker_job_status import ConfigWorkerJobStatus as ConfigWorkerJobStatus from graphiant_sdk.models.diagnostic_tools_archive import DiagnosticToolsArchive as DiagnosticToolsArchive from graphiant_sdk.models.diagnostic_tools_arp_entry import DiagnosticToolsArpEntry as DiagnosticToolsArpEntry @@ -1586,6 +1686,9 @@ from graphiant_sdk.models.mana_v2_aws_gateway_details import ManaV2AwsGatewayDetails as ManaV2AwsGatewayDetails from graphiant_sdk.models.mana_v2_aws_transit_gateway import ManaV2AwsTransitGateway as ManaV2AwsTransitGateway from graphiant_sdk.models.mana_v2_azure_gateway_details import ManaV2AzureGatewayDetails as ManaV2AzureGatewayDetails +from graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_customer import ManaV2B2BExtranetMatchConsumerDetailsCustomer as ManaV2B2BExtranetMatchConsumerDetailsCustomer +from graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_producer_prefix import ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix as ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix +from graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_service import ManaV2B2BExtranetMatchConsumerDetailsService as ManaV2B2BExtranetMatchConsumerDetailsService from graphiant_sdk.models.mana_v2_b2_b_extranet_service_customer_match_details_customer import ManaV2B2BExtranetServiceCustomerMatchDetailsCustomer as ManaV2B2BExtranetServiceCustomerMatchDetailsCustomer from graphiant_sdk.models.mana_v2_b2_b_extranet_service_customer_match_details_producer_prefix import ManaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix as ManaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix from graphiant_sdk.models.mana_v2_b2_b_extranet_service_customer_match_details_service import ManaV2B2BExtranetServiceCustomerMatchDetailsService as ManaV2B2BExtranetServiceCustomerMatchDetailsService @@ -1596,6 +1699,8 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_consumers_summary import ManaV2B2bExtranetConsumersSummary as ManaV2B2bExtranetConsumersSummary from graphiant_sdk.models.mana_v2_b2b_extranet_customer_match_services_summary import ManaV2B2bExtranetCustomerMatchServicesSummary as ManaV2B2bExtranetCustomerMatchServicesSummary from graphiant_sdk.models.mana_v2_b2b_extranet_customer_services_summary import ManaV2B2bExtranetCustomerServicesSummary as ManaV2B2bExtranetCustomerServicesSummary +from graphiant_sdk.models.mana_v2_b2b_extranet_match import ManaV2B2bExtranetMatch as ManaV2B2bExtranetMatch +from graphiant_sdk.models.mana_v2_b2b_extranet_match_consumer_details import ManaV2B2bExtranetMatchConsumerDetails as ManaV2B2bExtranetMatchConsumerDetails from graphiant_sdk.models.mana_v2_b2b_extranet_match_service_to_customer import ManaV2B2bExtranetMatchServiceToCustomer as ManaV2B2bExtranetMatchServiceToCustomer from graphiant_sdk.models.mana_v2_b2b_extranet_peering_service_consumer_lan_segment_policy import ManaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy as ManaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy from graphiant_sdk.models.mana_v2_b2b_extranet_peering_service_customer_invite import ManaV2B2bExtranetPeeringServiceCustomerInvite as ManaV2B2bExtranetPeeringServiceCustomerInvite @@ -1684,13 +1789,28 @@ from graphiant_sdk.models.mana_v2_enterprise_prefix_set_input import ManaV2EnterprisePrefixSetInput as ManaV2EnterprisePrefixSetInput from graphiant_sdk.models.mana_v2_enterprise_prefix_set_input_entry import ManaV2EnterprisePrefixSetInputEntry as ManaV2EnterprisePrefixSetInputEntry from graphiant_sdk.models.mana_v2_extranet_auto_reverse_routes import ManaV2ExtranetAutoReverseRoutes as ManaV2ExtranetAutoReverseRoutes +from graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes import ManaV2ExtranetConsumerLanPrefixes as ManaV2ExtranetConsumerLanPrefixes from graphiant_sdk.models.mana_v2_extranet_consumer_lan_segment_policy import ManaV2ExtranetConsumerLanSegmentPolicy as ManaV2ExtranetConsumerLanSegmentPolicy from graphiant_sdk.models.mana_v2_extranet_consumer_lan_segment_policy_response import ManaV2ExtranetConsumerLanSegmentPolicyResponse as ManaV2ExtranetConsumerLanSegmentPolicyResponse from graphiant_sdk.models.mana_v2_extranet_consumer_nat_rule import ManaV2ExtranetConsumerNatRule as ManaV2ExtranetConsumerNatRule from graphiant_sdk.models.mana_v2_extranet_device_status import ManaV2ExtranetDeviceStatus as ManaV2ExtranetDeviceStatus from graphiant_sdk.models.mana_v2_extranet_manual_reverse_routes import ManaV2ExtranetManualReverseRoutes as ManaV2ExtranetManualReverseRoutes +from graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized import ManaV2ExtranetNatTranslationCentralized as ManaV2ExtranetNatTranslationCentralized +from graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized import ManaV2ExtranetNatTranslationDecentralized as ManaV2ExtranetNatTranslationDecentralized +from graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes import ManaV2ExtranetNatTranslationDevicePrefixes as ManaV2ExtranetNatTranslationDevicePrefixes +from graphiant_sdk.models.mana_v2_extranet_nat_translation_mode import ManaV2ExtranetNatTranslationMode as ManaV2ExtranetNatTranslationMode +from graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer import ManaV2ExtranetNatTranslationPeerToPeer as ManaV2ExtranetNatTranslationPeerToPeer +from graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer_prefix import ManaV2ExtranetNatTranslationPeerToPeerPrefix as ManaV2ExtranetNatTranslationPeerToPeerPrefix from graphiant_sdk.models.mana_v2_extranet_policy import ManaV2ExtranetPolicy as ManaV2ExtranetPolicy from graphiant_sdk.models.mana_v2_extranet_policy_input import ManaV2ExtranetPolicyInput as ManaV2ExtranetPolicyInput +from graphiant_sdk.models.mana_v2_extranet_service_consumer_policy import ManaV2ExtranetServiceConsumerPolicy as ManaV2ExtranetServiceConsumerPolicy +from graphiant_sdk.models.mana_v2_extranet_service_customer_invite import ManaV2ExtranetServiceCustomerInvite as ManaV2ExtranetServiceCustomerInvite +from graphiant_sdk.models.mana_v2_extranet_service_customer_match_summary import ManaV2ExtranetServiceCustomerMatchSummary as ManaV2ExtranetServiceCustomerMatchSummary +from graphiant_sdk.models.mana_v2_extranet_service_customer_summary import ManaV2ExtranetServiceCustomerSummary as ManaV2ExtranetServiceCustomerSummary +from graphiant_sdk.models.mana_v2_extranet_service_policy_response import ManaV2ExtranetServicePolicyResponse as ManaV2ExtranetServicePolicyResponse +from graphiant_sdk.models.mana_v2_extranet_service_producer_customer import ManaV2ExtranetServiceProducerCustomer as ManaV2ExtranetServiceProducerCustomer +from graphiant_sdk.models.mana_v2_extranet_service_producer_policy import ManaV2ExtranetServiceProducerPolicy as ManaV2ExtranetServiceProducerPolicy +from graphiant_sdk.models.mana_v2_extranet_service_summary import ManaV2ExtranetServiceSummary as ManaV2ExtranetServiceSummary from graphiant_sdk.models.mana_v2_firewall_zone_pair import ManaV2FirewallZonePair as ManaV2FirewallZonePair from graphiant_sdk.models.mana_v2_forwarding_policy import ManaV2ForwardingPolicy as ManaV2ForwardingPolicy from graphiant_sdk.models.mana_v2_forwarding_policy_config import ManaV2ForwardingPolicyConfig as ManaV2ForwardingPolicyConfig @@ -1714,6 +1834,8 @@ from graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config import ManaV2GuestConsumerSiteToSiteVpnConfig as ManaV2GuestConsumerSiteToSiteVpnConfig from graphiant_sdk.models.mana_v2_i_psec_bgp_route_config import ManaV2IPsecBgpRouteConfig as ManaV2IPsecBgpRouteConfig from graphiant_sdk.models.mana_v2_i_psec_gateway_details import ManaV2IPsecGatewayDetails as ManaV2IPsecGatewayDetails +from graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config import ManaV2IPsecGatewayPeersConfig as ManaV2IPsecGatewayPeersConfig +from graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer import ManaV2IPsecGatewayRemotePeer as ManaV2IPsecGatewayRemotePeer from graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details import ManaV2IPsecGatewayTunnelDetails as ManaV2IPsecGatewayTunnelDetails from graphiant_sdk.models.mana_v2_i_psec_profile import ManaV2IPsecProfile as ManaV2IPsecProfile from graphiant_sdk.models.mana_v2_i_psec_static_route_config import ManaV2IPsecStaticRouteConfig as ManaV2IPsecStaticRouteConfig @@ -1749,6 +1871,8 @@ from graphiant_sdk.models.mana_v2_lacp_config import ManaV2LacpConfig as ManaV2LacpConfig from graphiant_sdk.models.mana_v2_lag_interface import ManaV2LagInterface as ManaV2LagInterface from graphiant_sdk.models.mana_v2_lag_interface_config import ManaV2LagInterfaceConfig as ManaV2LagInterfaceConfig +from graphiant_sdk.models.mana_v2_lan_segment_public_interface_entry import ManaV2LanSegmentPublicInterfaceEntry as ManaV2LanSegmentPublicInterfaceEntry +from graphiant_sdk.models.mana_v2_lan_segment_public_interfaces_lists import ManaV2LanSegmentPublicInterfacesLists as ManaV2LanSegmentPublicInterfacesLists from graphiant_sdk.models.mana_v2_lan_segment_sites_map import ManaV2LanSegmentSitesMap as ManaV2LanSegmentSitesMap from graphiant_sdk.models.mana_v2_latency_bandwidth import ManaV2LatencyBandwidth as ManaV2LatencyBandwidth from graphiant_sdk.models.mana_v2_lldp_neighbor import ManaV2LldpNeighbor as ManaV2LldpNeighbor @@ -1913,17 +2037,11 @@ from graphiant_sdk.models.mana_v2_prometheus_rule_group_config import ManaV2PrometheusRuleGroupConfig as ManaV2PrometheusRuleGroupConfig from graphiant_sdk.models.mana_v2_prometheus_sys_db_monitor_config import ManaV2PrometheusSysDbMonitorConfig as ManaV2PrometheusSysDbMonitorConfig from graphiant_sdk.models.mana_v2_psk_configuration import ManaV2PskConfiguration as ManaV2PskConfiguration -from graphiant_sdk.models.mana_v2_public_vif import ManaV2PublicVif as ManaV2PublicVif -from graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment import ManaV2PublicVifConsumerLanSegment as ManaV2PublicVifConsumerLanSegment -from graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment_response import ManaV2PublicVifConsumerLanSegmentResponse as ManaV2PublicVifConsumerLanSegmentResponse -from graphiant_sdk.models.mana_v2_public_vif_consumer_policy import ManaV2PublicVifConsumerPolicy as ManaV2PublicVifConsumerPolicy -from graphiant_sdk.models.mana_v2_public_vif_consumer_policy_response import ManaV2PublicVifConsumerPolicyResponse as ManaV2PublicVifConsumerPolicyResponse -from graphiant_sdk.models.mana_v2_public_vif_device import ManaV2PublicVifDevice as ManaV2PublicVifDevice -from graphiant_sdk.models.mana_v2_public_vif_dynamic import ManaV2PublicVifDynamic as ManaV2PublicVifDynamic -from graphiant_sdk.models.mana_v2_public_vif_fixed import ManaV2PublicVifFixed as ManaV2PublicVifFixed -from graphiant_sdk.models.mana_v2_public_vif_fixed_nat import ManaV2PublicVifFixedNat as ManaV2PublicVifFixedNat -from graphiant_sdk.models.mana_v2_public_vif_producer_policy import ManaV2PublicVifProducerPolicy as ManaV2PublicVifProducerPolicy -from graphiant_sdk.models.mana_v2_public_vif_producer_policy_response import ManaV2PublicVifProducerPolicyResponse as ManaV2PublicVifProducerPolicyResponse +from graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat import ManaV2PublicVifGatewayCentralizedNat as ManaV2PublicVifGatewayCentralizedNat +from graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices import ManaV2PublicVifGatewayConsumerLanDevices as ManaV2PublicVifGatewayConsumerLanDevices +from graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes import ManaV2PublicVifGatewayDecentralizedPrefixes as ManaV2PublicVifGatewayDecentralizedPrefixes +from graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy import ManaV2PublicVifGatewayNatPrefixStrategy as ManaV2PublicVifGatewayNatPrefixStrategy +from graphiant_sdk.models.mana_v2_public_vif_gateway_write_request import ManaV2PublicVifGatewayWriteRequest as ManaV2PublicVifGatewayWriteRequest from graphiant_sdk.models.mana_v2_public_vif_summary import ManaV2PublicVifSummary as ManaV2PublicVifSummary 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 @@ -2024,6 +2142,7 @@ from graphiant_sdk.models.mana_v2_vrf_config import ManaV2VrfConfig as ManaV2VrfConfig from graphiant_sdk.models.mana_v2_vrrp_group import ManaV2VrrpGroup as ManaV2VrrpGroup from graphiant_sdk.models.mana_v2_vrrp_group_config import ManaV2VrrpGroupConfig as ManaV2VrrpGroupConfig +from graphiant_sdk.models.mana_v2_zero_trust_consumption_summary import ManaV2ZeroTrustConsumptionSummary as ManaV2ZeroTrustConsumptionSummary from graphiant_sdk.models.mana_v2_zone import ManaV2Zone as ManaV2Zone from graphiant_sdk.models.mana_v2_zone_firewall_config import ManaV2ZoneFirewallConfig as ManaV2ZoneFirewallConfig from graphiant_sdk.models.mana_v2_zone_firewall_ip_policy_config import ManaV2ZoneFirewallIpPolicyConfig as ManaV2ZoneFirewallIpPolicyConfig @@ -2195,9 +2314,12 @@ from graphiant_sdk.models.v1_auth_error_post_response import V1AuthErrorPostResponse as V1AuthErrorPostResponse from graphiant_sdk.models.v1_auth_gcs_post_request import V1AuthGcsPostRequest as V1AuthGcsPostRequest from graphiant_sdk.models.v1_auth_get_response import V1AuthGetResponse as V1AuthGetResponse +from graphiant_sdk.models.v1_auth_login_callback_post500_response import V1AuthLoginCallbackPost500Response as V1AuthLoginCallbackPost500Response from graphiant_sdk.models.v1_auth_login_post_request import V1AuthLoginPostRequest as V1AuthLoginPostRequest from graphiant_sdk.models.v1_auth_login_post_response import V1AuthLoginPostResponse as V1AuthLoginPostResponse from graphiant_sdk.models.v1_auth_login_pre_get_response import V1AuthLoginPreGetResponse as V1AuthLoginPreGetResponse +from graphiant_sdk.models.v1_auth_login_saml_get401_response import V1AuthLoginSamlGet401Response as V1AuthLoginSamlGet401Response +from graphiant_sdk.models.v1_auth_login_saml_get500_response import V1AuthLoginSamlGet500Response as V1AuthLoginSamlGet500Response from graphiant_sdk.models.v1_auth_login_temp_post_request import V1AuthLoginTempPostRequest as V1AuthLoginTempPostRequest from graphiant_sdk.models.v1_auth_mfa_patch_request import V1AuthMfaPatchRequest as V1AuthMfaPatchRequest from graphiant_sdk.models.v1_auth_mfa_post500_response import V1AuthMfaPost500Response as V1AuthMfaPost500Response @@ -2207,7 +2329,11 @@ from graphiant_sdk.models.v1_auth_patch_request import V1AuthPatchRequest as V1AuthPatchRequest from graphiant_sdk.models.v1_auth_put_request import V1AuthPutRequest as V1AuthPutRequest from graphiant_sdk.models.v1_auth_refresh_get200_response import V1AuthRefreshGet200Response as V1AuthRefreshGet200Response +from graphiant_sdk.models.v1_auth_refresh_get403_response import V1AuthRefreshGet403Response as V1AuthRefreshGet403Response +from graphiant_sdk.models.v1_auth_refresh_get422_response import V1AuthRefreshGet422Response as V1AuthRefreshGet422Response from graphiant_sdk.models.v1_auth_refresh_get_entry_point_response import V1AuthRefreshGetEntryPointResponse as V1AuthRefreshGetEntryPointResponse +from graphiant_sdk.models.v1_auth_session_get403_response import V1AuthSessionGet403Response as V1AuthSessionGet403Response +from graphiant_sdk.models.v1_auth_session_get422_response import V1AuthSessionGet422Response as V1AuthSessionGet422Response from graphiant_sdk.models.v1_auth_user_get_response import V1AuthUserGetResponse as V1AuthUserGetResponse from graphiant_sdk.models.v1_backbone_health_device_device_id_post_request import V1BackboneHealthDeviceDeviceIdPostRequest as V1BackboneHealthDeviceDeviceIdPostRequest from graphiant_sdk.models.v1_backbone_health_device_device_id_post_response import V1BackboneHealthDeviceDeviceIdPostResponse as V1BackboneHealthDeviceDeviceIdPostResponse @@ -2415,6 +2541,40 @@ from graphiant_sdk.models.v1_enterprises_patch_request import V1EnterprisesPatchRequest as V1EnterprisesPatchRequest from graphiant_sdk.models.v1_enterprises_patch_request_token_expiry import V1EnterprisesPatchRequestTokenExpiry as V1EnterprisesPatchRequestTokenExpiry from graphiant_sdk.models.v1_enterprises_put_request import V1EnterprisesPutRequest as V1EnterprisesPutRequest +from graphiant_sdk.models.v1_extranet_b2b_consumers_customer_id_get_response import V1ExtranetB2bConsumersCustomerIdGetResponse as V1ExtranetB2bConsumersCustomerIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config import V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig as V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_device_status_get_response import V1ExtranetB2bConsumersIdDeviceStatusGetResponse as V1ExtranetB2bConsumersIdDeviceStatusGetResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_prefixes_put_request import V1ExtranetB2bConsumersIdPrefixesPutRequest as V1ExtranetB2bConsumersIdPrefixesPutRequest +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_prefixes_put_response import V1ExtranetB2bConsumersIdPrefixesPutResponse as V1ExtranetB2bConsumersIdPrefixesPutResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_put_request import V1ExtranetB2bConsumersIdPutRequest as V1ExtranetB2bConsumersIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_put_response import V1ExtranetB2bConsumersIdPutResponse as V1ExtranetB2bConsumersIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_delete_response import V1ExtranetB2bCustomersIdDeleteResponse as V1ExtranetB2bCustomersIdDeleteResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_details_get_response import V1ExtranetB2bCustomersIdDetailsGetResponse as V1ExtranetB2bCustomersIdDetailsGetResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_matches_summary_get_response import V1ExtranetB2bCustomersIdMatchesSummaryGetResponse as V1ExtranetB2bCustomersIdMatchesSummaryGetResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_put_request import V1ExtranetB2bCustomersIdPutRequest as V1ExtranetB2bCustomersIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_customers_id_put_response import V1ExtranetB2bCustomersIdPutResponse as V1ExtranetB2bCustomersIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_post_request import V1ExtranetB2bCustomersPostRequest as V1ExtranetB2bCustomersPostRequest +from graphiant_sdk.models.v1_extranet_b2b_customers_post_response import V1ExtranetB2bCustomersPostResponse as V1ExtranetB2bCustomersPostResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_summary_get_response import V1ExtranetB2bCustomersSummaryGetResponse as V1ExtranetB2bCustomersSummaryGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_customers_post_request import V1ExtranetB2bMatchesCustomersPostRequest as V1ExtranetB2bMatchesCustomersPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_customers_post_response import V1ExtranetB2bMatchesCustomersPostResponse as V1ExtranetB2bMatchesCustomersPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_check_post_request import V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest as V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_check_post_response import V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse as V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_post_request import V1ExtranetB2bMatchesMatchIdConsumerPostRequest as V1ExtranetB2bMatchesMatchIdConsumerPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_post_response import V1ExtranetB2bMatchesMatchIdConsumerPostResponse as V1ExtranetB2bMatchesMatchIdConsumerPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_delete_response import V1ExtranetB2bMatchesMatchIdDeleteResponse as V1ExtranetB2bMatchesMatchIdDeleteResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_details_get_response import V1ExtranetB2bMatchesMatchIdDetailsGetResponse as V1ExtranetB2bMatchesMatchIdDetailsGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_get_response import V1ExtranetB2bMatchesMatchIdGetResponse as V1ExtranetB2bMatchesMatchIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_put_request import V1ExtranetB2bMatchesMatchIdPutRequest as V1ExtranetB2bMatchesMatchIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_put_response import V1ExtranetB2bMatchesMatchIdPutResponse as V1ExtranetB2bMatchesMatchIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_status_put_request import V1ExtranetB2bMatchesMatchIdStatusPutRequest as V1ExtranetB2bMatchesMatchIdStatusPutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_status_put_response import V1ExtranetB2bMatchesMatchIdStatusPutResponse as V1ExtranetB2bMatchesMatchIdStatusPutResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_pause_put_request import V1ExtranetB2bMatchesPausePutRequest as V1ExtranetB2bMatchesPausePutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_pause_put_response import V1ExtranetB2bMatchesPausePutResponse as V1ExtranetB2bMatchesPausePutResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_post_request import V1ExtranetB2bMatchesPostRequest as V1ExtranetB2bMatchesPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_post_response import V1ExtranetB2bMatchesPostResponse as V1ExtranetB2bMatchesPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_review_post_request import V1ExtranetB2bMatchesReviewPostRequest as V1ExtranetB2bMatchesReviewPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_review_post_response import V1ExtranetB2bMatchesReviewPostResponse as V1ExtranetB2bMatchesReviewPostResponse from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request import V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest as V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_response import V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse as V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request import V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest as V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest @@ -2427,14 +2587,18 @@ from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_health_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse as V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request import V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest as V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse as V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse -from graphiant_sdk.models.v1_extranet_public_vif_check_post_request import V1ExtranetPublicVifCheckPostRequest as V1ExtranetPublicVifCheckPostRequest -from graphiant_sdk.models.v1_extranet_public_vif_check_post_response import V1ExtranetPublicVifCheckPostResponse as V1ExtranetPublicVifCheckPostResponse -from graphiant_sdk.models.v1_extranet_public_vif_get_response import V1ExtranetPublicVifGetResponse as V1ExtranetPublicVifGetResponse -from graphiant_sdk.models.v1_extranet_public_vif_id_get_response import V1ExtranetPublicVifIdGetResponse as V1ExtranetPublicVifIdGetResponse -from graphiant_sdk.models.v1_extranet_public_vif_id_put_request import V1ExtranetPublicVifIdPutRequest as V1ExtranetPublicVifIdPutRequest -from graphiant_sdk.models.v1_extranet_public_vif_id_put_response import V1ExtranetPublicVifIdPutResponse as V1ExtranetPublicVifIdPutResponse -from graphiant_sdk.models.v1_extranet_public_vif_post_request import V1ExtranetPublicVifPostRequest as V1ExtranetPublicVifPostRequest -from graphiant_sdk.models.v1_extranet_public_vif_post_response import V1ExtranetPublicVifPostResponse as V1ExtranetPublicVifPostResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_customers_get_response import V1ExtranetB2bProducerIdCustomersGetResponse as V1ExtranetB2bProducerIdCustomersGetResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_device_status_get_response import V1ExtranetB2bProducerIdDeviceStatusGetResponse as V1ExtranetB2bProducerIdDeviceStatusGetResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_get_response import V1ExtranetB2bProducerIdGetResponse as V1ExtranetB2bProducerIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_put_request import V1ExtranetB2bProducerIdPutRequest as V1ExtranetB2bProducerIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_id_put_response import V1ExtranetB2bProducerIdPutResponse as V1ExtranetB2bProducerIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_status_put_request import V1ExtranetB2bProducerIdStatusPutRequest as V1ExtranetB2bProducerIdStatusPutRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_id_status_put_response import V1ExtranetB2bProducerIdStatusPutResponse as V1ExtranetB2bProducerIdStatusPutResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_post_request import V1ExtranetB2bProducerPostRequest as V1ExtranetB2bProducerPostRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_post_response import V1ExtranetB2bProducerPostResponse as V1ExtranetB2bProducerPostResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_review_post_request import V1ExtranetB2bProducerReviewPostRequest as V1ExtranetB2bProducerReviewPostRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_review_post_response import V1ExtranetB2bProducerReviewPostResponse as V1ExtranetB2bProducerReviewPostResponse +from graphiant_sdk.models.v1_extranet_b2b_services_summary_get_response import V1ExtranetB2bServicesSummaryGetResponse as V1ExtranetB2bServicesSummaryGetResponse from graphiant_sdk.models.v1_extranet_sites_usage_top_post_request import V1ExtranetSitesUsageTopPostRequest as V1ExtranetSitesUsageTopPostRequest from graphiant_sdk.models.v1_extranet_sites_usage_top_post_response import V1ExtranetSitesUsageTopPostResponse as V1ExtranetSitesUsageTopPostResponse from graphiant_sdk.models.v1_extranet_sites_usage_top_post_response_site_usage import V1ExtranetSitesUsageTopPostResponseSiteUsage as V1ExtranetSitesUsageTopPostResponseSiteUsage @@ -2605,6 +2769,7 @@ from graphiant_sdk.models.v1_groups_root_get_response import V1GroupsRootGetResponse as V1GroupsRootGetResponse from graphiant_sdk.models.v1_invitation_email_post_request import V1InvitationEmailPostRequest as V1InvitationEmailPostRequest from graphiant_sdk.models.v1_lan_segments_get_response import V1LanSegmentsGetResponse as V1LanSegmentsGetResponse +from graphiant_sdk.models.v1_lan_segments_interfaces_public_get_response import V1LanSegmentsInterfacesPublicGetResponse as V1LanSegmentsInterfacesPublicGetResponse from graphiant_sdk.models.v1_lldp_interface_id_neighbors_get_response import V1LldpInterfaceIdNeighborsGetResponse as V1LldpInterfaceIdNeighborsGetResponse from graphiant_sdk.models.v1_lldp_interface_id_summary_get_response import V1LldpInterfaceIdSummaryGetResponse as V1LldpInterfaceIdSummaryGetResponse from graphiant_sdk.models.v1_lldp_interface_id_vendors_get_response import V1LldpInterfaceIdVendorsGetResponse as V1LldpInterfaceIdVendorsGetResponse @@ -2624,8 +2789,16 @@ from graphiant_sdk.models.v1_policy_route_tag_sets_tags_get_response import V1PolicyRouteTagSetsTagsGetResponse as V1PolicyRouteTagSetsTagsGetResponse from graphiant_sdk.models.v1_policy_route_tag_sets_tags_summary_get_response import V1PolicyRouteTagSetsTagsSummaryGetResponse as V1PolicyRouteTagSetsTagsSummaryGetResponse from graphiant_sdk.models.v1_presharedkey_get_response import V1PresharedkeyGetResponse as V1PresharedkeyGetResponse +from graphiant_sdk.models.v1_pvif_id_details_get_response import V1PvifIdDetailsGetResponse as V1PvifIdDetailsGetResponse +from graphiant_sdk.models.v1_pvif_id_put_request import V1PvifIdPutRequest as V1PvifIdPutRequest +from graphiant_sdk.models.v1_pvif_id_put_response import V1PvifIdPutResponse as V1PvifIdPutResponse +from graphiant_sdk.models.v1_pvif_post_request import V1PvifPostRequest as V1PvifPostRequest +from graphiant_sdk.models.v1_pvif_post_response import V1PvifPostResponse as V1PvifPostResponse +from graphiant_sdk.models.v1_pvif_summary_get_response import V1PvifSummaryGetResponse as V1PvifSummaryGetResponse from graphiant_sdk.models.v1_qos_circuit_profiles_get_response import V1QosCircuitProfilesGetResponse as V1QosCircuitProfilesGetResponse from graphiant_sdk.models.v1_regions_get_response import V1RegionsGetResponse as V1RegionsGetResponse +from graphiant_sdk.models.v1_regions_region_id_gateways_get_response import V1RegionsRegionIdGatewaysGetResponse as V1RegionsRegionIdGatewaysGetResponse +from graphiant_sdk.models.v1_regions_region_id_gateways_get_response_gateway import V1RegionsRegionIdGatewaysGetResponseGateway as V1RegionsRegionIdGatewaysGetResponseGateway from graphiant_sdk.models.v1_search_get_response import V1SearchGetResponse as V1SearchGetResponse from graphiant_sdk.models.v1_site_details_sitelists_post_request import V1SiteDetailsSitelistsPostRequest as V1SiteDetailsSitelistsPostRequest from graphiant_sdk.models.v1_site_details_sitelists_post_response import V1SiteDetailsSitelistsPostResponse as V1SiteDetailsSitelistsPostResponse @@ -2686,6 +2859,7 @@ 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_agents_get_response import V1ZtagentAgentsGetResponse as V1ZtagentAgentsGetResponse 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 @@ -2705,6 +2879,8 @@ from graphiant_sdk.models.v2_assistant_get_conversations_post_response import V2AssistantGetConversationsPostResponse as V2AssistantGetConversationsPostResponse from graphiant_sdk.models.v2_assistant_update_conversation_name_post_request import V2AssistantUpdateConversationNamePostRequest as V2AssistantUpdateConversationNamePostRequest from graphiant_sdk.models.v2_assistant_version_post_response import V2AssistantVersionPostResponse as V2AssistantVersionPostResponse +from graphiant_sdk.models.v2_assurance_ai_adoption_summary_post_request import V2AssuranceAiAdoptionSummaryPostRequest as V2AssuranceAiAdoptionSummaryPostRequest +from graphiant_sdk.models.v2_assurance_ai_adoption_summary_post_response import V2AssuranceAiAdoptionSummaryPostResponse as V2AssuranceAiAdoptionSummaryPostResponse from graphiant_sdk.models.v2_assurance_applicationdetailsbyname_post_request import V2AssuranceApplicationdetailsbynamePostRequest as V2AssuranceApplicationdetailsbynamePostRequest from graphiant_sdk.models.v2_assurance_applicationdetailsbyname_post_response import V2AssuranceApplicationdetailsbynamePostResponse as V2AssuranceApplicationdetailsbynamePostResponse from graphiant_sdk.models.v2_assurance_applicationprofilesummary_post_request import V2AssuranceApplicationprofilesummaryPostRequest as V2AssuranceApplicationprofilesummaryPostRequest @@ -2719,6 +2895,8 @@ from graphiant_sdk.models.v2_assurance_bucket_topologies_post_response import V2AssuranceBucketTopologiesPostResponse as V2AssuranceBucketTopologiesPostResponse from graphiant_sdk.models.v2_assurance_bucketdetails_post_request import V2AssuranceBucketdetailsPostRequest as V2AssuranceBucketdetailsPostRequest from graphiant_sdk.models.v2_assurance_bucketdetails_post_response import V2AssuranceBucketdetailsPostResponse as V2AssuranceBucketdetailsPostResponse +from graphiant_sdk.models.v2_assurance_create_ai_adoption_approve_entry_post_request import V2AssuranceCreateAiAdoptionApproveEntryPostRequest as V2AssuranceCreateAiAdoptionApproveEntryPostRequest +from graphiant_sdk.models.v2_assurance_create_ai_adoption_approve_entry_post_response import V2AssuranceCreateAiAdoptionApproveEntryPostResponse as V2AssuranceCreateAiAdoptionApproveEntryPostResponse from graphiant_sdk.models.v2_assurance_create_dnsproxy_entry_post_request import V2AssuranceCreateDnsproxyEntryPostRequest as V2AssuranceCreateDnsproxyEntryPostRequest from graphiant_sdk.models.v2_assurance_create_dnsproxy_entry_post_response import V2AssuranceCreateDnsproxyEntryPostResponse as V2AssuranceCreateDnsproxyEntryPostResponse from graphiant_sdk.models.v2_assurance_create_user_report_post_request import V2AssuranceCreateUserReportPostRequest as V2AssuranceCreateUserReportPostRequest @@ -2728,7 +2906,10 @@ from graphiant_sdk.models.v2_assurance_download_user_report_get_response import V2AssuranceDownloadUserReportGetResponse as V2AssuranceDownloadUserReportGetResponse from graphiant_sdk.models.v2_assurance_enterprisesummary_post_request import V2AssuranceEnterprisesummaryPostRequest as V2AssuranceEnterprisesummaryPostRequest from graphiant_sdk.models.v2_assurance_enterprisesummary_post_response import V2AssuranceEnterprisesummaryPostResponse as V2AssuranceEnterprisesummaryPostResponse +from graphiant_sdk.models.v2_assurance_get_app_names_post_request import V2AssuranceGetAppNamesPostRequest as V2AssuranceGetAppNamesPostRequest +from graphiant_sdk.models.v2_assurance_get_app_names_post_response import V2AssuranceGetAppNamesPostResponse as V2AssuranceGetAppNamesPostResponse from graphiant_sdk.models.v2_assurance_getclassifiedapplicationlist_get_response import V2AssuranceGetclassifiedapplicationlistGetResponse as V2AssuranceGetclassifiedapplicationlistGetResponse +from graphiant_sdk.models.v2_assurance_read_ai_adoption_approve_entries_get_response import V2AssuranceReadAiAdoptionApproveEntriesGetResponse as V2AssuranceReadAiAdoptionApproveEntriesGetResponse from graphiant_sdk.models.v2_assurance_read_dnsproxy_list_get_response import V2AssuranceReadDnsproxyListGetResponse as V2AssuranceReadDnsproxyListGetResponse from graphiant_sdk.models.v2_assurance_read_user_report_list_get_response import V2AssuranceReadUserReportListGetResponse as V2AssuranceReadUserReportListGetResponse from graphiant_sdk.models.v2_assurance_scoredetails_post_request import V2AssuranceScoredetailsPostRequest as V2AssuranceScoredetailsPostRequest @@ -2754,6 +2935,7 @@ from graphiant_sdk.models.v2_assurance_topology_site_summaries_post_response_summary import V2AssuranceTopologySiteSummariesPostResponseSummary as V2AssuranceTopologySiteSummariesPostResponseSummary from graphiant_sdk.models.v2_assurance_unclassifiedapplicationprofilesummary_post_request import V2AssuranceUnclassifiedapplicationprofilesummaryPostRequest as V2AssuranceUnclassifiedapplicationprofilesummaryPostRequest from graphiant_sdk.models.v2_assurance_unclassifiedapplicationprofilesummary_post_response import V2AssuranceUnclassifiedapplicationprofilesummaryPostResponse as V2AssuranceUnclassifiedapplicationprofilesummaryPostResponse +from graphiant_sdk.models.v2_assurance_update_ai_adoption_approve_entry_post_request import V2AssuranceUpdateAiAdoptionApproveEntryPostRequest as V2AssuranceUpdateAiAdoptionApproveEntryPostRequest from graphiant_sdk.models.v2_assurance_update_dnsproxy_entry_post_request import V2AssuranceUpdateDnsproxyEntryPostRequest as V2AssuranceUpdateDnsproxyEntryPostRequest from graphiant_sdk.models.v2_assurance_updateclassifiedapplication_post_request import V2AssuranceUpdateclassifiedapplicationPostRequest as V2AssuranceUpdateclassifiedapplicationPostRequest from graphiant_sdk.models.v2_audit_logs_post_request import V2AuditLogsPostRequest as V2AuditLogsPostRequest diff --git a/graphiant_sdk/api/default_api.py b/graphiant_sdk/api/default_api.py index 4c025400..91b55a5f 100644 --- a/graphiant_sdk/api/default_api.py +++ b/graphiant_sdk/api/default_api.py @@ -231,6 +231,39 @@ from graphiant_sdk.models.v1_enterprises_managed_get_response import V1EnterprisesManagedGetResponse from graphiant_sdk.models.v1_enterprises_patch_request import V1EnterprisesPatchRequest from graphiant_sdk.models.v1_enterprises_put_request import V1EnterprisesPutRequest +from graphiant_sdk.models.v1_extranet_b2b_consumers_customer_id_get_response import V1ExtranetB2bConsumersCustomerIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_device_status_get_response import V1ExtranetB2bConsumersIdDeviceStatusGetResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_prefixes_put_request import V1ExtranetB2bConsumersIdPrefixesPutRequest +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_prefixes_put_response import V1ExtranetB2bConsumersIdPrefixesPutResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_put_request import V1ExtranetB2bConsumersIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_put_response import V1ExtranetB2bConsumersIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_delete_response import V1ExtranetB2bCustomersIdDeleteResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_details_get_response import V1ExtranetB2bCustomersIdDetailsGetResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_matches_summary_get_response import V1ExtranetB2bCustomersIdMatchesSummaryGetResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_put_request import V1ExtranetB2bCustomersIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_customers_id_put_response import V1ExtranetB2bCustomersIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_post_request import V1ExtranetB2bCustomersPostRequest +from graphiant_sdk.models.v1_extranet_b2b_customers_post_response import V1ExtranetB2bCustomersPostResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_summary_get_response import V1ExtranetB2bCustomersSummaryGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_customers_post_request import V1ExtranetB2bMatchesCustomersPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_customers_post_response import V1ExtranetB2bMatchesCustomersPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_check_post_request import V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_check_post_response import V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_post_request import V1ExtranetB2bMatchesMatchIdConsumerPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_post_response import V1ExtranetB2bMatchesMatchIdConsumerPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_delete_response import V1ExtranetB2bMatchesMatchIdDeleteResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_details_get_response import V1ExtranetB2bMatchesMatchIdDetailsGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_get_response import V1ExtranetB2bMatchesMatchIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_put_request import V1ExtranetB2bMatchesMatchIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_put_response import V1ExtranetB2bMatchesMatchIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_status_put_request import V1ExtranetB2bMatchesMatchIdStatusPutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_status_put_response import V1ExtranetB2bMatchesMatchIdStatusPutResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_pause_put_request import V1ExtranetB2bMatchesPausePutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_pause_put_response import V1ExtranetB2bMatchesPausePutResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_post_request import V1ExtranetB2bMatchesPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_post_response import V1ExtranetB2bMatchesPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_review_post_request import V1ExtranetB2bMatchesReviewPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_review_post_response import V1ExtranetB2bMatchesReviewPostResponse from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request import V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_response import V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request import V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest @@ -243,14 +276,18 @@ from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_health_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request import V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse -from graphiant_sdk.models.v1_extranet_public_vif_check_post_request import V1ExtranetPublicVifCheckPostRequest -from graphiant_sdk.models.v1_extranet_public_vif_check_post_response import V1ExtranetPublicVifCheckPostResponse -from graphiant_sdk.models.v1_extranet_public_vif_get_response import V1ExtranetPublicVifGetResponse -from graphiant_sdk.models.v1_extranet_public_vif_id_get_response import V1ExtranetPublicVifIdGetResponse -from graphiant_sdk.models.v1_extranet_public_vif_id_put_request import V1ExtranetPublicVifIdPutRequest -from graphiant_sdk.models.v1_extranet_public_vif_id_put_response import V1ExtranetPublicVifIdPutResponse -from graphiant_sdk.models.v1_extranet_public_vif_post_request import V1ExtranetPublicVifPostRequest -from graphiant_sdk.models.v1_extranet_public_vif_post_response import V1ExtranetPublicVifPostResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_customers_get_response import V1ExtranetB2bProducerIdCustomersGetResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_device_status_get_response import V1ExtranetB2bProducerIdDeviceStatusGetResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_get_response import V1ExtranetB2bProducerIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_put_request import V1ExtranetB2bProducerIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_id_put_response import V1ExtranetB2bProducerIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_status_put_request import V1ExtranetB2bProducerIdStatusPutRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_id_status_put_response import V1ExtranetB2bProducerIdStatusPutResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_post_request import V1ExtranetB2bProducerPostRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_post_response import V1ExtranetB2bProducerPostResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_review_post_request import V1ExtranetB2bProducerReviewPostRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_review_post_response import V1ExtranetB2bProducerReviewPostResponse +from graphiant_sdk.models.v1_extranet_b2b_services_summary_get_response import V1ExtranetB2bServicesSummaryGetResponse from graphiant_sdk.models.v1_extranet_sites_usage_top_post_request import V1ExtranetSitesUsageTopPostRequest from graphiant_sdk.models.v1_extranet_sites_usage_top_post_response import V1ExtranetSitesUsageTopPostResponse from graphiant_sdk.models.v1_extranets_b2b_consumer_device_status_id_get_response import V1ExtranetsB2bConsumerDeviceStatusIdGetResponse @@ -402,6 +439,7 @@ from graphiant_sdk.models.v1_groups_root_get_response import V1GroupsRootGetResponse from graphiant_sdk.models.v1_invitation_email_post_request import V1InvitationEmailPostRequest from graphiant_sdk.models.v1_lan_segments_get_response import V1LanSegmentsGetResponse +from graphiant_sdk.models.v1_lan_segments_interfaces_public_get_response import V1LanSegmentsInterfacesPublicGetResponse from graphiant_sdk.models.v1_lldp_interface_id_neighbors_get_response import V1LldpInterfaceIdNeighborsGetResponse from graphiant_sdk.models.v1_lldp_interface_id_summary_get_response import V1LldpInterfaceIdSummaryGetResponse from graphiant_sdk.models.v1_lldp_interface_id_vendors_get_response import V1LldpInterfaceIdVendorsGetResponse @@ -420,8 +458,15 @@ from graphiant_sdk.models.v1_policy_route_tag_sets_tags_get_response import V1PolicyRouteTagSetsTagsGetResponse from graphiant_sdk.models.v1_policy_route_tag_sets_tags_summary_get_response import V1PolicyRouteTagSetsTagsSummaryGetResponse from graphiant_sdk.models.v1_presharedkey_get_response import V1PresharedkeyGetResponse +from graphiant_sdk.models.v1_pvif_id_details_get_response import V1PvifIdDetailsGetResponse +from graphiant_sdk.models.v1_pvif_id_put_request import V1PvifIdPutRequest +from graphiant_sdk.models.v1_pvif_id_put_response import V1PvifIdPutResponse +from graphiant_sdk.models.v1_pvif_post_request import V1PvifPostRequest +from graphiant_sdk.models.v1_pvif_post_response import V1PvifPostResponse +from graphiant_sdk.models.v1_pvif_summary_get_response import V1PvifSummaryGetResponse from graphiant_sdk.models.v1_qos_circuit_profiles_get_response import V1QosCircuitProfilesGetResponse from graphiant_sdk.models.v1_regions_get_response import V1RegionsGetResponse +from graphiant_sdk.models.v1_regions_region_id_gateways_get_response import V1RegionsRegionIdGatewaysGetResponse from graphiant_sdk.models.v1_search_get_response import V1SearchGetResponse from graphiant_sdk.models.v1_site_details_sitelists_post_request import V1SiteDetailsSitelistsPostRequest from graphiant_sdk.models.v1_site_details_sitelists_post_response import V1SiteDetailsSitelistsPostResponse @@ -474,6 +519,7 @@ 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_agents_get_response import V1ZtagentAgentsGetResponse 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 @@ -493,6 +539,8 @@ from graphiant_sdk.models.v2_assistant_get_conversations_post_response import V2AssistantGetConversationsPostResponse from graphiant_sdk.models.v2_assistant_update_conversation_name_post_request import V2AssistantUpdateConversationNamePostRequest from graphiant_sdk.models.v2_assistant_version_post_response import V2AssistantVersionPostResponse +from graphiant_sdk.models.v2_assurance_ai_adoption_summary_post_request import V2AssuranceAiAdoptionSummaryPostRequest +from graphiant_sdk.models.v2_assurance_ai_adoption_summary_post_response import V2AssuranceAiAdoptionSummaryPostResponse from graphiant_sdk.models.v2_assurance_applicationdetailsbyname_post_request import V2AssuranceApplicationdetailsbynamePostRequest from graphiant_sdk.models.v2_assurance_applicationdetailsbyname_post_response import V2AssuranceApplicationdetailsbynamePostResponse from graphiant_sdk.models.v2_assurance_applicationprofilesummary_post_request import V2AssuranceApplicationprofilesummaryPostRequest @@ -507,6 +555,8 @@ from graphiant_sdk.models.v2_assurance_bucket_topologies_post_response import V2AssuranceBucketTopologiesPostResponse from graphiant_sdk.models.v2_assurance_bucketdetails_post_request import V2AssuranceBucketdetailsPostRequest from graphiant_sdk.models.v2_assurance_bucketdetails_post_response import V2AssuranceBucketdetailsPostResponse +from graphiant_sdk.models.v2_assurance_create_ai_adoption_approve_entry_post_request import V2AssuranceCreateAiAdoptionApproveEntryPostRequest +from graphiant_sdk.models.v2_assurance_create_ai_adoption_approve_entry_post_response import V2AssuranceCreateAiAdoptionApproveEntryPostResponse from graphiant_sdk.models.v2_assurance_create_dnsproxy_entry_post_request import V2AssuranceCreateDnsproxyEntryPostRequest from graphiant_sdk.models.v2_assurance_create_dnsproxy_entry_post_response import V2AssuranceCreateDnsproxyEntryPostResponse from graphiant_sdk.models.v2_assurance_create_user_report_post_request import V2AssuranceCreateUserReportPostRequest @@ -516,7 +566,10 @@ from graphiant_sdk.models.v2_assurance_download_user_report_get_response import V2AssuranceDownloadUserReportGetResponse from graphiant_sdk.models.v2_assurance_enterprisesummary_post_request import V2AssuranceEnterprisesummaryPostRequest from graphiant_sdk.models.v2_assurance_enterprisesummary_post_response import V2AssuranceEnterprisesummaryPostResponse +from graphiant_sdk.models.v2_assurance_get_app_names_post_request import V2AssuranceGetAppNamesPostRequest +from graphiant_sdk.models.v2_assurance_get_app_names_post_response import V2AssuranceGetAppNamesPostResponse from graphiant_sdk.models.v2_assurance_getclassifiedapplicationlist_get_response import V2AssuranceGetclassifiedapplicationlistGetResponse +from graphiant_sdk.models.v2_assurance_read_ai_adoption_approve_entries_get_response import V2AssuranceReadAiAdoptionApproveEntriesGetResponse from graphiant_sdk.models.v2_assurance_read_dnsproxy_list_get_response import V2AssuranceReadDnsproxyListGetResponse from graphiant_sdk.models.v2_assurance_read_user_report_list_get_response import V2AssuranceReadUserReportListGetResponse from graphiant_sdk.models.v2_assurance_scoredetails_post_request import V2AssuranceScoredetailsPostRequest @@ -537,6 +590,7 @@ from graphiant_sdk.models.v2_assurance_topology_site_summaries_post_response import V2AssuranceTopologySiteSummariesPostResponse from graphiant_sdk.models.v2_assurance_unclassifiedapplicationprofilesummary_post_request import V2AssuranceUnclassifiedapplicationprofilesummaryPostRequest from graphiant_sdk.models.v2_assurance_unclassifiedapplicationprofilesummary_post_response import V2AssuranceUnclassifiedapplicationprofilesummaryPostResponse +from graphiant_sdk.models.v2_assurance_update_ai_adoption_approve_entry_post_request import V2AssuranceUpdateAiAdoptionApproveEntryPostRequest from graphiant_sdk.models.v2_assurance_update_dnsproxy_entry_post_request import V2AssuranceUpdateDnsproxyEntryPostRequest from graphiant_sdk.models.v2_assurance_updateclassifiedapplication_post_request import V2AssuranceUpdateclassifiedapplicationPostRequest from graphiant_sdk.models.v2_audit_logs_post_request import V2AuditLogsPostRequest @@ -5474,7 +5528,7 @@ def v1_auth_login_callback_post( _response_types_map: Dict[str, Optional[str]] = { '302': None, '401': "V1AuthErrorPostResponse", - '500': "V1AuthMfaPost500Response", + '500': "V1AuthLoginCallbackPost500Response", } response_data = self.api_client.call_api( *_param, @@ -5546,7 +5600,7 @@ def v1_auth_login_callback_post_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '302': None, '401': "V1AuthErrorPostResponse", - '500': "V1AuthMfaPost500Response", + '500': "V1AuthLoginCallbackPost500Response", } response_data = self.api_client.call_api( *_param, @@ -5618,7 +5672,7 @@ def v1_auth_login_callback_post_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '302': None, '401': "V1AuthErrorPostResponse", - '500': "V1AuthMfaPost500Response", + '500': "V1AuthLoginCallbackPost500Response", } response_data = self.api_client.call_api( *_param, @@ -6322,8 +6376,8 @@ def v1_auth_login_saml_get( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '401': "V1AuthMfaPost500Response", - '500': "V1AuthMfaPost500Response", + '401': "V1AuthLoginSamlGet401Response", + '500': "V1AuthLoginSamlGet500Response", } response_data = self.api_client.call_api( *_param, @@ -6394,8 +6448,8 @@ def v1_auth_login_saml_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '401': "V1AuthMfaPost500Response", - '500': "V1AuthMfaPost500Response", + '401': "V1AuthLoginSamlGet401Response", + '500': "V1AuthLoginSamlGet500Response", } response_data = self.api_client.call_api( *_param, @@ -6466,8 +6520,8 @@ def v1_auth_login_saml_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '401': "V1AuthMfaPost500Response", - '500': "V1AuthMfaPost500Response", + '401': "V1AuthLoginSamlGet401Response", + '500': "V1AuthLoginSamlGet500Response", } response_data = self.api_client.call_api( *_param, @@ -8799,8 +8853,8 @@ def v1_auth_refresh_get( _response_types_map: Dict[str, Optional[str]] = { '200': "V1AuthRefreshGet200Response", - '403': "V1AuthMfaPost500Response", - '422': "V1AuthMfaPost500Response", + '403': "V1AuthRefreshGet403Response", + '422': "V1AuthRefreshGet422Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -8872,8 +8926,8 @@ def v1_auth_refresh_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "V1AuthRefreshGet200Response", - '403': "V1AuthMfaPost500Response", - '422': "V1AuthMfaPost500Response", + '403': "V1AuthRefreshGet403Response", + '422': "V1AuthRefreshGet422Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -8945,8 +8999,8 @@ def v1_auth_refresh_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "V1AuthRefreshGet200Response", - '403': "V1AuthMfaPost500Response", - '422': "V1AuthMfaPost500Response", + '403': "V1AuthRefreshGet403Response", + '422': "V1AuthRefreshGet422Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -9083,8 +9137,8 @@ def v1_auth_session_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '403': "V1AuthMfaPost500Response", - '422': "V1AuthMfaPost500Response", + '403': "V1AuthSessionGet403Response", + '422': "V1AuthSessionGet422Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -9156,8 +9210,8 @@ def v1_auth_session_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '403': "V1AuthMfaPost500Response", - '422': "V1AuthMfaPost500Response", + '403': "V1AuthSessionGet403Response", + '422': "V1AuthSessionGet422Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -9229,8 +9283,8 @@ def v1_auth_session_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '403': "V1AuthMfaPost500Response", - '422': "V1AuthMfaPost500Response", + '403': "V1AuthSessionGet403Response", + '422': "V1AuthSessionGet422Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -9363,8 +9417,8 @@ def v1_auth_session_root_get( _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '403': "V1AuthMfaPost500Response", - '422': "V1AuthMfaPost500Response", + '403': "V1AuthSessionGet403Response", + '422': "V1AuthSessionGet422Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -9432,8 +9486,8 @@ def v1_auth_session_root_get_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '403': "V1AuthMfaPost500Response", - '422': "V1AuthMfaPost500Response", + '403': "V1AuthSessionGet403Response", + '422': "V1AuthSessionGet422Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -9501,8 +9555,8 @@ def v1_auth_session_root_get_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '200': "object", - '403': "V1AuthMfaPost500Response", - '422': "V1AuthMfaPost500Response", + '403': "V1AuthSessionGet403Response", + '422': "V1AuthSessionGet422Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -51947,10 +52001,11 @@ def _v1_enterprises_put_serialize( @validate_call - def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post( + def v1_extranet_b2b_consumers_customer_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, + customer_id: Annotated[StrictInt, Field(description="Partner customer id")], + service_id: Annotated[Optional[StrictInt], Field(description="Producer service id")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -51963,15 +52018,17 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse: - """v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post + ) -> V1ExtranetB2bConsumersCustomerIdGetResponse: + """v1_extranet_b2b_consumers_customer_id_get - Get b2b extranet peering service sites usage stats + Get extranet service consumer subscription :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest + :param customer_id: Partner customer id (required) + :type customer_id: int + :param service_id: Producer service id + :type service_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 @@ -51994,9 +52051,10 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( + _param = self._v1_extranet_b2b_consumers_customer_id_get_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request=v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, + customer_id=customer_id, + service_id=service_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52004,7 +52062,7 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", + '200': "V1ExtranetB2bConsumersCustomerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -52018,10 +52076,11 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post( @validate_call - def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_with_http_info( + def v1_extranet_b2b_consumers_customer_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, + customer_id: Annotated[StrictInt, Field(description="Partner customer id")], + service_id: Annotated[Optional[StrictInt], Field(description="Producer service id")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52034,15 +52093,17 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_with_http_in _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse]: - """v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post + ) -> ApiResponse[V1ExtranetB2bConsumersCustomerIdGetResponse]: + """v1_extranet_b2b_consumers_customer_id_get - Get b2b extranet peering service sites usage stats + Get extranet service consumer subscription :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest + :param customer_id: Partner customer id (required) + :type customer_id: int + :param service_id: Producer service id + :type service_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 @@ -52065,9 +52126,10 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_with_http_in :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( + _param = self._v1_extranet_b2b_consumers_customer_id_get_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request=v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, + customer_id=customer_id, + service_id=service_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52075,7 +52137,7 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_with_http_in ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", + '200': "V1ExtranetB2bConsumersCustomerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -52089,10 +52151,11 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_with_http_in @validate_call - def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_without_preload_content( + def v1_extranet_b2b_consumers_customer_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, + customer_id: Annotated[StrictInt, Field(description="Partner customer id")], + service_id: Annotated[Optional[StrictInt], Field(description="Producer service id")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52106,14 +52169,16 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_without_prel _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post + """v1_extranet_b2b_consumers_customer_id_get - Get b2b extranet peering service sites usage stats + Get extranet service consumer subscription :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest + :param customer_id: Partner customer id (required) + :type customer_id: int + :param service_id: Producer service id + :type service_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 @@ -52136,9 +52201,10 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_without_prel :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( + _param = self._v1_extranet_b2b_consumers_customer_id_get_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request=v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, + customer_id=customer_id, + service_id=service_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52146,7 +52212,7 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_without_prel ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", + '200': "V1ExtranetB2bConsumersCustomerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -52155,10 +52221,11 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_without_prel return response_data.response - def _v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( + def _v1_extranet_b2b_consumers_customer_id_get_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, + customer_id, + service_id, _request_auth, _content_type, _headers, @@ -52180,14 +52247,18 @@ def _v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if customer_id is not None: + _path_params['customerId'] = customer_id # process the query parameters + if service_id is not None: + + _query_params.append(('serviceId', service_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request is not None: - _body_params = v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request # set the HTTP header `Accept` @@ -52198,19 +52269,6 @@ def _v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_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] = [ @@ -52218,8 +52276,8 @@ def _v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranet-b2b-monitoring/peering-service/bandwidth-usage', + method='GET', + resource_path='/v1/extranet/b2b/consumers/{customerId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -52236,10 +52294,10 @@ def _v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( @validate_call - def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post( + def v1_extranet_b2b_consumers_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52252,15 +52310,15 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse: - """v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post + ) -> object: + """v1_extranet_b2b_consumers_id_delete - Get b2b extranet peering service top consumers usage stats + Delete an extranet service consumer subscription :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest + :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 @@ -52283,9 +52341,9 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_delete_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request=v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52293,7 +52351,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -52307,10 +52365,10 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post( @validate_call - def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_with_http_info( + def v1_extranet_b2b_consumers_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52323,15 +52381,15 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_with_htt _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse]: - """v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post + ) -> ApiResponse[object]: + """v1_extranet_b2b_consumers_id_delete - Get b2b extranet peering service top consumers usage stats + Delete an extranet service consumer subscription :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest + :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 @@ -52354,9 +52412,9 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_with_htt :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_delete_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request=v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52364,7 +52422,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_with_htt ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -52378,10 +52436,10 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_with_htt @validate_call - def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_without_preload_content( + def v1_extranet_b2b_consumers_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52395,14 +52453,14 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_without_ _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post + """v1_extranet_b2b_consumers_id_delete - Get b2b extranet peering service top consumers usage stats + Delete an extranet service consumer subscription :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest + :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 @@ -52425,9 +52483,9 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_without_ :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_delete_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request=v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52435,7 +52493,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_without_ ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -52444,10 +52502,10 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_without_ return response_data.response - def _v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( + def _v1_extranet_b2b_consumers_id_delete_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request, + id, _request_auth, _content_type, _headers, @@ -52469,14 +52527,14 @@ def _v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_seriali _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_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request is not None: - _body_params = v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request # set the HTTP header `Accept` @@ -52487,19 +52545,6 @@ def _v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_seriali ] ) - # 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] = [ @@ -52507,8 +52552,8 @@ def _v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_seriali ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranet-b2b-monitoring/peering-service/consumers-usage/top', + method='DELETE', + resource_path='/v1/extranet/b2b/consumers/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -52525,10 +52570,10 @@ def _v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_seriali @validate_call - def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post( + def v1_extranet_b2b_consumers_id_device_status_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52541,15 +52586,15 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse: - """v1_extranet_b2b_monitoring_peering_service_consumption_overview_post + ) -> V1ExtranetB2bConsumersIdDeviceStatusGetResponse: + """v1_extranet_b2b_consumers_id_device_status_get - Get b2b extranet peering consumption overview + Get extranet consumer device rollout status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest + :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 @@ -52572,9 +52617,9 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_device_status_get_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request=v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52582,7 +52627,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", + '200': "V1ExtranetB2bConsumersIdDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -52596,10 +52641,10 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post( @validate_call - def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_with_http_info( + def v1_extranet_b2b_consumers_id_device_status_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52612,15 +52657,15 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_with_ht _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse]: - """v1_extranet_b2b_monitoring_peering_service_consumption_overview_post + ) -> ApiResponse[V1ExtranetB2bConsumersIdDeviceStatusGetResponse]: + """v1_extranet_b2b_consumers_id_device_status_get - Get b2b extranet peering consumption overview + Get extranet consumer device rollout status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest + :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 @@ -52643,9 +52688,9 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_with_ht :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_device_status_get_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request=v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52653,7 +52698,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_with_ht ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", + '200': "V1ExtranetB2bConsumersIdDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -52667,10 +52712,10 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_with_ht @validate_call - def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_without_preload_content( + def v1_extranet_b2b_consumers_id_device_status_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52684,14 +52729,14 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_without _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_b2b_monitoring_peering_service_consumption_overview_post + """v1_extranet_b2b_consumers_id_device_status_get - Get b2b extranet peering consumption overview + Get extranet consumer device rollout status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest + :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 @@ -52714,9 +52759,9 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_without :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_device_status_get_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request=v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52724,7 +52769,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_without ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", + '200': "V1ExtranetB2bConsumersIdDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -52733,10 +52778,10 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_without return response_data.response - def _v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( + def _v1_extranet_b2b_consumers_id_device_status_get_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request, + id, _request_auth, _content_type, _headers, @@ -52758,14 +52803,14 @@ def _v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serial _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_extranet_b2b_monitoring_peering_service_consumption_overview_post_request is not None: - _body_params = v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request # set the HTTP header `Accept` @@ -52776,19 +52821,6 @@ def _v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serial ] ) - # 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] = [ @@ -52796,8 +52828,8 @@ def _v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serial ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranet-b2b-monitoring/peering-service/consumption-overview', + method='GET', + resource_path='/v1/extranet/b2b/consumers/{id}/device-status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -52814,10 +52846,11 @@ def _v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serial @validate_call - def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post( + def v1_extranet_b2b_consumers_id_prefixes_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest, + id: Annotated[StrictInt, Field(description="Consumer subscription id")], + v1_extranet_b2b_consumers_id_prefixes_put_request: V1ExtranetB2bConsumersIdPrefixesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52830,15 +52863,17 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse: - """v1_extranet_b2b_monitoring_peering_service_service_customer_list_post + ) -> V1ExtranetB2bConsumersIdPrefixesPutResponse: + """v1_extranet_b2b_consumers_id_prefixes_put - Get b2b extranet peering service customer list within a time window + Update extranet service consumer prefix NAT (peering preset) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest + :param id: Consumer subscription id (required) + :type id: int + :param v1_extranet_b2b_consumers_id_prefixes_put_request: (required) + :type v1_extranet_b2b_consumers_id_prefixes_put_request: V1ExtranetB2bConsumersIdPrefixesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -52861,9 +52896,10 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_prefixes_put_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request=v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request, + id=id, + v1_extranet_b2b_consumers_id_prefixes_put_request=v1_extranet_b2b_consumers_id_prefixes_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52871,7 +52907,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", + '200': "V1ExtranetB2bConsumersIdPrefixesPutResponse", } response_data = self.api_client.call_api( *_param, @@ -52885,10 +52921,11 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post( @validate_call - def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_with_http_info( + def v1_extranet_b2b_consumers_id_prefixes_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest, + id: Annotated[StrictInt, Field(description="Consumer subscription id")], + v1_extranet_b2b_consumers_id_prefixes_put_request: V1ExtranetB2bConsumersIdPrefixesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52901,15 +52938,17 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_with_h _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse]: - """v1_extranet_b2b_monitoring_peering_service_service_customer_list_post + ) -> ApiResponse[V1ExtranetB2bConsumersIdPrefixesPutResponse]: + """v1_extranet_b2b_consumers_id_prefixes_put - Get b2b extranet peering service customer list within a time window + Update extranet service consumer prefix NAT (peering preset) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest + :param id: Consumer subscription id (required) + :type id: int + :param v1_extranet_b2b_consumers_id_prefixes_put_request: (required) + :type v1_extranet_b2b_consumers_id_prefixes_put_request: V1ExtranetB2bConsumersIdPrefixesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -52932,9 +52971,10 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_with_h :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_prefixes_put_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request=v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request, + id=id, + v1_extranet_b2b_consumers_id_prefixes_put_request=v1_extranet_b2b_consumers_id_prefixes_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52942,7 +52982,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_with_h ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", + '200': "V1ExtranetB2bConsumersIdPrefixesPutResponse", } response_data = self.api_client.call_api( *_param, @@ -52956,10 +52996,11 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_with_h @validate_call - def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_without_preload_content( + def v1_extranet_b2b_consumers_id_prefixes_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest, + id: Annotated[StrictInt, Field(description="Consumer subscription id")], + v1_extranet_b2b_consumers_id_prefixes_put_request: V1ExtranetB2bConsumersIdPrefixesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52973,14 +53014,16 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_withou _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_b2b_monitoring_peering_service_service_customer_list_post + """v1_extranet_b2b_consumers_id_prefixes_put - Get b2b extranet peering service customer list within a time window + Update extranet service consumer prefix NAT (peering preset) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest + :param id: Consumer subscription id (required) + :type id: int + :param v1_extranet_b2b_consumers_id_prefixes_put_request: (required) + :type v1_extranet_b2b_consumers_id_prefixes_put_request: V1ExtranetB2bConsumersIdPrefixesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -53003,9 +53046,10 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_withou :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_prefixes_put_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request=v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request, + id=id, + v1_extranet_b2b_consumers_id_prefixes_put_request=v1_extranet_b2b_consumers_id_prefixes_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53013,7 +53057,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_withou ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", + '200': "V1ExtranetB2bConsumersIdPrefixesPutResponse", } response_data = self.api_client.call_api( *_param, @@ -53022,10 +53066,11 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_withou return response_data.response - def _v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( + def _v1_extranet_b2b_consumers_id_prefixes_put_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request, + id, + v1_extranet_b2b_consumers_id_prefixes_put_request, _request_auth, _content_type, _headers, @@ -53047,14 +53092,16 @@ def _v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_seria _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_extranet_b2b_monitoring_peering_service_service_customer_list_post_request is not None: - _body_params = v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request + if v1_extranet_b2b_consumers_id_prefixes_put_request is not None: + _body_params = v1_extranet_b2b_consumers_id_prefixes_put_request # set the HTTP header `Accept` @@ -53085,8 +53132,8 @@ def _v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_seria ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranet-b2b-monitoring/peering-service/service-customer-list', + method='PUT', + resource_path='/v1/extranet/b2b/consumers/{id}/prefixes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -53103,10 +53150,11 @@ def _v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_seria @validate_call - def v1_extranet_b2b_monitoring_peering_service_service_health_post( + def v1_extranet_b2b_consumers_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest, + id: Annotated[StrictInt, Field(description="Consumer subscription id")], + v1_extranet_b2b_consumers_id_put_request: V1ExtranetB2bConsumersIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53119,15 +53167,17 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse: - """v1_extranet_b2b_monitoring_peering_service_service_health_post + ) -> V1ExtranetB2bConsumersIdPutResponse: + """v1_extranet_b2b_consumers_id_put - Returns connectivity status for a b2b peering service. Provides overall service connectivity status and detailed status for producer and customer prefixes for each consumer of the serviceShows whether the service is healthy, impaired, or down, and lists any missing prefixes in Impaired state. + Update extranet service consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_service_health_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest + :param id: Consumer subscription id (required) + :type id: int + :param v1_extranet_b2b_consumers_id_put_request: (required) + :type v1_extranet_b2b_consumers_id_put_request: V1ExtranetB2bConsumersIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -53150,9 +53200,10 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_put_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_service_health_post_request=v1_extranet_b2b_monitoring_peering_service_service_health_post_request, + id=id, + v1_extranet_b2b_consumers_id_put_request=v1_extranet_b2b_consumers_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53160,7 +53211,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", + '200': "V1ExtranetB2bConsumersIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -53174,10 +53225,11 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post( @validate_call - def v1_extranet_b2b_monitoring_peering_service_service_health_post_with_http_info( + def v1_extranet_b2b_consumers_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest, + id: Annotated[StrictInt, Field(description="Consumer subscription id")], + v1_extranet_b2b_consumers_id_put_request: V1ExtranetB2bConsumersIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53190,15 +53242,17 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post_with_http_inf _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse]: - """v1_extranet_b2b_monitoring_peering_service_service_health_post + ) -> ApiResponse[V1ExtranetB2bConsumersIdPutResponse]: + """v1_extranet_b2b_consumers_id_put - Returns connectivity status for a b2b peering service. Provides overall service connectivity status and detailed status for producer and customer prefixes for each consumer of the serviceShows whether the service is healthy, impaired, or down, and lists any missing prefixes in Impaired state. + Update extranet service consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_service_health_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest + :param id: Consumer subscription id (required) + :type id: int + :param v1_extranet_b2b_consumers_id_put_request: (required) + :type v1_extranet_b2b_consumers_id_put_request: V1ExtranetB2bConsumersIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -53221,9 +53275,10 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post_with_http_inf :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_put_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_service_health_post_request=v1_extranet_b2b_monitoring_peering_service_service_health_post_request, + id=id, + v1_extranet_b2b_consumers_id_put_request=v1_extranet_b2b_consumers_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53231,7 +53286,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post_with_http_inf ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", + '200': "V1ExtranetB2bConsumersIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -53245,10 +53300,11 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post_with_http_inf @validate_call - def v1_extranet_b2b_monitoring_peering_service_service_health_post_without_preload_content( + def v1_extranet_b2b_consumers_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest, + id: Annotated[StrictInt, Field(description="Consumer subscription id")], + v1_extranet_b2b_consumers_id_put_request: V1ExtranetB2bConsumersIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53262,14 +53318,16 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post_without_prelo _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_b2b_monitoring_peering_service_service_health_post + """v1_extranet_b2b_consumers_id_put - Returns connectivity status for a b2b peering service. Provides overall service connectivity status and detailed status for producer and customer prefixes for each consumer of the serviceShows whether the service is healthy, impaired, or down, and lists any missing prefixes in Impaired state. + Update extranet service consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_service_health_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest + :param id: Consumer subscription id (required) + :type id: int + :param v1_extranet_b2b_consumers_id_put_request: (required) + :type v1_extranet_b2b_consumers_id_put_request: V1ExtranetB2bConsumersIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -53292,9 +53350,10 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post_without_prelo :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( + _param = self._v1_extranet_b2b_consumers_id_put_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_service_health_post_request=v1_extranet_b2b_monitoring_peering_service_service_health_post_request, + id=id, + v1_extranet_b2b_consumers_id_put_request=v1_extranet_b2b_consumers_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53302,7 +53361,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post_without_prelo ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", + '200': "V1ExtranetB2bConsumersIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -53311,10 +53370,11 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post_without_prelo return response_data.response - def _v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( + def _v1_extranet_b2b_consumers_id_put_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_service_health_post_request, + id, + v1_extranet_b2b_consumers_id_put_request, _request_auth, _content_type, _headers, @@ -53336,14 +53396,16 @@ def _v1_extranet_b2b_monitoring_peering_service_service_health_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_extranet_b2b_monitoring_peering_service_service_health_post_request is not None: - _body_params = v1_extranet_b2b_monitoring_peering_service_service_health_post_request + if v1_extranet_b2b_consumers_id_put_request is not None: + _body_params = v1_extranet_b2b_consumers_id_put_request # set the HTTP header `Accept` @@ -53374,8 +53436,8 @@ def _v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranet-b2b-monitoring/peering-service/service-health', + method='PUT', + resource_path='/v1/extranet/b2b/consumers/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -53392,10 +53454,10 @@ def _v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( @validate_call - def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post( + def v1_extranet_b2b_customers_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53408,15 +53470,15 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse: - """v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post + ) -> V1ExtranetB2bCustomersIdDeleteResponse: + """v1_extranet_b2b_customers_id_delete - Get b2b extranet peering service overtime consumption + Delete an extranet service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest + :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 @@ -53439,9 +53501,9 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( + _param = self._v1_extranet_b2b_customers_id_delete_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request=v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53449,7 +53511,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", + '200': "V1ExtranetB2bCustomersIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -53463,10 +53525,10 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post @validate_call - def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_with_http_info( + def v1_extranet_b2b_customers_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53479,15 +53541,15 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse]: - """v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post + ) -> ApiResponse[V1ExtranetB2bCustomersIdDeleteResponse]: + """v1_extranet_b2b_customers_id_delete - Get b2b extranet peering service overtime consumption + Delete an extranet service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest + :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 @@ -53510,9 +53572,9 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( + _param = self._v1_extranet_b2b_customers_id_delete_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request=v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53520,7 +53582,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", + '200': "V1ExtranetB2bCustomersIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -53534,10 +53596,10 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post @validate_call - def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_without_preload_content( + def v1_extranet_b2b_customers_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53551,14 +53613,14 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post + """v1_extranet_b2b_customers_id_delete - Get b2b extranet peering service overtime consumption + Delete an extranet service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: (required) - :type v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest + :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 @@ -53581,9 +53643,9 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( + _param = self._v1_extranet_b2b_customers_id_delete_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request=v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53591,7 +53653,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", + '200': "V1ExtranetB2bCustomersIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -53600,10 +53662,10 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post return response_data.response - def _v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( + def _v1_extranet_b2b_customers_id_delete_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request, + id, _request_auth, _content_type, _headers, @@ -53625,14 +53687,14 @@ def _v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_pos _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_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request is not None: - _body_params = v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request # set the HTTP header `Accept` @@ -53643,19 +53705,6 @@ def _v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_pos ] ) - # 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] = [ @@ -53663,8 +53712,8 @@ def _v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_pos ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranet-b2b-monitoring/peering-service/service-overtime-consumption', + method='DELETE', + resource_path='/v1/extranet/b2b/customers/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -53681,10 +53730,10 @@ def _v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_pos @validate_call - def v1_extranet_public_vif_check_post( + def v1_extranet_b2b_customers_id_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53697,15 +53746,15 @@ def v1_extranet_public_vif_check_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetPublicVifCheckPostResponse: - """v1_extranet_public_vif_check_post + ) -> V1ExtranetB2bCustomersIdDetailsGetResponse: + """v1_extranet_b2b_customers_id_details_get - Check Public Vif service + Get an extranet service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_public_vif_check_post_request: (required) - :type v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest + :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 @@ -53728,9 +53777,9 @@ def v1_extranet_public_vif_check_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_check_post_serialize( + _param = self._v1_extranet_b2b_customers_id_details_get_serialize( authorization=authorization, - v1_extranet_public_vif_check_post_request=v1_extranet_public_vif_check_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53738,7 +53787,7 @@ def v1_extranet_public_vif_check_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifCheckPostResponse", + '200': "V1ExtranetB2bCustomersIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -53752,10 +53801,10 @@ def v1_extranet_public_vif_check_post( @validate_call - def v1_extranet_public_vif_check_post_with_http_info( + def v1_extranet_b2b_customers_id_details_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53768,15 +53817,15 @@ def v1_extranet_public_vif_check_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[V1ExtranetPublicVifCheckPostResponse]: - """v1_extranet_public_vif_check_post + ) -> ApiResponse[V1ExtranetB2bCustomersIdDetailsGetResponse]: + """v1_extranet_b2b_customers_id_details_get - Check Public Vif service + Get an extranet service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_public_vif_check_post_request: (required) - :type v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest + :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 @@ -53799,9 +53848,9 @@ def v1_extranet_public_vif_check_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_check_post_serialize( + _param = self._v1_extranet_b2b_customers_id_details_get_serialize( authorization=authorization, - v1_extranet_public_vif_check_post_request=v1_extranet_public_vif_check_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53809,7 +53858,7 @@ def v1_extranet_public_vif_check_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifCheckPostResponse", + '200': "V1ExtranetB2bCustomersIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -53823,10 +53872,10 @@ def v1_extranet_public_vif_check_post_with_http_info( @validate_call - def v1_extranet_public_vif_check_post_without_preload_content( + def v1_extranet_b2b_customers_id_details_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53840,14 +53889,14 @@ def v1_extranet_public_vif_check_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_public_vif_check_post + """v1_extranet_b2b_customers_id_details_get - Check Public Vif service + Get an extranet service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_public_vif_check_post_request: (required) - :type v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest + :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 @@ -53870,9 +53919,9 @@ def v1_extranet_public_vif_check_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_check_post_serialize( + _param = self._v1_extranet_b2b_customers_id_details_get_serialize( authorization=authorization, - v1_extranet_public_vif_check_post_request=v1_extranet_public_vif_check_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53880,7 +53929,7 @@ def v1_extranet_public_vif_check_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifCheckPostResponse", + '200': "V1ExtranetB2bCustomersIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -53889,10 +53938,10 @@ def v1_extranet_public_vif_check_post_without_preload_content( return response_data.response - def _v1_extranet_public_vif_check_post_serialize( + def _v1_extranet_b2b_customers_id_details_get_serialize( self, authorization, - v1_extranet_public_vif_check_post_request, + id, _request_auth, _content_type, _headers, @@ -53914,14 +53963,14 @@ def _v1_extranet_public_vif_check_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_extranet_public_vif_check_post_request is not None: - _body_params = v1_extranet_public_vif_check_post_request # set the HTTP header `Accept` @@ -53932,19 +53981,6 @@ def _v1_extranet_public_vif_check_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] = [ @@ -53952,8 +53988,8 @@ def _v1_extranet_public_vif_check_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranet-public-vif/check', + method='GET', + resource_path='/v1/extranet/b2b/customers/{id}/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -53970,9 +54006,10 @@ def _v1_extranet_public_vif_check_post_serialize( @validate_call - def v1_extranet_public_vif_get( + def v1_extranet_b2b_customers_id_matches_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Customer id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53985,13 +54022,15 @@ def v1_extranet_public_vif_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetPublicVifGetResponse: - """v1_extranet_public_vif_get + ) -> V1ExtranetB2bCustomersIdMatchesSummaryGetResponse: + """v1_extranet_b2b_customers_id_matches_summary_get - Get Public Vif summary + Get matched services summary for a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: Customer 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 @@ -54014,8 +54053,9 @@ def v1_extranet_public_vif_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_get_serialize( + _param = self._v1_extranet_b2b_customers_id_matches_summary_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -54023,7 +54063,7 @@ def v1_extranet_public_vif_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifGetResponse", + '200': "V1ExtranetB2bCustomersIdMatchesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -54037,9 +54077,10 @@ def v1_extranet_public_vif_get( @validate_call - def v1_extranet_public_vif_get_with_http_info( + def v1_extranet_b2b_customers_id_matches_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Customer id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -54052,13 +54093,15 @@ def v1_extranet_public_vif_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[V1ExtranetPublicVifGetResponse]: - """v1_extranet_public_vif_get + ) -> ApiResponse[V1ExtranetB2bCustomersIdMatchesSummaryGetResponse]: + """v1_extranet_b2b_customers_id_matches_summary_get - Get Public Vif summary + Get matched services summary for a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: Customer 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 @@ -54081,8 +54124,9 @@ def v1_extranet_public_vif_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_get_serialize( + _param = self._v1_extranet_b2b_customers_id_matches_summary_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -54090,7 +54134,7 @@ def v1_extranet_public_vif_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifGetResponse", + '200': "V1ExtranetB2bCustomersIdMatchesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -54104,9 +54148,10 @@ def v1_extranet_public_vif_get_with_http_info( @validate_call - def v1_extranet_public_vif_get_without_preload_content( + def v1_extranet_b2b_customers_id_matches_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Customer id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -54120,141 +54165,13 @@ def v1_extranet_public_vif_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_public_vif_get - - Get Public Vif summary - - :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_extranet_public_vif_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': "V1ExtranetPublicVifGetResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _v1_extranet_public_vif_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/extranet-public-vif', - 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_extranet_public_vif_id_delete( - self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - 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, - ) -> object: - """v1_extranet_public_vif_id_delete + """v1_extranet_b2b_customers_id_matches_summary_get - Delete Public Vif service + Get matched services summary for a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) + :param id: Customer id (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -54278,7 +54195,7 @@ def v1_extranet_public_vif_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_id_delete_serialize( + _param = self._v1_extranet_b2b_customers_id_matches_summary_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -54288,149 +54205,7 @@ def v1_extranet_public_vif_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "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_extranet_public_vif_id_delete_with_http_info( - self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - 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[object]: - """v1_extranet_public_vif_id_delete - - Delete Public Vif service - - :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 - (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_extranet_public_vif_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]] = { - '200': "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_extranet_public_vif_id_delete_without_preload_content( - self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - 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_extranet_public_vif_id_delete - - Delete Public Vif service - - :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 - (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_extranet_public_vif_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]] = { - '200': "object", + '200': "V1ExtranetB2bCustomersIdMatchesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -54439,7 +54214,7 @@ def v1_extranet_public_vif_id_delete_without_preload_content( return response_data.response - def _v1_extranet_public_vif_id_delete_serialize( + def _v1_extranet_b2b_customers_id_matches_summary_get_serialize( self, authorization, id, @@ -54489,8 +54264,8 @@ def _v1_extranet_public_vif_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/extranet-public-vif/{id}', + method='GET', + resource_path='/v1/extranet/b2b/customers/{id}/matches/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -54507,10 +54282,11 @@ def _v1_extranet_public_vif_id_delete_serialize( @validate_call - def v1_extranet_public_vif_id_get( + def v1_extranet_b2b_customers_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Public VIF producer policy")], + id: StrictInt, + v1_extranet_b2b_customers_id_put_request: V1ExtranetB2bCustomersIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -54523,15 +54299,17 @@ def v1_extranet_public_vif_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetPublicVifIdGetResponse: - """v1_extranet_public_vif_id_get + ) -> V1ExtranetB2bCustomersIdPutResponse: + """v1_extranet_b2b_customers_id_put - Get Public Vif service + Update an extranet service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Public VIF producer policy (required) + :param id: (required) :type id: int + :param v1_extranet_b2b_customers_id_put_request: (required) + :type v1_extranet_b2b_customers_id_put_request: V1ExtranetB2bCustomersIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -54554,9 +54332,10 @@ def v1_extranet_public_vif_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_id_get_serialize( + _param = self._v1_extranet_b2b_customers_id_put_serialize( authorization=authorization, id=id, + v1_extranet_b2b_customers_id_put_request=v1_extranet_b2b_customers_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -54564,7 +54343,7 @@ def v1_extranet_public_vif_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifIdGetResponse", + '200': "V1ExtranetB2bCustomersIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -54578,10 +54357,11 @@ def v1_extranet_public_vif_id_get( @validate_call - def v1_extranet_public_vif_id_get_with_http_info( + def v1_extranet_b2b_customers_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Public VIF producer policy")], + id: StrictInt, + v1_extranet_b2b_customers_id_put_request: V1ExtranetB2bCustomersIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -54594,15 +54374,17 @@ def v1_extranet_public_vif_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[V1ExtranetPublicVifIdGetResponse]: - """v1_extranet_public_vif_id_get + ) -> ApiResponse[V1ExtranetB2bCustomersIdPutResponse]: + """v1_extranet_b2b_customers_id_put - Get Public Vif service + Update an extranet service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Public VIF producer policy (required) + :param id: (required) :type id: int + :param v1_extranet_b2b_customers_id_put_request: (required) + :type v1_extranet_b2b_customers_id_put_request: V1ExtranetB2bCustomersIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -54625,9 +54407,10 @@ def v1_extranet_public_vif_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_id_get_serialize( + _param = self._v1_extranet_b2b_customers_id_put_serialize( authorization=authorization, id=id, + v1_extranet_b2b_customers_id_put_request=v1_extranet_b2b_customers_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -54635,7 +54418,7 @@ def v1_extranet_public_vif_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifIdGetResponse", + '200': "V1ExtranetB2bCustomersIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -54649,10 +54432,11 @@ def v1_extranet_public_vif_id_get_with_http_info( @validate_call - def v1_extranet_public_vif_id_get_without_preload_content( + def v1_extranet_b2b_customers_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Public VIF producer policy")], + id: StrictInt, + v1_extranet_b2b_customers_id_put_request: V1ExtranetB2bCustomersIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -54666,14 +54450,16 @@ def v1_extranet_public_vif_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_public_vif_id_get + """v1_extranet_b2b_customers_id_put - Get Public Vif service + Update an extranet service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Public VIF producer policy (required) + :param id: (required) :type id: int + :param v1_extranet_b2b_customers_id_put_request: (required) + :type v1_extranet_b2b_customers_id_put_request: V1ExtranetB2bCustomersIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -54696,9 +54482,10 @@ def v1_extranet_public_vif_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_id_get_serialize( + _param = self._v1_extranet_b2b_customers_id_put_serialize( authorization=authorization, id=id, + v1_extranet_b2b_customers_id_put_request=v1_extranet_b2b_customers_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -54706,7 +54493,7 @@ def v1_extranet_public_vif_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifIdGetResponse", + '200': "V1ExtranetB2bCustomersIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -54715,10 +54502,11 @@ def v1_extranet_public_vif_id_get_without_preload_content( return response_data.response - def _v1_extranet_public_vif_id_get_serialize( + def _v1_extranet_b2b_customers_id_put_serialize( self, authorization, id, + v1_extranet_b2b_customers_id_put_request, _request_auth, _content_type, _headers, @@ -54748,6 +54536,8 @@ def _v1_extranet_public_vif_id_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_extranet_b2b_customers_id_put_request is not None: + _body_params = v1_extranet_b2b_customers_id_put_request # set the HTTP header `Accept` @@ -54758,6 +54548,19 @@ def _v1_extranet_public_vif_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] = [ @@ -54765,8 +54568,8 @@ def _v1_extranet_public_vif_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranet-public-vif/{id}', + method='PUT', + resource_path='/v1/extranet/b2b/customers/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -54783,11 +54586,11 @@ def _v1_extranet_public_vif_id_get_serialize( @validate_call - def v1_extranet_public_vif_id_put( + def v1_extranet_b2b_customers_id_retry_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Public VIF producer service id")], - v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest, + id: StrictInt, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -54800,17 +54603,17 @@ def v1_extranet_public_vif_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetPublicVifIdPutResponse: - """v1_extranet_public_vif_id_put + ) -> object: + """v1_extranet_b2b_customers_id_retry_post - Update Public Vif service + Retry extranet service customer invite :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Public VIF producer service id (required) + :param id: (required) :type id: int - :param v1_extranet_public_vif_id_put_request: (required) - :type v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest + :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 @@ -54833,10 +54636,10 @@ def v1_extranet_public_vif_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_id_put_serialize( + _param = self._v1_extranet_b2b_customers_id_retry_post_serialize( authorization=authorization, id=id, - v1_extranet_public_vif_id_put_request=v1_extranet_public_vif_id_put_request, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -54844,7 +54647,7 @@ def v1_extranet_public_vif_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifIdPutResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -54858,11 +54661,11 @@ def v1_extranet_public_vif_id_put( @validate_call - def v1_extranet_public_vif_id_put_with_http_info( + def v1_extranet_b2b_customers_id_retry_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Public VIF producer service id")], - v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest, + id: StrictInt, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -54875,17 +54678,17 @@ def v1_extranet_public_vif_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[V1ExtranetPublicVifIdPutResponse]: - """v1_extranet_public_vif_id_put + ) -> ApiResponse[object]: + """v1_extranet_b2b_customers_id_retry_post - Update Public Vif service + Retry extranet service customer invite :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Public VIF producer service id (required) + :param id: (required) :type id: int - :param v1_extranet_public_vif_id_put_request: (required) - :type v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest + :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 @@ -54908,10 +54711,10 @@ def v1_extranet_public_vif_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_id_put_serialize( + _param = self._v1_extranet_b2b_customers_id_retry_post_serialize( authorization=authorization, id=id, - v1_extranet_public_vif_id_put_request=v1_extranet_public_vif_id_put_request, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -54919,7 +54722,7 @@ def v1_extranet_public_vif_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifIdPutResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -54933,11 +54736,11 @@ def v1_extranet_public_vif_id_put_with_http_info( @validate_call - def v1_extranet_public_vif_id_put_without_preload_content( + def v1_extranet_b2b_customers_id_retry_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Public VIF producer service id")], - v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest, + id: StrictInt, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -54951,16 +54754,16 @@ def v1_extranet_public_vif_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_public_vif_id_put + """v1_extranet_b2b_customers_id_retry_post - Update Public Vif service + Retry extranet service customer invite :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Public VIF producer service id (required) + :param id: (required) :type id: int - :param v1_extranet_public_vif_id_put_request: (required) - :type v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest + :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 @@ -54983,10 +54786,10 @@ def v1_extranet_public_vif_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_id_put_serialize( + _param = self._v1_extranet_b2b_customers_id_retry_post_serialize( authorization=authorization, id=id, - v1_extranet_public_vif_id_put_request=v1_extranet_public_vif_id_put_request, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -54994,7 +54797,7 @@ def v1_extranet_public_vif_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifIdPutResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -55003,11 +54806,11 @@ def v1_extranet_public_vif_id_put_without_preload_content( return response_data.response - def _v1_extranet_public_vif_id_put_serialize( + def _v1_extranet_b2b_customers_id_retry_post_serialize( self, authorization, id, - v1_extranet_public_vif_id_put_request, + body, _request_auth, _content_type, _headers, @@ -55037,8 +54840,8 @@ def _v1_extranet_public_vif_id_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_extranet_public_vif_id_put_request is not None: - _body_params = v1_extranet_public_vif_id_put_request + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -55069,8 +54872,8 @@ def _v1_extranet_public_vif_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/extranet-public-vif/{id}', + method='POST', + resource_path='/v1/extranet/b2b/customers/{id}/retry', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -55087,10 +54890,10 @@ def _v1_extranet_public_vif_id_put_serialize( @validate_call - def v1_extranet_public_vif_post( + def v1_extranet_b2b_customers_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest, + v1_extranet_b2b_customers_post_request: V1ExtranetB2bCustomersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -55103,15 +54906,15 @@ def v1_extranet_public_vif_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetPublicVifPostResponse: - """v1_extranet_public_vif_post + ) -> V1ExtranetB2bCustomersPostResponse: + """v1_extranet_b2b_customers_post - Create Public Vif service + Create an extranet service customer (partner directory entry) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_public_vif_post_request: (required) - :type v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest + :param v1_extranet_b2b_customers_post_request: (required) + :type v1_extranet_b2b_customers_post_request: V1ExtranetB2bCustomersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -55134,9 +54937,9 @@ def v1_extranet_public_vif_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_post_serialize( + _param = self._v1_extranet_b2b_customers_post_serialize( authorization=authorization, - v1_extranet_public_vif_post_request=v1_extranet_public_vif_post_request, + v1_extranet_b2b_customers_post_request=v1_extranet_b2b_customers_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -55144,7 +54947,7 @@ def v1_extranet_public_vif_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifPostResponse", + '200': "V1ExtranetB2bCustomersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -55158,10 +54961,10 @@ def v1_extranet_public_vif_post( @validate_call - def v1_extranet_public_vif_post_with_http_info( + def v1_extranet_b2b_customers_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest, + v1_extranet_b2b_customers_post_request: V1ExtranetB2bCustomersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -55174,15 +54977,15 @@ def v1_extranet_public_vif_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[V1ExtranetPublicVifPostResponse]: - """v1_extranet_public_vif_post + ) -> ApiResponse[V1ExtranetB2bCustomersPostResponse]: + """v1_extranet_b2b_customers_post - Create Public Vif service + Create an extranet service customer (partner directory entry) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_public_vif_post_request: (required) - :type v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest + :param v1_extranet_b2b_customers_post_request: (required) + :type v1_extranet_b2b_customers_post_request: V1ExtranetB2bCustomersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -55205,9 +55008,9 @@ def v1_extranet_public_vif_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_post_serialize( + _param = self._v1_extranet_b2b_customers_post_serialize( authorization=authorization, - v1_extranet_public_vif_post_request=v1_extranet_public_vif_post_request, + v1_extranet_b2b_customers_post_request=v1_extranet_b2b_customers_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -55215,7 +55018,7 @@ def v1_extranet_public_vif_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifPostResponse", + '200': "V1ExtranetB2bCustomersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -55229,10 +55032,10 @@ def v1_extranet_public_vif_post_with_http_info( @validate_call - def v1_extranet_public_vif_post_without_preload_content( + def v1_extranet_b2b_customers_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest, + v1_extranet_b2b_customers_post_request: V1ExtranetB2bCustomersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -55246,14 +55049,14 @@ def v1_extranet_public_vif_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_public_vif_post + """v1_extranet_b2b_customers_post - Create Public Vif service + Create an extranet service customer (partner directory entry) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_public_vif_post_request: (required) - :type v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest + :param v1_extranet_b2b_customers_post_request: (required) + :type v1_extranet_b2b_customers_post_request: V1ExtranetB2bCustomersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -55276,9 +55079,9 @@ def v1_extranet_public_vif_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_public_vif_post_serialize( + _param = self._v1_extranet_b2b_customers_post_serialize( authorization=authorization, - v1_extranet_public_vif_post_request=v1_extranet_public_vif_post_request, + v1_extranet_b2b_customers_post_request=v1_extranet_b2b_customers_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -55286,7 +55089,7 @@ def v1_extranet_public_vif_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetPublicVifPostResponse", + '200': "V1ExtranetB2bCustomersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -55295,10 +55098,10 @@ def v1_extranet_public_vif_post_without_preload_content( return response_data.response - def _v1_extranet_public_vif_post_serialize( + def _v1_extranet_b2b_customers_post_serialize( self, authorization, - v1_extranet_public_vif_post_request, + v1_extranet_b2b_customers_post_request, _request_auth, _content_type, _headers, @@ -55326,8 +55129,8 @@ def _v1_extranet_public_vif_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_extranet_public_vif_post_request is not None: - _body_params = v1_extranet_public_vif_post_request + if v1_extranet_b2b_customers_post_request is not None: + _body_params = v1_extranet_b2b_customers_post_request # set the HTTP header `Accept` @@ -55359,7 +55162,7 @@ def _v1_extranet_public_vif_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/extranet-public-vif', + resource_path='/v1/extranet/b2b/customers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -55376,10 +55179,9 @@ def _v1_extranet_public_vif_post_serialize( @validate_call - def v1_extranet_sites_usage_top_post( + def v1_extranet_b2b_customers_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -55392,15 +55194,13 @@ def v1_extranet_sites_usage_top_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetSitesUsageTopPostResponse: - """v1_extranet_sites_usage_top_post + ) -> V1ExtranetB2bCustomersSummaryGetResponse: + """v1_extranet_b2b_customers_summary_get - Get extranet service top sites usage stats + List extranet service customers for the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_sites_usage_top_post_request: (required) - :type v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -55423,9 +55223,8 @@ def v1_extranet_sites_usage_top_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_sites_usage_top_post_serialize( + _param = self._v1_extranet_b2b_customers_summary_get_serialize( authorization=authorization, - v1_extranet_sites_usage_top_post_request=v1_extranet_sites_usage_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -55433,7 +55232,7 @@ def v1_extranet_sites_usage_top_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetSitesUsageTopPostResponse", + '200': "V1ExtranetB2bCustomersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -55447,10 +55246,9 @@ def v1_extranet_sites_usage_top_post( @validate_call - def v1_extranet_sites_usage_top_post_with_http_info( + def v1_extranet_b2b_customers_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -55463,15 +55261,13 @@ def v1_extranet_sites_usage_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[V1ExtranetSitesUsageTopPostResponse]: - """v1_extranet_sites_usage_top_post + ) -> ApiResponse[V1ExtranetB2bCustomersSummaryGetResponse]: + """v1_extranet_b2b_customers_summary_get - Get extranet service top sites usage stats + List extranet service customers for the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_sites_usage_top_post_request: (required) - :type v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -55494,9 +55290,8 @@ def v1_extranet_sites_usage_top_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_sites_usage_top_post_serialize( + _param = self._v1_extranet_b2b_customers_summary_get_serialize( authorization=authorization, - v1_extranet_sites_usage_top_post_request=v1_extranet_sites_usage_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -55504,7 +55299,7 @@ def v1_extranet_sites_usage_top_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetSitesUsageTopPostResponse", + '200': "V1ExtranetB2bCustomersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -55518,10 +55313,9 @@ def v1_extranet_sites_usage_top_post_with_http_info( @validate_call - def v1_extranet_sites_usage_top_post_without_preload_content( + def v1_extranet_b2b_customers_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -55535,14 +55329,12 @@ def v1_extranet_sites_usage_top_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranet_sites_usage_top_post + """v1_extranet_b2b_customers_summary_get - Get extranet service top sites usage stats + List extranet service customers for the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranet_sites_usage_top_post_request: (required) - :type v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -55565,9 +55357,8 @@ def v1_extranet_sites_usage_top_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranet_sites_usage_top_post_serialize( + _param = self._v1_extranet_b2b_customers_summary_get_serialize( authorization=authorization, - v1_extranet_sites_usage_top_post_request=v1_extranet_sites_usage_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -55575,7 +55366,7 @@ def v1_extranet_sites_usage_top_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetSitesUsageTopPostResponse", + '200': "V1ExtranetB2bCustomersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -55584,10 +55375,9 @@ def v1_extranet_sites_usage_top_post_without_preload_content( return response_data.response - def _v1_extranet_sites_usage_top_post_serialize( + def _v1_extranet_b2b_customers_summary_get_serialize( self, authorization, - v1_extranet_sites_usage_top_post_request, _request_auth, _content_type, _headers, @@ -55615,8 +55405,6 @@ def _v1_extranet_sites_usage_top_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_extranet_sites_usage_top_post_request is not None: - _body_params = v1_extranet_sites_usage_top_post_request # set the HTTP header `Accept` @@ -55627,19 +55415,6 @@ def _v1_extranet_sites_usage_top_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] = [ @@ -55647,8 +55422,8 @@ def _v1_extranet_sites_usage_top_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranet/sites-usage/top', + method='GET', + resource_path='/v1/extranet/b2b/customers/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -55665,10 +55440,10 @@ def _v1_extranet_sites_usage_top_post_serialize( @validate_call - def v1_extranets_b2b_consumer_device_status_id_get( + def v1_extranet_b2b_matches_customers_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_extranet_b2b_matches_customers_post_request: V1ExtranetB2bMatchesCustomersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -55681,15 +55456,15 @@ def v1_extranets_b2b_consumer_device_status_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bConsumerDeviceStatusIdGetResponse: - """v1_extranets_b2b_consumer_device_status_id_get + ) -> V1ExtranetB2bMatchesCustomersPostResponse: + """v1_extranet_b2b_matches_customers_post - Get B2B extranet consumer status + Bulk subscribe customers to an extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_extranet_b2b_matches_customers_post_request: (required) + :type v1_extranet_b2b_matches_customers_post_request: V1ExtranetB2bMatchesCustomersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -55712,9 +55487,9 @@ def v1_extranets_b2b_consumer_device_status_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_device_status_id_get_serialize( + _param = self._v1_extranet_b2b_matches_customers_post_serialize( authorization=authorization, - id=id, + v1_extranet_b2b_matches_customers_post_request=v1_extranet_b2b_matches_customers_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -55722,7 +55497,7 @@ def v1_extranets_b2b_consumer_device_status_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerDeviceStatusIdGetResponse", + '200': "V1ExtranetB2bMatchesCustomersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -55736,10 +55511,10 @@ def v1_extranets_b2b_consumer_device_status_id_get( @validate_call - def v1_extranets_b2b_consumer_device_status_id_get_with_http_info( + def v1_extranet_b2b_matches_customers_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_extranet_b2b_matches_customers_post_request: V1ExtranetB2bMatchesCustomersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -55752,15 +55527,15 @@ def v1_extranets_b2b_consumer_device_status_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[V1ExtranetsB2bConsumerDeviceStatusIdGetResponse]: - """v1_extranets_b2b_consumer_device_status_id_get + ) -> ApiResponse[V1ExtranetB2bMatchesCustomersPostResponse]: + """v1_extranet_b2b_matches_customers_post - Get B2B extranet consumer status + Bulk subscribe customers to an extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_extranet_b2b_matches_customers_post_request: (required) + :type v1_extranet_b2b_matches_customers_post_request: V1ExtranetB2bMatchesCustomersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -55783,9 +55558,9 @@ def v1_extranets_b2b_consumer_device_status_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_device_status_id_get_serialize( + _param = self._v1_extranet_b2b_matches_customers_post_serialize( authorization=authorization, - id=id, + v1_extranet_b2b_matches_customers_post_request=v1_extranet_b2b_matches_customers_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -55793,7 +55568,7 @@ def v1_extranets_b2b_consumer_device_status_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerDeviceStatusIdGetResponse", + '200': "V1ExtranetB2bMatchesCustomersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -55807,10 +55582,10 @@ def v1_extranets_b2b_consumer_device_status_id_get_with_http_info( @validate_call - def v1_extranets_b2b_consumer_device_status_id_get_without_preload_content( + def v1_extranet_b2b_matches_customers_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_extranet_b2b_matches_customers_post_request: V1ExtranetB2bMatchesCustomersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -55824,14 +55599,14 @@ def v1_extranets_b2b_consumer_device_status_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_consumer_device_status_id_get + """v1_extranet_b2b_matches_customers_post - Get B2B extranet consumer status + Bulk subscribe customers to an extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_extranet_b2b_matches_customers_post_request: (required) + :type v1_extranet_b2b_matches_customers_post_request: V1ExtranetB2bMatchesCustomersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -55854,9 +55629,9 @@ def v1_extranets_b2b_consumer_device_status_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_device_status_id_get_serialize( + _param = self._v1_extranet_b2b_matches_customers_post_serialize( authorization=authorization, - id=id, + v1_extranet_b2b_matches_customers_post_request=v1_extranet_b2b_matches_customers_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -55864,7 +55639,7 @@ def v1_extranets_b2b_consumer_device_status_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerDeviceStatusIdGetResponse", + '200': "V1ExtranetB2bMatchesCustomersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -55873,10 +55648,10 @@ def v1_extranets_b2b_consumer_device_status_id_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_consumer_device_status_id_get_serialize( + def _v1_extranet_b2b_matches_customers_post_serialize( self, authorization, - id, + v1_extranet_b2b_matches_customers_post_request, _request_auth, _content_type, _headers, @@ -55898,14 +55673,14 @@ def _v1_extranets_b2b_consumer_device_status_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_extranet_b2b_matches_customers_post_request is not None: + _body_params = v1_extranet_b2b_matches_customers_post_request # set the HTTP header `Accept` @@ -55916,6 +55691,19 @@ def _v1_extranets_b2b_consumer_device_status_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] = [ @@ -55923,8 +55711,8 @@ def _v1_extranets_b2b_consumer_device_status_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b/consumer-device-status/{id}', + method='POST', + resource_path='/v1/extranet/b2b/matches/customers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -55941,10 +55729,11 @@ def _v1_extranets_b2b_consumer_device_status_id_get_serialize( @validate_call - def v1_extranets_b2b_consumer_id_delete( + def v1_extranet_b2b_matches_match_id_consumer_check_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], + v1_extranet_b2b_matches_match_id_consumer_check_post_request: V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -55957,15 +55746,17 @@ def v1_extranets_b2b_consumer_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_extranets_b2b_consumer_id_delete + ) -> V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse: + """v1_extranet_b2b_matches_match_id_consumer_check_post - Delete a B2B extranet consumer + Check extranet service consumer configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_consumer_check_post_request: (required) + :type v1_extranet_b2b_matches_match_id_consumer_check_post_request: V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -55988,9 +55779,10 @@ def v1_extranets_b2b_consumer_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_id_delete_serialize( + _param = self._v1_extranet_b2b_matches_match_id_consumer_check_post_serialize( authorization=authorization, - id=id, + match_id=match_id, + v1_extranet_b2b_matches_match_id_consumer_check_post_request=v1_extranet_b2b_matches_match_id_consumer_check_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -55998,7 +55790,7 @@ def v1_extranets_b2b_consumer_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse", } response_data = self.api_client.call_api( *_param, @@ -56012,10 +55804,11 @@ def v1_extranets_b2b_consumer_id_delete( @validate_call - def v1_extranets_b2b_consumer_id_delete_with_http_info( + def v1_extranet_b2b_matches_match_id_consumer_check_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], + v1_extranet_b2b_matches_match_id_consumer_check_post_request: V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -56028,15 +55821,17 @@ def v1_extranets_b2b_consumer_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[object]: - """v1_extranets_b2b_consumer_id_delete + ) -> ApiResponse[V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse]: + """v1_extranet_b2b_matches_match_id_consumer_check_post - Delete a B2B extranet consumer + Check extranet service consumer configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_consumer_check_post_request: (required) + :type v1_extranet_b2b_matches_match_id_consumer_check_post_request: V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -56059,9 +55854,10 @@ def v1_extranets_b2b_consumer_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_id_delete_serialize( + _param = self._v1_extranet_b2b_matches_match_id_consumer_check_post_serialize( authorization=authorization, - id=id, + match_id=match_id, + v1_extranet_b2b_matches_match_id_consumer_check_post_request=v1_extranet_b2b_matches_match_id_consumer_check_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -56069,7 +55865,7 @@ def v1_extranets_b2b_consumer_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse", } response_data = self.api_client.call_api( *_param, @@ -56083,10 +55879,11 @@ def v1_extranets_b2b_consumer_id_delete_with_http_info( @validate_call - def v1_extranets_b2b_consumer_id_delete_without_preload_content( + def v1_extranet_b2b_matches_match_id_consumer_check_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], + v1_extranet_b2b_matches_match_id_consumer_check_post_request: V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -56100,14 +55897,16 @@ def v1_extranets_b2b_consumer_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_consumer_id_delete + """v1_extranet_b2b_matches_match_id_consumer_check_post - Delete a B2B extranet consumer + Check extranet service consumer configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_consumer_check_post_request: (required) + :type v1_extranet_b2b_matches_match_id_consumer_check_post_request: V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -56130,9 +55929,10 @@ def v1_extranets_b2b_consumer_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_id_delete_serialize( + _param = self._v1_extranet_b2b_matches_match_id_consumer_check_post_serialize( authorization=authorization, - id=id, + match_id=match_id, + v1_extranet_b2b_matches_match_id_consumer_check_post_request=v1_extranet_b2b_matches_match_id_consumer_check_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -56140,7 +55940,7 @@ def v1_extranets_b2b_consumer_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse", } response_data = self.api_client.call_api( *_param, @@ -56149,10 +55949,11 @@ def v1_extranets_b2b_consumer_id_delete_without_preload_content( return response_data.response - def _v1_extranets_b2b_consumer_id_delete_serialize( + def _v1_extranet_b2b_matches_match_id_consumer_check_post_serialize( self, authorization, - id, + match_id, + v1_extranet_b2b_matches_match_id_consumer_check_post_request, _request_auth, _content_type, _headers, @@ -56174,14 +55975,16 @@ def _v1_extranets_b2b_consumer_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if match_id is not None: + _path_params['matchId'] = match_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_extranet_b2b_matches_match_id_consumer_check_post_request is not None: + _body_params = v1_extranet_b2b_matches_match_id_consumer_check_post_request # set the HTTP header `Accept` @@ -56192,6 +55995,19 @@ def _v1_extranets_b2b_consumer_id_delete_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] = [ @@ -56199,8 +56015,8 @@ def _v1_extranets_b2b_consumer_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/extranets-b2b/consumer/{id}', + method='POST', + resource_path='/v1/extranet/b2b/matches/{matchId}/consumer/check', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -56217,10 +56033,11 @@ def _v1_extranets_b2b_consumer_id_delete_serialize( @validate_call - def v1_extranets_b2b_consumer_id_get( + def v1_extranet_b2b_matches_match_id_consumer_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], + v1_extranet_b2b_matches_match_id_consumer_post_request: V1ExtranetB2bMatchesMatchIdConsumerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -56233,15 +56050,17 @@ def v1_extranets_b2b_consumer_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bConsumerIdGetResponse: - """v1_extranets_b2b_consumer_id_get + ) -> V1ExtranetB2bMatchesMatchIdConsumerPostResponse: + """v1_extranet_b2b_matches_match_id_consumer_post - Get a B2B extranet consumer + Consumer accepts an extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_consumer_post_request: (required) + :type v1_extranet_b2b_matches_match_id_consumer_post_request: V1ExtranetB2bMatchesMatchIdConsumerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -56264,9 +56083,10 @@ def v1_extranets_b2b_consumer_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_id_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_consumer_post_serialize( authorization=authorization, - id=id, + match_id=match_id, + v1_extranet_b2b_matches_match_id_consumer_post_request=v1_extranet_b2b_matches_match_id_consumer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -56274,7 +56094,7 @@ def v1_extranets_b2b_consumer_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerIdGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdConsumerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -56288,10 +56108,11 @@ def v1_extranets_b2b_consumer_id_get( @validate_call - def v1_extranets_b2b_consumer_id_get_with_http_info( + def v1_extranet_b2b_matches_match_id_consumer_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], + v1_extranet_b2b_matches_match_id_consumer_post_request: V1ExtranetB2bMatchesMatchIdConsumerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -56304,15 +56125,17 @@ def v1_extranets_b2b_consumer_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[V1ExtranetsB2bConsumerIdGetResponse]: - """v1_extranets_b2b_consumer_id_get + ) -> ApiResponse[V1ExtranetB2bMatchesMatchIdConsumerPostResponse]: + """v1_extranet_b2b_matches_match_id_consumer_post - Get a B2B extranet consumer + Consumer accepts an extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_consumer_post_request: (required) + :type v1_extranet_b2b_matches_match_id_consumer_post_request: V1ExtranetB2bMatchesMatchIdConsumerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -56335,9 +56158,10 @@ def v1_extranets_b2b_consumer_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_id_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_consumer_post_serialize( authorization=authorization, - id=id, + match_id=match_id, + v1_extranet_b2b_matches_match_id_consumer_post_request=v1_extranet_b2b_matches_match_id_consumer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -56345,7 +56169,7 @@ def v1_extranets_b2b_consumer_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerIdGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdConsumerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -56359,10 +56183,11 @@ def v1_extranets_b2b_consumer_id_get_with_http_info( @validate_call - def v1_extranets_b2b_consumer_id_get_without_preload_content( + def v1_extranet_b2b_matches_match_id_consumer_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], + v1_extranet_b2b_matches_match_id_consumer_post_request: V1ExtranetB2bMatchesMatchIdConsumerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -56376,14 +56201,16 @@ def v1_extranets_b2b_consumer_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_consumer_id_get + """v1_extranet_b2b_matches_match_id_consumer_post - Get a B2B extranet consumer + Consumer accepts an extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_consumer_post_request: (required) + :type v1_extranet_b2b_matches_match_id_consumer_post_request: V1ExtranetB2bMatchesMatchIdConsumerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -56406,9 +56233,10 @@ def v1_extranets_b2b_consumer_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_id_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_consumer_post_serialize( authorization=authorization, - id=id, + match_id=match_id, + v1_extranet_b2b_matches_match_id_consumer_post_request=v1_extranet_b2b_matches_match_id_consumer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -56416,7 +56244,7 @@ def v1_extranets_b2b_consumer_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerIdGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdConsumerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -56425,10 +56253,11 @@ def v1_extranets_b2b_consumer_id_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_consumer_id_get_serialize( + def _v1_extranet_b2b_matches_match_id_consumer_post_serialize( self, authorization, - id, + match_id, + v1_extranet_b2b_matches_match_id_consumer_post_request, _request_auth, _content_type, _headers, @@ -56450,14 +56279,16 @@ def _v1_extranets_b2b_consumer_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if match_id is not None: + _path_params['matchId'] = match_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_extranet_b2b_matches_match_id_consumer_post_request is not None: + _body_params = v1_extranet_b2b_matches_match_id_consumer_post_request # set the HTTP header `Accept` @@ -56468,6 +56299,19 @@ def _v1_extranets_b2b_consumer_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] = [ @@ -56475,8 +56319,8 @@ def _v1_extranets_b2b_consumer_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b/consumer/{id}', + method='POST', + resource_path='/v1/extranet/b2b/matches/{matchId}/consumer', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -56493,10 +56337,10 @@ def _v1_extranets_b2b_consumer_id_get_serialize( @validate_call - def v1_extranets_b2b_consumer_post( + def v1_extranet_b2b_matches_match_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -56509,15 +56353,15 @@ def v1_extranets_b2b_consumer_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bConsumerPostResponse: - """v1_extranets_b2b_consumer_post + ) -> V1ExtranetB2bMatchesMatchIdDeleteResponse: + """v1_extranet_b2b_matches_match_id_delete - Create a new B2B extranet consumer + Delete an extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_consumer_post_request: (required) - :type v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest + :param match_id: Match id (URL path :matchId) (required) + :type match_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 @@ -56540,9 +56384,9 @@ def v1_extranets_b2b_consumer_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_post_serialize( + _param = self._v1_extranet_b2b_matches_match_id_delete_serialize( authorization=authorization, - v1_extranets_b2b_consumer_post_request=v1_extranets_b2b_consumer_post_request, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -56550,7 +56394,7 @@ def v1_extranets_b2b_consumer_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerPostResponse", + '200': "V1ExtranetB2bMatchesMatchIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -56564,10 +56408,10 @@ def v1_extranets_b2b_consumer_post( @validate_call - def v1_extranets_b2b_consumer_post_with_http_info( + def v1_extranet_b2b_matches_match_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -56580,15 +56424,15 @@ def v1_extranets_b2b_consumer_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[V1ExtranetsB2bConsumerPostResponse]: - """v1_extranets_b2b_consumer_post + ) -> ApiResponse[V1ExtranetB2bMatchesMatchIdDeleteResponse]: + """v1_extranet_b2b_matches_match_id_delete - Create a new B2B extranet consumer + Delete an extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_consumer_post_request: (required) - :type v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest + :param match_id: Match id (URL path :matchId) (required) + :type match_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 @@ -56611,9 +56455,9 @@ def v1_extranets_b2b_consumer_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_post_serialize( + _param = self._v1_extranet_b2b_matches_match_id_delete_serialize( authorization=authorization, - v1_extranets_b2b_consumer_post_request=v1_extranets_b2b_consumer_post_request, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -56621,7 +56465,7 @@ def v1_extranets_b2b_consumer_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerPostResponse", + '200': "V1ExtranetB2bMatchesMatchIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -56635,10 +56479,10 @@ def v1_extranets_b2b_consumer_post_with_http_info( @validate_call - def v1_extranets_b2b_consumer_post_without_preload_content( + def v1_extranet_b2b_matches_match_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -56652,14 +56496,14 @@ def v1_extranets_b2b_consumer_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_consumer_post + """v1_extranet_b2b_matches_match_id_delete - Create a new B2B extranet consumer + Delete an extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_consumer_post_request: (required) - :type v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest + :param match_id: Match id (URL path :matchId) (required) + :type match_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 @@ -56682,9 +56526,9 @@ def v1_extranets_b2b_consumer_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_post_serialize( + _param = self._v1_extranet_b2b_matches_match_id_delete_serialize( authorization=authorization, - v1_extranets_b2b_consumer_post_request=v1_extranets_b2b_consumer_post_request, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -56692,7 +56536,7 @@ def v1_extranets_b2b_consumer_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerPostResponse", + '200': "V1ExtranetB2bMatchesMatchIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -56701,10 +56545,10 @@ def v1_extranets_b2b_consumer_post_without_preload_content( return response_data.response - def _v1_extranets_b2b_consumer_post_serialize( + def _v1_extranet_b2b_matches_match_id_delete_serialize( self, authorization, - v1_extranets_b2b_consumer_post_request, + match_id, _request_auth, _content_type, _headers, @@ -56726,14 +56570,14 @@ def _v1_extranets_b2b_consumer_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if match_id is not None: + _path_params['matchId'] = match_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_extranets_b2b_consumer_post_request is not None: - _body_params = v1_extranets_b2b_consumer_post_request # set the HTTP header `Accept` @@ -56744,19 +56588,6 @@ def _v1_extranets_b2b_consumer_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] = [ @@ -56764,8 +56595,8 @@ def _v1_extranets_b2b_consumer_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranets-b2b/consumer', + method='DELETE', + resource_path='/v1/extranet/b2b/matches/{matchId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -56782,9 +56613,10 @@ def _v1_extranets_b2b_consumer_post_serialize( @validate_call - def v1_extranets_b2b_consumer_summary_get( + def v1_extranet_b2b_matches_match_id_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + match_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -56797,13 +56629,15 @@ def v1_extranets_b2b_consumer_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bConsumerSummaryGetResponse: - """v1_extranets_b2b_consumer_summary_get + ) -> V1ExtranetB2bMatchesMatchIdDetailsGetResponse: + """v1_extranet_b2b_matches_match_id_details_get - Get B2B extranet consumers summary + Get match details for consumer accept flow :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param match_id: (required) + :type match_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 @@ -56826,8 +56660,9 @@ def v1_extranets_b2b_consumer_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_details_get_serialize( authorization=authorization, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -56835,7 +56670,7 @@ def v1_extranets_b2b_consumer_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerSummaryGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -56849,9 +56684,10 @@ def v1_extranets_b2b_consumer_summary_get( @validate_call - def v1_extranets_b2b_consumer_summary_get_with_http_info( + def v1_extranet_b2b_matches_match_id_details_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + match_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -56864,13 +56700,15 @@ def v1_extranets_b2b_consumer_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[V1ExtranetsB2bConsumerSummaryGetResponse]: - """v1_extranets_b2b_consumer_summary_get + ) -> ApiResponse[V1ExtranetB2bMatchesMatchIdDetailsGetResponse]: + """v1_extranet_b2b_matches_match_id_details_get - Get B2B extranet consumers summary + Get match details for consumer accept flow :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param match_id: (required) + :type match_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 @@ -56893,8 +56731,9 @@ def v1_extranets_b2b_consumer_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_details_get_serialize( authorization=authorization, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -56902,7 +56741,7 @@ def v1_extranets_b2b_consumer_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerSummaryGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -56916,9 +56755,10 @@ def v1_extranets_b2b_consumer_summary_get_with_http_info( @validate_call - def v1_extranets_b2b_consumer_summary_get_without_preload_content( + def v1_extranet_b2b_matches_match_id_details_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + match_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -56932,12 +56772,14 @@ def v1_extranets_b2b_consumer_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_consumer_summary_get + """v1_extranet_b2b_matches_match_id_details_get - Get B2B extranet consumers summary + Get match details for consumer accept flow :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param match_id: (required) + :type match_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 @@ -56960,8 +56802,9 @@ def v1_extranets_b2b_consumer_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_consumer_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_details_get_serialize( authorization=authorization, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -56969,7 +56812,7 @@ def v1_extranets_b2b_consumer_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bConsumerSummaryGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -56978,9 +56821,10 @@ def v1_extranets_b2b_consumer_summary_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_consumer_summary_get_serialize( + def _v1_extranet_b2b_matches_match_id_details_get_serialize( self, authorization, + match_id, _request_auth, _content_type, _headers, @@ -57002,6 +56846,8 @@ def _v1_extranets_b2b_consumer_summary_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if match_id is not None: + _path_params['matchId'] = match_id # process the query parameters # process the header parameters if authorization is not None: @@ -57026,7 +56872,7 @@ def _v1_extranets_b2b_consumer_summary_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/extranets-b2b/consumer-summary', + resource_path='/v1/extranet/b2b/matches/{matchId}/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -57043,10 +56889,10 @@ def _v1_extranets_b2b_consumer_summary_get_serialize( @validate_call - def v1_extranets_b2b_customer_id_delete( + def v1_extranet_b2b_matches_match_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57059,15 +56905,15 @@ def v1_extranets_b2b_customer_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_extranets_b2b_customer_id_delete + ) -> V1ExtranetB2bMatchesMatchIdGetResponse: + """v1_extranet_b2b_matches_match_id_get - Delete a B2B extranet customer + Get extranet service match details :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_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 @@ -57090,9 +56936,9 @@ def v1_extranets_b2b_customer_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_customer_id_delete_serialize( + _param = self._v1_extranet_b2b_matches_match_id_get_serialize( authorization=authorization, - id=id, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -57100,7 +56946,7 @@ def v1_extranets_b2b_customer_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetB2bMatchesMatchIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -57114,10 +56960,10 @@ def v1_extranets_b2b_customer_id_delete( @validate_call - def v1_extranets_b2b_customer_id_delete_with_http_info( + def v1_extranet_b2b_matches_match_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57130,15 +56976,15 @@ def v1_extranets_b2b_customer_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[object]: - """v1_extranets_b2b_customer_id_delete + ) -> ApiResponse[V1ExtranetB2bMatchesMatchIdGetResponse]: + """v1_extranet_b2b_matches_match_id_get - Delete a B2B extranet customer + Get extranet service match details :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_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 @@ -57161,9 +57007,9 @@ def v1_extranets_b2b_customer_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_customer_id_delete_serialize( + _param = self._v1_extranet_b2b_matches_match_id_get_serialize( authorization=authorization, - id=id, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -57171,7 +57017,7 @@ def v1_extranets_b2b_customer_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetB2bMatchesMatchIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -57185,10 +57031,10 @@ def v1_extranets_b2b_customer_id_delete_with_http_info( @validate_call - def v1_extranets_b2b_customer_id_delete_without_preload_content( + def v1_extranet_b2b_matches_match_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57202,14 +57048,14 @@ def v1_extranets_b2b_customer_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_customer_id_delete + """v1_extranet_b2b_matches_match_id_get - Delete a B2B extranet customer + Get extranet service match details :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_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 @@ -57232,9 +57078,9 @@ def v1_extranets_b2b_customer_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_customer_id_delete_serialize( + _param = self._v1_extranet_b2b_matches_match_id_get_serialize( authorization=authorization, - id=id, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -57242,7 +57088,7 @@ def v1_extranets_b2b_customer_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetB2bMatchesMatchIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -57251,10 +57097,10 @@ def v1_extranets_b2b_customer_id_delete_without_preload_content( return response_data.response - def _v1_extranets_b2b_customer_id_delete_serialize( + def _v1_extranet_b2b_matches_match_id_get_serialize( self, authorization, - id, + match_id, _request_auth, _content_type, _headers, @@ -57276,8 +57122,8 @@ def _v1_extranets_b2b_customer_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if match_id is not None: + _path_params['matchId'] = match_id # process the query parameters # process the header parameters if authorization is not None: @@ -57301,8 +57147,8 @@ def _v1_extranets_b2b_customer_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/extranets-b2b/customer/{id}', + method='GET', + resource_path='/v1/extranet/b2b/matches/{matchId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -57319,10 +57165,11 @@ def _v1_extranets_b2b_customer_id_delete_serialize( @validate_call - def v1_extranets_b2b_customer_info_id_get( + def v1_extranet_b2b_matches_match_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], + v1_extranet_b2b_matches_match_id_put_request: V1ExtranetB2bMatchesMatchIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57335,15 +57182,17 @@ def v1_extranets_b2b_customer_info_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bCustomerInfoIdGetResponse: - """v1_extranets_b2b_customer_info_id_get + ) -> V1ExtranetB2bMatchesMatchIdPutResponse: + """v1_extranet_b2b_matches_match_id_put - Get B2B extranet application customer + Update extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_put_request: (required) + :type v1_extranet_b2b_matches_match_id_put_request: V1ExtranetB2bMatchesMatchIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -57366,9 +57215,10 @@ def v1_extranets_b2b_customer_info_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_customer_info_id_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_put_serialize( authorization=authorization, - id=id, + match_id=match_id, + v1_extranet_b2b_matches_match_id_put_request=v1_extranet_b2b_matches_match_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -57376,7 +57226,7 @@ def v1_extranets_b2b_customer_info_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bCustomerInfoIdGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -57390,10 +57240,11 @@ def v1_extranets_b2b_customer_info_id_get( @validate_call - def v1_extranets_b2b_customer_info_id_get_with_http_info( + def v1_extranet_b2b_matches_match_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], + v1_extranet_b2b_matches_match_id_put_request: V1ExtranetB2bMatchesMatchIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57406,15 +57257,17 @@ def v1_extranets_b2b_customer_info_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[V1ExtranetsB2bCustomerInfoIdGetResponse]: - """v1_extranets_b2b_customer_info_id_get + ) -> ApiResponse[V1ExtranetB2bMatchesMatchIdPutResponse]: + """v1_extranet_b2b_matches_match_id_put - Get B2B extranet application customer + Update extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_put_request: (required) + :type v1_extranet_b2b_matches_match_id_put_request: V1ExtranetB2bMatchesMatchIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -57437,9 +57290,10 @@ def v1_extranets_b2b_customer_info_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_customer_info_id_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_put_serialize( authorization=authorization, - id=id, + match_id=match_id, + v1_extranet_b2b_matches_match_id_put_request=v1_extranet_b2b_matches_match_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -57447,7 +57301,7 @@ def v1_extranets_b2b_customer_info_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bCustomerInfoIdGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -57461,10 +57315,11 @@ def v1_extranets_b2b_customer_info_id_get_with_http_info( @validate_call - def v1_extranets_b2b_customer_info_id_get_without_preload_content( + def v1_extranet_b2b_matches_match_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + match_id: Annotated[StrictInt, Field(description="Match id (URL path :matchId)")], + v1_extranet_b2b_matches_match_id_put_request: V1ExtranetB2bMatchesMatchIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57478,14 +57333,16 @@ def v1_extranets_b2b_customer_info_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_customer_info_id_get + """v1_extranet_b2b_matches_match_id_put - Get B2B extranet application customer + Update extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param match_id: Match id (URL path :matchId) (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_put_request: (required) + :type v1_extranet_b2b_matches_match_id_put_request: V1ExtranetB2bMatchesMatchIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -57508,9 +57365,10 @@ def v1_extranets_b2b_customer_info_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_customer_info_id_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_put_serialize( authorization=authorization, - id=id, + match_id=match_id, + v1_extranet_b2b_matches_match_id_put_request=v1_extranet_b2b_matches_match_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -57518,7 +57376,7 @@ def v1_extranets_b2b_customer_info_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bCustomerInfoIdGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -57527,10 +57385,11 @@ def v1_extranets_b2b_customer_info_id_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_customer_info_id_get_serialize( + def _v1_extranet_b2b_matches_match_id_put_serialize( self, authorization, - id, + match_id, + v1_extranet_b2b_matches_match_id_put_request, _request_auth, _content_type, _headers, @@ -57552,14 +57411,16 @@ def _v1_extranets_b2b_customer_info_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if match_id is not None: + _path_params['matchId'] = match_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_extranet_b2b_matches_match_id_put_request is not None: + _body_params = v1_extranet_b2b_matches_match_id_put_request # set the HTTP header `Accept` @@ -57570,6 +57431,19 @@ def _v1_extranets_b2b_customer_info_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] = [ @@ -57577,8 +57451,8 @@ def _v1_extranets_b2b_customer_info_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b/customer-info/{id}', + method='PUT', + resource_path='/v1/extranet/b2b/matches/{matchId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -57595,9 +57469,11 @@ def _v1_extranets_b2b_customer_info_id_get_serialize( @validate_call - def v1_extranets_b2b_general_customers_summary_get( + def v1_extranet_b2b_matches_match_id_status_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + match_id: StrictInt, + v1_extranet_b2b_matches_match_id_status_put_request: V1ExtranetB2bMatchesMatchIdStatusPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57610,13 +57486,17 @@ def v1_extranets_b2b_general_customers_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bGeneralCustomersSummaryGetResponse: - """v1_extranets_b2b_general_customers_summary_get + ) -> V1ExtranetB2bMatchesMatchIdStatusPutResponse: + """v1_extranet_b2b_matches_match_id_status_put - Get summary for a B2B extranet peering services customers + Pause or resume an extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param match_id: (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_status_put_request: (required) + :type v1_extranet_b2b_matches_match_id_status_put_request: V1ExtranetB2bMatchesMatchIdStatusPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -57639,8 +57519,10 @@ def v1_extranets_b2b_general_customers_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_general_customers_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_status_put_serialize( authorization=authorization, + match_id=match_id, + v1_extranet_b2b_matches_match_id_status_put_request=v1_extranet_b2b_matches_match_id_status_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -57648,7 +57530,7 @@ def v1_extranets_b2b_general_customers_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bGeneralCustomersSummaryGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdStatusPutResponse", } response_data = self.api_client.call_api( *_param, @@ -57662,9 +57544,11 @@ def v1_extranets_b2b_general_customers_summary_get( @validate_call - def v1_extranets_b2b_general_customers_summary_get_with_http_info( + def v1_extranet_b2b_matches_match_id_status_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + match_id: StrictInt, + v1_extranet_b2b_matches_match_id_status_put_request: V1ExtranetB2bMatchesMatchIdStatusPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57677,13 +57561,17 @@ def v1_extranets_b2b_general_customers_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[V1ExtranetsB2bGeneralCustomersSummaryGetResponse]: - """v1_extranets_b2b_general_customers_summary_get + ) -> ApiResponse[V1ExtranetB2bMatchesMatchIdStatusPutResponse]: + """v1_extranet_b2b_matches_match_id_status_put - Get summary for a B2B extranet peering services customers + Pause or resume an extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param match_id: (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_status_put_request: (required) + :type v1_extranet_b2b_matches_match_id_status_put_request: V1ExtranetB2bMatchesMatchIdStatusPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -57706,8 +57594,10 @@ def v1_extranets_b2b_general_customers_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_general_customers_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_status_put_serialize( authorization=authorization, + match_id=match_id, + v1_extranet_b2b_matches_match_id_status_put_request=v1_extranet_b2b_matches_match_id_status_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -57715,7 +57605,7 @@ def v1_extranets_b2b_general_customers_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bGeneralCustomersSummaryGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdStatusPutResponse", } response_data = self.api_client.call_api( *_param, @@ -57729,9 +57619,11 @@ def v1_extranets_b2b_general_customers_summary_get_with_http_info( @validate_call - def v1_extranets_b2b_general_customers_summary_get_without_preload_content( + def v1_extranet_b2b_matches_match_id_status_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + match_id: StrictInt, + v1_extranet_b2b_matches_match_id_status_put_request: V1ExtranetB2bMatchesMatchIdStatusPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57745,12 +57637,16 @@ def v1_extranets_b2b_general_customers_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_general_customers_summary_get + """v1_extranet_b2b_matches_match_id_status_put - Get summary for a B2B extranet peering services customers + Pause or resume an extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param match_id: (required) + :type match_id: int + :param v1_extranet_b2b_matches_match_id_status_put_request: (required) + :type v1_extranet_b2b_matches_match_id_status_put_request: V1ExtranetB2bMatchesMatchIdStatusPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -57773,8 +57669,10 @@ def v1_extranets_b2b_general_customers_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_general_customers_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_match_id_status_put_serialize( authorization=authorization, + match_id=match_id, + v1_extranet_b2b_matches_match_id_status_put_request=v1_extranet_b2b_matches_match_id_status_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -57782,7 +57680,7 @@ def v1_extranets_b2b_general_customers_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bGeneralCustomersSummaryGetResponse", + '200': "V1ExtranetB2bMatchesMatchIdStatusPutResponse", } response_data = self.api_client.call_api( *_param, @@ -57791,9 +57689,11 @@ def v1_extranets_b2b_general_customers_summary_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_general_customers_summary_get_serialize( + def _v1_extranet_b2b_matches_match_id_status_put_serialize( self, authorization, + match_id, + v1_extranet_b2b_matches_match_id_status_put_request, _request_auth, _content_type, _headers, @@ -57815,12 +57715,16 @@ def _v1_extranets_b2b_general_customers_summary_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if match_id is not None: + _path_params['matchId'] = match_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_extranet_b2b_matches_match_id_status_put_request is not None: + _body_params = v1_extranet_b2b_matches_match_id_status_put_request # set the HTTP header `Accept` @@ -57831,6 +57735,19 @@ def _v1_extranets_b2b_general_customers_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] = [ @@ -57838,8 +57755,8 @@ def _v1_extranets_b2b_general_customers_summary_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b-general/customers-summary', + method='PUT', + resource_path='/v1/extranet/b2b/matches/{matchId}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -57856,9 +57773,10 @@ def _v1_extranets_b2b_general_customers_summary_get_serialize( @validate_call - def v1_extranets_b2b_general_services_summary_get( + def v1_extranet_b2b_matches_pause_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranet_b2b_matches_pause_put_request: V1ExtranetB2bMatchesPausePutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57871,13 +57789,15 @@ def v1_extranets_b2b_general_services_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bGeneralServicesSummaryGetResponse: - """v1_extranets_b2b_general_services_summary_get + ) -> V1ExtranetB2bMatchesPausePutResponse: + """v1_extranet_b2b_matches_pause_put - Get a summary for all the B2B extranet services + Pause extranet service matches via customer summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranet_b2b_matches_pause_put_request: (required) + :type v1_extranet_b2b_matches_pause_put_request: V1ExtranetB2bMatchesPausePutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -57900,8 +57820,9 @@ def v1_extranets_b2b_general_services_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_general_services_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_pause_put_serialize( authorization=authorization, + v1_extranet_b2b_matches_pause_put_request=v1_extranet_b2b_matches_pause_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -57909,7 +57830,7 @@ def v1_extranets_b2b_general_services_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bGeneralServicesSummaryGetResponse", + '200': "V1ExtranetB2bMatchesPausePutResponse", } response_data = self.api_client.call_api( *_param, @@ -57923,9 +57844,10 @@ def v1_extranets_b2b_general_services_summary_get( @validate_call - def v1_extranets_b2b_general_services_summary_get_with_http_info( + def v1_extranet_b2b_matches_pause_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranet_b2b_matches_pause_put_request: V1ExtranetB2bMatchesPausePutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -57938,13 +57860,15 @@ def v1_extranets_b2b_general_services_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[V1ExtranetsB2bGeneralServicesSummaryGetResponse]: - """v1_extranets_b2b_general_services_summary_get + ) -> ApiResponse[V1ExtranetB2bMatchesPausePutResponse]: + """v1_extranet_b2b_matches_pause_put - Get a summary for all the B2B extranet services + Pause extranet service matches via customer summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranet_b2b_matches_pause_put_request: (required) + :type v1_extranet_b2b_matches_pause_put_request: V1ExtranetB2bMatchesPausePutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -57967,8 +57891,9 @@ def v1_extranets_b2b_general_services_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_general_services_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_pause_put_serialize( authorization=authorization, + v1_extranet_b2b_matches_pause_put_request=v1_extranet_b2b_matches_pause_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -57976,7 +57901,7 @@ def v1_extranets_b2b_general_services_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bGeneralServicesSummaryGetResponse", + '200': "V1ExtranetB2bMatchesPausePutResponse", } response_data = self.api_client.call_api( *_param, @@ -57990,9 +57915,10 @@ def v1_extranets_b2b_general_services_summary_get_with_http_info( @validate_call - def v1_extranets_b2b_general_services_summary_get_without_preload_content( + def v1_extranet_b2b_matches_pause_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranet_b2b_matches_pause_put_request: V1ExtranetB2bMatchesPausePutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58006,12 +57932,14 @@ def v1_extranets_b2b_general_services_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_general_services_summary_get + """v1_extranet_b2b_matches_pause_put - Get a summary for all the B2B extranet services + Pause extranet service matches via customer summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranet_b2b_matches_pause_put_request: (required) + :type v1_extranet_b2b_matches_pause_put_request: V1ExtranetB2bMatchesPausePutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -58034,8 +57962,9 @@ def v1_extranets_b2b_general_services_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_general_services_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_pause_put_serialize( authorization=authorization, + v1_extranet_b2b_matches_pause_put_request=v1_extranet_b2b_matches_pause_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -58043,7 +57972,7 @@ def v1_extranets_b2b_general_services_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bGeneralServicesSummaryGetResponse", + '200': "V1ExtranetB2bMatchesPausePutResponse", } response_data = self.api_client.call_api( *_param, @@ -58052,9 +57981,10 @@ def v1_extranets_b2b_general_services_summary_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_general_services_summary_get_serialize( + def _v1_extranet_b2b_matches_pause_put_serialize( self, authorization, + v1_extranet_b2b_matches_pause_put_request, _request_auth, _content_type, _headers, @@ -58082,6 +58012,8 @@ def _v1_extranets_b2b_general_services_summary_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_extranet_b2b_matches_pause_put_request is not None: + _body_params = v1_extranet_b2b_matches_pause_put_request # set the HTTP header `Accept` @@ -58092,6 +58024,19 @@ def _v1_extranets_b2b_general_services_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] = [ @@ -58099,8 +58044,8 @@ def _v1_extranets_b2b_general_services_summary_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b-general/services-summary', + method='PUT', + resource_path='/v1/extranet/b2b/matches/pause', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -58117,11 +58062,10 @@ def _v1_extranets_b2b_general_services_summary_get_serialize( @validate_call - def v1_extranets_b2b_id_customer_post( + def v1_extranet_b2b_matches_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Service ID of the application customer is invited to")], - v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest, + v1_extranet_b2b_matches_post_request: V1ExtranetB2bMatchesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58134,17 +58078,15 @@ def v1_extranets_b2b_id_customer_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bIdCustomerPostResponse: - """v1_extranets_b2b_id_customer_post + ) -> V1ExtranetB2bMatchesPostResponse: + """v1_extranet_b2b_matches_post - Create B2B extranet application customer invite + Match an extranet service to a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Service ID of the application customer is invited to (required) - :type id: int - :param v1_extranets_b2b_id_customer_post_request: (required) - :type v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest + :param v1_extranet_b2b_matches_post_request: (required) + :type v1_extranet_b2b_matches_post_request: V1ExtranetB2bMatchesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -58167,10 +58109,9 @@ def v1_extranets_b2b_id_customer_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_customer_post_serialize( + _param = self._v1_extranet_b2b_matches_post_serialize( authorization=authorization, - id=id, - v1_extranets_b2b_id_customer_post_request=v1_extranets_b2b_id_customer_post_request, + v1_extranet_b2b_matches_post_request=v1_extranet_b2b_matches_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -58178,7 +58119,7 @@ def v1_extranets_b2b_id_customer_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdCustomerPostResponse", + '200': "V1ExtranetB2bMatchesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -58192,11 +58133,10 @@ def v1_extranets_b2b_id_customer_post( @validate_call - def v1_extranets_b2b_id_customer_post_with_http_info( + def v1_extranet_b2b_matches_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Service ID of the application customer is invited to")], - v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest, + v1_extranet_b2b_matches_post_request: V1ExtranetB2bMatchesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58209,17 +58149,15 @@ def v1_extranets_b2b_id_customer_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[V1ExtranetsB2bIdCustomerPostResponse]: - """v1_extranets_b2b_id_customer_post + ) -> ApiResponse[V1ExtranetB2bMatchesPostResponse]: + """v1_extranet_b2b_matches_post - Create B2B extranet application customer invite + Match an extranet service to a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Service ID of the application customer is invited to (required) - :type id: int - :param v1_extranets_b2b_id_customer_post_request: (required) - :type v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest + :param v1_extranet_b2b_matches_post_request: (required) + :type v1_extranet_b2b_matches_post_request: V1ExtranetB2bMatchesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -58242,10 +58180,9 @@ def v1_extranets_b2b_id_customer_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_customer_post_serialize( + _param = self._v1_extranet_b2b_matches_post_serialize( authorization=authorization, - id=id, - v1_extranets_b2b_id_customer_post_request=v1_extranets_b2b_id_customer_post_request, + v1_extranet_b2b_matches_post_request=v1_extranet_b2b_matches_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -58253,7 +58190,7 @@ def v1_extranets_b2b_id_customer_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdCustomerPostResponse", + '200': "V1ExtranetB2bMatchesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -58267,11 +58204,10 @@ def v1_extranets_b2b_id_customer_post_with_http_info( @validate_call - def v1_extranets_b2b_id_customer_post_without_preload_content( + def v1_extranet_b2b_matches_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Service ID of the application customer is invited to")], - v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest, + v1_extranet_b2b_matches_post_request: V1ExtranetB2bMatchesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58285,16 +58221,14 @@ def v1_extranets_b2b_id_customer_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_id_customer_post + """v1_extranet_b2b_matches_post - Create B2B extranet application customer invite + Match an extranet service to a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Service ID of the application customer is invited to (required) - :type id: int - :param v1_extranets_b2b_id_customer_post_request: (required) - :type v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest + :param v1_extranet_b2b_matches_post_request: (required) + :type v1_extranet_b2b_matches_post_request: V1ExtranetB2bMatchesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -58317,10 +58251,9 @@ def v1_extranets_b2b_id_customer_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_customer_post_serialize( + _param = self._v1_extranet_b2b_matches_post_serialize( authorization=authorization, - id=id, - v1_extranets_b2b_id_customer_post_request=v1_extranets_b2b_id_customer_post_request, + v1_extranet_b2b_matches_post_request=v1_extranet_b2b_matches_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -58328,7 +58261,7 @@ def v1_extranets_b2b_id_customer_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdCustomerPostResponse", + '200': "V1ExtranetB2bMatchesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -58337,11 +58270,10 @@ def v1_extranets_b2b_id_customer_post_without_preload_content( return response_data.response - def _v1_extranets_b2b_id_customer_post_serialize( + def _v1_extranet_b2b_matches_post_serialize( self, authorization, - id, - v1_extranets_b2b_id_customer_post_request, + v1_extranet_b2b_matches_post_request, _request_auth, _content_type, _headers, @@ -58363,16 +58295,14 @@ def _v1_extranets_b2b_id_customer_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_extranets_b2b_id_customer_post_request is not None: - _body_params = v1_extranets_b2b_id_customer_post_request + if v1_extranet_b2b_matches_post_request is not None: + _body_params = v1_extranet_b2b_matches_post_request # set the HTTP header `Accept` @@ -58404,7 +58334,7 @@ def _v1_extranets_b2b_id_customer_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/extranets-b2b/{id}/customer/', + resource_path='/v1/extranet/b2b/matches', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -58421,10 +58351,10 @@ def _v1_extranets_b2b_id_customer_post_serialize( @validate_call - def v1_extranets_b2b_id_customer_summary_get( + def v1_extranet_b2b_matches_review_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_extranet_b2b_matches_review_post_request: V1ExtranetB2bMatchesReviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58437,15 +58367,15 @@ def v1_extranets_b2b_id_customer_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bIdCustomerSummaryGetResponse: - """v1_extranets_b2b_id_customer_summary_get + ) -> V1ExtranetB2bMatchesReviewPostResponse: + """v1_extranet_b2b_matches_review_post - Get B2B extranet application customers summary + Review extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_extranet_b2b_matches_review_post_request: (required) + :type v1_extranet_b2b_matches_review_post_request: V1ExtranetB2bMatchesReviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -58468,9 +58398,9 @@ def v1_extranets_b2b_id_customer_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_customer_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_review_post_serialize( authorization=authorization, - id=id, + v1_extranet_b2b_matches_review_post_request=v1_extranet_b2b_matches_review_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -58478,7 +58408,7 @@ def v1_extranets_b2b_id_customer_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdCustomerSummaryGetResponse", + '200': "V1ExtranetB2bMatchesReviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -58492,10 +58422,10 @@ def v1_extranets_b2b_id_customer_summary_get( @validate_call - def v1_extranets_b2b_id_customer_summary_get_with_http_info( + def v1_extranet_b2b_matches_review_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_extranet_b2b_matches_review_post_request: V1ExtranetB2bMatchesReviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58508,15 +58438,15 @@ def v1_extranets_b2b_id_customer_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[V1ExtranetsB2bIdCustomerSummaryGetResponse]: - """v1_extranets_b2b_id_customer_summary_get + ) -> ApiResponse[V1ExtranetB2bMatchesReviewPostResponse]: + """v1_extranet_b2b_matches_review_post - Get B2B extranet application customers summary + Review extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_extranet_b2b_matches_review_post_request: (required) + :type v1_extranet_b2b_matches_review_post_request: V1ExtranetB2bMatchesReviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -58539,9 +58469,9 @@ def v1_extranets_b2b_id_customer_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_customer_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_review_post_serialize( authorization=authorization, - id=id, + v1_extranet_b2b_matches_review_post_request=v1_extranet_b2b_matches_review_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -58549,7 +58479,7 @@ def v1_extranets_b2b_id_customer_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdCustomerSummaryGetResponse", + '200': "V1ExtranetB2bMatchesReviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -58563,10 +58493,10 @@ def v1_extranets_b2b_id_customer_summary_get_with_http_info( @validate_call - def v1_extranets_b2b_id_customer_summary_get_without_preload_content( + def v1_extranet_b2b_matches_review_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_extranet_b2b_matches_review_post_request: V1ExtranetB2bMatchesReviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58580,14 +58510,14 @@ def v1_extranets_b2b_id_customer_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_id_customer_summary_get + """v1_extranet_b2b_matches_review_post - Get B2B extranet application customers summary + Review extranet service match :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_extranet_b2b_matches_review_post_request: (required) + :type v1_extranet_b2b_matches_review_post_request: V1ExtranetB2bMatchesReviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -58610,9 +58540,9 @@ def v1_extranets_b2b_id_customer_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_customer_summary_get_serialize( + _param = self._v1_extranet_b2b_matches_review_post_serialize( authorization=authorization, - id=id, + v1_extranet_b2b_matches_review_post_request=v1_extranet_b2b_matches_review_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -58620,7 +58550,7 @@ def v1_extranets_b2b_id_customer_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdCustomerSummaryGetResponse", + '200': "V1ExtranetB2bMatchesReviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -58629,10 +58559,10 @@ def v1_extranets_b2b_id_customer_summary_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_id_customer_summary_get_serialize( + def _v1_extranet_b2b_matches_review_post_serialize( self, authorization, - id, + v1_extranet_b2b_matches_review_post_request, _request_auth, _content_type, _headers, @@ -58654,14 +58584,14 @@ def _v1_extranets_b2b_id_customer_summary_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_extranet_b2b_matches_review_post_request is not None: + _body_params = v1_extranet_b2b_matches_review_post_request # set the HTTP header `Accept` @@ -58672,6 +58602,19 @@ def _v1_extranets_b2b_id_customer_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] = [ @@ -58679,8 +58622,8 @@ def _v1_extranets_b2b_id_customer_summary_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b/{id}/customer-summary', + method='POST', + resource_path='/v1/extranet/b2b/matches/review', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -58697,10 +58640,10 @@ def _v1_extranets_b2b_id_customer_summary_get_serialize( @validate_call - def v1_extranets_b2b_id_delete( + def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the producer service to be deleted")], + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58713,15 +58656,15 @@ def v1_extranets_b2b_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_extranets_b2b_id_delete + ) -> V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse: + """v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post - Delete a B2B extranet producer + Get b2b extranet peering service sites usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the producer service to be deleted (required) - :type id: int + :param v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -58744,9 +58687,9 @@ def v1_extranets_b2b_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_delete_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( authorization=authorization, - id=id, + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request=v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -58754,7 +58697,7 @@ def v1_extranets_b2b_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", } response_data = self.api_client.call_api( *_param, @@ -58768,10 +58711,10 @@ def v1_extranets_b2b_id_delete( @validate_call - def v1_extranets_b2b_id_delete_with_http_info( + def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the producer service to be deleted")], + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58784,15 +58727,15 @@ def v1_extranets_b2b_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[object]: - """v1_extranets_b2b_id_delete + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse]: + """v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post - Delete a B2B extranet producer + Get b2b extranet peering service sites usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the producer service to be deleted (required) - :type id: int + :param v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -58815,9 +58758,9 @@ def v1_extranets_b2b_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_delete_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( authorization=authorization, - id=id, + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request=v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -58825,7 +58768,7 @@ def v1_extranets_b2b_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", } response_data = self.api_client.call_api( *_param, @@ -58839,10 +58782,10 @@ def v1_extranets_b2b_id_delete_with_http_info( @validate_call - def v1_extranets_b2b_id_delete_without_preload_content( + def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the producer service to be deleted")], + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58856,14 +58799,14 @@ def v1_extranets_b2b_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_id_delete + """v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post - Delete a B2B extranet producer + Get b2b extranet peering service sites usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the producer service to be deleted (required) - :type id: int + :param v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -58886,9 +58829,9 @@ def v1_extranets_b2b_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_delete_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( authorization=authorization, - id=id, + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request=v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -58896,7 +58839,7 @@ def v1_extranets_b2b_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", } response_data = self.api_client.call_api( *_param, @@ -58905,10 +58848,10 @@ def v1_extranets_b2b_id_delete_without_preload_content( return response_data.response - def _v1_extranets_b2b_id_delete_serialize( + def _v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( self, authorization, - id, + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, _request_auth, _content_type, _headers, @@ -58930,14 +58873,14 @@ def _v1_extranets_b2b_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_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request is not None: + _body_params = v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request # set the HTTP header `Accept` @@ -58948,6 +58891,19 @@ def _v1_extranets_b2b_id_delete_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] = [ @@ -58955,8 +58911,8 @@ def _v1_extranets_b2b_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/extranets-b2b/{id}', + method='POST', + resource_path='/v1/extranet-b2b-monitoring/peering-service/bandwidth-usage', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -58973,11 +58929,10 @@ def _v1_extranets_b2b_id_delete_serialize( @validate_call - def v1_extranets_b2b_id_producer_get( + def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - type: Optional[StrictStr] = None, + v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -58990,17 +58945,15 @@ def v1_extranets_b2b_id_producer_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bIdProducerGetResponse: - """v1_extranets_b2b_id_producer_get + ) -> V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse: + """v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post - Get a B2B extranet producer + Get b2b extranet peering service top consumers usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param type: - :type type: str + :param v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -59023,10 +58976,9 @@ def v1_extranets_b2b_id_producer_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_producer_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( authorization=authorization, - id=id, - type=type, + v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request=v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -59034,7 +58986,7 @@ def v1_extranets_b2b_id_producer_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdProducerGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -59048,11 +59000,10 @@ def v1_extranets_b2b_id_producer_get( @validate_call - def v1_extranets_b2b_id_producer_get_with_http_info( + def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - type: Optional[StrictStr] = None, + v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -59065,17 +59016,15 @@ def v1_extranets_b2b_id_producer_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[V1ExtranetsB2bIdProducerGetResponse]: - """v1_extranets_b2b_id_producer_get + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse]: + """v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post - Get a B2B extranet producer + Get b2b extranet peering service top consumers usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param type: - :type type: str + :param v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -59098,10 +59047,9 @@ def v1_extranets_b2b_id_producer_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_producer_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( authorization=authorization, - id=id, - type=type, + v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request=v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -59109,7 +59057,7 @@ def v1_extranets_b2b_id_producer_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdProducerGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -59123,11 +59071,10 @@ def v1_extranets_b2b_id_producer_get_with_http_info( @validate_call - def v1_extranets_b2b_id_producer_get_without_preload_content( + def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - type: Optional[StrictStr] = None, + v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -59141,16 +59088,14 @@ def v1_extranets_b2b_id_producer_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_id_producer_get + """v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post - Get a B2B extranet producer + Get b2b extranet peering service top consumers usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param type: - :type type: str + :param v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -59173,10 +59118,9 @@ def v1_extranets_b2b_id_producer_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_producer_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( authorization=authorization, - id=id, - type=type, + v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request=v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -59184,7 +59128,7 @@ def v1_extranets_b2b_id_producer_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdProducerGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -59193,11 +59137,10 @@ def v1_extranets_b2b_id_producer_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_id_producer_get_serialize( + def _v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( self, authorization, - id, - type, + v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request, _request_auth, _content_type, _headers, @@ -59219,18 +59162,14 @@ def _v1_extranets_b2b_id_producer_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 type is not None: - - _query_params.append(('type', type)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request is not None: + _body_params = v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request # set the HTTP header `Accept` @@ -59241,6 +59180,19 @@ def _v1_extranets_b2b_id_producer_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] = [ @@ -59248,8 +59200,8 @@ def _v1_extranets_b2b_id_producer_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b/{id}/producer', + method='POST', + resource_path='/v1/extranet-b2b-monitoring/peering-service/consumers-usage/top', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -59266,11 +59218,10 @@ def _v1_extranets_b2b_id_producer_get_serialize( @validate_call - def v1_extranets_b2b_id_put( + def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the B2B Application service")], - v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest, + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -59283,17 +59234,15 @@ def v1_extranets_b2b_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bIdPutResponse: - """v1_extranets_b2b_id_put + ) -> V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse: + """v1_extranet_b2b_monitoring_peering_service_consumption_overview_post - Update a B2B extranet producer + Get b2b extranet peering consumption overview :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the B2B Application service (required) - :type id: int - :param v1_extranets_b2b_id_put_request: (required) - :type v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest + :param v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -59316,10 +59265,9 @@ def v1_extranets_b2b_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_put_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( authorization=authorization, - id=id, - v1_extranets_b2b_id_put_request=v1_extranets_b2b_id_put_request, + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request=v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -59327,7 +59275,7 @@ def v1_extranets_b2b_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdPutResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -59341,11 +59289,10 @@ def v1_extranets_b2b_id_put( @validate_call - def v1_extranets_b2b_id_put_with_http_info( + def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the B2B Application service")], - v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest, + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -59358,17 +59305,15 @@ def v1_extranets_b2b_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[V1ExtranetsB2bIdPutResponse]: - """v1_extranets_b2b_id_put + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse]: + """v1_extranet_b2b_monitoring_peering_service_consumption_overview_post - Update a B2B extranet producer + Get b2b extranet peering consumption overview :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the B2B Application service (required) - :type id: int - :param v1_extranets_b2b_id_put_request: (required) - :type v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest + :param v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -59391,10 +59336,9 @@ def v1_extranets_b2b_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_put_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( authorization=authorization, - id=id, - v1_extranets_b2b_id_put_request=v1_extranets_b2b_id_put_request, + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request=v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -59402,7 +59346,7 @@ def v1_extranets_b2b_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdPutResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -59416,11 +59360,10 @@ def v1_extranets_b2b_id_put_with_http_info( @validate_call - def v1_extranets_b2b_id_put_without_preload_content( + def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the B2B Application service")], - v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest, + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -59434,16 +59377,14 @@ def v1_extranets_b2b_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_id_put + """v1_extranet_b2b_monitoring_peering_service_consumption_overview_post - Update a B2B extranet producer + Get b2b extranet peering consumption overview :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the B2B Application service (required) - :type id: int - :param v1_extranets_b2b_id_put_request: (required) - :type v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest + :param v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -59466,10 +59407,9 @@ def v1_extranets_b2b_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_id_put_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( authorization=authorization, - id=id, - v1_extranets_b2b_id_put_request=v1_extranets_b2b_id_put_request, + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request=v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -59477,7 +59417,7 @@ def v1_extranets_b2b_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bIdPutResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -59486,11 +59426,10 @@ def v1_extranets_b2b_id_put_without_preload_content( return response_data.response - def _v1_extranets_b2b_id_put_serialize( + def _v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( self, authorization, - id, - v1_extranets_b2b_id_put_request, + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request, _request_auth, _content_type, _headers, @@ -59512,16 +59451,14 @@ def _v1_extranets_b2b_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 # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_extranets_b2b_id_put_request is not None: - _body_params = v1_extranets_b2b_id_put_request + if v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request is not None: + _body_params = v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request # set the HTTP header `Accept` @@ -59552,8 +59489,8 @@ def _v1_extranets_b2b_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/extranets-b2b/{id}', + method='POST', + resource_path='/v1/extranet-b2b-monitoring/peering-service/consumption-overview', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -59570,11 +59507,10 @@ def _v1_extranets_b2b_id_put_serialize( @validate_call - def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get( + def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - customer_id: StrictInt, - service_id: Optional[StrictInt] = None, + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -59587,17 +59523,15 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse: - """v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get + ) -> V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse: + """v1_extranet_b2b_monitoring_peering_service_service_customer_list_post - Get details of a service subscription for a customer + Get b2b extranet peering service customer list within a time window :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param customer_id: (required) - :type customer_id: int - :param service_id: - :type service_id: int + :param v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -59620,10 +59554,9 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( authorization=authorization, - customer_id=customer_id, - service_id=service_id, + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request=v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -59631,7 +59564,7 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", } response_data = self.api_client.call_api( *_param, @@ -59645,11 +59578,10 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get( @validate_call - def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_with_http_info( + def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - customer_id: StrictInt, - service_id: Optional[StrictInt] = None, + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -59662,17 +59594,15 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_with_http _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse]: - """v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse]: + """v1_extranet_b2b_monitoring_peering_service_service_customer_list_post - Get details of a service subscription for a customer + Get b2b extranet peering service customer list within a time window :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param customer_id: (required) - :type customer_id: int - :param service_id: - :type service_id: int + :param v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -59695,10 +59625,9 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_with_http :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( authorization=authorization, - customer_id=customer_id, - service_id=service_id, + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request=v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -59706,7 +59635,7 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_with_http ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", } response_data = self.api_client.call_api( *_param, @@ -59720,11 +59649,10 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_with_http @validate_call - def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_without_preload_content( + def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - customer_id: StrictInt, - service_id: Optional[StrictInt] = None, + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -59738,16 +59666,14 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_without_p _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get + """v1_extranet_b2b_monitoring_peering_service_service_customer_list_post - Get details of a service subscription for a customer + Get b2b extranet peering service customer list within a time window :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param customer_id: (required) - :type customer_id: int - :param service_id: - :type service_id: int + :param v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -59770,10 +59696,9 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_without_p :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( authorization=authorization, - customer_id=customer_id, - service_id=service_id, + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request=v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -59781,7 +59706,7 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_without_p ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", } response_data = self.api_client.call_api( *_param, @@ -59790,11 +59715,10 @@ def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_without_p return response_data.response - def _v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serialize( + def _v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( self, authorization, - customer_id, - service_id, + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request, _request_auth, _content_type, _headers, @@ -59816,18 +59740,14 @@ def _v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serializ _body_params: Optional[bytes] = None # process the path parameters - if customer_id is not None: - _path_params['customerId'] = customer_id # process the query parameters - if service_id is not None: - - _query_params.append(('serviceId', service_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request is not None: + _body_params = v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request # set the HTTP header `Accept` @@ -59838,6 +59758,19 @@ def _v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serializ ] ) + # 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] = [ @@ -59845,8 +59778,8 @@ def _v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serializ ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b-peering/consumer/{customerId}/consumer-details', + method='POST', + resource_path='/v1/extranet-b2b-monitoring/peering-service/service-customer-list', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -59863,11 +59796,10 @@ def _v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serializ @validate_call - def v1_extranets_b2b_peering_consumer_id_prefixes_put( + def v1_extranet_b2b_monitoring_peering_service_service_health_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="consumer id")], - v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest, + v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -59880,17 +59812,15 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse: - """v1_extranets_b2b_peering_consumer_id_prefixes_put + ) -> V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse: + """v1_extranet_b2b_monitoring_peering_service_service_health_post - Update B2B extranet peering service consumer + Returns connectivity status for a b2b peering service. Provides overall service connectivity status and detailed status for producer and customer prefixes for each consumer of the serviceShows whether the service is healthy, impaired, or down, and lists any missing prefixes in Impaired state. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: consumer id (required) - :type id: int - :param v1_extranets_b2b_peering_consumer_id_prefixes_put_request: (required) - :type v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest + :param v1_extranet_b2b_monitoring_peering_service_service_health_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -59913,10 +59843,9 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_id_prefixes_put_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( authorization=authorization, - id=id, - v1_extranets_b2b_peering_consumer_id_prefixes_put_request=v1_extranets_b2b_peering_consumer_id_prefixes_put_request, + v1_extranet_b2b_monitoring_peering_service_service_health_post_request=v1_extranet_b2b_monitoring_peering_service_service_health_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -59924,7 +59853,7 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", } response_data = self.api_client.call_api( *_param, @@ -59938,11 +59867,10 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_put( @validate_call - def v1_extranets_b2b_peering_consumer_id_prefixes_put_with_http_info( + def v1_extranet_b2b_monitoring_peering_service_service_health_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="consumer id")], - v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest, + v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -59955,17 +59883,15 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_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[V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse]: - """v1_extranets_b2b_peering_consumer_id_prefixes_put + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse]: + """v1_extranet_b2b_monitoring_peering_service_service_health_post - Update B2B extranet peering service consumer + Returns connectivity status for a b2b peering service. Provides overall service connectivity status and detailed status for producer and customer prefixes for each consumer of the serviceShows whether the service is healthy, impaired, or down, and lists any missing prefixes in Impaired state. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: consumer id (required) - :type id: int - :param v1_extranets_b2b_peering_consumer_id_prefixes_put_request: (required) - :type v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest + :param v1_extranet_b2b_monitoring_peering_service_service_health_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -59988,10 +59914,9 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_id_prefixes_put_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( authorization=authorization, - id=id, - v1_extranets_b2b_peering_consumer_id_prefixes_put_request=v1_extranets_b2b_peering_consumer_id_prefixes_put_request, + v1_extranet_b2b_monitoring_peering_service_service_health_post_request=v1_extranet_b2b_monitoring_peering_service_service_health_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -59999,7 +59924,7 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", } response_data = self.api_client.call_api( *_param, @@ -60013,11 +59938,10 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_put_with_http_info( @validate_call - def v1_extranets_b2b_peering_consumer_id_prefixes_put_without_preload_content( + def v1_extranet_b2b_monitoring_peering_service_service_health_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="consumer id")], - v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest, + v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -60031,16 +59955,14 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_consumer_id_prefixes_put + """v1_extranet_b2b_monitoring_peering_service_service_health_post - Update B2B extranet peering service consumer + Returns connectivity status for a b2b peering service. Provides overall service connectivity status and detailed status for producer and customer prefixes for each consumer of the serviceShows whether the service is healthy, impaired, or down, and lists any missing prefixes in Impaired state. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: consumer id (required) - :type id: int - :param v1_extranets_b2b_peering_consumer_id_prefixes_put_request: (required) - :type v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest + :param v1_extranet_b2b_monitoring_peering_service_service_health_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -60063,10 +59985,9 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_id_prefixes_put_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( authorization=authorization, - id=id, - v1_extranets_b2b_peering_consumer_id_prefixes_put_request=v1_extranets_b2b_peering_consumer_id_prefixes_put_request, + v1_extranet_b2b_monitoring_peering_service_service_health_post_request=v1_extranet_b2b_monitoring_peering_service_service_health_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -60074,7 +59995,7 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", } response_data = self.api_client.call_api( *_param, @@ -60083,11 +60004,10 @@ def v1_extranets_b2b_peering_consumer_id_prefixes_put_without_preload_content( return response_data.response - def _v1_extranets_b2b_peering_consumer_id_prefixes_put_serialize( + def _v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( self, authorization, - id, - v1_extranets_b2b_peering_consumer_id_prefixes_put_request, + v1_extranet_b2b_monitoring_peering_service_service_health_post_request, _request_auth, _content_type, _headers, @@ -60109,16 +60029,14 @@ def _v1_extranets_b2b_peering_consumer_id_prefixes_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_extranets_b2b_peering_consumer_id_prefixes_put_request is not None: - _body_params = v1_extranets_b2b_peering_consumer_id_prefixes_put_request + if v1_extranet_b2b_monitoring_peering_service_service_health_post_request is not None: + _body_params = v1_extranet_b2b_monitoring_peering_service_service_health_post_request # set the HTTP header `Accept` @@ -60149,8 +60067,8 @@ def _v1_extranets_b2b_peering_consumer_id_prefixes_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/extranets-b2b-peering/consumer/{id}/prefixes', + method='POST', + resource_path='/v1/extranet-b2b-monitoring/peering-service/service-health', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -60167,10 +60085,10 @@ def _v1_extranets_b2b_peering_consumer_id_prefixes_put_serialize( @validate_call - def v1_extranets_b2b_peering_consumer_match_id_match_details_get( + def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - match_id: StrictInt, + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -60183,15 +60101,15 @@ def v1_extranets_b2b_peering_consumer_match_id_match_details_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse: - """v1_extranets_b2b_peering_consumer_match_id_match_details_get + ) -> V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse: + """v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post - Get details of a service match for a customer + Get b2b extranet peering service overtime consumption :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param match_id: (required) - :type match_id: int + :param v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -60214,9 +60132,9 @@ def v1_extranets_b2b_peering_consumer_match_id_match_details_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_match_id_match_details_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( authorization=authorization, - match_id=match_id, + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request=v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -60224,7 +60142,7 @@ def v1_extranets_b2b_peering_consumer_match_id_match_details_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -60238,10 +60156,10 @@ def v1_extranets_b2b_peering_consumer_match_id_match_details_get( @validate_call - def v1_extranets_b2b_peering_consumer_match_id_match_details_get_with_http_info( + def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - match_id: StrictInt, + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -60254,15 +60172,15 @@ def v1_extranets_b2b_peering_consumer_match_id_match_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[V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse]: - """v1_extranets_b2b_peering_consumer_match_id_match_details_get + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse]: + """v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post - Get details of a service match for a customer + Get b2b extranet peering service overtime consumption :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param match_id: (required) - :type match_id: int + :param v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -60285,9 +60203,9 @@ def v1_extranets_b2b_peering_consumer_match_id_match_details_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_match_id_match_details_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( authorization=authorization, - match_id=match_id, + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request=v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -60295,7 +60213,7 @@ def v1_extranets_b2b_peering_consumer_match_id_match_details_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -60309,10 +60227,10 @@ def v1_extranets_b2b_peering_consumer_match_id_match_details_get_with_http_info( @validate_call - def v1_extranets_b2b_peering_consumer_match_id_match_details_get_without_preload_content( + def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - match_id: StrictInt, + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -60326,14 +60244,14 @@ def v1_extranets_b2b_peering_consumer_match_id_match_details_get_without_preload _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_consumer_match_id_match_details_get + """v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post - Get details of a service match for a customer + Get b2b extranet peering service overtime consumption :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param match_id: (required) - :type match_id: int + :param v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: (required) + :type v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -60356,9 +60274,9 @@ def v1_extranets_b2b_peering_consumer_match_id_match_details_get_without_preload :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_match_id_match_details_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( authorization=authorization, - match_id=match_id, + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request=v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -60366,7 +60284,7 @@ def v1_extranets_b2b_peering_consumer_match_id_match_details_get_without_preload ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -60375,10 +60293,10 @@ def v1_extranets_b2b_peering_consumer_match_id_match_details_get_without_preload return response_data.response - def _v1_extranets_b2b_peering_consumer_match_id_match_details_get_serialize( + def _v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( self, authorization, - match_id, + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request, _request_auth, _content_type, _headers, @@ -60400,14 +60318,14 @@ def _v1_extranets_b2b_peering_consumer_match_id_match_details_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if match_id is not None: - _path_params['matchId'] = match_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_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request is not None: + _body_params = v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request # set the HTTP header `Accept` @@ -60418,6 +60336,19 @@ def _v1_extranets_b2b_peering_consumer_match_id_match_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] = [ @@ -60425,8 +60356,8 @@ def _v1_extranets_b2b_peering_consumer_match_id_match_details_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b-peering/consumer/{matchId}/match-details', + method='POST', + resource_path='/v1/extranet-b2b-monitoring/peering-service/service-overtime-consumption', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -60443,11 +60374,10 @@ def _v1_extranets_b2b_peering_consumer_match_id_match_details_get_serialize( @validate_call - def v1_extranets_b2b_peering_consumer_match_id_post( + def v1_extranet_b2b_producer_id_customers_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - match_id: Annotated[StrictInt, Field(description="ID of the match for the customer subscription of the service")], - v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest, + id: Annotated[StrictInt, Field(description="Producer service id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -60460,17 +60390,15 @@ def v1_extranets_b2b_peering_consumer_match_id_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringConsumerMatchIdPostResponse: - """v1_extranets_b2b_peering_consumer_match_id_post + ) -> V1ExtranetB2bProducerIdCustomersGetResponse: + """v1_extranet_b2b_producer_id_customers_get - Create B2B extranet peering service consumer + List customers matched to an extranet producer service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param match_id: ID of the match for the customer subscription of the service (required) - :type match_id: int - :param v1_extranets_b2b_peering_consumer_match_id_post_request: (required) - :type v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest + :param id: Producer service 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 @@ -60493,10 +60421,9 @@ def v1_extranets_b2b_peering_consumer_match_id_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_match_id_post_serialize( + _param = self._v1_extranet_b2b_producer_id_customers_get_serialize( authorization=authorization, - match_id=match_id, - v1_extranets_b2b_peering_consumer_match_id_post_request=v1_extranets_b2b_peering_consumer_match_id_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -60504,7 +60431,7 @@ def v1_extranets_b2b_peering_consumer_match_id_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerMatchIdPostResponse", + '200': "V1ExtranetB2bProducerIdCustomersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -60518,11 +60445,10 @@ def v1_extranets_b2b_peering_consumer_match_id_post( @validate_call - def v1_extranets_b2b_peering_consumer_match_id_post_with_http_info( + def v1_extranet_b2b_producer_id_customers_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - match_id: Annotated[StrictInt, Field(description="ID of the match for the customer subscription of the service")], - v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest, + id: Annotated[StrictInt, Field(description="Producer service id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -60535,17 +60461,15 @@ def v1_extranets_b2b_peering_consumer_match_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[V1ExtranetsB2bPeeringConsumerMatchIdPostResponse]: - """v1_extranets_b2b_peering_consumer_match_id_post + ) -> ApiResponse[V1ExtranetB2bProducerIdCustomersGetResponse]: + """v1_extranet_b2b_producer_id_customers_get - Create B2B extranet peering service consumer + List customers matched to an extranet producer service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param match_id: ID of the match for the customer subscription of the service (required) - :type match_id: int - :param v1_extranets_b2b_peering_consumer_match_id_post_request: (required) - :type v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest + :param id: Producer service 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 @@ -60568,10 +60492,9 @@ def v1_extranets_b2b_peering_consumer_match_id_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_match_id_post_serialize( + _param = self._v1_extranet_b2b_producer_id_customers_get_serialize( authorization=authorization, - match_id=match_id, - v1_extranets_b2b_peering_consumer_match_id_post_request=v1_extranets_b2b_peering_consumer_match_id_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -60579,7 +60502,7 @@ def v1_extranets_b2b_peering_consumer_match_id_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerMatchIdPostResponse", + '200': "V1ExtranetB2bProducerIdCustomersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -60593,11 +60516,10 @@ def v1_extranets_b2b_peering_consumer_match_id_post_with_http_info( @validate_call - def v1_extranets_b2b_peering_consumer_match_id_post_without_preload_content( + def v1_extranet_b2b_producer_id_customers_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - match_id: Annotated[StrictInt, Field(description="ID of the match for the customer subscription of the service")], - v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest, + id: Annotated[StrictInt, Field(description="Producer service id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -60611,16 +60533,14 @@ def v1_extranets_b2b_peering_consumer_match_id_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_consumer_match_id_post + """v1_extranet_b2b_producer_id_customers_get - Create B2B extranet peering service consumer + List customers matched to an extranet producer service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param match_id: ID of the match for the customer subscription of the service (required) - :type match_id: int - :param v1_extranets_b2b_peering_consumer_match_id_post_request: (required) - :type v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest + :param id: Producer service 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 @@ -60643,10 +60563,9 @@ def v1_extranets_b2b_peering_consumer_match_id_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_consumer_match_id_post_serialize( + _param = self._v1_extranet_b2b_producer_id_customers_get_serialize( authorization=authorization, - match_id=match_id, - v1_extranets_b2b_peering_consumer_match_id_post_request=v1_extranets_b2b_peering_consumer_match_id_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -60654,7 +60573,7 @@ def v1_extranets_b2b_peering_consumer_match_id_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringConsumerMatchIdPostResponse", + '200': "V1ExtranetB2bProducerIdCustomersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -60663,11 +60582,10 @@ def v1_extranets_b2b_peering_consumer_match_id_post_without_preload_content( return response_data.response - def _v1_extranets_b2b_peering_consumer_match_id_post_serialize( + def _v1_extranet_b2b_producer_id_customers_get_serialize( self, authorization, - match_id, - v1_extranets_b2b_peering_consumer_match_id_post_request, + id, _request_auth, _content_type, _headers, @@ -60689,16 +60607,14 @@ def _v1_extranets_b2b_peering_consumer_match_id_post_serialize( _body_params: Optional[bytes] = None # process the path parameters - if match_id is not None: - _path_params['matchId'] = match_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_extranets_b2b_peering_consumer_match_id_post_request is not None: - _body_params = v1_extranets_b2b_peering_consumer_match_id_post_request # set the HTTP header `Accept` @@ -60709,19 +60625,6 @@ def _v1_extranets_b2b_peering_consumer_match_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] = [ @@ -60729,8 +60632,8 @@ def _v1_extranets_b2b_peering_consumer_match_id_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranets-b2b-peering/consumer/{matchId}', + method='GET', + resource_path='/v1/extranet/b2b/producer/{id}/customers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -60747,10 +60650,10 @@ def _v1_extranets_b2b_peering_consumer_match_id_post_serialize( @validate_call - def v1_extranets_b2b_peering_customer_id_delete( + def v1_extranet_b2b_producer_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the peering service customer")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -60763,14 +60666,14 @@ def v1_extranets_b2b_peering_customer_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringCustomerIdDeleteResponse: - """v1_extranets_b2b_peering_customer_id_delete + ) -> object: + """v1_extranet_b2b_producer_id_delete - Delete a B2B extranet peering service customer + Delete an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the peering service customer (required) + :param id: (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -60794,7 +60697,7 @@ def v1_extranets_b2b_peering_customer_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_customer_id_delete_serialize( + _param = self._v1_extranet_b2b_producer_id_delete_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -60804,7 +60707,7 @@ def v1_extranets_b2b_peering_customer_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringCustomerIdDeleteResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -60818,10 +60721,10 @@ def v1_extranets_b2b_peering_customer_id_delete( @validate_call - def v1_extranets_b2b_peering_customer_id_delete_with_http_info( + def v1_extranet_b2b_producer_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the peering service customer")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -60834,14 +60737,14 @@ def v1_extranets_b2b_peering_customer_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[V1ExtranetsB2bPeeringCustomerIdDeleteResponse]: - """v1_extranets_b2b_peering_customer_id_delete + ) -> ApiResponse[object]: + """v1_extranet_b2b_producer_id_delete - Delete a B2B extranet peering service customer + Delete an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the peering service customer (required) + :param id: (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -60865,7 +60768,7 @@ def v1_extranets_b2b_peering_customer_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_customer_id_delete_serialize( + _param = self._v1_extranet_b2b_producer_id_delete_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -60875,7 +60778,7 @@ def v1_extranets_b2b_peering_customer_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringCustomerIdDeleteResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -60889,10 +60792,10 @@ def v1_extranets_b2b_peering_customer_id_delete_with_http_info( @validate_call - def v1_extranets_b2b_peering_customer_id_delete_without_preload_content( + def v1_extranet_b2b_producer_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the peering service customer")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -60906,13 +60809,13 @@ def v1_extranets_b2b_peering_customer_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_customer_id_delete + """v1_extranet_b2b_producer_id_delete - Delete a B2B extranet peering service customer + Delete an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the peering service customer (required) + :param id: (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -60936,7 +60839,7 @@ def v1_extranets_b2b_peering_customer_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_customer_id_delete_serialize( + _param = self._v1_extranet_b2b_producer_id_delete_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -60946,7 +60849,7 @@ def v1_extranets_b2b_peering_customer_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringCustomerIdDeleteResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -60955,7 +60858,7 @@ def v1_extranets_b2b_peering_customer_id_delete_without_preload_content( return response_data.response - def _v1_extranets_b2b_peering_customer_id_delete_serialize( + def _v1_extranet_b2b_producer_id_delete_serialize( self, authorization, id, @@ -61006,7 +60909,7 @@ def _v1_extranets_b2b_peering_customer_id_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v1/extranets-b2b-peering/customer/{id}', + resource_path='/v1/extranet/b2b/producer/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -61023,10 +60926,10 @@ def _v1_extranets_b2b_peering_customer_id_delete_serialize( @validate_call - def v1_extranets_b2b_peering_customer_id_get( + def v1_extranet_b2b_producer_id_device_status_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the peering service customer")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -61039,14 +60942,14 @@ def v1_extranets_b2b_peering_customer_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringCustomerIdGetResponse: - """v1_extranets_b2b_peering_customer_id_get + ) -> V1ExtranetB2bProducerIdDeviceStatusGetResponse: + """v1_extranet_b2b_producer_id_device_status_get - Get a B2B extranet peering service customer + Get extranet producer device rollout status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the peering service customer (required) + :param id: (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -61070,7 +60973,7 @@ def v1_extranets_b2b_peering_customer_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_customer_id_get_serialize( + _param = self._v1_extranet_b2b_producer_id_device_status_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -61080,7 +60983,7 @@ def v1_extranets_b2b_peering_customer_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringCustomerIdGetResponse", + '200': "V1ExtranetB2bProducerIdDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -61094,10 +60997,10 @@ def v1_extranets_b2b_peering_customer_id_get( @validate_call - def v1_extranets_b2b_peering_customer_id_get_with_http_info( + def v1_extranet_b2b_producer_id_device_status_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the peering service customer")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -61110,14 +61013,14 @@ def v1_extranets_b2b_peering_customer_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[V1ExtranetsB2bPeeringCustomerIdGetResponse]: - """v1_extranets_b2b_peering_customer_id_get + ) -> ApiResponse[V1ExtranetB2bProducerIdDeviceStatusGetResponse]: + """v1_extranet_b2b_producer_id_device_status_get - Get a B2B extranet peering service customer + Get extranet producer device rollout status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the peering service customer (required) + :param id: (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -61141,7 +61044,7 @@ def v1_extranets_b2b_peering_customer_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_customer_id_get_serialize( + _param = self._v1_extranet_b2b_producer_id_device_status_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -61151,7 +61054,7 @@ def v1_extranets_b2b_peering_customer_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringCustomerIdGetResponse", + '200': "V1ExtranetB2bProducerIdDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -61165,10 +61068,10 @@ def v1_extranets_b2b_peering_customer_id_get_with_http_info( @validate_call - def v1_extranets_b2b_peering_customer_id_get_without_preload_content( + def v1_extranet_b2b_producer_id_device_status_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the peering service customer")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -61182,13 +61085,13 @@ def v1_extranets_b2b_peering_customer_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_customer_id_get + """v1_extranet_b2b_producer_id_device_status_get - Get a B2B extranet peering service customer + Get extranet producer device rollout status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the peering service customer (required) + :param id: (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -61212,7 +61115,7 @@ def v1_extranets_b2b_peering_customer_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_customer_id_get_serialize( + _param = self._v1_extranet_b2b_producer_id_device_status_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -61222,7 +61125,7 @@ def v1_extranets_b2b_peering_customer_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringCustomerIdGetResponse", + '200': "V1ExtranetB2bProducerIdDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -61231,7 +61134,7 @@ def v1_extranets_b2b_peering_customer_id_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_peering_customer_id_get_serialize( + def _v1_extranet_b2b_producer_id_device_status_get_serialize( self, authorization, id, @@ -61282,7 +61185,7 @@ def _v1_extranets_b2b_peering_customer_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/extranets-b2b-peering/customer/{id}', + resource_path='/v1/extranet/b2b/producer/{id}/device-status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -61299,10 +61202,10 @@ def _v1_extranets_b2b_peering_customer_id_get_serialize( @validate_call - def v1_extranets_b2b_peering_customer_post( + def v1_extranet_b2b_producer_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -61315,15 +61218,15 @@ def v1_extranets_b2b_peering_customer_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringCustomerPostResponse: - """v1_extranets_b2b_peering_customer_post + ) -> V1ExtranetB2bProducerIdGetResponse: + """v1_extranet_b2b_producer_id_get - Create a new B2B extranet peering service customer + Get an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_customer_post_request: (required) - :type v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest + :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 @@ -61346,9 +61249,9 @@ def v1_extranets_b2b_peering_customer_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_customer_post_serialize( + _param = self._v1_extranet_b2b_producer_id_get_serialize( authorization=authorization, - v1_extranets_b2b_peering_customer_post_request=v1_extranets_b2b_peering_customer_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -61356,7 +61259,7 @@ def v1_extranets_b2b_peering_customer_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringCustomerPostResponse", + '200': "V1ExtranetB2bProducerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -61370,10 +61273,10 @@ def v1_extranets_b2b_peering_customer_post( @validate_call - def v1_extranets_b2b_peering_customer_post_with_http_info( + def v1_extranet_b2b_producer_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -61386,15 +61289,15 @@ def v1_extranets_b2b_peering_customer_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[V1ExtranetsB2bPeeringCustomerPostResponse]: - """v1_extranets_b2b_peering_customer_post + ) -> ApiResponse[V1ExtranetB2bProducerIdGetResponse]: + """v1_extranet_b2b_producer_id_get - Create a new B2B extranet peering service customer + Get an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_customer_post_request: (required) - :type v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest + :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 @@ -61417,9 +61320,9 @@ def v1_extranets_b2b_peering_customer_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_customer_post_serialize( + _param = self._v1_extranet_b2b_producer_id_get_serialize( authorization=authorization, - v1_extranets_b2b_peering_customer_post_request=v1_extranets_b2b_peering_customer_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -61427,7 +61330,7 @@ def v1_extranets_b2b_peering_customer_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringCustomerPostResponse", + '200': "V1ExtranetB2bProducerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -61441,10 +61344,10 @@ def v1_extranets_b2b_peering_customer_post_with_http_info( @validate_call - def v1_extranets_b2b_peering_customer_post_without_preload_content( + def v1_extranet_b2b_producer_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -61458,14 +61361,14 @@ def v1_extranets_b2b_peering_customer_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_customer_post + """v1_extranet_b2b_producer_id_get - Create a new B2B extranet peering service customer + Get an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_customer_post_request: (required) - :type v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest + :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 @@ -61488,9 +61391,9 @@ def v1_extranets_b2b_peering_customer_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_customer_post_serialize( + _param = self._v1_extranet_b2b_producer_id_get_serialize( authorization=authorization, - v1_extranets_b2b_peering_customer_post_request=v1_extranets_b2b_peering_customer_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -61498,7 +61401,7 @@ def v1_extranets_b2b_peering_customer_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringCustomerPostResponse", + '200': "V1ExtranetB2bProducerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -61507,10 +61410,10 @@ def v1_extranets_b2b_peering_customer_post_without_preload_content( return response_data.response - def _v1_extranets_b2b_peering_customer_post_serialize( + def _v1_extranet_b2b_producer_id_get_serialize( self, authorization, - v1_extranets_b2b_peering_customer_post_request, + id, _request_auth, _content_type, _headers, @@ -61532,14 +61435,14 @@ def _v1_extranets_b2b_peering_customer_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_extranets_b2b_peering_customer_post_request is not None: - _body_params = v1_extranets_b2b_peering_customer_post_request # set the HTTP header `Accept` @@ -61550,19 +61453,6 @@ def _v1_extranets_b2b_peering_customer_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] = [ @@ -61570,8 +61460,8 @@ def _v1_extranets_b2b_peering_customer_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranets-b2b-peering/customer', + method='GET', + resource_path='/v1/extranet/b2b/producer/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -61588,10 +61478,11 @@ def _v1_extranets_b2b_peering_customer_post_serialize( @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_id_delete( + def v1_extranet_b2b_producer_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID for the service to customer match to be deleted")], + id: StrictInt, + v1_extranet_b2b_producer_id_put_request: V1ExtranetB2bProducerIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -61604,15 +61495,17 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse: - """v1_extranets_b2b_peering_match_service_to_customer_id_delete + ) -> V1ExtranetB2bProducerIdPutResponse: + """v1_extranet_b2b_producer_id_put - Unsubscribe a customer from a service + Update an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID for the service to customer match to be deleted (required) + :param id: (required) :type id: int + :param v1_extranet_b2b_producer_id_put_request: (required) + :type v1_extranet_b2b_producer_id_put_request: V1ExtranetB2bProducerIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -61635,9 +61528,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_delete_serialize( + _param = self._v1_extranet_b2b_producer_id_put_serialize( authorization=authorization, id=id, + v1_extranet_b2b_producer_id_put_request=v1_extranet_b2b_producer_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -61645,7 +61539,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse", + '200': "V1ExtranetB2bProducerIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -61659,10 +61553,11 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_delete( @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_id_delete_with_http_info( + def v1_extranet_b2b_producer_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID for the service to customer match to be deleted")], + id: StrictInt, + v1_extranet_b2b_producer_id_put_request: V1ExtranetB2bProducerIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -61675,15 +61570,17 @@ def v1_extranets_b2b_peering_match_service_to_customer_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[V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse]: - """v1_extranets_b2b_peering_match_service_to_customer_id_delete + ) -> ApiResponse[V1ExtranetB2bProducerIdPutResponse]: + """v1_extranet_b2b_producer_id_put - Unsubscribe a customer from a service + Update an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID for the service to customer match to be deleted (required) + :param id: (required) :type id: int + :param v1_extranet_b2b_producer_id_put_request: (required) + :type v1_extranet_b2b_producer_id_put_request: V1ExtranetB2bProducerIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -61706,9 +61603,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_delete_serialize( + _param = self._v1_extranet_b2b_producer_id_put_serialize( authorization=authorization, id=id, + v1_extranet_b2b_producer_id_put_request=v1_extranet_b2b_producer_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -61716,7 +61614,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse", + '200': "V1ExtranetB2bProducerIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -61730,10 +61628,11 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_delete_with_http_info( @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_id_delete_without_preload_content( + def v1_extranet_b2b_producer_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID for the service to customer match to be deleted")], + id: StrictInt, + v1_extranet_b2b_producer_id_put_request: V1ExtranetB2bProducerIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -61747,14 +61646,16 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_delete_without_preload _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_match_service_to_customer_id_delete + """v1_extranet_b2b_producer_id_put - Unsubscribe a customer from a service + Update an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID for the service to customer match to be deleted (required) + :param id: (required) :type id: int + :param v1_extranet_b2b_producer_id_put_request: (required) + :type v1_extranet_b2b_producer_id_put_request: V1ExtranetB2bProducerIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -61777,9 +61678,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_delete_without_preload :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_delete_serialize( + _param = self._v1_extranet_b2b_producer_id_put_serialize( authorization=authorization, id=id, + v1_extranet_b2b_producer_id_put_request=v1_extranet_b2b_producer_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -61787,7 +61689,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_delete_without_preload ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse", + '200': "V1ExtranetB2bProducerIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -61796,10 +61698,11 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_delete_without_preload return response_data.response - def _v1_extranets_b2b_peering_match_service_to_customer_id_delete_serialize( + def _v1_extranet_b2b_producer_id_put_serialize( self, authorization, id, + v1_extranet_b2b_producer_id_put_request, _request_auth, _content_type, _headers, @@ -61829,6 +61732,8 @@ def _v1_extranets_b2b_peering_match_service_to_customer_id_delete_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_extranet_b2b_producer_id_put_request is not None: + _body_params = v1_extranet_b2b_producer_id_put_request # set the HTTP header `Accept` @@ -61839,6 +61744,19 @@ def _v1_extranets_b2b_peering_match_service_to_customer_id_delete_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] = [ @@ -61846,8 +61764,8 @@ def _v1_extranets_b2b_peering_match_service_to_customer_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/extranets-b2b-peering/match/service-to-customer/{id}', + method='PUT', + resource_path='/v1/extranet/b2b/producer/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -61864,11 +61782,11 @@ def _v1_extranets_b2b_peering_match_service_to_customer_id_delete_serialize( @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_id_get( + def v1_extranet_b2b_producer_id_status_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Service id for which match details are requested")], - customer_id: Annotated[StrictInt, Field(description="Customer id")], + id: StrictInt, + v1_extranet_b2b_producer_id_status_put_request: V1ExtranetB2bProducerIdStatusPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -61881,17 +61799,17 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse: - """v1_extranets_b2b_peering_match_service_to_customer_id_get + ) -> V1ExtranetB2bProducerIdStatusPutResponse: + """v1_extranet_b2b_producer_id_status_put - Get details for a service to customer subscription + Pause or resume an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Service id for which match details are requested (required) + :param id: (required) :type id: int - :param customer_id: Customer id (required) - :type customer_id: int + :param v1_extranet_b2b_producer_id_status_put_request: (required) + :type v1_extranet_b2b_producer_id_status_put_request: V1ExtranetB2bProducerIdStatusPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -61914,10 +61832,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_get_serialize( + _param = self._v1_extranet_b2b_producer_id_status_put_serialize( authorization=authorization, id=id, - customer_id=customer_id, + v1_extranet_b2b_producer_id_status_put_request=v1_extranet_b2b_producer_id_status_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -61925,7 +61843,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse", + '200': "V1ExtranetB2bProducerIdStatusPutResponse", } response_data = self.api_client.call_api( *_param, @@ -61939,11 +61857,11 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_get( @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_id_get_with_http_info( + def v1_extranet_b2b_producer_id_status_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Service id for which match details are requested")], - customer_id: Annotated[StrictInt, Field(description="Customer id")], + id: StrictInt, + v1_extranet_b2b_producer_id_status_put_request: V1ExtranetB2bProducerIdStatusPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -61956,17 +61874,17 @@ def v1_extranets_b2b_peering_match_service_to_customer_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[V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse]: - """v1_extranets_b2b_peering_match_service_to_customer_id_get + ) -> ApiResponse[V1ExtranetB2bProducerIdStatusPutResponse]: + """v1_extranet_b2b_producer_id_status_put - Get details for a service to customer subscription + Pause or resume an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Service id for which match details are requested (required) + :param id: (required) :type id: int - :param customer_id: Customer id (required) - :type customer_id: int + :param v1_extranet_b2b_producer_id_status_put_request: (required) + :type v1_extranet_b2b_producer_id_status_put_request: V1ExtranetB2bProducerIdStatusPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -61989,10 +61907,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_get_serialize( + _param = self._v1_extranet_b2b_producer_id_status_put_serialize( authorization=authorization, id=id, - customer_id=customer_id, + v1_extranet_b2b_producer_id_status_put_request=v1_extranet_b2b_producer_id_status_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -62000,7 +61918,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse", + '200': "V1ExtranetB2bProducerIdStatusPutResponse", } response_data = self.api_client.call_api( *_param, @@ -62014,11 +61932,11 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_get_with_http_info( @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_id_get_without_preload_content( + def v1_extranet_b2b_producer_id_status_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Service id for which match details are requested")], - customer_id: Annotated[StrictInt, Field(description="Customer id")], + id: StrictInt, + v1_extranet_b2b_producer_id_status_put_request: V1ExtranetB2bProducerIdStatusPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62032,16 +61950,16 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_get_without_preload_co _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_match_service_to_customer_id_get + """v1_extranet_b2b_producer_id_status_put - Get details for a service to customer subscription + Pause or resume an inter-enterprise extranet service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Service id for which match details are requested (required) + :param id: (required) :type id: int - :param customer_id: Customer id (required) - :type customer_id: int + :param v1_extranet_b2b_producer_id_status_put_request: (required) + :type v1_extranet_b2b_producer_id_status_put_request: V1ExtranetB2bProducerIdStatusPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -62064,10 +61982,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_get_without_preload_co :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_get_serialize( + _param = self._v1_extranet_b2b_producer_id_status_put_serialize( authorization=authorization, id=id, - customer_id=customer_id, + v1_extranet_b2b_producer_id_status_put_request=v1_extranet_b2b_producer_id_status_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -62075,7 +61993,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_get_without_preload_co ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse", + '200': "V1ExtranetB2bProducerIdStatusPutResponse", } response_data = self.api_client.call_api( *_param, @@ -62084,11 +62002,11 @@ def v1_extranets_b2b_peering_match_service_to_customer_id_get_without_preload_co return response_data.response - def _v1_extranets_b2b_peering_match_service_to_customer_id_get_serialize( + def _v1_extranet_b2b_producer_id_status_put_serialize( self, authorization, id, - customer_id, + v1_extranet_b2b_producer_id_status_put_request, _request_auth, _content_type, _headers, @@ -62113,15 +62031,13 @@ def _v1_extranets_b2b_peering_match_service_to_customer_id_get_serialize( if id is not None: _path_params['id'] = id # process the query parameters - if customer_id is not None: - - _query_params.append(('customerId', customer_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_extranet_b2b_producer_id_status_put_request is not None: + _body_params = v1_extranet_b2b_producer_id_status_put_request # set the HTTP header `Accept` @@ -62132,6 +62048,19 @@ def _v1_extranets_b2b_peering_match_service_to_customer_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] = [ @@ -62139,8 +62068,8 @@ def _v1_extranets_b2b_peering_match_service_to_customer_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b-peering/match/service-to-customer/{id}', + method='PUT', + resource_path='/v1/extranet/b2b/producer/{id}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -62157,10 +62086,10 @@ def _v1_extranets_b2b_peering_match_service_to_customer_id_get_serialize( @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_post( + def v1_extranet_b2b_producer_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest, + v1_extranet_b2b_producer_post_request: V1ExtranetB2bProducerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62173,15 +62102,15 @@ def v1_extranets_b2b_peering_match_service_to_customer_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse: - """v1_extranets_b2b_peering_match_service_to_customer_post + ) -> V1ExtranetB2bProducerPostResponse: + """v1_extranet_b2b_producer_post - Create B2B extranet configuration for matching a service to a customer + Create an inter-enterprise extranet service (peering, client-to-server, …) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_match_service_to_customer_post_request: (required) - :type v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest + :param v1_extranet_b2b_producer_post_request: (required) + :type v1_extranet_b2b_producer_post_request: V1ExtranetB2bProducerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -62204,9 +62133,9 @@ def v1_extranets_b2b_peering_match_service_to_customer_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_post_serialize( + _param = self._v1_extranet_b2b_producer_post_serialize( authorization=authorization, - v1_extranets_b2b_peering_match_service_to_customer_post_request=v1_extranets_b2b_peering_match_service_to_customer_post_request, + v1_extranet_b2b_producer_post_request=v1_extranet_b2b_producer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -62214,7 +62143,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse", + '200': "V1ExtranetB2bProducerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -62228,10 +62157,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_post( @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_post_with_http_info( + def v1_extranet_b2b_producer_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest, + v1_extranet_b2b_producer_post_request: V1ExtranetB2bProducerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62244,15 +62173,15 @@ def v1_extranets_b2b_peering_match_service_to_customer_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[V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse]: - """v1_extranets_b2b_peering_match_service_to_customer_post + ) -> ApiResponse[V1ExtranetB2bProducerPostResponse]: + """v1_extranet_b2b_producer_post - Create B2B extranet configuration for matching a service to a customer + Create an inter-enterprise extranet service (peering, client-to-server, …) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_match_service_to_customer_post_request: (required) - :type v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest + :param v1_extranet_b2b_producer_post_request: (required) + :type v1_extranet_b2b_producer_post_request: V1ExtranetB2bProducerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -62275,9 +62204,9 @@ def v1_extranets_b2b_peering_match_service_to_customer_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_post_serialize( + _param = self._v1_extranet_b2b_producer_post_serialize( authorization=authorization, - v1_extranets_b2b_peering_match_service_to_customer_post_request=v1_extranets_b2b_peering_match_service_to_customer_post_request, + v1_extranet_b2b_producer_post_request=v1_extranet_b2b_producer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -62285,7 +62214,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse", + '200': "V1ExtranetB2bProducerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -62299,10 +62228,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_post_with_http_info( @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_post_without_preload_content( + def v1_extranet_b2b_producer_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest, + v1_extranet_b2b_producer_post_request: V1ExtranetB2bProducerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62316,14 +62245,14 @@ def v1_extranets_b2b_peering_match_service_to_customer_post_without_preload_cont _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_match_service_to_customer_post + """v1_extranet_b2b_producer_post - Create B2B extranet configuration for matching a service to a customer + Create an inter-enterprise extranet service (peering, client-to-server, …) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_match_service_to_customer_post_request: (required) - :type v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest + :param v1_extranet_b2b_producer_post_request: (required) + :type v1_extranet_b2b_producer_post_request: V1ExtranetB2bProducerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -62346,9 +62275,9 @@ def v1_extranets_b2b_peering_match_service_to_customer_post_without_preload_cont :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_post_serialize( + _param = self._v1_extranet_b2b_producer_post_serialize( authorization=authorization, - v1_extranets_b2b_peering_match_service_to_customer_post_request=v1_extranets_b2b_peering_match_service_to_customer_post_request, + v1_extranet_b2b_producer_post_request=v1_extranet_b2b_producer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -62356,7 +62285,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_post_without_preload_cont ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse", + '200': "V1ExtranetB2bProducerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -62365,10 +62294,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_post_without_preload_cont return response_data.response - def _v1_extranets_b2b_peering_match_service_to_customer_post_serialize( + def _v1_extranet_b2b_producer_post_serialize( self, authorization, - v1_extranets_b2b_peering_match_service_to_customer_post_request, + v1_extranet_b2b_producer_post_request, _request_auth, _content_type, _headers, @@ -62396,8 +62325,8 @@ def _v1_extranets_b2b_peering_match_service_to_customer_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_extranets_b2b_peering_match_service_to_customer_post_request is not None: - _body_params = v1_extranets_b2b_peering_match_service_to_customer_post_request + if v1_extranet_b2b_producer_post_request is not None: + _body_params = v1_extranet_b2b_producer_post_request # set the HTTP header `Accept` @@ -62429,7 +62358,7 @@ def _v1_extranets_b2b_peering_match_service_to_customer_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/extranets-b2b-peering/match/service-to-customer', + resource_path='/v1/extranet/b2b/producer', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -62446,10 +62375,10 @@ def _v1_extranets_b2b_peering_match_service_to_customer_post_serialize( @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_service_status_put( + def v1_extranet_b2b_producer_review_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest, + v1_extranet_b2b_producer_review_post_request: V1ExtranetB2bProducerReviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62462,15 +62391,15 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse: - """v1_extranets_b2b_peering_match_service_to_customer_service_status_put + ) -> V1ExtranetB2bProducerReviewPostResponse: + """v1_extranet_b2b_producer_review_post - Pause B2B match service to customer + Review inter-enterprise extranet service configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: (required) - :type v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest + :param v1_extranet_b2b_producer_review_post_request: (required) + :type v1_extranet_b2b_producer_review_post_request: V1ExtranetB2bProducerReviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -62493,9 +62422,9 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_service_status_put_serialize( + _param = self._v1_extranet_b2b_producer_review_post_serialize( authorization=authorization, - v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request=v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request, + v1_extranet_b2b_producer_review_post_request=v1_extranet_b2b_producer_review_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -62503,7 +62432,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse", + '200': "V1ExtranetB2bProducerReviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -62517,10 +62446,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put( @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_with_http_info( + def v1_extranet_b2b_producer_review_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest, + v1_extranet_b2b_producer_review_post_request: V1ExtranetB2bProducerReviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62533,15 +62462,15 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_with_h _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse]: - """v1_extranets_b2b_peering_match_service_to_customer_service_status_put + ) -> ApiResponse[V1ExtranetB2bProducerReviewPostResponse]: + """v1_extranet_b2b_producer_review_post - Pause B2B match service to customer + Review inter-enterprise extranet service configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: (required) - :type v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest + :param v1_extranet_b2b_producer_review_post_request: (required) + :type v1_extranet_b2b_producer_review_post_request: V1ExtranetB2bProducerReviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -62564,9 +62493,9 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_with_h :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_service_status_put_serialize( + _param = self._v1_extranet_b2b_producer_review_post_serialize( authorization=authorization, - v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request=v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request, + v1_extranet_b2b_producer_review_post_request=v1_extranet_b2b_producer_review_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -62574,7 +62503,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_with_h ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse", + '200': "V1ExtranetB2bProducerReviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -62588,10 +62517,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_with_h @validate_call - def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_without_preload_content( + def v1_extranet_b2b_producer_review_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest, + v1_extranet_b2b_producer_review_post_request: V1ExtranetB2bProducerReviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62605,14 +62534,14 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_withou _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_match_service_to_customer_service_status_put + """v1_extranet_b2b_producer_review_post - Pause B2B match service to customer + Review inter-enterprise extranet service configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: (required) - :type v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest + :param v1_extranet_b2b_producer_review_post_request: (required) + :type v1_extranet_b2b_producer_review_post_request: V1ExtranetB2bProducerReviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -62635,9 +62564,9 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_withou :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_service_to_customer_service_status_put_serialize( + _param = self._v1_extranet_b2b_producer_review_post_serialize( authorization=authorization, - v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request=v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request, + v1_extranet_b2b_producer_review_post_request=v1_extranet_b2b_producer_review_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -62645,7 +62574,7 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_withou ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse", + '200': "V1ExtranetB2bProducerReviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -62654,10 +62583,10 @@ def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_withou return response_data.response - def _v1_extranets_b2b_peering_match_service_to_customer_service_status_put_serialize( + def _v1_extranet_b2b_producer_review_post_serialize( self, authorization, - v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request, + v1_extranet_b2b_producer_review_post_request, _request_auth, _content_type, _headers, @@ -62685,8 +62614,8 @@ def _v1_extranets_b2b_peering_match_service_to_customer_service_status_put_seria _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request is not None: - _body_params = v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request + if v1_extranet_b2b_producer_review_post_request is not None: + _body_params = v1_extranet_b2b_producer_review_post_request # set the HTTP header `Accept` @@ -62717,8 +62646,8 @@ def _v1_extranets_b2b_peering_match_service_to_customer_service_status_put_seria ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/extranets-b2b-peering/match/service-to-customer/service-status', + method='POST', + resource_path='/v1/extranet/b2b/producer/review', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -62735,10 +62664,9 @@ def _v1_extranets_b2b_peering_match_service_to_customer_service_status_put_seria @validate_call - def v1_extranets_b2b_peering_match_services_summary_id_get( + def v1_extranet_b2b_services_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62751,15 +62679,13 @@ def v1_extranets_b2b_peering_match_services_summary_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse: - """v1_extranets_b2b_peering_match_services_summary_id_get + ) -> V1ExtranetB2bServicesSummaryGetResponse: + """v1_extranet_b2b_services_summary_get - Get B2B extranet services matching customers summary + List inter-enterprise extranet services :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the customer (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 @@ -62782,9 +62708,8 @@ def v1_extranets_b2b_peering_match_services_summary_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_services_summary_id_get_serialize( + _param = self._v1_extranet_b2b_services_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -62792,7 +62717,7 @@ def v1_extranets_b2b_peering_match_services_summary_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse", + '200': "V1ExtranetB2bServicesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -62806,10 +62731,9 @@ def v1_extranets_b2b_peering_match_services_summary_id_get( @validate_call - def v1_extranets_b2b_peering_match_services_summary_id_get_with_http_info( + def v1_extranet_b2b_services_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62822,15 +62746,13 @@ def v1_extranets_b2b_peering_match_services_summary_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[V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse]: - """v1_extranets_b2b_peering_match_services_summary_id_get + ) -> ApiResponse[V1ExtranetB2bServicesSummaryGetResponse]: + """v1_extranet_b2b_services_summary_get - Get B2B extranet services matching customers summary + List inter-enterprise extranet services :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the customer (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 @@ -62853,9 +62775,8 @@ def v1_extranets_b2b_peering_match_services_summary_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_services_summary_id_get_serialize( + _param = self._v1_extranet_b2b_services_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -62863,7 +62784,7 @@ def v1_extranets_b2b_peering_match_services_summary_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse", + '200': "V1ExtranetB2bServicesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -62877,10 +62798,9 @@ def v1_extranets_b2b_peering_match_services_summary_id_get_with_http_info( @validate_call - def v1_extranets_b2b_peering_match_services_summary_id_get_without_preload_content( + def v1_extranet_b2b_services_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -62894,14 +62814,12 @@ def v1_extranets_b2b_peering_match_services_summary_id_get_without_preload_conte _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_match_services_summary_id_get + """v1_extranet_b2b_services_summary_get - Get B2B extranet services matching customers summary + List inter-enterprise extranet services :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the customer (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 @@ -62924,9 +62842,8 @@ def v1_extranets_b2b_peering_match_services_summary_id_get_without_preload_conte :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_match_services_summary_id_get_serialize( + _param = self._v1_extranet_b2b_services_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -62934,7 +62851,7 @@ def v1_extranets_b2b_peering_match_services_summary_id_get_without_preload_conte ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse", + '200': "V1ExtranetB2bServicesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -62943,10 +62860,9 @@ def v1_extranets_b2b_peering_match_services_summary_id_get_without_preload_conte return response_data.response - def _v1_extranets_b2b_peering_match_services_summary_id_get_serialize( + def _v1_extranet_b2b_services_summary_get_serialize( self, authorization, - id, _request_auth, _content_type, _headers, @@ -62968,8 +62884,6 @@ def _v1_extranets_b2b_peering_match_services_summary_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: @@ -62994,7 +62908,7 @@ def _v1_extranets_b2b_peering_match_services_summary_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/extranets-b2b-peering/match/services/summary/{id}', + resource_path='/v1/extranet/b2b/services/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -63011,10 +62925,10 @@ def _v1_extranets_b2b_peering_match_services_summary_id_get_serialize( @validate_call - def v1_extranets_b2b_peering_producer_id_get( + def v1_extranet_sites_usage_top_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the service")], + v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63027,15 +62941,15 @@ def v1_extranets_b2b_peering_producer_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringProducerIdGetResponse: - """v1_extranets_b2b_peering_producer_id_get + ) -> V1ExtranetSitesUsageTopPostResponse: + """v1_extranet_sites_usage_top_post - Get B2B extranet peering service producer + Get extranet service top sites usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the service (required) - :type id: int + :param v1_extranet_sites_usage_top_post_request: (required) + :type v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -63058,9 +62972,9 @@ def v1_extranets_b2b_peering_producer_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_producer_id_get_serialize( + _param = self._v1_extranet_sites_usage_top_post_serialize( authorization=authorization, - id=id, + v1_extranet_sites_usage_top_post_request=v1_extranet_sites_usage_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -63068,7 +62982,7 @@ def v1_extranets_b2b_peering_producer_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringProducerIdGetResponse", + '200': "V1ExtranetSitesUsageTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -63082,10 +62996,10 @@ def v1_extranets_b2b_peering_producer_id_get( @validate_call - def v1_extranets_b2b_peering_producer_id_get_with_http_info( + def v1_extranet_sites_usage_top_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the service")], + v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63098,15 +63012,15 @@ def v1_extranets_b2b_peering_producer_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[V1ExtranetsB2bPeeringProducerIdGetResponse]: - """v1_extranets_b2b_peering_producer_id_get + ) -> ApiResponse[V1ExtranetSitesUsageTopPostResponse]: + """v1_extranet_sites_usage_top_post - Get B2B extranet peering service producer + Get extranet service top sites usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the service (required) - :type id: int + :param v1_extranet_sites_usage_top_post_request: (required) + :type v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -63129,9 +63043,9 @@ def v1_extranets_b2b_peering_producer_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_producer_id_get_serialize( + _param = self._v1_extranet_sites_usage_top_post_serialize( authorization=authorization, - id=id, + v1_extranet_sites_usage_top_post_request=v1_extranet_sites_usage_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -63139,7 +63053,7 @@ def v1_extranets_b2b_peering_producer_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringProducerIdGetResponse", + '200': "V1ExtranetSitesUsageTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -63153,10 +63067,10 @@ def v1_extranets_b2b_peering_producer_id_get_with_http_info( @validate_call - def v1_extranets_b2b_peering_producer_id_get_without_preload_content( + def v1_extranet_sites_usage_top_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the service")], + v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63170,14 +63084,14 @@ def v1_extranets_b2b_peering_producer_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_producer_id_get + """v1_extranet_sites_usage_top_post - Get B2B extranet peering service producer + Get extranet service top sites usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the service (required) - :type id: int + :param v1_extranet_sites_usage_top_post_request: (required) + :type v1_extranet_sites_usage_top_post_request: V1ExtranetSitesUsageTopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -63200,9 +63114,9 @@ def v1_extranets_b2b_peering_producer_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_producer_id_get_serialize( + _param = self._v1_extranet_sites_usage_top_post_serialize( authorization=authorization, - id=id, + v1_extranet_sites_usage_top_post_request=v1_extranet_sites_usage_top_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -63210,7 +63124,7 @@ def v1_extranets_b2b_peering_producer_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringProducerIdGetResponse", + '200': "V1ExtranetSitesUsageTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -63219,10 +63133,10 @@ def v1_extranets_b2b_peering_producer_id_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_peering_producer_id_get_serialize( + def _v1_extranet_sites_usage_top_post_serialize( self, authorization, - id, + v1_extranet_sites_usage_top_post_request, _request_auth, _content_type, _headers, @@ -63244,14 +63158,14 @@ def _v1_extranets_b2b_peering_producer_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_extranet_sites_usage_top_post_request is not None: + _body_params = v1_extranet_sites_usage_top_post_request # set the HTTP header `Accept` @@ -63262,6 +63176,19 @@ def _v1_extranets_b2b_peering_producer_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] = [ @@ -63269,8 +63196,8 @@ def _v1_extranets_b2b_peering_producer_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b-peering/producer/{id}', + method='POST', + resource_path='/v1/extranet/sites-usage/top', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -63287,10 +63214,10 @@ def _v1_extranets_b2b_peering_producer_id_get_serialize( @validate_call - def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get( + def v1_extranets_b2b_consumer_device_status_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the customer")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63303,14 +63230,14 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse: - """v1_extranets_b2b_peering_producer_id_matching_customers_summary_get + ) -> V1ExtranetsB2bConsumerDeviceStatusIdGetResponse: + """v1_extranets_b2b_consumer_device_status_id_get - Get B2B extranet customers summary + Get B2B extranet consumer status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the customer (required) + :param id: (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -63334,7 +63261,7 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_serialize( + _param = self._v1_extranets_b2b_consumer_device_status_id_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -63344,7 +63271,7 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse", + '200': "V1ExtranetsB2bConsumerDeviceStatusIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -63358,10 +63285,10 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get( @validate_call - def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_with_http_info( + def v1_extranets_b2b_consumer_device_status_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the customer")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63374,14 +63301,14 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_with_htt _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse]: - """v1_extranets_b2b_peering_producer_id_matching_customers_summary_get + ) -> ApiResponse[V1ExtranetsB2bConsumerDeviceStatusIdGetResponse]: + """v1_extranets_b2b_consumer_device_status_id_get - Get B2B extranet customers summary + Get B2B extranet consumer status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the customer (required) + :param id: (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -63405,7 +63332,7 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_with_htt :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_serialize( + _param = self._v1_extranets_b2b_consumer_device_status_id_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -63415,7 +63342,7 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_with_htt ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse", + '200': "V1ExtranetsB2bConsumerDeviceStatusIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -63429,10 +63356,10 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_with_htt @validate_call - def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_without_preload_content( + def v1_extranets_b2b_consumer_device_status_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="ID of the customer")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63446,13 +63373,13 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_without_ _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_producer_id_matching_customers_summary_get + """v1_extranets_b2b_consumer_device_status_id_get - Get B2B extranet customers summary + Get B2B extranet consumer status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: ID of the customer (required) + :param id: (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -63476,7 +63403,7 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_without_ :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_serialize( + _param = self._v1_extranets_b2b_consumer_device_status_id_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -63486,7 +63413,7 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_without_ ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse", + '200': "V1ExtranetsB2bConsumerDeviceStatusIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -63495,7 +63422,7 @@ def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_without_ return response_data.response - def _v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_serialize( + def _v1_extranets_b2b_consumer_device_status_id_get_serialize( self, authorization, id, @@ -63546,7 +63473,7 @@ def _v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_seriali return self.api_client.param_serialize( method='GET', - resource_path='/v1/extranets-b2b-peering/producer/{id}/matching-customers-summary', + resource_path='/v1/extranets-b2b/consumer-device-status/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -63563,10 +63490,10 @@ def _v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_seriali @validate_call - def v1_extranets_b2b_peering_producer_post( + def v1_extranets_b2b_consumer_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63579,15 +63506,15 @@ def v1_extranets_b2b_peering_producer_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPeeringProducerPostResponse: - """v1_extranets_b2b_peering_producer_post + ) -> object: + """v1_extranets_b2b_consumer_id_delete - Create a new B2B extranet peering service producer + Delete a B2B extranet consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_producer_post_request: (required) - :type v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest + :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 @@ -63610,9 +63537,9 @@ def v1_extranets_b2b_peering_producer_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_producer_post_serialize( + _param = self._v1_extranets_b2b_consumer_id_delete_serialize( authorization=authorization, - v1_extranets_b2b_peering_producer_post_request=v1_extranets_b2b_peering_producer_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -63620,7 +63547,7 @@ def v1_extranets_b2b_peering_producer_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringProducerPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -63634,10 +63561,10 @@ def v1_extranets_b2b_peering_producer_post( @validate_call - def v1_extranets_b2b_peering_producer_post_with_http_info( + def v1_extranets_b2b_consumer_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63650,15 +63577,15 @@ def v1_extranets_b2b_peering_producer_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[V1ExtranetsB2bPeeringProducerPostResponse]: - """v1_extranets_b2b_peering_producer_post + ) -> ApiResponse[object]: + """v1_extranets_b2b_consumer_id_delete - Create a new B2B extranet peering service producer + Delete a B2B extranet consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_producer_post_request: (required) - :type v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest + :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 @@ -63681,9 +63608,9 @@ def v1_extranets_b2b_peering_producer_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_producer_post_serialize( + _param = self._v1_extranets_b2b_consumer_id_delete_serialize( authorization=authorization, - v1_extranets_b2b_peering_producer_post_request=v1_extranets_b2b_peering_producer_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -63691,7 +63618,7 @@ def v1_extranets_b2b_peering_producer_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringProducerPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -63705,10 +63632,10 @@ def v1_extranets_b2b_peering_producer_post_with_http_info( @validate_call - def v1_extranets_b2b_peering_producer_post_without_preload_content( + def v1_extranets_b2b_consumer_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63722,14 +63649,14 @@ def v1_extranets_b2b_peering_producer_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_peering_producer_post + """v1_extranets_b2b_consumer_id_delete - Create a new B2B extranet peering service producer + Delete a B2B extranet consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_peering_producer_post_request: (required) - :type v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest + :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 @@ -63752,9 +63679,9 @@ def v1_extranets_b2b_peering_producer_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_peering_producer_post_serialize( + _param = self._v1_extranets_b2b_consumer_id_delete_serialize( authorization=authorization, - v1_extranets_b2b_peering_producer_post_request=v1_extranets_b2b_peering_producer_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -63762,7 +63689,7 @@ def v1_extranets_b2b_peering_producer_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPeeringProducerPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -63771,10 +63698,10 @@ def v1_extranets_b2b_peering_producer_post_without_preload_content( return response_data.response - def _v1_extranets_b2b_peering_producer_post_serialize( + def _v1_extranets_b2b_consumer_id_delete_serialize( self, authorization, - v1_extranets_b2b_peering_producer_post_request, + id, _request_auth, _content_type, _headers, @@ -63796,14 +63723,14 @@ def _v1_extranets_b2b_peering_producer_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_extranets_b2b_peering_producer_post_request is not None: - _body_params = v1_extranets_b2b_peering_producer_post_request # set the HTTP header `Accept` @@ -63814,19 +63741,6 @@ def _v1_extranets_b2b_peering_producer_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] = [ @@ -63834,8 +63748,8 @@ def _v1_extranets_b2b_peering_producer_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranets-b2b-peering/producer', + method='DELETE', + resource_path='/v1/extranets-b2b/consumer/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -63852,10 +63766,10 @@ def _v1_extranets_b2b_peering_producer_post_serialize( @validate_call - def v1_extranets_b2b_post( + def v1_extranets_b2b_consumer_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63868,15 +63782,15 @@ def v1_extranets_b2b_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bPostResponse: - """v1_extranets_b2b_post + ) -> V1ExtranetsB2bConsumerIdGetResponse: + """v1_extranets_b2b_consumer_id_get - Create a new B2B extranet producer + Get a B2B extranet consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_post_request: (required) - :type v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest + :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 @@ -63899,9 +63813,9 @@ def v1_extranets_b2b_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_post_serialize( + _param = self._v1_extranets_b2b_consumer_id_get_serialize( authorization=authorization, - v1_extranets_b2b_post_request=v1_extranets_b2b_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -63909,7 +63823,7 @@ def v1_extranets_b2b_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPostResponse", + '200': "V1ExtranetsB2bConsumerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -63923,10 +63837,10 @@ def v1_extranets_b2b_post( @validate_call - def v1_extranets_b2b_post_with_http_info( + def v1_extranets_b2b_consumer_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -63939,15 +63853,15 @@ def v1_extranets_b2b_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[V1ExtranetsB2bPostResponse]: - """v1_extranets_b2b_post + ) -> ApiResponse[V1ExtranetsB2bConsumerIdGetResponse]: + """v1_extranets_b2b_consumer_id_get - Create a new B2B extranet producer + Get a B2B extranet consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_post_request: (required) - :type v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest + :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 @@ -63970,9 +63884,9 @@ def v1_extranets_b2b_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_post_serialize( + _param = self._v1_extranets_b2b_consumer_id_get_serialize( authorization=authorization, - v1_extranets_b2b_post_request=v1_extranets_b2b_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -63980,7 +63894,7 @@ def v1_extranets_b2b_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPostResponse", + '200': "V1ExtranetsB2bConsumerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -63994,10 +63908,10 @@ def v1_extranets_b2b_post_with_http_info( @validate_call - def v1_extranets_b2b_post_without_preload_content( + def v1_extranets_b2b_consumer_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -64011,14 +63925,14 @@ def v1_extranets_b2b_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_post + """v1_extranets_b2b_consumer_id_get - Create a new B2B extranet producer + Get a B2B extranet consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_b2b_post_request: (required) - :type v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest + :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 @@ -64041,9 +63955,9 @@ def v1_extranets_b2b_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_post_serialize( + _param = self._v1_extranets_b2b_consumer_id_get_serialize( authorization=authorization, - v1_extranets_b2b_post_request=v1_extranets_b2b_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -64051,7 +63965,7 @@ def v1_extranets_b2b_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bPostResponse", + '200': "V1ExtranetsB2bConsumerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -64060,10 +63974,10 @@ def v1_extranets_b2b_post_without_preload_content( return response_data.response - def _v1_extranets_b2b_post_serialize( + def _v1_extranets_b2b_consumer_id_get_serialize( self, authorization, - v1_extranets_b2b_post_request, + id, _request_auth, _content_type, _headers, @@ -64085,14 +63999,14 @@ def _v1_extranets_b2b_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_extranets_b2b_post_request is not None: - _body_params = v1_extranets_b2b_post_request # set the HTTP header `Accept` @@ -64103,19 +64017,6 @@ def _v1_extranets_b2b_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] = [ @@ -64123,8 +64024,8 @@ def _v1_extranets_b2b_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranets-b2b', + method='GET', + resource_path='/v1/extranets-b2b/consumer/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -64141,10 +64042,10 @@ def _v1_extranets_b2b_post_serialize( @validate_call - def v1_extranets_b2b_producer_device_status_id_get( + def v1_extranets_b2b_consumer_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -64157,15 +64058,15 @@ def v1_extranets_b2b_producer_device_status_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bProducerDeviceStatusIdGetResponse: - """v1_extranets_b2b_producer_device_status_id_get + ) -> V1ExtranetsB2bConsumerPostResponse: + """v1_extranets_b2b_consumer_post - Get B2B extranet producer status + Create a new B2B extranet consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_extranets_b2b_consumer_post_request: (required) + :type v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -64188,9 +64089,9 @@ def v1_extranets_b2b_producer_device_status_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_producer_device_status_id_get_serialize( + _param = self._v1_extranets_b2b_consumer_post_serialize( authorization=authorization, - id=id, + v1_extranets_b2b_consumer_post_request=v1_extranets_b2b_consumer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -64198,7 +64099,7 @@ def v1_extranets_b2b_producer_device_status_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bProducerDeviceStatusIdGetResponse", + '200': "V1ExtranetsB2bConsumerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -64212,10 +64113,10 @@ def v1_extranets_b2b_producer_device_status_id_get( @validate_call - def v1_extranets_b2b_producer_device_status_id_get_with_http_info( + def v1_extranets_b2b_consumer_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -64228,15 +64129,15 @@ def v1_extranets_b2b_producer_device_status_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[V1ExtranetsB2bProducerDeviceStatusIdGetResponse]: - """v1_extranets_b2b_producer_device_status_id_get + ) -> ApiResponse[V1ExtranetsB2bConsumerPostResponse]: + """v1_extranets_b2b_consumer_post - Get B2B extranet producer status + Create a new B2B extranet consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_extranets_b2b_consumer_post_request: (required) + :type v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -64259,9 +64160,9 @@ def v1_extranets_b2b_producer_device_status_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_producer_device_status_id_get_serialize( + _param = self._v1_extranets_b2b_consumer_post_serialize( authorization=authorization, - id=id, + v1_extranets_b2b_consumer_post_request=v1_extranets_b2b_consumer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -64269,7 +64170,7 @@ def v1_extranets_b2b_producer_device_status_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bProducerDeviceStatusIdGetResponse", + '200': "V1ExtranetsB2bConsumerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -64283,10 +64184,10 @@ def v1_extranets_b2b_producer_device_status_id_get_with_http_info( @validate_call - def v1_extranets_b2b_producer_device_status_id_get_without_preload_content( + def v1_extranets_b2b_consumer_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -64300,14 +64201,14 @@ def v1_extranets_b2b_producer_device_status_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_producer_device_status_id_get + """v1_extranets_b2b_consumer_post - Get B2B extranet producer status + Create a new B2B extranet consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_extranets_b2b_consumer_post_request: (required) + :type v1_extranets_b2b_consumer_post_request: V1ExtranetsB2bConsumerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -64330,9 +64231,9 @@ def v1_extranets_b2b_producer_device_status_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_producer_device_status_id_get_serialize( + _param = self._v1_extranets_b2b_consumer_post_serialize( authorization=authorization, - id=id, + v1_extranets_b2b_consumer_post_request=v1_extranets_b2b_consumer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -64340,7 +64241,7 @@ def v1_extranets_b2b_producer_device_status_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bProducerDeviceStatusIdGetResponse", + '200': "V1ExtranetsB2bConsumerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -64349,10 +64250,10 @@ def v1_extranets_b2b_producer_device_status_id_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_producer_device_status_id_get_serialize( + def _v1_extranets_b2b_consumer_post_serialize( self, authorization, - id, + v1_extranets_b2b_consumer_post_request, _request_auth, _content_type, _headers, @@ -64374,14 +64275,14 @@ def _v1_extranets_b2b_producer_device_status_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_extranets_b2b_consumer_post_request is not None: + _body_params = v1_extranets_b2b_consumer_post_request # set the HTTP header `Accept` @@ -64392,6 +64293,19 @@ def _v1_extranets_b2b_producer_device_status_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] = [ @@ -64399,8 +64313,8 @@ def _v1_extranets_b2b_producer_device_status_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-b2b/producer-device-status/{id}', + method='POST', + resource_path='/v1/extranets-b2b/consumer', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -64417,7 +64331,7 @@ def _v1_extranets_b2b_producer_device_status_id_get_serialize( @validate_call - def v1_extranets_b2b_producers_summary_get( + def v1_extranets_b2b_consumer_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -64432,10 +64346,10 @@ def v1_extranets_b2b_producers_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsB2bProducersSummaryGetResponse: - """v1_extranets_b2b_producers_summary_get + ) -> V1ExtranetsB2bConsumerSummaryGetResponse: + """v1_extranets_b2b_consumer_summary_get - Get B2B extranet producers summary + Get B2B extranet consumers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -64461,7 +64375,7 @@ def v1_extranets_b2b_producers_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_producers_summary_get_serialize( + _param = self._v1_extranets_b2b_consumer_summary_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -64470,7 +64384,7 @@ def v1_extranets_b2b_producers_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bProducersSummaryGetResponse", + '200': "V1ExtranetsB2bConsumerSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -64484,7 +64398,7 @@ def v1_extranets_b2b_producers_summary_get( @validate_call - def v1_extranets_b2b_producers_summary_get_with_http_info( + def v1_extranets_b2b_consumer_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -64499,10 +64413,10 @@ def v1_extranets_b2b_producers_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[V1ExtranetsB2bProducersSummaryGetResponse]: - """v1_extranets_b2b_producers_summary_get + ) -> ApiResponse[V1ExtranetsB2bConsumerSummaryGetResponse]: + """v1_extranets_b2b_consumer_summary_get - Get B2B extranet producers summary + Get B2B extranet consumers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -64528,7 +64442,7 @@ def v1_extranets_b2b_producers_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_producers_summary_get_serialize( + _param = self._v1_extranets_b2b_consumer_summary_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -64537,7 +64451,7 @@ def v1_extranets_b2b_producers_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bProducersSummaryGetResponse", + '200': "V1ExtranetsB2bConsumerSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -64551,7 +64465,7 @@ def v1_extranets_b2b_producers_summary_get_with_http_info( @validate_call - def v1_extranets_b2b_producers_summary_get_without_preload_content( + def v1_extranets_b2b_consumer_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -64567,9 +64481,9 @@ def v1_extranets_b2b_producers_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_b2b_producers_summary_get + """v1_extranets_b2b_consumer_summary_get - Get B2B extranet producers summary + Get B2B extranet consumers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -64595,7 +64509,7 @@ def v1_extranets_b2b_producers_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_b2b_producers_summary_get_serialize( + _param = self._v1_extranets_b2b_consumer_summary_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -64604,7 +64518,7 @@ def v1_extranets_b2b_producers_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsB2bProducersSummaryGetResponse", + '200': "V1ExtranetsB2bConsumerSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -64613,7 +64527,7 @@ def v1_extranets_b2b_producers_summary_get_without_preload_content( return response_data.response - def _v1_extranets_b2b_producers_summary_get_serialize( + def _v1_extranets_b2b_consumer_summary_get_serialize( self, authorization, _request_auth, @@ -64661,7 +64575,7 @@ def _v1_extranets_b2b_producers_summary_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/extranets-b2b/producers-summary', + resource_path='/v1/extranets-b2b/consumer-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -64678,9 +64592,10 @@ def _v1_extranets_b2b_producers_summary_get_serialize( @validate_call - def v1_extranets_get( + def v1_extranets_b2b_customer_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -64693,12 +64608,15 @@ def v1_extranets_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsGetResponse: - """v1_extranets_get + ) -> object: + """v1_extranets_b2b_customer_id_delete + Delete a B2B extranet customer :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 @@ -64721,8 +64639,9 @@ def v1_extranets_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_get_serialize( + _param = self._v1_extranets_b2b_customer_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -64730,7 +64649,7 @@ def v1_extranets_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -64744,9 +64663,10 @@ def v1_extranets_get( @validate_call - def v1_extranets_get_with_http_info( + def v1_extranets_b2b_customer_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -64759,12 +64679,15 @@ def v1_extranets_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[V1ExtranetsGetResponse]: - """v1_extranets_get + ) -> ApiResponse[object]: + """v1_extranets_b2b_customer_id_delete + Delete a B2B extranet customer :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 @@ -64787,8 +64710,9 @@ def v1_extranets_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_get_serialize( + _param = self._v1_extranets_b2b_customer_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -64796,7 +64720,7 @@ def v1_extranets_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -64810,9 +64734,10 @@ def v1_extranets_get_with_http_info( @validate_call - def v1_extranets_get_without_preload_content( + def v1_extranets_b2b_customer_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -64826,11 +64751,14 @@ def v1_extranets_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_get + """v1_extranets_b2b_customer_id_delete + Delete a B2B extranet customer :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 @@ -64853,8 +64781,9 @@ def v1_extranets_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_get_serialize( + _param = self._v1_extranets_b2b_customer_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -64862,7 +64791,7 @@ def v1_extranets_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -64871,9 +64800,10 @@ def v1_extranets_get_without_preload_content( return response_data.response - def _v1_extranets_get_serialize( + def _v1_extranets_b2b_customer_id_delete_serialize( self, authorization, + id, _request_auth, _content_type, _headers, @@ -64895,6 +64825,8 @@ def _v1_extranets_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: @@ -64918,8 +64850,8 @@ def _v1_extranets_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets', + method='DELETE', + resource_path='/v1/extranets-b2b/customer/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -64936,11 +64868,10 @@ def _v1_extranets_get_serialize( @validate_call - def v1_extranets_id_apply_post( + def v1_extranets_b2b_customer_info_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: StrictInt, - v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -64953,16 +64884,15 @@ def v1_extranets_id_apply_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsIdApplyPostResponse: - """v1_extranets_id_apply_post + ) -> V1ExtranetsB2bCustomerInfoIdGetResponse: + """v1_extranets_b2b_customer_info_id_get + Get B2B extranet application customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param id: (required) :type id: int - :param v1_extranets_id_apply_post_request: (required) - :type v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -64985,10 +64915,9 @@ def v1_extranets_id_apply_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_apply_post_serialize( + _param = self._v1_extranets_b2b_customer_info_id_get_serialize( authorization=authorization, id=id, - v1_extranets_id_apply_post_request=v1_extranets_id_apply_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -64996,7 +64925,7 @@ def v1_extranets_id_apply_post( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "V1ExtranetsIdApplyPostResponse", + '200': "V1ExtranetsB2bCustomerInfoIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -65010,11 +64939,10 @@ def v1_extranets_id_apply_post( @validate_call - def v1_extranets_id_apply_post_with_http_info( + def v1_extranets_b2b_customer_info_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: StrictInt, - v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -65027,16 +64955,15 @@ def v1_extranets_id_apply_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[V1ExtranetsIdApplyPostResponse]: - """v1_extranets_id_apply_post + ) -> ApiResponse[V1ExtranetsB2bCustomerInfoIdGetResponse]: + """v1_extranets_b2b_customer_info_id_get + Get B2B extranet application customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param id: (required) :type id: int - :param v1_extranets_id_apply_post_request: (required) - :type v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -65059,10 +64986,9 @@ def v1_extranets_id_apply_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_apply_post_serialize( + _param = self._v1_extranets_b2b_customer_info_id_get_serialize( authorization=authorization, id=id, - v1_extranets_id_apply_post_request=v1_extranets_id_apply_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -65070,7 +64996,7 @@ def v1_extranets_id_apply_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "V1ExtranetsIdApplyPostResponse", + '200': "V1ExtranetsB2bCustomerInfoIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -65084,11 +65010,10 @@ def v1_extranets_id_apply_post_with_http_info( @validate_call - def v1_extranets_id_apply_post_without_preload_content( + def v1_extranets_b2b_customer_info_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: StrictInt, - v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -65102,15 +65027,14 @@ def v1_extranets_id_apply_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_id_apply_post + """v1_extranets_b2b_customer_info_id_get + Get B2B extranet application customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param id: (required) :type id: int - :param v1_extranets_id_apply_post_request: (required) - :type v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -65133,10 +65057,9 @@ def v1_extranets_id_apply_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_apply_post_serialize( + _param = self._v1_extranets_b2b_customer_info_id_get_serialize( authorization=authorization, id=id, - v1_extranets_id_apply_post_request=v1_extranets_id_apply_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -65144,7 +65067,7 @@ def v1_extranets_id_apply_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "V1ExtranetsIdApplyPostResponse", + '200': "V1ExtranetsB2bCustomerInfoIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -65153,11 +65076,10 @@ def v1_extranets_id_apply_post_without_preload_content( return response_data.response - def _v1_extranets_id_apply_post_serialize( + def _v1_extranets_b2b_customer_info_id_get_serialize( self, authorization, id, - v1_extranets_id_apply_post_request, _request_auth, _content_type, _headers, @@ -65187,8 +65109,6 @@ def _v1_extranets_id_apply_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_extranets_id_apply_post_request is not None: - _body_params = v1_extranets_id_apply_post_request # set the HTTP header `Accept` @@ -65199,19 +65119,6 @@ def _v1_extranets_id_apply_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] = [ @@ -65219,8 +65126,8 @@ def _v1_extranets_id_apply_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranets/{id}/apply', + method='GET', + resource_path='/v1/extranets-b2b/customer-info/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -65237,10 +65144,9 @@ def _v1_extranets_id_apply_post_serialize( @validate_call - def v1_extranets_id_delete( + def v1_extranets_b2b_general_customers_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -65253,14 +65159,13 @@ def v1_extranets_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsIdDeleteResponse: - """v1_extranets_id_delete + ) -> V1ExtranetsB2bGeneralCustomersSummaryGetResponse: + """v1_extranets_b2b_general_customers_summary_get + Get summary for a B2B extranet peering services customers :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 @@ -65283,9 +65188,8 @@ def v1_extranets_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_delete_serialize( + _param = self._v1_extranets_b2b_general_customers_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -65293,7 +65197,7 @@ def v1_extranets_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdDeleteResponse", + '200': "V1ExtranetsB2bGeneralCustomersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -65307,10 +65211,9 @@ def v1_extranets_id_delete( @validate_call - def v1_extranets_id_delete_with_http_info( + def v1_extranets_b2b_general_customers_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)], @@ -65323,14 +65226,13 @@ def v1_extranets_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[V1ExtranetsIdDeleteResponse]: - """v1_extranets_id_delete + ) -> ApiResponse[V1ExtranetsB2bGeneralCustomersSummaryGetResponse]: + """v1_extranets_b2b_general_customers_summary_get + Get summary for a B2B extranet peering services customers :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 @@ -65353,9 +65255,8 @@ def v1_extranets_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_delete_serialize( + _param = self._v1_extranets_b2b_general_customers_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -65363,7 +65264,7 @@ def v1_extranets_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdDeleteResponse", + '200': "V1ExtranetsB2bGeneralCustomersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -65377,10 +65278,9 @@ def v1_extranets_id_delete_with_http_info( @validate_call - def v1_extranets_id_delete_without_preload_content( + def v1_extranets_b2b_general_customers_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)], @@ -65394,13 +65294,12 @@ def v1_extranets_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_id_delete + """v1_extranets_b2b_general_customers_summary_get + Get summary for a B2B extranet peering services customers :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 @@ -65423,9 +65322,8 @@ def v1_extranets_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_delete_serialize( + _param = self._v1_extranets_b2b_general_customers_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -65433,7 +65331,7 @@ def v1_extranets_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdDeleteResponse", + '200': "V1ExtranetsB2bGeneralCustomersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -65442,10 +65340,9 @@ def v1_extranets_id_delete_without_preload_content( return response_data.response - def _v1_extranets_id_delete_serialize( + def _v1_extranets_b2b_general_customers_summary_get_serialize( self, authorization, - id, _request_auth, _content_type, _headers, @@ -65467,8 +65364,6 @@ def _v1_extranets_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: @@ -65492,8 +65387,8 @@ def _v1_extranets_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/extranets/{id}', + method='GET', + resource_path='/v1/extranets-b2b-general/customers-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -65510,10 +65405,9 @@ def _v1_extranets_id_delete_serialize( @validate_call - def v1_extranets_id_get( + def v1_extranets_b2b_general_services_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -65526,14 +65420,13 @@ def v1_extranets_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsIdGetResponse: - """v1_extranets_id_get + ) -> V1ExtranetsB2bGeneralServicesSummaryGetResponse: + """v1_extranets_b2b_general_services_summary_get + Get a summary for all the B2B extranet services :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 @@ -65556,9 +65449,8 @@ def v1_extranets_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_get_serialize( + _param = self._v1_extranets_b2b_general_services_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -65566,7 +65458,7 @@ def v1_extranets_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdGetResponse", + '200': "V1ExtranetsB2bGeneralServicesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -65580,10 +65472,9 @@ def v1_extranets_id_get( @validate_call - def v1_extranets_id_get_with_http_info( + def v1_extranets_b2b_general_services_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)], @@ -65596,14 +65487,13 @@ def v1_extranets_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[V1ExtranetsIdGetResponse]: - """v1_extranets_id_get + ) -> ApiResponse[V1ExtranetsB2bGeneralServicesSummaryGetResponse]: + """v1_extranets_b2b_general_services_summary_get + Get a summary for all the B2B extranet services :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 @@ -65626,9 +65516,8 @@ def v1_extranets_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_get_serialize( + _param = self._v1_extranets_b2b_general_services_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -65636,7 +65525,7 @@ def v1_extranets_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdGetResponse", + '200': "V1ExtranetsB2bGeneralServicesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -65650,10 +65539,9 @@ def v1_extranets_id_get_with_http_info( @validate_call - def v1_extranets_id_get_without_preload_content( + def v1_extranets_b2b_general_services_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)], @@ -65667,13 +65555,12 @@ def v1_extranets_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_id_get + """v1_extranets_b2b_general_services_summary_get + Get a summary for all the B2B extranet services :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 @@ -65696,9 +65583,8 @@ def v1_extranets_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_get_serialize( + _param = self._v1_extranets_b2b_general_services_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -65706,7 +65592,7 @@ def v1_extranets_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdGetResponse", + '200': "V1ExtranetsB2bGeneralServicesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -65715,10 +65601,9 @@ def v1_extranets_id_get_without_preload_content( return response_data.response - def _v1_extranets_id_get_serialize( + def _v1_extranets_b2b_general_services_summary_get_serialize( self, authorization, - id, _request_auth, _content_type, _headers, @@ -65740,8 +65625,6 @@ def _v1_extranets_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: @@ -65766,7 +65649,7 @@ def _v1_extranets_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/extranets/{id}', + resource_path='/v1/extranets-b2b-general/services-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -65783,11 +65666,11 @@ def _v1_extranets_id_get_serialize( @validate_call - def v1_extranets_id_put( + def v1_extranets_b2b_id_customer_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_extranets_id_put_request: V1ExtranetsIdPutRequest, + id: Annotated[StrictInt, Field(description="Service ID of the application customer is invited to")], + v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -65800,16 +65683,17 @@ def v1_extranets_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsIdPutResponse: - """v1_extranets_id_put + ) -> V1ExtranetsB2bIdCustomerPostResponse: + """v1_extranets_b2b_id_customer_post + Create B2B extranet application customer invite :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) + :param id: Service ID of the application customer is invited to (required) :type id: int - :param v1_extranets_id_put_request: (required) - :type v1_extranets_id_put_request: V1ExtranetsIdPutRequest + :param v1_extranets_b2b_id_customer_post_request: (required) + :type v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -65832,10 +65716,10 @@ def v1_extranets_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_put_serialize( + _param = self._v1_extranets_b2b_id_customer_post_serialize( authorization=authorization, id=id, - v1_extranets_id_put_request=v1_extranets_id_put_request, + v1_extranets_b2b_id_customer_post_request=v1_extranets_b2b_id_customer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -65843,7 +65727,7 @@ def v1_extranets_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdPutResponse", + '200': "V1ExtranetsB2bIdCustomerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -65857,11 +65741,11 @@ def v1_extranets_id_put( @validate_call - def v1_extranets_id_put_with_http_info( + def v1_extranets_b2b_id_customer_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_extranets_id_put_request: V1ExtranetsIdPutRequest, + id: Annotated[StrictInt, Field(description="Service ID of the application customer is invited to")], + v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -65874,16 +65758,17 @@ def v1_extranets_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[V1ExtranetsIdPutResponse]: - """v1_extranets_id_put + ) -> ApiResponse[V1ExtranetsB2bIdCustomerPostResponse]: + """v1_extranets_b2b_id_customer_post + Create B2B extranet application customer invite :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) + :param id: Service ID of the application customer is invited to (required) :type id: int - :param v1_extranets_id_put_request: (required) - :type v1_extranets_id_put_request: V1ExtranetsIdPutRequest + :param v1_extranets_b2b_id_customer_post_request: (required) + :type v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -65906,10 +65791,10 @@ def v1_extranets_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_put_serialize( + _param = self._v1_extranets_b2b_id_customer_post_serialize( authorization=authorization, id=id, - v1_extranets_id_put_request=v1_extranets_id_put_request, + v1_extranets_b2b_id_customer_post_request=v1_extranets_b2b_id_customer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -65917,7 +65802,7 @@ def v1_extranets_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdPutResponse", + '200': "V1ExtranetsB2bIdCustomerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -65931,11 +65816,11 @@ def v1_extranets_id_put_with_http_info( @validate_call - def v1_extranets_id_put_without_preload_content( + def v1_extranets_b2b_id_customer_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_extranets_id_put_request: V1ExtranetsIdPutRequest, + id: Annotated[StrictInt, Field(description="Service ID of the application customer is invited to")], + v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -65949,15 +65834,16 @@ def v1_extranets_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_id_put + """v1_extranets_b2b_id_customer_post + Create B2B extranet application customer invite :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) + :param id: Service ID of the application customer is invited to (required) :type id: int - :param v1_extranets_id_put_request: (required) - :type v1_extranets_id_put_request: V1ExtranetsIdPutRequest + :param v1_extranets_b2b_id_customer_post_request: (required) + :type v1_extranets_b2b_id_customer_post_request: V1ExtranetsB2bIdCustomerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -65980,10 +65866,10 @@ def v1_extranets_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_put_serialize( + _param = self._v1_extranets_b2b_id_customer_post_serialize( authorization=authorization, id=id, - v1_extranets_id_put_request=v1_extranets_id_put_request, + v1_extranets_b2b_id_customer_post_request=v1_extranets_b2b_id_customer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -65991,7 +65877,7 @@ def v1_extranets_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdPutResponse", + '200': "V1ExtranetsB2bIdCustomerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -66000,11 +65886,11 @@ def v1_extranets_id_put_without_preload_content( return response_data.response - def _v1_extranets_id_put_serialize( + def _v1_extranets_b2b_id_customer_post_serialize( self, authorization, id, - v1_extranets_id_put_request, + v1_extranets_b2b_id_customer_post_request, _request_auth, _content_type, _headers, @@ -66034,8 +65920,8 @@ def _v1_extranets_id_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_extranets_id_put_request is not None: - _body_params = v1_extranets_id_put_request + if v1_extranets_b2b_id_customer_post_request is not None: + _body_params = v1_extranets_b2b_id_customer_post_request # set the HTTP header `Accept` @@ -66066,8 +65952,8 @@ def _v1_extranets_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/extranets/{id}', + method='POST', + resource_path='/v1/extranets-b2b/{id}/customer/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -66084,7 +65970,7 @@ def _v1_extranets_id_put_serialize( @validate_call - def v1_extranets_id_status_get( + def v1_extranets_b2b_id_customer_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: StrictInt, @@ -66100,9 +65986,10 @@ def v1_extranets_id_status_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsIdStatusGetResponse: - """v1_extranets_id_status_get + ) -> V1ExtranetsB2bIdCustomerSummaryGetResponse: + """v1_extranets_b2b_id_customer_summary_get + Get B2B extranet application customers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -66130,7 +66017,7 @@ def v1_extranets_id_status_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_status_get_serialize( + _param = self._v1_extranets_b2b_id_customer_summary_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -66140,7 +66027,7 @@ def v1_extranets_id_status_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdStatusGetResponse", + '200': "V1ExtranetsB2bIdCustomerSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -66154,7 +66041,7 @@ def v1_extranets_id_status_get( @validate_call - def v1_extranets_id_status_get_with_http_info( + def v1_extranets_b2b_id_customer_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: StrictInt, @@ -66170,9 +66057,10 @@ def v1_extranets_id_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[V1ExtranetsIdStatusGetResponse]: - """v1_extranets_id_status_get + ) -> ApiResponse[V1ExtranetsB2bIdCustomerSummaryGetResponse]: + """v1_extranets_b2b_id_customer_summary_get + Get B2B extranet application customers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -66200,7 +66088,7 @@ def v1_extranets_id_status_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_status_get_serialize( + _param = self._v1_extranets_b2b_id_customer_summary_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -66210,7 +66098,7 @@ def v1_extranets_id_status_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdStatusGetResponse", + '200': "V1ExtranetsB2bIdCustomerSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -66224,7 +66112,7 @@ def v1_extranets_id_status_get_with_http_info( @validate_call - def v1_extranets_id_status_get_without_preload_content( + def v1_extranets_b2b_id_customer_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], id: StrictInt, @@ -66241,8 +66129,9 @@ def v1_extranets_id_status_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_id_status_get + """v1_extranets_b2b_id_customer_summary_get + Get B2B extranet application customers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -66270,7 +66159,7 @@ def v1_extranets_id_status_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_id_status_get_serialize( + _param = self._v1_extranets_b2b_id_customer_summary_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -66280,7 +66169,7 @@ def v1_extranets_id_status_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsIdStatusGetResponse", + '200': "V1ExtranetsB2bIdCustomerSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -66289,7 +66178,7 @@ def v1_extranets_id_status_get_without_preload_content( return response_data.response - def _v1_extranets_id_status_get_serialize( + def _v1_extranets_b2b_id_customer_summary_get_serialize( self, authorization, id, @@ -66340,7 +66229,7 @@ def _v1_extranets_id_status_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/extranets/{id}/status', + resource_path='/v1/extranets-b2b/{id}/customer-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -66357,11 +66246,10 @@ def _v1_extranets_id_status_get_serialize( @validate_call - def v1_extranets_monitoring_lan_segments_get( + def v1_extranets_b2b_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[Optional[StrictInt], Field(description="Extranet Service Id")] = None, - is_provider: Optional[StrictBool] = None, + id: Annotated[StrictInt, Field(description="ID of the producer service to be deleted")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -66374,16 +66262,15 @@ def v1_extranets_monitoring_lan_segments_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsMonitoringLanSegmentsGetResponse: - """v1_extranets_monitoring_lan_segments_get + ) -> object: + """v1_extranets_b2b_id_delete + Delete a B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Extranet Service Id + :param id: ID of the producer service to be deleted (required) :type id: int - :param is_provider: - :type is_provider: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -66406,10 +66293,9 @@ def v1_extranets_monitoring_lan_segments_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_monitoring_lan_segments_get_serialize( + _param = self._v1_extranets_b2b_id_delete_serialize( authorization=authorization, id=id, - is_provider=is_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -66417,7 +66303,7 @@ def v1_extranets_monitoring_lan_segments_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsMonitoringLanSegmentsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -66431,11 +66317,10 @@ def v1_extranets_monitoring_lan_segments_get( @validate_call - def v1_extranets_monitoring_lan_segments_get_with_http_info( + def v1_extranets_b2b_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[Optional[StrictInt], Field(description="Extranet Service Id")] = None, - is_provider: Optional[StrictBool] = None, + id: Annotated[StrictInt, Field(description="ID of the producer service to be deleted")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -66448,16 +66333,15 @@ def v1_extranets_monitoring_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[V1ExtranetsMonitoringLanSegmentsGetResponse]: - """v1_extranets_monitoring_lan_segments_get + ) -> ApiResponse[object]: + """v1_extranets_b2b_id_delete + Delete a B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Extranet Service Id + :param id: ID of the producer service to be deleted (required) :type id: int - :param is_provider: - :type is_provider: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -66480,10 +66364,9 @@ def v1_extranets_monitoring_lan_segments_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_monitoring_lan_segments_get_serialize( + _param = self._v1_extranets_b2b_id_delete_serialize( authorization=authorization, id=id, - is_provider=is_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -66491,7 +66374,7 @@ def v1_extranets_monitoring_lan_segments_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsMonitoringLanSegmentsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -66505,11 +66388,10 @@ def v1_extranets_monitoring_lan_segments_get_with_http_info( @validate_call - def v1_extranets_monitoring_lan_segments_get_without_preload_content( + def v1_extranets_b2b_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[Optional[StrictInt], Field(description="Extranet Service Id")] = None, - is_provider: Optional[StrictBool] = None, + id: Annotated[StrictInt, Field(description="ID of the producer service to be deleted")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -66523,15 +66405,14 @@ def v1_extranets_monitoring_lan_segments_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_monitoring_lan_segments_get + """v1_extranets_b2b_id_delete + Delete a B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Extranet Service Id + :param id: ID of the producer service to be deleted (required) :type id: int - :param is_provider: - :type is_provider: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -66554,10 +66435,9 @@ def v1_extranets_monitoring_lan_segments_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_monitoring_lan_segments_get_serialize( + _param = self._v1_extranets_b2b_id_delete_serialize( authorization=authorization, id=id, - is_provider=is_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -66565,7 +66445,7 @@ def v1_extranets_monitoring_lan_segments_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsMonitoringLanSegmentsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -66574,11 +66454,10 @@ def v1_extranets_monitoring_lan_segments_get_without_preload_content( return response_data.response - def _v1_extranets_monitoring_lan_segments_get_serialize( + def _v1_extranets_b2b_id_delete_serialize( self, authorization, id, - is_provider, _request_auth, _content_type, _headers, @@ -66600,15 +66479,9 @@ def _v1_extranets_monitoring_lan_segments_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - # process the query parameters if id is not None: - - _query_params.append(('id', id)) - - if is_provider is not None: - - _query_params.append(('isProvider', is_provider)) - + _path_params['id'] = id + # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -66631,8 +66504,8 @@ def _v1_extranets_monitoring_lan_segments_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/extranets-monitoring/lan-segments', + method='DELETE', + resource_path='/v1/extranets-b2b/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -66649,10 +66522,11 @@ def _v1_extranets_monitoring_lan_segments_get_serialize( @validate_call - def v1_extranets_monitoring_nat_usage_get( + def v1_extranets_b2b_id_producer_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Extranet Service Id")], + id: StrictInt, + type: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -66665,14 +66539,17 @@ def v1_extranets_monitoring_nat_usage_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsMonitoringNatUsageGetResponse: - """v1_extranets_monitoring_nat_usage_get + ) -> V1ExtranetsB2bIdProducerGetResponse: + """v1_extranets_b2b_id_producer_get + Get a B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Extranet Service Id (required) + :param id: (required) :type id: int + :param type: + :type type: 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 @@ -66695,9 +66572,10 @@ def v1_extranets_monitoring_nat_usage_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_monitoring_nat_usage_get_serialize( + _param = self._v1_extranets_b2b_id_producer_get_serialize( authorization=authorization, id=id, + type=type, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -66705,7 +66583,7 @@ def v1_extranets_monitoring_nat_usage_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsMonitoringNatUsageGetResponse", + '200': "V1ExtranetsB2bIdProducerGetResponse", } response_data = self.api_client.call_api( *_param, @@ -66719,10 +66597,11 @@ def v1_extranets_monitoring_nat_usage_get( @validate_call - def v1_extranets_monitoring_nat_usage_get_with_http_info( + def v1_extranets_b2b_id_producer_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Extranet Service Id")], + id: StrictInt, + type: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -66735,14 +66614,17 @@ def v1_extranets_monitoring_nat_usage_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[V1ExtranetsMonitoringNatUsageGetResponse]: - """v1_extranets_monitoring_nat_usage_get + ) -> ApiResponse[V1ExtranetsB2bIdProducerGetResponse]: + """v1_extranets_b2b_id_producer_get + Get a B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Extranet Service Id (required) + :param id: (required) :type id: int + :param type: + :type type: 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 @@ -66765,9 +66647,10 @@ def v1_extranets_monitoring_nat_usage_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_monitoring_nat_usage_get_serialize( + _param = self._v1_extranets_b2b_id_producer_get_serialize( authorization=authorization, id=id, + type=type, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -66775,7 +66658,7 @@ def v1_extranets_monitoring_nat_usage_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsMonitoringNatUsageGetResponse", + '200': "V1ExtranetsB2bIdProducerGetResponse", } response_data = self.api_client.call_api( *_param, @@ -66789,10 +66672,11 @@ def v1_extranets_monitoring_nat_usage_get_with_http_info( @validate_call - def v1_extranets_monitoring_nat_usage_get_without_preload_content( + def v1_extranets_b2b_id_producer_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Extranet Service Id")], + id: StrictInt, + type: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -66806,13 +66690,16 @@ def v1_extranets_monitoring_nat_usage_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_monitoring_nat_usage_get + """v1_extranets_b2b_id_producer_get + Get a B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Extranet Service Id (required) + :param id: (required) :type id: int + :param type: + :type type: 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 @@ -66835,9 +66722,10 @@ def v1_extranets_monitoring_nat_usage_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_monitoring_nat_usage_get_serialize( + _param = self._v1_extranets_b2b_id_producer_get_serialize( authorization=authorization, id=id, + type=type, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -66845,7 +66733,7 @@ def v1_extranets_monitoring_nat_usage_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsMonitoringNatUsageGetResponse", + '200': "V1ExtranetsB2bIdProducerGetResponse", } response_data = self.api_client.call_api( *_param, @@ -66854,10 +66742,11 @@ def v1_extranets_monitoring_nat_usage_get_without_preload_content( return response_data.response - def _v1_extranets_monitoring_nat_usage_get_serialize( + def _v1_extranets_b2b_id_producer_get_serialize( self, authorization, id, + type, _request_auth, _content_type, _headers, @@ -66879,10 +66768,12 @@ def _v1_extranets_monitoring_nat_usage_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - # process the query parameters if id is not None: + _path_params['id'] = id + # process the query parameters + if type is not None: - _query_params.append(('id', id)) + _query_params.append(('type', type)) # process the header parameters if authorization is not None: @@ -66907,7 +66798,7 @@ def _v1_extranets_monitoring_nat_usage_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/extranets-monitoring/nat-usage', + resource_path='/v1/extranets-b2b/{id}/producer', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -66924,10 +66815,11 @@ def _v1_extranets_monitoring_nat_usage_get_serialize( @validate_call - def v1_extranets_monitoring_traffic_security_policy_post( + def v1_extranets_b2b_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest, + id: Annotated[StrictInt, Field(description="ID of the B2B Application service")], + v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -66940,15 +66832,17 @@ def v1_extranets_monitoring_traffic_security_policy_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse: - """v1_extranets_monitoring_traffic_security_policy_post + ) -> V1ExtranetsB2bIdPutResponse: + """v1_extranets_b2b_id_put - Get lists of traffic and security policies + Update a B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_monitoring_traffic_security_policy_post_request: (required) - :type v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest + :param id: ID of the B2B Application service (required) + :type id: int + :param v1_extranets_b2b_id_put_request: (required) + :type v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -66971,9 +66865,10 @@ def v1_extranets_monitoring_traffic_security_policy_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_monitoring_traffic_security_policy_post_serialize( + _param = self._v1_extranets_b2b_id_put_serialize( authorization=authorization, - v1_extranets_monitoring_traffic_security_policy_post_request=v1_extranets_monitoring_traffic_security_policy_post_request, + id=id, + v1_extranets_b2b_id_put_request=v1_extranets_b2b_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -66981,7 +66876,7 @@ def v1_extranets_monitoring_traffic_security_policy_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse", + '200': "V1ExtranetsB2bIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -66995,10 +66890,11 @@ def v1_extranets_monitoring_traffic_security_policy_post( @validate_call - def v1_extranets_monitoring_traffic_security_policy_post_with_http_info( + def v1_extranets_b2b_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest, + id: Annotated[StrictInt, Field(description="ID of the B2B Application service")], + v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67011,15 +66907,17 @@ def v1_extranets_monitoring_traffic_security_policy_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[V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse]: - """v1_extranets_monitoring_traffic_security_policy_post + ) -> ApiResponse[V1ExtranetsB2bIdPutResponse]: + """v1_extranets_b2b_id_put - Get lists of traffic and security policies + Update a B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_monitoring_traffic_security_policy_post_request: (required) - :type v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest + :param id: ID of the B2B Application service (required) + :type id: int + :param v1_extranets_b2b_id_put_request: (required) + :type v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -67042,9 +66940,10 @@ def v1_extranets_monitoring_traffic_security_policy_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_monitoring_traffic_security_policy_post_serialize( + _param = self._v1_extranets_b2b_id_put_serialize( authorization=authorization, - v1_extranets_monitoring_traffic_security_policy_post_request=v1_extranets_monitoring_traffic_security_policy_post_request, + id=id, + v1_extranets_b2b_id_put_request=v1_extranets_b2b_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -67052,7 +66951,7 @@ def v1_extranets_monitoring_traffic_security_policy_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse", + '200': "V1ExtranetsB2bIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -67066,10 +66965,11 @@ def v1_extranets_monitoring_traffic_security_policy_post_with_http_info( @validate_call - def v1_extranets_monitoring_traffic_security_policy_post_without_preload_content( + def v1_extranets_b2b_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest, + id: Annotated[StrictInt, Field(description="ID of the B2B Application service")], + v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67083,14 +66983,16 @@ def v1_extranets_monitoring_traffic_security_policy_post_without_preload_content _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_monitoring_traffic_security_policy_post + """v1_extranets_b2b_id_put - Get lists of traffic and security policies + Update a B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_monitoring_traffic_security_policy_post_request: (required) - :type v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest + :param id: ID of the B2B Application service (required) + :type id: int + :param v1_extranets_b2b_id_put_request: (required) + :type v1_extranets_b2b_id_put_request: V1ExtranetsB2bIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -67113,9 +67015,10 @@ def v1_extranets_monitoring_traffic_security_policy_post_without_preload_content :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_monitoring_traffic_security_policy_post_serialize( + _param = self._v1_extranets_b2b_id_put_serialize( authorization=authorization, - v1_extranets_monitoring_traffic_security_policy_post_request=v1_extranets_monitoring_traffic_security_policy_post_request, + id=id, + v1_extranets_b2b_id_put_request=v1_extranets_b2b_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -67123,7 +67026,7 @@ def v1_extranets_monitoring_traffic_security_policy_post_without_preload_content ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse", + '200': "V1ExtranetsB2bIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -67132,10 +67035,11 @@ def v1_extranets_monitoring_traffic_security_policy_post_without_preload_content return response_data.response - def _v1_extranets_monitoring_traffic_security_policy_post_serialize( + def _v1_extranets_b2b_id_put_serialize( self, authorization, - v1_extranets_monitoring_traffic_security_policy_post_request, + id, + v1_extranets_b2b_id_put_request, _request_auth, _content_type, _headers, @@ -67157,14 +67061,16 @@ def _v1_extranets_monitoring_traffic_security_policy_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_extranets_monitoring_traffic_security_policy_post_request is not None: - _body_params = v1_extranets_monitoring_traffic_security_policy_post_request + if v1_extranets_b2b_id_put_request is not None: + _body_params = v1_extranets_b2b_id_put_request # set the HTTP header `Accept` @@ -67195,8 +67101,8 @@ def _v1_extranets_monitoring_traffic_security_policy_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranets-monitoring/traffic-security-policy', + method='PUT', + resource_path='/v1/extranets-b2b/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -67213,10 +67119,11 @@ def _v1_extranets_monitoring_traffic_security_policy_post_serialize( @validate_call - def v1_extranets_post( + def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_post_request: V1ExtranetsPostRequest, + customer_id: StrictInt, + service_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67229,14 +67136,17 @@ def v1_extranets_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsPostResponse: - """v1_extranets_post + ) -> V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse: + """v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get + Get details of a service subscription for a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_post_request: (required) - :type v1_extranets_post_request: V1ExtranetsPostRequest + :param customer_id: (required) + :type customer_id: int + :param service_id: + :type service_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 @@ -67259,9 +67169,10 @@ def v1_extranets_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serialize( authorization=authorization, - v1_extranets_post_request=v1_extranets_post_request, + customer_id=customer_id, + service_id=service_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -67269,7 +67180,7 @@ def v1_extranets_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsPostResponse", + '200': "V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -67283,10 +67194,11 @@ def v1_extranets_post( @validate_call - def v1_extranets_post_with_http_info( + def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_post_request: V1ExtranetsPostRequest, + customer_id: StrictInt, + service_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67299,14 +67211,17 @@ def v1_extranets_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[V1ExtranetsPostResponse]: - """v1_extranets_post + ) -> ApiResponse[V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse]: + """v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get + Get details of a service subscription for a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_post_request: (required) - :type v1_extranets_post_request: V1ExtranetsPostRequest + :param customer_id: (required) + :type customer_id: int + :param service_id: + :type service_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 @@ -67329,9 +67244,10 @@ def v1_extranets_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serialize( authorization=authorization, - v1_extranets_post_request=v1_extranets_post_request, + customer_id=customer_id, + service_id=service_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -67339,7 +67255,7 @@ def v1_extranets_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsPostResponse", + '200': "V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -67353,10 +67269,11 @@ def v1_extranets_post_with_http_info( @validate_call - def v1_extranets_post_without_preload_content( + def v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_post_request: V1ExtranetsPostRequest, + customer_id: StrictInt, + service_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67370,13 +67287,16 @@ def v1_extranets_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_post + """v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get + Get details of a service subscription for a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_post_request: (required) - :type v1_extranets_post_request: V1ExtranetsPostRequest + :param customer_id: (required) + :type customer_id: int + :param service_id: + :type service_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 @@ -67399,9 +67319,10 @@ def v1_extranets_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serialize( authorization=authorization, - v1_extranets_post_request=v1_extranets_post_request, + customer_id=customer_id, + service_id=service_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -67409,7 +67330,7 @@ def v1_extranets_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsPostResponse", + '200': "V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -67418,10 +67339,11 @@ def v1_extranets_post_without_preload_content( return response_data.response - def _v1_extranets_post_serialize( + def _v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_serialize( self, authorization, - v1_extranets_post_request, + customer_id, + service_id, _request_auth, _content_type, _headers, @@ -67443,14 +67365,18 @@ def _v1_extranets_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if customer_id is not None: + _path_params['customerId'] = customer_id # process the query parameters + if service_id is not None: + + _query_params.append(('serviceId', service_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_extranets_post_request is not None: - _body_params = v1_extranets_post_request # set the HTTP header `Accept` @@ -67461,19 +67387,6 @@ def _v1_extranets_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] = [ @@ -67481,8 +67394,8 @@ def _v1_extranets_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranets', + method='GET', + resource_path='/v1/extranets-b2b-peering/consumer/{customerId}/consumer-details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -67499,10 +67412,11 @@ def _v1_extranets_post_serialize( @validate_call - def v1_extranets_resolve_policy_target_post( + def v1_extranets_b2b_peering_consumer_id_prefixes_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest, + id: Annotated[StrictInt, Field(description="consumer id")], + v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67515,14 +67429,17 @@ def v1_extranets_resolve_policy_target_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsResolvePolicyTargetPostResponse: - """v1_extranets_resolve_policy_target_post + ) -> V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse: + """v1_extranets_b2b_peering_consumer_id_prefixes_put + Update B2B extranet peering service consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_resolve_policy_target_post_request: (required) - :type v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest + :param id: consumer id (required) + :type id: int + :param v1_extranets_b2b_peering_consumer_id_prefixes_put_request: (required) + :type v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -67545,9 +67462,10 @@ def v1_extranets_resolve_policy_target_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_resolve_policy_target_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_id_prefixes_put_serialize( authorization=authorization, - v1_extranets_resolve_policy_target_post_request=v1_extranets_resolve_policy_target_post_request, + id=id, + v1_extranets_b2b_peering_consumer_id_prefixes_put_request=v1_extranets_b2b_peering_consumer_id_prefixes_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -67555,7 +67473,7 @@ def v1_extranets_resolve_policy_target_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsResolvePolicyTargetPostResponse", + '200': "V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse", } response_data = self.api_client.call_api( *_param, @@ -67569,10 +67487,11 @@ def v1_extranets_resolve_policy_target_post( @validate_call - def v1_extranets_resolve_policy_target_post_with_http_info( + def v1_extranets_b2b_peering_consumer_id_prefixes_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest, + id: Annotated[StrictInt, Field(description="consumer id")], + v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67585,14 +67504,17 @@ def v1_extranets_resolve_policy_target_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[V1ExtranetsResolvePolicyTargetPostResponse]: - """v1_extranets_resolve_policy_target_post + ) -> ApiResponse[V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse]: + """v1_extranets_b2b_peering_consumer_id_prefixes_put + Update B2B extranet peering service consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_resolve_policy_target_post_request: (required) - :type v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest + :param id: consumer id (required) + :type id: int + :param v1_extranets_b2b_peering_consumer_id_prefixes_put_request: (required) + :type v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -67615,9 +67537,10 @@ def v1_extranets_resolve_policy_target_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_resolve_policy_target_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_id_prefixes_put_serialize( authorization=authorization, - v1_extranets_resolve_policy_target_post_request=v1_extranets_resolve_policy_target_post_request, + id=id, + v1_extranets_b2b_peering_consumer_id_prefixes_put_request=v1_extranets_b2b_peering_consumer_id_prefixes_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -67625,7 +67548,7 @@ def v1_extranets_resolve_policy_target_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsResolvePolicyTargetPostResponse", + '200': "V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse", } response_data = self.api_client.call_api( *_param, @@ -67639,10 +67562,11 @@ def v1_extranets_resolve_policy_target_post_with_http_info( @validate_call - def v1_extranets_resolve_policy_target_post_without_preload_content( + def v1_extranets_b2b_peering_consumer_id_prefixes_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest, + id: Annotated[StrictInt, Field(description="consumer id")], + v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67656,13 +67580,16 @@ def v1_extranets_resolve_policy_target_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_resolve_policy_target_post + """v1_extranets_b2b_peering_consumer_id_prefixes_put + Update B2B extranet peering service consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_resolve_policy_target_post_request: (required) - :type v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest + :param id: consumer id (required) + :type id: int + :param v1_extranets_b2b_peering_consumer_id_prefixes_put_request: (required) + :type v1_extranets_b2b_peering_consumer_id_prefixes_put_request: V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -67685,9 +67612,10 @@ def v1_extranets_resolve_policy_target_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_resolve_policy_target_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_id_prefixes_put_serialize( authorization=authorization, - v1_extranets_resolve_policy_target_post_request=v1_extranets_resolve_policy_target_post_request, + id=id, + v1_extranets_b2b_peering_consumer_id_prefixes_put_request=v1_extranets_b2b_peering_consumer_id_prefixes_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -67695,7 +67623,7 @@ def v1_extranets_resolve_policy_target_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsResolvePolicyTargetPostResponse", + '200': "V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse", } response_data = self.api_client.call_api( *_param, @@ -67704,10 +67632,11 @@ def v1_extranets_resolve_policy_target_post_without_preload_content( return response_data.response - def _v1_extranets_resolve_policy_target_post_serialize( + def _v1_extranets_b2b_peering_consumer_id_prefixes_put_serialize( self, authorization, - v1_extranets_resolve_policy_target_post_request, + id, + v1_extranets_b2b_peering_consumer_id_prefixes_put_request, _request_auth, _content_type, _headers, @@ -67729,14 +67658,16 @@ def _v1_extranets_resolve_policy_target_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_extranets_resolve_policy_target_post_request is not None: - _body_params = v1_extranets_resolve_policy_target_post_request + if v1_extranets_b2b_peering_consumer_id_prefixes_put_request is not None: + _body_params = v1_extranets_b2b_peering_consumer_id_prefixes_put_request # set the HTTP header `Accept` @@ -67767,8 +67698,8 @@ def _v1_extranets_resolve_policy_target_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranets/resolve-policy-target', + method='PUT', + resource_path='/v1/extranets-b2b-peering/consumer/{id}/prefixes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -67785,10 +67716,10 @@ def _v1_extranets_resolve_policy_target_post_serialize( @validate_call - def v1_extranets_source_segments_post( + def v1_extranets_b2b_peering_consumer_match_id_match_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest, + match_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67801,14 +67732,15 @@ def v1_extranets_source_segments_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ExtranetsSourceSegmentsPostResponse: - """v1_extranets_source_segments_post + ) -> V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse: + """v1_extranets_b2b_peering_consumer_match_id_match_details_get + Get details of a service match for a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_source_segments_post_request: (required) - :type v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest + :param match_id: (required) + :type match_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 @@ -67831,9 +67763,9 @@ def v1_extranets_source_segments_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_source_segments_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_match_id_match_details_get_serialize( authorization=authorization, - v1_extranets_source_segments_post_request=v1_extranets_source_segments_post_request, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -67841,7 +67773,7 @@ def v1_extranets_source_segments_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsSourceSegmentsPostResponse", + '200': "V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -67855,10 +67787,10 @@ def v1_extranets_source_segments_post( @validate_call - def v1_extranets_source_segments_post_with_http_info( + def v1_extranets_b2b_peering_consumer_match_id_match_details_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest, + match_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67871,14 +67803,15 @@ def v1_extranets_source_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[V1ExtranetsSourceSegmentsPostResponse]: - """v1_extranets_source_segments_post + ) -> ApiResponse[V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse]: + """v1_extranets_b2b_peering_consumer_match_id_match_details_get + Get details of a service match for a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_source_segments_post_request: (required) - :type v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest + :param match_id: (required) + :type match_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 @@ -67901,9 +67834,9 @@ def v1_extranets_source_segments_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_source_segments_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_match_id_match_details_get_serialize( authorization=authorization, - v1_extranets_source_segments_post_request=v1_extranets_source_segments_post_request, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -67911,7 +67844,7 @@ def v1_extranets_source_segments_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsSourceSegmentsPostResponse", + '200': "V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -67925,10 +67858,10 @@ def v1_extranets_source_segments_post_with_http_info( @validate_call - def v1_extranets_source_segments_post_without_preload_content( + def v1_extranets_b2b_peering_consumer_match_id_match_details_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest, + match_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -67942,13 +67875,14 @@ def v1_extranets_source_segments_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_extranets_source_segments_post + """v1_extranets_b2b_peering_consumer_match_id_match_details_get + Get details of a service match for a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_extranets_source_segments_post_request: (required) - :type v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest + :param match_id: (required) + :type match_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 @@ -67971,9 +67905,9 @@ def v1_extranets_source_segments_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_extranets_source_segments_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_match_id_match_details_get_serialize( authorization=authorization, - v1_extranets_source_segments_post_request=v1_extranets_source_segments_post_request, + match_id=match_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -67981,7 +67915,7 @@ def v1_extranets_source_segments_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetsSourceSegmentsPostResponse", + '200': "V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -67990,10 +67924,10 @@ def v1_extranets_source_segments_post_without_preload_content( return response_data.response - def _v1_extranets_source_segments_post_serialize( + def _v1_extranets_b2b_peering_consumer_match_id_match_details_get_serialize( self, authorization, - v1_extranets_source_segments_post_request, + match_id, _request_auth, _content_type, _headers, @@ -68015,14 +67949,14 @@ def _v1_extranets_source_segments_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if match_id is not None: + _path_params['matchId'] = match_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_extranets_source_segments_post_request is not None: - _body_params = v1_extranets_source_segments_post_request # set the HTTP header `Accept` @@ -68033,19 +67967,6 @@ def _v1_extranets_source_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] = [ @@ -68053,8 +67974,8 @@ def _v1_extranets_source_segments_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/extranets/source-segments', + method='GET', + resource_path='/v1/extranets-b2b-peering/consumer/{matchId}/match-details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -68071,10 +67992,11 @@ def _v1_extranets_source_segments_post_serialize( @validate_call - def v1_flows_flow_table_post( + def v1_extranets_b2b_peering_consumer_match_id_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest, + match_id: Annotated[StrictInt, Field(description="ID of the match for the customer subscription of the service")], + v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -68087,15 +68009,17 @@ def v1_flows_flow_table_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1FlowsFlowTablePostResponse: - """v1_flows_flow_table_post + ) -> V1ExtranetsB2bPeeringConsumerMatchIdPostResponse: + """v1_extranets_b2b_peering_consumer_match_id_post - Get flow table for the app on the device + Create B2B extranet peering service consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_flows_flow_table_post_request: (required) - :type v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest + :param match_id: ID of the match for the customer subscription of the service (required) + :type match_id: int + :param v1_extranets_b2b_peering_consumer_match_id_post_request: (required) + :type v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -68118,9 +68042,10 @@ def v1_flows_flow_table_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_flows_flow_table_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_match_id_post_serialize( authorization=authorization, - v1_flows_flow_table_post_request=v1_flows_flow_table_post_request, + match_id=match_id, + v1_extranets_b2b_peering_consumer_match_id_post_request=v1_extranets_b2b_peering_consumer_match_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -68128,7 +68053,7 @@ def v1_flows_flow_table_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1FlowsFlowTablePostResponse", + '200': "V1ExtranetsB2bPeeringConsumerMatchIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -68142,10 +68067,11 @@ def v1_flows_flow_table_post( @validate_call - def v1_flows_flow_table_post_with_http_info( + def v1_extranets_b2b_peering_consumer_match_id_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest, + match_id: Annotated[StrictInt, Field(description="ID of the match for the customer subscription of the service")], + v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -68158,15 +68084,17 @@ def v1_flows_flow_table_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[V1FlowsFlowTablePostResponse]: - """v1_flows_flow_table_post + ) -> ApiResponse[V1ExtranetsB2bPeeringConsumerMatchIdPostResponse]: + """v1_extranets_b2b_peering_consumer_match_id_post - Get flow table for the app on the device + Create B2B extranet peering service consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_flows_flow_table_post_request: (required) - :type v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest + :param match_id: ID of the match for the customer subscription of the service (required) + :type match_id: int + :param v1_extranets_b2b_peering_consumer_match_id_post_request: (required) + :type v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -68189,9 +68117,10 @@ def v1_flows_flow_table_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_flows_flow_table_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_match_id_post_serialize( authorization=authorization, - v1_flows_flow_table_post_request=v1_flows_flow_table_post_request, + match_id=match_id, + v1_extranets_b2b_peering_consumer_match_id_post_request=v1_extranets_b2b_peering_consumer_match_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -68199,7 +68128,7 @@ def v1_flows_flow_table_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1FlowsFlowTablePostResponse", + '200': "V1ExtranetsB2bPeeringConsumerMatchIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -68213,10 +68142,11 @@ def v1_flows_flow_table_post_with_http_info( @validate_call - def v1_flows_flow_table_post_without_preload_content( + def v1_extranets_b2b_peering_consumer_match_id_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest, + match_id: Annotated[StrictInt, Field(description="ID of the match for the customer subscription of the service")], + v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -68230,14 +68160,16 @@ def v1_flows_flow_table_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_flows_flow_table_post + """v1_extranets_b2b_peering_consumer_match_id_post - Get flow table for the app on the device + Create B2B extranet peering service consumer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_flows_flow_table_post_request: (required) - :type v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest + :param match_id: ID of the match for the customer subscription of the service (required) + :type match_id: int + :param v1_extranets_b2b_peering_consumer_match_id_post_request: (required) + :type v1_extranets_b2b_peering_consumer_match_id_post_request: V1ExtranetsB2bPeeringConsumerMatchIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -68260,9 +68192,10 @@ def v1_flows_flow_table_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_flows_flow_table_post_serialize( + _param = self._v1_extranets_b2b_peering_consumer_match_id_post_serialize( authorization=authorization, - v1_flows_flow_table_post_request=v1_flows_flow_table_post_request, + match_id=match_id, + v1_extranets_b2b_peering_consumer_match_id_post_request=v1_extranets_b2b_peering_consumer_match_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -68270,7 +68203,7 @@ def v1_flows_flow_table_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1FlowsFlowTablePostResponse", + '200': "V1ExtranetsB2bPeeringConsumerMatchIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -68279,10 +68212,11 @@ def v1_flows_flow_table_post_without_preload_content( return response_data.response - def _v1_flows_flow_table_post_serialize( + def _v1_extranets_b2b_peering_consumer_match_id_post_serialize( self, authorization, - v1_flows_flow_table_post_request, + match_id, + v1_extranets_b2b_peering_consumer_match_id_post_request, _request_auth, _content_type, _headers, @@ -68304,14 +68238,16 @@ def _v1_flows_flow_table_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if match_id is not None: + _path_params['matchId'] = match_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_flows_flow_table_post_request is not None: - _body_params = v1_flows_flow_table_post_request + if v1_extranets_b2b_peering_consumer_match_id_post_request is not None: + _body_params = v1_extranets_b2b_peering_consumer_match_id_post_request # set the HTTP header `Accept` @@ -68343,7 +68279,7 @@ def _v1_flows_flow_table_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/flows/flow-table', + resource_path='/v1/extranets-b2b-peering/consumer/{matchId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -68360,10 +68296,10 @@ def _v1_flows_flow_table_post_serialize( @validate_call - def v1_flows_topology_post( + def v1_extranets_b2b_peering_customer_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_flows_topology_post_request: V1FlowsTopologyPostRequest, + id: Annotated[StrictInt, Field(description="ID of the peering service customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -68376,15 +68312,15 @@ def v1_flows_topology_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1FlowsTopologyPostResponse: - """v1_flows_topology_post + ) -> V1ExtranetsB2bPeeringCustomerIdDeleteResponse: + """v1_extranets_b2b_peering_customer_id_delete - Get flow based node and circuit topology for the device + Delete a B2B extranet peering service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_flows_topology_post_request: (required) - :type v1_flows_topology_post_request: V1FlowsTopologyPostRequest + :param id: ID of the peering service customer (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 @@ -68407,9 +68343,9 @@ def v1_flows_topology_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_flows_topology_post_serialize( + _param = self._v1_extranets_b2b_peering_customer_id_delete_serialize( authorization=authorization, - v1_flows_topology_post_request=v1_flows_topology_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -68417,7 +68353,7 @@ def v1_flows_topology_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1FlowsTopologyPostResponse", + '200': "V1ExtranetsB2bPeeringCustomerIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -68431,10 +68367,10 @@ def v1_flows_topology_post( @validate_call - def v1_flows_topology_post_with_http_info( + def v1_extranets_b2b_peering_customer_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_flows_topology_post_request: V1FlowsTopologyPostRequest, + id: Annotated[StrictInt, Field(description="ID of the peering service customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -68447,15 +68383,15 @@ def v1_flows_topology_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[V1FlowsTopologyPostResponse]: - """v1_flows_topology_post + ) -> ApiResponse[V1ExtranetsB2bPeeringCustomerIdDeleteResponse]: + """v1_extranets_b2b_peering_customer_id_delete - Get flow based node and circuit topology for the device + Delete a B2B extranet peering service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_flows_topology_post_request: (required) - :type v1_flows_topology_post_request: V1FlowsTopologyPostRequest + :param id: ID of the peering service customer (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 @@ -68478,9 +68414,9 @@ def v1_flows_topology_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_flows_topology_post_serialize( + _param = self._v1_extranets_b2b_peering_customer_id_delete_serialize( authorization=authorization, - v1_flows_topology_post_request=v1_flows_topology_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -68488,7 +68424,7 @@ def v1_flows_topology_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1FlowsTopologyPostResponse", + '200': "V1ExtranetsB2bPeeringCustomerIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -68502,10 +68438,10 @@ def v1_flows_topology_post_with_http_info( @validate_call - def v1_flows_topology_post_without_preload_content( + def v1_extranets_b2b_peering_customer_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_flows_topology_post_request: V1FlowsTopologyPostRequest, + id: Annotated[StrictInt, Field(description="ID of the peering service customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -68519,14 +68455,14 @@ def v1_flows_topology_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_flows_topology_post + """v1_extranets_b2b_peering_customer_id_delete - Get flow based node and circuit topology for the device + Delete a B2B extranet peering service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_flows_topology_post_request: (required) - :type v1_flows_topology_post_request: V1FlowsTopologyPostRequest + :param id: ID of the peering service customer (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 @@ -68549,9 +68485,9 @@ def v1_flows_topology_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_flows_topology_post_serialize( + _param = self._v1_extranets_b2b_peering_customer_id_delete_serialize( authorization=authorization, - v1_flows_topology_post_request=v1_flows_topology_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -68559,7 +68495,7 @@ def v1_flows_topology_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1FlowsTopologyPostResponse", + '200': "V1ExtranetsB2bPeeringCustomerIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -68568,10 +68504,10 @@ def v1_flows_topology_post_without_preload_content( return response_data.response - def _v1_flows_topology_post_serialize( + def _v1_extranets_b2b_peering_customer_id_delete_serialize( self, authorization, - v1_flows_topology_post_request, + id, _request_auth, _content_type, _headers, @@ -68593,14 +68529,14 @@ def _v1_flows_topology_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_flows_topology_post_request is not None: - _body_params = v1_flows_topology_post_request # set the HTTP header `Accept` @@ -68611,19 +68547,6 @@ def _v1_flows_topology_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] = [ @@ -68631,8 +68554,8 @@ def _v1_flows_topology_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/flows/topology', + method='DELETE', + resource_path='/v1/extranets-b2b-peering/customer/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -68649,10 +68572,10 @@ def _v1_flows_topology_post_serialize( @validate_call - def v1_gateways_delete( + def v1_extranets_b2b_peering_customer_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Optional[StrictInt] = None, + id: Annotated[StrictInt, Field(description="ID of the peering service customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -68665,13 +68588,14 @@ def v1_gateways_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_gateways_delete + ) -> V1ExtranetsB2bPeeringCustomerIdGetResponse: + """v1_extranets_b2b_peering_customer_id_get + Get a B2B extranet peering service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: + :param id: ID of the peering service customer (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -68695,7 +68619,7 @@ def v1_gateways_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_delete_serialize( + _param = self._v1_extranets_b2b_peering_customer_id_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -68705,7 +68629,7 @@ def v1_gateways_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bPeeringCustomerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -68719,10 +68643,10 @@ def v1_gateways_delete( @validate_call - def v1_gateways_delete_with_http_info( + def v1_extranets_b2b_peering_customer_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Optional[StrictInt] = None, + id: Annotated[StrictInt, Field(description="ID of the peering service customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -68735,13 +68659,14 @@ def v1_gateways_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[object]: - """v1_gateways_delete + ) -> ApiResponse[V1ExtranetsB2bPeeringCustomerIdGetResponse]: + """v1_extranets_b2b_peering_customer_id_get + Get a B2B extranet peering service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: + :param id: ID of the peering service customer (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -68765,7 +68690,7 @@ def v1_gateways_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_delete_serialize( + _param = self._v1_extranets_b2b_peering_customer_id_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -68775,7 +68700,7 @@ def v1_gateways_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bPeeringCustomerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -68789,10 +68714,10 @@ def v1_gateways_delete_with_http_info( @validate_call - def v1_gateways_delete_without_preload_content( + def v1_extranets_b2b_peering_customer_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Optional[StrictInt] = None, + id: Annotated[StrictInt, Field(description="ID of the peering service customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -68806,12 +68731,13 @@ def v1_gateways_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_gateways_delete + """v1_extranets_b2b_peering_customer_id_get + Get a B2B extranet peering service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: + :param id: ID of the peering service customer (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -68835,7 +68761,7 @@ def v1_gateways_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_delete_serialize( + _param = self._v1_extranets_b2b_peering_customer_id_get_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -68845,7 +68771,7 @@ def v1_gateways_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bPeeringCustomerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -68854,7 +68780,7 @@ def v1_gateways_delete_without_preload_content( return response_data.response - def _v1_gateways_delete_serialize( + def _v1_extranets_b2b_peering_customer_id_get_serialize( self, authorization, id, @@ -68879,11 +68805,9 @@ def _v1_gateways_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - # process the query parameters if id is not None: - - _query_params.append(('id', id)) - + _path_params['id'] = id + # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -68906,8 +68830,8 @@ def _v1_gateways_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/gateways', + method='GET', + resource_path='/v1/extranets-b2b-peering/customer/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -68924,11 +68848,10 @@ def _v1_gateways_delete_serialize( @validate_call - def v1_gateways_guest_consumer_match_id_get( + def v1_extranets_b2b_peering_customer_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - match_id: StrictInt, - email: Optional[StrictStr] = None, + v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -68941,17 +68864,15 @@ def v1_gateways_guest_consumer_match_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GatewaysGuestConsumerMatchIdGetResponse: - """v1_gateways_guest_consumer_match_id_get + ) -> V1ExtranetsB2bPeeringCustomerPostResponse: + """v1_extranets_b2b_peering_customer_post - Get Site to Site VPN information for a non-Graphiant guest consumer by their email + Create a new B2B extranet peering service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param match_id: (required) - :type match_id: int - :param email: - :type email: str + :param v1_extranets_b2b_peering_customer_post_request: (required) + :type v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -68974,10 +68895,9 @@ def v1_gateways_guest_consumer_match_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_guest_consumer_match_id_get_serialize( + _param = self._v1_extranets_b2b_peering_customer_post_serialize( authorization=authorization, - match_id=match_id, - email=email, + v1_extranets_b2b_peering_customer_post_request=v1_extranets_b2b_peering_customer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -68985,7 +68905,7 @@ def v1_gateways_guest_consumer_match_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysGuestConsumerMatchIdGetResponse", + '200': "V1ExtranetsB2bPeeringCustomerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -68999,11 +68919,10 @@ def v1_gateways_guest_consumer_match_id_get( @validate_call - def v1_gateways_guest_consumer_match_id_get_with_http_info( + def v1_extranets_b2b_peering_customer_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - match_id: StrictInt, - email: Optional[StrictStr] = None, + v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69016,17 +68935,15 @@ def v1_gateways_guest_consumer_match_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[V1GatewaysGuestConsumerMatchIdGetResponse]: - """v1_gateways_guest_consumer_match_id_get + ) -> ApiResponse[V1ExtranetsB2bPeeringCustomerPostResponse]: + """v1_extranets_b2b_peering_customer_post - Get Site to Site VPN information for a non-Graphiant guest consumer by their email + Create a new B2B extranet peering service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param match_id: (required) - :type match_id: int - :param email: - :type email: str + :param v1_extranets_b2b_peering_customer_post_request: (required) + :type v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -69049,10 +68966,9 @@ def v1_gateways_guest_consumer_match_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_guest_consumer_match_id_get_serialize( + _param = self._v1_extranets_b2b_peering_customer_post_serialize( authorization=authorization, - match_id=match_id, - email=email, + v1_extranets_b2b_peering_customer_post_request=v1_extranets_b2b_peering_customer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -69060,7 +68976,7 @@ def v1_gateways_guest_consumer_match_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysGuestConsumerMatchIdGetResponse", + '200': "V1ExtranetsB2bPeeringCustomerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -69074,11 +68990,10 @@ def v1_gateways_guest_consumer_match_id_get_with_http_info( @validate_call - def v1_gateways_guest_consumer_match_id_get_without_preload_content( + def v1_extranets_b2b_peering_customer_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - match_id: StrictInt, - email: Optional[StrictStr] = None, + v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69092,16 +69007,14 @@ def v1_gateways_guest_consumer_match_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_gateways_guest_consumer_match_id_get + """v1_extranets_b2b_peering_customer_post - Get Site to Site VPN information for a non-Graphiant guest consumer by their email + Create a new B2B extranet peering service customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param match_id: (required) - :type match_id: int - :param email: - :type email: str + :param v1_extranets_b2b_peering_customer_post_request: (required) + :type v1_extranets_b2b_peering_customer_post_request: V1ExtranetsB2bPeeringCustomerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -69124,10 +69037,9 @@ def v1_gateways_guest_consumer_match_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_guest_consumer_match_id_get_serialize( + _param = self._v1_extranets_b2b_peering_customer_post_serialize( authorization=authorization, - match_id=match_id, - email=email, + v1_extranets_b2b_peering_customer_post_request=v1_extranets_b2b_peering_customer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -69135,7 +69047,7 @@ def v1_gateways_guest_consumer_match_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysGuestConsumerMatchIdGetResponse", + '200': "V1ExtranetsB2bPeeringCustomerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -69144,11 +69056,10 @@ def v1_gateways_guest_consumer_match_id_get_without_preload_content( return response_data.response - def _v1_gateways_guest_consumer_match_id_get_serialize( + def _v1_extranets_b2b_peering_customer_post_serialize( self, authorization, - match_id, - email, + v1_extranets_b2b_peering_customer_post_request, _request_auth, _content_type, _headers, @@ -69170,18 +69081,14 @@ def _v1_gateways_guest_consumer_match_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if match_id is not None: - _path_params['matchId'] = match_id # process the query parameters - if email is not None: - - _query_params.append(('email', email)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_extranets_b2b_peering_customer_post_request is not None: + _body_params = v1_extranets_b2b_peering_customer_post_request # set the HTTP header `Accept` @@ -69192,6 +69099,19 @@ def _v1_gateways_guest_consumer_match_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] = [ @@ -69199,8 +69119,8 @@ def _v1_gateways_guest_consumer_match_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/gateways/guest-consumer/{matchId}', + method='POST', + resource_path='/v1/extranets-b2b-peering/customer', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -69217,10 +69137,10 @@ def _v1_gateways_guest_consumer_match_id_get_serialize( @validate_call - def v1_gateways_id_details_get( + def v1_extranets_b2b_peering_match_service_to_customer_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + id: Annotated[StrictInt, Field(description="ID for the service to customer match to be deleted")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69233,13 +69153,14 @@ def v1_gateways_id_details_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GatewaysIdDetailsGetResponse: - """v1_gateways_id_details_get + ) -> V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse: + """v1_extranets_b2b_peering_match_service_to_customer_id_delete + Unsubscribe a customer from a service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) + :param id: ID for the service to customer match to be deleted (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -69263,7 +69184,7 @@ def v1_gateways_id_details_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_id_details_get_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_delete_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -69273,7 +69194,7 @@ def v1_gateways_id_details_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysIdDetailsGetResponse", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -69287,10 +69208,10 @@ def v1_gateways_id_details_get( @validate_call - def v1_gateways_id_details_get_with_http_info( + def v1_extranets_b2b_peering_match_service_to_customer_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + id: Annotated[StrictInt, Field(description="ID for the service to customer match to be deleted")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69303,13 +69224,14 @@ def v1_gateways_id_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[V1GatewaysIdDetailsGetResponse]: - """v1_gateways_id_details_get + ) -> ApiResponse[V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse]: + """v1_extranets_b2b_peering_match_service_to_customer_id_delete + Unsubscribe a customer from a service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) + :param id: ID for the service to customer match to be deleted (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -69333,7 +69255,7 @@ def v1_gateways_id_details_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_id_details_get_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_delete_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -69343,7 +69265,7 @@ def v1_gateways_id_details_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysIdDetailsGetResponse", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -69357,10 +69279,10 @@ def v1_gateways_id_details_get_with_http_info( @validate_call - def v1_gateways_id_details_get_without_preload_content( + def v1_extranets_b2b_peering_match_service_to_customer_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + id: Annotated[StrictInt, Field(description="ID for the service to customer match to be deleted")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69374,12 +69296,13 @@ def v1_gateways_id_details_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_gateways_id_details_get + """v1_extranets_b2b_peering_match_service_to_customer_id_delete + Unsubscribe a customer from a service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) + :param id: ID for the service to customer match to be deleted (required) :type id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -69403,7 +69326,7 @@ def v1_gateways_id_details_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_id_details_get_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_delete_serialize( authorization=authorization, id=id, _request_auth=_request_auth, @@ -69413,7 +69336,7 @@ def v1_gateways_id_details_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysIdDetailsGetResponse", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -69422,7 +69345,7 @@ def v1_gateways_id_details_get_without_preload_content( return response_data.response - def _v1_gateways_id_details_get_serialize( + def _v1_extranets_b2b_peering_match_service_to_customer_id_delete_serialize( self, authorization, id, @@ -69472,8 +69395,8 @@ def _v1_gateways_id_details_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/gateways/{id}/details', + method='DELETE', + resource_path='/v1/extranets-b2b-peering/match/service-to-customer/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -69490,12 +69413,11 @@ def _v1_gateways_id_details_get_serialize( @validate_call - def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get( + def v1_extranets_b2b_peering_match_service_to_customer_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - region_id: StrictInt, - vrf_id: StrictInt, - address_family: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="Service id for which match details are requested")], + customer_id: Annotated[StrictInt, Field(description="Customer id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69508,19 +69430,17 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse: - """v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get + ) -> V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse: + """v1_extranets_b2b_peering_match_service_to_customer_id_get - Get the IPv4/Ipv6 Overlay Subnet for an ipsec gateway + Get details for a service to customer subscription :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param region_id: (required) - :type region_id: int - :param vrf_id: (required) - :type vrf_id: int - :param address_family: - :type address_family: str + :param id: Service id for which match details are requested (required) + :type id: int + :param customer_id: Customer id (required) + :type customer_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 @@ -69543,11 +69463,10 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_get_serialize( authorization=authorization, - region_id=region_id, - vrf_id=vrf_id, - address_family=address_family, + id=id, + customer_id=customer_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -69555,7 +69474,7 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -69569,12 +69488,11 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get( @validate_call - def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_with_http_info( + def v1_extranets_b2b_peering_match_service_to_customer_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - region_id: StrictInt, - vrf_id: StrictInt, - address_family: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="Service id for which match details are requested")], + customer_id: Annotated[StrictInt, Field(description="Customer id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69587,19 +69505,17 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_with_http_ _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse]: - """v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get + ) -> ApiResponse[V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse]: + """v1_extranets_b2b_peering_match_service_to_customer_id_get - Get the IPv4/Ipv6 Overlay Subnet for an ipsec gateway + Get details for a service to customer subscription :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param region_id: (required) - :type region_id: int - :param vrf_id: (required) - :type vrf_id: int - :param address_family: - :type address_family: str + :param id: Service id for which match details are requested (required) + :type id: int + :param customer_id: Customer id (required) + :type customer_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 @@ -69622,11 +69538,10 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_with_http_ :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_get_serialize( authorization=authorization, - region_id=region_id, - vrf_id=vrf_id, - address_family=address_family, + id=id, + customer_id=customer_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -69634,7 +69549,7 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_with_http_ ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -69648,12 +69563,11 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_with_http_ @validate_call - def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_without_preload_content( + def v1_extranets_b2b_peering_match_service_to_customer_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - region_id: StrictInt, - vrf_id: StrictInt, - address_family: Optional[StrictStr] = None, + id: Annotated[StrictInt, Field(description="Service id for which match details are requested")], + customer_id: Annotated[StrictInt, Field(description="Customer id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69667,18 +69581,16 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_without_pr _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get + """v1_extranets_b2b_peering_match_service_to_customer_id_get - Get the IPv4/Ipv6 Overlay Subnet for an ipsec gateway + Get details for a service to customer subscription :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param region_id: (required) - :type region_id: int - :param vrf_id: (required) - :type vrf_id: int - :param address_family: - :type address_family: str + :param id: Service id for which match details are requested (required) + :type id: int + :param customer_id: Customer id (required) + :type customer_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 @@ -69701,11 +69613,10 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_without_pr :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_id_get_serialize( authorization=authorization, - region_id=region_id, - vrf_id=vrf_id, - address_family=address_family, + id=id, + customer_id=customer_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -69713,7 +69624,7 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_without_pr ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -69722,12 +69633,11 @@ def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_without_pr return response_data.response - def _v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_serialize( + def _v1_extranets_b2b_peering_match_service_to_customer_id_get_serialize( self, authorization, - region_id, - vrf_id, - address_family, + id, + customer_id, _request_auth, _content_type, _headers, @@ -69749,14 +69659,12 @@ def _v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_serialize _body_params: Optional[bytes] = None # process the path parameters - if region_id is not None: - _path_params['regionId'] = region_id - if vrf_id is not None: - _path_params['vrfId'] = vrf_id + if id is not None: + _path_params['id'] = id # process the query parameters - if address_family is not None: + if customer_id is not None: - _query_params.append(('addressFamily', address_family)) + _query_params.append(('customerId', customer_id)) # process the header parameters if authorization is not None: @@ -69781,7 +69689,7 @@ def _v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_serialize return self.api_client.param_serialize( method='GET', - resource_path='/v1/gateways/ipsec/regions/{regionId}/vrfs/{vrfId}/inside-subnet', + resource_path='/v1/extranets-b2b-peering/match/service-to-customer/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -69798,10 +69706,10 @@ def _v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_serialize @validate_call - def v1_gateways_post( + def v1_extranets_b2b_peering_match_service_to_customer_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_gateways_post_request: V1GatewaysPostRequest, + v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69814,14 +69722,15 @@ def v1_gateways_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GatewaysPostResponse: - """v1_gateways_post + ) -> V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse: + """v1_extranets_b2b_peering_match_service_to_customer_post + Create B2B extranet configuration for matching a service to a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_gateways_post_request: (required) - :type v1_gateways_post_request: V1GatewaysPostRequest + :param v1_extranets_b2b_peering_match_service_to_customer_post_request: (required) + :type v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -69844,9 +69753,9 @@ def v1_gateways_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_post_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_post_serialize( authorization=authorization, - v1_gateways_post_request=v1_gateways_post_request, + v1_extranets_b2b_peering_match_service_to_customer_post_request=v1_extranets_b2b_peering_match_service_to_customer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -69854,7 +69763,7 @@ def v1_gateways_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysPostResponse", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -69868,10 +69777,10 @@ def v1_gateways_post( @validate_call - def v1_gateways_post_with_http_info( + def v1_extranets_b2b_peering_match_service_to_customer_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_gateways_post_request: V1GatewaysPostRequest, + v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69884,14 +69793,15 @@ def v1_gateways_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[V1GatewaysPostResponse]: - """v1_gateways_post + ) -> ApiResponse[V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse]: + """v1_extranets_b2b_peering_match_service_to_customer_post + Create B2B extranet configuration for matching a service to a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_gateways_post_request: (required) - :type v1_gateways_post_request: V1GatewaysPostRequest + :param v1_extranets_b2b_peering_match_service_to_customer_post_request: (required) + :type v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -69914,9 +69824,9 @@ def v1_gateways_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_post_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_post_serialize( authorization=authorization, - v1_gateways_post_request=v1_gateways_post_request, + v1_extranets_b2b_peering_match_service_to_customer_post_request=v1_extranets_b2b_peering_match_service_to_customer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -69924,7 +69834,7 @@ def v1_gateways_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysPostResponse", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -69938,10 +69848,10 @@ def v1_gateways_post_with_http_info( @validate_call - def v1_gateways_post_without_preload_content( + def v1_extranets_b2b_peering_match_service_to_customer_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_gateways_post_request: V1GatewaysPostRequest, + v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -69955,13 +69865,14 @@ def v1_gateways_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_gateways_post + """v1_extranets_b2b_peering_match_service_to_customer_post + Create B2B extranet configuration for matching a service to a customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_gateways_post_request: (required) - :type v1_gateways_post_request: V1GatewaysPostRequest + :param v1_extranets_b2b_peering_match_service_to_customer_post_request: (required) + :type v1_extranets_b2b_peering_match_service_to_customer_post_request: V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -69984,9 +69895,9 @@ def v1_gateways_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_post_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_post_serialize( authorization=authorization, - v1_gateways_post_request=v1_gateways_post_request, + v1_extranets_b2b_peering_match_service_to_customer_post_request=v1_extranets_b2b_peering_match_service_to_customer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -69994,7 +69905,7 @@ def v1_gateways_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysPostResponse", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -70003,10 +69914,10 @@ def v1_gateways_post_without_preload_content( return response_data.response - def _v1_gateways_post_serialize( + def _v1_extranets_b2b_peering_match_service_to_customer_post_serialize( self, authorization, - v1_gateways_post_request, + v1_extranets_b2b_peering_match_service_to_customer_post_request, _request_auth, _content_type, _headers, @@ -70034,8 +69945,8 @@ def _v1_gateways_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_gateways_post_request is not None: - _body_params = v1_gateways_post_request + if v1_extranets_b2b_peering_match_service_to_customer_post_request is not None: + _body_params = v1_extranets_b2b_peering_match_service_to_customer_post_request # set the HTTP header `Accept` @@ -70067,7 +69978,7 @@ def _v1_gateways_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/gateways', + resource_path='/v1/extranets-b2b-peering/match/service-to-customer', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -70084,10 +69995,10 @@ def _v1_gateways_post_serialize( @validate_call - def v1_gateways_put( + def v1_extranets_b2b_peering_match_service_to_customer_service_status_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_gateways_put_request: V1GatewaysPutRequest, + v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70100,14 +70011,15 @@ def v1_gateways_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_gateways_put + ) -> V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse: + """v1_extranets_b2b_peering_match_service_to_customer_service_status_put + Pause B2B match service to customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_gateways_put_request: (required) - :type v1_gateways_put_request: V1GatewaysPutRequest + :param v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: (required) + :type v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -70130,9 +70042,9 @@ def v1_gateways_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_put_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_service_status_put_serialize( authorization=authorization, - v1_gateways_put_request=v1_gateways_put_request, + v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request=v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -70140,7 +70052,7 @@ def v1_gateways_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse", } response_data = self.api_client.call_api( *_param, @@ -70154,10 +70066,10 @@ def v1_gateways_put( @validate_call - def v1_gateways_put_with_http_info( + def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_gateways_put_request: V1GatewaysPutRequest, + v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70170,14 +70082,15 @@ def v1_gateways_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_gateways_put + ) -> ApiResponse[V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse]: + """v1_extranets_b2b_peering_match_service_to_customer_service_status_put + Pause B2B match service to customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_gateways_put_request: (required) - :type v1_gateways_put_request: V1GatewaysPutRequest + :param v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: (required) + :type v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -70200,9 +70113,9 @@ def v1_gateways_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_put_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_service_status_put_serialize( authorization=authorization, - v1_gateways_put_request=v1_gateways_put_request, + v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request=v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -70210,7 +70123,7 @@ def v1_gateways_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse", } response_data = self.api_client.call_api( *_param, @@ -70224,10 +70137,10 @@ def v1_gateways_put_with_http_info( @validate_call - def v1_gateways_put_without_preload_content( + def v1_extranets_b2b_peering_match_service_to_customer_service_status_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_gateways_put_request: V1GatewaysPutRequest, + v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70241,13 +70154,14 @@ def v1_gateways_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_gateways_put + """v1_extranets_b2b_peering_match_service_to_customer_service_status_put + Pause B2B match service to customer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_gateways_put_request: (required) - :type v1_gateways_put_request: V1GatewaysPutRequest + :param v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: (required) + :type v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request: V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -70270,9 +70184,9 @@ def v1_gateways_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_put_serialize( + _param = self._v1_extranets_b2b_peering_match_service_to_customer_service_status_put_serialize( authorization=authorization, - v1_gateways_put_request=v1_gateways_put_request, + v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request=v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -70280,7 +70194,7 @@ def v1_gateways_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse", } response_data = self.api_client.call_api( *_param, @@ -70289,10 +70203,10 @@ def v1_gateways_put_without_preload_content( return response_data.response - def _v1_gateways_put_serialize( + def _v1_extranets_b2b_peering_match_service_to_customer_service_status_put_serialize( self, authorization, - v1_gateways_put_request, + v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request, _request_auth, _content_type, _headers, @@ -70320,8 +70234,8 @@ def _v1_gateways_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_gateways_put_request is not None: - _body_params = v1_gateways_put_request + if v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request is not None: + _body_params = v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request # set the HTTP header `Accept` @@ -70353,7 +70267,7 @@ def _v1_gateways_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/v1/gateways', + resource_path='/v1/extranets-b2b-peering/match/service-to-customer/service-status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -70370,9 +70284,10 @@ def _v1_gateways_put_serialize( @validate_call - def v1_gateways_reference_consumer_get( + def v1_extranets_b2b_peering_match_services_summary_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="ID of the customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70385,13 +70300,15 @@ def v1_gateways_reference_consumer_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GatewaysReferenceConsumerGetResponse: - """v1_gateways_reference_consumer_get + ) -> V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse: + """v1_extranets_b2b_peering_match_services_summary_id_get - Get the priorly-configured IPSec gateway details for a customer, lan segment, region combination to be re-used for any new service matches for that customer with the given lan segment and region + Get B2B extranet services matching customers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: ID of the customer (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 @@ -70414,8 +70331,9 @@ def v1_gateways_reference_consumer_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_reference_consumer_get_serialize( + _param = self._v1_extranets_b2b_peering_match_services_summary_id_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -70423,7 +70341,7 @@ def v1_gateways_reference_consumer_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysReferenceConsumerGetResponse", + '200': "V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -70437,9 +70355,10 @@ def v1_gateways_reference_consumer_get( @validate_call - def v1_gateways_reference_consumer_get_with_http_info( + def v1_extranets_b2b_peering_match_services_summary_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="ID of the customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70452,13 +70371,15 @@ def v1_gateways_reference_consumer_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[V1GatewaysReferenceConsumerGetResponse]: - """v1_gateways_reference_consumer_get + ) -> ApiResponse[V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse]: + """v1_extranets_b2b_peering_match_services_summary_id_get - Get the priorly-configured IPSec gateway details for a customer, lan segment, region combination to be re-used for any new service matches for that customer with the given lan segment and region + Get B2B extranet services matching customers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: ID of the customer (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 @@ -70481,8 +70402,9 @@ def v1_gateways_reference_consumer_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_reference_consumer_get_serialize( + _param = self._v1_extranets_b2b_peering_match_services_summary_id_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -70490,7 +70412,7 @@ def v1_gateways_reference_consumer_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysReferenceConsumerGetResponse", + '200': "V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -70504,9 +70426,10 @@ def v1_gateways_reference_consumer_get_with_http_info( @validate_call - def v1_gateways_reference_consumer_get_without_preload_content( + def v1_extranets_b2b_peering_match_services_summary_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="ID of the customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70520,12 +70443,14 @@ def v1_gateways_reference_consumer_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_gateways_reference_consumer_get + """v1_extranets_b2b_peering_match_services_summary_id_get - Get the priorly-configured IPSec gateway details for a customer, lan segment, region combination to be re-used for any new service matches for that customer with the given lan segment and region + Get B2B extranet services matching customers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: ID of the customer (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 @@ -70548,8 +70473,9 @@ def v1_gateways_reference_consumer_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_reference_consumer_get_serialize( + _param = self._v1_extranets_b2b_peering_match_services_summary_id_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -70557,7 +70483,7 @@ def v1_gateways_reference_consumer_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysReferenceConsumerGetResponse", + '200': "V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -70566,9 +70492,10 @@ def v1_gateways_reference_consumer_get_without_preload_content( return response_data.response - def _v1_gateways_reference_consumer_get_serialize( + def _v1_extranets_b2b_peering_match_services_summary_id_get_serialize( self, authorization, + id, _request_auth, _content_type, _headers, @@ -70590,6 +70517,8 @@ def _v1_gateways_reference_consumer_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: @@ -70614,7 +70543,7 @@ def _v1_gateways_reference_consumer_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/gateways/reference-consumer', + resource_path='/v1/extranets-b2b-peering/match/services/summary/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -70631,9 +70560,10 @@ def _v1_gateways_reference_consumer_get_serialize( @validate_call - def v1_gateways_regions_get( + def v1_extranets_b2b_peering_producer_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="ID of the service")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70646,12 +70576,15 @@ def v1_gateways_regions_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GatewaysRegionsGetResponse: - """v1_gateways_regions_get + ) -> V1ExtranetsB2bPeeringProducerIdGetResponse: + """v1_extranets_b2b_peering_producer_id_get + Get B2B extranet peering service producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: ID of the service (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 @@ -70674,8 +70607,9 @@ def v1_gateways_regions_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_regions_get_serialize( + _param = self._v1_extranets_b2b_peering_producer_id_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -70683,7 +70617,7 @@ def v1_gateways_regions_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysRegionsGetResponse", + '200': "V1ExtranetsB2bPeeringProducerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -70697,9 +70631,10 @@ def v1_gateways_regions_get( @validate_call - def v1_gateways_regions_get_with_http_info( + def v1_extranets_b2b_peering_producer_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="ID of the service")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70712,12 +70647,15 @@ def v1_gateways_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[V1GatewaysRegionsGetResponse]: - """v1_gateways_regions_get + ) -> ApiResponse[V1ExtranetsB2bPeeringProducerIdGetResponse]: + """v1_extranets_b2b_peering_producer_id_get + Get B2B extranet peering service producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: ID of the service (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 @@ -70740,8 +70678,9 @@ def v1_gateways_regions_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_regions_get_serialize( + _param = self._v1_extranets_b2b_peering_producer_id_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -70749,7 +70688,7 @@ def v1_gateways_regions_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysRegionsGetResponse", + '200': "V1ExtranetsB2bPeeringProducerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -70763,9 +70702,10 @@ def v1_gateways_regions_get_with_http_info( @validate_call - def v1_gateways_regions_get_without_preload_content( + def v1_extranets_b2b_peering_producer_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="ID of the service")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70779,11 +70719,14 @@ def v1_gateways_regions_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_gateways_regions_get + """v1_extranets_b2b_peering_producer_id_get + Get B2B extranet peering service producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: ID of the service (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 @@ -70806,8 +70749,9 @@ def v1_gateways_regions_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_regions_get_serialize( + _param = self._v1_extranets_b2b_peering_producer_id_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -70815,7 +70759,7 @@ def v1_gateways_regions_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysRegionsGetResponse", + '200': "V1ExtranetsB2bPeeringProducerIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -70824,9 +70768,10 @@ def v1_gateways_regions_get_without_preload_content( return response_data.response - def _v1_gateways_regions_get_serialize( + def _v1_extranets_b2b_peering_producer_id_get_serialize( self, authorization, + id, _request_auth, _content_type, _headers, @@ -70848,6 +70793,8 @@ def _v1_gateways_regions_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: @@ -70872,7 +70819,7 @@ def _v1_gateways_regions_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/gateways/regions', + resource_path='/v1/extranets-b2b-peering/producer/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -70889,10 +70836,10 @@ def _v1_gateways_regions_get_serialize( @validate_call - def v1_gateways_status_post( + def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_gateways_status_post_request: V1GatewaysStatusPostRequest, + id: Annotated[StrictInt, Field(description="ID of the customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70905,14 +70852,15 @@ def v1_gateways_status_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_gateways_status_post + ) -> V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse: + """v1_extranets_b2b_peering_producer_id_matching_customers_summary_get + Get B2B extranet customers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_gateways_status_post_request: (required) - :type v1_gateways_status_post_request: V1GatewaysStatusPostRequest + :param id: ID of the customer (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 @@ -70935,9 +70883,9 @@ def v1_gateways_status_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_status_post_serialize( + _param = self._v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_serialize( authorization=authorization, - v1_gateways_status_post_request=v1_gateways_status_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -70945,7 +70893,7 @@ def v1_gateways_status_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -70959,10 +70907,10 @@ def v1_gateways_status_post( @validate_call - def v1_gateways_status_post_with_http_info( + def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_gateways_status_post_request: V1GatewaysStatusPostRequest, + id: Annotated[StrictInt, Field(description="ID of the customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -70975,14 +70923,15 @@ def v1_gateways_status_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_gateways_status_post + ) -> ApiResponse[V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse]: + """v1_extranets_b2b_peering_producer_id_matching_customers_summary_get + Get B2B extranet customers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_gateways_status_post_request: (required) - :type v1_gateways_status_post_request: V1GatewaysStatusPostRequest + :param id: ID of the customer (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 @@ -71005,9 +70954,9 @@ def v1_gateways_status_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_status_post_serialize( + _param = self._v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_serialize( authorization=authorization, - v1_gateways_status_post_request=v1_gateways_status_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -71015,7 +70964,7 @@ def v1_gateways_status_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -71029,10 +70978,10 @@ def v1_gateways_status_post_with_http_info( @validate_call - def v1_gateways_status_post_without_preload_content( + def v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_gateways_status_post_request: V1GatewaysStatusPostRequest, + id: Annotated[StrictInt, Field(description="ID of the customer")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71046,13 +70995,14 @@ def v1_gateways_status_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_gateways_status_post + """v1_extranets_b2b_peering_producer_id_matching_customers_summary_get + Get B2B extranet customers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_gateways_status_post_request: (required) - :type v1_gateways_status_post_request: V1GatewaysStatusPostRequest + :param id: ID of the customer (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 @@ -71075,9 +71025,9 @@ def v1_gateways_status_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_status_post_serialize( + _param = self._v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_serialize( authorization=authorization, - v1_gateways_status_post_request=v1_gateways_status_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -71085,7 +71035,7 @@ def v1_gateways_status_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -71094,10 +71044,10 @@ def v1_gateways_status_post_without_preload_content( return response_data.response - def _v1_gateways_status_post_serialize( + def _v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_serialize( self, authorization, - v1_gateways_status_post_request, + id, _request_auth, _content_type, _headers, @@ -71119,14 +71069,14 @@ def _v1_gateways_status_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_gateways_status_post_request is not None: - _body_params = v1_gateways_status_post_request # set the HTTP header `Accept` @@ -71137,19 +71087,6 @@ def _v1_gateways_status_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] = [ @@ -71157,8 +71094,8 @@ def _v1_gateways_status_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/gateways/status', + method='GET', + resource_path='/v1/extranets-b2b-peering/producer/{id}/matching-customers-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -71175,9 +71112,10 @@ def _v1_gateways_status_post_serialize( @validate_call - def v1_gateways_summary_get( + def v1_extranets_b2b_peering_producer_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71190,12 +71128,15 @@ def v1_gateways_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GatewaysSummaryGetResponse: - """v1_gateways_summary_get + ) -> V1ExtranetsB2bPeeringProducerPostResponse: + """v1_extranets_b2b_peering_producer_post + Create a new B2B extranet peering service producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranets_b2b_peering_producer_post_request: (required) + :type v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -71218,8 +71159,9 @@ def v1_gateways_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_summary_get_serialize( + _param = self._v1_extranets_b2b_peering_producer_post_serialize( authorization=authorization, + v1_extranets_b2b_peering_producer_post_request=v1_extranets_b2b_peering_producer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -71227,7 +71169,7 @@ def v1_gateways_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysSummaryGetResponse", + '200': "V1ExtranetsB2bPeeringProducerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -71241,9 +71183,10 @@ def v1_gateways_summary_get( @validate_call - def v1_gateways_summary_get_with_http_info( + def v1_extranets_b2b_peering_producer_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71256,12 +71199,15 @@ def v1_gateways_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[V1GatewaysSummaryGetResponse]: - """v1_gateways_summary_get + ) -> ApiResponse[V1ExtranetsB2bPeeringProducerPostResponse]: + """v1_extranets_b2b_peering_producer_post + Create a new B2B extranet peering service producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranets_b2b_peering_producer_post_request: (required) + :type v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -71284,8 +71230,9 @@ def v1_gateways_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_summary_get_serialize( + _param = self._v1_extranets_b2b_peering_producer_post_serialize( authorization=authorization, + v1_extranets_b2b_peering_producer_post_request=v1_extranets_b2b_peering_producer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -71293,7 +71240,7 @@ def v1_gateways_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysSummaryGetResponse", + '200': "V1ExtranetsB2bPeeringProducerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -71307,9 +71254,10 @@ def v1_gateways_summary_get_with_http_info( @validate_call - def v1_gateways_summary_get_without_preload_content( + def v1_extranets_b2b_peering_producer_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71323,11 +71271,14 @@ def v1_gateways_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_gateways_summary_get + """v1_extranets_b2b_peering_producer_post + Create a new B2B extranet peering service producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranets_b2b_peering_producer_post_request: (required) + :type v1_extranets_b2b_peering_producer_post_request: V1ExtranetsB2bPeeringProducerPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -71350,8 +71301,9 @@ def v1_gateways_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_gateways_summary_get_serialize( + _param = self._v1_extranets_b2b_peering_producer_post_serialize( authorization=authorization, + v1_extranets_b2b_peering_producer_post_request=v1_extranets_b2b_peering_producer_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -71359,7 +71311,7 @@ def v1_gateways_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GatewaysSummaryGetResponse", + '200': "V1ExtranetsB2bPeeringProducerPostResponse", } response_data = self.api_client.call_api( *_param, @@ -71368,9 +71320,10 @@ def v1_gateways_summary_get_without_preload_content( return response_data.response - def _v1_gateways_summary_get_serialize( + def _v1_extranets_b2b_peering_producer_post_serialize( self, authorization, + v1_extranets_b2b_peering_producer_post_request, _request_auth, _content_type, _headers, @@ -71398,6 +71351,8 @@ def _v1_gateways_summary_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_extranets_b2b_peering_producer_post_request is not None: + _body_params = v1_extranets_b2b_peering_producer_post_request # set the HTTP header `Accept` @@ -71408,6 +71363,19 @@ def _v1_gateways_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] = [ @@ -71415,8 +71383,8 @@ def _v1_gateways_summary_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/gateways/summary', + method='POST', + resource_path='/v1/extranets-b2b-peering/producer', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -71433,9 +71401,10 @@ def _v1_gateways_summary_get_serialize( @validate_call - def v1_global_apps_app_list_options_get( + def v1_extranets_b2b_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71448,13 +71417,15 @@ def v1_global_apps_app_list_options_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsAppListOptionsGetResponse: - """v1_global_apps_app_list_options_get + ) -> V1ExtranetsB2bPostResponse: + """v1_extranets_b2b_post - Gets all apps and categories assignable to an app list for the the current enterprise + Create a new B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranets_b2b_post_request: (required) + :type v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -71477,8 +71448,9 @@ def v1_global_apps_app_list_options_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_list_options_get_serialize( + _param = self._v1_extranets_b2b_post_serialize( authorization=authorization, + v1_extranets_b2b_post_request=v1_extranets_b2b_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -71486,7 +71458,7 @@ def v1_global_apps_app_list_options_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListOptionsGetResponse", + '200': "V1ExtranetsB2bPostResponse", } response_data = self.api_client.call_api( *_param, @@ -71500,9 +71472,10 @@ def v1_global_apps_app_list_options_get( @validate_call - def v1_global_apps_app_list_options_get_with_http_info( + def v1_extranets_b2b_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71515,13 +71488,15 @@ def v1_global_apps_app_list_options_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[V1GlobalAppsAppListOptionsGetResponse]: - """v1_global_apps_app_list_options_get + ) -> ApiResponse[V1ExtranetsB2bPostResponse]: + """v1_extranets_b2b_post - Gets all apps and categories assignable to an app list for the the current enterprise + Create a new B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranets_b2b_post_request: (required) + :type v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -71544,8 +71519,9 @@ def v1_global_apps_app_list_options_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_list_options_get_serialize( + _param = self._v1_extranets_b2b_post_serialize( authorization=authorization, + v1_extranets_b2b_post_request=v1_extranets_b2b_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -71553,7 +71529,7 @@ def v1_global_apps_app_list_options_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListOptionsGetResponse", + '200': "V1ExtranetsB2bPostResponse", } response_data = self.api_client.call_api( *_param, @@ -71567,9 +71543,10 @@ def v1_global_apps_app_list_options_get_with_http_info( @validate_call - def v1_global_apps_app_list_options_get_without_preload_content( + def v1_extranets_b2b_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71583,12 +71560,14 @@ def v1_global_apps_app_list_options_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_app_list_options_get + """v1_extranets_b2b_post - Gets all apps and categories assignable to an app list for the the current enterprise + Create a new B2B extranet producer :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranets_b2b_post_request: (required) + :type v1_extranets_b2b_post_request: V1ExtranetsB2bPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -71611,8 +71590,9 @@ def v1_global_apps_app_list_options_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_list_options_get_serialize( + _param = self._v1_extranets_b2b_post_serialize( authorization=authorization, + v1_extranets_b2b_post_request=v1_extranets_b2b_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -71620,7 +71600,7 @@ def v1_global_apps_app_list_options_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListOptionsGetResponse", + '200': "V1ExtranetsB2bPostResponse", } response_data = self.api_client.call_api( *_param, @@ -71629,9 +71609,10 @@ def v1_global_apps_app_list_options_get_without_preload_content( return response_data.response - def _v1_global_apps_app_list_options_get_serialize( + def _v1_extranets_b2b_post_serialize( self, authorization, + v1_extranets_b2b_post_request, _request_auth, _content_type, _headers, @@ -71659,6 +71640,8 @@ def _v1_global_apps_app_list_options_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_extranets_b2b_post_request is not None: + _body_params = v1_extranets_b2b_post_request # set the HTTP header `Accept` @@ -71669,6 +71652,19 @@ def _v1_global_apps_app_list_options_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] = [ @@ -71676,8 +71672,8 @@ def _v1_global_apps_app_list_options_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/apps/app-list-options', + method='POST', + resource_path='/v1/extranets-b2b', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -71694,10 +71690,10 @@ def _v1_global_apps_app_list_options_get_serialize( @validate_call - def v1_global_apps_app_lists_app_list_id_delete( + def v1_extranets_b2b_producer_device_status_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71710,15 +71706,15 @@ def v1_global_apps_app_lists_app_list_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_global_apps_app_lists_app_list_id_delete + ) -> V1ExtranetsB2bProducerDeviceStatusIdGetResponse: + """v1_extranets_b2b_producer_device_status_id_get - Delete an app list under the current enterprise + Get B2B extranet producer status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_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 @@ -71741,9 +71737,9 @@ def v1_global_apps_app_lists_app_list_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_delete_serialize( + _param = self._v1_extranets_b2b_producer_device_status_id_get_serialize( authorization=authorization, - app_list_id=app_list_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -71751,7 +71747,7 @@ def v1_global_apps_app_lists_app_list_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bProducerDeviceStatusIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -71765,10 +71761,10 @@ def v1_global_apps_app_lists_app_list_id_delete( @validate_call - def v1_global_apps_app_lists_app_list_id_delete_with_http_info( + def v1_extranets_b2b_producer_device_status_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71781,15 +71777,15 @@ def v1_global_apps_app_lists_app_list_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[object]: - """v1_global_apps_app_lists_app_list_id_delete + ) -> ApiResponse[V1ExtranetsB2bProducerDeviceStatusIdGetResponse]: + """v1_extranets_b2b_producer_device_status_id_get - Delete an app list under the current enterprise + Get B2B extranet producer status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_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 @@ -71812,9 +71808,9 @@ def v1_global_apps_app_lists_app_list_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_delete_serialize( + _param = self._v1_extranets_b2b_producer_device_status_id_get_serialize( authorization=authorization, - app_list_id=app_list_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -71822,7 +71818,7 @@ def v1_global_apps_app_lists_app_list_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bProducerDeviceStatusIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -71836,10 +71832,10 @@ def v1_global_apps_app_lists_app_list_id_delete_with_http_info( @validate_call - def v1_global_apps_app_lists_app_list_id_delete_without_preload_content( + def v1_extranets_b2b_producer_device_status_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71853,14 +71849,14 @@ def v1_global_apps_app_lists_app_list_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_app_lists_app_list_id_delete + """v1_extranets_b2b_producer_device_status_id_get - Delete an app list under the current enterprise + Get B2B extranet producer status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_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 @@ -71883,9 +71879,9 @@ def v1_global_apps_app_lists_app_list_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_delete_serialize( + _param = self._v1_extranets_b2b_producer_device_status_id_get_serialize( authorization=authorization, - app_list_id=app_list_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -71893,7 +71889,7 @@ def v1_global_apps_app_lists_app_list_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsB2bProducerDeviceStatusIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -71902,10 +71898,10 @@ def v1_global_apps_app_lists_app_list_id_delete_without_preload_content( return response_data.response - def _v1_global_apps_app_lists_app_list_id_delete_serialize( + def _v1_extranets_b2b_producer_device_status_id_get_serialize( self, authorization, - app_list_id, + id, _request_auth, _content_type, _headers, @@ -71927,8 +71923,8 @@ def _v1_global_apps_app_lists_app_list_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if app_list_id is not None: - _path_params['appListId'] = app_list_id + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: @@ -71952,8 +71948,8 @@ def _v1_global_apps_app_lists_app_list_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/global/apps/app-lists/{appListId}', + method='GET', + resource_path='/v1/extranets-b2b/producer-device-status/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -71970,10 +71966,9 @@ def _v1_global_apps_app_lists_app_list_id_delete_serialize( @validate_call - def v1_global_apps_app_lists_app_list_id_details_apps_get( + def v1_extranets_b2b_producers_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -71986,15 +71981,13 @@ def v1_global_apps_app_lists_app_list_id_details_apps_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse: - """v1_global_apps_app_lists_app_list_id_details_apps_get + ) -> V1ExtranetsB2bProducersSummaryGetResponse: + """v1_extranets_b2b_producers_summary_get - Get all apps that are members of the provided app list + Get B2B extranet producers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_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 @@ -72017,9 +72010,8 @@ def v1_global_apps_app_lists_app_list_id_details_apps_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_details_apps_get_serialize( + _param = self._v1_extranets_b2b_producers_summary_get_serialize( authorization=authorization, - app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -72027,7 +72019,7 @@ def v1_global_apps_app_lists_app_list_id_details_apps_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse", + '200': "V1ExtranetsB2bProducersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -72041,10 +72033,9 @@ def v1_global_apps_app_lists_app_list_id_details_apps_get( @validate_call - def v1_global_apps_app_lists_app_list_id_details_apps_get_with_http_info( + def v1_extranets_b2b_producers_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72057,15 +72048,13 @@ def v1_global_apps_app_lists_app_list_id_details_apps_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[V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse]: - """v1_global_apps_app_lists_app_list_id_details_apps_get + ) -> ApiResponse[V1ExtranetsB2bProducersSummaryGetResponse]: + """v1_extranets_b2b_producers_summary_get - Get all apps that are members of the provided app list + Get B2B extranet producers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_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 @@ -72088,9 +72077,8 @@ def v1_global_apps_app_lists_app_list_id_details_apps_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_details_apps_get_serialize( + _param = self._v1_extranets_b2b_producers_summary_get_serialize( authorization=authorization, - app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -72098,7 +72086,7 @@ def v1_global_apps_app_lists_app_list_id_details_apps_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse", + '200': "V1ExtranetsB2bProducersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -72112,10 +72100,9 @@ def v1_global_apps_app_lists_app_list_id_details_apps_get_with_http_info( @validate_call - def v1_global_apps_app_lists_app_list_id_details_apps_get_without_preload_content( + def v1_extranets_b2b_producers_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72129,14 +72116,12 @@ def v1_global_apps_app_lists_app_list_id_details_apps_get_without_preload_conten _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_app_lists_app_list_id_details_apps_get + """v1_extranets_b2b_producers_summary_get - Get all apps that are members of the provided app list + Get B2B extranet producers summary :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_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 @@ -72159,9 +72144,8 @@ def v1_global_apps_app_lists_app_list_id_details_apps_get_without_preload_conten :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_details_apps_get_serialize( + _param = self._v1_extranets_b2b_producers_summary_get_serialize( authorization=authorization, - app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -72169,7 +72153,7 @@ def v1_global_apps_app_lists_app_list_id_details_apps_get_without_preload_conten ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse", + '200': "V1ExtranetsB2bProducersSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -72178,10 +72162,9 @@ def v1_global_apps_app_lists_app_list_id_details_apps_get_without_preload_conten return response_data.response - def _v1_global_apps_app_lists_app_list_id_details_apps_get_serialize( + def _v1_extranets_b2b_producers_summary_get_serialize( self, authorization, - app_list_id, _request_auth, _content_type, _headers, @@ -72203,8 +72186,6 @@ def _v1_global_apps_app_lists_app_list_id_details_apps_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if app_list_id is not None: - _path_params['appListId'] = app_list_id # process the query parameters # process the header parameters if authorization is not None: @@ -72229,7 +72210,7 @@ def _v1_global_apps_app_lists_app_list_id_details_apps_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/apps/app-lists/{appListId}/details/apps', + resource_path='/v1/extranets-b2b/producers-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -72246,10 +72227,9 @@ def _v1_global_apps_app_lists_app_list_id_details_apps_get_serialize( @validate_call - def v1_global_apps_app_lists_app_list_id_get( + def v1_extranets_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72262,15 +72242,12 @@ def v1_global_apps_app_lists_app_list_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsAppListsAppListIdGetResponse: - """v1_global_apps_app_lists_app_list_id_get + ) -> V1ExtranetsGetResponse: + """v1_extranets_get - Get the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_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 @@ -72293,9 +72270,8 @@ def v1_global_apps_app_lists_app_list_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_get_serialize( + _param = self._v1_extranets_get_serialize( authorization=authorization, - app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -72303,7 +72279,7 @@ def v1_global_apps_app_lists_app_list_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsAppListIdGetResponse", + '200': "V1ExtranetsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -72317,10 +72293,9 @@ def v1_global_apps_app_lists_app_list_id_get( @validate_call - def v1_global_apps_app_lists_app_list_id_get_with_http_info( + def v1_extranets_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72333,15 +72308,12 @@ def v1_global_apps_app_lists_app_list_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[V1GlobalAppsAppListsAppListIdGetResponse]: - """v1_global_apps_app_lists_app_list_id_get + ) -> ApiResponse[V1ExtranetsGetResponse]: + """v1_extranets_get - Get the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_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 @@ -72364,9 +72336,8 @@ def v1_global_apps_app_lists_app_list_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_get_serialize( + _param = self._v1_extranets_get_serialize( authorization=authorization, - app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -72374,7 +72345,7 @@ def v1_global_apps_app_lists_app_list_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsAppListIdGetResponse", + '200': "V1ExtranetsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -72388,10 +72359,9 @@ def v1_global_apps_app_lists_app_list_id_get_with_http_info( @validate_call - def v1_global_apps_app_lists_app_list_id_get_without_preload_content( + def v1_extranets_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72405,14 +72375,11 @@ def v1_global_apps_app_lists_app_list_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_app_lists_app_list_id_get + """v1_extranets_get - Get the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_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 @@ -72435,9 +72402,8 @@ def v1_global_apps_app_lists_app_list_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_get_serialize( + _param = self._v1_extranets_get_serialize( authorization=authorization, - app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -72445,7 +72411,7 @@ def v1_global_apps_app_lists_app_list_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsAppListIdGetResponse", + '200': "V1ExtranetsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -72454,10 +72420,9 @@ def v1_global_apps_app_lists_app_list_id_get_without_preload_content( return response_data.response - def _v1_global_apps_app_lists_app_list_id_get_serialize( + def _v1_extranets_get_serialize( self, authorization, - app_list_id, _request_auth, _content_type, _headers, @@ -72479,8 +72444,6 @@ def _v1_global_apps_app_lists_app_list_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if app_list_id is not None: - _path_params['appListId'] = app_list_id # process the query parameters # process the header parameters if authorization is not None: @@ -72505,7 +72468,7 @@ def _v1_global_apps_app_lists_app_list_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/apps/app-lists/{appListId}', + resource_path='/v1/extranets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -72522,11 +72485,11 @@ def _v1_global_apps_app_lists_app_list_id_get_serialize( @validate_call - def v1_global_apps_app_lists_app_list_id_put( + def v1_extranets_id_apply_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, - v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest, + id: StrictInt, + v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72539,17 +72502,16 @@ def v1_global_apps_app_lists_app_list_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_global_apps_app_lists_app_list_id_put + ) -> V1ExtranetsIdApplyPostResponse: + """v1_extranets_id_apply_post - Overwrite the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_id: int - :param v1_global_apps_app_lists_app_list_id_put_request: (required) - :type v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest + :param id: (required) + :type id: int + :param v1_extranets_id_apply_post_request: (required) + :type v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -72572,10 +72534,10 @@ def v1_global_apps_app_lists_app_list_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_put_serialize( + _param = self._v1_extranets_id_apply_post_serialize( authorization=authorization, - app_list_id=app_list_id, - v1_global_apps_app_lists_app_list_id_put_request=v1_global_apps_app_lists_app_list_id_put_request, + id=id, + v1_extranets_id_apply_post_request=v1_extranets_id_apply_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -72583,7 +72545,7 @@ def v1_global_apps_app_lists_app_list_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '202': "V1ExtranetsIdApplyPostResponse", } response_data = self.api_client.call_api( *_param, @@ -72597,11 +72559,11 @@ def v1_global_apps_app_lists_app_list_id_put( @validate_call - def v1_global_apps_app_lists_app_list_id_put_with_http_info( + def v1_extranets_id_apply_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, - v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest, + id: StrictInt, + v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72614,17 +72576,16 @@ def v1_global_apps_app_lists_app_list_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[object]: - """v1_global_apps_app_lists_app_list_id_put + ) -> ApiResponse[V1ExtranetsIdApplyPostResponse]: + """v1_extranets_id_apply_post - Overwrite the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_id: int - :param v1_global_apps_app_lists_app_list_id_put_request: (required) - :type v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest + :param id: (required) + :type id: int + :param v1_extranets_id_apply_post_request: (required) + :type v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -72647,10 +72608,10 @@ def v1_global_apps_app_lists_app_list_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_put_serialize( + _param = self._v1_extranets_id_apply_post_serialize( authorization=authorization, - app_list_id=app_list_id, - v1_global_apps_app_lists_app_list_id_put_request=v1_global_apps_app_lists_app_list_id_put_request, + id=id, + v1_extranets_id_apply_post_request=v1_extranets_id_apply_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -72658,7 +72619,7 @@ def v1_global_apps_app_lists_app_list_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '202': "V1ExtranetsIdApplyPostResponse", } response_data = self.api_client.call_api( *_param, @@ -72672,11 +72633,11 @@ def v1_global_apps_app_lists_app_list_id_put_with_http_info( @validate_call - def v1_global_apps_app_lists_app_list_id_put_without_preload_content( + def v1_extranets_id_apply_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_list_id: StrictInt, - v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest, + id: StrictInt, + v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72690,16 +72651,15 @@ def v1_global_apps_app_lists_app_list_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_app_lists_app_list_id_put + """v1_extranets_id_apply_post - Overwrite the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_list_id: (required) - :type app_list_id: int - :param v1_global_apps_app_lists_app_list_id_put_request: (required) - :type v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest + :param id: (required) + :type id: int + :param v1_extranets_id_apply_post_request: (required) + :type v1_extranets_id_apply_post_request: V1ExtranetsIdApplyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -72722,10 +72682,10 @@ def v1_global_apps_app_lists_app_list_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_app_list_id_put_serialize( + _param = self._v1_extranets_id_apply_post_serialize( authorization=authorization, - app_list_id=app_list_id, - v1_global_apps_app_lists_app_list_id_put_request=v1_global_apps_app_lists_app_list_id_put_request, + id=id, + v1_extranets_id_apply_post_request=v1_extranets_id_apply_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -72733,7 +72693,7 @@ def v1_global_apps_app_lists_app_list_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '202': "V1ExtranetsIdApplyPostResponse", } response_data = self.api_client.call_api( *_param, @@ -72742,11 +72702,11 @@ def v1_global_apps_app_lists_app_list_id_put_without_preload_content( return response_data.response - def _v1_global_apps_app_lists_app_list_id_put_serialize( + def _v1_extranets_id_apply_post_serialize( self, authorization, - app_list_id, - v1_global_apps_app_lists_app_list_id_put_request, + id, + v1_extranets_id_apply_post_request, _request_auth, _content_type, _headers, @@ -72768,16 +72728,16 @@ def _v1_global_apps_app_lists_app_list_id_put_serialize( _body_params: Optional[bytes] = None # process the path parameters - if app_list_id is not None: - _path_params['appListId'] = app_list_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_apps_app_lists_app_list_id_put_request is not None: - _body_params = v1_global_apps_app_lists_app_list_id_put_request + if v1_extranets_id_apply_post_request is not None: + _body_params = v1_extranets_id_apply_post_request # set the HTTP header `Accept` @@ -72808,8 +72768,8 @@ def _v1_global_apps_app_lists_app_list_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/global/apps/app-lists/{appListId}', + method='POST', + resource_path='/v1/extranets/{id}/apply', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -72826,9 +72786,10 @@ def _v1_global_apps_app_lists_app_list_id_put_serialize( @validate_call - def v1_global_apps_app_lists_get( + def v1_extranets_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72841,13 +72802,14 @@ def v1_global_apps_app_lists_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsAppListsGetResponse: - """v1_global_apps_app_lists_get + ) -> V1ExtranetsIdDeleteResponse: + """v1_extranets_id_delete - Get all app lists for the current 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 @@ -72870,8 +72832,9 @@ def v1_global_apps_app_lists_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_get_serialize( + _param = self._v1_extranets_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -72879,7 +72842,7 @@ def v1_global_apps_app_lists_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsGetResponse", + '200': "V1ExtranetsIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -72893,9 +72856,10 @@ def v1_global_apps_app_lists_get( @validate_call - def v1_global_apps_app_lists_get_with_http_info( + def v1_extranets_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72908,13 +72872,14 @@ def v1_global_apps_app_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[V1GlobalAppsAppListsGetResponse]: - """v1_global_apps_app_lists_get + ) -> ApiResponse[V1ExtranetsIdDeleteResponse]: + """v1_extranets_id_delete - Get all app lists for the current 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 @@ -72937,8 +72902,9 @@ def v1_global_apps_app_lists_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_get_serialize( + _param = self._v1_extranets_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -72946,7 +72912,7 @@ def v1_global_apps_app_lists_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsGetResponse", + '200': "V1ExtranetsIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -72960,9 +72926,10 @@ def v1_global_apps_app_lists_get_with_http_info( @validate_call - def v1_global_apps_app_lists_get_without_preload_content( + def v1_extranets_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -72976,12 +72943,13 @@ def v1_global_apps_app_lists_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_app_lists_get + """v1_extranets_id_delete - Get all app lists for the current 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 @@ -73004,8 +72972,9 @@ def v1_global_apps_app_lists_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_get_serialize( + _param = self._v1_extranets_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -73013,7 +72982,7 @@ def v1_global_apps_app_lists_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsGetResponse", + '200': "V1ExtranetsIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -73022,9 +72991,10 @@ def v1_global_apps_app_lists_get_without_preload_content( return response_data.response - def _v1_global_apps_app_lists_get_serialize( + def _v1_extranets_id_delete_serialize( self, authorization, + id, _request_auth, _content_type, _headers, @@ -73046,6 +73016,8 @@ def _v1_global_apps_app_lists_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: @@ -73069,8 +73041,8 @@ def _v1_global_apps_app_lists_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/apps/app-lists', + method='DELETE', + resource_path='/v1/extranets/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -73087,10 +73059,10 @@ def _v1_global_apps_app_lists_get_serialize( @validate_call - def v1_global_apps_app_lists_post( + def v1_extranets_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -73103,15 +73075,14 @@ def v1_global_apps_app_lists_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsAppListsPostResponse: - """v1_global_apps_app_lists_post + ) -> V1ExtranetsIdGetResponse: + """v1_extranets_id_get - Create an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_apps_app_lists_post_request: (required) - :type v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest + :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 @@ -73134,9 +73105,9 @@ def v1_global_apps_app_lists_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_post_serialize( + _param = self._v1_extranets_id_get_serialize( authorization=authorization, - v1_global_apps_app_lists_post_request=v1_global_apps_app_lists_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -73144,7 +73115,7 @@ def v1_global_apps_app_lists_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsPostResponse", + '200': "V1ExtranetsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -73158,10 +73129,10 @@ def v1_global_apps_app_lists_post( @validate_call - def v1_global_apps_app_lists_post_with_http_info( + def v1_extranets_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -73174,15 +73145,14 @@ def v1_global_apps_app_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[V1GlobalAppsAppListsPostResponse]: - """v1_global_apps_app_lists_post + ) -> ApiResponse[V1ExtranetsIdGetResponse]: + """v1_extranets_id_get - Create an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_apps_app_lists_post_request: (required) - :type v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest + :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 @@ -73205,9 +73175,9 @@ def v1_global_apps_app_lists_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_post_serialize( + _param = self._v1_extranets_id_get_serialize( authorization=authorization, - v1_global_apps_app_lists_post_request=v1_global_apps_app_lists_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -73215,7 +73185,7 @@ def v1_global_apps_app_lists_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsPostResponse", + '200': "V1ExtranetsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -73229,10 +73199,10 @@ def v1_global_apps_app_lists_post_with_http_info( @validate_call - def v1_global_apps_app_lists_post_without_preload_content( + def v1_extranets_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -73246,14 +73216,13 @@ def v1_global_apps_app_lists_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_app_lists_post + """v1_extranets_id_get - Create an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_apps_app_lists_post_request: (required) - :type v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest + :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 @@ -73276,9 +73245,9 @@ def v1_global_apps_app_lists_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_app_lists_post_serialize( + _param = self._v1_extranets_id_get_serialize( authorization=authorization, - v1_global_apps_app_lists_post_request=v1_global_apps_app_lists_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -73286,7 +73255,7 @@ def v1_global_apps_app_lists_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsAppListsPostResponse", + '200': "V1ExtranetsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -73295,10 +73264,10 @@ def v1_global_apps_app_lists_post_without_preload_content( return response_data.response - def _v1_global_apps_app_lists_post_serialize( + def _v1_extranets_id_get_serialize( self, authorization, - v1_global_apps_app_lists_post_request, + id, _request_auth, _content_type, _headers, @@ -73320,14 +73289,14 @@ def _v1_global_apps_app_lists_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_apps_app_lists_post_request is not None: - _body_params = v1_global_apps_app_lists_post_request # set the HTTP header `Accept` @@ -73338,19 +73307,6 @@ def _v1_global_apps_app_lists_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] = [ @@ -73358,8 +73314,8 @@ def _v1_global_apps_app_lists_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/apps/app-lists', + method='GET', + resource_path='/v1/extranets/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -73376,10 +73332,11 @@ def _v1_global_apps_app_lists_post_serialize( @validate_call - def v1_global_apps_categories_category_id_apps_get( + def v1_extranets_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - category_id: StrictInt, + id: StrictInt, + v1_extranets_id_put_request: V1ExtranetsIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -73392,15 +73349,16 @@ def v1_global_apps_categories_category_id_apps_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsCategoriesCategoryIdAppsGetResponse: - """v1_global_apps_categories_category_id_apps_get + ) -> V1ExtranetsIdPutResponse: + """v1_extranets_id_put - Get all Graphiant apps in an app category :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param category_id: (required) - :type category_id: int + :param id: (required) + :type id: int + :param v1_extranets_id_put_request: (required) + :type v1_extranets_id_put_request: V1ExtranetsIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -73423,9 +73381,10 @@ def v1_global_apps_categories_category_id_apps_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_categories_category_id_apps_get_serialize( + _param = self._v1_extranets_id_put_serialize( authorization=authorization, - category_id=category_id, + id=id, + v1_extranets_id_put_request=v1_extranets_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -73433,7 +73392,7 @@ def v1_global_apps_categories_category_id_apps_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCategoriesCategoryIdAppsGetResponse", + '200': "V1ExtranetsIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -73447,10 +73406,11 @@ def v1_global_apps_categories_category_id_apps_get( @validate_call - def v1_global_apps_categories_category_id_apps_get_with_http_info( + def v1_extranets_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - category_id: StrictInt, + id: StrictInt, + v1_extranets_id_put_request: V1ExtranetsIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -73463,15 +73423,16 @@ def v1_global_apps_categories_category_id_apps_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[V1GlobalAppsCategoriesCategoryIdAppsGetResponse]: - """v1_global_apps_categories_category_id_apps_get + ) -> ApiResponse[V1ExtranetsIdPutResponse]: + """v1_extranets_id_put - Get all Graphiant apps in an app category :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param category_id: (required) - :type category_id: int + :param id: (required) + :type id: int + :param v1_extranets_id_put_request: (required) + :type v1_extranets_id_put_request: V1ExtranetsIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -73494,9 +73455,10 @@ def v1_global_apps_categories_category_id_apps_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_categories_category_id_apps_get_serialize( + _param = self._v1_extranets_id_put_serialize( authorization=authorization, - category_id=category_id, + id=id, + v1_extranets_id_put_request=v1_extranets_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -73504,7 +73466,7 @@ def v1_global_apps_categories_category_id_apps_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCategoriesCategoryIdAppsGetResponse", + '200': "V1ExtranetsIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -73518,10 +73480,11 @@ def v1_global_apps_categories_category_id_apps_get_with_http_info( @validate_call - def v1_global_apps_categories_category_id_apps_get_without_preload_content( + def v1_extranets_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - category_id: StrictInt, + id: StrictInt, + v1_extranets_id_put_request: V1ExtranetsIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -73535,14 +73498,15 @@ def v1_global_apps_categories_category_id_apps_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_categories_category_id_apps_get + """v1_extranets_id_put - Get all Graphiant apps in an app category :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param category_id: (required) - :type category_id: int + :param id: (required) + :type id: int + :param v1_extranets_id_put_request: (required) + :type v1_extranets_id_put_request: V1ExtranetsIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -73565,9 +73529,10 @@ def v1_global_apps_categories_category_id_apps_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_categories_category_id_apps_get_serialize( + _param = self._v1_extranets_id_put_serialize( authorization=authorization, - category_id=category_id, + id=id, + v1_extranets_id_put_request=v1_extranets_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -73575,7 +73540,7 @@ def v1_global_apps_categories_category_id_apps_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCategoriesCategoryIdAppsGetResponse", + '200': "V1ExtranetsIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -73584,10 +73549,11 @@ def v1_global_apps_categories_category_id_apps_get_without_preload_content( return response_data.response - def _v1_global_apps_categories_category_id_apps_get_serialize( + def _v1_extranets_id_put_serialize( self, authorization, - category_id, + id, + v1_extranets_id_put_request, _request_auth, _content_type, _headers, @@ -73609,14 +73575,16 @@ def _v1_global_apps_categories_category_id_apps_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if category_id is not None: - _path_params['categoryId'] = category_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_extranets_id_put_request is not None: + _body_params = v1_extranets_id_put_request # set the HTTP header `Accept` @@ -73627,6 +73595,19 @@ def _v1_global_apps_categories_category_id_apps_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] = [ @@ -73634,8 +73615,8 @@ def _v1_global_apps_categories_category_id_apps_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/apps/categories/{categoryId}/apps', + method='PUT', + resource_path='/v1/extranets/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -73652,9 +73633,10 @@ def _v1_global_apps_categories_category_id_apps_get_serialize( @validate_call - def v1_global_apps_categories_get( + def v1_extranets_id_status_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -73667,13 +73649,14 @@ def v1_global_apps_categories_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsCategoriesGetResponse: - """v1_global_apps_categories_get + ) -> V1ExtranetsIdStatusGetResponse: + """v1_extranets_id_status_get - Get all app categories holding Graphiant apps :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 @@ -73696,8 +73679,9 @@ def v1_global_apps_categories_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_categories_get_serialize( + _param = self._v1_extranets_id_status_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -73705,7 +73689,7 @@ def v1_global_apps_categories_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCategoriesGetResponse", + '200': "V1ExtranetsIdStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -73719,9 +73703,10 @@ def v1_global_apps_categories_get( @validate_call - def v1_global_apps_categories_get_with_http_info( + def v1_extranets_id_status_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)], @@ -73734,13 +73719,14 @@ def v1_global_apps_categories_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[V1GlobalAppsCategoriesGetResponse]: - """v1_global_apps_categories_get + ) -> ApiResponse[V1ExtranetsIdStatusGetResponse]: + """v1_extranets_id_status_get - Get all app categories holding Graphiant apps :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 @@ -73763,8 +73749,9 @@ def v1_global_apps_categories_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_categories_get_serialize( + _param = self._v1_extranets_id_status_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -73772,7 +73759,7 @@ def v1_global_apps_categories_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCategoriesGetResponse", + '200': "V1ExtranetsIdStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -73786,9 +73773,10 @@ def v1_global_apps_categories_get_with_http_info( @validate_call - def v1_global_apps_categories_get_without_preload_content( + def v1_extranets_id_status_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)], @@ -73802,12 +73790,13 @@ def v1_global_apps_categories_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_categories_get + """v1_extranets_id_status_get - Get all app categories holding Graphiant apps :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 @@ -73830,8 +73819,9 @@ def v1_global_apps_categories_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_categories_get_serialize( + _param = self._v1_extranets_id_status_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -73839,7 +73829,7 @@ def v1_global_apps_categories_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCategoriesGetResponse", + '200': "V1ExtranetsIdStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -73848,9 +73838,10 @@ def v1_global_apps_categories_get_without_preload_content( return response_data.response - def _v1_global_apps_categories_get_serialize( + def _v1_extranets_id_status_get_serialize( self, authorization, + id, _request_auth, _content_type, _headers, @@ -73872,6 +73863,8 @@ def _v1_global_apps_categories_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: @@ -73896,7 +73889,7 @@ def _v1_global_apps_categories_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/apps/categories', + resource_path='/v1/extranets/{id}/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -73913,10 +73906,11 @@ def _v1_global_apps_categories_get_serialize( @validate_call - def v1_global_apps_custom_app_id_delete( + def v1_extranets_monitoring_lan_segments_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, + id: Annotated[Optional[StrictInt], Field(description="Extranet Service Id")] = None, + is_provider: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -73929,15 +73923,16 @@ def v1_global_apps_custom_app_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_global_apps_custom_app_id_delete + ) -> V1ExtranetsMonitoringLanSegmentsGetResponse: + """v1_extranets_monitoring_lan_segments_get - Delete a global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int + :param id: Extranet Service Id + :type id: int + :param is_provider: + :type is_provider: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -73960,9 +73955,10 @@ def v1_global_apps_custom_app_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_delete_serialize( + _param = self._v1_extranets_monitoring_lan_segments_get_serialize( authorization=authorization, - app_id=app_id, + id=id, + is_provider=is_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -73970,7 +73966,7 @@ def v1_global_apps_custom_app_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsMonitoringLanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -73984,10 +73980,11 @@ def v1_global_apps_custom_app_id_delete( @validate_call - def v1_global_apps_custom_app_id_delete_with_http_info( + def v1_extranets_monitoring_lan_segments_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, + id: Annotated[Optional[StrictInt], Field(description="Extranet Service Id")] = None, + is_provider: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74000,15 +73997,16 @@ def v1_global_apps_custom_app_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[object]: - """v1_global_apps_custom_app_id_delete + ) -> ApiResponse[V1ExtranetsMonitoringLanSegmentsGetResponse]: + """v1_extranets_monitoring_lan_segments_get - Delete a global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int + :param id: Extranet Service Id + :type id: int + :param is_provider: + :type is_provider: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -74031,9 +74029,10 @@ def v1_global_apps_custom_app_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_delete_serialize( + _param = self._v1_extranets_monitoring_lan_segments_get_serialize( authorization=authorization, - app_id=app_id, + id=id, + is_provider=is_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74041,7 +74040,7 @@ def v1_global_apps_custom_app_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsMonitoringLanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -74055,10 +74054,11 @@ def v1_global_apps_custom_app_id_delete_with_http_info( @validate_call - def v1_global_apps_custom_app_id_delete_without_preload_content( + def v1_extranets_monitoring_lan_segments_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, + id: Annotated[Optional[StrictInt], Field(description="Extranet Service Id")] = None, + is_provider: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74072,14 +74072,15 @@ def v1_global_apps_custom_app_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_custom_app_id_delete + """v1_extranets_monitoring_lan_segments_get - Delete a global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int + :param id: Extranet Service Id + :type id: int + :param is_provider: + :type is_provider: bool :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -74102,9 +74103,10 @@ def v1_global_apps_custom_app_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_delete_serialize( + _param = self._v1_extranets_monitoring_lan_segments_get_serialize( authorization=authorization, - app_id=app_id, + id=id, + is_provider=is_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74112,7 +74114,7 @@ def v1_global_apps_custom_app_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsMonitoringLanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -74121,10 +74123,11 @@ def v1_global_apps_custom_app_id_delete_without_preload_content( return response_data.response - def _v1_global_apps_custom_app_id_delete_serialize( + def _v1_extranets_monitoring_lan_segments_get_serialize( self, authorization, - app_id, + id, + is_provider, _request_auth, _content_type, _headers, @@ -74146,9 +74149,15 @@ def _v1_global_apps_custom_app_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if app_id is not None: - _path_params['appId'] = app_id # process the query parameters + if id is not None: + + _query_params.append(('id', id)) + + if is_provider is not None: + + _query_params.append(('isProvider', is_provider)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -74171,8 +74180,8 @@ def _v1_global_apps_custom_app_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/global/apps/custom/{appId}', + method='GET', + resource_path='/v1/extranets-monitoring/lan-segments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -74189,10 +74198,10 @@ def _v1_global_apps_custom_app_id_delete_serialize( @validate_call - def v1_global_apps_custom_app_id_details_app_lists_get( + def v1_extranets_monitoring_nat_usage_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, + id: Annotated[StrictInt, Field(description="Extranet Service Id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74205,15 +74214,14 @@ def v1_global_apps_custom_app_id_details_app_lists_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsCustomAppIdDetailsAppListsGetResponse: - """v1_global_apps_custom_app_id_details_app_lists_get + ) -> V1ExtranetsMonitoringNatUsageGetResponse: + """v1_extranets_monitoring_nat_usage_get - Get all app lists that contain the relevant global app :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int + :param id: Extranet Service 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 @@ -74236,9 +74244,9 @@ def v1_global_apps_custom_app_id_details_app_lists_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_details_app_lists_get_serialize( + _param = self._v1_extranets_monitoring_nat_usage_get_serialize( authorization=authorization, - app_id=app_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74246,7 +74254,7 @@ def v1_global_apps_custom_app_id_details_app_lists_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomAppIdDetailsAppListsGetResponse", + '200': "V1ExtranetsMonitoringNatUsageGetResponse", } response_data = self.api_client.call_api( *_param, @@ -74260,10 +74268,10 @@ def v1_global_apps_custom_app_id_details_app_lists_get( @validate_call - def v1_global_apps_custom_app_id_details_app_lists_get_with_http_info( + def v1_extranets_monitoring_nat_usage_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, + id: Annotated[StrictInt, Field(description="Extranet Service Id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74276,15 +74284,14 @@ def v1_global_apps_custom_app_id_details_app_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[V1GlobalAppsCustomAppIdDetailsAppListsGetResponse]: - """v1_global_apps_custom_app_id_details_app_lists_get + ) -> ApiResponse[V1ExtranetsMonitoringNatUsageGetResponse]: + """v1_extranets_monitoring_nat_usage_get - Get all app lists that contain the relevant global app :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int + :param id: Extranet Service 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 @@ -74307,9 +74314,9 @@ def v1_global_apps_custom_app_id_details_app_lists_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_details_app_lists_get_serialize( + _param = self._v1_extranets_monitoring_nat_usage_get_serialize( authorization=authorization, - app_id=app_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74317,7 +74324,7 @@ def v1_global_apps_custom_app_id_details_app_lists_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomAppIdDetailsAppListsGetResponse", + '200': "V1ExtranetsMonitoringNatUsageGetResponse", } response_data = self.api_client.call_api( *_param, @@ -74331,10 +74338,10 @@ def v1_global_apps_custom_app_id_details_app_lists_get_with_http_info( @validate_call - def v1_global_apps_custom_app_id_details_app_lists_get_without_preload_content( + def v1_extranets_monitoring_nat_usage_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, + id: Annotated[StrictInt, Field(description="Extranet Service Id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74348,14 +74355,13 @@ def v1_global_apps_custom_app_id_details_app_lists_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_custom_app_id_details_app_lists_get + """v1_extranets_monitoring_nat_usage_get - Get all app lists that contain the relevant global app :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int + :param id: Extranet Service 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 @@ -74378,9 +74384,9 @@ def v1_global_apps_custom_app_id_details_app_lists_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_details_app_lists_get_serialize( + _param = self._v1_extranets_monitoring_nat_usage_get_serialize( authorization=authorization, - app_id=app_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74388,7 +74394,7 @@ def v1_global_apps_custom_app_id_details_app_lists_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomAppIdDetailsAppListsGetResponse", + '200': "V1ExtranetsMonitoringNatUsageGetResponse", } response_data = self.api_client.call_api( *_param, @@ -74397,10 +74403,10 @@ def v1_global_apps_custom_app_id_details_app_lists_get_without_preload_content( return response_data.response - def _v1_global_apps_custom_app_id_details_app_lists_get_serialize( + def _v1_extranets_monitoring_nat_usage_get_serialize( self, authorization, - app_id, + id, _request_auth, _content_type, _headers, @@ -74422,9 +74428,11 @@ def _v1_global_apps_custom_app_id_details_app_lists_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if app_id is not None: - _path_params['appId'] = app_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 @@ -74448,7 +74456,7 @@ def _v1_global_apps_custom_app_id_details_app_lists_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/apps/custom/{appId}/details/app-lists', + resource_path='/v1/extranets-monitoring/nat-usage', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -74465,10 +74473,10 @@ def _v1_global_apps_custom_app_id_details_app_lists_get_serialize( @validate_call - def v1_global_apps_custom_app_id_get( + def v1_extranets_monitoring_traffic_security_policy_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, + v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74481,15 +74489,15 @@ def v1_global_apps_custom_app_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsCustomAppIdGetResponse: - """v1_global_apps_custom_app_id_get + ) -> V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse: + """v1_extranets_monitoring_traffic_security_policy_post - Get the configuration for a global app under the current enterprise + Get lists of traffic and security policies :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int + :param v1_extranets_monitoring_traffic_security_policy_post_request: (required) + :type v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -74512,9 +74520,9 @@ def v1_global_apps_custom_app_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_get_serialize( + _param = self._v1_extranets_monitoring_traffic_security_policy_post_serialize( authorization=authorization, - app_id=app_id, + v1_extranets_monitoring_traffic_security_policy_post_request=v1_extranets_monitoring_traffic_security_policy_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74522,7 +74530,7 @@ def v1_global_apps_custom_app_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomAppIdGetResponse", + '200': "V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse", } response_data = self.api_client.call_api( *_param, @@ -74536,10 +74544,10 @@ def v1_global_apps_custom_app_id_get( @validate_call - def v1_global_apps_custom_app_id_get_with_http_info( + def v1_extranets_monitoring_traffic_security_policy_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, + v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74552,15 +74560,15 @@ def v1_global_apps_custom_app_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[V1GlobalAppsCustomAppIdGetResponse]: - """v1_global_apps_custom_app_id_get + ) -> ApiResponse[V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse]: + """v1_extranets_monitoring_traffic_security_policy_post - Get the configuration for a global app under the current enterprise + Get lists of traffic and security policies :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int + :param v1_extranets_monitoring_traffic_security_policy_post_request: (required) + :type v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -74583,9 +74591,9 @@ def v1_global_apps_custom_app_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_get_serialize( + _param = self._v1_extranets_monitoring_traffic_security_policy_post_serialize( authorization=authorization, - app_id=app_id, + v1_extranets_monitoring_traffic_security_policy_post_request=v1_extranets_monitoring_traffic_security_policy_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74593,7 +74601,7 @@ def v1_global_apps_custom_app_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomAppIdGetResponse", + '200': "V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse", } response_data = self.api_client.call_api( *_param, @@ -74607,10 +74615,10 @@ def v1_global_apps_custom_app_id_get_with_http_info( @validate_call - def v1_global_apps_custom_app_id_get_without_preload_content( + def v1_extranets_monitoring_traffic_security_policy_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, + v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74624,14 +74632,14 @@ def v1_global_apps_custom_app_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_custom_app_id_get + """v1_extranets_monitoring_traffic_security_policy_post - Get the configuration for a global app under the current enterprise + Get lists of traffic and security policies :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int + :param v1_extranets_monitoring_traffic_security_policy_post_request: (required) + :type v1_extranets_monitoring_traffic_security_policy_post_request: V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -74654,9 +74662,9 @@ def v1_global_apps_custom_app_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_get_serialize( + _param = self._v1_extranets_monitoring_traffic_security_policy_post_serialize( authorization=authorization, - app_id=app_id, + v1_extranets_monitoring_traffic_security_policy_post_request=v1_extranets_monitoring_traffic_security_policy_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74664,7 +74672,7 @@ def v1_global_apps_custom_app_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomAppIdGetResponse", + '200': "V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse", } response_data = self.api_client.call_api( *_param, @@ -74673,10 +74681,10 @@ def v1_global_apps_custom_app_id_get_without_preload_content( return response_data.response - def _v1_global_apps_custom_app_id_get_serialize( + def _v1_extranets_monitoring_traffic_security_policy_post_serialize( self, authorization, - app_id, + v1_extranets_monitoring_traffic_security_policy_post_request, _request_auth, _content_type, _headers, @@ -74698,14 +74706,14 @@ def _v1_global_apps_custom_app_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if app_id is not None: - _path_params['appId'] = app_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_extranets_monitoring_traffic_security_policy_post_request is not None: + _body_params = v1_extranets_monitoring_traffic_security_policy_post_request # set the HTTP header `Accept` @@ -74716,6 +74724,19 @@ def _v1_global_apps_custom_app_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] = [ @@ -74723,8 +74744,8 @@ def _v1_global_apps_custom_app_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/apps/custom/{appId}', + method='POST', + resource_path='/v1/extranets-monitoring/traffic-security-policy', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -74741,11 +74762,10 @@ def _v1_global_apps_custom_app_id_get_serialize( @validate_call - def v1_global_apps_custom_app_id_put( + def v1_extranets_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, - v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest, + v1_extranets_post_request: V1ExtranetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74758,17 +74778,14 @@ def v1_global_apps_custom_app_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_global_apps_custom_app_id_put + ) -> V1ExtranetsPostResponse: + """v1_extranets_post - Overwrite the configuration for a global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int - :param v1_global_apps_custom_app_id_put_request: (required) - :type v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest + :param v1_extranets_post_request: (required) + :type v1_extranets_post_request: V1ExtranetsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -74791,10 +74808,9 @@ def v1_global_apps_custom_app_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_put_serialize( + _param = self._v1_extranets_post_serialize( authorization=authorization, - app_id=app_id, - v1_global_apps_custom_app_id_put_request=v1_global_apps_custom_app_id_put_request, + v1_extranets_post_request=v1_extranets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74802,7 +74818,7 @@ def v1_global_apps_custom_app_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -74816,11 +74832,10 @@ def v1_global_apps_custom_app_id_put( @validate_call - def v1_global_apps_custom_app_id_put_with_http_info( + def v1_extranets_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, - v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest, + v1_extranets_post_request: V1ExtranetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74833,17 +74848,14 @@ def v1_global_apps_custom_app_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[object]: - """v1_global_apps_custom_app_id_put + ) -> ApiResponse[V1ExtranetsPostResponse]: + """v1_extranets_post - Overwrite the configuration for a global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int - :param v1_global_apps_custom_app_id_put_request: (required) - :type v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest + :param v1_extranets_post_request: (required) + :type v1_extranets_post_request: V1ExtranetsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -74866,10 +74878,9 @@ def v1_global_apps_custom_app_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_put_serialize( + _param = self._v1_extranets_post_serialize( authorization=authorization, - app_id=app_id, - v1_global_apps_custom_app_id_put_request=v1_global_apps_custom_app_id_put_request, + v1_extranets_post_request=v1_extranets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74877,7 +74888,7 @@ def v1_global_apps_custom_app_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -74891,11 +74902,10 @@ def v1_global_apps_custom_app_id_put_with_http_info( @validate_call - def v1_global_apps_custom_app_id_put_without_preload_content( + def v1_extranets_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - app_id: StrictInt, - v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest, + v1_extranets_post_request: V1ExtranetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -74909,16 +74919,13 @@ def v1_global_apps_custom_app_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_custom_app_id_put + """v1_extranets_post - Overwrite the configuration for a global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param app_id: (required) - :type app_id: int - :param v1_global_apps_custom_app_id_put_request: (required) - :type v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest + :param v1_extranets_post_request: (required) + :type v1_extranets_post_request: V1ExtranetsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -74941,10 +74948,9 @@ def v1_global_apps_custom_app_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_app_id_put_serialize( + _param = self._v1_extranets_post_serialize( authorization=authorization, - app_id=app_id, - v1_global_apps_custom_app_id_put_request=v1_global_apps_custom_app_id_put_request, + v1_extranets_post_request=v1_extranets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -74952,7 +74958,7 @@ def v1_global_apps_custom_app_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1ExtranetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -74961,11 +74967,10 @@ def v1_global_apps_custom_app_id_put_without_preload_content( return response_data.response - def _v1_global_apps_custom_app_id_put_serialize( + def _v1_extranets_post_serialize( self, authorization, - app_id, - v1_global_apps_custom_app_id_put_request, + v1_extranets_post_request, _request_auth, _content_type, _headers, @@ -74987,16 +74992,14 @@ def _v1_global_apps_custom_app_id_put_serialize( _body_params: Optional[bytes] = None # process the path parameters - if app_id is not None: - _path_params['appId'] = app_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_apps_custom_app_id_put_request is not None: - _body_params = v1_global_apps_custom_app_id_put_request + if v1_extranets_post_request is not None: + _body_params = v1_extranets_post_request # set the HTTP header `Accept` @@ -75027,8 +75030,8 @@ def _v1_global_apps_custom_app_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/global/apps/custom/{appId}', + method='POST', + resource_path='/v1/extranets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -75045,9 +75048,10 @@ def _v1_global_apps_custom_app_id_put_serialize( @validate_call - def v1_global_apps_custom_get( + def v1_extranets_resolve_policy_target_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75060,13 +75064,14 @@ def v1_global_apps_custom_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsCustomGetResponse: - """v1_global_apps_custom_get + ) -> V1ExtranetsResolvePolicyTargetPostResponse: + """v1_extranets_resolve_policy_target_post - Get all global apps mapped by the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranets_resolve_policy_target_post_request: (required) + :type v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75089,8 +75094,9 @@ def v1_global_apps_custom_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_get_serialize( + _param = self._v1_extranets_resolve_policy_target_post_serialize( authorization=authorization, + v1_extranets_resolve_policy_target_post_request=v1_extranets_resolve_policy_target_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75098,7 +75104,7 @@ def v1_global_apps_custom_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomGetResponse", + '200': "V1ExtranetsResolvePolicyTargetPostResponse", } response_data = self.api_client.call_api( *_param, @@ -75112,9 +75118,10 @@ def v1_global_apps_custom_get( @validate_call - def v1_global_apps_custom_get_with_http_info( + def v1_extranets_resolve_policy_target_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75127,13 +75134,14 @@ def v1_global_apps_custom_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[V1GlobalAppsCustomGetResponse]: - """v1_global_apps_custom_get + ) -> ApiResponse[V1ExtranetsResolvePolicyTargetPostResponse]: + """v1_extranets_resolve_policy_target_post - Get all global apps mapped by the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranets_resolve_policy_target_post_request: (required) + :type v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75156,8 +75164,9 @@ def v1_global_apps_custom_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_get_serialize( + _param = self._v1_extranets_resolve_policy_target_post_serialize( authorization=authorization, + v1_extranets_resolve_policy_target_post_request=v1_extranets_resolve_policy_target_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75165,7 +75174,7 @@ def v1_global_apps_custom_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomGetResponse", + '200': "V1ExtranetsResolvePolicyTargetPostResponse", } response_data = self.api_client.call_api( *_param, @@ -75179,9 +75188,10 @@ def v1_global_apps_custom_get_with_http_info( @validate_call - def v1_global_apps_custom_get_without_preload_content( + def v1_extranets_resolve_policy_target_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75195,12 +75205,13 @@ def v1_global_apps_custom_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_custom_get + """v1_extranets_resolve_policy_target_post - Get all global apps mapped by the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_extranets_resolve_policy_target_post_request: (required) + :type v1_extranets_resolve_policy_target_post_request: V1ExtranetsResolvePolicyTargetPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75223,8 +75234,9 @@ def v1_global_apps_custom_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_get_serialize( + _param = self._v1_extranets_resolve_policy_target_post_serialize( authorization=authorization, + v1_extranets_resolve_policy_target_post_request=v1_extranets_resolve_policy_target_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75232,7 +75244,7 @@ def v1_global_apps_custom_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomGetResponse", + '200': "V1ExtranetsResolvePolicyTargetPostResponse", } response_data = self.api_client.call_api( *_param, @@ -75241,9 +75253,10 @@ def v1_global_apps_custom_get_without_preload_content( return response_data.response - def _v1_global_apps_custom_get_serialize( + def _v1_extranets_resolve_policy_target_post_serialize( self, authorization, + v1_extranets_resolve_policy_target_post_request, _request_auth, _content_type, _headers, @@ -75271,6 +75284,8 @@ def _v1_global_apps_custom_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_extranets_resolve_policy_target_post_request is not None: + _body_params = v1_extranets_resolve_policy_target_post_request # set the HTTP header `Accept` @@ -75281,6 +75296,19 @@ def _v1_global_apps_custom_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] = [ @@ -75288,8 +75316,8 @@ def _v1_global_apps_custom_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/apps/custom', + method='POST', + resource_path='/v1/extranets/resolve-policy-target', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -75306,10 +75334,10 @@ def _v1_global_apps_custom_get_serialize( @validate_call - def v1_global_apps_custom_post( + def v1_extranets_source_segments_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest, + v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75322,15 +75350,14 @@ def v1_global_apps_custom_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsCustomPostResponse: - """v1_global_apps_custom_post + ) -> V1ExtranetsSourceSegmentsPostResponse: + """v1_extranets_source_segments_post - Create a new global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_apps_custom_post_request: (required) - :type v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest + :param v1_extranets_source_segments_post_request: (required) + :type v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75353,9 +75380,9 @@ def v1_global_apps_custom_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_post_serialize( + _param = self._v1_extranets_source_segments_post_serialize( authorization=authorization, - v1_global_apps_custom_post_request=v1_global_apps_custom_post_request, + v1_extranets_source_segments_post_request=v1_extranets_source_segments_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75363,7 +75390,7 @@ def v1_global_apps_custom_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomPostResponse", + '200': "V1ExtranetsSourceSegmentsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -75377,10 +75404,10 @@ def v1_global_apps_custom_post( @validate_call - def v1_global_apps_custom_post_with_http_info( + def v1_extranets_source_segments_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest, + v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75393,15 +75420,14 @@ def v1_global_apps_custom_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[V1GlobalAppsCustomPostResponse]: - """v1_global_apps_custom_post + ) -> ApiResponse[V1ExtranetsSourceSegmentsPostResponse]: + """v1_extranets_source_segments_post - Create a new global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_apps_custom_post_request: (required) - :type v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest + :param v1_extranets_source_segments_post_request: (required) + :type v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75424,9 +75450,9 @@ def v1_global_apps_custom_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_post_serialize( + _param = self._v1_extranets_source_segments_post_serialize( authorization=authorization, - v1_global_apps_custom_post_request=v1_global_apps_custom_post_request, + v1_extranets_source_segments_post_request=v1_extranets_source_segments_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75434,7 +75460,7 @@ def v1_global_apps_custom_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomPostResponse", + '200': "V1ExtranetsSourceSegmentsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -75448,10 +75474,10 @@ def v1_global_apps_custom_post_with_http_info( @validate_call - def v1_global_apps_custom_post_without_preload_content( + def v1_extranets_source_segments_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest, + v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75465,14 +75491,13 @@ def v1_global_apps_custom_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_custom_post + """v1_extranets_source_segments_post - Create a new global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_apps_custom_post_request: (required) - :type v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest + :param v1_extranets_source_segments_post_request: (required) + :type v1_extranets_source_segments_post_request: V1ExtranetsSourceSegmentsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75495,9 +75520,9 @@ def v1_global_apps_custom_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_custom_post_serialize( + _param = self._v1_extranets_source_segments_post_serialize( authorization=authorization, - v1_global_apps_custom_post_request=v1_global_apps_custom_post_request, + v1_extranets_source_segments_post_request=v1_extranets_source_segments_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75505,7 +75530,7 @@ def v1_global_apps_custom_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsCustomPostResponse", + '200': "V1ExtranetsSourceSegmentsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -75514,10 +75539,10 @@ def v1_global_apps_custom_post_without_preload_content( return response_data.response - def _v1_global_apps_custom_post_serialize( + def _v1_extranets_source_segments_post_serialize( self, authorization, - v1_global_apps_custom_post_request, + v1_extranets_source_segments_post_request, _request_auth, _content_type, _headers, @@ -75545,8 +75570,8 @@ def _v1_global_apps_custom_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_apps_custom_post_request is not None: - _body_params = v1_global_apps_custom_post_request + if v1_extranets_source_segments_post_request is not None: + _body_params = v1_extranets_source_segments_post_request # set the HTTP header `Accept` @@ -75578,7 +75603,7 @@ def _v1_global_apps_custom_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/global/apps/custom', + resource_path='/v1/extranets/source-segments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -75595,9 +75620,10 @@ def _v1_global_apps_custom_post_serialize( @validate_call - def v1_global_apps_graphiant_get( + def v1_flows_flow_table_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75610,13 +75636,15 @@ def v1_global_apps_graphiant_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAppsGraphiantGetResponse: - """v1_global_apps_graphiant_get + ) -> V1FlowsFlowTablePostResponse: + """v1_flows_flow_table_post - Get all apps mapped by Graphiant + Get flow table for the app on the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_flows_flow_table_post_request: (required) + :type v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75639,8 +75667,9 @@ def v1_global_apps_graphiant_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_graphiant_get_serialize( + _param = self._v1_flows_flow_table_post_serialize( authorization=authorization, + v1_flows_flow_table_post_request=v1_flows_flow_table_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75648,7 +75677,7 @@ def v1_global_apps_graphiant_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsGraphiantGetResponse", + '200': "V1FlowsFlowTablePostResponse", } response_data = self.api_client.call_api( *_param, @@ -75662,9 +75691,10 @@ def v1_global_apps_graphiant_get( @validate_call - def v1_global_apps_graphiant_get_with_http_info( + def v1_flows_flow_table_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75677,13 +75707,15 @@ def v1_global_apps_graphiant_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[V1GlobalAppsGraphiantGetResponse]: - """v1_global_apps_graphiant_get + ) -> ApiResponse[V1FlowsFlowTablePostResponse]: + """v1_flows_flow_table_post - Get all apps mapped by Graphiant + Get flow table for the app on the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_flows_flow_table_post_request: (required) + :type v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75706,8 +75738,9 @@ def v1_global_apps_graphiant_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_graphiant_get_serialize( + _param = self._v1_flows_flow_table_post_serialize( authorization=authorization, + v1_flows_flow_table_post_request=v1_flows_flow_table_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75715,7 +75748,7 @@ def v1_global_apps_graphiant_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsGraphiantGetResponse", + '200': "V1FlowsFlowTablePostResponse", } response_data = self.api_client.call_api( *_param, @@ -75729,9 +75762,10 @@ def v1_global_apps_graphiant_get_with_http_info( @validate_call - def v1_global_apps_graphiant_get_without_preload_content( + def v1_flows_flow_table_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75745,12 +75779,14 @@ def v1_global_apps_graphiant_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_apps_graphiant_get + """v1_flows_flow_table_post - Get all apps mapped by Graphiant + Get flow table for the app on the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_flows_flow_table_post_request: (required) + :type v1_flows_flow_table_post_request: V1FlowsFlowTablePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75773,8 +75809,9 @@ def v1_global_apps_graphiant_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_apps_graphiant_get_serialize( + _param = self._v1_flows_flow_table_post_serialize( authorization=authorization, + v1_flows_flow_table_post_request=v1_flows_flow_table_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75782,7 +75819,7 @@ def v1_global_apps_graphiant_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAppsGraphiantGetResponse", + '200': "V1FlowsFlowTablePostResponse", } response_data = self.api_client.call_api( *_param, @@ -75791,9 +75828,10 @@ def v1_global_apps_graphiant_get_without_preload_content( return response_data.response - def _v1_global_apps_graphiant_get_serialize( + def _v1_flows_flow_table_post_serialize( self, authorization, + v1_flows_flow_table_post_request, _request_auth, _content_type, _headers, @@ -75821,6 +75859,8 @@ def _v1_global_apps_graphiant_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_flows_flow_table_post_request is not None: + _body_params = v1_flows_flow_table_post_request # set the HTTP header `Accept` @@ -75831,6 +75871,19 @@ def _v1_global_apps_graphiant_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] = [ @@ -75838,8 +75891,8 @@ def _v1_global_apps_graphiant_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/apps/graphiant', + method='POST', + resource_path='/v1/flows/flow-table', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -75856,10 +75909,10 @@ def _v1_global_apps_graphiant_get_serialize( @validate_call - def v1_global_attached_edges_post( + def v1_flows_topology_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest, + v1_flows_topology_post_request: V1FlowsTopologyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75872,15 +75925,15 @@ def v1_global_attached_edges_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalAttachedEdgesPostResponse: - """v1_global_attached_edges_post + ) -> V1FlowsTopologyPostResponse: + """v1_flows_topology_post - Returns attached edges for global object + Get flow based node and circuit topology for the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_attached_edges_post_request: (required) - :type v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest + :param v1_flows_topology_post_request: (required) + :type v1_flows_topology_post_request: V1FlowsTopologyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75903,9 +75956,9 @@ def v1_global_attached_edges_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_attached_edges_post_serialize( + _param = self._v1_flows_topology_post_serialize( authorization=authorization, - v1_global_attached_edges_post_request=v1_global_attached_edges_post_request, + v1_flows_topology_post_request=v1_flows_topology_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75913,7 +75966,7 @@ def v1_global_attached_edges_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAttachedEdgesPostResponse", + '200': "V1FlowsTopologyPostResponse", } response_data = self.api_client.call_api( *_param, @@ -75927,10 +75980,10 @@ def v1_global_attached_edges_post( @validate_call - def v1_global_attached_edges_post_with_http_info( + def v1_flows_topology_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest, + v1_flows_topology_post_request: V1FlowsTopologyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -75943,15 +75996,15 @@ def v1_global_attached_edges_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[V1GlobalAttachedEdgesPostResponse]: - """v1_global_attached_edges_post + ) -> ApiResponse[V1FlowsTopologyPostResponse]: + """v1_flows_topology_post - Returns attached edges for global object + Get flow based node and circuit topology for the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_attached_edges_post_request: (required) - :type v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest + :param v1_flows_topology_post_request: (required) + :type v1_flows_topology_post_request: V1FlowsTopologyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -75974,9 +76027,9 @@ def v1_global_attached_edges_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_attached_edges_post_serialize( + _param = self._v1_flows_topology_post_serialize( authorization=authorization, - v1_global_attached_edges_post_request=v1_global_attached_edges_post_request, + v1_flows_topology_post_request=v1_flows_topology_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -75984,7 +76037,7 @@ def v1_global_attached_edges_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAttachedEdgesPostResponse", + '200': "V1FlowsTopologyPostResponse", } response_data = self.api_client.call_api( *_param, @@ -75998,10 +76051,10 @@ def v1_global_attached_edges_post_with_http_info( @validate_call - def v1_global_attached_edges_post_without_preload_content( + def v1_flows_topology_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest, + v1_flows_topology_post_request: V1FlowsTopologyPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76015,14 +76068,14 @@ def v1_global_attached_edges_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_attached_edges_post + """v1_flows_topology_post - Returns attached edges for global object + Get flow based node and circuit topology for the device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_attached_edges_post_request: (required) - :type v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest + :param v1_flows_topology_post_request: (required) + :type v1_flows_topology_post_request: V1FlowsTopologyPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -76045,9 +76098,9 @@ def v1_global_attached_edges_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_attached_edges_post_serialize( + _param = self._v1_flows_topology_post_serialize( authorization=authorization, - v1_global_attached_edges_post_request=v1_global_attached_edges_post_request, + v1_flows_topology_post_request=v1_flows_topology_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76055,7 +76108,7 @@ def v1_global_attached_edges_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalAttachedEdgesPostResponse", + '200': "V1FlowsTopologyPostResponse", } response_data = self.api_client.call_api( *_param, @@ -76064,10 +76117,10 @@ def v1_global_attached_edges_post_without_preload_content( return response_data.response - def _v1_global_attached_edges_post_serialize( + def _v1_flows_topology_post_serialize( self, authorization, - v1_global_attached_edges_post_request, + v1_flows_topology_post_request, _request_auth, _content_type, _headers, @@ -76095,8 +76148,8 @@ def _v1_global_attached_edges_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_global_attached_edges_post_request is not None: - _body_params = v1_global_attached_edges_post_request + if v1_flows_topology_post_request is not None: + _body_params = v1_flows_topology_post_request # set the HTTP header `Accept` @@ -76128,7 +76181,7 @@ def _v1_global_attached_edges_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/global/attached-edges', + resource_path='/v1/flows/topology', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -76145,10 +76198,10 @@ def _v1_global_attached_edges_post_serialize( @validate_call - def v1_global_config_patch( + def v1_gateways_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_config_patch_request: V1GlobalConfigPatchRequest, + id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76161,15 +76214,14 @@ def v1_global_config_patch( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalConfigPatchResponse: - """v1_global_config_patch + ) -> object: + """v1_gateways_delete - Update global objects for an enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_config_patch_request: (required) - :type v1_global_config_patch_request: V1GlobalConfigPatchRequest + :param id: + :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 @@ -76192,9 +76244,9 @@ def v1_global_config_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_config_patch_serialize( + _param = self._v1_gateways_delete_serialize( authorization=authorization, - v1_global_config_patch_request=v1_global_config_patch_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76202,7 +76254,7 @@ def v1_global_config_patch( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalConfigPatchResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -76216,10 +76268,10 @@ def v1_global_config_patch( @validate_call - def v1_global_config_patch_with_http_info( + def v1_gateways_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_config_patch_request: V1GlobalConfigPatchRequest, + id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76232,15 +76284,14 @@ def v1_global_config_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[V1GlobalConfigPatchResponse]: - """v1_global_config_patch + ) -> ApiResponse[object]: + """v1_gateways_delete - Update global objects for an enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_config_patch_request: (required) - :type v1_global_config_patch_request: V1GlobalConfigPatchRequest + :param id: + :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 @@ -76263,9 +76314,9 @@ def v1_global_config_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_config_patch_serialize( + _param = self._v1_gateways_delete_serialize( authorization=authorization, - v1_global_config_patch_request=v1_global_config_patch_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76273,7 +76324,7 @@ def v1_global_config_patch_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalConfigPatchResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -76287,10 +76338,10 @@ def v1_global_config_patch_with_http_info( @validate_call - def v1_global_config_patch_without_preload_content( + def v1_gateways_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_config_patch_request: V1GlobalConfigPatchRequest, + id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76304,14 +76355,13 @@ def v1_global_config_patch_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_config_patch + """v1_gateways_delete - Update global objects for an enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_global_config_patch_request: (required) - :type v1_global_config_patch_request: V1GlobalConfigPatchRequest + :param id: + :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 @@ -76334,9 +76384,9 @@ def v1_global_config_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_config_patch_serialize( + _param = self._v1_gateways_delete_serialize( authorization=authorization, - v1_global_config_patch_request=v1_global_config_patch_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76344,7 +76394,7 @@ def v1_global_config_patch_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalConfigPatchResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -76353,10 +76403,10 @@ def v1_global_config_patch_without_preload_content( return response_data.response - def _v1_global_config_patch_serialize( + def _v1_gateways_delete_serialize( self, authorization, - v1_global_config_patch_request, + id, _request_auth, _content_type, _headers, @@ -76379,13 +76429,15 @@ def _v1_global_config_patch_serialize( # 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 - if v1_global_config_patch_request is not None: - _body_params = v1_global_config_patch_request # set the HTTP header `Accept` @@ -76396,19 +76448,6 @@ def _v1_global_config_patch_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] = [ @@ -76416,8 +76455,8 @@ def _v1_global_config_patch_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/global/config', + method='DELETE', + resource_path='/v1/gateways', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -76434,9 +76473,11 @@ def _v1_global_config_patch_serialize( @validate_call - def v1_global_content_filters_get( + def v1_gateways_guest_consumer_match_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + match_id: StrictInt, + email: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76449,13 +76490,17 @@ def v1_global_content_filters_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalContentFiltersGetResponse: - """v1_global_content_filters_get + ) -> V1GatewaysGuestConsumerMatchIdGetResponse: + """v1_gateways_guest_consumer_match_id_get - Get basic details for all content filter under the current enterprise + Get Site to Site VPN information for a non-Graphiant guest consumer by their email :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param match_id: (required) + :type match_id: int + :param email: + :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 @@ -76478,8 +76523,10 @@ def v1_global_content_filters_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_get_serialize( + _param = self._v1_gateways_guest_consumer_match_id_get_serialize( authorization=authorization, + match_id=match_id, + email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76487,7 +76534,7 @@ def v1_global_content_filters_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalContentFiltersGetResponse", + '200': "V1GatewaysGuestConsumerMatchIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76501,9 +76548,11 @@ def v1_global_content_filters_get( @validate_call - def v1_global_content_filters_get_with_http_info( + def v1_gateways_guest_consumer_match_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + match_id: StrictInt, + email: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76516,13 +76565,17 @@ def v1_global_content_filters_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[V1GlobalContentFiltersGetResponse]: - """v1_global_content_filters_get + ) -> ApiResponse[V1GatewaysGuestConsumerMatchIdGetResponse]: + """v1_gateways_guest_consumer_match_id_get - Get basic details for all content filter under the current enterprise + Get Site to Site VPN information for a non-Graphiant guest consumer by their email :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param match_id: (required) + :type match_id: int + :param email: + :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 @@ -76545,8 +76598,10 @@ def v1_global_content_filters_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_get_serialize( + _param = self._v1_gateways_guest_consumer_match_id_get_serialize( authorization=authorization, + match_id=match_id, + email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76554,7 +76609,7 @@ def v1_global_content_filters_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalContentFiltersGetResponse", + '200': "V1GatewaysGuestConsumerMatchIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76568,9 +76623,11 @@ def v1_global_content_filters_get_with_http_info( @validate_call - def v1_global_content_filters_get_without_preload_content( + def v1_gateways_guest_consumer_match_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + match_id: StrictInt, + email: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76584,12 +76641,16 @@ def v1_global_content_filters_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_content_filters_get + """v1_gateways_guest_consumer_match_id_get - Get basic details for all content filter under the current enterprise + Get Site to Site VPN information for a non-Graphiant guest consumer by their email :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param match_id: (required) + :type match_id: int + :param email: + :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 @@ -76612,8 +76673,10 @@ def v1_global_content_filters_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_get_serialize( + _param = self._v1_gateways_guest_consumer_match_id_get_serialize( authorization=authorization, + match_id=match_id, + email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76621,7 +76684,7 @@ def v1_global_content_filters_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalContentFiltersGetResponse", + '200': "V1GatewaysGuestConsumerMatchIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76630,9 +76693,11 @@ def v1_global_content_filters_get_without_preload_content( return response_data.response - def _v1_global_content_filters_get_serialize( + def _v1_gateways_guest_consumer_match_id_get_serialize( self, authorization, + match_id, + email, _request_auth, _content_type, _headers, @@ -76654,7 +76719,13 @@ def _v1_global_content_filters_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if match_id is not None: + _path_params['matchId'] = match_id # process the query parameters + if email is not None: + + _query_params.append(('email', email)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -76678,7 +76749,7 @@ def _v1_global_content_filters_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/content-filters', + resource_path='/v1/gateways/guest-consumer/{matchId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -76695,10 +76766,10 @@ def _v1_global_content_filters_get_serialize( @validate_call - def v1_global_content_filters_global_content_filter_id_delete( + def v1_gateways_id_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter to remove.")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76711,15 +76782,14 @@ def v1_global_content_filters_global_content_filter_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_global_content_filters_global_content_filter_id_delete + ) -> V1GatewaysIdDetailsGetResponse: + """v1_gateways_id_details_get - Delete a content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param global_content_filter_id: ID of the global content filter to remove. (required) - :type global_content_filter_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 @@ -76742,9 +76812,9 @@ def v1_global_content_filters_global_content_filter_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_global_content_filter_id_delete_serialize( + _param = self._v1_gateways_id_details_get_serialize( authorization=authorization, - global_content_filter_id=global_content_filter_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76752,7 +76822,7 @@ def v1_global_content_filters_global_content_filter_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GatewaysIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76766,10 +76836,10 @@ def v1_global_content_filters_global_content_filter_id_delete( @validate_call - def v1_global_content_filters_global_content_filter_id_delete_with_http_info( + def v1_gateways_id_details_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter to remove.")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76782,15 +76852,14 @@ def v1_global_content_filters_global_content_filter_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[object]: - """v1_global_content_filters_global_content_filter_id_delete + ) -> ApiResponse[V1GatewaysIdDetailsGetResponse]: + """v1_gateways_id_details_get - Delete a content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param global_content_filter_id: ID of the global content filter to remove. (required) - :type global_content_filter_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 @@ -76813,9 +76882,9 @@ def v1_global_content_filters_global_content_filter_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_global_content_filter_id_delete_serialize( + _param = self._v1_gateways_id_details_get_serialize( authorization=authorization, - global_content_filter_id=global_content_filter_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76823,7 +76892,7 @@ def v1_global_content_filters_global_content_filter_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GatewaysIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76837,10 +76906,10 @@ def v1_global_content_filters_global_content_filter_id_delete_with_http_info( @validate_call - def v1_global_content_filters_global_content_filter_id_delete_without_preload_content( + def v1_gateways_id_details_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter to remove.")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76854,14 +76923,13 @@ def v1_global_content_filters_global_content_filter_id_delete_without_preload_co _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_content_filters_global_content_filter_id_delete + """v1_gateways_id_details_get - Delete a content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param global_content_filter_id: ID of the global content filter to remove. (required) - :type global_content_filter_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 @@ -76884,9 +76952,9 @@ def v1_global_content_filters_global_content_filter_id_delete_without_preload_co :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_global_content_filter_id_delete_serialize( + _param = self._v1_gateways_id_details_get_serialize( authorization=authorization, - global_content_filter_id=global_content_filter_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -76894,7 +76962,7 @@ def v1_global_content_filters_global_content_filter_id_delete_without_preload_co ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GatewaysIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -76903,10 +76971,10 @@ def v1_global_content_filters_global_content_filter_id_delete_without_preload_co return response_data.response - def _v1_global_content_filters_global_content_filter_id_delete_serialize( + def _v1_gateways_id_details_get_serialize( self, authorization, - global_content_filter_id, + id, _request_auth, _content_type, _headers, @@ -76928,8 +76996,8 @@ def _v1_global_content_filters_global_content_filter_id_delete_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 + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: @@ -76953,8 +77021,8 @@ def _v1_global_content_filters_global_content_filter_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/global/content-filters/{globalContentFilterId}', + method='GET', + resource_path='/v1/gateways/{id}/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -76971,10 +77039,12 @@ def _v1_global_content_filters_global_content_filter_id_delete_serialize( @validate_call - def v1_global_content_filters_global_content_filter_id_get( + def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter whose configuration should be returned.")], + region_id: StrictInt, + vrf_id: StrictInt, + address_family: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -76987,15 +77057,19 @@ def v1_global_content_filters_global_content_filter_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalContentFiltersGlobalContentFilterIdGetResponse: - """v1_global_content_filters_global_content_filter_id_get + ) -> V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse: + """v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get - Get the config for a content filter under the current enterprise + Get the IPv4/Ipv6 Overlay Subnet for an ipsec gateway :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param global_content_filter_id: ID of the global content filter whose configuration should be returned. (required) - :type global_content_filter_id: int + :param region_id: (required) + :type region_id: int + :param vrf_id: (required) + :type vrf_id: int + :param address_family: + :type address_family: 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 @@ -77018,9 +77092,11 @@ def v1_global_content_filters_global_content_filter_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_global_content_filter_id_get_serialize( + _param = self._v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_serialize( authorization=authorization, - global_content_filter_id=global_content_filter_id, + region_id=region_id, + vrf_id=vrf_id, + address_family=address_family, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77028,7 +77104,7 @@ def v1_global_content_filters_global_content_filter_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalContentFiltersGlobalContentFilterIdGetResponse", + '200': "V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77042,10 +77118,12 @@ def v1_global_content_filters_global_content_filter_id_get( @validate_call - def v1_global_content_filters_global_content_filter_id_get_with_http_info( + def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter whose configuration should be returned.")], + region_id: StrictInt, + vrf_id: StrictInt, + address_family: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77058,15 +77136,19 @@ def v1_global_content_filters_global_content_filter_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[V1GlobalContentFiltersGlobalContentFilterIdGetResponse]: - """v1_global_content_filters_global_content_filter_id_get + ) -> ApiResponse[V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse]: + """v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get - Get the config for a content filter under the current enterprise + Get the IPv4/Ipv6 Overlay Subnet for an ipsec gateway :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param global_content_filter_id: ID of the global content filter whose configuration should be returned. (required) - :type global_content_filter_id: int + :param region_id: (required) + :type region_id: int + :param vrf_id: (required) + :type vrf_id: int + :param address_family: + :type address_family: 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 @@ -77089,9 +77171,11 @@ def v1_global_content_filters_global_content_filter_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_global_content_filter_id_get_serialize( + _param = self._v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_serialize( authorization=authorization, - global_content_filter_id=global_content_filter_id, + region_id=region_id, + vrf_id=vrf_id, + address_family=address_family, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77099,7 +77183,7 @@ def v1_global_content_filters_global_content_filter_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalContentFiltersGlobalContentFilterIdGetResponse", + '200': "V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77113,10 +77197,12 @@ def v1_global_content_filters_global_content_filter_id_get_with_http_info( @validate_call - def v1_global_content_filters_global_content_filter_id_get_without_preload_content( + def v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - global_content_filter_id: Annotated[StrictInt, Field(description="ID of the global content filter whose configuration should be returned.")], + region_id: StrictInt, + vrf_id: StrictInt, + address_family: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77130,14 +77216,18 @@ def v1_global_content_filters_global_content_filter_id_get_without_preload_conte _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_content_filters_global_content_filter_id_get + """v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get - Get the config for a content filter under the current enterprise + Get the IPv4/Ipv6 Overlay Subnet for an ipsec gateway :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param global_content_filter_id: ID of the global content filter whose configuration should be returned. (required) - :type global_content_filter_id: int + :param region_id: (required) + :type region_id: int + :param vrf_id: (required) + :type vrf_id: int + :param address_family: + :type address_family: 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 @@ -77160,9 +77250,11 @@ def v1_global_content_filters_global_content_filter_id_get_without_preload_conte :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_global_content_filter_id_get_serialize( + _param = self._v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_serialize( authorization=authorization, - global_content_filter_id=global_content_filter_id, + region_id=region_id, + vrf_id=vrf_id, + address_family=address_family, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77170,7 +77262,7 @@ def v1_global_content_filters_global_content_filter_id_get_without_preload_conte ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalContentFiltersGlobalContentFilterIdGetResponse", + '200': "V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77179,10 +77271,12 @@ def v1_global_content_filters_global_content_filter_id_get_without_preload_conte return response_data.response - def _v1_global_content_filters_global_content_filter_id_get_serialize( + def _v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_serialize( self, authorization, - global_content_filter_id, + region_id, + vrf_id, + address_family, _request_auth, _content_type, _headers, @@ -77204,9 +77298,15 @@ def _v1_global_content_filters_global_content_filter_id_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 + if region_id is not None: + _path_params['regionId'] = region_id + if vrf_id is not None: + _path_params['vrfId'] = vrf_id # process the query parameters + if address_family is not None: + + _query_params.append(('addressFamily', address_family)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -77230,7 +77330,7 @@ def _v1_global_content_filters_global_content_filter_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/content-filters/{globalContentFilterId}', + resource_path='/v1/gateways/ipsec/regions/{regionId}/vrfs/{vrfId}/inside-subnet', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -77247,11 +77347,10 @@ def _v1_global_content_filters_global_content_filter_id_get_serialize( @validate_call - def v1_global_content_filters_global_content_filter_id_put( + def v1_gateways_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - 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, + v1_gateways_post_request: V1GatewaysPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77264,17 +77363,14 @@ def v1_global_content_filters_global_content_filter_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_global_content_filters_global_content_filter_id_put + ) -> V1GatewaysPostResponse: + """v1_gateways_post - Overwrite a pre-existing content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 v1_gateways_post_request: (required) + :type v1_gateways_post_request: V1GatewaysPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77297,10 +77393,9 @@ def v1_global_content_filters_global_content_filter_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_global_content_filter_id_put_serialize( + _param = self._v1_gateways_post_serialize( authorization=authorization, - 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, + v1_gateways_post_request=v1_gateways_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77308,7 +77403,7 @@ def v1_global_content_filters_global_content_filter_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GatewaysPostResponse", } response_data = self.api_client.call_api( *_param, @@ -77322,11 +77417,10 @@ def v1_global_content_filters_global_content_filter_id_put( @validate_call - def v1_global_content_filters_global_content_filter_id_put_with_http_info( + def v1_gateways_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - 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, + v1_gateways_post_request: V1GatewaysPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77339,17 +77433,14 @@ def v1_global_content_filters_global_content_filter_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[object]: - """v1_global_content_filters_global_content_filter_id_put + ) -> ApiResponse[V1GatewaysPostResponse]: + """v1_gateways_post - Overwrite a pre-existing content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 v1_gateways_post_request: (required) + :type v1_gateways_post_request: V1GatewaysPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77372,10 +77463,9 @@ def v1_global_content_filters_global_content_filter_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_global_content_filter_id_put_serialize( + _param = self._v1_gateways_post_serialize( authorization=authorization, - 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, + v1_gateways_post_request=v1_gateways_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77383,7 +77473,7 @@ def v1_global_content_filters_global_content_filter_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GatewaysPostResponse", } response_data = self.api_client.call_api( *_param, @@ -77397,11 +77487,10 @@ def v1_global_content_filters_global_content_filter_id_put_with_http_info( @validate_call - def v1_global_content_filters_global_content_filter_id_put_without_preload_content( + def v1_gateways_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - 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, + v1_gateways_post_request: V1GatewaysPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77415,16 +77504,13 @@ def v1_global_content_filters_global_content_filter_id_put_without_preload_conte _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_content_filters_global_content_filter_id_put + """v1_gateways_post - Overwrite a pre-existing content filter under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 v1_gateways_post_request: (required) + :type v1_gateways_post_request: V1GatewaysPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77447,10 +77533,9 @@ def v1_global_content_filters_global_content_filter_id_put_without_preload_conte :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_global_content_filter_id_put_serialize( + _param = self._v1_gateways_post_serialize( authorization=authorization, - 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, + v1_gateways_post_request=v1_gateways_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77458,7 +77543,7 @@ def v1_global_content_filters_global_content_filter_id_put_without_preload_conte ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1GatewaysPostResponse", } response_data = self.api_client.call_api( *_param, @@ -77467,11 +77552,10 @@ def v1_global_content_filters_global_content_filter_id_put_without_preload_conte return response_data.response - def _v1_global_content_filters_global_content_filter_id_put_serialize( + def _v1_gateways_post_serialize( self, authorization, - global_content_filter_id, - v1_global_content_filters_global_content_filter_id_put_request, + v1_gateways_post_request, _request_auth, _content_type, _headers, @@ -77493,16 +77577,14 @@ def _v1_global_content_filters_global_content_filter_id_put_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_content_filters_global_content_filter_id_put_request is not None: - _body_params = v1_global_content_filters_global_content_filter_id_put_request + if v1_gateways_post_request is not None: + _body_params = v1_gateways_post_request # set the HTTP header `Accept` @@ -77533,8 +77615,8 @@ def _v1_global_content_filters_global_content_filter_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/global/content-filters/{globalContentFilterId}', + method='POST', + resource_path='/v1/gateways', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -77551,10 +77633,10 @@ def _v1_global_content_filters_global_content_filter_id_put_serialize( @validate_call - def v1_global_content_filters_post( + def v1_gateways_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_content_filters_post_request: V1GlobalContentFiltersPostRequest, + v1_gateways_put_request: V1GatewaysPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77567,15 +77649,14 @@ def v1_global_content_filters_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalContentFiltersPostResponse: - """v1_global_content_filters_post + ) -> object: + """v1_gateways_put - 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 v1_gateways_put_request: (required) + :type v1_gateways_put_request: V1GatewaysPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77598,9 +77679,9 @@ def v1_global_content_filters_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_post_serialize( + _param = self._v1_gateways_put_serialize( authorization=authorization, - v1_global_content_filters_post_request=v1_global_content_filters_post_request, + v1_gateways_put_request=v1_gateways_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77608,7 +77689,7 @@ def v1_global_content_filters_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalContentFiltersPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -77622,10 +77703,10 @@ def v1_global_content_filters_post( @validate_call - def v1_global_content_filters_post_with_http_info( + def v1_gateways_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_content_filters_post_request: V1GlobalContentFiltersPostRequest, + v1_gateways_put_request: V1GatewaysPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77638,15 +77719,14 @@ def v1_global_content_filters_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[V1GlobalContentFiltersPostResponse]: - """v1_global_content_filters_post + ) -> ApiResponse[object]: + """v1_gateways_put - 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 v1_gateways_put_request: (required) + :type v1_gateways_put_request: V1GatewaysPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77669,9 +77749,9 @@ def v1_global_content_filters_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_post_serialize( + _param = self._v1_gateways_put_serialize( authorization=authorization, - v1_global_content_filters_post_request=v1_global_content_filters_post_request, + v1_gateways_put_request=v1_gateways_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77679,7 +77759,7 @@ def v1_global_content_filters_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalContentFiltersPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -77693,10 +77773,10 @@ def v1_global_content_filters_post_with_http_info( @validate_call - def v1_global_content_filters_post_without_preload_content( + def v1_gateways_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_content_filters_post_request: V1GlobalContentFiltersPostRequest, + v1_gateways_put_request: V1GatewaysPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -77710,14 +77790,13 @@ def v1_global_content_filters_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_content_filters_post + """v1_gateways_put - 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 v1_gateways_put_request: (required) + :type v1_gateways_put_request: V1GatewaysPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -77740,9 +77819,9 @@ def v1_global_content_filters_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_content_filters_post_serialize( + _param = self._v1_gateways_put_serialize( authorization=authorization, - v1_global_content_filters_post_request=v1_global_content_filters_post_request, + v1_gateways_put_request=v1_gateways_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -77750,7 +77829,7 @@ def v1_global_content_filters_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalContentFiltersPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -77759,10 +77838,10 @@ def v1_global_content_filters_post_without_preload_content( return response_data.response - def _v1_global_content_filters_post_serialize( + def _v1_gateways_put_serialize( self, authorization, - v1_global_content_filters_post_request, + v1_gateways_put_request, _request_auth, _content_type, _headers, @@ -77790,8 +77869,8 @@ def _v1_global_content_filters_post_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 + if v1_gateways_put_request is not None: + _body_params = v1_gateways_put_request # set the HTTP header `Accept` @@ -77822,8 +77901,8 @@ def _v1_global_content_filters_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/content-filters', + method='PUT', + resource_path='/v1/gateways', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -77840,16 +77919,9 @@ def _v1_global_content_filters_post_serialize( @validate_call - def v1_global_device_status_get( + def v1_gateways_reference_consumer_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)], @@ -77862,27 +77934,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 + ) -> V1GatewaysReferenceConsumerGetResponse: + """v1_gateways_reference_consumer_get - Get status on global collector attached to devices + Get the priorly-configured IPSec gateway details for a customer, lan segment, region combination to be re-used for any new service matches for that customer with the given lan segment and region :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 @@ -77905,15 +77963,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_gateways_reference_consumer_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, @@ -77921,7 +77972,7 @@ def v1_global_device_status_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalDeviceStatusGetResponse", + '200': "V1GatewaysReferenceConsumerGetResponse", } response_data = self.api_client.call_api( *_param, @@ -77935,16 +77986,9 @@ def v1_global_device_status_get( @validate_call - def v1_global_device_status_get_with_http_info( + def v1_gateways_reference_consumer_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)], @@ -77957,27 +78001,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[V1GatewaysReferenceConsumerGetResponse]: + """v1_gateways_reference_consumer_get - Get status on global collector attached to devices + Get the priorly-configured IPSec gateway details for a customer, lan segment, region combination to be re-used for any new service matches for that customer with the given lan segment and region :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 @@ -78000,15 +78030,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_gateways_reference_consumer_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, @@ -78016,7 +78039,7 @@ def v1_global_device_status_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalDeviceStatusGetResponse", + '200': "V1GatewaysReferenceConsumerGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78030,16 +78053,9 @@ def v1_global_device_status_get_with_http_info( @validate_call - def v1_global_device_status_get_without_preload_content( + def v1_gateways_reference_consumer_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)], @@ -78053,26 +78069,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_gateways_reference_consumer_get - Get status on global collector attached to devices + Get the priorly-configured IPSec gateway details for a customer, lan segment, region combination to be re-used for any new service matches for that customer with the given lan segment and region :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 @@ -78095,15 +78097,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_gateways_reference_consumer_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, @@ -78111,7 +78106,7 @@ def v1_global_device_status_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalDeviceStatusGetResponse", + '200': "V1GatewaysReferenceConsumerGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78120,16 +78115,9 @@ def v1_global_device_status_get_without_preload_content( return response_data.response - def _v1_global_device_status_get_serialize( + def _v1_gateways_reference_consumer_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, @@ -78152,34 +78140,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 @@ -78203,7 +78163,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/gateways/reference-consumer', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -78220,7 +78180,7 @@ def _v1_global_device_status_get_serialize( @validate_call - def v1_global_domain_categories_get( + def v1_gateways_regions_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -78235,10 +78195,9 @@ def v1_global_domain_categories_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1GlobalDomainCategoriesGetResponse: - """v1_global_domain_categories_get + ) -> V1GatewaysRegionsGetResponse: + """v1_gateways_regions_get - Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -78264,7 +78223,7 @@ def v1_global_domain_categories_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_domain_categories_get_serialize( + _param = self._v1_gateways_regions_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -78273,7 +78232,7 @@ def v1_global_domain_categories_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalDomainCategoriesGetResponse", + '200': "V1GatewaysRegionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78287,7 +78246,7 @@ def v1_global_domain_categories_get( @validate_call - def v1_global_domain_categories_get_with_http_info( + def v1_gateways_regions_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -78302,10 +78261,9 @@ def v1_global_domain_categories_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[V1GlobalDomainCategoriesGetResponse]: - """v1_global_domain_categories_get + ) -> ApiResponse[V1GatewaysRegionsGetResponse]: + """v1_gateways_regions_get - Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -78331,7 +78289,7 @@ def v1_global_domain_categories_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_domain_categories_get_serialize( + _param = self._v1_gateways_regions_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -78340,7 +78298,7 @@ def v1_global_domain_categories_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalDomainCategoriesGetResponse", + '200': "V1GatewaysRegionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78354,7 +78312,7 @@ def v1_global_domain_categories_get_with_http_info( @validate_call - def v1_global_domain_categories_get_without_preload_content( + def v1_gateways_regions_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -78370,9 +78328,8 @@ def v1_global_domain_categories_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_global_domain_categories_get + """v1_gateways_regions_get - Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -78398,7 +78355,7 @@ def v1_global_domain_categories_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_domain_categories_get_serialize( + _param = self._v1_gateways_regions_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -78407,7 +78364,7 @@ def v1_global_domain_categories_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalDomainCategoriesGetResponse", + '200': "V1GatewaysRegionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78416,7 +78373,7 @@ def v1_global_domain_categories_get_without_preload_content( return response_data.response - def _v1_global_domain_categories_get_serialize( + def _v1_gateways_regions_get_serialize( self, authorization, _request_auth, @@ -78464,7 +78421,7 @@ def _v1_global_domain_categories_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/domain-categories', + resource_path='/v1/gateways/regions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -78481,10 +78438,10 @@ def _v1_global_domain_categories_get_serialize( @validate_call - def v1_global_ipfix_device_get( + def v1_gateways_status_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + v1_gateways_status_post_request: V1GatewaysStatusPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78497,15 +78454,14 @@ 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_gateways_status_post - 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 v1_gateways_status_post_request: (required) + :type v1_gateways_status_post_request: V1GatewaysStatusPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78528,9 +78484,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_gateways_status_post_serialize( authorization=authorization, - device_id=device_id, + v1_gateways_status_post_request=v1_gateways_status_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78538,7 +78494,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, @@ -78552,10 +78508,10 @@ def v1_global_ipfix_device_get( @validate_call - def v1_global_ipfix_device_get_with_http_info( + def v1_gateways_status_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + v1_gateways_status_post_request: V1GatewaysStatusPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78568,15 +78524,14 @@ 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_gateways_status_post - 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 v1_gateways_status_post_request: (required) + :type v1_gateways_status_post_request: V1GatewaysStatusPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78599,9 +78554,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_gateways_status_post_serialize( authorization=authorization, - device_id=device_id, + v1_gateways_status_post_request=v1_gateways_status_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78609,7 +78564,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, @@ -78623,10 +78578,10 @@ def v1_global_ipfix_device_get_with_http_info( @validate_call - def v1_global_ipfix_device_get_without_preload_content( + def v1_gateways_status_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + v1_gateways_status_post_request: V1GatewaysStatusPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78640,14 +78595,13 @@ 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_gateways_status_post - 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 v1_gateways_status_post_request: (required) + :type v1_gateways_status_post_request: V1GatewaysStatusPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78670,9 +78624,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_gateways_status_post_serialize( authorization=authorization, - device_id=device_id, + v1_gateways_status_post_request=v1_gateways_status_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78680,7 +78634,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, @@ -78689,10 +78643,10 @@ def v1_global_ipfix_device_get_without_preload_content( return response_data.response - def _v1_global_ipfix_device_get_serialize( + def _v1_gateways_status_post_serialize( self, authorization, - device_id, + v1_gateways_status_post_request, _request_auth, _content_type, _headers, @@ -78715,15 +78669,13 @@ def _v1_global_ipfix_device_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 # process the form parameters # process the body parameter + if v1_gateways_status_post_request is not None: + _body_params = v1_gateways_status_post_request # set the HTTP header `Accept` @@ -78734,6 +78686,19 @@ def _v1_global_ipfix_device_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] = [ @@ -78741,8 +78706,8 @@ def _v1_global_ipfix_device_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/ipfix/device', + method='POST', + resource_path='/v1/gateways/status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -78759,10 +78724,9 @@ def _v1_global_ipfix_device_get_serialize( @validate_call - def v1_global_ipfix_post( + def v1_gateways_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78775,15 +78739,12 @@ 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 + ) -> V1GatewaysSummaryGetResponse: + """v1_gateways_summary_get - Get configured global ipfix exporters :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78806,9 +78767,8 @@ def v1_global_ipfix_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ipfix_post_serialize( + _param = self._v1_gateways_summary_get_serialize( authorization=authorization, - v1_global_ipfix_post_request=v1_global_ipfix_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78816,7 +78776,7 @@ def v1_global_ipfix_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixPostResponse", + '200': "V1GatewaysSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78830,10 +78790,9 @@ def v1_global_ipfix_post( @validate_call - def v1_global_ipfix_post_with_http_info( + def v1_gateways_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78846,15 +78805,12 @@ 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[V1GatewaysSummaryGetResponse]: + """v1_gateways_summary_get - Get configured global ipfix exporters :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78877,9 +78833,8 @@ 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_gateways_summary_get_serialize( authorization=authorization, - v1_global_ipfix_post_request=v1_global_ipfix_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78887,7 +78842,7 @@ def v1_global_ipfix_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixPostResponse", + '200': "V1GatewaysSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78901,10 +78856,9 @@ def v1_global_ipfix_post_with_http_info( @validate_call - def v1_global_ipfix_post_without_preload_content( + def v1_gateways_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -78918,14 +78872,11 @@ 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_gateways_summary_get - Get configured global ipfix exporters :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -78948,9 +78899,8 @@ 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_gateways_summary_get_serialize( authorization=authorization, - v1_global_ipfix_post_request=v1_global_ipfix_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -78958,7 +78908,7 @@ def v1_global_ipfix_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixPostResponse", + '200': "V1GatewaysSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -78967,10 +78917,9 @@ def v1_global_ipfix_post_without_preload_content( return response_data.response - def _v1_global_ipfix_post_serialize( + def _v1_gateways_summary_get_serialize( self, authorization, - v1_global_ipfix_post_request, _request_auth, _content_type, _headers, @@ -78998,8 +78947,6 @@ def _v1_global_ipfix_post_serialize( _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` @@ -79010,19 +78957,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] = [ @@ -79030,8 +78964,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/gateways/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -79048,10 +78982,9 @@ def _v1_global_ipfix_post_serialize( @validate_call - def v1_global_ipfix_site_get( + def v1_global_apps_app_list_options_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)], @@ -79064,15 +78997,13 @@ 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 + ) -> V1GlobalAppsAppListOptionsGetResponse: + """v1_global_apps_app_list_options_get - Get configured global ipfix exporters for a site + Gets all apps and categories assignable to an app list for the the current 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 @@ -79095,9 +79026,8 @@ 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_apps_app_list_options_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79105,7 +79035,7 @@ def v1_global_ipfix_site_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixSiteGetResponse", + '200': "V1GlobalAppsAppListOptionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79119,10 +79049,9 @@ def v1_global_ipfix_site_get( @validate_call - def v1_global_ipfix_site_get_with_http_info( + def v1_global_apps_app_list_options_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)], @@ -79135,15 +79064,13 @@ 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[V1GlobalAppsAppListOptionsGetResponse]: + """v1_global_apps_app_list_options_get - Get configured global ipfix exporters for a site + Gets all apps and categories assignable to an app list for the the current 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 @@ -79166,9 +79093,8 @@ 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_apps_app_list_options_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79176,7 +79102,7 @@ def v1_global_ipfix_site_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixSiteGetResponse", + '200': "V1GlobalAppsAppListOptionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79190,10 +79116,9 @@ def v1_global_ipfix_site_get_with_http_info( @validate_call - def v1_global_ipfix_site_get_without_preload_content( + def v1_global_apps_app_list_options_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)], @@ -79207,14 +79132,12 @@ 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_apps_app_list_options_get - Get configured global ipfix exporters for a site + Gets all apps and categories assignable to an app list for the the current 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 @@ -79237,9 +79160,8 @@ 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_apps_app_list_options_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79247,7 +79169,7 @@ def v1_global_ipfix_site_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpfixSiteGetResponse", + '200': "V1GlobalAppsAppListOptionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79256,10 +79178,9 @@ def v1_global_ipfix_site_get_without_preload_content( return response_data.response - def _v1_global_ipfix_site_get_serialize( + def _v1_global_apps_app_list_options_get_serialize( self, authorization, - site_id, _request_auth, _content_type, _headers, @@ -79282,10 +79203,6 @@ def _v1_global_ipfix_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 @@ -79309,7 +79226,7 @@ def _v1_global_ipfix_site_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/ipfix/site', + resource_path='/v1/global/apps/app-list-options', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -79326,9 +79243,10 @@ def _v1_global_ipfix_site_get_serialize( @validate_call - def v1_global_ipsec_profile_get( + def v1_global_apps_app_lists_app_list_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79341,13 +79259,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 + ) -> object: + """v1_global_apps_app_lists_app_list_id_delete - Get all the configured global IPsec Profiles for the current enterprise + Delete an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param app_list_id: (required) + :type app_list_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 @@ -79370,8 +79290,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_apps_app_lists_app_list_id_delete_serialize( authorization=authorization, + app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79379,7 +79300,7 @@ def v1_global_ipsec_profile_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -79393,9 +79314,10 @@ def v1_global_ipsec_profile_get( @validate_call - def v1_global_ipsec_profile_get_with_http_info( + def v1_global_apps_app_lists_app_list_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79408,13 +79330,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[object]: + """v1_global_apps_app_lists_app_list_id_delete - Get all the configured global IPsec Profiles for the current enterprise + Delete an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param app_list_id: (required) + :type app_list_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 @@ -79437,8 +79361,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_apps_app_lists_app_list_id_delete_serialize( authorization=authorization, + app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79446,7 +79371,7 @@ def v1_global_ipsec_profile_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -79460,9 +79385,10 @@ def v1_global_ipsec_profile_get_with_http_info( @validate_call - def v1_global_ipsec_profile_get_without_preload_content( + def v1_global_apps_app_lists_app_list_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79476,12 +79402,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_apps_app_lists_app_list_id_delete - Get all the configured global IPsec Profiles for the current enterprise + Delete an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param app_list_id: (required) + :type app_list_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 @@ -79504,8 +79432,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_apps_app_lists_app_list_id_delete_serialize( authorization=authorization, + app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79513,7 +79442,7 @@ def v1_global_ipsec_profile_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -79522,9 +79451,10 @@ def v1_global_ipsec_profile_get_without_preload_content( return response_data.response - def _v1_global_ipsec_profile_get_serialize( + def _v1_global_apps_app_lists_app_list_id_delete_serialize( self, authorization, + app_list_id, _request_auth, _content_type, _headers, @@ -79546,6 +79476,8 @@ def _v1_global_ipsec_profile_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if app_list_id is not None: + _path_params['appListId'] = app_list_id # process the query parameters # process the header parameters if authorization is not None: @@ -79569,8 +79501,8 @@ def _v1_global_ipsec_profile_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/ipsec-profile', + method='DELETE', + resource_path='/v1/global/apps/app-lists/{appListId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -79587,10 +79519,10 @@ def _v1_global_ipsec_profile_get_serialize( @validate_call - def v1_global_ipsec_profile_id_get( + def v1_global_apps_app_lists_app_list_id_details_apps_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79603,15 +79535,15 @@ 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 + ) -> V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse: + """v1_global_apps_app_lists_app_list_id_details_apps_get - Get details of the configured global IPsec Profiles + Get all apps that are members of the provided app list :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param app_list_id: (required) + :type app_list_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 @@ -79634,9 +79566,9 @@ 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_apps_app_lists_app_list_id_details_apps_get_serialize( authorization=authorization, - id=id, + app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79644,7 +79576,7 @@ def v1_global_ipsec_profile_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileIdGetResponse", + '200': "V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79658,10 +79590,10 @@ def v1_global_ipsec_profile_id_get( @validate_call - def v1_global_ipsec_profile_id_get_with_http_info( + def v1_global_apps_app_lists_app_list_id_details_apps_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79674,15 +79606,15 @@ 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[V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse]: + """v1_global_apps_app_lists_app_list_id_details_apps_get - Get details of the configured global IPsec Profiles + Get all apps that are members of the provided app list :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param app_list_id: (required) + :type app_list_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 @@ -79705,9 +79637,9 @@ 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_apps_app_lists_app_list_id_details_apps_get_serialize( authorization=authorization, - id=id, + app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79715,7 +79647,7 @@ def v1_global_ipsec_profile_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileIdGetResponse", + '200': "V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79729,10 +79661,10 @@ 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_apps_app_lists_app_list_id_details_apps_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79746,14 +79678,14 @@ 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_apps_app_lists_app_list_id_details_apps_get - Get details of the configured global IPsec Profiles + Get all apps that are members of the provided app list :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param app_list_id: (required) + :type app_list_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 @@ -79776,9 +79708,9 @@ 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_apps_app_lists_app_list_id_details_apps_get_serialize( authorization=authorization, - id=id, + app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79786,7 +79718,7 @@ def v1_global_ipsec_profile_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileIdGetResponse", + '200': "V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79795,10 +79727,10 @@ 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_apps_app_lists_app_list_id_details_apps_get_serialize( self, authorization, - id, + app_list_id, _request_auth, _content_type, _headers, @@ -79820,8 +79752,8 @@ 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 + if app_list_id is not None: + _path_params['appListId'] = app_list_id # process the query parameters # process the header parameters if authorization is not None: @@ -79846,7 +79778,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/apps/app-lists/{appListId}/details/apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -79863,10 +79795,10 @@ 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_apps_app_lists_app_list_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vpn_profile_id: StrictInt, + app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79879,15 +79811,15 @@ 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 + ) -> V1GlobalAppsAppListsAppListIdGetResponse: + """v1_global_apps_app_lists_app_list_id_get - Get Site-to-site VPNs that are using the given global IPsec Profile + Get the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vpn_profile_id: (required) - :type vpn_profile_id: int + :param app_list_id: (required) + :type app_list_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 @@ -79910,9 +79842,9 @@ 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_apps_app_lists_app_list_id_get_serialize( authorization=authorization, - vpn_profile_id=vpn_profile_id, + app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79920,7 +79852,7 @@ def v1_global_ipsec_profile_vpn_profile_id_site_to_site_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse", + '200': "V1GlobalAppsAppListsAppListIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -79934,10 +79866,10 @@ 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_apps_app_lists_app_list_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vpn_profile_id: StrictInt, + app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -79950,15 +79882,15 @@ 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[V1GlobalAppsAppListsAppListIdGetResponse]: + """v1_global_apps_app_lists_app_list_id_get - Get Site-to-site VPNs that are using the given global IPsec Profile + Get the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vpn_profile_id: (required) - :type vpn_profile_id: int + :param app_list_id: (required) + :type app_list_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 @@ -79981,9 +79913,9 @@ 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_apps_app_lists_app_list_id_get_serialize( authorization=authorization, - vpn_profile_id=vpn_profile_id, + app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -79991,7 +79923,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': "V1GlobalAppsAppListsAppListIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -80005,10 +79937,10 @@ 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_apps_app_lists_app_list_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vpn_profile_id: StrictInt, + app_list_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80022,14 +79954,14 @@ 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_apps_app_lists_app_list_id_get - Get Site-to-site VPNs that are using the given global IPsec Profile + Get the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vpn_profile_id: (required) - :type vpn_profile_id: int + :param app_list_id: (required) + :type app_list_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 @@ -80052,9 +79984,9 @@ 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_apps_app_lists_app_list_id_get_serialize( authorization=authorization, - vpn_profile_id=vpn_profile_id, + app_list_id=app_list_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80062,7 +79994,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': "V1GlobalAppsAppListsAppListIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -80071,10 +80003,10 @@ 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_apps_app_lists_app_list_id_get_serialize( self, authorization, - vpn_profile_id, + app_list_id, _request_auth, _content_type, _headers, @@ -80096,8 +80028,8 @@ 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 + if app_list_id is not None: + _path_params['appListId'] = app_list_id # process the query parameters # process the header parameters if authorization is not None: @@ -80122,7 +80054,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/apps/app-lists/{appListId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -80139,9 +80071,11 @@ def _v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( @validate_call - def v1_global_lan_segments_get( + def v1_global_apps_app_lists_app_list_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + app_list_id: StrictInt, + v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80154,13 +80088,17 @@ 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 + ) -> object: + """v1_global_apps_app_lists_app_list_id_put - Get a list of lan-segments under the currently logged in enterprise + Overwrite the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param app_list_id: (required) + :type app_list_id: int + :param v1_global_apps_app_lists_app_list_id_put_request: (required) + :type v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80183,8 +80121,10 @@ 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_apps_app_lists_app_list_id_put_serialize( authorization=authorization, + app_list_id=app_list_id, + v1_global_apps_app_lists_app_list_id_put_request=v1_global_apps_app_lists_app_list_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80192,7 +80132,7 @@ def v1_global_lan_segments_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -80206,9 +80146,11 @@ def v1_global_lan_segments_get( @validate_call - def v1_global_lan_segments_get_with_http_info( + def v1_global_apps_app_lists_app_list_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + app_list_id: StrictInt, + v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80221,13 +80163,17 @@ 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[object]: + """v1_global_apps_app_lists_app_list_id_put - Get a list of lan-segments under the currently logged in enterprise + Overwrite the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param app_list_id: (required) + :type app_list_id: int + :param v1_global_apps_app_lists_app_list_id_put_request: (required) + :type v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80250,8 +80196,10 @@ 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_apps_app_lists_app_list_id_put_serialize( authorization=authorization, + app_list_id=app_list_id, + v1_global_apps_app_lists_app_list_id_put_request=v1_global_apps_app_lists_app_list_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80259,7 +80207,7 @@ def v1_global_lan_segments_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -80273,9 +80221,11 @@ def v1_global_lan_segments_get_with_http_info( @validate_call - def v1_global_lan_segments_get_without_preload_content( + def v1_global_apps_app_lists_app_list_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + app_list_id: StrictInt, + v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80289,12 +80239,16 @@ 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_apps_app_lists_app_list_id_put - Get a list of lan-segments under the currently logged in enterprise + Overwrite the configuration for an app list under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param app_list_id: (required) + :type app_list_id: int + :param v1_global_apps_app_lists_app_list_id_put_request: (required) + :type v1_global_apps_app_lists_app_list_id_put_request: V1GlobalAppsAppListsAppListIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80317,8 +80271,10 @@ 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_apps_app_lists_app_list_id_put_serialize( authorization=authorization, + app_list_id=app_list_id, + v1_global_apps_app_lists_app_list_id_put_request=v1_global_apps_app_lists_app_list_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80326,7 +80282,7 @@ def v1_global_lan_segments_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -80335,9 +80291,11 @@ def v1_global_lan_segments_get_without_preload_content( return response_data.response - def _v1_global_lan_segments_get_serialize( + def _v1_global_apps_app_lists_app_list_id_put_serialize( self, authorization, + app_list_id, + v1_global_apps_app_lists_app_list_id_put_request, _request_auth, _content_type, _headers, @@ -80359,12 +80317,16 @@ def _v1_global_lan_segments_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if app_list_id is not None: + _path_params['appListId'] = app_list_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_apps_app_lists_app_list_id_put_request is not None: + _body_params = v1_global_apps_app_lists_app_list_id_put_request # set the HTTP header `Accept` @@ -80375,6 +80337,19 @@ def _v1_global_lan_segments_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] = [ @@ -80382,8 +80357,8 @@ def _v1_global_lan_segments_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/lan-segments', + method='PUT', + resource_path='/v1/global/apps/app-lists/{appListId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -80400,10 +80375,9 @@ def _v1_global_lan_segments_get_serialize( @validate_call - def v1_global_lan_segments_id_delete( + def v1_global_apps_app_lists_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80416,15 +80390,13 @@ 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 + ) -> V1GlobalAppsAppListsGetResponse: + """v1_global_apps_app_lists_get - Delete a lan-segment + Get all app lists for the current 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 @@ -80447,9 +80419,8 @@ 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_apps_app_lists_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80457,7 +80428,7 @@ def v1_global_lan_segments_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalAppsAppListsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -80471,10 +80442,9 @@ def v1_global_lan_segments_id_delete( @validate_call - def v1_global_lan_segments_id_delete_with_http_info( + def v1_global_apps_app_lists_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)], @@ -80487,15 +80457,13 @@ 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[V1GlobalAppsAppListsGetResponse]: + """v1_global_apps_app_lists_get - Delete a lan-segment + Get all app lists for the current 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 @@ -80518,9 +80486,8 @@ 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_apps_app_lists_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80528,7 +80495,7 @@ def v1_global_lan_segments_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalAppsAppListsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -80542,10 +80509,9 @@ 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_apps_app_lists_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)], @@ -80559,14 +80525,12 @@ 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_apps_app_lists_get - Delete a lan-segment + Get all app lists for the current 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 @@ -80589,9 +80553,8 @@ 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_apps_app_lists_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80599,7 +80562,7 @@ def v1_global_lan_segments_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalAppsAppListsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -80608,10 +80571,9 @@ 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_apps_app_lists_get_serialize( self, authorization, - id, _request_auth, _content_type, _headers, @@ -80633,8 +80595,6 @@ 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: @@ -80643,6 +80603,13 @@ def _v1_global_lan_segments_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 @@ -80651,8 +80618,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='GET', + resource_path='/v1/global/apps/app-lists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -80669,10 +80636,10 @@ def _v1_global_lan_segments_id_delete_serialize( @validate_call - def v1_global_lan_segments_post( + def v1_global_apps_app_lists_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, + v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80685,15 +80652,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 + ) -> V1GlobalAppsAppListsPostResponse: + """v1_global_apps_app_lists_post - Create a new lan-segment scoped to the enterprise + Create an app list under the current enterprise :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 v1_global_apps_app_lists_post_request: (required) + :type v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80716,9 +80683,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_apps_app_lists_post_serialize( authorization=authorization, - v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, + v1_global_apps_app_lists_post_request=v1_global_apps_app_lists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80726,7 +80693,7 @@ def v1_global_lan_segments_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsPostResponse", + '200': "V1GlobalAppsAppListsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -80740,10 +80707,10 @@ def v1_global_lan_segments_post( @validate_call - def v1_global_lan_segments_post_with_http_info( + def v1_global_apps_app_lists_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, + v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80756,15 +80723,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[V1GlobalAppsAppListsPostResponse]: + """v1_global_apps_app_lists_post - Create a new lan-segment scoped to the enterprise + Create an app list under the current enterprise :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 v1_global_apps_app_lists_post_request: (required) + :type v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80787,9 +80754,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_apps_app_lists_post_serialize( authorization=authorization, - v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, + v1_global_apps_app_lists_post_request=v1_global_apps_app_lists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80797,7 +80764,7 @@ def v1_global_lan_segments_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsPostResponse", + '200': "V1GlobalAppsAppListsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -80811,10 +80778,10 @@ def v1_global_lan_segments_post_with_http_info( @validate_call - def v1_global_lan_segments_post_without_preload_content( + def v1_global_apps_app_lists_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, + v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80828,14 +80795,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_apps_app_lists_post - Create a new lan-segment scoped to the enterprise + Create an app list under the current enterprise :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 v1_global_apps_app_lists_post_request: (required) + :type v1_global_apps_app_lists_post_request: V1GlobalAppsAppListsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -80858,9 +80825,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_apps_app_lists_post_serialize( authorization=authorization, - v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, + v1_global_apps_app_lists_post_request=v1_global_apps_app_lists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -80868,7 +80835,7 @@ def v1_global_lan_segments_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsPostResponse", + '200': "V1GlobalAppsAppListsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -80877,10 +80844,10 @@ def v1_global_lan_segments_post_without_preload_content( return response_data.response - def _v1_global_lan_segments_post_serialize( + def _v1_global_apps_app_lists_post_serialize( self, authorization, - v1_global_lan_segments_post_request, + v1_global_apps_app_lists_post_request, _request_auth, _content_type, _headers, @@ -80908,8 +80875,8 @@ def _v1_global_lan_segments_post_serialize( _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 + if v1_global_apps_app_lists_post_request is not None: + _body_params = v1_global_apps_app_lists_post_request # set the HTTP header `Accept` @@ -80941,7 +80908,7 @@ def _v1_global_lan_segments_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/global/lan-segments', + resource_path='/v1/global/apps/app-lists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -80958,10 +80925,10 @@ def _v1_global_lan_segments_post_serialize( @validate_call - def v1_global_lan_segments_vrf_id_devices_get( + def v1_global_apps_categories_category_id_apps_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vrf_id: StrictInt, + category_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -80974,15 +80941,15 @@ 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 + ) -> V1GlobalAppsCategoriesCategoryIdAppsGetResponse: + """v1_global_apps_categories_category_id_apps_get - Get a list of lan-segment devices under the currently logged in enterprise + Get all Graphiant apps in an app category :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vrf_id: (required) - :type vrf_id: int + :param category_id: (required) + :type category_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 @@ -81005,9 +80972,9 @@ 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_apps_categories_category_id_apps_get_serialize( authorization=authorization, - vrf_id=vrf_id, + category_id=category_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81015,7 +80982,7 @@ def v1_global_lan_segments_vrf_id_devices_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", + '200': "V1GlobalAppsCategoriesCategoryIdAppsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81029,10 +80996,10 @@ 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_apps_categories_category_id_apps_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vrf_id: StrictInt, + category_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81045,15 +81012,15 @@ 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[V1GlobalAppsCategoriesCategoryIdAppsGetResponse]: + """v1_global_apps_categories_category_id_apps_get - Get a list of lan-segment devices under the currently logged in enterprise + Get all Graphiant apps in an app category :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vrf_id: (required) - :type vrf_id: int + :param category_id: (required) + :type category_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 @@ -81076,9 +81043,9 @@ 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_apps_categories_category_id_apps_get_serialize( authorization=authorization, - vrf_id=vrf_id, + category_id=category_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81086,7 +81053,7 @@ def v1_global_lan_segments_vrf_id_devices_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", + '200': "V1GlobalAppsCategoriesCategoryIdAppsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81100,10 +81067,10 @@ 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_apps_categories_category_id_apps_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - vrf_id: StrictInt, + category_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81117,14 +81084,14 @@ 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_apps_categories_category_id_apps_get - Get a list of lan-segment devices under the currently logged in enterprise + Get all Graphiant apps in an app category :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param vrf_id: (required) - :type vrf_id: int + :param category_id: (required) + :type category_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 @@ -81147,9 +81114,9 @@ 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_apps_categories_category_id_apps_get_serialize( authorization=authorization, - vrf_id=vrf_id, + category_id=category_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81157,7 +81124,7 @@ def v1_global_lan_segments_vrf_id_devices_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", + '200': "V1GlobalAppsCategoriesCategoryIdAppsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81166,10 +81133,10 @@ 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_apps_categories_category_id_apps_get_serialize( self, authorization, - vrf_id, + category_id, _request_auth, _content_type, _headers, @@ -81191,8 +81158,8 @@ 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 + if category_id is not None: + _path_params['categoryId'] = category_id # process the query parameters # process the header parameters if authorization is not None: @@ -81217,7 +81184,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/apps/categories/{categoryId}/apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -81234,10 +81201,9 @@ def _v1_global_lan_segments_vrf_id_devices_get_serialize( @validate_call - def v1_global_ntps_device_get( + def v1_global_apps_categories_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)], @@ -81250,15 +81216,13 @@ 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 + ) -> V1GlobalAppsCategoriesGetResponse: + """v1_global_apps_categories_get - Get global ntp objects that failed to attach for a device + Get all app categories holding Graphiant apps :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 @@ -81281,9 +81245,8 @@ 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_apps_categories_get_serialize( authorization=authorization, - device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81291,7 +81254,7 @@ def v1_global_ntps_device_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsDeviceGetResponse", + '200': "V1GlobalAppsCategoriesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81305,10 +81268,9 @@ def v1_global_ntps_device_get( @validate_call - def v1_global_ntps_device_get_with_http_info( + def v1_global_apps_categories_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)], @@ -81321,15 +81283,13 @@ 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[V1GlobalAppsCategoriesGetResponse]: + """v1_global_apps_categories_get - Get global ntp objects that failed to attach for a device + Get all app categories holding Graphiant apps :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 @@ -81352,9 +81312,8 @@ 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_apps_categories_get_serialize( authorization=authorization, - device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81362,7 +81321,7 @@ def v1_global_ntps_device_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsDeviceGetResponse", + '200': "V1GlobalAppsCategoriesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81376,10 +81335,9 @@ def v1_global_ntps_device_get_with_http_info( @validate_call - def v1_global_ntps_device_get_without_preload_content( + def v1_global_apps_categories_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)], @@ -81393,14 +81351,12 @@ 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_apps_categories_get - Get global ntp objects that failed to attach for a device + Get all app categories holding Graphiant apps :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 @@ -81423,9 +81379,8 @@ 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_apps_categories_get_serialize( authorization=authorization, - device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81433,7 +81388,7 @@ def v1_global_ntps_device_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsDeviceGetResponse", + '200': "V1GlobalAppsCategoriesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81442,10 +81397,9 @@ def v1_global_ntps_device_get_without_preload_content( return response_data.response - def _v1_global_ntps_device_get_serialize( + def _v1_global_apps_categories_get_serialize( self, authorization, - device_id, _request_auth, _content_type, _headers, @@ -81468,10 +81422,6 @@ def _v1_global_ntps_device_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 @@ -81495,7 +81445,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/apps/categories', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -81512,10 +81462,10 @@ def _v1_global_ntps_device_get_serialize( @validate_call - def v1_global_ntps_post( + def v1_global_apps_custom_app_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ntps_post_request: V1GlobalNtpsPostRequest, + app_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81528,15 +81478,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 + ) -> object: + """v1_global_apps_custom_app_id_delete - Get configured global ntps + Delete a global app under the current enterprise :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 app_id: (required) + :type app_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 @@ -81559,9 +81509,9 @@ def v1_global_ntps_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_ntps_post_serialize( + _param = self._v1_global_apps_custom_app_id_delete_serialize( authorization=authorization, - v1_global_ntps_post_request=v1_global_ntps_post_request, + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81569,7 +81519,7 @@ def v1_global_ntps_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -81583,10 +81533,10 @@ def v1_global_ntps_post( @validate_call - def v1_global_ntps_post_with_http_info( + def v1_global_apps_custom_app_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ntps_post_request: V1GlobalNtpsPostRequest, + app_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81599,15 +81549,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[object]: + """v1_global_apps_custom_app_id_delete - Get configured global ntps + Delete a global app under the current enterprise :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 app_id: (required) + :type app_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 @@ -81630,9 +81580,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_apps_custom_app_id_delete_serialize( authorization=authorization, - v1_global_ntps_post_request=v1_global_ntps_post_request, + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81640,7 +81590,7 @@ def v1_global_ntps_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -81654,10 +81604,10 @@ def v1_global_ntps_post_with_http_info( @validate_call - def v1_global_ntps_post_without_preload_content( + def v1_global_apps_custom_app_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_ntps_post_request: V1GlobalNtpsPostRequest, + app_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81671,14 +81621,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_apps_custom_app_id_delete - Get configured global ntps + Delete a global app under the current enterprise :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 app_id: (required) + :type app_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 @@ -81701,9 +81651,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_apps_custom_app_id_delete_serialize( authorization=authorization, - v1_global_ntps_post_request=v1_global_ntps_post_request, + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81711,7 +81661,7 @@ def v1_global_ntps_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -81720,10 +81670,10 @@ def v1_global_ntps_post_without_preload_content( return response_data.response - def _v1_global_ntps_post_serialize( + def _v1_global_apps_custom_app_id_delete_serialize( self, authorization, - v1_global_ntps_post_request, + app_id, _request_auth, _content_type, _headers, @@ -81745,14 +81695,14 @@ def _v1_global_ntps_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if app_id is not None: + _path_params['appId'] = app_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` @@ -81763,19 +81713,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] = [ @@ -81783,8 +81720,8 @@ def _v1_global_ntps_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/ntps', + method='DELETE', + resource_path='/v1/global/apps/custom/{appId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -81801,10 +81738,10 @@ def _v1_global_ntps_post_serialize( @validate_call - def v1_global_ntps_site_get( + def v1_global_apps_custom_app_id_details_app_lists_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + app_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81817,15 +81754,15 @@ 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 + ) -> V1GlobalAppsCustomAppIdDetailsAppListsGetResponse: + """v1_global_apps_custom_app_id_details_app_lists_get - Get configured global ntps + Get all app lists that contain the relevant global app :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param app_id: (required) + :type app_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 @@ -81848,9 +81785,9 @@ 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_apps_custom_app_id_details_app_lists_get_serialize( authorization=authorization, - site_id=site_id, + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81858,7 +81795,7 @@ def v1_global_ntps_site_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsSiteGetResponse", + '200': "V1GlobalAppsCustomAppIdDetailsAppListsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81872,10 +81809,10 @@ def v1_global_ntps_site_get( @validate_call - def v1_global_ntps_site_get_with_http_info( + def v1_global_apps_custom_app_id_details_app_lists_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + app_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81888,15 +81825,15 @@ 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[V1GlobalAppsCustomAppIdDetailsAppListsGetResponse]: + """v1_global_apps_custom_app_id_details_app_lists_get - Get configured global ntps + Get all app lists that contain the relevant global app :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param app_id: (required) + :type app_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 @@ -81919,9 +81856,9 @@ 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_apps_custom_app_id_details_app_lists_get_serialize( authorization=authorization, - site_id=site_id, + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -81929,7 +81866,7 @@ def v1_global_ntps_site_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsSiteGetResponse", + '200': "V1GlobalAppsCustomAppIdDetailsAppListsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -81943,10 +81880,10 @@ def v1_global_ntps_site_get_with_http_info( @validate_call - def v1_global_ntps_site_get_without_preload_content( + def v1_global_apps_custom_app_id_details_app_lists_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + app_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -81960,14 +81897,14 @@ 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_apps_custom_app_id_details_app_lists_get - Get configured global ntps + Get all app lists that contain the relevant global app :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :param app_id: (required) + :type app_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 @@ -81990,9 +81927,9 @@ 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_apps_custom_app_id_details_app_lists_get_serialize( authorization=authorization, - site_id=site_id, + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82000,7 +81937,7 @@ def v1_global_ntps_site_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalNtpsSiteGetResponse", + '200': "V1GlobalAppsCustomAppIdDetailsAppListsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82009,10 +81946,10 @@ def v1_global_ntps_site_get_without_preload_content( return response_data.response - def _v1_global_ntps_site_get_serialize( + def _v1_global_apps_custom_app_id_details_app_lists_get_serialize( self, authorization, - site_id, + app_id, _request_auth, _content_type, _headers, @@ -82034,11 +81971,9 @@ def _v1_global_ntps_site_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if app_id is not None: + _path_params['appId'] = app_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 @@ -82062,7 +81997,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/apps/custom/{appId}/details/app-lists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -82079,10 +82014,10 @@ def _v1_global_ntps_site_get_serialize( @validate_call - def v1_global_prefix_sets_post( + def v1_global_apps_custom_app_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, + app_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82095,15 +82030,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 + ) -> V1GlobalAppsCustomAppIdGetResponse: + """v1_global_apps_custom_app_id_get - Get configured global prefix-sets + Get the configuration for a global app under the current enterprise :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 app_id: (required) + :type app_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 @@ -82126,9 +82061,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_apps_custom_app_id_get_serialize( authorization=authorization, - v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82136,7 +82071,7 @@ def v1_global_prefix_sets_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalPrefixSetsPostResponse", + '200': "V1GlobalAppsCustomAppIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82150,10 +82085,10 @@ def v1_global_prefix_sets_post( @validate_call - def v1_global_prefix_sets_post_with_http_info( + def v1_global_apps_custom_app_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, + app_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82166,15 +82101,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[V1GlobalAppsCustomAppIdGetResponse]: + """v1_global_apps_custom_app_id_get - Get configured global prefix-sets + Get the configuration for a global app under the current enterprise :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 app_id: (required) + :type app_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 @@ -82197,9 +82132,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_apps_custom_app_id_get_serialize( authorization=authorization, - v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82207,7 +82142,7 @@ def v1_global_prefix_sets_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalPrefixSetsPostResponse", + '200': "V1GlobalAppsCustomAppIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82221,10 +82156,10 @@ def v1_global_prefix_sets_post_with_http_info( @validate_call - def v1_global_prefix_sets_post_without_preload_content( + def v1_global_apps_custom_app_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, + app_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82238,14 +82173,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_apps_custom_app_id_get - Get configured global prefix-sets + Get the configuration for a global app under the current enterprise :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 app_id: (required) + :type app_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 @@ -82268,9 +82203,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_apps_custom_app_id_get_serialize( authorization=authorization, - v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, + app_id=app_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82278,7 +82213,7 @@ def v1_global_prefix_sets_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalPrefixSetsPostResponse", + '200': "V1GlobalAppsCustomAppIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82287,10 +82222,10 @@ def v1_global_prefix_sets_post_without_preload_content( return response_data.response - def _v1_global_prefix_sets_post_serialize( + def _v1_global_apps_custom_app_id_get_serialize( self, authorization, - v1_global_prefix_sets_post_request, + app_id, _request_auth, _content_type, _headers, @@ -82312,14 +82247,14 @@ def _v1_global_prefix_sets_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if app_id is not None: + _path_params['appId'] = app_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` @@ -82330,19 +82265,6 @@ def _v1_global_prefix_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] = [ @@ -82350,8 +82272,8 @@ def _v1_global_prefix_sets_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/prefix-sets', + method='GET', + resource_path='/v1/global/apps/custom/{appId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -82368,10 +82290,11 @@ def _v1_global_prefix_sets_post_serialize( @validate_call - def v1_global_routing_policies_post( + def v1_global_apps_custom_app_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, + app_id: StrictInt, + v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82384,15 +82307,17 @@ 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 + ) -> object: + """v1_global_apps_custom_app_id_put - Get configured global routing-policies + Overwrite the configuration for a global app under the current 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 app_id: (required) + :type app_id: int + :param v1_global_apps_custom_app_id_put_request: (required) + :type v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82415,9 +82340,10 @@ 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_apps_custom_app_id_put_serialize( authorization=authorization, - v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, + app_id=app_id, + v1_global_apps_custom_app_id_put_request=v1_global_apps_custom_app_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82425,7 +82351,7 @@ def v1_global_routing_policies_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalRoutingPoliciesPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -82439,10 +82365,11 @@ def v1_global_routing_policies_post( @validate_call - def v1_global_routing_policies_post_with_http_info( + def v1_global_apps_custom_app_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, + app_id: StrictInt, + v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82455,15 +82382,17 @@ 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[object]: + """v1_global_apps_custom_app_id_put - Get configured global routing-policies + Overwrite the configuration for a global app under the current 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 app_id: (required) + :type app_id: int + :param v1_global_apps_custom_app_id_put_request: (required) + :type v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82486,9 +82415,10 @@ 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_apps_custom_app_id_put_serialize( authorization=authorization, - v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, + app_id=app_id, + v1_global_apps_custom_app_id_put_request=v1_global_apps_custom_app_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82496,7 +82426,7 @@ def v1_global_routing_policies_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalRoutingPoliciesPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -82510,10 +82440,11 @@ def v1_global_routing_policies_post_with_http_info( @validate_call - def v1_global_routing_policies_post_without_preload_content( + def v1_global_apps_custom_app_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, + app_id: StrictInt, + v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82527,14 +82458,16 @@ 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_apps_custom_app_id_put - Get configured global routing-policies + Overwrite the configuration for a global app under the current 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 app_id: (required) + :type app_id: int + :param v1_global_apps_custom_app_id_put_request: (required) + :type v1_global_apps_custom_app_id_put_request: V1GlobalAppsCustomAppIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82557,9 +82490,10 @@ 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_apps_custom_app_id_put_serialize( authorization=authorization, - v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, + app_id=app_id, + v1_global_apps_custom_app_id_put_request=v1_global_apps_custom_app_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82567,7 +82501,7 @@ def v1_global_routing_policies_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalRoutingPoliciesPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -82576,10 +82510,11 @@ def v1_global_routing_policies_post_without_preload_content( return response_data.response - def _v1_global_routing_policies_post_serialize( + def _v1_global_apps_custom_app_id_put_serialize( self, authorization, - v1_global_routing_policies_post_request, + app_id, + v1_global_apps_custom_app_id_put_request, _request_auth, _content_type, _headers, @@ -82601,14 +82536,16 @@ def _v1_global_routing_policies_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if app_id is not None: + _path_params['appId'] = app_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_routing_policies_post_request is not None: - _body_params = v1_global_routing_policies_post_request + if v1_global_apps_custom_app_id_put_request is not None: + _body_params = v1_global_apps_custom_app_id_put_request # set the HTTP header `Accept` @@ -82639,8 +82576,8 @@ def _v1_global_routing_policies_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/routing-policies', + method='PUT', + resource_path='/v1/global/apps/custom/{appId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -82657,7 +82594,7 @@ def _v1_global_routing_policies_post_serialize( @validate_call - def v1_global_site_lists_get( + def v1_global_apps_custom_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -82672,10 +82609,10 @@ 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 + ) -> V1GlobalAppsCustomGetResponse: + """v1_global_apps_custom_get - Get a list of site lists under the currently logged in enterprise + Get all global apps mapped by the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -82701,7 +82638,7 @@ 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_apps_custom_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -82710,7 +82647,7 @@ def v1_global_site_lists_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsGetResponse", + '200': "V1GlobalAppsCustomGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82724,7 +82661,7 @@ def v1_global_site_lists_get( @validate_call - def v1_global_site_lists_get_with_http_info( + def v1_global_apps_custom_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -82739,10 +82676,10 @@ 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[V1GlobalAppsCustomGetResponse]: + """v1_global_apps_custom_get - Get a list of site lists under the currently logged in enterprise + Get all global apps mapped by the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -82768,7 +82705,7 @@ 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_apps_custom_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -82777,7 +82714,7 @@ def v1_global_site_lists_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsGetResponse", + '200': "V1GlobalAppsCustomGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82791,7 +82728,7 @@ def v1_global_site_lists_get_with_http_info( @validate_call - def v1_global_site_lists_get_without_preload_content( + def v1_global_apps_custom_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -82807,9 +82744,9 @@ 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_apps_custom_get - Get a list of site lists under the currently logged in enterprise + Get all global apps mapped by the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -82835,7 +82772,7 @@ 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_apps_custom_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -82844,7 +82781,7 @@ def v1_global_site_lists_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsGetResponse", + '200': "V1GlobalAppsCustomGetResponse", } response_data = self.api_client.call_api( *_param, @@ -82853,7 +82790,7 @@ def v1_global_site_lists_get_without_preload_content( return response_data.response - def _v1_global_site_lists_get_serialize( + def _v1_global_apps_custom_get_serialize( self, authorization, _request_auth, @@ -82901,7 +82838,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/apps/custom', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -82918,10 +82855,10 @@ def _v1_global_site_lists_get_serialize( @validate_call - def v1_global_site_lists_id_delete( + def v1_global_apps_custom_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -82934,15 +82871,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 + ) -> V1GlobalAppsCustomPostResponse: + """v1_global_apps_custom_post - Delete a site list + Create a new global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_apps_custom_post_request: (required) + :type v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -82965,9 +82902,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_apps_custom_post_serialize( authorization=authorization, - id=id, + v1_global_apps_custom_post_request=v1_global_apps_custom_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -82975,7 +82912,7 @@ def v1_global_site_lists_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalAppsCustomPostResponse", } response_data = self.api_client.call_api( *_param, @@ -82989,10 +82926,10 @@ def v1_global_site_lists_id_delete( @validate_call - def v1_global_site_lists_id_delete_with_http_info( + def v1_global_apps_custom_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83005,15 +82942,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[V1GlobalAppsCustomPostResponse]: + """v1_global_apps_custom_post - Delete a site list + Create a new global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_apps_custom_post_request: (required) + :type v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83036,9 +82973,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_apps_custom_post_serialize( authorization=authorization, - id=id, + v1_global_apps_custom_post_request=v1_global_apps_custom_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83046,7 +82983,7 @@ def v1_global_site_lists_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalAppsCustomPostResponse", } response_data = self.api_client.call_api( *_param, @@ -83060,10 +82997,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_apps_custom_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83077,14 +83014,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_apps_custom_post - Delete a site list + Create a new global app under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_apps_custom_post_request: (required) + :type v1_global_apps_custom_post_request: V1GlobalAppsCustomPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83107,9 +83044,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_apps_custom_post_serialize( authorization=authorization, - id=id, + v1_global_apps_custom_post_request=v1_global_apps_custom_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83117,7 +83054,7 @@ def v1_global_site_lists_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1GlobalAppsCustomPostResponse", } response_data = self.api_client.call_api( *_param, @@ -83126,10 +83063,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_apps_custom_post_serialize( self, authorization, - id, + v1_global_apps_custom_post_request, _request_auth, _content_type, _headers, @@ -83151,17 +83088,37 @@ 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 # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_global_apps_custom_post_request is not None: + _body_params = v1_global_apps_custom_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] = [ @@ -83169,8 +83126,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='POST', + resource_path='/v1/global/apps/custom', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -83187,10 +83144,9 @@ def _v1_global_site_lists_id_delete_serialize( @validate_call - def v1_global_site_lists_id_get( + def v1_global_apps_graphiant_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83203,15 +83159,13 @@ 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 + ) -> V1GlobalAppsGraphiantGetResponse: + """v1_global_apps_graphiant_get - Get a details of a site list + Get all apps mapped by Graphiant :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 @@ -83234,9 +83188,8 @@ 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_apps_graphiant_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83244,7 +83197,7 @@ def v1_global_site_lists_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdGetResponse", + '200': "V1GlobalAppsGraphiantGetResponse", } response_data = self.api_client.call_api( *_param, @@ -83258,10 +83211,9 @@ def v1_global_site_lists_id_get( @validate_call - def v1_global_site_lists_id_get_with_http_info( + def v1_global_apps_graphiant_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)], @@ -83274,15 +83226,13 @@ 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[V1GlobalAppsGraphiantGetResponse]: + """v1_global_apps_graphiant_get - Get a details of a site list + Get all apps mapped by Graphiant :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 @@ -83305,9 +83255,8 @@ 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_apps_graphiant_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83315,7 +83264,7 @@ def v1_global_site_lists_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdGetResponse", + '200': "V1GlobalAppsGraphiantGetResponse", } response_data = self.api_client.call_api( *_param, @@ -83329,10 +83278,9 @@ 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_apps_graphiant_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)], @@ -83346,14 +83294,12 @@ 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_apps_graphiant_get - Get a details of a site list + Get all apps mapped by Graphiant :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 @@ -83376,9 +83322,8 @@ 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_apps_graphiant_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83386,7 +83331,7 @@ def v1_global_site_lists_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdGetResponse", + '200': "V1GlobalAppsGraphiantGetResponse", } response_data = self.api_client.call_api( *_param, @@ -83395,10 +83340,9 @@ 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_apps_graphiant_get_serialize( self, authorization, - id, _request_auth, _content_type, _headers, @@ -83420,8 +83364,6 @@ 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: @@ -83446,7 +83388,7 @@ def _v1_global_site_lists_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/site-lists/{id}', + resource_path='/v1/global/apps/graphiant', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -83463,11 +83405,10 @@ def _v1_global_site_lists_id_get_serialize( @validate_call - def v1_global_site_lists_id_put( + def v1_global_attached_edges_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, + v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83480,17 +83421,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 + ) -> V1GlobalAttachedEdgesPostResponse: + """v1_global_attached_edges_post - Update a new site list scoped to the enterprise + Returns attached edges for global object :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 v1_global_attached_edges_post_request: (required) + :type v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83513,10 +83452,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_attached_edges_post_serialize( authorization=authorization, - id=id, - v1_global_site_lists_id_put_request=v1_global_site_lists_id_put_request, + v1_global_attached_edges_post_request=v1_global_attached_edges_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83524,7 +83462,7 @@ def v1_global_site_lists_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdPutResponse", + '200': "V1GlobalAttachedEdgesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -83538,11 +83476,10 @@ def v1_global_site_lists_id_put( @validate_call - def v1_global_site_lists_id_put_with_http_info( + def v1_global_attached_edges_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, + v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83555,17 +83492,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[V1GlobalAttachedEdgesPostResponse]: + """v1_global_attached_edges_post - Update a new site list scoped to the enterprise + Returns attached edges for global object :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 v1_global_attached_edges_post_request: (required) + :type v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83588,10 +83523,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_attached_edges_post_serialize( authorization=authorization, - id=id, - v1_global_site_lists_id_put_request=v1_global_site_lists_id_put_request, + v1_global_attached_edges_post_request=v1_global_attached_edges_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83599,7 +83533,7 @@ def v1_global_site_lists_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdPutResponse", + '200': "V1GlobalAttachedEdgesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -83613,11 +83547,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_attached_edges_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, + v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83631,16 +83564,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_attached_edges_post - Update a new site list scoped to the enterprise + Returns attached edges for global object :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 v1_global_attached_edges_post_request: (required) + :type v1_global_attached_edges_post_request: V1GlobalAttachedEdgesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83663,10 +83594,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_attached_edges_post_serialize( authorization=authorization, - id=id, - v1_global_site_lists_id_put_request=v1_global_site_lists_id_put_request, + v1_global_attached_edges_post_request=v1_global_attached_edges_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83674,7 +83604,7 @@ def v1_global_site_lists_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdPutResponse", + '200': "V1GlobalAttachedEdgesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -83683,11 +83613,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_attached_edges_post_serialize( self, authorization, - id, - v1_global_site_lists_id_put_request, + v1_global_attached_edges_post_request, _request_auth, _content_type, _headers, @@ -83709,16 +83638,14 @@ 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 # 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 + if v1_global_attached_edges_post_request is not None: + _body_params = v1_global_attached_edges_post_request # set the HTTP header `Accept` @@ -83749,8 +83676,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='POST', + resource_path='/v1/global/attached-edges', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -83767,10 +83694,10 @@ def _v1_global_site_lists_id_put_serialize( @validate_call - def v1_global_site_lists_id_sites_get( + def v1_global_config_patch( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_config_patch_request: V1GlobalConfigPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83783,15 +83710,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 + ) -> V1GlobalConfigPatchResponse: + """v1_global_config_patch - Get a details of a site list sites + Update global objects for an enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_config_patch_request: (required) + :type v1_global_config_patch_request: V1GlobalConfigPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83814,9 +83741,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_config_patch_serialize( authorization=authorization, - id=id, + v1_global_config_patch_request=v1_global_config_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83824,7 +83751,7 @@ def v1_global_site_lists_id_sites_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdSitesGetResponse", + '200': "V1GlobalConfigPatchResponse", } response_data = self.api_client.call_api( *_param, @@ -83838,10 +83765,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_config_patch_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_config_patch_request: V1GlobalConfigPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83854,15 +83781,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[V1GlobalConfigPatchResponse]: + """v1_global_config_patch - Get a details of a site list sites + Update global objects for an enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_config_patch_request: (required) + :type v1_global_config_patch_request: V1GlobalConfigPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83885,9 +83812,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_config_patch_serialize( authorization=authorization, - id=id, + v1_global_config_patch_request=v1_global_config_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83895,7 +83822,7 @@ def v1_global_site_lists_id_sites_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdSitesGetResponse", + '200': "V1GlobalConfigPatchResponse", } response_data = self.api_client.call_api( *_param, @@ -83909,10 +83836,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_config_patch_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + v1_global_config_patch_request: V1GlobalConfigPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -83926,14 +83853,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_config_patch - Get a details of a site list sites + Update global objects for an enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param v1_global_config_patch_request: (required) + :type v1_global_config_patch_request: V1GlobalConfigPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -83956,9 +83883,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_config_patch_serialize( authorization=authorization, - id=id, + v1_global_config_patch_request=v1_global_config_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -83966,7 +83893,7 @@ def v1_global_site_lists_id_sites_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsIdSitesGetResponse", + '200': "V1GlobalConfigPatchResponse", } response_data = self.api_client.call_api( *_param, @@ -83975,10 +83902,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_config_patch_serialize( self, authorization, - id, + v1_global_config_patch_request, _request_auth, _content_type, _headers, @@ -84000,14 +83927,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_config_patch_request is not None: + _body_params = v1_global_config_patch_request # set the HTTP header `Accept` @@ -84018,6 +83945,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] = [ @@ -84025,8 +83965,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='PATCH', + resource_path='/v1/global/config', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -84043,10 +83983,9 @@ def _v1_global_site_lists_id_sites_get_serialize( @validate_call - def v1_global_site_lists_post( + def v1_global_content_filters_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84059,15 +83998,13 @@ 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 + ) -> V1GlobalContentFiltersGetResponse: + """v1_global_content_filters_get - Create a new site list scoped to the enterprise + Get basic details for all content filter under the current enterprise :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84090,9 +84027,8 @@ 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_content_filters_get_serialize( authorization=authorization, - v1_global_site_lists_post_request=v1_global_site_lists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84100,7 +84036,7 @@ def v1_global_site_lists_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsPostResponse", + '200': "V1GlobalContentFiltersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -84114,10 +84050,9 @@ def v1_global_site_lists_post( @validate_call - def v1_global_site_lists_post_with_http_info( + def v1_global_content_filters_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84130,15 +84065,13 @@ 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[V1GlobalContentFiltersGetResponse]: + """v1_global_content_filters_get - Create a new site list scoped to the enterprise + Get basic details for all content filter under the current enterprise :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84161,9 +84094,8 @@ 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_content_filters_get_serialize( authorization=authorization, - v1_global_site_lists_post_request=v1_global_site_lists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84171,7 +84103,7 @@ def v1_global_site_lists_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsPostResponse", + '200': "V1GlobalContentFiltersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -84185,10 +84117,9 @@ def v1_global_site_lists_post_with_http_info( @validate_call - def v1_global_site_lists_post_without_preload_content( + def v1_global_content_filters_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -84202,14 +84133,12 @@ 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_content_filters_get - Create a new site list scoped to the enterprise + Get basic details for all content filter under the current enterprise :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -84232,9 +84161,8 @@ 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_content_filters_get_serialize( authorization=authorization, - v1_global_site_lists_post_request=v1_global_site_lists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84242,7 +84170,7 @@ def v1_global_site_lists_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteListsPostResponse", + '200': "V1GlobalContentFiltersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -84251,10 +84179,9 @@ def v1_global_site_lists_post_without_preload_content( return response_data.response - def _v1_global_site_lists_post_serialize( + def _v1_global_content_filters_get_serialize( self, authorization, - v1_global_site_lists_post_request, _request_auth, _content_type, _headers, @@ -84282,8 +84209,6 @@ 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 # set the HTTP header `Accept` @@ -84294,19 +84219,6 @@ def _v1_global_site_lists_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] = [ @@ -84314,8 +84226,8 @@ def _v1_global_site_lists_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/site-lists', + method='GET', + resource_path='/v1/global/content-filters', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -84332,16 +84244,10 @@ def _v1_global_site_lists_post_serialize( @validate_call - def v1_global_site_status_get( + def v1_global_content_filters_global_content_filter_id_delete( 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, + 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)], @@ -84354,27 +84260,15 @@ 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 + ) -> object: + """v1_global_content_filters_global_content_filter_id_delete - Get status on global objects attached to a site + Delete a content filter under the current 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 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 @@ -84397,15 +84291,9 @@ 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_content_filters_global_content_filter_id_delete_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, + global_content_filter_id=global_content_filter_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84413,7 +84301,7 @@ def v1_global_site_status_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteStatusGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -84427,16 +84315,10 @@ def v1_global_site_status_get( @validate_call - def v1_global_site_status_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 ")], - 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, + 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)], @@ -84449,27 +84331,15 @@ 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[object]: + """v1_global_content_filters_global_content_filter_id_delete - Get status on global objects attached to a site + Delete a content filter under the current 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 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 @@ -84492,15 +84362,9 @@ 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_content_filters_global_content_filter_id_delete_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, + global_content_filter_id=global_content_filter_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84508,7 +84372,7 @@ def v1_global_site_status_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteStatusGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -84522,16 +84386,10 @@ def v1_global_site_status_get_with_http_info( @validate_call - def v1_global_site_status_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 ")], - 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, + 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)], @@ -84545,26 +84403,14 @@ 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_content_filters_global_content_filter_id_delete - Get status on global objects attached to a site + Delete a content filter under the current 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 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 @@ -84587,15 +84433,9 @@ 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_content_filters_global_content_filter_id_delete_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, + global_content_filter_id=global_content_filter_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -84603,7 +84443,7 @@ def v1_global_site_status_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSiteStatusGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -84612,16 +84452,10 @@ def v1_global_site_status_get_without_preload_content( return response_data.response - def _v1_global_site_status_get_serialize( + def _v1_global_content_filters_global_content_filter_id_delete_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, + global_content_filter_id, _request_auth, _content_type, _headers, @@ -84643,35 +84477,285 @@ def _v1_global_site_status_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 + # 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='DELETE', + resource_path='/v1/global/content-filters/{globalContentFilterId}', + 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_global_content_filters_global_content_filter_id_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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)], + 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, + ) -> V1GlobalContentFiltersGlobalContentFilterIdGetResponse: + """v1_global_content_filters_global_content_filter_id_get + + Get the config for a content filter under the current enterprise + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :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 + (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_global_content_filters_global_content_filter_id_get_serialize( + authorization=authorization, + global_content_filter_id=global_content_filter_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalContentFiltersGlobalContentFilterIdGetResponse", + } + 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_global_content_filters_global_content_filter_id_get_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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)], + 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[V1GlobalContentFiltersGlobalContentFilterIdGetResponse]: + """v1_global_content_filters_global_content_filter_id_get + + Get the config for a content filter under the current enterprise + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :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 + (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_global_content_filters_global_content_filter_id_get_serialize( + authorization=authorization, + global_content_filter_id=global_content_filter_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalContentFiltersGlobalContentFilterIdGetResponse", + } + 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_global_content_filters_global_content_filter_id_get_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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)], + 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_global_content_filters_global_content_filter_id_get + + Get the config for a content filter under the current enterprise + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :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 + (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_global_content_filters_global_content_filter_id_get_serialize( + authorization=authorization, + global_content_filter_id=global_content_filter_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalContentFiltersGlobalContentFilterIdGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_content_filters_global_content_filter_id_get_serialize( + self, + authorization, + global_content_filter_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 global_content_filter_id is not None: + _path_params['globalContentFilterId'] = global_content_filter_id # 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 @@ -84695,7 +84779,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/content-filters/{globalContentFilterId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -84712,10 +84796,11 @@ def _v1_global_site_status_get_serialize( @validate_call - def v1_global_snmps_device_get( + def v1_global_content_filters_global_content_filter_id_put( 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 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)], @@ -84728,15 +84813,17 @@ 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 + ) -> object: + """v1_global_content_filters_global_content_filter_id_put - Get global snmp objects that failed to attach for a device + Overwrite a pre-existing 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 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 @@ -84759,9 +84846,10 @@ 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_content_filters_global_content_filter_id_put_serialize( authorization=authorization, - device_id=device_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, @@ -84769,7 +84857,7 @@ def v1_global_snmps_device_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsDeviceGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -84783,10 +84871,11 @@ def v1_global_snmps_device_get( @validate_call - def v1_global_snmps_device_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 ")], - device_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)], @@ -84799,15 +84888,17 @@ 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[object]: + """v1_global_content_filters_global_content_filter_id_put - Get global snmp objects that failed to attach for a device + Overwrite a pre-existing 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 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 @@ -84830,9 +84921,10 @@ 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_content_filters_global_content_filter_id_put_serialize( authorization=authorization, - device_id=device_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, @@ -84840,7 +84932,7 @@ def v1_global_snmps_device_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsDeviceGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -84854,10 +84946,11 @@ def v1_global_snmps_device_get_with_http_info( @validate_call - def v1_global_snmps_device_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 ")], - device_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)], @@ -84871,14 +84964,16 @@ 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_content_filters_global_content_filter_id_put - Get global snmp objects that failed to attach for a device + Overwrite a pre-existing 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 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 @@ -84901,9 +84996,10 @@ 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_content_filters_global_content_filter_id_put_serialize( authorization=authorization, - device_id=device_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, @@ -84911,7 +85007,7 @@ def v1_global_snmps_device_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsDeviceGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -84920,10 +85016,11125 @@ def v1_global_snmps_device_get_without_preload_content( return response_data.response - def _v1_global_snmps_device_get_serialize( + def _v1_global_content_filters_global_content_filter_id_put_serialize( self, authorization, - device_id, + global_content_filter_id, + v1_global_content_filters_global_content_filter_id_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 + 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_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` + 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/global/content-filters/{globalContentFilterId}', + 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_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)], + 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, + ) -> V1GlobalContentFiltersPostResponse: + """v1_global_content_filters_post + + 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 + (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_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalContentFiltersPostResponse", + } + 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_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)], + 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[V1GlobalContentFiltersPostResponse]: + """v1_global_content_filters_post + + 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 + (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_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalContentFiltersPostResponse", + } + 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_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)], + 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_global_content_filters_post + + 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 + (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_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalContentFiltersPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_content_filters_post_serialize( + self, + authorization, + v1_global_content_filters_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_global_content_filters_post_request is not None: + _body_params = v1_global_content_filters_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/global/content-filters', + 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_global_device_status_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)], + 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, + ) -> V1GlobalDeviceStatusGetResponse: + """v1_global_device_status_get + + Get status on global collector attached to devices + + :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 + (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_global_device_status_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalDeviceStatusGetResponse", + } + 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_global_device_status_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)], + 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[V1GlobalDeviceStatusGetResponse]: + """v1_global_device_status_get + + Get status on global collector attached to devices + + :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 + (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_global_device_status_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalDeviceStatusGetResponse", + } + 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_global_device_status_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)], + 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_global_device_status_get + + Get status on global collector attached to devices + + :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 + (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_global_device_status_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalDeviceStatusGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_device_status_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, + _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 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 + # 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/global/device-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_global_domain_categories_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, + ) -> V1GlobalDomainCategoriesGetResponse: + """v1_global_domain_categories_get + + Get all domain categories from the DPI engine + + :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_global_domain_categories_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': "V1GlobalDomainCategoriesGetResponse", + } + 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_global_domain_categories_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[V1GlobalDomainCategoriesGetResponse]: + """v1_global_domain_categories_get + + Get all domain categories from the DPI engine + + :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_global_domain_categories_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': "V1GlobalDomainCategoriesGetResponse", + } + 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_global_domain_categories_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_global_domain_categories_get + + Get all domain categories from the DPI engine + + :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_global_domain_categories_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': "V1GlobalDomainCategoriesGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_domain_categories_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/global/domain-categories', + 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_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)], + 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, + ) -> V1GlobalIpfixDeviceGetResponse: + """v1_global_ipfix_device_get + + 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 + (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_global_ipfix_device_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': "V1GlobalIpfixDeviceGetResponse", + } + 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_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)], + 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[V1GlobalIpfixDeviceGetResponse]: + """v1_global_ipfix_device_get + + 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 + (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_global_ipfix_device_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': "V1GlobalIpfixDeviceGetResponse", + } + 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_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)], + 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_global_ipfix_device_get + + 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 + (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_global_ipfix_device_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': "V1GlobalIpfixDeviceGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_ipfix_device_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 + # 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 + + + # 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/global/ipfix/device', + 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_global_ipfix_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, + _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, + ) -> V1GlobalIpfixPostResponse: + """v1_global_ipfix_post + + Get configured global ipfix exporters + + :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 _request_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_global_ipfix_post_serialize( + authorization=authorization, + v1_global_ipfix_post_request=v1_global_ipfix_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalIpfixPostResponse", + } + 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_global_ipfix_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, + _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[V1GlobalIpfixPostResponse]: + """v1_global_ipfix_post + + Get configured global ipfix exporters + + :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 _request_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_global_ipfix_post_serialize( + authorization=authorization, + v1_global_ipfix_post_request=v1_global_ipfix_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalIpfixPostResponse", + } + 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_global_ipfix_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_ipfix_post_request: V1GlobalIpfixPostRequest, + _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_global_ipfix_post + + Get configured global ipfix exporters + + :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 _request_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_global_ipfix_post_serialize( + authorization=authorization, + v1_global_ipfix_post_request=v1_global_ipfix_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalIpfixPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_ipfix_post_serialize( + self, + authorization, + v1_global_ipfix_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_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] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1/global/ipfix', + 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_global_ipfix_site_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)], + 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, + ) -> V1GlobalIpfixSiteGetResponse: + """v1_global_ipfix_site_get + + Get configured global ipfix exporters for a site + + :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 + (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_global_ipfix_site_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': "V1GlobalIpfixSiteGetResponse", + } + 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_global_ipfix_site_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)], + 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[V1GlobalIpfixSiteGetResponse]: + """v1_global_ipfix_site_get + + Get configured global ipfix exporters for a site + + :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 + (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_global_ipfix_site_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': "V1GlobalIpfixSiteGetResponse", + } + 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_global_ipfix_site_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)], + 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_global_ipfix_site_get + + Get configured global ipfix exporters for a site + + :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 + (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_global_ipfix_site_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': "V1GlobalIpfixSiteGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_ipfix_site_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 + # 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 + + + # 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/global/ipfix/site', + 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_global_ipsec_profile_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, + ) -> V1GlobalIpsecProfileGetResponse: + """v1_global_ipsec_profile_get + + Get all the configured global IPsec Profiles for the current enterprise + + :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_global_ipsec_profile_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': "V1GlobalIpsecProfileGetResponse", + } + 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_global_ipsec_profile_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[V1GlobalIpsecProfileGetResponse]: + """v1_global_ipsec_profile_get + + Get all the configured global IPsec Profiles for the current enterprise + + :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_global_ipsec_profile_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': "V1GlobalIpsecProfileGetResponse", + } + 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_global_ipsec_profile_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_global_ipsec_profile_get + + Get all the configured global IPsec Profiles for the current enterprise + + :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_global_ipsec_profile_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': "V1GlobalIpsecProfileGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_ipsec_profile_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/global/ipsec-profile', + 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_global_ipsec_profile_id_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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, + ) -> V1GlobalIpsecProfileIdGetResponse: + """v1_global_ipsec_profile_id_get + + Get details of the configured global IPsec Profiles + + :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 + (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_global_ipsec_profile_id_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': "V1GlobalIpsecProfileIdGetResponse", + } + 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_global_ipsec_profile_id_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)], + 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[V1GlobalIpsecProfileIdGetResponse]: + """v1_global_ipsec_profile_id_get + + Get details of the configured global IPsec Profiles + + :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 + (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_global_ipsec_profile_id_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': "V1GlobalIpsecProfileIdGetResponse", + } + 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_global_ipsec_profile_id_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)], + 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_global_ipsec_profile_id_get + + Get details of the configured global IPsec Profiles + + :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 + (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_global_ipsec_profile_id_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': "V1GlobalIpsecProfileIdGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_ipsec_profile_id_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/global/ipsec-profile/{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_global_ipsec_profile_vpn_profile_id_site_to_site_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + vpn_profile_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, + ) -> V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse: + """v1_global_ipsec_profile_vpn_profile_id_site_to_site_get + + Get Site-to-site VPNs that are using the given global IPsec Profile + + :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 + (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_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( + authorization=authorization, + vpn_profile_id=vpn_profile_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse", + } + 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_global_ipsec_profile_vpn_profile_id_site_to_site_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)], + 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[V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse]: + """v1_global_ipsec_profile_vpn_profile_id_site_to_site_get + + Get Site-to-site VPNs that are using the given global IPsec Profile + + :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 + (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_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( + authorization=authorization, + vpn_profile_id=vpn_profile_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse", + } + 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_global_ipsec_profile_vpn_profile_id_site_to_site_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)], + 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_global_ipsec_profile_vpn_profile_id_site_to_site_get + + Get Site-to-site VPNs that are using the given global IPsec Profile + + :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 + (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_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( + authorization=authorization, + vpn_profile_id=vpn_profile_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_serialize( + self, + authorization, + vpn_profile_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 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 + + + # 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/global/ipsec-profile/{vpnProfileId}/site-to-site', + 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_global_lan_segments_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + filter_extranet_producers: Optional[StrictBool] = 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, + ) -> V1GlobalLanSegmentsGetResponse: + """v1_global_lan_segments_get + + Get a list of lan-segments under the currently logged in enterprise + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param filter_extranet_producers: + :type filter_extranet_producers: bool + :param _request_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_global_lan_segments_get_serialize( + authorization=authorization, + filter_extranet_producers=filter_extranet_producers, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalLanSegmentsGetResponse", + } + 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_global_lan_segments_get_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + filter_extranet_producers: Optional[StrictBool] = 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[V1GlobalLanSegmentsGetResponse]: + """v1_global_lan_segments_get + + Get a list of lan-segments under the currently logged in enterprise + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param filter_extranet_producers: + :type filter_extranet_producers: bool + :param _request_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_global_lan_segments_get_serialize( + authorization=authorization, + filter_extranet_producers=filter_extranet_producers, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalLanSegmentsGetResponse", + } + 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_global_lan_segments_get_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + filter_extranet_producers: Optional[StrictBool] = 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_global_lan_segments_get + + Get a list of lan-segments under the currently logged in enterprise + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param filter_extranet_producers: + :type filter_extranet_producers: bool + :param _request_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_global_lan_segments_get_serialize( + authorization=authorization, + filter_extranet_producers=filter_extranet_producers, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalLanSegmentsGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_lan_segments_get_serialize( + self, + authorization, + filter_extranet_producers, + _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 filter_extranet_producers is not None: + + _query_params.append(('filterExtranetProducers', filter_extranet_producers)) + + # 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/global/lan-segments', + 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_global_lan_segments_id_delete( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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, + ) -> None: + """v1_global_lan_segments_id_delete + + Delete a lan-segment + + :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 + (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_global_lan_segments_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_global_lan_segments_id_delete_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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[None]: + """v1_global_lan_segments_id_delete + + Delete a lan-segment + + :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 + (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_global_lan_segments_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_global_lan_segments_id_delete_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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_global_lan_segments_id_delete + + Delete a lan-segment + + :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 + (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_global_lan_segments_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_global_lan_segments_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/global/lan-segments/{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_global_lan_segments_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, + _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, + ) -> V1GlobalLanSegmentsPostResponse: + """v1_global_lan_segments_post + + Create a new lan-segment scoped to the enterprise + + :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 _request_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_global_lan_segments_post_serialize( + authorization=authorization, + v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalLanSegmentsPostResponse", + } + 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_global_lan_segments_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, + _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[V1GlobalLanSegmentsPostResponse]: + """v1_global_lan_segments_post + + Create a new lan-segment scoped to the enterprise + + :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 _request_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_global_lan_segments_post_serialize( + authorization=authorization, + v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalLanSegmentsPostResponse", + } + 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_global_lan_segments_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_lan_segments_post_request: V1GlobalLanSegmentsPostRequest, + _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_global_lan_segments_post + + Create a new lan-segment scoped to the enterprise + + :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 _request_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_global_lan_segments_post_serialize( + authorization=authorization, + v1_global_lan_segments_post_request=v1_global_lan_segments_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalLanSegmentsPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_lan_segments_post_serialize( + self, + authorization, + v1_global_lan_segments_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_global_lan_segments_post_request is not None: + _body_params = v1_global_lan_segments_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/global/lan-segments', + 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_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)], + 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, + ) -> V1GlobalLanSegmentsVrfIdDevicesGetResponse: + """v1_global_lan_segments_vrf_id_devices_get + + 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 + (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_global_lan_segments_vrf_id_devices_get_serialize( + authorization=authorization, + vrf_id=vrf_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", + } + 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_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)], + 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[V1GlobalLanSegmentsVrfIdDevicesGetResponse]: + """v1_global_lan_segments_vrf_id_devices_get + + 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 + (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_global_lan_segments_vrf_id_devices_get_serialize( + authorization=authorization, + vrf_id=vrf_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", + } + 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_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)], + 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_global_lan_segments_vrf_id_devices_get + + 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 + (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_global_lan_segments_vrf_id_devices_get_serialize( + authorization=authorization, + vrf_id=vrf_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalLanSegmentsVrfIdDevicesGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_lan_segments_vrf_id_devices_get_serialize( + self, + authorization, + vrf_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 vrf_id is not None: + _path_params['vrfId'] = vrf_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/global/lan-segments/{vrfId}/devices', + 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_global_ntps_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)], + 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, + ) -> V1GlobalNtpsDeviceGetResponse: + """v1_global_ntps_device_get + + Get global ntp 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 + (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_global_ntps_device_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': "V1GlobalNtpsDeviceGetResponse", + } + 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_global_ntps_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)], + 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[V1GlobalNtpsDeviceGetResponse]: + """v1_global_ntps_device_get + + Get global ntp 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 + (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_global_ntps_device_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': "V1GlobalNtpsDeviceGetResponse", + } + 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_global_ntps_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)], + 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_global_ntps_device_get + + Get global ntp 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 + (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_global_ntps_device_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': "V1GlobalNtpsDeviceGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_ntps_device_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 + # 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 + + + # 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/global/ntps/device', + 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_global_ntps_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_ntps_post_request: V1GlobalNtpsPostRequest, + _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, + ) -> V1GlobalNtpsPostResponse: + """v1_global_ntps_post + + Get configured global ntps + + :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 _request_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_global_ntps_post_serialize( + authorization=authorization, + v1_global_ntps_post_request=v1_global_ntps_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalNtpsPostResponse", + } + 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_global_ntps_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_ntps_post_request: V1GlobalNtpsPostRequest, + _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[V1GlobalNtpsPostResponse]: + """v1_global_ntps_post + + Get configured global ntps + + :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 _request_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_global_ntps_post_serialize( + authorization=authorization, + v1_global_ntps_post_request=v1_global_ntps_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalNtpsPostResponse", + } + 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_global_ntps_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_ntps_post_request: V1GlobalNtpsPostRequest, + _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_global_ntps_post + + Get configured global ntps + + :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 _request_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_global_ntps_post_serialize( + authorization=authorization, + v1_global_ntps_post_request=v1_global_ntps_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalNtpsPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_ntps_post_serialize( + self, + authorization, + v1_global_ntps_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_global_ntps_post_request is not None: + _body_params = v1_global_ntps_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/global/ntps', + 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_global_ntps_site_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)], + 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, + ) -> V1GlobalNtpsSiteGetResponse: + """v1_global_ntps_site_get + + Get configured global ntps + + :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 + (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_global_ntps_site_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': "V1GlobalNtpsSiteGetResponse", + } + 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_global_ntps_site_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)], + 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[V1GlobalNtpsSiteGetResponse]: + """v1_global_ntps_site_get + + Get configured global ntps + + :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 + (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_global_ntps_site_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': "V1GlobalNtpsSiteGetResponse", + } + 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_global_ntps_site_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)], + 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_global_ntps_site_get + + Get configured global ntps + + :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 + (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_global_ntps_site_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': "V1GlobalNtpsSiteGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_ntps_site_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 + # 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 + + + # 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/global/ntps/site', + 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_global_prefix_sets_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, + _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, + ) -> V1GlobalPrefixSetsPostResponse: + """v1_global_prefix_sets_post + + Get configured global prefix-sets + + :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 _request_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_global_prefix_sets_post_serialize( + authorization=authorization, + v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalPrefixSetsPostResponse", + } + 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_global_prefix_sets_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, + _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[V1GlobalPrefixSetsPostResponse]: + """v1_global_prefix_sets_post + + Get configured global prefix-sets + + :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 _request_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_global_prefix_sets_post_serialize( + authorization=authorization, + v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalPrefixSetsPostResponse", + } + 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_global_prefix_sets_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_prefix_sets_post_request: V1GlobalPrefixSetsPostRequest, + _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_global_prefix_sets_post + + Get configured global prefix-sets + + :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 _request_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_global_prefix_sets_post_serialize( + authorization=authorization, + v1_global_prefix_sets_post_request=v1_global_prefix_sets_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalPrefixSetsPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_prefix_sets_post_serialize( + self, + authorization, + v1_global_prefix_sets_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_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] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1/global/prefix-sets', + 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_global_routing_policies_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, + _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, + ) -> V1GlobalRoutingPoliciesPostResponse: + """v1_global_routing_policies_post + + Get configured global routing-policies + + :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 _request_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_global_routing_policies_post_serialize( + authorization=authorization, + v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalRoutingPoliciesPostResponse", + } + 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_global_routing_policies_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, + _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[V1GlobalRoutingPoliciesPostResponse]: + """v1_global_routing_policies_post + + Get configured global routing-policies + + :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 _request_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_global_routing_policies_post_serialize( + authorization=authorization, + v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalRoutingPoliciesPostResponse", + } + 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_global_routing_policies_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_routing_policies_post_request: V1GlobalRoutingPoliciesPostRequest, + _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_global_routing_policies_post + + Get configured global routing-policies + + :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 _request_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_global_routing_policies_post_serialize( + authorization=authorization, + v1_global_routing_policies_post_request=v1_global_routing_policies_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalRoutingPoliciesPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_routing_policies_post_serialize( + self, + authorization, + v1_global_routing_policies_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_global_routing_policies_post_request is not None: + _body_params = v1_global_routing_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: + _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/global/routing-policies', + 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_global_site_lists_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, + ) -> V1GlobalSiteListsGetResponse: + """v1_global_site_lists_get + + Get a list of site lists under the currently logged in enterprise + + :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_global_site_lists_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': "V1GlobalSiteListsGetResponse", + } + 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_global_site_lists_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[V1GlobalSiteListsGetResponse]: + """v1_global_site_lists_get + + Get a list of site lists under the currently logged in enterprise + + :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_global_site_lists_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': "V1GlobalSiteListsGetResponse", + } + 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_global_site_lists_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_global_site_lists_get + + Get a list of site lists under the currently logged in enterprise + + :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_global_site_lists_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': "V1GlobalSiteListsGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_site_lists_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/global/site-lists', + 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_global_site_lists_id_delete( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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, + ) -> None: + """v1_global_site_lists_id_delete + + Delete a site list + + :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 + (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_global_site_lists_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_global_site_lists_id_delete_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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[None]: + """v1_global_site_lists_id_delete + + Delete a site list + + :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 + (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_global_site_lists_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_global_site_lists_id_delete_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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_global_site_lists_id_delete + + Delete a site list + + :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 + (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_global_site_lists_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_global_site_lists_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/global/site-lists/{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_global_site_lists_id_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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, + ) -> V1GlobalSiteListsIdGetResponse: + """v1_global_site_lists_id_get + + Get a details of a site list + + :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 + (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_global_site_lists_id_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': "V1GlobalSiteListsIdGetResponse", + } + 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_global_site_lists_id_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)], + 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[V1GlobalSiteListsIdGetResponse]: + """v1_global_site_lists_id_get + + Get a details of a site list + + :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 + (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_global_site_lists_id_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': "V1GlobalSiteListsIdGetResponse", + } + 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_global_site_lists_id_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)], + 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_global_site_lists_id_get + + Get a details of a site list + + :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 + (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_global_site_lists_id_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': "V1GlobalSiteListsIdGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_site_lists_id_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/global/site-lists/{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_global_site_lists_id_put( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, + v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, + _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, + ) -> V1GlobalSiteListsIdPutResponse: + """v1_global_site_lists_id_put + + Update a new site list scoped to the enterprise + + :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 _request_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_global_site_lists_id_put_serialize( + authorization=authorization, + 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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSiteListsIdPutResponse", + } + 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_global_site_lists_id_put_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, + v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, + _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[V1GlobalSiteListsIdPutResponse]: + """v1_global_site_lists_id_put + + Update a new site list scoped to the enterprise + + :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 _request_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_global_site_lists_id_put_serialize( + authorization=authorization, + 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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSiteListsIdPutResponse", + } + 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_global_site_lists_id_put_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, + v1_global_site_lists_id_put_request: V1GlobalSiteListsIdPutRequest, + _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_global_site_lists_id_put + + Update a new site list scoped to the enterprise + + :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 _request_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_global_site_lists_id_put_serialize( + authorization=authorization, + 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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSiteListsIdPutResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_site_lists_id_put_serialize( + self, + authorization, + id, + v1_global_site_lists_id_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 + 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_site_lists_id_put_request is not None: + _body_params = v1_global_site_lists_id_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/global/site-lists/{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_global_site_lists_id_sites_get( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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, + ) -> V1GlobalSiteListsIdSitesGetResponse: + """v1_global_site_lists_id_sites_get + + Get a details of a site list sites + + :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 + (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_global_site_lists_id_sites_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': "V1GlobalSiteListsIdSitesGetResponse", + } + 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_global_site_lists_id_sites_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)], + 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[V1GlobalSiteListsIdSitesGetResponse]: + """v1_global_site_lists_id_sites_get + + Get a details of a site list sites + + :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 + (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_global_site_lists_id_sites_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': "V1GlobalSiteListsIdSitesGetResponse", + } + 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_global_site_lists_id_sites_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)], + 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_global_site_lists_id_sites_get + + Get a details of a site list sites + + :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 + (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_global_site_lists_id_sites_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': "V1GlobalSiteListsIdSitesGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_site_lists_id_sites_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/global/site-lists/{id}/sites', + 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_global_site_lists_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, + _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, + ) -> V1GlobalSiteListsPostResponse: + """v1_global_site_lists_post + + Create a new site list scoped to the enterprise + + :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 _request_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_global_site_lists_post_serialize( + authorization=authorization, + v1_global_site_lists_post_request=v1_global_site_lists_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSiteListsPostResponse", + } + 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_global_site_lists_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, + _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[V1GlobalSiteListsPostResponse]: + """v1_global_site_lists_post + + Create a new site list scoped to the enterprise + + :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 _request_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_global_site_lists_post_serialize( + authorization=authorization, + v1_global_site_lists_post_request=v1_global_site_lists_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSiteListsPostResponse", + } + 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_global_site_lists_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_site_lists_post_request: V1GlobalSiteListsPostRequest, + _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_global_site_lists_post + + Create a new site list scoped to the enterprise + + :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 _request_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_global_site_lists_post_serialize( + authorization=authorization, + v1_global_site_lists_post_request=v1_global_site_lists_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSiteListsPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_site_lists_post_serialize( + self, + authorization, + v1_global_site_lists_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_global_site_lists_post_request is not None: + _body_params = v1_global_site_lists_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/global/site-lists', + 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_global_site_status_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)], + 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, + ) -> V1GlobalSiteStatusGetResponse: + """v1_global_site_status_get + + Get status on global objects attached to a site + + :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 + (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_global_site_status_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSiteStatusGetResponse", + } + 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_global_site_status_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)], + 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[V1GlobalSiteStatusGetResponse]: + """v1_global_site_status_get + + Get status on global objects attached to a site + + :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 + (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_global_site_status_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSiteStatusGetResponse", + } + 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_global_site_status_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)], + 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_global_site_status_get + + Get status on global objects attached to a site + + :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 + (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_global_site_status_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSiteStatusGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_site_status_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, + _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 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 + # 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/global/site-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_global_snmps_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)], + 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, + ) -> V1GlobalSnmpsDeviceGetResponse: + """v1_global_snmps_device_get + + Get global snmp 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 + (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_global_snmps_device_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': "V1GlobalSnmpsDeviceGetResponse", + } + 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_global_snmps_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)], + 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[V1GlobalSnmpsDeviceGetResponse]: + """v1_global_snmps_device_get + + Get global snmp 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 + (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_global_snmps_device_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': "V1GlobalSnmpsDeviceGetResponse", + } + 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_global_snmps_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)], + 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_global_snmps_device_get + + Get global snmp 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 + (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_global_snmps_device_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': "V1GlobalSnmpsDeviceGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_snmps_device_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 + # 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 + + + # 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/global/snmps/device', + 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_global_snmps_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, + _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, + ) -> V1GlobalSnmpsPostResponse: + """v1_global_snmps_post + + Get configured global snmps + + :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 _request_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_global_snmps_post_serialize( + authorization=authorization, + v1_global_snmps_post_request=v1_global_snmps_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSnmpsPostResponse", + } + 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_global_snmps_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, + _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[V1GlobalSnmpsPostResponse]: + """v1_global_snmps_post + + Get configured global snmps + + :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 _request_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_global_snmps_post_serialize( + authorization=authorization, + v1_global_snmps_post_request=v1_global_snmps_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSnmpsPostResponse", + } + 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_global_snmps_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, + _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_global_snmps_post + + Get configured global snmps + + :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 _request_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_global_snmps_post_serialize( + authorization=authorization, + v1_global_snmps_post_request=v1_global_snmps_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSnmpsPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_snmps_post_serialize( + self, + authorization, + v1_global_snmps_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_global_snmps_post_request is not None: + _body_params = v1_global_snmps_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/global/snmps', + 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_global_snmps_site_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)], + 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, + ) -> V1GlobalSnmpsSiteGetResponse: + """v1_global_snmps_site_get + + Get configured global snmps + + :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 + (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_global_snmps_site_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': "V1GlobalSnmpsSiteGetResponse", + } + 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_global_snmps_site_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)], + 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[V1GlobalSnmpsSiteGetResponse]: + """v1_global_snmps_site_get + + Get configured global snmps + + :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 + (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_global_snmps_site_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': "V1GlobalSnmpsSiteGetResponse", + } + 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_global_snmps_site_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)], + 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_global_snmps_site_get + + Get configured global snmps + + :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 + (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_global_snmps_site_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': "V1GlobalSnmpsSiteGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_snmps_site_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 + # 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 + + + # 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/global/snmps/site', + 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_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)], + 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, + ) -> V1GlobalSummaryPostResponse: + """v1_global_summary_post + + 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 + (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_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSummaryPostResponse", + } + 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_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)], + 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[V1GlobalSummaryPostResponse]: + """v1_global_summary_post + + 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 + (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_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSummaryPostResponse", + } + 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_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)], + 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_global_summary_post + + 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 + (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_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSummaryPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_summary_post_serialize( + self, + authorization, + v1_global_summary_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_global_summary_post_request is not None: + _body_params = v1_global_summary_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/global/summary', + 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_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)], + 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, + ) -> object: + """v1_global_sync_post + + 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 + (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_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "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_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)], + 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_global_sync_post + + 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 + (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_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "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_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)], + 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_global_sync_post + + 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 + (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_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, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_sync_post_serialize( + self, + authorization, + v1_global_sync_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_global_sync_post_request is not None: + _body_params = v1_global_sync_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/global/sync', + 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_global_syslogs_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)], + 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, + ) -> V1GlobalSyslogsDeviceGetResponse: + """v1_global_syslogs_device_get + + Get global syslog 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 + (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_global_syslogs_device_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': "V1GlobalSyslogsDeviceGetResponse", + } + 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_global_syslogs_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)], + 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[V1GlobalSyslogsDeviceGetResponse]: + """v1_global_syslogs_device_get + + Get global syslog 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 + (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_global_syslogs_device_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': "V1GlobalSyslogsDeviceGetResponse", + } + 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_global_syslogs_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)], + 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_global_syslogs_device_get + + Get global syslog 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 + (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_global_syslogs_device_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': "V1GlobalSyslogsDeviceGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_syslogs_device_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 + # 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 + + + # 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/global/syslogs/device', + 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_global_syslogs_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, + _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, + ) -> V1GlobalSyslogsPostResponse: + """v1_global_syslogs_post + + Get configured global syslog collectors + + :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 _request_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_global_syslogs_post_serialize( + authorization=authorization, + v1_global_syslogs_post_request=v1_global_syslogs_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSyslogsPostResponse", + } + 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_global_syslogs_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, + _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[V1GlobalSyslogsPostResponse]: + """v1_global_syslogs_post + + Get configured global syslog collectors + + :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 _request_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_global_syslogs_post_serialize( + authorization=authorization, + v1_global_syslogs_post_request=v1_global_syslogs_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSyslogsPostResponse", + } + 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_global_syslogs_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, + _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_global_syslogs_post + + Get configured global syslog collectors + + :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 _request_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_global_syslogs_post_serialize( + authorization=authorization, + v1_global_syslogs_post_request=v1_global_syslogs_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalSyslogsPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_syslogs_post_serialize( + self, + authorization, + v1_global_syslogs_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_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] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/v1/global/syslogs', + 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_global_syslogs_site_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)], + 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, + ) -> V1GlobalSyslogsSiteGetResponse: + """v1_global_syslogs_site_get + + Get configured global syslog collectors + + :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 + (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_global_syslogs_site_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': "V1GlobalSyslogsSiteGetResponse", + } + 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_global_syslogs_site_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)], + 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[V1GlobalSyslogsSiteGetResponse]: + """v1_global_syslogs_site_get + + Get configured global syslog collectors + + :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 + (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_global_syslogs_site_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': "V1GlobalSyslogsSiteGetResponse", + } + 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_global_syslogs_site_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)], + 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_global_syslogs_site_get + + Get configured global syslog collectors + + :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 + (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_global_syslogs_site_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': "V1GlobalSyslogsSiteGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_syslogs_site_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 + # 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 + + + # 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/global/syslogs/site', + 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_global_traffic_policies_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, + _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, + ) -> V1GlobalTrafficPoliciesPostResponse: + """v1_global_traffic_policies_post + + Get configured global traffic-policies + + :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 _request_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_global_traffic_policies_post_serialize( + authorization=authorization, + v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalTrafficPoliciesPostResponse", + } + 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_global_traffic_policies_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, + _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[V1GlobalTrafficPoliciesPostResponse]: + """v1_global_traffic_policies_post + + Get configured global traffic-policies + + :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 _request_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_global_traffic_policies_post_serialize( + authorization=authorization, + v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalTrafficPoliciesPostResponse", + } + 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_global_traffic_policies_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, + _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_global_traffic_policies_post + + Get configured global traffic-policies + + :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 _request_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_global_traffic_policies_post_serialize( + authorization=authorization, + v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1GlobalTrafficPoliciesPostResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_global_traffic_policies_post_serialize( + self, + authorization, + v1_global_traffic_policies_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_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: + _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/global/traffic-policies', + 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_groups_enterprises_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, + ) -> V1GroupsEnterprisesGetResponse: + """v1_groups_enterprises_get + + Get all enterprise-level groups. + + :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_groups_enterprises_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': "V1GroupsEnterprisesGetResponse", + } + 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_groups_enterprises_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[V1GroupsEnterprisesGetResponse]: + """v1_groups_enterprises_get + + Get all enterprise-level groups. + + :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_groups_enterprises_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': "V1GroupsEnterprisesGetResponse", + } + 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_groups_enterprises_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_groups_enterprises_get + + Get all enterprise-level groups. + + :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_groups_enterprises_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': "V1GroupsEnterprisesGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_groups_enterprises_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/groups/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_groups_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, + ) -> V1GroupsGetResponse: + """v1_groups_get + + Get all groups in the enterprise. + + :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_groups_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': "V1GroupsGetResponse", + } + 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_groups_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[V1GroupsGetResponse]: + """v1_groups_get + + Get all groups in the enterprise. + + :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_groups_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': "V1GroupsGetResponse", + } + 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_groups_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_groups_get + + Get all groups in the enterprise. + + :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_groups_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': "V1GroupsGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_groups_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/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_groups_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_groups_id_delete + + 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 _request_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_groups_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_groups_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_groups_id_delete + + 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 _request_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_groups_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_groups_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_groups_id_delete + + 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 _request_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_groups_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_groups_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/groups/{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_groups_id_enterprises_enterprise_id_delete( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: StrictInt, + 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_groups_id_enterprises_enterprise_id_delete + + 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 _request_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_groups_id_enterprises_enterprise_id_delete_serialize( + authorization=authorization, + enterprise_id=enterprise_id, + 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_groups_id_enterprises_enterprise_id_delete_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: StrictInt, + 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_groups_id_enterprises_enterprise_id_delete + + 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 _request_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_groups_id_enterprises_enterprise_id_delete_serialize( + authorization=authorization, + enterprise_id=enterprise_id, + 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_groups_id_enterprises_enterprise_id_delete_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: StrictInt, + 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_groups_id_enterprises_enterprise_id_delete + + 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 _request_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_groups_id_enterprises_enterprise_id_delete_serialize( + authorization=authorization, + enterprise_id=enterprise_id, + 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_groups_id_enterprises_enterprise_id_delete_serialize( + self, + authorization, + enterprise_id, + 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 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 + + + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1/groups/{id}/enterprises/{enterpriseId}', + 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_groups_id_enterprises_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, + _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_groups_id_enterprises_post + + Associate group with additional enterprises to enable cross-enterprise access and management. + + :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 _request_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_groups_id_enterprises_post_serialize( + authorization=authorization, + id=id, + v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, + _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_groups_id_enterprises_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, + _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_groups_id_enterprises_post + + Associate group with additional enterprises to enable cross-enterprise access and management. + + :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 _request_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_groups_id_enterprises_post_serialize( + authorization=authorization, + id=id, + v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, + _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_groups_id_enterprises_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictStr, + v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, + _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_groups_id_enterprises_post + + Associate group with additional enterprises to enable cross-enterprise access and management. + + :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 _request_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_groups_id_enterprises_post_serialize( + authorization=authorization, + id=id, + v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, + _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_groups_id_enterprises_post_serialize( + self, + authorization, + id, + v1_groups_id_enterprises_post_request, _request_auth, _content_type, _headers, @@ -84945,26 +96156,32 @@ 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 # 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 `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] = [ @@ -84972,8 +96189,8 @@ def _v1_global_snmps_device_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/snmps/device', + method='POST', + resource_path='/v1/groups/{id}/enterprises', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -84990,10 +96207,11 @@ def _v1_global_snmps_device_get_serialize( @validate_call - def v1_global_snmps_post( + def v1_groups_id_members_delete_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, + id: StrictStr, + v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85006,15 +96224,17 @@ 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 + ) -> None: + """v1_groups_id_members_delete_post - Get configured global snmps + Remove multiple users from a group by their member IDs. :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: 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 @@ -85037,9 +96257,10 @@ def v1_global_snmps_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_snmps_post_serialize( + _param = self._v1_groups_id_members_delete_post_serialize( authorization=authorization, - v1_global_snmps_post_request=v1_global_snmps_post_request, + 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, @@ -85047,7 +96268,7 @@ def v1_global_snmps_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -85061,10 +96282,11 @@ def v1_global_snmps_post( @validate_call - def v1_global_snmps_post_with_http_info( + def v1_groups_id_members_delete_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, + id: StrictStr, + v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85077,15 +96299,17 @@ 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[None]: + """v1_groups_id_members_delete_post - Get configured global snmps + Remove multiple users from a group by their member IDs. :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: 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 @@ -85108,9 +96332,10 @@ 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_groups_id_members_delete_post_serialize( authorization=authorization, - v1_global_snmps_post_request=v1_global_snmps_post_request, + 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, @@ -85118,7 +96343,7 @@ def v1_global_snmps_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -85132,10 +96357,11 @@ def v1_global_snmps_post_with_http_info( @validate_call - def v1_global_snmps_post_without_preload_content( + def v1_groups_id_members_delete_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_snmps_post_request: V1GlobalSnmpsPostRequest, + id: StrictStr, + v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85149,14 +96375,16 @@ 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_groups_id_members_delete_post - Get configured global snmps + Remove multiple users from a group by their member IDs. :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: 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 @@ -85179,9 +96407,10 @@ 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_groups_id_members_delete_post_serialize( authorization=authorization, - v1_global_snmps_post_request=v1_global_snmps_post_request, + 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, @@ -85189,7 +96418,7 @@ def v1_global_snmps_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -85198,10 +96427,11 @@ def v1_global_snmps_post_without_preload_content( return response_data.response - def _v1_global_snmps_post_serialize( + def _v1_groups_id_members_delete_post_serialize( self, authorization, - v1_global_snmps_post_request, + id, + v1_groups_id_members_delete_post_request, _request_auth, _content_type, _headers, @@ -85223,23 +96453,18 @@ 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 + 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: @@ -85262,7 +96487,7 @@ def _v1_global_snmps_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/global/snmps', + resource_path='/v1/groups/{id}/members/delete', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -85279,10 +96504,10 @@ def _v1_global_snmps_post_serialize( @validate_call - def v1_global_snmps_site_get( + def v1_groups_id_members_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85295,15 +96520,15 @@ 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 + ) -> V1GroupsIdMembersGetResponse: + """v1_groups_id_members_get - Get configured global snmps + Get all members of a specific group. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :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 @@ -85326,9 +96551,9 @@ def v1_global_snmps_site_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_snmps_site_get_serialize( + _param = self._v1_groups_id_members_get_serialize( authorization=authorization, - site_id=site_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85336,7 +96561,7 @@ def v1_global_snmps_site_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsSiteGetResponse", + '200': "V1GroupsIdMembersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -85350,10 +96575,10 @@ def v1_global_snmps_site_get( @validate_call - def v1_global_snmps_site_get_with_http_info( + def v1_groups_id_members_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85366,15 +96591,15 @@ 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[V1GroupsIdMembersGetResponse]: + """v1_groups_id_members_get - Get configured global snmps + Get all members of a specific group. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :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 @@ -85397,9 +96622,9 @@ 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_groups_id_members_get_serialize( authorization=authorization, - site_id=site_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85407,7 +96632,7 @@ def v1_global_snmps_site_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsSiteGetResponse", + '200': "V1GroupsIdMembersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -85421,10 +96646,10 @@ def v1_global_snmps_site_get_with_http_info( @validate_call - def v1_global_snmps_site_get_without_preload_content( + def v1_groups_id_members_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: Optional[StrictInt] = None, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85438,14 +96663,14 @@ 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_groups_id_members_get - Get configured global snmps + Get all members of a specific group. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: - :type site_id: int + :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 @@ -85468,9 +96693,9 @@ 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_groups_id_members_get_serialize( authorization=authorization, - site_id=site_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85478,7 +96703,7 @@ def v1_global_snmps_site_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSnmpsSiteGetResponse", + '200': "V1GroupsIdMembersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -85487,10 +96712,10 @@ def v1_global_snmps_site_get_without_preload_content( return response_data.response - def _v1_global_snmps_site_get_serialize( + def _v1_groups_id_members_get_serialize( self, authorization, - site_id, + id, _request_auth, _content_type, _headers, @@ -85512,11 +96737,9 @@ 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 @@ -85540,7 +96763,7 @@ def _v1_global_snmps_site_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/snmps/site', + resource_path='/v1/groups/{id}/members', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -85557,10 +96780,11 @@ def _v1_global_snmps_site_get_serialize( @validate_call - def v1_global_summary_post( + def v1_groups_id_members_member_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_summary_post_request: V1GlobalSummaryPostRequest, + id: StrictStr, + member_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85573,15 +96797,17 @@ 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 + ) -> None: + """v1_groups_id_members_member_id_delete - Get summary on global objects + Remove a specific user from a group by member ID. :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: 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 @@ -85604,9 +96830,10 @@ def v1_global_summary_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_summary_post_serialize( + _param = self._v1_groups_id_members_member_id_delete_serialize( authorization=authorization, - v1_global_summary_post_request=v1_global_summary_post_request, + id=id, + member_id=member_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85614,7 +96841,7 @@ def v1_global_summary_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSummaryPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -85628,10 +96855,11 @@ def v1_global_summary_post( @validate_call - def v1_global_summary_post_with_http_info( + def v1_groups_id_members_member_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_summary_post_request: V1GlobalSummaryPostRequest, + id: StrictStr, + member_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85644,15 +96872,17 @@ 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[None]: + """v1_groups_id_members_member_id_delete - Get summary on global objects + Remove a specific user from a group by member ID. :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: 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 @@ -85675,9 +96905,10 @@ 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_groups_id_members_member_id_delete_serialize( authorization=authorization, - v1_global_summary_post_request=v1_global_summary_post_request, + id=id, + member_id=member_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85685,7 +96916,7 @@ def v1_global_summary_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSummaryPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -85699,10 +96930,11 @@ def v1_global_summary_post_with_http_info( @validate_call - def v1_global_summary_post_without_preload_content( + def v1_groups_id_members_member_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_summary_post_request: V1GlobalSummaryPostRequest, + id: StrictStr, + member_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85716,14 +96948,16 @@ 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_groups_id_members_member_id_delete - Get summary on global objects + Remove a specific user from a group by member ID. :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: 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 @@ -85746,9 +96980,10 @@ 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_groups_id_members_member_id_delete_serialize( authorization=authorization, - v1_global_summary_post_request=v1_global_summary_post_request, + id=id, + member_id=member_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85756,7 +96991,7 @@ def v1_global_summary_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSummaryPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -85765,10 +97000,11 @@ def v1_global_summary_post_without_preload_content( return response_data.response - def _v1_global_summary_post_serialize( + def _v1_groups_id_members_member_id_delete_serialize( self, authorization, - v1_global_summary_post_request, + id, + member_id, _request_auth, _content_type, _headers, @@ -85790,37 +97026,19 @@ def _v1_global_summary_post_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: _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` - 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] = [ @@ -85828,8 +97046,8 @@ def _v1_global_summary_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/summary', + method='DELETE', + resource_path='/v1/groups/{id}/members/{memberId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -85846,10 +97064,11 @@ def _v1_global_summary_post_serialize( @validate_call - def v1_global_sync_post( + def v1_groups_id_members_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_sync_post_request: V1GlobalSyncPostRequest, + id: StrictStr, + v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85862,15 +97081,17 @@ 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 + ) -> None: + """v1_groups_id_members_post - Tries synching device with the global objects + Add multiple users to a group by their global IDs. :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 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 @@ -85893,9 +97114,10 @@ def v1_global_sync_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_sync_post_serialize( + _param = self._v1_groups_id_members_post_serialize( authorization=authorization, - v1_global_sync_post_request=v1_global_sync_post_request, + id=id, + v1_groups_id_members_post_request=v1_groups_id_members_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85903,7 +97125,7 @@ def v1_global_sync_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -85917,10 +97139,11 @@ def v1_global_sync_post( @validate_call - def v1_global_sync_post_with_http_info( + def v1_groups_id_members_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_sync_post_request: V1GlobalSyncPostRequest, + id: StrictStr, + v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -85933,15 +97156,17 @@ 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[None]: + """v1_groups_id_members_post - Tries synching device with the global objects + Add multiple users to a group by their global IDs. :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 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 @@ -85964,9 +97189,10 @@ 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_groups_id_members_post_serialize( authorization=authorization, - v1_global_sync_post_request=v1_global_sync_post_request, + id=id, + v1_groups_id_members_post_request=v1_groups_id_members_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -85974,7 +97200,7 @@ def v1_global_sync_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -85988,10 +97214,11 @@ def v1_global_sync_post_with_http_info( @validate_call - def v1_global_sync_post_without_preload_content( + def v1_groups_id_members_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_sync_post_request: V1GlobalSyncPostRequest, + id: StrictStr, + v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86005,14 +97232,16 @@ 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_groups_id_members_post - Tries synching device with the global objects + Add multiple users to a group by their global IDs. :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 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 @@ -86035,9 +97264,10 @@ 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_groups_id_members_post_serialize( authorization=authorization, - v1_global_sync_post_request=v1_global_sync_post_request, + id=id, + v1_groups_id_members_post_request=v1_groups_id_members_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86045,7 +97275,7 @@ def v1_global_sync_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -86054,10 +97284,11 @@ def v1_global_sync_post_without_preload_content( return response_data.response - def _v1_global_sync_post_serialize( + def _v1_groups_id_members_post_serialize( self, authorization, - v1_global_sync_post_request, + id, + v1_groups_id_members_post_request, _request_auth, _content_type, _headers, @@ -86079,23 +97310,18 @@ def _v1_global_sync_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_sync_post_request is not None: - _body_params = v1_global_sync_post_request + 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: @@ -86118,7 +97344,7 @@ def _v1_global_sync_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/global/sync', + resource_path='/v1/groups/{id}/members', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -86135,10 +97361,11 @@ def _v1_global_sync_post_serialize( @validate_call - def v1_global_syslogs_device_get( + def v1_groups_id_patch( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + id: StrictStr, + v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86151,15 +97378,17 @@ 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 + ) -> None: + """v1_groups_id_patch - Get global syslog objects that failed to attach for a device + Update group information. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_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 @@ -86182,9 +97411,10 @@ def v1_global_syslogs_device_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_device_get_serialize( + _param = self._v1_groups_id_patch_serialize( authorization=authorization, - device_id=device_id, + id=id, + v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86192,7 +97422,7 @@ def v1_global_syslogs_device_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsDeviceGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -86206,10 +97436,11 @@ def v1_global_syslogs_device_get( @validate_call - def v1_global_syslogs_device_get_with_http_info( + def v1_groups_id_patch_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + id: StrictStr, + v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86222,15 +97453,17 @@ 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[None]: + """v1_groups_id_patch - Get global syslog objects that failed to attach for a device + Update group information. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_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 @@ -86253,9 +97486,10 @@ 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_groups_id_patch_serialize( authorization=authorization, - device_id=device_id, + id=id, + v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86263,7 +97497,7 @@ def v1_global_syslogs_device_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsDeviceGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -86277,10 +97511,11 @@ def v1_global_syslogs_device_get_with_http_info( @validate_call - def v1_global_syslogs_device_get_without_preload_content( + def v1_groups_id_patch_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Optional[StrictInt] = None, + id: StrictStr, + v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86294,14 +97529,16 @@ 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_groups_id_patch - Get global syslog objects that failed to attach for a device + Update group information. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: - :type device_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 @@ -86324,9 +97561,10 @@ 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_groups_id_patch_serialize( authorization=authorization, - device_id=device_id, + id=id, + v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86334,7 +97572,7 @@ def v1_global_syslogs_device_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsDeviceGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -86343,10 +97581,11 @@ def v1_global_syslogs_device_get_without_preload_content( return response_data.response - def _v1_global_syslogs_device_get_serialize( + def _v1_groups_id_patch_serialize( self, authorization, - device_id, + id, + v1_groups_id_patch_request, _request_auth, _content_type, _headers, @@ -86368,26 +97607,32 @@ def _v1_global_syslogs_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 # 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] = [ @@ -86395,8 +97640,8 @@ def _v1_global_syslogs_device_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/global/syslogs/device', + method='PATCH', + resource_path='/v1/groups/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -86413,10 +97658,10 @@ def _v1_global_syslogs_device_get_serialize( @validate_call - def v1_global_syslogs_post( + def v1_groups_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, + v1_groups_put_request: V1GroupsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86429,15 +97674,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 + ) -> None: + """v1_groups_put - Get configured global syslog collectors + 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 v1_global_syslogs_post_request: (required) - :type v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest + :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 @@ -86460,9 +97705,9 @@ def v1_global_syslogs_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_post_serialize( + _param = self._v1_groups_put_serialize( authorization=authorization, - v1_global_syslogs_post_request=v1_global_syslogs_post_request, + v1_groups_put_request=v1_groups_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86470,7 +97715,7 @@ def v1_global_syslogs_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -86484,10 +97729,10 @@ def v1_global_syslogs_post( @validate_call - def v1_global_syslogs_post_with_http_info( + def v1_groups_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, + v1_groups_put_request: V1GroupsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86500,15 +97745,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[None]: + """v1_groups_put - Get configured global syslog collectors + 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 v1_global_syslogs_post_request: (required) - :type v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest + :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 @@ -86531,9 +97776,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_groups_put_serialize( authorization=authorization, - v1_global_syslogs_post_request=v1_global_syslogs_post_request, + v1_groups_put_request=v1_groups_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86541,7 +97786,7 @@ def v1_global_syslogs_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -86555,10 +97800,10 @@ def v1_global_syslogs_post_with_http_info( @validate_call - def v1_global_syslogs_post_without_preload_content( + def v1_groups_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest, + v1_groups_put_request: V1GroupsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86572,14 +97817,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_groups_put - Get configured global syslog collectors + 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 v1_global_syslogs_post_request: (required) - :type v1_global_syslogs_post_request: V1GlobalSyslogsPostRequest + :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 @@ -86602,9 +97847,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_groups_put_serialize( authorization=authorization, - v1_global_syslogs_post_request=v1_global_syslogs_post_request, + v1_groups_put_request=v1_groups_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86612,7 +97857,7 @@ def v1_global_syslogs_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -86621,10 +97866,10 @@ def v1_global_syslogs_post_without_preload_content( return response_data.response - def _v1_global_syslogs_post_serialize( + def _v1_groups_put_serialize( self, authorization, - v1_global_syslogs_post_request, + v1_groups_put_request, _request_auth, _content_type, _headers, @@ -86652,17 +97897,10 @@ def _v1_global_syslogs_post_serialize( _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 + 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: @@ -86684,8 +97922,8 @@ def _v1_global_syslogs_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/global/syslogs', + method='PUT', + resource_path='/v1/groups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -86702,10 +97940,9 @@ def _v1_global_syslogs_post_serialize( @validate_call - def v1_global_syslogs_site_get( + def v1_groups_root_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)], @@ -86718,15 +97955,13 @@ 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 + ) -> V1GroupsRootGetResponse: + """v1_groups_root_get - Get configured global syslog collectors + Get all root-level groups. :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 @@ -86749,9 +97984,8 @@ def v1_global_syslogs_site_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_global_syslogs_site_get_serialize( + _param = self._v1_groups_root_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86759,7 +97993,7 @@ def v1_global_syslogs_site_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsSiteGetResponse", + '200': "V1GroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -86773,10 +98007,9 @@ def v1_global_syslogs_site_get( @validate_call - def v1_global_syslogs_site_get_with_http_info( + def v1_groups_root_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)], @@ -86789,15 +98022,13 @@ 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[V1GroupsRootGetResponse]: + """v1_groups_root_get - Get configured global syslog collectors + Get all root-level groups. :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 @@ -86820,9 +98051,8 @@ 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_groups_root_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86830,7 +98060,7 @@ def v1_global_syslogs_site_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsSiteGetResponse", + '200': "V1GroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -86844,10 +98074,9 @@ def v1_global_syslogs_site_get_with_http_info( @validate_call - def v1_global_syslogs_site_get_without_preload_content( + def v1_groups_root_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)], @@ -86861,14 +98090,12 @@ 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_groups_root_get - Get configured global syslog collectors + Get all root-level groups. :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 @@ -86891,9 +98118,8 @@ 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_groups_root_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -86901,7 +98127,7 @@ def v1_global_syslogs_site_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalSyslogsSiteGetResponse", + '200': "V1GroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -86910,10 +98136,9 @@ def v1_global_syslogs_site_get_without_preload_content( return response_data.response - def _v1_global_syslogs_site_get_serialize( + def _v1_groups_root_get_serialize( self, authorization, - site_id, _request_auth, _content_type, _headers, @@ -86936,10 +98161,6 @@ 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 @@ -86963,7 +98184,7 @@ def _v1_global_syslogs_site_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/global/syslogs/site', + resource_path='/v1/groups/root', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -86980,10 +98201,10 @@ def _v1_global_syslogs_site_get_serialize( @validate_call - def v1_global_traffic_policies_post( + def v1_invitation_email_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, + v1_invitation_email_post_request: V1InvitationEmailPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -86996,15 +98217,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 + ) -> object: + """v1_invitation_email_post - Get configured global traffic-policies + 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 v1_global_traffic_policies_post_request: (required) - :type v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest + :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 @@ -87027,9 +98248,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_invitation_email_post_serialize( authorization=authorization, - v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, + v1_invitation_email_post_request=v1_invitation_email_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87037,7 +98258,7 @@ def v1_global_traffic_policies_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalTrafficPoliciesPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -87051,10 +98272,10 @@ def v1_global_traffic_policies_post( @validate_call - def v1_global_traffic_policies_post_with_http_info( + def v1_invitation_email_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, + v1_invitation_email_post_request: V1InvitationEmailPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87067,15 +98288,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[object]: + """v1_invitation_email_post - Get configured global traffic-policies + 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 v1_global_traffic_policies_post_request: (required) - :type v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest + :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 @@ -87098,9 +98319,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_invitation_email_post_serialize( authorization=authorization, - v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, + v1_invitation_email_post_request=v1_invitation_email_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87108,7 +98329,7 @@ def v1_global_traffic_policies_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalTrafficPoliciesPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -87122,10 +98343,10 @@ def v1_global_traffic_policies_post_with_http_info( @validate_call - def v1_global_traffic_policies_post_without_preload_content( + def v1_invitation_email_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest, + v1_invitation_email_post_request: V1InvitationEmailPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87139,14 +98360,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_invitation_email_post - Get configured global traffic-policies + 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 v1_global_traffic_policies_post_request: (required) - :type v1_global_traffic_policies_post_request: V1GlobalTrafficPoliciesPostRequest + :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 @@ -87169,9 +98390,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_invitation_email_post_serialize( authorization=authorization, - v1_global_traffic_policies_post_request=v1_global_traffic_policies_post_request, + v1_invitation_email_post_request=v1_invitation_email_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87179,7 +98400,7 @@ def v1_global_traffic_policies_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GlobalTrafficPoliciesPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -87188,10 +98409,10 @@ def v1_global_traffic_policies_post_without_preload_content( return response_data.response - def _v1_global_traffic_policies_post_serialize( + def _v1_invitation_email_post_serialize( self, authorization, - v1_global_traffic_policies_post_request, + v1_invitation_email_post_request, _request_auth, _content_type, _headers, @@ -87219,8 +98440,8 @@ def _v1_global_traffic_policies_post_serialize( _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 + if v1_invitation_email_post_request is not None: + _body_params = v1_invitation_email_post_request # set the HTTP header `Accept` @@ -87252,7 +98473,7 @@ def _v1_global_traffic_policies_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/global/traffic-policies', + resource_path='/v1/invitation/email', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -87269,9 +98490,13 @@ def _v1_global_traffic_policies_post_serialize( @validate_call - def v1_groups_enterprises_get( + def v1_lan_segments_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Optional[StrictInt] = None, + device_ids: Optional[List[StrictInt]] = None, + filter: Optional[StrictStr] = None, + gateway_cloud_provider: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87284,13 +98509,21 @@ 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 + ) -> V1LanSegmentsGetResponse: + """v1_lan_segments_get - Get all enterprise-level groups. + Get LAN Segments for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: + :type device_id: int + :param device_ids: + :type device_ids: List[int] + :param filter: + :type filter: str + :param gateway_cloud_provider: + :type gateway_cloud_provider: 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 @@ -87313,8 +98546,12 @@ def v1_groups_enterprises_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_enterprises_get_serialize( + _param = self._v1_lan_segments_get_serialize( authorization=authorization, + device_id=device_id, + device_ids=device_ids, + filter=filter, + gateway_cloud_provider=gateway_cloud_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87322,7 +98559,7 @@ def v1_groups_enterprises_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsEnterprisesGetResponse", + '200': "V1LanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87336,9 +98573,13 @@ def v1_groups_enterprises_get( @validate_call - def v1_groups_enterprises_get_with_http_info( + def v1_lan_segments_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Optional[StrictInt] = None, + device_ids: Optional[List[StrictInt]] = None, + filter: Optional[StrictStr] = None, + gateway_cloud_provider: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87351,13 +98592,21 @@ 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[V1LanSegmentsGetResponse]: + """v1_lan_segments_get - Get all enterprise-level groups. + Get LAN Segments for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: + :type device_id: int + :param device_ids: + :type device_ids: List[int] + :param filter: + :type filter: str + :param gateway_cloud_provider: + :type gateway_cloud_provider: 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 @@ -87380,8 +98629,12 @@ 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_lan_segments_get_serialize( authorization=authorization, + device_id=device_id, + device_ids=device_ids, + filter=filter, + gateway_cloud_provider=gateway_cloud_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87389,7 +98642,7 @@ def v1_groups_enterprises_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsEnterprisesGetResponse", + '200': "V1LanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87403,9 +98656,13 @@ def v1_groups_enterprises_get_with_http_info( @validate_call - def v1_groups_enterprises_get_without_preload_content( + def v1_lan_segments_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Optional[StrictInt] = None, + device_ids: Optional[List[StrictInt]] = None, + filter: Optional[StrictStr] = None, + gateway_cloud_provider: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87419,12 +98676,20 @@ 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_lan_segments_get - Get all enterprise-level groups. + Get LAN Segments for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: + :type device_id: int + :param device_ids: + :type device_ids: List[int] + :param filter: + :type filter: str + :param gateway_cloud_provider: + :type gateway_cloud_provider: 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 @@ -87447,8 +98712,12 @@ 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_lan_segments_get_serialize( authorization=authorization, + device_id=device_id, + device_ids=device_ids, + filter=filter, + gateway_cloud_provider=gateway_cloud_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87456,7 +98725,7 @@ def v1_groups_enterprises_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsEnterprisesGetResponse", + '200': "V1LanSegmentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87465,9 +98734,13 @@ def v1_groups_enterprises_get_without_preload_content( return response_data.response - def _v1_groups_enterprises_get_serialize( + def _v1_lan_segments_get_serialize( self, authorization, + device_id, + device_ids, + filter, + gateway_cloud_provider, _request_auth, _content_type, _headers, @@ -87477,6 +98750,7 @@ def _v1_groups_enterprises_get_serialize( _host = None _collection_formats: Dict[str, str] = { + 'deviceIds': 'multi', } _path_params: Dict[str, str] = {} @@ -87490,6 +98764,22 @@ def _v1_groups_enterprises_get_serialize( # process the path parameters # process the query parameters + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + + if device_ids is not None: + + _query_params.append(('deviceIds', device_ids)) + + if filter is not None: + + _query_params.append(('filter', filter)) + + if gateway_cloud_provider is not None: + + _query_params.append(('gatewayCloudProvider', gateway_cloud_provider)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -87513,7 +98803,7 @@ def _v1_groups_enterprises_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/groups/enterprises', + resource_path='/v1/lan-segments', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -87530,9 +98820,10 @@ def _v1_groups_enterprises_get_serialize( @validate_call - def v1_groups_get( + def v1_lan_segments_interfaces_public_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Annotated[StrictInt, Field(description="device id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87545,13 +98836,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 + ) -> V1LanSegmentsInterfacesPublicGetResponse: + """v1_lan_segments_interfaces_public_get - Get all groups in the enterprise. + Per LAN segment (VRF) on a device: interfaces split by globally routable IPv4 (for Public VIF / BGP) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: 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 @@ -87574,8 +98867,9 @@ def v1_groups_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_get_serialize( + _param = self._v1_lan_segments_interfaces_public_get_serialize( authorization=authorization, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87583,7 +98877,7 @@ def v1_groups_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsGetResponse", + '200': "V1LanSegmentsInterfacesPublicGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87597,9 +98891,10 @@ def v1_groups_get( @validate_call - def v1_groups_get_with_http_info( + def v1_lan_segments_interfaces_public_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Annotated[StrictInt, Field(description="device id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87612,13 +98907,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[V1LanSegmentsInterfacesPublicGetResponse]: + """v1_lan_segments_interfaces_public_get - Get all groups in the enterprise. + Per LAN segment (VRF) on a device: interfaces split by globally routable IPv4 (for Public VIF / BGP) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: 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 @@ -87641,8 +98938,9 @@ def v1_groups_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_get_serialize( + _param = self._v1_lan_segments_interfaces_public_get_serialize( authorization=authorization, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87650,7 +98948,7 @@ def v1_groups_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsGetResponse", + '200': "V1LanSegmentsInterfacesPublicGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87664,9 +98962,10 @@ def v1_groups_get_with_http_info( @validate_call - def v1_groups_get_without_preload_content( + def v1_lan_segments_interfaces_public_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Annotated[StrictInt, Field(description="device id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87680,12 +98979,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_lan_segments_interfaces_public_get - Get all groups in the enterprise. + Per LAN segment (VRF) on a device: interfaces split by globally routable IPv4 (for Public VIF / BGP) :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: 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 @@ -87708,8 +99009,9 @@ def v1_groups_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_get_serialize( + _param = self._v1_lan_segments_interfaces_public_get_serialize( authorization=authorization, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87717,7 +99019,7 @@ def v1_groups_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsGetResponse", + '200': "V1LanSegmentsInterfacesPublicGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87726,9 +99028,10 @@ def v1_groups_get_without_preload_content( return response_data.response - def _v1_groups_get_serialize( + def _v1_lan_segments_interfaces_public_get_serialize( self, authorization, + device_id, _request_auth, _content_type, _headers, @@ -87751,6 +99054,10 @@ def _v1_groups_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 @@ -87774,7 +99081,7 @@ def _v1_groups_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/groups', + resource_path='/v1/lan-segments/interfaces/public', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -87791,10 +99098,10 @@ def _v1_groups_get_serialize( @validate_call - def v1_groups_id_delete( + def v1_lldp_interface_id_neighbors_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87807,15 +99114,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 + ) -> V1LldpInterfaceIdNeighborsGetResponse: + """v1_lldp_interface_id_neighbors_get - Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. + Get the LLDP neighbors for an interface and optionally for a specific vendor :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: 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 @@ -87838,9 +99145,9 @@ def v1_groups_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_delete_serialize( + _param = self._v1_lldp_interface_id_neighbors_get_serialize( authorization=authorization, - id=id, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87848,7 +99155,7 @@ def v1_groups_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdNeighborsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87862,10 +99169,10 @@ def v1_groups_id_delete( @validate_call - def v1_groups_id_delete_with_http_info( + def v1_lldp_interface_id_neighbors_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87878,15 +99185,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[V1LldpInterfaceIdNeighborsGetResponse]: + """v1_lldp_interface_id_neighbors_get - Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. + Get the LLDP neighbors for an interface and optionally for a specific vendor :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: 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 @@ -87909,9 +99216,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_lldp_interface_id_neighbors_get_serialize( authorization=authorization, - id=id, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87919,7 +99226,7 @@ def v1_groups_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdNeighborsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87933,10 +99240,10 @@ def v1_groups_id_delete_with_http_info( @validate_call - def v1_groups_id_delete_without_preload_content( + def v1_lldp_interface_id_neighbors_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -87950,14 +99257,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_lldp_interface_id_neighbors_get - Delete a group and remove all member associations and enterprise relationships. Replace with a different group if specified. + Get the LLDP neighbors for an interface and optionally for a specific vendor :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: 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 @@ -87980,9 +99287,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_lldp_interface_id_neighbors_get_serialize( authorization=authorization, - id=id, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -87990,7 +99297,7 @@ def v1_groups_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdNeighborsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -87999,10 +99306,10 @@ def v1_groups_id_delete_without_preload_content( return response_data.response - def _v1_groups_id_delete_serialize( + def _v1_lldp_interface_id_neighbors_get_serialize( self, authorization, - id, + interface_id, _request_auth, _content_type, _headers, @@ -88024,8 +99331,8 @@ def _v1_groups_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id + if interface_id is not None: + _path_params['interfaceId'] = interface_id # process the query parameters # process the header parameters if authorization is not None: @@ -88034,6 +99341,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 @@ -88042,8 +99356,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/lldp/{interfaceId}/neighbors', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -88060,11 +99374,10 @@ def _v1_groups_id_delete_serialize( @validate_call - def v1_groups_id_enterprises_enterprise_id_delete( + def v1_lldp_interface_id_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, - id: StrictStr, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88077,17 +99390,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 + ) -> V1LldpInterfaceIdSummaryGetResponse: + """v1_lldp_interface_id_summary_get - Remove group's association with a specific enterprise, revoking cross-enterprise access. + Get the summary of LLDP neighbors for an interface :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 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 @@ -88110,10 +99421,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_lldp_interface_id_summary_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, - id=id, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88121,7 +99431,7 @@ def v1_groups_id_enterprises_enterprise_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -88135,11 +99445,10 @@ def v1_groups_id_enterprises_enterprise_id_delete( @validate_call - def v1_groups_id_enterprises_enterprise_id_delete_with_http_info( + def v1_lldp_interface_id_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, - id: StrictStr, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88152,17 +99461,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[V1LldpInterfaceIdSummaryGetResponse]: + """v1_lldp_interface_id_summary_get - Remove group's association with a specific enterprise, revoking cross-enterprise access. + Get the summary of LLDP neighbors for an interface :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 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 @@ -88185,10 +99492,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_lldp_interface_id_summary_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, - id=id, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88196,7 +99502,7 @@ def v1_groups_id_enterprises_enterprise_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -88210,11 +99516,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_lldp_interface_id_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, - id: StrictStr, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88228,16 +99533,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_lldp_interface_id_summary_get - Remove group's association with a specific enterprise, revoking cross-enterprise access. + Get the summary of LLDP neighbors for an interface :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 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 @@ -88260,10 +99563,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_lldp_interface_id_summary_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, - id=id, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88271,7 +99573,7 @@ def v1_groups_id_enterprises_enterprise_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -88280,11 +99582,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_lldp_interface_id_summary_get_serialize( self, authorization, - enterprise_id, - id, + interface_id, _request_auth, _content_type, _headers, @@ -88306,10 +99607,8 @@ 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 + if interface_id is not None: + _path_params['interfaceId'] = interface_id # process the query parameters # process the header parameters if authorization is not None: @@ -88318,6 +99617,13 @@ def _v1_groups_id_enterprises_enterprise_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 @@ -88326,8 +99632,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='GET', + resource_path='/v1/lldp/{interfaceId}/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -88344,11 +99650,10 @@ def _v1_groups_id_enterprises_enterprise_id_delete_serialize( @validate_call - def v1_groups_id_enterprises_post( + def v1_lldp_interface_id_vendors_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88361,17 +99666,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 + ) -> V1LldpInterfaceIdVendorsGetResponse: + """v1_lldp_interface_id_vendors_get - Associate group with additional enterprises to enable cross-enterprise access and management. + Get the list LLDP vendors for an interface :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 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 @@ -88394,10 +99697,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_lldp_interface_id_vendors_get_serialize( authorization=authorization, - id=id, - v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88405,7 +99707,7 @@ def v1_groups_id_enterprises_post( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdVendorsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -88419,11 +99721,10 @@ def v1_groups_id_enterprises_post( @validate_call - def v1_groups_id_enterprises_post_with_http_info( + def v1_lldp_interface_id_vendors_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88436,17 +99737,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[V1LldpInterfaceIdVendorsGetResponse]: + """v1_lldp_interface_id_vendors_get - Associate group with additional enterprises to enable cross-enterprise access and management. + Get the list LLDP vendors for an interface :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 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 @@ -88469,10 +99768,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_lldp_interface_id_vendors_get_serialize( authorization=authorization, - id=id, - v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88480,7 +99778,7 @@ def v1_groups_id_enterprises_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdVendorsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -88494,11 +99792,10 @@ def v1_groups_id_enterprises_post_with_http_info( @validate_call - def v1_groups_id_enterprises_post_without_preload_content( + def v1_lldp_interface_id_vendors_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_enterprises_post_request: V1GroupsIdEnterprisesPostRequest, + interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88512,16 +99809,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_lldp_interface_id_vendors_get - Associate group with additional enterprises to enable cross-enterprise access and management. + Get the list LLDP vendors for an interface :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 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 @@ -88544,10 +99839,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_lldp_interface_id_vendors_get_serialize( authorization=authorization, - id=id, - v1_groups_id_enterprises_post_request=v1_groups_id_enterprises_post_request, + interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88555,7 +99849,7 @@ def v1_groups_id_enterprises_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LldpInterfaceIdVendorsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -88564,11 +99858,10 @@ def v1_groups_id_enterprises_post_without_preload_content( return response_data.response - def _v1_groups_id_enterprises_post_serialize( + def _v1_lldp_interface_id_vendors_get_serialize( self, authorization, - id, - v1_groups_id_enterprises_post_request, + interface_id, _request_auth, _content_type, _headers, @@ -88590,32 +99883,24 @@ 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 + 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_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] = [ @@ -88623,8 +99908,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/lldp/{interfaceId}/vendors', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -88641,11 +99926,10 @@ def _v1_groups_id_enterprises_post_serialize( @validate_call - def v1_groups_id_members_delete_post( + def v1_logs_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_members_delete_post_request: V1GroupsIdMembersDeletePostRequest, + v1_logs_post_request: V1LogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88658,17 +99942,14 @@ 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 + ) -> V1LogsPostResponse: + """v1_logs_post - 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 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 @@ -88691,10 +99972,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_logs_post_serialize( authorization=authorization, - id=id, - v1_groups_id_members_delete_post_request=v1_groups_id_members_delete_post_request, + v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88702,7 +99982,7 @@ def v1_groups_id_members_delete_post( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LogsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -88716,11 +99996,10 @@ def v1_groups_id_members_delete_post( @validate_call - def v1_groups_id_members_delete_post_with_http_info( + def v1_logs_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_logs_post_request: V1LogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88733,17 +100012,14 @@ 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[V1LogsPostResponse]: + """v1_logs_post - 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 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 @@ -88766,10 +100042,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_logs_post_serialize( authorization=authorization, - id=id, - v1_groups_id_members_delete_post_request=v1_groups_id_members_delete_post_request, + v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88777,7 +100052,7 @@ def v1_groups_id_members_delete_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LogsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -88791,11 +100066,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_logs_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_logs_post_request: V1LogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88809,16 +100083,13 @@ 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_logs_post - 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 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 @@ -88841,10 +100112,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_logs_post_serialize( authorization=authorization, - id=id, - v1_groups_id_members_delete_post_request=v1_groups_id_members_delete_post_request, + v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88852,7 +100122,7 @@ def v1_groups_id_members_delete_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1LogsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -88861,11 +100131,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_logs_post_serialize( self, authorization, - id, - v1_groups_id_members_delete_post_request, + v1_logs_post_request, _request_auth, _content_type, _headers, @@ -88887,18 +100156,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_logs_post_request is not None: + _body_params = v1_logs_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: @@ -88921,7 +100195,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/logs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -88938,10 +100212,9 @@ def _v1_groups_id_members_delete_post_serialize( @validate_call - def v1_groups_id_members_get( + def v1_msp_managed_enterprise_contract_info_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -88954,15 +100227,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 + ) -> V1MspManagedEnterpriseContractInfoGetResponse: + """v1_msp_managed_enterprise_contract_info_get - Get all members of a specific group. + Managed enterprises under the MSP with contract and credit allocation details for the requested month :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 @@ -88985,9 +100256,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_msp_managed_enterprise_contract_info_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -88995,7 +100265,7 @@ def v1_groups_id_members_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsIdMembersGetResponse", + '200': "V1MspManagedEnterpriseContractInfoGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89009,10 +100279,9 @@ def v1_groups_id_members_get( @validate_call - def v1_groups_id_members_get_with_http_info( + def v1_msp_managed_enterprise_contract_info_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)], @@ -89025,15 +100294,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[V1MspManagedEnterpriseContractInfoGetResponse]: + """v1_msp_managed_enterprise_contract_info_get - Get all members of a specific group. + Managed enterprises under the MSP with contract and credit allocation details for the requested month :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 @@ -89056,9 +100323,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_msp_managed_enterprise_contract_info_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89066,7 +100332,7 @@ def v1_groups_id_members_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsIdMembersGetResponse", + '200': "V1MspManagedEnterpriseContractInfoGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89080,10 +100346,9 @@ def v1_groups_id_members_get_with_http_info( @validate_call - def v1_groups_id_members_get_without_preload_content( + def v1_msp_managed_enterprise_contract_info_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)], @@ -89097,14 +100362,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_msp_managed_enterprise_contract_info_get - Get all members of a specific group. + Managed enterprises under the MSP with contract and credit allocation details for the requested month :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 @@ -89127,9 +100390,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_msp_managed_enterprise_contract_info_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89137,7 +100399,7 @@ def v1_groups_id_members_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsIdMembersGetResponse", + '200': "V1MspManagedEnterpriseContractInfoGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89146,10 +100408,9 @@ def v1_groups_id_members_get_without_preload_content( return response_data.response - def _v1_groups_id_members_get_serialize( + def _v1_msp_managed_enterprise_contract_info_get_serialize( self, authorization, - id, _request_auth, _content_type, _headers, @@ -89171,8 +100432,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: @@ -89197,7 +100456,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/msp/managed-enterprise-contract-info', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -89214,11 +100473,10 @@ def _v1_groups_id_members_get_serialize( @validate_call - def v1_groups_id_members_member_id_delete( + def v1_nat_entries_device_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - member_id: StrictStr, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89231,17 +100489,15 @@ 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 + ) -> V1NatEntriesDeviceIdGetResponse: + """v1_nat_entries_device_id_get - Remove a specific user from a group by member ID. + Get the NAT entries for the device :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 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 @@ -89264,10 +100520,9 @@ 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_nat_entries_device_id_get_serialize( authorization=authorization, - id=id, - member_id=member_id, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89275,7 +100530,7 @@ def v1_groups_id_members_member_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1NatEntriesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89289,11 +100544,10 @@ def v1_groups_id_members_member_id_delete( @validate_call - def v1_groups_id_members_member_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: StrictStr, - member_id: StrictStr, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89306,17 +100560,15 @@ 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[V1NatEntriesDeviceIdGetResponse]: + """v1_nat_entries_device_id_get - Remove a specific user from a group by member ID. + Get the NAT entries for the device :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 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 @@ -89339,10 +100591,9 @@ 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_nat_entries_device_id_get_serialize( authorization=authorization, - id=id, - member_id=member_id, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89350,7 +100601,7 @@ def v1_groups_id_members_member_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1NatEntriesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89364,11 +100615,10 @@ 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_nat_entries_device_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - member_id: StrictStr, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89382,16 +100632,14 @@ 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_nat_entries_device_id_get - Remove a specific user from a group by member ID. + Get the NAT entries for the device :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 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 @@ -89414,10 +100662,9 @@ 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_nat_entries_device_id_get_serialize( authorization=authorization, - id=id, - member_id=member_id, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89425,7 +100672,7 @@ def v1_groups_id_members_member_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1NatEntriesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89434,11 +100681,10 @@ 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_nat_entries_device_id_get_serialize( self, authorization, - id, - member_id, + device_id, _request_auth, _content_type, _headers, @@ -89460,10 +100706,8 @@ 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 + if device_id is not None: + _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: @@ -89472,6 +100716,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 @@ -89480,8 +100731,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/nat/entries/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -89498,11 +100749,10 @@ def _v1_groups_id_members_member_id_delete_serialize( @validate_call - def v1_groups_id_members_post( + def v1_nat_utilization_device_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89515,17 +100765,15 @@ def v1_groups_id_members_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_post + ) -> V1NatUtilizationDeviceIdGetResponse: + """v1_nat_utilization_device_id_get - Add multiple users to a group by their global IDs. + Get the NAT usage for the device :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 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 @@ -89548,10 +100796,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_nat_utilization_device_id_get_serialize( authorization=authorization, - id=id, - v1_groups_id_members_post_request=v1_groups_id_members_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89559,7 +100806,7 @@ def v1_groups_id_members_post( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1NatUtilizationDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89573,11 +100820,10 @@ def v1_groups_id_members_post( @validate_call - def v1_groups_id_members_post_with_http_info( + def v1_nat_utilization_device_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89590,17 +100836,15 @@ def v1_groups_id_members_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_post + ) -> ApiResponse[V1NatUtilizationDeviceIdGetResponse]: + """v1_nat_utilization_device_id_get - Add multiple users to a group by their global IDs. + Get the NAT usage for the device :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 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 @@ -89623,10 +100867,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_nat_utilization_device_id_get_serialize( authorization=authorization, - id=id, - v1_groups_id_members_post_request=v1_groups_id_members_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89634,7 +100877,7 @@ def v1_groups_id_members_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1NatUtilizationDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89648,11 +100891,10 @@ def v1_groups_id_members_post_with_http_info( @validate_call - def v1_groups_id_members_post_without_preload_content( + def v1_nat_utilization_device_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_members_post_request: V1GroupsIdMembersPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89666,16 +100908,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_nat_utilization_device_id_get - Add multiple users to a group by their global IDs. + Get the NAT usage for the device :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 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 @@ -89698,10 +100938,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_nat_utilization_device_id_get_serialize( authorization=authorization, - id=id, - v1_groups_id_members_post_request=v1_groups_id_members_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89709,7 +100948,7 @@ def v1_groups_id_members_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1NatUtilizationDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -89718,11 +100957,10 @@ def v1_groups_id_members_post_without_preload_content( return response_data.response - def _v1_groups_id_members_post_serialize( + def _v1_nat_utilization_device_id_get_serialize( self, authorization, - id, - v1_groups_id_members_post_request, + device_id, _request_auth, _content_type, _headers, @@ -89744,32 +100982,24 @@ def _v1_groups_id_members_post_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 # 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 `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] = [ @@ -89777,8 +101007,8 @@ def _v1_groups_id_members_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/groups/{id}/members', + method='GET', + resource_path='/v1/nat/utilization/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -89795,11 +101025,9 @@ def _v1_groups_id_members_post_serialize( @validate_call - def v1_groups_id_patch( + def v1_onboarding_cloudinit_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89813,16 +101041,12 @@ 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_onboarding_cloudinit_delete - Update group information. + Delete the onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 @@ -89845,10 +101069,8 @@ def v1_groups_id_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_id_patch_serialize( + _param = self._v1_onboarding_cloudinit_delete_serialize( authorization=authorization, - id=id, - v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89870,11 +101092,9 @@ def v1_groups_id_patch( @validate_call - def v1_groups_id_patch_with_http_info( + def v1_onboarding_cloudinit_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89888,16 +101108,12 @@ 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_onboarding_cloudinit_delete - Update group information. + Delete the onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 @@ -89920,10 +101136,8 @@ 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_onboarding_cloudinit_delete_serialize( authorization=authorization, - id=id, - v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -89945,11 +101159,9 @@ def v1_groups_id_patch_with_http_info( @validate_call - def v1_groups_id_patch_without_preload_content( + def v1_onboarding_cloudinit_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - v1_groups_id_patch_request: V1GroupsIdPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -89963,16 +101175,12 @@ 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_onboarding_cloudinit_delete - Update group information. + Delete the onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 @@ -89995,10 +101203,8 @@ 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_onboarding_cloudinit_delete_serialize( authorization=authorization, - id=id, - v1_groups_id_patch_request=v1_groups_id_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90015,11 +101221,9 @@ def v1_groups_id_patch_without_preload_content( return response_data.response - def _v1_groups_id_patch_serialize( + def _v1_onboarding_cloudinit_delete_serialize( self, authorization, - id, - v1_groups_id_patch_request, _request_auth, _content_type, _headers, @@ -90041,32 +101245,15 @@ def _v1_groups_id_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 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] = [ @@ -90074,8 +101261,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/onboarding/cloudinit', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -90092,10 +101279,9 @@ def _v1_groups_id_patch_serialize( @validate_call - def v1_groups_put( + def v1_onboarding_cloudinit_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_groups_put_request: V1GroupsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90108,15 +101294,13 @@ def v1_groups_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_groups_put + ) -> V1OnboardingCloudinitGetResponse: + """v1_onboarding_cloudinit_get - Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). + Get all the onboarding tokens :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 @@ -90139,9 +101323,8 @@ def v1_groups_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_put_serialize( + _param = self._v1_onboarding_cloudinit_get_serialize( authorization=authorization, - v1_groups_put_request=v1_groups_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90149,7 +101332,7 @@ def v1_groups_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1OnboardingCloudinitGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90163,10 +101346,9 @@ def v1_groups_put( @validate_call - def v1_groups_put_with_http_info( + def v1_onboarding_cloudinit_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_groups_put_request: V1GroupsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90179,15 +101361,13 @@ def v1_groups_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_groups_put + ) -> ApiResponse[V1OnboardingCloudinitGetResponse]: + """v1_onboarding_cloudinit_get - Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). + Get all the onboarding tokens :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 @@ -90210,9 +101390,8 @@ def v1_groups_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_put_serialize( + _param = self._v1_onboarding_cloudinit_get_serialize( authorization=authorization, - v1_groups_put_request=v1_groups_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90220,7 +101399,7 @@ def v1_groups_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1OnboardingCloudinitGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90234,10 +101413,9 @@ def v1_groups_put_with_http_info( @validate_call - def v1_groups_put_without_preload_content( + def v1_onboarding_cloudinit_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_groups_put_request: V1GroupsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90251,14 +101429,12 @@ 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_onboarding_cloudinit_get - Create a new group with and set permissions. Set group's enterprise management capabilities (msp only). + Get all the onboarding tokens :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 @@ -90281,9 +101457,8 @@ def v1_groups_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_put_serialize( + _param = self._v1_onboarding_cloudinit_get_serialize( authorization=authorization, - v1_groups_put_request=v1_groups_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90291,7 +101466,7 @@ def v1_groups_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1OnboardingCloudinitGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90300,10 +101475,9 @@ def v1_groups_put_without_preload_content( return response_data.response - def _v1_groups_put_serialize( + def _v1_onboarding_cloudinit_get_serialize( self, authorization, - v1_groups_put_request, _request_auth, _content_type, _headers, @@ -90331,24 +101505,16 @@ def _v1_groups_put_serialize( _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 `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] = [ @@ -90356,8 +101522,8 @@ def _v1_groups_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/groups', + method='GET', + resource_path='/v1/onboarding/cloudinit', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -90374,9 +101540,10 @@ def _v1_groups_put_serialize( @validate_call - def v1_groups_root_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)], @@ -90389,13 +101556,15 @@ 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 + ) -> object: + """v1_onboarding_cloudinit_post - Get all root-level groups. + 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 @@ -90418,8 +101587,9 @@ def v1_groups_root_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_groups_root_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, @@ -90427,7 +101597,7 @@ def v1_groups_root_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsRootGetResponse", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -90441,9 +101611,10 @@ def v1_groups_root_get( @validate_call - def v1_groups_root_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)], @@ -90456,13 +101627,15 @@ 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[object]: + """v1_onboarding_cloudinit_post - Get all root-level groups. + 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 @@ -90485,8 +101658,9 @@ 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_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, @@ -90494,7 +101668,7 @@ def v1_groups_root_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsRootGetResponse", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -90508,9 +101682,10 @@ def v1_groups_root_get_with_http_info( @validate_call - def v1_groups_root_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)], @@ -90524,12 +101699,14 @@ 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_onboarding_cloudinit_post - Get all root-level groups. + 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 @@ -90552,8 +101729,9 @@ 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_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, @@ -90561,7 +101739,7 @@ def v1_groups_root_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1GroupsRootGetResponse", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -90570,9 +101748,10 @@ def v1_groups_root_get_without_preload_content( return response_data.response - def _v1_groups_root_get_serialize( + def _v1_onboarding_cloudinit_post_serialize( self, authorization, + v1_onboarding_cloudinit_post_request, _request_auth, _content_type, _headers, @@ -90600,6 +101779,8 @@ def _v1_groups_root_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` @@ -90610,6 +101791,19 @@ def _v1_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] = [ @@ -90617,8 +101811,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/onboarding/cloudinit', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -90635,10 +101829,9 @@ def _v1_groups_root_get_serialize( @validate_call - def v1_invitation_email_post( + def v1_policy_applications_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_invitation_email_post_request: V1InvitationEmailPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90651,15 +101844,13 @@ 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 + ) -> V1PolicyApplicationsGetResponse: + """v1_policy_applications_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 a list of builtin DPI applications :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90682,9 +101873,8 @@ def v1_invitation_email_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_invitation_email_post_serialize( + _param = self._v1_policy_applications_get_serialize( authorization=authorization, - v1_invitation_email_post_request=v1_invitation_email_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90692,7 +101882,7 @@ def v1_invitation_email_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1PolicyApplicationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90706,10 +101896,9 @@ def v1_invitation_email_post( @validate_call - def v1_invitation_email_post_with_http_info( + def v1_policy_applications_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_invitation_email_post_request: V1InvitationEmailPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90722,15 +101911,13 @@ 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[V1PolicyApplicationsGetResponse]: + """v1_policy_applications_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 a list of builtin DPI applications :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90753,9 +101940,8 @@ 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_policy_applications_get_serialize( authorization=authorization, - v1_invitation_email_post_request=v1_invitation_email_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90763,7 +101949,7 @@ def v1_invitation_email_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1PolicyApplicationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90777,10 +101963,9 @@ def v1_invitation_email_post_with_http_info( @validate_call - def v1_invitation_email_post_without_preload_content( + def v1_policy_applications_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_invitation_email_post_request: V1InvitationEmailPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -90794,14 +101979,12 @@ 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_policy_applications_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 a list of builtin DPI applications :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -90824,9 +102007,8 @@ 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_policy_applications_get_serialize( authorization=authorization, - v1_invitation_email_post_request=v1_invitation_email_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -90834,7 +102016,7 @@ def v1_invitation_email_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1PolicyApplicationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -90843,10 +102025,9 @@ def v1_invitation_email_post_without_preload_content( return response_data.response - def _v1_invitation_email_post_serialize( + def _v1_policy_applications_get_serialize( self, authorization, - v1_invitation_email_post_request, _request_auth, _content_type, _headers, @@ -90874,8 +102055,6 @@ def _v1_invitation_email_post_serialize( _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` @@ -90886,19 +102065,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] = [ @@ -90906,8 +102072,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/policy/applications', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -90924,9 +102090,11 @@ def _v1_invitation_email_post_serialize( @validate_call - def v1_lan_segments_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)], @@ -90939,13 +102107,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 + ) -> V1PolicyRouteTagSetsIdDeleteResponse: + """v1_policy_route_tag_sets_id_delete - Get LAN Segments for the current enterprise + 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 @@ -90968,8 +102140,10 @@ def v1_lan_segments_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_lan_segments_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, @@ -90977,7 +102151,7 @@ def v1_lan_segments_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LanSegmentsGetResponse", + '200': "V1PolicyRouteTagSetsIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -90991,9 +102165,11 @@ def v1_lan_segments_get( @validate_call - def v1_lan_segments_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)], @@ -91006,13 +102182,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[V1PolicyRouteTagSetsIdDeleteResponse]: + """v1_policy_route_tag_sets_id_delete - Get LAN Segments for the current enterprise + 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 @@ -91035,8 +102215,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_policy_route_tag_sets_id_delete_serialize( authorization=authorization, + id=id, + level=level, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91044,7 +102226,7 @@ def v1_lan_segments_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LanSegmentsGetResponse", + '200': "V1PolicyRouteTagSetsIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -91058,9 +102240,11 @@ def v1_lan_segments_get_with_http_info( @validate_call - def v1_lan_segments_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)], @@ -91074,12 +102258,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_policy_route_tag_sets_id_delete - Get LAN Segments for the current enterprise + 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 @@ -91102,8 +102290,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_policy_route_tag_sets_id_delete_serialize( authorization=authorization, + id=id, + level=level, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91111,7 +102301,7 @@ def v1_lan_segments_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LanSegmentsGetResponse", + '200': "V1PolicyRouteTagSetsIdDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -91120,9 +102310,11 @@ def v1_lan_segments_get_without_preload_content( return response_data.response - def _v1_lan_segments_get_serialize( + def _v1_policy_route_tag_sets_id_delete_serialize( self, authorization, + id, + level, _request_auth, _content_type, _headers, @@ -91144,7 +102336,13 @@ def _v1_lan_segments_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 @@ -91167,8 +102365,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/policy/route-tag-sets/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -91185,10 +102383,10 @@ def _v1_lan_segments_get_serialize( @validate_call - def v1_lldp_interface_id_neighbors_get( + def v1_policy_route_tag_sets_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -91201,15 +102399,15 @@ 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 + ) -> V1PolicyRouteTagSetsPostResponse: + """v1_policy_route_tag_sets_post - Get the LLDP neighbors for an interface and optionally for a specific vendor + Create a new route tag scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :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 @@ -91232,9 +102430,9 @@ 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_policy_route_tag_sets_post_serialize( authorization=authorization, - interface_id=interface_id, + v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91242,7 +102440,7 @@ def v1_lldp_interface_id_neighbors_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdNeighborsGetResponse", + '200': "V1PolicyRouteTagSetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -91256,10 +102454,10 @@ def v1_lldp_interface_id_neighbors_get( @validate_call - def v1_lldp_interface_id_neighbors_get_with_http_info( + def v1_policy_route_tag_sets_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -91272,15 +102470,15 @@ 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[V1PolicyRouteTagSetsPostResponse]: + """v1_policy_route_tag_sets_post - Get the LLDP neighbors for an interface and optionally for a specific vendor + Create a new route tag scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :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 @@ -91303,9 +102501,9 @@ 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_policy_route_tag_sets_post_serialize( authorization=authorization, - interface_id=interface_id, + v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91313,7 +102511,7 @@ def v1_lldp_interface_id_neighbors_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdNeighborsGetResponse", + '200': "V1PolicyRouteTagSetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -91327,10 +102525,10 @@ def v1_lldp_interface_id_neighbors_get_with_http_info( @validate_call - def v1_lldp_interface_id_neighbors_get_without_preload_content( + def v1_policy_route_tag_sets_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, + v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -91344,14 +102542,14 @@ 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_policy_route_tag_sets_post - Get the LLDP neighbors for an interface and optionally for a specific vendor + Create a new route tag scoped to the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param interface_id: (required) - :type interface_id: int + :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 @@ -91374,9 +102572,9 @@ 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_policy_route_tag_sets_post_serialize( authorization=authorization, - interface_id=interface_id, + v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91384,7 +102582,7 @@ def v1_lldp_interface_id_neighbors_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdNeighborsGetResponse", + '200': "V1PolicyRouteTagSetsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -91393,10 +102591,10 @@ def v1_lldp_interface_id_neighbors_get_without_preload_content( return response_data.response - def _v1_lldp_interface_id_neighbors_get_serialize( + def _v1_policy_route_tag_sets_post_serialize( self, authorization, - interface_id, + v1_policy_route_tag_sets_post_request, _request_auth, _content_type, _headers, @@ -91418,14 +102616,14 @@ 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 # 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` @@ -91436,6 +102634,19 @@ def _v1_lldp_interface_id_neighbors_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] = [ @@ -91443,8 +102654,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/policy/route-tag-sets', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -91461,10 +102672,9 @@ def _v1_lldp_interface_id_neighbors_get_serialize( @validate_call - def v1_lldp_interface_id_summary_get( + def v1_policy_route_tag_sets_tag_detail_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -91477,15 +102687,13 @@ 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 + ) -> V1PolicyRouteTagSetsTagDetailGetResponse: + """v1_policy_route_tag_sets_tag_detail_get - Get the summary of LLDP neighbors for an interface + Get all the route tags summary for the the enterprise :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 @@ -91508,9 +102716,8 @@ 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_policy_route_tag_sets_tag_detail_get_serialize( authorization=authorization, - interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91518,7 +102725,7 @@ def v1_lldp_interface_id_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdSummaryGetResponse", + '200': "V1PolicyRouteTagSetsTagDetailGetResponse", } response_data = self.api_client.call_api( *_param, @@ -91532,10 +102739,9 @@ def v1_lldp_interface_id_summary_get( @validate_call - def v1_lldp_interface_id_summary_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 ")], - interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -91548,15 +102754,13 @@ 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[V1PolicyRouteTagSetsTagDetailGetResponse]: + """v1_policy_route_tag_sets_tag_detail_get - Get the summary of LLDP neighbors for an interface + Get all the route tags summary for the the enterprise :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 @@ -91579,9 +102783,8 @@ 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_policy_route_tag_sets_tag_detail_get_serialize( authorization=authorization, - interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91589,7 +102792,7 @@ def v1_lldp_interface_id_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdSummaryGetResponse", + '200': "V1PolicyRouteTagSetsTagDetailGetResponse", } response_data = self.api_client.call_api( *_param, @@ -91603,10 +102806,9 @@ def v1_lldp_interface_id_summary_get_with_http_info( @validate_call - def v1_lldp_interface_id_summary_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 ")], - interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -91620,14 +102822,12 @@ 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_policy_route_tag_sets_tag_detail_get - Get the summary of LLDP neighbors for an interface + Get all the route tags summary for the the enterprise :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 @@ -91650,9 +102850,8 @@ 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_policy_route_tag_sets_tag_detail_get_serialize( authorization=authorization, - interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91660,7 +102859,7 @@ def v1_lldp_interface_id_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdSummaryGetResponse", + '200': "V1PolicyRouteTagSetsTagDetailGetResponse", } response_data = self.api_client.call_api( *_param, @@ -91669,10 +102868,9 @@ def v1_lldp_interface_id_summary_get_without_preload_content( return response_data.response - def _v1_lldp_interface_id_summary_get_serialize( + def _v1_policy_route_tag_sets_tag_detail_get_serialize( self, authorization, - interface_id, _request_auth, _content_type, _headers, @@ -91694,8 +102892,6 @@ 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 # process the query parameters # process the header parameters if authorization is not None: @@ -91720,7 +102916,7 @@ def _v1_lldp_interface_id_summary_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/lldp/{interfaceId}/summary', + resource_path='/v1/policy/route-tag-sets/tag-detail', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -91737,10 +102933,9 @@ def _v1_lldp_interface_id_summary_get_serialize( @validate_call - def v1_lldp_interface_id_vendors_get( + def v1_policy_route_tag_sets_tags_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - interface_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -91753,15 +102948,13 @@ 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 + ) -> V1PolicyRouteTagSetsTagsGetResponse: + """v1_policy_route_tag_sets_tags_get - Get the list LLDP vendors for an interface + Get all the route tags for the enterprise :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 @@ -91784,9 +102977,8 @@ 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_policy_route_tag_sets_tags_get_serialize( authorization=authorization, - interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91794,7 +102986,7 @@ def v1_lldp_interface_id_vendors_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdVendorsGetResponse", + '200': "V1PolicyRouteTagSetsTagsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -91808,10 +103000,9 @@ def v1_lldp_interface_id_vendors_get( @validate_call - def v1_lldp_interface_id_vendors_get_with_http_info( + def v1_policy_route_tag_sets_tags_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)], @@ -91824,15 +103015,13 @@ 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[V1PolicyRouteTagSetsTagsGetResponse]: + """v1_policy_route_tag_sets_tags_get - Get the list LLDP vendors for an interface + Get all the route tags for the enterprise :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 @@ -91855,9 +103044,8 @@ 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_policy_route_tag_sets_tags_get_serialize( authorization=authorization, - interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91865,7 +103053,7 @@ def v1_lldp_interface_id_vendors_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdVendorsGetResponse", + '200': "V1PolicyRouteTagSetsTagsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -91879,10 +103067,9 @@ def v1_lldp_interface_id_vendors_get_with_http_info( @validate_call - def v1_lldp_interface_id_vendors_get_without_preload_content( + def v1_policy_route_tag_sets_tags_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)], @@ -91896,14 +103083,12 @@ 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_policy_route_tag_sets_tags_get - Get the list LLDP vendors for an interface + Get all the route tags for the enterprise :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 @@ -91926,9 +103111,8 @@ 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_policy_route_tag_sets_tags_get_serialize( authorization=authorization, - interface_id=interface_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -91936,7 +103120,7 @@ def v1_lldp_interface_id_vendors_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LldpInterfaceIdVendorsGetResponse", + '200': "V1PolicyRouteTagSetsTagsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -91945,10 +103129,9 @@ def v1_lldp_interface_id_vendors_get_without_preload_content( return response_data.response - def _v1_lldp_interface_id_vendors_get_serialize( + def _v1_policy_route_tag_sets_tags_get_serialize( self, authorization, - interface_id, _request_auth, _content_type, _headers, @@ -91970,8 +103153,6 @@ 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: @@ -91996,7 +103177,7 @@ def _v1_lldp_interface_id_vendors_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/lldp/{interfaceId}/vendors', + resource_path='/v1/policy/route-tag-sets/tags', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -92013,10 +103194,9 @@ def _v1_lldp_interface_id_vendors_get_serialize( @validate_call - def v1_logs_post( + def v1_policy_route_tag_sets_tags_summary_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)], @@ -92029,14 +103209,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 + ) -> V1PolicyRouteTagSetsTagsSummaryGetResponse: + """v1_policy_route_tag_sets_tags_summary_get + Get all the route tags summary for the the enterprise :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 @@ -92059,9 +103238,8 @@ def v1_logs_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_logs_post_serialize( + _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( authorization=authorization, - v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92069,7 +103247,7 @@ def v1_logs_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LogsPostResponse", + '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92083,10 +103261,9 @@ def v1_logs_post( @validate_call - def v1_logs_post_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 ")], - v1_logs_post_request: V1LogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92099,14 +103276,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[V1PolicyRouteTagSetsTagsSummaryGetResponse]: + """v1_policy_route_tag_sets_tags_summary_get + Get all the route tags summary for the the enterprise :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 @@ -92129,9 +103305,8 @@ def v1_logs_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_logs_post_serialize( + _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( authorization=authorization, - v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92139,7 +103314,7 @@ def v1_logs_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LogsPostResponse", + '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92153,10 +103328,9 @@ def v1_logs_post_with_http_info( @validate_call - def v1_logs_post_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 ")], - v1_logs_post_request: V1LogsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92170,13 +103344,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_policy_route_tag_sets_tags_summary_get + Get all the route tags summary for the the enterprise :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 @@ -92199,9 +103372,8 @@ def v1_logs_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_logs_post_serialize( + _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( authorization=authorization, - v1_logs_post_request=v1_logs_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92209,7 +103381,7 @@ def v1_logs_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1LogsPostResponse", + '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92218,10 +103390,9 @@ def v1_logs_post_without_preload_content( return response_data.response - def _v1_logs_post_serialize( + def _v1_policy_route_tag_sets_tags_summary_get_serialize( self, authorization, - v1_logs_post_request, _request_auth, _content_type, _headers, @@ -92249,8 +103420,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` @@ -92261,19 +103430,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] = [ @@ -92281,8 +103437,8 @@ def _v1_logs_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/logs', + method='GET', + resource_path='/v1/policy/route-tag-sets/tags-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -92299,7 +103455,7 @@ def _v1_logs_post_serialize( @validate_call - def v1_msp_managed_enterprise_contract_info_get( + def v1_presharedkey_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -92314,10 +103470,10 @@ def v1_msp_managed_enterprise_contract_info_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1MspManagedEnterpriseContractInfoGetResponse: - """v1_msp_managed_enterprise_contract_info_get + ) -> V1PresharedkeyGetResponse: + """v1_presharedkey_get - Managed enterprises under the MSP with contract and credit allocation details for the requested month + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -92343,7 +103499,7 @@ def v1_msp_managed_enterprise_contract_info_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_msp_managed_enterprise_contract_info_get_serialize( + _param = self._v1_presharedkey_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -92352,7 +103508,7 @@ def v1_msp_managed_enterprise_contract_info_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1MspManagedEnterpriseContractInfoGetResponse", + '200': "V1PresharedkeyGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92366,7 +103522,7 @@ def v1_msp_managed_enterprise_contract_info_get( @validate_call - def v1_msp_managed_enterprise_contract_info_get_with_http_info( + def v1_presharedkey_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -92381,10 +103537,10 @@ def v1_msp_managed_enterprise_contract_info_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[V1MspManagedEnterpriseContractInfoGetResponse]: - """v1_msp_managed_enterprise_contract_info_get + ) -> ApiResponse[V1PresharedkeyGetResponse]: + """v1_presharedkey_get - Managed enterprises under the MSP with contract and credit allocation details for the requested month + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -92410,7 +103566,7 @@ def v1_msp_managed_enterprise_contract_info_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_msp_managed_enterprise_contract_info_get_serialize( + _param = self._v1_presharedkey_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -92419,7 +103575,7 @@ def v1_msp_managed_enterprise_contract_info_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1MspManagedEnterpriseContractInfoGetResponse", + '200': "V1PresharedkeyGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92433,7 +103589,7 @@ def v1_msp_managed_enterprise_contract_info_get_with_http_info( @validate_call - def v1_msp_managed_enterprise_contract_info_get_without_preload_content( + def v1_presharedkey_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -92449,9 +103605,9 @@ def v1_msp_managed_enterprise_contract_info_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_msp_managed_enterprise_contract_info_get + """v1_presharedkey_get - Managed enterprises under the MSP with contract and credit allocation details for the requested month + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -92477,7 +103633,7 @@ def v1_msp_managed_enterprise_contract_info_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_msp_managed_enterprise_contract_info_get_serialize( + _param = self._v1_presharedkey_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -92486,7 +103642,7 @@ def v1_msp_managed_enterprise_contract_info_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1MspManagedEnterpriseContractInfoGetResponse", + '200': "V1PresharedkeyGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92495,7 +103651,7 @@ def v1_msp_managed_enterprise_contract_info_get_without_preload_content( return response_data.response - def _v1_msp_managed_enterprise_contract_info_get_serialize( + def _v1_presharedkey_get_serialize( self, authorization, _request_auth, @@ -92543,7 +103699,7 @@ def _v1_msp_managed_enterprise_contract_info_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/msp/managed-enterprise-contract-info', + resource_path='/v1/presharedkey', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -92560,10 +103716,10 @@ def _v1_msp_managed_enterprise_contract_info_get_serialize( @validate_call - def v1_nat_entries_device_id_get( + def v1_pvif_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + id: Annotated[StrictInt, Field(description="Producer service id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92576,15 +103732,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_pvif_id_delete - Get the NAT entries for the device + Delete a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param id: Producer service 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 @@ -92607,9 +103763,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_pvif_id_delete_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92617,7 +103773,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, @@ -92631,10 +103787,10 @@ def v1_nat_entries_device_id_get( @validate_call - def v1_nat_entries_device_id_get_with_http_info( + def v1_pvif_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + id: Annotated[StrictInt, Field(description="Producer service id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92647,15 +103803,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_pvif_id_delete - Get the NAT entries for the device + Delete a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param id: Producer service 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 @@ -92678,9 +103834,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_pvif_id_delete_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92688,7 +103844,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, @@ -92702,10 +103858,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_pvif_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + id: Annotated[StrictInt, Field(description="Producer service id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92719,14 +103875,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_pvif_id_delete - Get the NAT entries for the device + Delete a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param id: Producer service 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 @@ -92749,9 +103905,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_pvif_id_delete_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92759,7 +103915,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, @@ -92768,10 +103924,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_pvif_id_delete_serialize( self, authorization, - device_id, + id, _request_auth, _content_type, _headers, @@ -92793,8 +103949,8 @@ 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 + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: @@ -92818,8 +103974,8 @@ def _v1_nat_entries_device_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/nat/entries/{deviceId}', + method='DELETE', + resource_path='/v1/pvif/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -92836,10 +103992,10 @@ def _v1_nat_entries_device_id_get_serialize( @validate_call - def v1_nat_utilization_device_id_get( + def v1_pvif_id_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + id: Annotated[StrictInt, Field(description="Producer service id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92852,15 +104008,15 @@ 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 + ) -> V1PvifIdDetailsGetResponse: + """v1_pvif_id_details_get - Get the NAT usage for the device + Get a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param id: Producer service 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 @@ -92883,9 +104039,9 @@ 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_pvif_id_details_get_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92893,7 +104049,7 @@ def v1_nat_utilization_device_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1NatUtilizationDeviceIdGetResponse", + '200': "V1PvifIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92907,10 +104063,10 @@ def v1_nat_utilization_device_id_get( @validate_call - def v1_nat_utilization_device_id_get_with_http_info( + def v1_pvif_id_details_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + id: Annotated[StrictInt, Field(description="Producer service id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92923,15 +104079,15 @@ 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[V1PvifIdDetailsGetResponse]: + """v1_pvif_id_details_get - Get the NAT usage for the device + Get a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param id: Producer service 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 @@ -92954,9 +104110,9 @@ 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_pvif_id_details_get_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -92964,7 +104120,7 @@ def v1_nat_utilization_device_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1NatUtilizationDeviceIdGetResponse", + '200': "V1PvifIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92978,10 +104134,10 @@ def v1_nat_utilization_device_id_get_with_http_info( @validate_call - def v1_nat_utilization_device_id_get_without_preload_content( + def v1_pvif_id_details_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + id: Annotated[StrictInt, Field(description="Producer service id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -92995,14 +104151,14 @@ 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_pvif_id_details_get - Get the NAT usage for the device + Get a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param id: Producer service 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 @@ -93025,9 +104181,9 @@ 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_pvif_id_details_get_serialize( authorization=authorization, - device_id=device_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93035,7 +104191,7 @@ def v1_nat_utilization_device_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1NatUtilizationDeviceIdGetResponse", + '200': "V1PvifIdDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93044,10 +104200,10 @@ def v1_nat_utilization_device_id_get_without_preload_content( return response_data.response - def _v1_nat_utilization_device_id_get_serialize( + def _v1_pvif_id_details_get_serialize( self, authorization, - device_id, + id, _request_auth, _content_type, _headers, @@ -93069,8 +104225,8 @@ 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 + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: @@ -93095,7 +104251,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/pvif/{id}/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -93112,9 +104268,11 @@ def _v1_nat_utilization_device_id_get_serialize( @validate_call - def v1_onboarding_cloudinit_delete( + def v1_pvif_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Producer service id")], + v1_pvif_id_put_request: V1PvifIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93127,13 +104285,17 @@ 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 + ) -> V1PvifIdPutResponse: + """v1_pvif_id_put - Delete the onboarding token + Update a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: Producer service id (required) + :type id: int + :param v1_pvif_id_put_request: (required) + :type v1_pvif_id_put_request: V1PvifIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93156,8 +104318,10 @@ def v1_onboarding_cloudinit_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_delete_serialize( + _param = self._v1_pvif_id_put_serialize( authorization=authorization, + id=id, + v1_pvif_id_put_request=v1_pvif_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93165,7 +104329,7 @@ def v1_onboarding_cloudinit_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1PvifIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -93179,9 +104343,11 @@ def v1_onboarding_cloudinit_delete( @validate_call - def v1_onboarding_cloudinit_delete_with_http_info( + def v1_pvif_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Producer service id")], + v1_pvif_id_put_request: V1PvifIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93194,13 +104360,17 @@ 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[V1PvifIdPutResponse]: + """v1_pvif_id_put - Delete the onboarding token + Update a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: Producer service id (required) + :type id: int + :param v1_pvif_id_put_request: (required) + :type v1_pvif_id_put_request: V1PvifIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93223,8 +104393,10 @@ 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_pvif_id_put_serialize( authorization=authorization, + id=id, + v1_pvif_id_put_request=v1_pvif_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93232,7 +104404,7 @@ def v1_onboarding_cloudinit_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1PvifIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -93246,9 +104418,11 @@ def v1_onboarding_cloudinit_delete_with_http_info( @validate_call - def v1_onboarding_cloudinit_delete_without_preload_content( + def v1_pvif_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictInt, Field(description="Producer service id")], + v1_pvif_id_put_request: V1PvifIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93262,12 +104436,16 @@ 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_pvif_id_put - Delete the onboarding token + Update a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param id: Producer service id (required) + :type id: int + :param v1_pvif_id_put_request: (required) + :type v1_pvif_id_put_request: V1PvifIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93290,8 +104468,10 @@ 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_pvif_id_put_serialize( authorization=authorization, + id=id, + v1_pvif_id_put_request=v1_pvif_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93299,7 +104479,7 @@ def v1_onboarding_cloudinit_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1PvifIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -93308,9 +104488,11 @@ def v1_onboarding_cloudinit_delete_without_preload_content( return response_data.response - def _v1_onboarding_cloudinit_delete_serialize( + def _v1_pvif_id_put_serialize( self, authorization, + id, + v1_pvif_id_put_request, _request_auth, _content_type, _headers, @@ -93332,15 +104514,39 @@ def _v1_onboarding_cloudinit_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_pvif_id_put_request is not None: + _body_params = v1_pvif_id_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] = [ @@ -93348,8 +104554,8 @@ def _v1_onboarding_cloudinit_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/onboarding/cloudinit', + method='PUT', + resource_path='/v1/pvif/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -93366,9 +104572,10 @@ def _v1_onboarding_cloudinit_delete_serialize( @validate_call - def v1_onboarding_cloudinit_get( + def v1_pvif_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_pvif_post_request: V1PvifPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93381,13 +104588,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 + ) -> V1PvifPostResponse: + """v1_pvif_post - Get all the onboarding tokens + Create a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_pvif_post_request: (required) + :type v1_pvif_post_request: V1PvifPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93410,8 +104619,9 @@ def v1_onboarding_cloudinit_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_get_serialize( + _param = self._v1_pvif_post_serialize( authorization=authorization, + v1_pvif_post_request=v1_pvif_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93419,7 +104629,7 @@ def v1_onboarding_cloudinit_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1OnboardingCloudinitGetResponse", + '200': "V1PvifPostResponse", } response_data = self.api_client.call_api( *_param, @@ -93433,9 +104643,10 @@ def v1_onboarding_cloudinit_get( @validate_call - def v1_onboarding_cloudinit_get_with_http_info( + def v1_pvif_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_pvif_post_request: V1PvifPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93448,13 +104659,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[V1PvifPostResponse]: + """v1_pvif_post - Get all the onboarding tokens + Create a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_pvif_post_request: (required) + :type v1_pvif_post_request: V1PvifPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93477,8 +104690,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_pvif_post_serialize( authorization=authorization, + v1_pvif_post_request=v1_pvif_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93486,7 +104700,7 @@ def v1_onboarding_cloudinit_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1OnboardingCloudinitGetResponse", + '200': "V1PvifPostResponse", } response_data = self.api_client.call_api( *_param, @@ -93500,9 +104714,10 @@ def v1_onboarding_cloudinit_get_with_http_info( @validate_call - def v1_onboarding_cloudinit_get_without_preload_content( + def v1_pvif_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_pvif_post_request: V1PvifPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -93516,12 +104731,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_pvif_post - Get all the onboarding tokens + Create a gateway Public VIF service :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_pvif_post_request: (required) + :type v1_pvif_post_request: V1PvifPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -93544,8 +104761,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_pvif_post_serialize( authorization=authorization, + v1_pvif_post_request=v1_pvif_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93553,7 +104771,7 @@ def v1_onboarding_cloudinit_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1OnboardingCloudinitGetResponse", + '200': "V1PvifPostResponse", } response_data = self.api_client.call_api( *_param, @@ -93562,9 +104780,10 @@ def v1_onboarding_cloudinit_get_without_preload_content( return response_data.response - def _v1_onboarding_cloudinit_get_serialize( + def _v1_pvif_post_serialize( self, authorization, + v1_pvif_post_request, _request_auth, _content_type, _headers, @@ -93592,6 +104811,8 @@ def _v1_onboarding_cloudinit_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_pvif_post_request is not None: + _body_params = v1_pvif_post_request # set the HTTP header `Accept` @@ -93602,6 +104823,19 @@ def _v1_onboarding_cloudinit_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] = [ @@ -93609,8 +104843,8 @@ def _v1_onboarding_cloudinit_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/onboarding/cloudinit', + method='POST', + resource_path='/v1/pvif', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -93627,10 +104861,9 @@ def _v1_onboarding_cloudinit_get_serialize( @validate_call - def v1_onboarding_cloudinit_post( + def v1_pvif_summary_get( 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)], @@ -93643,15 +104876,13 @@ 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 + ) -> V1PvifSummaryGetResponse: + """v1_pvif_summary_get - Create a onboarding token + List gateway Public VIF services :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 @@ -93674,9 +104905,8 @@ def v1_onboarding_cloudinit_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_onboarding_cloudinit_post_serialize( + _param = self._v1_pvif_summary_get_serialize( authorization=authorization, - v1_onboarding_cloudinit_post_request=v1_onboarding_cloudinit_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93684,7 +104914,7 @@ def v1_onboarding_cloudinit_post( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1PvifSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93698,10 +104928,9 @@ def v1_onboarding_cloudinit_post( @validate_call - def v1_onboarding_cloudinit_post_with_http_info( + def v1_pvif_summary_get_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)], @@ -93714,15 +104943,13 @@ 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[V1PvifSummaryGetResponse]: + """v1_pvif_summary_get - Create a onboarding token + List gateway Public VIF services :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 @@ -93745,9 +104972,8 @@ 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_pvif_summary_get_serialize( authorization=authorization, - v1_onboarding_cloudinit_post_request=v1_onboarding_cloudinit_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93755,7 +104981,7 @@ def v1_onboarding_cloudinit_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1PvifSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93769,10 +104995,9 @@ def v1_onboarding_cloudinit_post_with_http_info( @validate_call - def v1_onboarding_cloudinit_post_without_preload_content( + def v1_pvif_summary_get_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)], @@ -93786,14 +105011,12 @@ 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_pvif_summary_get - Create a onboarding token + List gateway Public VIF services :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 @@ -93816,9 +105039,8 @@ 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_pvif_summary_get_serialize( authorization=authorization, - v1_onboarding_cloudinit_post_request=v1_onboarding_cloudinit_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -93826,7 +105048,7 @@ def v1_onboarding_cloudinit_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1PvifSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93835,10 +105057,9 @@ def v1_onboarding_cloudinit_post_without_preload_content( return response_data.response - def _v1_onboarding_cloudinit_post_serialize( + def _v1_pvif_summary_get_serialize( self, authorization, - v1_onboarding_cloudinit_post_request, _request_auth, _content_type, _headers, @@ -93866,8 +105087,6 @@ def _v1_onboarding_cloudinit_post_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` @@ -93878,19 +105097,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] = [ @@ -93898,8 +105104,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/pvif/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -93916,7 +105122,7 @@ def _v1_onboarding_cloudinit_post_serialize( @validate_call - def v1_policy_applications_get( + def v1_qos_circuit_profiles_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93931,10 +105137,10 @@ 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 + ) -> V1QosCircuitProfilesGetResponse: + """v1_qos_circuit_profiles_get - Get a list of builtin DPI applications + Returns a list of QoS profiles for circuits with associated queues & attributes :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93960,7 +105166,7 @@ def v1_policy_applications_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_applications_get_serialize( + _param = self._v1_qos_circuit_profiles_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93969,7 +105175,7 @@ def v1_policy_applications_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyApplicationsGetResponse", + '200': "V1QosCircuitProfilesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93983,7 +105189,7 @@ def v1_policy_applications_get( @validate_call - def v1_policy_applications_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[ @@ -93998,10 +105204,10 @@ 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[V1QosCircuitProfilesGetResponse]: + """v1_qos_circuit_profiles_get - Get a list of builtin DPI applications + Returns a list of QoS profiles for circuits with associated queues & attributes :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -94027,7 +105233,7 @@ 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_qos_circuit_profiles_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -94036,7 +105242,7 @@ def v1_policy_applications_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyApplicationsGetResponse", + '200': "V1QosCircuitProfilesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94050,7 +105256,7 @@ def v1_policy_applications_get_with_http_info( @validate_call - def v1_policy_applications_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[ @@ -94066,9 +105272,9 @@ 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_qos_circuit_profiles_get - Get a list of builtin DPI applications + Returns a list of QoS profiles for circuits with associated queues & attributes :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -94094,7 +105300,7 @@ 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_qos_circuit_profiles_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -94103,7 +105309,7 @@ def v1_policy_applications_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyApplicationsGetResponse", + '200': "V1QosCircuitProfilesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94112,7 +105318,7 @@ def v1_policy_applications_get_without_preload_content( return response_data.response - def _v1_policy_applications_get_serialize( + def _v1_qos_circuit_profiles_get_serialize( self, authorization, _request_auth, @@ -94160,7 +105366,7 @@ def _v1_policy_applications_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/policy/applications', + resource_path='/v1/qos/circuit-profiles', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -94177,11 +105383,9 @@ def _v1_policy_applications_get_serialize( @validate_call - def v1_policy_route_tag_sets_id_delete( + def v1_regions_get( 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)], @@ -94194,17 +105398,13 @@ 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 + ) -> V1RegionsGetResponse: + """v1_regions_get - Create a new route-tag scoped to the enterprise + Get regions used for the current 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 @@ -94227,10 +105427,8 @@ 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_regions_get_serialize( authorization=authorization, - id=id, - level=level, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94238,7 +105436,7 @@ def v1_policy_route_tag_sets_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsIdDeleteResponse", + '200': "V1RegionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94252,11 +105450,9 @@ def v1_policy_route_tag_sets_id_delete( @validate_call - def v1_policy_route_tag_sets_id_delete_with_http_info( + def v1_regions_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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94269,17 +105465,13 @@ 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[V1RegionsGetResponse]: + """v1_regions_get - Create a new route-tag scoped to the enterprise + Get regions used for the current 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 @@ -94302,10 +105494,8 @@ 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_regions_get_serialize( authorization=authorization, - id=id, - level=level, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94313,7 +105503,7 @@ def v1_policy_route_tag_sets_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsIdDeleteResponse", + '200': "V1RegionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94327,11 +105517,9 @@ 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_regions_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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94345,16 +105533,12 @@ 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_regions_get - Create a new route-tag scoped to the enterprise + Get regions used for the current 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 @@ -94377,10 +105561,8 @@ 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_regions_get_serialize( authorization=authorization, - id=id, - level=level, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94388,7 +105570,7 @@ def v1_policy_route_tag_sets_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsIdDeleteResponse", + '200': "V1RegionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94397,11 +105579,9 @@ 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_regions_get_serialize( self, authorization, - id, - level, _request_auth, _content_type, _headers, @@ -94423,13 +105603,7 @@ 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 # 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 @@ -94452,8 +105626,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/regions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -94470,10 +105644,11 @@ def _v1_policy_route_tag_sets_id_delete_serialize( @validate_call - def v1_policy_route_tag_sets_post( + def v1_regions_region_id_gateways_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, + region_id: Annotated[StrictInt, Field(description="Graphiant region id")], + storage_provider: Annotated[StrictStr, Field(description="Storage provider; only gateways with a LAN interface for this provider are returned")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94486,15 +105661,17 @@ 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 + ) -> V1RegionsRegionIdGatewaysGetResponse: + """v1_regions_region_id_gateways_get - Create a new route tag scoped to the enterprise + List gateway appliances in a region with at least one LAN interface for the given storage provider :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 region_id: Graphiant region id (required) + :type region_id: int + :param storage_provider: Storage provider; only gateways with a LAN interface for this provider are returned (required) + :type storage_provider: 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 @@ -94517,9 +105694,10 @@ 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_regions_region_id_gateways_get_serialize( authorization=authorization, - v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, + region_id=region_id, + storage_provider=storage_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94527,7 +105705,7 @@ def v1_policy_route_tag_sets_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsPostResponse", + '200': "V1RegionsRegionIdGatewaysGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94541,10 +105719,11 @@ def v1_policy_route_tag_sets_post( @validate_call - def v1_policy_route_tag_sets_post_with_http_info( + def v1_regions_region_id_gateways_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, + region_id: Annotated[StrictInt, Field(description="Graphiant region id")], + storage_provider: Annotated[StrictStr, Field(description="Storage provider; only gateways with a LAN interface for this provider are returned")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94557,15 +105736,17 @@ 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[V1RegionsRegionIdGatewaysGetResponse]: + """v1_regions_region_id_gateways_get - Create a new route tag scoped to the enterprise + List gateway appliances in a region with at least one LAN interface for the given storage provider :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 region_id: Graphiant region id (required) + :type region_id: int + :param storage_provider: Storage provider; only gateways with a LAN interface for this provider are returned (required) + :type storage_provider: 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 @@ -94588,9 +105769,10 @@ 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_regions_region_id_gateways_get_serialize( authorization=authorization, - v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, + region_id=region_id, + storage_provider=storage_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94598,7 +105780,7 @@ def v1_policy_route_tag_sets_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsPostResponse", + '200': "V1RegionsRegionIdGatewaysGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94612,10 +105794,11 @@ def v1_policy_route_tag_sets_post_with_http_info( @validate_call - def v1_policy_route_tag_sets_post_without_preload_content( + def v1_regions_region_id_gateways_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_policy_route_tag_sets_post_request: V1PolicyRouteTagSetsPostRequest, + region_id: Annotated[StrictInt, Field(description="Graphiant region id")], + storage_provider: Annotated[StrictStr, Field(description="Storage provider; only gateways with a LAN interface for this provider are returned")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94629,14 +105812,16 @@ 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_regions_region_id_gateways_get - Create a new route tag scoped to the enterprise + List gateway appliances in a region with at least one LAN interface for the given storage provider :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 region_id: Graphiant region id (required) + :type region_id: int + :param storage_provider: Storage provider; only gateways with a LAN interface for this provider are returned (required) + :type storage_provider: 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 @@ -94659,9 +105844,10 @@ 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_regions_region_id_gateways_get_serialize( authorization=authorization, - v1_policy_route_tag_sets_post_request=v1_policy_route_tag_sets_post_request, + region_id=region_id, + storage_provider=storage_provider, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94669,7 +105855,7 @@ def v1_policy_route_tag_sets_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsPostResponse", + '200': "V1RegionsRegionIdGatewaysGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94678,10 +105864,11 @@ def v1_policy_route_tag_sets_post_without_preload_content( return response_data.response - def _v1_policy_route_tag_sets_post_serialize( + def _v1_regions_region_id_gateways_get_serialize( self, authorization, - v1_policy_route_tag_sets_post_request, + region_id, + storage_provider, _request_auth, _content_type, _headers, @@ -94703,14 +105890,18 @@ def _v1_policy_route_tag_sets_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if region_id is not None: + _path_params['regionId'] = region_id # process the query parameters + if storage_provider is not None: + + _query_params.append(('storageProvider', storage_provider)) + # 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` @@ -94721,19 +105912,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] = [ @@ -94741,8 +105919,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/regions/{regionId}/gateways', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -94759,9 +105937,11 @@ def _v1_policy_route_tag_sets_post_serialize( @validate_call - def v1_policy_route_tag_sets_tag_detail_get( + def v1_search_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)], @@ -94774,13 +105954,16 @@ 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 + ) -> V1SearchGetResponse: + """v1_search_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 @@ -94803,8 +105986,10 @@ 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_search_get_serialize( authorization=authorization, + max_results=max_results, + search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94812,7 +105997,7 @@ def v1_policy_route_tag_sets_tag_detail_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagDetailGetResponse", + '200': "V1SearchGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94826,9 +106011,11 @@ 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_search_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)], @@ -94841,13 +106028,16 @@ 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[V1SearchGetResponse]: + """v1_search_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 @@ -94870,8 +106060,10 @@ 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_search_get_serialize( authorization=authorization, + max_results=max_results, + search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94879,7 +106071,7 @@ def v1_policy_route_tag_sets_tag_detail_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagDetailGetResponse", + '200': "V1SearchGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94893,9 +106085,11 @@ 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_search_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)], @@ -94909,12 +106103,15 @@ 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_search_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 @@ -94937,8 +106134,10 @@ 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_search_get_serialize( authorization=authorization, + max_results=max_results, + search=search, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94946,7 +106145,7 @@ def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagDetailGetResponse", + '200': "V1SearchGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94955,9 +106154,11 @@ 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_search_get_serialize( self, authorization, + max_results, + search, _request_auth, _content_type, _headers, @@ -94980,6 +106181,14 @@ def _v1_policy_route_tag_sets_tag_detail_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 @@ -95003,7 +106212,7 @@ 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', + resource_path='/v1/search', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -95020,9 +106229,10 @@ def _v1_policy_route_tag_sets_tag_detail_get_serialize( @validate_call - def v1_policy_route_tag_sets_tags_get( + def v1_site_details_sitelists_post( 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)], @@ -95035,13 +106245,15 @@ 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 + ) -> V1SiteDetailsSitelistsPostResponse: + """v1_site_details_sitelists_post - Get all the route tags for the enterprise + Get a list of site list references for a site :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 @@ -95064,8 +106276,9 @@ 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_site_details_sitelists_post_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, @@ -95073,7 +106286,7 @@ def v1_policy_route_tag_sets_tags_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsGetResponse", + '200': "V1SiteDetailsSitelistsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -95087,9 +106300,10 @@ def v1_policy_route_tag_sets_tags_get( @validate_call - def v1_policy_route_tag_sets_tags_get_with_http_info( + def v1_site_details_sitelists_post_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)], @@ -95102,13 +106316,15 @@ 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[V1SiteDetailsSitelistsPostResponse]: + """v1_site_details_sitelists_post - Get all the route tags for the enterprise + Get a list of site list references for a site :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 @@ -95131,8 +106347,9 @@ 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_site_details_sitelists_post_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, @@ -95140,7 +106357,7 @@ def v1_policy_route_tag_sets_tags_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsGetResponse", + '200': "V1SiteDetailsSitelistsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -95154,9 +106371,10 @@ 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_site_details_sitelists_post_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)], @@ -95170,12 +106388,14 @@ 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_site_details_sitelists_post - Get all the route tags for the enterprise + Get a list of site list references for a site :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 @@ -95198,8 +106418,9 @@ 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_site_details_sitelists_post_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, @@ -95207,7 +106428,7 @@ def v1_policy_route_tag_sets_tags_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsGetResponse", + '200': "V1SiteDetailsSitelistsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -95216,9 +106437,10 @@ 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_site_details_sitelists_post_serialize( self, authorization, + v1_site_details_sitelists_post_request, _request_auth, _content_type, _headers, @@ -95246,6 +106468,8 @@ def _v1_policy_route_tag_sets_tags_get_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` @@ -95256,6 +106480,19 @@ def _v1_policy_route_tag_sets_tags_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] = [ @@ -95263,8 +106500,8 @@ 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', + method='POST', + resource_path='/v1/site/details/sitelists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -95281,9 +106518,10 @@ def _v1_policy_route_tag_sets_tags_get_serialize( @validate_call - def v1_policy_route_tag_sets_tags_summary_get( + def v1_site_id_details_interfaces_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -95296,13 +106534,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 + ) -> V1SiteIdDetailsInterfacesGetResponse: + """v1_site_id_details_interfaces_get - Get all the route tags summary for the the enterprise + Get a list of a site's interfaces, loopback listed first :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 @@ -95325,8 +106565,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_site_id_details_interfaces_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95334,7 +106575,7 @@ def v1_policy_route_tag_sets_tags_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", + '200': "V1SiteIdDetailsInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95348,9 +106589,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_site_id_details_interfaces_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)], @@ -95363,13 +106605,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[V1SiteIdDetailsInterfacesGetResponse]: + """v1_site_id_details_interfaces_get - Get all the route tags summary for the the enterprise + Get a list of a site's interfaces, loopback listed first :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 @@ -95392,8 +106636,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_site_id_details_interfaces_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95401,7 +106646,7 @@ def v1_policy_route_tag_sets_tags_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", + '200': "V1SiteIdDetailsInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95415,9 +106660,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_site_id_details_interfaces_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)], @@ -95431,12 +106677,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_site_id_details_interfaces_get - Get all the route tags summary for the the enterprise + Get a list of a site's interfaces, loopback listed first :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 @@ -95459,8 +106707,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_site_id_details_interfaces_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95468,7 +106717,7 @@ def v1_policy_route_tag_sets_tags_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", + '200': "V1SiteIdDetailsInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95477,9 +106726,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_site_id_details_interfaces_get_serialize( self, authorization, + id, _request_auth, _content_type, _headers, @@ -95501,6 +106751,8 @@ def _v1_policy_route_tag_sets_tags_summary_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: @@ -95525,7 +106777,7 @@ 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', + resource_path='/v1/site/{id}/details/interfaces', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -95542,7 +106794,7 @@ def _v1_policy_route_tag_sets_tags_summary_get_serialize( @validate_call - def v1_presharedkey_get( + def v1_sites_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95557,10 +106809,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 + ) -> V1SitesDetailsGetResponse: + """v1_sites_details_get - Get all domain categories from the DPI engine + Get a list of sites with aggregated values and site wide status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95586,7 +106838,7 @@ def v1_presharedkey_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_presharedkey_get_serialize( + _param = self._v1_sites_details_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95595,7 +106847,7 @@ def v1_presharedkey_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PresharedkeyGetResponse", + '200': "V1SitesDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95609,7 +106861,7 @@ def v1_presharedkey_get( @validate_call - def v1_presharedkey_get_with_http_info( + def v1_sites_details_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95624,10 +106876,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[V1SitesDetailsGetResponse]: + """v1_sites_details_get - Get all domain categories from the DPI engine + Get a list of sites with aggregated values and site wide status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95653,7 +106905,7 @@ def v1_presharedkey_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_presharedkey_get_serialize( + _param = self._v1_sites_details_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95662,7 +106914,7 @@ def v1_presharedkey_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PresharedkeyGetResponse", + '200': "V1SitesDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95676,7 +106928,7 @@ def v1_presharedkey_get_with_http_info( @validate_call - def v1_presharedkey_get_without_preload_content( + def v1_sites_details_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95692,9 +106944,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_sites_details_get - Get all domain categories from the DPI engine + Get a list of sites with aggregated values and site wide status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95720,7 +106972,7 @@ def v1_presharedkey_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_presharedkey_get_serialize( + _param = self._v1_sites_details_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95729,7 +106981,7 @@ def v1_presharedkey_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PresharedkeyGetResponse", + '200': "V1SitesDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95738,7 +106990,7 @@ def v1_presharedkey_get_without_preload_content( return response_data.response - def _v1_presharedkey_get_serialize( + def _v1_sites_details_get_serialize( self, authorization, _request_auth, @@ -95786,7 +107038,7 @@ def _v1_presharedkey_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/presharedkey', + resource_path='/v1/sites/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -95803,7 +107055,7 @@ def _v1_presharedkey_get_serialize( @validate_call - def v1_qos_circuit_profiles_get( + def v1_sites_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95818,10 +107070,10 @@ 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 + ) -> V1SitesGetResponse: + """v1_sites_get - Returns a list of QoS profiles for circuits with associated queues & attributes + Get sites for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95847,7 +107099,7 @@ def v1_qos_circuit_profiles_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_qos_circuit_profiles_get_serialize( + _param = self._v1_sites_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95856,7 +107108,7 @@ def v1_qos_circuit_profiles_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1QosCircuitProfilesGetResponse", + '200': "V1SitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95870,7 +107122,7 @@ def v1_qos_circuit_profiles_get( @validate_call - def v1_qos_circuit_profiles_get_with_http_info( + def v1_sites_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95885,10 +107137,10 @@ 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[V1SitesGetResponse]: + """v1_sites_get - Returns a list of QoS profiles for circuits with associated queues & attributes + Get sites for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95914,7 +107166,7 @@ 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_sites_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95923,7 +107175,7 @@ def v1_qos_circuit_profiles_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1QosCircuitProfilesGetResponse", + '200': "V1SitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95937,7 +107189,7 @@ def v1_qos_circuit_profiles_get_with_http_info( @validate_call - def v1_qos_circuit_profiles_get_without_preload_content( + def v1_sites_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95953,9 +107205,9 @@ 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_sites_get - Returns a list of QoS profiles for circuits with associated queues & attributes + Get sites for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95981,7 +107233,7 @@ 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_sites_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95990,7 +107242,7 @@ def v1_qos_circuit_profiles_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1QosCircuitProfilesGetResponse", + '200': "V1SitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95999,7 +107251,7 @@ def v1_qos_circuit_profiles_get_without_preload_content( return response_data.response - def _v1_qos_circuit_profiles_get_serialize( + def _v1_sites_get_serialize( self, authorization, _request_auth, @@ -96047,7 +107299,7 @@ def _v1_qos_circuit_profiles_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/qos/circuit-profiles', + resource_path='/v1/sites', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -96064,9 +107316,12 @@ def _v1_qos_circuit_profiles_get_serialize( @validate_call - def v1_regions_get( + def v1_sites_map_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + lan_segment_ids: Optional[List[StrictInt]] = None, + site_ids: Optional[List[StrictInt]] = None, + site_list_ids: Optional[List[StrictInt]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96079,13 +107334,19 @@ 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 + ) -> V1SitesMapDetailsGetResponse: + """v1_sites_map_details_get - Get regions used for the current enterprise + Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param lan_segment_ids: + :type lan_segment_ids: List[int] + :param site_ids: + :type site_ids: List[int] + :param site_list_ids: + :type site_list_ids: List[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 @@ -96108,8 +107369,11 @@ def v1_regions_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_regions_get_serialize( + _param = self._v1_sites_map_details_get_serialize( authorization=authorization, + lan_segment_ids=lan_segment_ids, + site_ids=site_ids, + site_list_ids=site_list_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96117,7 +107381,7 @@ def v1_regions_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1RegionsGetResponse", + '200': "V1SitesMapDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96131,9 +107395,12 @@ def v1_regions_get( @validate_call - def v1_regions_get_with_http_info( + def v1_sites_map_details_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + lan_segment_ids: Optional[List[StrictInt]] = None, + site_ids: Optional[List[StrictInt]] = None, + site_list_ids: Optional[List[StrictInt]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96146,13 +107413,19 @@ 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[V1SitesMapDetailsGetResponse]: + """v1_sites_map_details_get - Get regions used for the current enterprise + Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param lan_segment_ids: + :type lan_segment_ids: List[int] + :param site_ids: + :type site_ids: List[int] + :param site_list_ids: + :type site_list_ids: List[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 @@ -96175,8 +107448,11 @@ def v1_regions_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_regions_get_serialize( + _param = self._v1_sites_map_details_get_serialize( authorization=authorization, + lan_segment_ids=lan_segment_ids, + site_ids=site_ids, + site_list_ids=site_list_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96184,7 +107460,7 @@ def v1_regions_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1RegionsGetResponse", + '200': "V1SitesMapDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96198,9 +107474,12 @@ def v1_regions_get_with_http_info( @validate_call - def v1_regions_get_without_preload_content( + def v1_sites_map_details_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + lan_segment_ids: Optional[List[StrictInt]] = None, + site_ids: Optional[List[StrictInt]] = None, + site_list_ids: Optional[List[StrictInt]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96214,12 +107493,18 @@ 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_sites_map_details_get - Get regions used for the current enterprise + Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param lan_segment_ids: + :type lan_segment_ids: List[int] + :param site_ids: + :type site_ids: List[int] + :param site_list_ids: + :type site_list_ids: List[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 @@ -96242,8 +107527,11 @@ def v1_regions_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_regions_get_serialize( + _param = self._v1_sites_map_details_get_serialize( authorization=authorization, + lan_segment_ids=lan_segment_ids, + site_ids=site_ids, + site_list_ids=site_list_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96251,7 +107539,7 @@ def v1_regions_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1RegionsGetResponse", + '200': "V1SitesMapDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96260,9 +107548,12 @@ def v1_regions_get_without_preload_content( return response_data.response - def _v1_regions_get_serialize( + def _v1_sites_map_details_get_serialize( self, authorization, + lan_segment_ids, + site_ids, + site_list_ids, _request_auth, _content_type, _headers, @@ -96272,6 +107563,9 @@ def _v1_regions_get_serialize( _host = None _collection_formats: Dict[str, str] = { + 'lanSegmentIds': 'multi', + 'siteIds': 'multi', + 'siteListIds': 'multi', } _path_params: Dict[str, str] = {} @@ -96285,6 +107579,18 @@ def _v1_regions_get_serialize( # process the path parameters # process the query parameters + if lan_segment_ids is not None: + + _query_params.append(('lanSegmentIds', lan_segment_ids)) + + if site_ids is not None: + + _query_params.append(('siteIds', site_ids)) + + if site_list_ids is not None: + + _query_params.append(('siteListIds', site_list_ids)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -96308,7 +107614,7 @@ def _v1_regions_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/regions', + resource_path='/v1/sites/map/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -96325,11 +107631,10 @@ def _v1_regions_get_serialize( @validate_call - def v1_search_get( + def v1_sites_post( 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, + v1_sites_post_request: V1SitesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96342,16 +107647,15 @@ 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 + ) -> V1SitesPostResponse: + """v1_sites_post + Create an enterprise site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param max_results: - :type max_results: int - :param search: - :type search: 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 @@ -96374,10 +107678,9 @@ def v1_search_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_search_get_serialize( + _param = self._v1_sites_post_serialize( authorization=authorization, - max_results=max_results, - search=search, + v1_sites_post_request=v1_sites_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96385,7 +107688,7 @@ def v1_search_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SearchGetResponse", + '200': "V1SitesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -96399,11 +107702,10 @@ def v1_search_get( @validate_call - def v1_search_get_with_http_info( + def v1_sites_post_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, + v1_sites_post_request: V1SitesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96416,16 +107718,15 @@ 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[V1SitesPostResponse]: + """v1_sites_post + Create an enterprise site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param max_results: - :type max_results: int - :param search: - :type search: 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 @@ -96448,10 +107749,9 @@ def v1_search_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_search_get_serialize( + _param = self._v1_sites_post_serialize( authorization=authorization, - max_results=max_results, - search=search, + v1_sites_post_request=v1_sites_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96459,7 +107759,7 @@ def v1_search_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SearchGetResponse", + '200': "V1SitesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -96473,11 +107773,10 @@ def v1_search_get_with_http_info( @validate_call - def v1_search_get_without_preload_content( + def v1_sites_post_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, + v1_sites_post_request: V1SitesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96491,15 +107790,14 @@ 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_sites_post + Create an enterprise site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param max_results: - :type max_results: int - :param search: - :type search: 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 @@ -96522,10 +107820,9 @@ def v1_search_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_search_get_serialize( + _param = self._v1_sites_post_serialize( authorization=authorization, - max_results=max_results, - search=search, + v1_sites_post_request=v1_sites_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96533,7 +107830,7 @@ def v1_search_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SearchGetResponse", + '200': "V1SitesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -96542,11 +107839,10 @@ def v1_search_get_without_preload_content( return response_data.response - def _v1_search_get_serialize( + def _v1_sites_post_serialize( self, authorization, - max_results, - search, + v1_sites_post_request, _request_auth, _content_type, _headers, @@ -96569,19 +107865,13 @@ 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 # 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` @@ -96592,6 +107882,19 @@ def _v1_search_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] = [ @@ -96599,8 +107902,8 @@ def _v1_search_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/search', + method='POST', + resource_path='/v1/sites', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -96617,10 +107920,10 @@ def _v1_search_get_serialize( @validate_call - def v1_site_details_sitelists_post( + def v1_sites_site_id_circuits_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96633,15 +107936,15 @@ 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 + ) -> V1SitesSiteIdCircuitsGetResponse: + """v1_sites_site_id_circuits_get - Get a list of site list references for a site + Get Circuits for the site :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 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 @@ -96664,9 +107967,9 @@ def v1_site_details_sitelists_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_site_details_sitelists_post_serialize( + _param = self._v1_sites_site_id_circuits_get_serialize( authorization=authorization, - v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96674,7 +107977,7 @@ def v1_site_details_sitelists_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteDetailsSitelistsPostResponse", + '200': "V1SitesSiteIdCircuitsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96688,10 +107991,10 @@ def v1_site_details_sitelists_post( @validate_call - def v1_site_details_sitelists_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_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96704,15 +108007,15 @@ 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[V1SitesSiteIdCircuitsGetResponse]: + """v1_sites_site_id_circuits_get - Get a list of site list references for a site + Get Circuits for the site :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 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 @@ -96735,9 +108038,9 @@ 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_sites_site_id_circuits_get_serialize( authorization=authorization, - v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96745,7 +108048,7 @@ def v1_site_details_sitelists_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteDetailsSitelistsPostResponse", + '200': "V1SitesSiteIdCircuitsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96759,10 +108062,10 @@ def v1_site_details_sitelists_post_with_http_info( @validate_call - def v1_site_details_sitelists_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_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96776,14 +108079,14 @@ 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_sites_site_id_circuits_get - Get a list of site list references for a site + Get Circuits for the site :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 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 @@ -96806,9 +108109,9 @@ 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_sites_site_id_circuits_get_serialize( authorization=authorization, - v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96816,7 +108119,7 @@ def v1_site_details_sitelists_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteDetailsSitelistsPostResponse", + '200': "V1SitesSiteIdCircuitsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -96825,10 +108128,10 @@ def v1_site_details_sitelists_post_without_preload_content( return response_data.response - def _v1_site_details_sitelists_post_serialize( + def _v1_sites_site_id_circuits_get_serialize( self, authorization, - v1_site_details_sitelists_post_request, + site_id, _request_auth, _content_type, _headers, @@ -96850,14 +108153,14 @@ def _v1_site_details_sitelists_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_site_details_sitelists_post_request is not None: - _body_params = v1_site_details_sitelists_post_request # set the HTTP header `Accept` @@ -96868,19 +108171,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] = [ @@ -96888,8 +108178,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/sites/{siteId}/circuits', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -96906,10 +108196,10 @@ def _v1_site_details_sitelists_post_serialize( @validate_call - def v1_site_id_details_interfaces_get( + def v1_sites_site_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96922,15 +108212,15 @@ 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 + ) -> None: + """v1_sites_site_id_delete - Get a list of a site's interfaces, loopback listed first + Delete a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :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 @@ -96953,9 +108243,9 @@ 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_sites_site_id_delete_serialize( authorization=authorization, - id=id, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -96963,7 +108253,7 @@ def v1_site_id_details_interfaces_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteIdDetailsInterfacesGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -96977,10 +108267,10 @@ def v1_site_id_details_interfaces_get( @validate_call - def v1_site_id_details_interfaces_get_with_http_info( + def v1_sites_site_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -96993,15 +108283,15 @@ 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[None]: + """v1_sites_site_id_delete - Get a list of a site's interfaces, loopback listed first + Delete a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :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 @@ -97024,9 +108314,9 @@ 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_sites_site_id_delete_serialize( authorization=authorization, - id=id, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97034,7 +108324,7 @@ def v1_site_id_details_interfaces_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteIdDetailsInterfacesGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -97048,10 +108338,10 @@ def v1_site_id_details_interfaces_get_with_http_info( @validate_call - def v1_site_id_details_interfaces_get_without_preload_content( + def v1_sites_site_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + site_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -97065,14 +108355,14 @@ 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_sites_site_id_delete - Get a list of a site's interfaces, loopback listed first + Delete a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :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 @@ -97095,9 +108385,9 @@ 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_sites_site_id_delete_serialize( authorization=authorization, - id=id, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97105,7 +108395,7 @@ def v1_site_id_details_interfaces_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteIdDetailsInterfacesGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -97114,10 +108404,10 @@ def v1_site_id_details_interfaces_get_without_preload_content( return response_data.response - def _v1_site_id_details_interfaces_get_serialize( + def _v1_sites_site_id_delete_serialize( self, authorization, - id, + site_id, _request_auth, _content_type, _headers, @@ -97139,8 +108429,8 @@ 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 + if site_id is not None: + _path_params['siteId'] = site_id # process the query parameters # process the header parameters if authorization is not None: @@ -97149,13 +108439,6 @@ def _v1_site_id_details_interfaces_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 @@ -97164,8 +108447,8 @@ def _v1_site_id_details_interfaces_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/site/{id}/details/interfaces', + method='DELETE', + resource_path='/v1/sites/{siteId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -97182,9 +108465,10 @@ def _v1_site_id_details_interfaces_get_serialize( @validate_call - def v1_sites_details_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)], @@ -97197,13 +108481,15 @@ 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 + ) -> V1SitesSiteIdDevicesGetResponse: + """v1_sites_site_id_devices_get - Get a list of sites with aggregated values and site wide status + 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 @@ -97226,8 +108512,9 @@ def v1_sites_details_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_details_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, @@ -97235,7 +108522,7 @@ def v1_sites_details_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesDetailsGetResponse", + '200': "V1SitesSiteIdDevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -97249,9 +108536,10 @@ def v1_sites_details_get( @validate_call - def v1_sites_details_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)], @@ -97264,13 +108552,15 @@ 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[V1SitesSiteIdDevicesGetResponse]: + """v1_sites_site_id_devices_get - Get a list of sites with aggregated values and site wide status + 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 @@ -97293,8 +108583,9 @@ 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_sites_site_id_devices_get_serialize( authorization=authorization, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97302,7 +108593,7 @@ def v1_sites_details_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesDetailsGetResponse", + '200': "V1SitesSiteIdDevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -97316,9 +108607,10 @@ def v1_sites_details_get_with_http_info( @validate_call - def v1_sites_details_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)], @@ -97332,12 +108624,14 @@ 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_sites_site_id_devices_get - Get a list of sites with aggregated values and site wide status + 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 @@ -97360,8 +108654,9 @@ 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_sites_site_id_devices_get_serialize( authorization=authorization, + site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97369,7 +108664,7 @@ def v1_sites_details_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesDetailsGetResponse", + '200': "V1SitesSiteIdDevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -97378,9 +108673,10 @@ def v1_sites_details_get_without_preload_content( return response_data.response - def _v1_sites_details_get_serialize( + def _v1_sites_site_id_devices_get_serialize( self, authorization, + site_id, _request_auth, _content_type, _headers, @@ -97402,6 +108698,8 @@ def _v1_sites_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 # process the header parameters if authorization is not None: @@ -97426,7 +108724,7 @@ def _v1_sites_details_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/sites/details', + resource_path='/v1/sites/{siteId}/devices', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -97443,9 +108741,11 @@ def _v1_sites_details_get_serialize( @validate_call - def v1_sites_get( + def v1_sites_site_id_post( 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)], @@ -97458,13 +108758,17 @@ 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 + ) -> V1SitesSiteIdPostResponse: + """v1_sites_site_id_post - Get sites for the current enterprise + Update a site :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 @@ -97487,8 +108791,10 @@ def v1_sites_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_get_serialize( + _param = self._v1_sites_site_id_post_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, @@ -97496,7 +108802,7 @@ def v1_sites_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesGetResponse", + '200': "V1SitesSiteIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -97510,9 +108816,11 @@ def v1_sites_get( @validate_call - def v1_sites_get_with_http_info( + def v1_sites_site_id_post_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)], @@ -97525,13 +108833,17 @@ 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[V1SitesSiteIdPostResponse]: + """v1_sites_site_id_post - Get sites for the current enterprise + Update a site :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 @@ -97554,8 +108866,10 @@ def v1_sites_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_get_serialize( + _param = self._v1_sites_site_id_post_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, @@ -97563,7 +108877,7 @@ def v1_sites_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesGetResponse", + '200': "V1SitesSiteIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -97577,9 +108891,11 @@ def v1_sites_get_with_http_info( @validate_call - def v1_sites_get_without_preload_content( + def v1_sites_site_id_post_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)], @@ -97593,12 +108909,16 @@ 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_sites_site_id_post - Get sites for the current enterprise + Update a site :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 @@ -97621,8 +108941,10 @@ def v1_sites_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_get_serialize( + _param = self._v1_sites_site_id_post_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, @@ -97630,7 +108952,7 @@ def v1_sites_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesGetResponse", + '200': "V1SitesSiteIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -97639,9 +108961,11 @@ def v1_sites_get_without_preload_content( return response_data.response - def _v1_sites_get_serialize( + def _v1_sites_site_id_post_serialize( self, authorization, + site_id, + v1_sites_site_id_post_request, _request_auth, _content_type, _headers, @@ -97663,12 +108987,16 @@ def _v1_sites_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_sites_site_id_post_request is not None: + _body_params = v1_sites_site_id_post_request # set the HTTP header `Accept` @@ -97679,6 +109007,19 @@ def _v1_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] = [ @@ -97686,8 +109027,8 @@ def _v1_sites_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/sites', + method='POST', + resource_path='/v1/sites/{siteId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -97704,12 +109045,9 @@ def _v1_sites_get_serialize( @validate_call - def v1_sites_map_details_get( + def v1_software_auto_upgrade_default_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - lan_segment_ids: Optional[List[StrictInt]] = None, - site_ids: Optional[List[StrictInt]] = None, - site_list_ids: Optional[List[StrictInt]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -97722,19 +109060,12 @@ def v1_sites_map_details_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SitesMapDetailsGetResponse: - """v1_sites_map_details_get + ) -> V1SoftwareAutoUpgradeDefaultGetResponse: + """v1_software_auto_upgrade_default_get - Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param lan_segment_ids: - :type lan_segment_ids: List[int] - :param site_ids: - :type site_ids: List[int] - :param site_list_ids: - :type site_list_ids: List[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 @@ -97757,11 +109088,8 @@ def v1_sites_map_details_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_map_details_get_serialize( + _param = self._v1_software_auto_upgrade_default_get_serialize( authorization=authorization, - lan_segment_ids=lan_segment_ids, - site_ids=site_ids, - site_list_ids=site_list_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97769,7 +109097,7 @@ def v1_sites_map_details_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesMapDetailsGetResponse", + '200': "V1SoftwareAutoUpgradeDefaultGetResponse", } response_data = self.api_client.call_api( *_param, @@ -97783,12 +109111,9 @@ def v1_sites_map_details_get( @validate_call - def v1_sites_map_details_get_with_http_info( + def v1_software_auto_upgrade_default_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - lan_segment_ids: Optional[List[StrictInt]] = None, - site_ids: Optional[List[StrictInt]] = None, - site_list_ids: Optional[List[StrictInt]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -97801,19 +109126,12 @@ def v1_sites_map_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[V1SitesMapDetailsGetResponse]: - """v1_sites_map_details_get + ) -> ApiResponse[V1SoftwareAutoUpgradeDefaultGetResponse]: + """v1_software_auto_upgrade_default_get - Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param lan_segment_ids: - :type lan_segment_ids: List[int] - :param site_ids: - :type site_ids: List[int] - :param site_list_ids: - :type site_list_ids: List[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 @@ -97836,11 +109154,8 @@ def v1_sites_map_details_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_map_details_get_serialize( + _param = self._v1_software_auto_upgrade_default_get_serialize( authorization=authorization, - lan_segment_ids=lan_segment_ids, - site_ids=site_ids, - site_list_ids=site_list_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97848,7 +109163,7 @@ def v1_sites_map_details_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesMapDetailsGetResponse", + '200': "V1SoftwareAutoUpgradeDefaultGetResponse", } response_data = self.api_client.call_api( *_param, @@ -97862,12 +109177,9 @@ def v1_sites_map_details_get_with_http_info( @validate_call - def v1_sites_map_details_get_without_preload_content( + def v1_software_auto_upgrade_default_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - lan_segment_ids: Optional[List[StrictInt]] = None, - site_ids: Optional[List[StrictInt]] = None, - site_list_ids: Optional[List[StrictInt]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -97881,18 +109193,11 @@ def v1_sites_map_details_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_sites_map_details_get + """v1_software_auto_upgrade_default_get - Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param lan_segment_ids: - :type lan_segment_ids: List[int] - :param site_ids: - :type site_ids: List[int] - :param site_list_ids: - :type site_list_ids: List[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 @@ -97915,11 +109220,8 @@ def v1_sites_map_details_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_map_details_get_serialize( + _param = self._v1_software_auto_upgrade_default_get_serialize( authorization=authorization, - lan_segment_ids=lan_segment_ids, - site_ids=site_ids, - site_list_ids=site_list_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -97927,7 +109229,7 @@ def v1_sites_map_details_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesMapDetailsGetResponse", + '200': "V1SoftwareAutoUpgradeDefaultGetResponse", } response_data = self.api_client.call_api( *_param, @@ -97936,12 +109238,9 @@ def v1_sites_map_details_get_without_preload_content( return response_data.response - def _v1_sites_map_details_get_serialize( + def _v1_software_auto_upgrade_default_get_serialize( self, authorization, - lan_segment_ids, - site_ids, - site_list_ids, _request_auth, _content_type, _headers, @@ -97951,9 +109250,6 @@ def _v1_sites_map_details_get_serialize( _host = None _collection_formats: Dict[str, str] = { - 'lanSegmentIds': 'multi', - 'siteIds': 'multi', - 'siteListIds': 'multi', } _path_params: Dict[str, str] = {} @@ -97967,18 +109263,6 @@ def _v1_sites_map_details_get_serialize( # process the path parameters # process the query parameters - if lan_segment_ids is not None: - - _query_params.append(('lanSegmentIds', lan_segment_ids)) - - if site_ids is not None: - - _query_params.append(('siteIds', site_ids)) - - if site_list_ids is not None: - - _query_params.append(('siteListIds', site_list_ids)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -98002,7 +109286,7 @@ def _v1_sites_map_details_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/sites/map/details', + resource_path='/v1/software/auto-upgrade/default', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -98019,10 +109303,10 @@ def _v1_sites_map_details_get_serialize( @validate_call - def v1_sites_post( + def v1_software_auto_upgrade_default_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_sites_post_request: V1SitesPostRequest, + v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98035,15 +109319,14 @@ 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 + ) -> None: + """v1_software_auto_upgrade_default_put - Create an enterprise site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_sites_post_request: (required) - :type v1_sites_post_request: V1SitesPostRequest + :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 @@ -98066,9 +109349,9 @@ def v1_sites_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_post_serialize( + _param = self._v1_software_auto_upgrade_default_put_serialize( authorization=authorization, - v1_sites_post_request=v1_sites_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, @@ -98076,7 +109359,7 @@ def v1_sites_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -98090,10 +109373,10 @@ def v1_sites_post( @validate_call - def v1_sites_post_with_http_info( + def v1_software_auto_upgrade_default_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_sites_post_request: V1SitesPostRequest, + v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98106,15 +109389,14 @@ 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[None]: + """v1_software_auto_upgrade_default_put - Create an enterprise site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_sites_post_request: (required) - :type v1_sites_post_request: V1SitesPostRequest + :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 @@ -98137,9 +109419,9 @@ def v1_sites_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_post_serialize( + _param = self._v1_software_auto_upgrade_default_put_serialize( authorization=authorization, - v1_sites_post_request=v1_sites_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, @@ -98147,7 +109429,7 @@ def v1_sites_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -98161,10 +109443,10 @@ def v1_sites_post_with_http_info( @validate_call - def v1_sites_post_without_preload_content( + def v1_software_auto_upgrade_default_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_sites_post_request: V1SitesPostRequest, + v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98178,14 +109460,13 @@ 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_software_auto_upgrade_default_put - Create an enterprise site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_sites_post_request: (required) - :type v1_sites_post_request: V1SitesPostRequest + :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 @@ -98208,9 +109489,9 @@ def v1_sites_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_post_serialize( + _param = self._v1_software_auto_upgrade_default_put_serialize( authorization=authorization, - v1_sites_post_request=v1_sites_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, @@ -98218,7 +109499,7 @@ def v1_sites_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -98227,10 +109508,10 @@ def v1_sites_post_without_preload_content( return response_data.response - def _v1_sites_post_serialize( + def _v1_software_auto_upgrade_default_put_serialize( self, authorization, - v1_sites_post_request, + v1_software_auto_upgrade_default_put_request, _request_auth, _content_type, _headers, @@ -98258,17 +109539,10 @@ 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 + 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: @@ -98290,8 +109564,8 @@ def _v1_sites_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/sites', + method='PUT', + resource_path='/v1/software/auto-upgrade/default', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -98308,10 +109582,10 @@ def _v1_sites_post_serialize( @validate_call - def v1_sites_site_id_circuits_get( + def v1_software_gcsrelease_upload_notes_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98324,15 +109598,14 @@ 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 + ) -> object: + """v1_software_gcsrelease_upload_notes_post - Get Circuits for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :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 @@ -98355,9 +109628,9 @@ 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_software_gcsrelease_upload_notes_post_serialize( authorization=authorization, - site_id=site_id, + v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98365,7 +109638,7 @@ def v1_sites_site_id_circuits_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdCircuitsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -98379,10 +109652,10 @@ def v1_sites_site_id_circuits_get( @validate_call - def v1_sites_site_id_circuits_get_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_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98395,15 +109668,14 @@ 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[object]: + """v1_software_gcsrelease_upload_notes_post - Get Circuits for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :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 @@ -98426,9 +109698,9 @@ 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_software_gcsrelease_upload_notes_post_serialize( authorization=authorization, - site_id=site_id, + v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98436,7 +109708,7 @@ def v1_sites_site_id_circuits_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdCircuitsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -98450,10 +109722,10 @@ def v1_sites_site_id_circuits_get_with_http_info( @validate_call - def v1_sites_site_id_circuits_get_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_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -98467,14 +109739,13 @@ 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_software_gcsrelease_upload_notes_post - Get Circuits for the site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :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 @@ -98497,9 +109768,9 @@ 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_software_gcsrelease_upload_notes_post_serialize( authorization=authorization, - site_id=site_id, + v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98507,7 +109778,7 @@ def v1_sites_site_id_circuits_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdCircuitsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -98516,10 +109787,10 @@ def v1_sites_site_id_circuits_get_without_preload_content( return response_data.response - def _v1_sites_site_id_circuits_get_serialize( + def _v1_software_gcsrelease_upload_notes_post_serialize( self, authorization, - site_id, + v1_software_gcsrelease_upload_notes_post_request, _request_auth, _content_type, _headers, @@ -98541,14 +109812,14 @@ 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 # 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` @@ -98559,6 +109830,19 @@ def _v1_sites_site_id_circuits_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] = [ @@ -98566,8 +109850,8 @@ def _v1_sites_site_id_circuits_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/sites/{siteId}/circuits', + method='POST', + resource_path='/v1/software/gcsrelease/upload/notes', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -98584,10 +109868,11 @@ def _v1_sites_site_id_circuits_get_serialize( @validate_call - def v1_sites_site_id_delete( + def v1_software_releases_download_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + 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)], @@ -98600,15 +109885,16 @@ 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 + ) -> V1SoftwareReleasesDownloadGetResponse: + """v1_software_releases_download_get - Delete a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :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 @@ -98631,9 +109917,10 @@ def v1_sites_site_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_site_id_delete_serialize( + _param = self._v1_software_releases_download_get_serialize( authorization=authorization, - site_id=site_id, + image_ext=image_ext, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98641,7 +109928,7 @@ def v1_sites_site_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SoftwareReleasesDownloadGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98655,10 +109942,11 @@ def v1_sites_site_id_delete( @validate_call - def v1_sites_site_id_delete_with_http_info( + def v1_software_releases_download_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + 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)], @@ -98671,15 +109959,16 @@ 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[V1SoftwareReleasesDownloadGetResponse]: + """v1_software_releases_download_get - Delete a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :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 @@ -98702,9 +109991,10 @@ 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_software_releases_download_get_serialize( authorization=authorization, - site_id=site_id, + image_ext=image_ext, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98712,7 +110002,7 @@ def v1_sites_site_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SoftwareReleasesDownloadGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98726,10 +110016,11 @@ def v1_sites_site_id_delete_with_http_info( @validate_call - def v1_sites_site_id_delete_without_preload_content( + def v1_software_releases_download_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + 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)], @@ -98743,14 +110034,15 @@ 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_software_releases_download_get - Delete a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :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 @@ -98773,9 +110065,10 @@ 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_software_releases_download_get_serialize( authorization=authorization, - site_id=site_id, + image_ext=image_ext, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98783,7 +110076,7 @@ def v1_sites_site_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SoftwareReleasesDownloadGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98792,10 +110085,11 @@ def v1_sites_site_id_delete_without_preload_content( return response_data.response - def _v1_sites_site_id_delete_serialize( + def _v1_software_releases_download_get_serialize( self, authorization, - site_id, + image_ext, + version, _request_auth, _content_type, _headers, @@ -98817,9 +110111,15 @@ 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 + 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 @@ -98827,6 +110127,13 @@ def _v1_sites_site_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 @@ -98835,8 +110142,8 @@ def _v1_sites_site_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/sites/{siteId}', + method='GET', + resource_path='/v1/software/releases/download', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -98853,10 +110160,9 @@ def _v1_sites_site_id_delete_serialize( @validate_call - def v1_sites_site_id_devices_get( + def v1_software_releases_summary_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)], @@ -98869,15 +110175,12 @@ 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 + ) -> V1SoftwareReleasesSummaryGetResponse: + """v1_software_releases_summary_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 @@ -98900,9 +110203,8 @@ 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_software_releases_summary_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98910,7 +110212,7 @@ def v1_sites_site_id_devices_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdDevicesGetResponse", + '200': "V1SoftwareReleasesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98924,10 +110226,9 @@ def v1_sites_site_id_devices_get( @validate_call - def v1_sites_site_id_devices_get_with_http_info( + def v1_software_releases_summary_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)], @@ -98940,15 +110241,12 @@ 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[V1SoftwareReleasesSummaryGetResponse]: + """v1_software_releases_summary_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 @@ -98971,9 +110269,8 @@ 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_software_releases_summary_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -98981,7 +110278,7 @@ def v1_sites_site_id_devices_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdDevicesGetResponse", + '200': "V1SoftwareReleasesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -98995,10 +110292,9 @@ def v1_sites_site_id_devices_get_with_http_info( @validate_call - def v1_sites_site_id_devices_get_without_preload_content( + def v1_software_releases_summary_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)], @@ -99012,14 +110308,11 @@ 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_software_releases_summary_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 @@ -99042,9 +110335,8 @@ 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_software_releases_summary_get_serialize( authorization=authorization, - site_id=site_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99052,7 +110344,7 @@ def v1_sites_site_id_devices_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdDevicesGetResponse", + '200': "V1SoftwareReleasesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -99061,10 +110353,9 @@ def v1_sites_site_id_devices_get_without_preload_content( return response_data.response - def _v1_sites_site_id_devices_get_serialize( + def _v1_software_releases_summary_get_serialize( self, authorization, - site_id, _request_auth, _content_type, _headers, @@ -99086,8 +110377,6 @@ 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 # process the query parameters # process the header parameters if authorization is not None: @@ -99112,7 +110401,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/software/releases/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -99129,11 +110418,9 @@ def _v1_sites_site_id_devices_get_serialize( @validate_call - def v1_sites_site_id_post( + def v1_software_rollouts_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)], @@ -99146,17 +110433,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 + ) -> V1SoftwareRolloutsGetResponse: + """v1_software_rollouts_get - Update a site + Returns all the configured upgrade rollouts :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 @@ -99179,10 +110462,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_software_rollouts_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, @@ -99190,7 +110471,7 @@ def v1_sites_site_id_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdPostResponse", + '200': "V1SoftwareRolloutsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -99204,11 +110485,9 @@ def v1_sites_site_id_post( @validate_call - def v1_sites_site_id_post_with_http_info( + def v1_software_rollouts_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)], @@ -99221,17 +110500,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[V1SoftwareRolloutsGetResponse]: + """v1_software_rollouts_get - Update a site + Returns all the configured upgrade rollouts :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 @@ -99254,10 +110529,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_software_rollouts_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, @@ -99265,7 +110538,7 @@ def v1_sites_site_id_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdPostResponse", + '200': "V1SoftwareRolloutsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -99279,11 +110552,9 @@ def v1_sites_site_id_post_with_http_info( @validate_call - def v1_sites_site_id_post_without_preload_content( + def v1_software_rollouts_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)], @@ -99297,16 +110568,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_software_rollouts_get - Update a site + Returns all the configured upgrade rollouts :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 @@ -99329,10 +110596,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_software_rollouts_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, @@ -99340,7 +110605,7 @@ def v1_sites_site_id_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesSiteIdPostResponse", + '200': "V1SoftwareRolloutsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -99349,11 +110614,9 @@ def v1_sites_site_id_post_without_preload_content( return response_data.response - def _v1_sites_site_id_post_serialize( + def _v1_software_rollouts_get_serialize( self, authorization, - site_id, - v1_sites_site_id_post_request, _request_auth, _content_type, _headers, @@ -99375,16 +110638,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` @@ -99395,19 +110654,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] = [ @@ -99415,8 +110661,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/software/rollouts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -99433,9 +110679,10 @@ def _v1_sites_site_id_post_serialize( @validate_call - def v1_software_auto_upgrade_default_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)], @@ -99448,12 +110695,15 @@ 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 + ) -> 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 @@ -99476,8 +110726,9 @@ 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_software_rollouts_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99485,7 +110736,7 @@ def v1_software_auto_upgrade_default_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareAutoUpgradeDefaultGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -99499,9 +110750,10 @@ def v1_software_auto_upgrade_default_get( @validate_call - def v1_software_auto_upgrade_default_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)], @@ -99514,12 +110766,15 @@ 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[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 @@ -99542,8 +110797,9 @@ 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_software_rollouts_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99551,7 +110807,7 @@ def v1_software_auto_upgrade_default_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareAutoUpgradeDefaultGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -99565,9 +110821,10 @@ def v1_software_auto_upgrade_default_get_with_http_info( @validate_call - def v1_software_auto_upgrade_default_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)], @@ -99581,11 +110838,14 @@ 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_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 @@ -99608,8 +110868,9 @@ 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_software_rollouts_id_delete_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99617,7 +110878,7 @@ def v1_software_auto_upgrade_default_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareAutoUpgradeDefaultGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -99626,9 +110887,10 @@ def v1_software_auto_upgrade_default_get_without_preload_content( return response_data.response - def _v1_software_auto_upgrade_default_get_serialize( + def _v1_software_rollouts_id_delete_serialize( self, authorization, + id, _request_auth, _content_type, _headers, @@ -99650,6 +110912,8 @@ def _v1_software_auto_upgrade_default_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: @@ -99673,8 +110937,8 @@ def _v1_software_auto_upgrade_default_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/software/auto-upgrade/default', + method='DELETE', + resource_path='/v1/software/rollouts/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -99691,10 +110955,10 @@ def _v1_software_auto_upgrade_default_get_serialize( @validate_call - def v1_software_auto_upgrade_default_put( + def v1_software_rollouts_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, + id: Annotated[StrictInt, Field(description="Rollout identifier to fetch.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99707,14 +110971,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 + ) -> V1SoftwareRolloutsIdGetResponse: + """v1_software_rollouts_id_get + Returns details about given upgrade rollout :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 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 @@ -99737,9 +111002,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_software_rollouts_id_get_serialize( authorization=authorization, - v1_software_auto_upgrade_default_put_request=v1_software_auto_upgrade_default_put_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99747,7 +111012,7 @@ def v1_software_auto_upgrade_default_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SoftwareRolloutsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -99761,10 +111026,10 @@ def v1_software_auto_upgrade_default_put( @validate_call - def v1_software_auto_upgrade_default_put_with_http_info( + def v1_software_rollouts_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, + id: Annotated[StrictInt, Field(description="Rollout identifier to fetch.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99777,14 +111042,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[V1SoftwareRolloutsIdGetResponse]: + """v1_software_rollouts_id_get + Returns details about given upgrade rollout :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 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 @@ -99807,9 +111073,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_software_rollouts_id_get_serialize( authorization=authorization, - v1_software_auto_upgrade_default_put_request=v1_software_auto_upgrade_default_put_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99817,7 +111083,7 @@ def v1_software_auto_upgrade_default_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SoftwareRolloutsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -99831,10 +111097,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_software_rollouts_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_auto_upgrade_default_put_request: V1SoftwareAutoUpgradeDefaultPutRequest, + id: Annotated[StrictInt, Field(description="Rollout identifier to fetch.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99848,13 +111114,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_software_rollouts_id_get + Returns details about given upgrade rollout :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 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 @@ -99877,9 +111144,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_software_rollouts_id_get_serialize( authorization=authorization, - v1_software_auto_upgrade_default_put_request=v1_software_auto_upgrade_default_put_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -99887,7 +111154,7 @@ def v1_software_auto_upgrade_default_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1SoftwareRolloutsIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -99896,10 +111163,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_software_rollouts_id_get_serialize( self, authorization, - v1_software_auto_upgrade_default_put_request, + id, _request_auth, _content_type, _headers, @@ -99921,30 +111188,24 @@ def _v1_software_auto_upgrade_default_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_software_auto_upgrade_default_put_request is not None: - _body_params = v1_software_auto_upgrade_default_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] = [ @@ -99952,8 +111213,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='GET', + resource_path='/v1/software/rollouts/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -99970,10 +111231,10 @@ def _v1_software_auto_upgrade_default_put_serialize( @validate_call - def v1_software_gcsrelease_upload_notes_post( + def v1_software_rollouts_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, + v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -99986,14 +111247,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 + ) -> V1SoftwareRolloutsPostResponse: + """v1_software_rollouts_post + Create upgrade rollout and returns rollout identifier :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 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 @@ -100016,9 +111278,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_software_rollouts_post_serialize( authorization=authorization, - v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, + v1_software_rollouts_post_request=v1_software_rollouts_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100026,7 +111288,7 @@ def v1_software_gcsrelease_upload_notes_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1SoftwareRolloutsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -100040,10 +111302,10 @@ def v1_software_gcsrelease_upload_notes_post( @validate_call - def v1_software_gcsrelease_upload_notes_post_with_http_info( + def v1_software_rollouts_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, + v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100056,14 +111318,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[V1SoftwareRolloutsPostResponse]: + """v1_software_rollouts_post + Create upgrade rollout and returns rollout identifier :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 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 @@ -100086,9 +111349,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_software_rollouts_post_serialize( authorization=authorization, - v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, + v1_software_rollouts_post_request=v1_software_rollouts_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100096,7 +111359,7 @@ def v1_software_gcsrelease_upload_notes_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1SoftwareRolloutsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -100110,10 +111373,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_software_rollouts_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_gcsrelease_upload_notes_post_request: V1SoftwareGcsreleaseUploadNotesPostRequest, + v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100127,13 +111390,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_software_rollouts_post + Create upgrade rollout and returns rollout identifier :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 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 @@ -100156,9 +111420,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_software_rollouts_post_serialize( authorization=authorization, - v1_software_gcsrelease_upload_notes_post_request=v1_software_gcsrelease_upload_notes_post_request, + v1_software_rollouts_post_request=v1_software_rollouts_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100166,7 +111430,7 @@ def v1_software_gcsrelease_upload_notes_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1SoftwareRolloutsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -100175,10 +111439,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_software_rollouts_post_serialize( self, authorization, - v1_software_gcsrelease_upload_notes_post_request, + v1_software_rollouts_post_request, _request_auth, _content_type, _headers, @@ -100206,8 +111470,8 @@ def _v1_software_gcsrelease_upload_notes_post_serialize( _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 + if v1_software_rollouts_post_request is not None: + _body_params = v1_software_rollouts_post_request # set the HTTP header `Accept` @@ -100239,7 +111503,7 @@ def _v1_software_gcsrelease_upload_notes_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/software/gcsrelease/upload/notes', + resource_path='/v1/software/rollouts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -100256,11 +111520,10 @@ def _v1_software_gcsrelease_upload_notes_post_serialize( @validate_call - def v1_software_releases_download_get( + def v1_software_rollouts_put( 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")], + v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100273,16 +111536,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 + ) -> object: + """v1_software_rollouts_put + Modify update rollout :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 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 @@ -100305,10 +111567,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_software_rollouts_put_serialize( authorization=authorization, - image_ext=image_ext, - version=version, + v1_software_rollouts_put_request=v1_software_rollouts_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100316,7 +111577,7 @@ def v1_software_releases_download_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesDownloadGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -100330,11 +111591,10 @@ def v1_software_releases_download_get( @validate_call - def v1_software_releases_download_get_with_http_info( + def v1_software_rollouts_put_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")], + v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100347,16 +111607,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[object]: + """v1_software_rollouts_put + Modify update rollout :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 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 @@ -100379,10 +111638,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_software_rollouts_put_serialize( authorization=authorization, - image_ext=image_ext, - version=version, + v1_software_rollouts_put_request=v1_software_rollouts_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100390,7 +111648,7 @@ def v1_software_releases_download_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesDownloadGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -100404,11 +111662,10 @@ def v1_software_releases_download_get_with_http_info( @validate_call - def v1_software_releases_download_get_without_preload_content( + def v1_software_rollouts_put_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")], + v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100422,15 +111679,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_software_rollouts_put + Modify update rollout :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 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 @@ -100453,10 +111709,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_software_rollouts_put_serialize( authorization=authorization, - image_ext=image_ext, - version=version, + v1_software_rollouts_put_request=v1_software_rollouts_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100464,7 +111719,7 @@ def v1_software_releases_download_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesDownloadGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -100473,11 +111728,10 @@ def v1_software_releases_download_get_without_preload_content( return response_data.response - def _v1_software_releases_download_get_serialize( + def _v1_software_rollouts_put_serialize( self, authorization, - image_ext, - version, + v1_software_rollouts_put_request, _request_auth, _content_type, _headers, @@ -100500,19 +111754,13 @@ def _v1_software_releases_download_get_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_software_rollouts_put_request is not None: + _body_params = v1_software_rollouts_put_request # set the HTTP header `Accept` @@ -100523,6 +111771,19 @@ def _v1_software_releases_download_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] = [ @@ -100530,8 +111791,8 @@ def _v1_software_releases_download_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/software/releases/download', + method='PUT', + resource_path='/v1/software/rollouts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -100548,9 +111809,10 @@ def _v1_software_releases_download_get_serialize( @validate_call - def v1_software_releases_summary_get( + def v1_software_rollouts_schedule_post( self, 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)], @@ -100563,12 +111825,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 + ) -> object: + """v1_software_rollouts_schedule_post + Schedule rollout to upgrade now, later or user-triggered :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 @@ -100591,8 +111856,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_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, @@ -100600,7 +111866,7 @@ def v1_software_releases_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesSummaryGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -100614,9 +111880,10 @@ def v1_software_releases_summary_get( @validate_call - def v1_software_releases_summary_get_with_http_info( + def v1_software_rollouts_schedule_post_with_http_info( self, 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)], @@ -100629,12 +111896,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[object]: + """v1_software_rollouts_schedule_post + Schedule rollout to upgrade now, later or user-triggered :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 @@ -100657,8 +111927,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_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, @@ -100666,7 +111937,7 @@ def v1_software_releases_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesSummaryGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -100680,9 +111951,10 @@ def v1_software_releases_summary_get_with_http_info( @validate_call - def v1_software_releases_summary_get_without_preload_content( + def v1_software_rollouts_schedule_post_without_preload_content( self, 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)], @@ -100696,11 +111968,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_software_rollouts_schedule_post + Schedule rollout to upgrade now, later or user-triggered :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 @@ -100723,8 +111998,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_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, @@ -100732,7 +112008,7 @@ def v1_software_releases_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareReleasesSummaryGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -100741,9 +112017,10 @@ def v1_software_releases_summary_get_without_preload_content( return response_data.response - def _v1_software_releases_summary_get_serialize( + def _v1_software_rollouts_schedule_post_serialize( self, authorization, + v1_software_rollouts_schedule_post_request, _request_auth, _content_type, _headers, @@ -100771,6 +112048,8 @@ def _v1_software_releases_summary_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_software_rollouts_schedule_post_request is not None: + _body_params = v1_software_rollouts_schedule_post_request # set the HTTP header `Accept` @@ -100781,6 +112060,19 @@ def _v1_software_releases_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] = [ @@ -100788,8 +112080,8 @@ def _v1_software_releases_summary_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/software/releases/summary', + method='POST', + resource_path='/v1/software/rollouts/schedule', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -100806,9 +112098,10 @@ def _v1_software_releases_summary_get_serialize( @validate_call - def v1_software_rollouts_get( + def v1_software_running_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + running_version: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100821,13 +112114,14 @@ def v1_software_rollouts_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SoftwareRolloutsGetResponse: - """v1_software_rollouts_get + ) -> V1SoftwareRunningDetailsGetResponse: + """v1_software_running_details_get - Returns all the configured upgrade rollouts :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 @@ -100850,8 +112144,9 @@ def v1_software_rollouts_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_get_serialize( + _param = self._v1_software_running_details_get_serialize( authorization=authorization, + running_version=running_version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100859,7 +112154,7 @@ def v1_software_rollouts_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRolloutsGetResponse", + '200': "V1SoftwareRunningDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -100873,9 +112168,10 @@ def v1_software_rollouts_get( @validate_call - def v1_software_rollouts_get_with_http_info( + def v1_software_running_details_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + running_version: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100888,13 +112184,14 @@ def v1_software_rollouts_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[V1SoftwareRolloutsGetResponse]: - """v1_software_rollouts_get + ) -> ApiResponse[V1SoftwareRunningDetailsGetResponse]: + """v1_software_running_details_get - Returns all the configured upgrade rollouts :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 @@ -100917,8 +112214,9 @@ def v1_software_rollouts_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_get_serialize( + _param = self._v1_software_running_details_get_serialize( authorization=authorization, + running_version=running_version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100926,7 +112224,7 @@ def v1_software_rollouts_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRolloutsGetResponse", + '200': "V1SoftwareRunningDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -100940,9 +112238,10 @@ def v1_software_rollouts_get_with_http_info( @validate_call - def v1_software_rollouts_get_without_preload_content( + def v1_software_running_details_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + running_version: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -100956,12 +112255,13 @@ def v1_software_rollouts_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_rollouts_get + """v1_software_running_details_get - Returns all the configured upgrade rollouts :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 @@ -100984,8 +112284,9 @@ def v1_software_rollouts_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_get_serialize( + _param = self._v1_software_running_details_get_serialize( authorization=authorization, + running_version=running_version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -100993,7 +112294,7 @@ def v1_software_rollouts_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRolloutsGetResponse", + '200': "V1SoftwareRunningDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -101002,9 +112303,10 @@ def v1_software_rollouts_get_without_preload_content( return response_data.response - def _v1_software_rollouts_get_serialize( + def _v1_software_running_details_get_serialize( self, authorization, + running_version, _request_auth, _content_type, _headers, @@ -101027,6 +112329,10 @@ def _v1_software_rollouts_get_serialize( # process the path parameters # 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 @@ -101050,7 +112356,7 @@ def _v1_software_rollouts_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/software/rollouts', + resource_path='/v1/software/running/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -101067,10 +112373,9 @@ def _v1_software_rollouts_get_serialize( @validate_call - def v1_software_rollouts_id_delete( + def v1_software_running_summary_get( 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)], @@ -101083,15 +112388,12 @@ def v1_software_rollouts_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_software_rollouts_id_delete + ) -> V1SoftwareRunningSummaryGetResponse: + """v1_software_running_summary_get - 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 @@ -101114,9 +112416,8 @@ def v1_software_rollouts_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_id_delete_serialize( + _param = self._v1_software_running_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -101124,7 +112425,7 @@ def v1_software_rollouts_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1SoftwareRunningSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -101138,10 +112439,9 @@ def v1_software_rollouts_id_delete( @validate_call - def v1_software_rollouts_id_delete_with_http_info( + def v1_software_running_summary_get_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)], @@ -101154,15 +112454,12 @@ def v1_software_rollouts_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[object]: - """v1_software_rollouts_id_delete + ) -> ApiResponse[V1SoftwareRunningSummaryGetResponse]: + """v1_software_running_summary_get - 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 @@ -101185,9 +112482,8 @@ def v1_software_rollouts_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_id_delete_serialize( + _param = self._v1_software_running_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -101195,7 +112491,7 @@ def v1_software_rollouts_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1SoftwareRunningSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -101209,10 +112505,9 @@ def v1_software_rollouts_id_delete_with_http_info( @validate_call - def v1_software_rollouts_id_delete_without_preload_content( + def v1_software_running_summary_get_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)], @@ -101226,14 +112521,11 @@ def v1_software_rollouts_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_rollouts_id_delete + """v1_software_running_summary_get - 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 @@ -101256,9 +112548,8 @@ def v1_software_rollouts_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_id_delete_serialize( + _param = self._v1_software_running_summary_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -101266,7 +112557,7 @@ def v1_software_rollouts_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1SoftwareRunningSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -101275,10 +112566,9 @@ def v1_software_rollouts_id_delete_without_preload_content( return response_data.response - def _v1_software_rollouts_id_delete_serialize( + def _v1_software_running_summary_get_serialize( self, authorization, - id, _request_auth, _content_type, _headers, @@ -101300,8 +112590,6 @@ def _v1_software_rollouts_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: @@ -101325,8 +112613,8 @@ def _v1_software_rollouts_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/software/rollouts/{id}', + method='GET', + resource_path='/v1/software/running/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -101343,10 +112631,11 @@ def _v1_software_rollouts_id_delete_serialize( @validate_call - def v1_software_rollouts_id_get( + def v1_talkers_device_device_id_top_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictInt, Field(description="Rollout identifier to fetch.")], + device_id: StrictInt, + v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101359,15 +112648,17 @@ def v1_software_rollouts_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SoftwareRolloutsIdGetResponse: - """v1_software_rollouts_id_get + ) -> V1TalkersDeviceDeviceIdTopPostResponse: + """v1_talkers_device_device_id_top_post - Returns details about given upgrade rollout + Get top talkers for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Rollout identifier to fetch. (required) - :type id: int + :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 @@ -101390,9 +112681,10 @@ def v1_software_rollouts_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_id_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, @@ -101400,7 +112692,7 @@ def v1_software_rollouts_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRolloutsIdGetResponse", + '200': "V1TalkersDeviceDeviceIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -101414,10 +112706,11 @@ def v1_software_rollouts_id_get( @validate_call - def v1_software_rollouts_id_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: Annotated[StrictInt, Field(description="Rollout identifier to fetch.")], + device_id: StrictInt, + v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101430,15 +112723,17 @@ def v1_software_rollouts_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[V1SoftwareRolloutsIdGetResponse]: - """v1_software_rollouts_id_get + ) -> ApiResponse[V1TalkersDeviceDeviceIdTopPostResponse]: + """v1_talkers_device_device_id_top_post - Returns details about given upgrade rollout + Get top talkers for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Rollout identifier to fetch. (required) - :type id: int + :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 @@ -101461,9 +112756,10 @@ def v1_software_rollouts_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_id_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, @@ -101471,7 +112767,7 @@ def v1_software_rollouts_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRolloutsIdGetResponse", + '200': "V1TalkersDeviceDeviceIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -101485,10 +112781,11 @@ def v1_software_rollouts_id_get_with_http_info( @validate_call - def v1_software_rollouts_id_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: Annotated[StrictInt, Field(description="Rollout identifier to fetch.")], + device_id: StrictInt, + v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101502,14 +112799,16 @@ def v1_software_rollouts_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_rollouts_id_get + """v1_talkers_device_device_id_top_post - Returns details about given upgrade rollout + Get top talkers for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: Rollout identifier to fetch. (required) - :type id: int + :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 @@ -101532,9 +112831,10 @@ def v1_software_rollouts_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_id_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, @@ -101542,7 +112842,7 @@ def v1_software_rollouts_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRolloutsIdGetResponse", + '200': "V1TalkersDeviceDeviceIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -101551,10 +112851,11 @@ def v1_software_rollouts_id_get_without_preload_content( return response_data.response - def _v1_software_rollouts_id_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, @@ -101576,14 +112877,16 @@ def _v1_software_rollouts_id_get_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 # 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` @@ -101594,6 +112897,19 @@ def _v1_software_rollouts_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] = [ @@ -101601,8 +112917,8 @@ def _v1_software_rollouts_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/software/rollouts/{id}', + method='POST', + resource_path='/v1/talkers/device/{deviceId}/top', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -101619,10 +112935,11 @@ def _v1_software_rollouts_id_get_serialize( @validate_call - def v1_software_rollouts_post( + def v1_talkers_site_site_id_top_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest, + site_id: StrictInt, + v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101635,15 +112952,17 @@ def v1_software_rollouts_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SoftwareRolloutsPostResponse: - """v1_software_rollouts_post + ) -> V1TalkersSiteSiteIdTopPostResponse: + """v1_talkers_site_site_id_top_post - Create upgrade rollout and returns rollout identifier + Get top talkers for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_rollouts_post_request: (required) - :type v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest + :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 @@ -101666,9 +112985,10 @@ def v1_software_rollouts_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_post_serialize( + _param = self._v1_talkers_site_site_id_top_post_serialize( authorization=authorization, - v1_software_rollouts_post_request=v1_software_rollouts_post_request, + 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, @@ -101676,7 +112996,7 @@ def v1_software_rollouts_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRolloutsPostResponse", + '200': "V1TalkersSiteSiteIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -101690,10 +113010,11 @@ def v1_software_rollouts_post( @validate_call - def v1_software_rollouts_post_with_http_info( + def v1_talkers_site_site_id_top_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest, + site_id: StrictInt, + v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101706,15 +113027,17 @@ def v1_software_rollouts_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[V1SoftwareRolloutsPostResponse]: - """v1_software_rollouts_post + ) -> ApiResponse[V1TalkersSiteSiteIdTopPostResponse]: + """v1_talkers_site_site_id_top_post - Create upgrade rollout and returns rollout identifier + Get top talkers for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_rollouts_post_request: (required) - :type v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest + :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 @@ -101737,9 +113060,10 @@ def v1_software_rollouts_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_post_serialize( + _param = self._v1_talkers_site_site_id_top_post_serialize( authorization=authorization, - v1_software_rollouts_post_request=v1_software_rollouts_post_request, + 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, @@ -101747,7 +113071,7 @@ def v1_software_rollouts_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRolloutsPostResponse", + '200': "V1TalkersSiteSiteIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -101761,10 +113085,11 @@ def v1_software_rollouts_post_with_http_info( @validate_call - def v1_software_rollouts_post_without_preload_content( + def v1_talkers_site_site_id_top_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest, + site_id: StrictInt, + v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101778,14 +113103,16 @@ def v1_software_rollouts_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_rollouts_post + """v1_talkers_site_site_id_top_post - Create upgrade rollout and returns rollout identifier + Get top talkers for a site :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_rollouts_post_request: (required) - :type v1_software_rollouts_post_request: V1SoftwareRolloutsPostRequest + :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 @@ -101808,9 +113135,10 @@ def v1_software_rollouts_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_post_serialize( + _param = self._v1_talkers_site_site_id_top_post_serialize( authorization=authorization, - v1_software_rollouts_post_request=v1_software_rollouts_post_request, + 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, @@ -101818,7 +113146,7 @@ def v1_software_rollouts_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRolloutsPostResponse", + '200': "V1TalkersSiteSiteIdTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -101827,10 +113155,11 @@ def v1_software_rollouts_post_without_preload_content( return response_data.response - def _v1_software_rollouts_post_serialize( + def _v1_talkers_site_site_id_top_post_serialize( self, authorization, - v1_software_rollouts_post_request, + site_id, + v1_talkers_site_site_id_top_post_request, _request_auth, _content_type, _headers, @@ -101852,14 +113181,16 @@ def _v1_software_rollouts_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_rollouts_post_request is not None: - _body_params = v1_software_rollouts_post_request + 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` @@ -101891,7 +113222,7 @@ def _v1_software_rollouts_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/software/rollouts', + resource_path='/v1/talkers/site/{siteId}/top', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -101908,10 +113239,10 @@ def _v1_software_rollouts_post_serialize( @validate_call - def v1_software_rollouts_put( + def v1_temp_password_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest, + v1_temp_password_put_request: V1TempPasswordPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101925,14 +113256,14 @@ def v1_software_rollouts_put( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """v1_software_rollouts_put + """v1_temp_password_put - Modify update rollout + Generate and send temporary passwords to multiple emails for B2B service access. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_rollouts_put_request: (required) - :type v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest + :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 @@ -101955,9 +113286,9 @@ def v1_software_rollouts_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_put_serialize( + _param = self._v1_temp_password_put_serialize( authorization=authorization, - v1_software_rollouts_put_request=v1_software_rollouts_put_request, + v1_temp_password_put_request=v1_temp_password_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -101965,7 +113296,7 @@ def v1_software_rollouts_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -101979,10 +113310,10 @@ def v1_software_rollouts_put( @validate_call - def v1_software_rollouts_put_with_http_info( + def v1_temp_password_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest, + v1_temp_password_put_request: V1TempPasswordPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -101996,14 +113327,14 @@ def v1_software_rollouts_put_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """v1_software_rollouts_put + """v1_temp_password_put - Modify update rollout + Generate and send temporary passwords to multiple emails for B2B service access. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_rollouts_put_request: (required) - :type v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest + :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 @@ -102026,9 +113357,9 @@ def v1_software_rollouts_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_put_serialize( + _param = self._v1_temp_password_put_serialize( authorization=authorization, - v1_software_rollouts_put_request=v1_software_rollouts_put_request, + v1_temp_password_put_request=v1_temp_password_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102036,7 +113367,7 @@ def v1_software_rollouts_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -102050,10 +113381,10 @@ def v1_software_rollouts_put_with_http_info( @validate_call - def v1_software_rollouts_put_without_preload_content( + def v1_temp_password_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest, + v1_temp_password_put_request: V1TempPasswordPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102067,14 +113398,14 @@ def v1_software_rollouts_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_rollouts_put + """v1_temp_password_put - Modify update rollout + Generate and send temporary passwords to multiple emails for B2B service access. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_software_rollouts_put_request: (required) - :type v1_software_rollouts_put_request: V1SoftwareRolloutsPutRequest + :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 @@ -102097,9 +113428,9 @@ def v1_software_rollouts_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_put_serialize( + _param = self._v1_temp_password_put_serialize( authorization=authorization, - v1_software_rollouts_put_request=v1_software_rollouts_put_request, + v1_temp_password_put_request=v1_temp_password_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102107,7 +113438,7 @@ def v1_software_rollouts_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -102116,10 +113447,10 @@ def v1_software_rollouts_put_without_preload_content( return response_data.response - def _v1_software_rollouts_put_serialize( + def _v1_temp_password_put_serialize( self, authorization, - v1_software_rollouts_put_request, + v1_temp_password_put_request, _request_auth, _content_type, _headers, @@ -102147,8 +113478,8 @@ def _v1_software_rollouts_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_software_rollouts_put_request is not None: - _body_params = v1_software_rollouts_put_request + if v1_temp_password_put_request is not None: + _body_params = v1_temp_password_put_request # set the HTTP header `Accept` @@ -102180,7 +113511,7 @@ def _v1_software_rollouts_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/v1/software/rollouts', + resource_path='/v1/temp/password', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -102197,10 +113528,11 @@ def _v1_software_rollouts_put_serialize( @validate_call - def v1_software_rollouts_schedule_post( + def v1_troubleshooting_device_device_id_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_rollouts_schedule_post_request: V1SoftwareRolloutsSchedulePostRequest, + device_id: StrictInt, + v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102213,15 +113545,16 @@ def v1_software_rollouts_schedule_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_rollouts_schedule_post + ) -> V1TroubleshootingDeviceDeviceIdPostResponse: + """v1_troubleshooting_device_device_id_post - Schedule rollout to upgrade now, later or user-triggered :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 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 @@ -102244,9 +113577,10 @@ def v1_software_rollouts_schedule_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_schedule_post_serialize( + _param = self._v1_troubleshooting_device_device_id_post_serialize( authorization=authorization, - v1_software_rollouts_schedule_post_request=v1_software_rollouts_schedule_post_request, + 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, @@ -102254,7 +113588,7 @@ def v1_software_rollouts_schedule_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1TroubleshootingDeviceDeviceIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -102268,10 +113602,11 @@ def v1_software_rollouts_schedule_post( @validate_call - def v1_software_rollouts_schedule_post_with_http_info( + def v1_troubleshooting_device_device_id_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_rollouts_schedule_post_request: V1SoftwareRolloutsSchedulePostRequest, + device_id: StrictInt, + v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102284,15 +113619,16 @@ def v1_software_rollouts_schedule_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_rollouts_schedule_post + ) -> ApiResponse[V1TroubleshootingDeviceDeviceIdPostResponse]: + """v1_troubleshooting_device_device_id_post - Schedule rollout to upgrade now, later or user-triggered :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 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 @@ -102315,9 +113651,10 @@ def v1_software_rollouts_schedule_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_schedule_post_serialize( + _param = self._v1_troubleshooting_device_device_id_post_serialize( authorization=authorization, - v1_software_rollouts_schedule_post_request=v1_software_rollouts_schedule_post_request, + 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, @@ -102325,7 +113662,7 @@ def v1_software_rollouts_schedule_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1TroubleshootingDeviceDeviceIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -102339,10 +113676,11 @@ def v1_software_rollouts_schedule_post_with_http_info( @validate_call - def v1_software_rollouts_schedule_post_without_preload_content( + def v1_troubleshooting_device_device_id_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_software_rollouts_schedule_post_request: V1SoftwareRolloutsSchedulePostRequest, + device_id: StrictInt, + v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102356,14 +113694,15 @@ def v1_software_rollouts_schedule_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_software_rollouts_schedule_post + """v1_troubleshooting_device_device_id_post - Schedule rollout to upgrade now, later or user-triggered :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 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 @@ -102386,9 +113725,10 @@ def v1_software_rollouts_schedule_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_rollouts_schedule_post_serialize( + _param = self._v1_troubleshooting_device_device_id_post_serialize( authorization=authorization, - v1_software_rollouts_schedule_post_request=v1_software_rollouts_schedule_post_request, + 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, @@ -102396,7 +113736,7 @@ def v1_software_rollouts_schedule_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1TroubleshootingDeviceDeviceIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -102405,10 +113745,11 @@ def v1_software_rollouts_schedule_post_without_preload_content( return response_data.response - def _v1_software_rollouts_schedule_post_serialize( + def _v1_troubleshooting_device_device_id_post_serialize( self, authorization, - v1_software_rollouts_schedule_post_request, + device_id, + v1_troubleshooting_device_device_id_post_request, _request_auth, _content_type, _headers, @@ -102430,14 +113771,16 @@ def _v1_software_rollouts_schedule_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_software_rollouts_schedule_post_request is not None: - _body_params = v1_software_rollouts_schedule_post_request + 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` @@ -102469,7 +113812,7 @@ def _v1_software_rollouts_schedule_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/software/rollouts/schedule', + resource_path='/v1/troubleshooting/device/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -102486,10 +113829,10 @@ def _v1_software_rollouts_schedule_post_serialize( @validate_call - def v1_software_running_details_get( + def v1_troubleshooting_enterprise_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - running_version: Optional[StrictStr] = None, + v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102502,14 +113845,14 @@ 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 + ) -> V1TroubleshootingEnterprisePostResponse: + """v1_troubleshooting_enterprise_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param running_version: - :type running_version: 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 @@ -102532,9 +113875,9 @@ def v1_software_running_details_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_software_running_details_get_serialize( + _param = self._v1_troubleshooting_enterprise_post_serialize( authorization=authorization, - running_version=running_version, + v1_troubleshooting_enterprise_post_request=v1_troubleshooting_enterprise_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102542,7 +113885,7 @@ def v1_software_running_details_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningDetailsGetResponse", + '200': "V1TroubleshootingEnterprisePostResponse", } response_data = self.api_client.call_api( *_param, @@ -102556,10 +113899,10 @@ def v1_software_running_details_get( @validate_call - def v1_software_running_details_get_with_http_info( + def v1_troubleshooting_enterprise_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - running_version: Optional[StrictStr] = None, + v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102572,14 +113915,14 @@ 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[V1TroubleshootingEnterprisePostResponse]: + """v1_troubleshooting_enterprise_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param running_version: - :type running_version: 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 @@ -102602,9 +113945,9 @@ 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_troubleshooting_enterprise_post_serialize( authorization=authorization, - running_version=running_version, + v1_troubleshooting_enterprise_post_request=v1_troubleshooting_enterprise_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102612,7 +113955,7 @@ def v1_software_running_details_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningDetailsGetResponse", + '200': "V1TroubleshootingEnterprisePostResponse", } response_data = self.api_client.call_api( *_param, @@ -102626,10 +113969,10 @@ def v1_software_running_details_get_with_http_info( @validate_call - def v1_software_running_details_get_without_preload_content( + def v1_troubleshooting_enterprise_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - running_version: Optional[StrictStr] = None, + v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -102643,13 +113986,13 @@ 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_troubleshooting_enterprise_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param running_version: - :type running_version: 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 @@ -102672,9 +114015,9 @@ 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_troubleshooting_enterprise_post_serialize( authorization=authorization, - running_version=running_version, + v1_troubleshooting_enterprise_post_request=v1_troubleshooting_enterprise_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -102682,7 +114025,7 @@ def v1_software_running_details_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningDetailsGetResponse", + '200': "V1TroubleshootingEnterprisePostResponse", } response_data = self.api_client.call_api( *_param, @@ -102691,10 +114034,10 @@ def v1_software_running_details_get_without_preload_content( return response_data.response - def _v1_software_running_details_get_serialize( + def _v1_troubleshooting_enterprise_post_serialize( self, authorization, - running_version, + v1_troubleshooting_enterprise_post_request, _request_auth, _content_type, _headers, @@ -102717,15 +114060,13 @@ def _v1_software_running_details_get_serialize( # process the path parameters # 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_troubleshooting_enterprise_post_request is not None: + _body_params = v1_troubleshooting_enterprise_post_request # set the HTTP header `Accept` @@ -102736,6 +114077,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] = [ @@ -102743,8 +114097,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/troubleshooting/enterprise', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -102761,7 +114115,7 @@ def _v1_software_running_details_get_serialize( @validate_call - def v1_software_running_summary_get( + def v1_troubleshooting_filter_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -102776,8 +114130,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 + ) -> V1TroubleshootingFilterGetResponse: + """v1_troubleshooting_filter_get :param authorization: Bearer token. Format: Bearer (required) @@ -102804,7 +114158,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_troubleshooting_filter_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -102813,7 +114167,7 @@ def v1_software_running_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningSummaryGetResponse", + '200': "V1TroubleshootingFilterGetResponse", } response_data = self.api_client.call_api( *_param, @@ -102827,7 +114181,7 @@ def v1_software_running_summary_get( @validate_call - def v1_software_running_summary_get_with_http_info( + def v1_troubleshooting_filter_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -102842,8 +114196,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[V1TroubleshootingFilterGetResponse]: + """v1_troubleshooting_filter_get :param authorization: Bearer token. Format: Bearer (required) @@ -102870,7 +114224,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_troubleshooting_filter_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -102879,7 +114233,7 @@ def v1_software_running_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningSummaryGetResponse", + '200': "V1TroubleshootingFilterGetResponse", } response_data = self.api_client.call_api( *_param, @@ -102893,7 +114247,7 @@ def v1_software_running_summary_get_with_http_info( @validate_call - def v1_software_running_summary_get_without_preload_content( + def v1_troubleshooting_filter_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -102909,7 +114263,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_troubleshooting_filter_get :param authorization: Bearer token. Format: Bearer (required) @@ -102936,7 +114290,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_troubleshooting_filter_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -102945,7 +114299,7 @@ def v1_software_running_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SoftwareRunningSummaryGetResponse", + '200': "V1TroubleshootingFilterGetResponse", } response_data = self.api_client.call_api( *_param, @@ -102954,7 +114308,7 @@ def v1_software_running_summary_get_without_preload_content( return response_data.response - def _v1_software_running_summary_get_serialize( + def _v1_troubleshooting_filter_get_serialize( self, authorization, _request_auth, @@ -103002,7 +114356,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/troubleshooting/filter', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -103019,11 +114373,9 @@ def _v1_software_running_summary_get_serialize( @validate_call - def v1_talkers_device_device_id_top_post( + def v1_troubleshooting_site_connectivity_status_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_talkers_device_device_id_top_post_request: V1TalkersDeviceDeviceIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103036,17 +114388,12 @@ 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 + ) -> V1TroubleshootingSiteConnectivityStatusGetResponse: + """v1_troubleshooting_site_connectivity_status_get - 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103069,10 +114416,8 @@ 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_troubleshooting_site_connectivity_status_get_serialize( authorization=authorization, - 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, @@ -103080,7 +114425,7 @@ def v1_talkers_device_device_id_top_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersDeviceDeviceIdTopPostResponse", + '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103094,11 +114439,9 @@ def v1_talkers_device_device_id_top_post( @validate_call - def v1_talkers_device_device_id_top_post_with_http_info( + def v1_troubleshooting_site_connectivity_status_get_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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103111,17 +114454,12 @@ 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[V1TroubleshootingSiteConnectivityStatusGetResponse]: + """v1_troubleshooting_site_connectivity_status_get - 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103144,10 +114482,8 @@ 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_troubleshooting_site_connectivity_status_get_serialize( authorization=authorization, - 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, @@ -103155,7 +114491,7 @@ def v1_talkers_device_device_id_top_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersDeviceDeviceIdTopPostResponse", + '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103169,11 +114505,9 @@ 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_troubleshooting_site_connectivity_status_get_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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103187,16 +114521,11 @@ 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_troubleshooting_site_connectivity_status_get - 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103219,10 +114548,8 @@ 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_troubleshooting_site_connectivity_status_get_serialize( authorization=authorization, - 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, @@ -103230,7 +114557,7 @@ def v1_talkers_device_device_id_top_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersDeviceDeviceIdTopPostResponse", + '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103239,11 +114566,9 @@ 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_troubleshooting_site_connectivity_status_get_serialize( self, authorization, - device_id, - v1_talkers_device_device_id_top_post_request, _request_auth, _content_type, _headers, @@ -103265,16 +114590,12 @@ 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 # set the HTTP header `Accept` @@ -103285,19 +114606,6 @@ def _v1_talkers_device_device_id_top_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] = [ @@ -103305,8 +114613,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='GET', + resource_path='/v1/troubleshooting/site-connectivity-status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -103323,11 +114631,10 @@ def _v1_talkers_device_device_id_top_post_serialize( @validate_call - def v1_talkers_site_site_id_top_post( + def v1_troubleshooting_site_site_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], site_id: StrictInt, - v1_talkers_site_site_id_top_post_request: V1TalkersSiteSiteIdTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103340,17 +114647,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 + ) -> V1TroubleshootingSiteSiteIdGetResponse: + """v1_troubleshooting_site_site_id_get - 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103373,10 +114677,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_troubleshooting_site_site_id_get_serialize( authorization=authorization, 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, @@ -103384,7 +114687,7 @@ def v1_talkers_site_site_id_top_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersSiteSiteIdTopPostResponse", + '200': "V1TroubleshootingSiteSiteIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103398,11 +114701,10 @@ def v1_talkers_site_site_id_top_post( @validate_call - def v1_talkers_site_site_id_top_post_with_http_info( + def v1_troubleshooting_site_site_id_get_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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103415,17 +114717,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[V1TroubleshootingSiteSiteIdGetResponse]: + """v1_troubleshooting_site_site_id_get - 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103448,10 +114747,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_troubleshooting_site_site_id_get_serialize( authorization=authorization, 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, @@ -103459,7 +114757,7 @@ def v1_talkers_site_site_id_top_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersSiteSiteIdTopPostResponse", + '200': "V1TroubleshootingSiteSiteIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103473,11 +114771,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_troubleshooting_site_site_id_get_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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103491,16 +114788,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_troubleshooting_site_site_id_get - 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -103523,10 +114817,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_troubleshooting_site_site_id_get_serialize( authorization=authorization, 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, @@ -103534,7 +114827,7 @@ def v1_talkers_site_site_id_top_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TalkersSiteSiteIdTopPostResponse", + '200': "V1TroubleshootingSiteSiteIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -103543,11 +114836,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_troubleshooting_site_site_id_get_serialize( self, authorization, site_id, - v1_talkers_site_site_id_top_post_request, _request_auth, _content_type, _headers, @@ -103577,8 +114869,6 @@ def _v1_talkers_site_site_id_top_post_serialize( _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` @@ -103589,19 +114879,6 @@ def _v1_talkers_site_site_id_top_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] = [ @@ -103609,8 +114886,8 @@ def _v1_talkers_site_site_id_top_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/talkers/site/{siteId}/top', + method='GET', + resource_path='/v1/troubleshooting/site/{siteId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -103627,10 +114904,10 @@ def _v1_talkers_site_site_id_top_post_serialize( @validate_call - def v1_temp_password_put( + def v1_troubleshooting_top_sites_by_alerts_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_temp_password_put_request: V1TempPasswordPutRequest, + v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103643,15 +114920,14 @@ 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 + ) -> V1TroubleshootingTopSitesByAlertsPostResponse: + """v1_troubleshooting_top_sites_by_alerts_post - 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 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 @@ -103674,9 +114950,9 @@ def v1_temp_password_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_temp_password_put_serialize( + _param = self._v1_troubleshooting_top_sites_by_alerts_post_serialize( authorization=authorization, - v1_temp_password_put_request=v1_temp_password_put_request, + 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, @@ -103684,7 +114960,7 @@ def v1_temp_password_put( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1TroubleshootingTopSitesByAlertsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -103698,10 +114974,10 @@ def v1_temp_password_put( @validate_call - def v1_temp_password_put_with_http_info( + def v1_troubleshooting_top_sites_by_alerts_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_temp_password_put_request: V1TempPasswordPutRequest, + v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103714,15 +114990,14 @@ 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[V1TroubleshootingTopSitesByAlertsPostResponse]: + """v1_troubleshooting_top_sites_by_alerts_post - 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 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 @@ -103745,9 +115020,9 @@ 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_troubleshooting_top_sites_by_alerts_post_serialize( authorization=authorization, - v1_temp_password_put_request=v1_temp_password_put_request, + 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, @@ -103755,7 +115030,7 @@ def v1_temp_password_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1TroubleshootingTopSitesByAlertsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -103769,10 +115044,10 @@ def v1_temp_password_put_with_http_info( @validate_call - def v1_temp_password_put_without_preload_content( + def v1_troubleshooting_top_sites_by_alerts_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_temp_password_put_request: V1TempPasswordPutRequest, + v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -103786,14 +115061,13 @@ 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_troubleshooting_top_sites_by_alerts_post - 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 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 @@ -103816,9 +115090,9 @@ 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_troubleshooting_top_sites_by_alerts_post_serialize( authorization=authorization, - v1_temp_password_put_request=v1_temp_password_put_request, + 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, @@ -103826,7 +115100,7 @@ def v1_temp_password_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '200': "V1TroubleshootingTopSitesByAlertsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -103835,10 +115109,10 @@ def v1_temp_password_put_without_preload_content( return response_data.response - def _v1_temp_password_put_serialize( + def _v1_troubleshooting_top_sites_by_alerts_post_serialize( self, authorization, - v1_temp_password_put_request, + v1_troubleshooting_top_sites_by_alerts_post_request, _request_auth, _content_type, _headers, @@ -103866,8 +115140,8 @@ def _v1_temp_password_put_serialize( _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 + 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` @@ -103898,8 +115172,8 @@ def _v1_temp_password_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/temp/password', + method='POST', + resource_path='/v1/troubleshooting/top-sites-by-alerts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -103916,11 +115190,11 @@ def _v1_temp_password_put_serialize( @validate_call - def v1_troubleshooting_device_device_id_post( + def v1_users_email_password_patch( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, + 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)], @@ -103933,16 +115207,17 @@ 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 + ) -> None: + """v1_users_email_password_patch + Change password for a user using email and token - :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 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 @@ -103965,10 +115240,10 @@ def v1_troubleshooting_device_device_id_post( :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, + _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, @@ -103976,7 +115251,10 @@ def v1_troubleshooting_device_device_id_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingDeviceDeviceIdPostResponse", + '204': None, + '400': None, + '403': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -103990,11 +115268,11 @@ def v1_troubleshooting_device_device_id_post( @validate_call - def v1_troubleshooting_device_device_id_post_with_http_info( + def v1_users_email_password_patch_with_http_info( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, + 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)], @@ -104007,16 +115285,17 @@ 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[None]: + """v1_users_email_password_patch + Change password for a user using email and token - :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 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 @@ -104039,10 +115318,10 @@ 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( - authorization=authorization, - device_id=device_id, - v1_troubleshooting_device_device_id_post_request=v1_troubleshooting_device_device_id_post_request, + _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, @@ -104050,7 +115329,10 @@ def v1_troubleshooting_device_device_id_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingDeviceDeviceIdPostResponse", + '204': None, + '400': None, + '403': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -104064,11 +115346,11 @@ def v1_troubleshooting_device_device_id_post_with_http_info( @validate_call - def v1_troubleshooting_device_device_id_post_without_preload_content( + def v1_users_email_password_patch_without_preload_content( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_troubleshooting_device_device_id_post_request: V1TroubleshootingDeviceDeviceIdPostRequest, + 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)], @@ -104082,15 +115364,16 @@ 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_users_email_password_patch + Change password for a user using email and token - :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 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 @@ -104113,10 +115396,10 @@ 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( - authorization=authorization, - device_id=device_id, - v1_troubleshooting_device_device_id_post_request=v1_troubleshooting_device_device_id_post_request, + _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, @@ -104124,7 +115407,10 @@ def v1_troubleshooting_device_device_id_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingDeviceDeviceIdPostResponse", + '204': None, + '400': None, + '403': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -104133,11 +115419,11 @@ def v1_troubleshooting_device_device_id_post_without_preload_content( return response_data.response - def _v1_troubleshooting_device_device_id_post_serialize( + def _v1_users_email_password_patch_serialize( self, - authorization, - device_id, - v1_troubleshooting_device_device_id_post_request, + email, + token, + v1_users_email_password_patch_request, _request_auth, _content_type, _headers, @@ -104159,25 +115445,20 @@ 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 + 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_troubleshooting_device_device_id_post_request is not None: - _body_params = v1_troubleshooting_device_device_id_post_request + if v1_users_email_password_patch_request is not None: + _body_params = v1_users_email_password_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: @@ -104199,8 +115480,8 @@ def _v1_troubleshooting_device_device_id_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/troubleshooting/device/{deviceId}', + method='PATCH', + resource_path='/v1/users/{email}/password', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -104217,10 +115498,9 @@ def _v1_troubleshooting_device_device_id_post_serialize( @validate_call - def v1_troubleshooting_enterprise_post( + def v1_users_email_recovery_get( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, + email: Annotated[StrictStr, Field(description="User email address")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -104233,14 +115513,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 + ) -> None: + """v1_users_email_recovery_get + Send password recovery email to user - :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 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 @@ -104263,9 +115542,8 @@ def v1_troubleshooting_enterprise_post( :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, + _param = self._v1_users_email_recovery_get_serialize( + email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -104273,7 +115551,9 @@ def v1_troubleshooting_enterprise_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingEnterprisePostResponse", + '200': None, + '400': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -104287,10 +115567,9 @@ def v1_troubleshooting_enterprise_post( @validate_call - def v1_troubleshooting_enterprise_post_with_http_info( + def v1_users_email_recovery_get_with_http_info( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, + email: Annotated[StrictStr, Field(description="User email address")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -104303,14 +115582,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[None]: + """v1_users_email_recovery_get + Send password recovery email to user - :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 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 @@ -104333,9 +115611,8 @@ def v1_troubleshooting_enterprise_post_with_http_info( :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, + _param = self._v1_users_email_recovery_get_serialize( + email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -104343,7 +115620,9 @@ def v1_troubleshooting_enterprise_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingEnterprisePostResponse", + '200': None, + '400': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -104357,10 +115636,9 @@ def v1_troubleshooting_enterprise_post_with_http_info( @validate_call - def v1_troubleshooting_enterprise_post_without_preload_content( + def v1_users_email_recovery_get_without_preload_content( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_enterprise_post_request: V1TroubleshootingEnterprisePostRequest, + email: Annotated[StrictStr, Field(description="User email address")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -104374,13 +115652,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_users_email_recovery_get + Send password recovery email to user - :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 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 @@ -104403,9 +115680,8 @@ def v1_troubleshooting_enterprise_post_without_preload_content( :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, + _param = self._v1_users_email_recovery_get_serialize( + email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -104413,7 +115689,9 @@ def v1_troubleshooting_enterprise_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingEnterprisePostResponse", + '200': None, + '400': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -104422,10 +115700,9 @@ def v1_troubleshooting_enterprise_post_without_preload_content( return response_data.response - def _v1_troubleshooting_enterprise_post_serialize( + def _v1_users_email_recovery_get_serialize( self, - authorization, - v1_troubleshooting_enterprise_post_request, + email, _request_auth, _content_type, _headers, @@ -104447,37 +115724,15 @@ def _v1_troubleshooting_enterprise_post_serialize( _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 - 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] = [ @@ -104485,8 +115740,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/users/{email}/recovery', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -104503,9 +115758,10 @@ def _v1_troubleshooting_enterprise_post_serialize( @validate_call - def v1_troubleshooting_filter_get( + def v1_users_email_verified_patch( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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)], @@ -104518,12 +115774,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 + ) -> None: + """v1_users_email_verified_patch + Verify user email using verification token - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str + :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 @@ -104546,8 +115805,9 @@ def v1_troubleshooting_filter_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_filter_get_serialize( - authorization=authorization, + _param = self._v1_users_email_verified_patch_serialize( + email=email, + token=token, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -104555,7 +115815,10 @@ def v1_troubleshooting_filter_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingFilterGetResponse", + '204': None, + '400': None, + '403': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -104569,9 +115832,10 @@ def v1_troubleshooting_filter_get( @validate_call - def v1_troubleshooting_filter_get_with_http_info( + def v1_users_email_verified_patch_with_http_info( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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)], @@ -104584,12 +115848,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[None]: + """v1_users_email_verified_patch + Verify user email using verification token - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str + :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 @@ -104612,8 +115879,9 @@ def v1_troubleshooting_filter_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_filter_get_serialize( - authorization=authorization, + _param = self._v1_users_email_verified_patch_serialize( + email=email, + token=token, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -104621,7 +115889,10 @@ def v1_troubleshooting_filter_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingFilterGetResponse", + '204': None, + '400': None, + '403': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -104635,9 +115906,10 @@ def v1_troubleshooting_filter_get_with_http_info( @validate_call - def v1_troubleshooting_filter_get_without_preload_content( + def v1_users_email_verified_patch_without_preload_content( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + 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)], @@ -104651,11 +115923,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_users_email_verified_patch + Verify user email using verification token - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str + :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 @@ -104678,8 +115953,9 @@ def v1_troubleshooting_filter_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_troubleshooting_filter_get_serialize( - authorization=authorization, + _param = self._v1_users_email_verified_patch_serialize( + email=email, + token=token, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -104687,7 +115963,10 @@ def v1_troubleshooting_filter_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingFilterGetResponse", + '204': None, + '400': None, + '403': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -104696,9 +115975,10 @@ def v1_troubleshooting_filter_get_without_preload_content( return response_data.response - def _v1_troubleshooting_filter_get_serialize( + def _v1_users_email_verified_patch_serialize( self, - authorization, + email, + token, _request_auth, _content_type, _headers, @@ -104720,21 +116000,18 @@ def _v1_troubleshooting_filter_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 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 @@ -104743,8 +116020,8 @@ def _v1_troubleshooting_filter_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/troubleshooting/filter', + method='PATCH', + resource_path='/v1/users/{email}/verified', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -104761,9 +116038,10 @@ def _v1_troubleshooting_filter_get_serialize( @validate_call - def v1_troubleshooting_site_connectivity_status_get( + 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)], @@ -104776,12 +116054,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 + ) -> 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 @@ -104804,8 +116085,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_users_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -104813,7 +116095,7 @@ def v1_troubleshooting_site_connectivity_status_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", + '200': "V1UsersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -104827,9 +116109,10 @@ def v1_troubleshooting_site_connectivity_status_get( @validate_call - def v1_troubleshooting_site_connectivity_status_get_with_http_info( + 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)], @@ -104842,12 +116125,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[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 @@ -104870,8 +116156,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_users_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -104879,7 +116166,7 @@ def v1_troubleshooting_site_connectivity_status_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", + '200': "V1UsersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -104893,9 +116180,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_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)], @@ -104909,11 +116197,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_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 @@ -104936,8 +116227,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_users_get_serialize( authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -104945,7 +116237,7 @@ def v1_troubleshooting_site_connectivity_status_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteConnectivityStatusGetResponse", + '200': "V1UsersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -104954,9 +116246,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_users_get_serialize( self, authorization, + id, _request_auth, _content_type, _headers, @@ -104979,6 +116272,10 @@ def _v1_troubleshooting_site_connectivity_status_get_serialize( # 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 @@ -105002,7 +116299,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/users', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -105019,10 +116316,10 @@ def _v1_troubleshooting_site_connectivity_status_get_serialize( @validate_call - def v1_troubleshooting_site_site_id_get( + def v1_users_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -105035,14 +116332,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 + ) -> None: + """v1_users_id_delete + Delete user account. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :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 @@ -105065,9 +116363,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_users_id_delete_serialize( authorization=authorization, - site_id=site_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -105075,7 +116373,7 @@ def v1_troubleshooting_site_site_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteSiteIdGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -105089,10 +116387,10 @@ def v1_troubleshooting_site_site_id_get( @validate_call - def v1_troubleshooting_site_site_id_get_with_http_info( + def v1_users_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -105105,14 +116403,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[None]: + """v1_users_id_delete + Delete user account. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :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 @@ -105135,9 +116434,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_users_id_delete_serialize( authorization=authorization, - site_id=site_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -105145,7 +116444,7 @@ def v1_troubleshooting_site_site_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteSiteIdGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -105159,10 +116458,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_users_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - site_id: StrictInt, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -105176,13 +116475,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_users_id_delete + Delete user account. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param site_id: (required) - :type site_id: int + :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 @@ -105205,9 +116505,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_users_id_delete_serialize( authorization=authorization, - site_id=site_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -105215,7 +116515,7 @@ def v1_troubleshooting_site_site_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingSiteSiteIdGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -105224,10 +116524,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_users_id_delete_serialize( self, authorization, - site_id, + id, _request_auth, _content_type, _headers, @@ -105249,8 +116549,8 @@ 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 + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: @@ -105259,13 +116559,6 @@ def _v1_troubleshooting_site_site_id_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 @@ -105274,8 +116567,8 @@ def _v1_troubleshooting_site_site_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/troubleshooting/site/{siteId}', + method='DELETE', + resource_path='/v1/users/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -105292,10 +116585,10 @@ def _v1_troubleshooting_site_site_id_get_serialize( @validate_call - def v1_troubleshooting_top_sites_by_alerts_post( + def v1_users_id_enterprises_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -105308,14 +116601,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 + ) -> 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 v1_troubleshooting_top_sites_by_alerts_post_request: (required) - :type v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest + :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 @@ -105338,9 +116632,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_users_id_enterprises_get_serialize( authorization=authorization, - v1_troubleshooting_top_sites_by_alerts_post_request=v1_troubleshooting_top_sites_by_alerts_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -105348,7 +116642,7 @@ def v1_troubleshooting_top_sites_by_alerts_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingTopSitesByAlertsPostResponse", + '200': "V1UsersIdEnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -105362,10 +116656,10 @@ def v1_troubleshooting_top_sites_by_alerts_post( @validate_call - def v1_troubleshooting_top_sites_by_alerts_post_with_http_info( + def v1_users_id_enterprises_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -105378,14 +116672,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[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 v1_troubleshooting_top_sites_by_alerts_post_request: (required) - :type v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest + :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 @@ -105408,9 +116703,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_users_id_enterprises_get_serialize( authorization=authorization, - v1_troubleshooting_top_sites_by_alerts_post_request=v1_troubleshooting_top_sites_by_alerts_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -105418,7 +116713,7 @@ def v1_troubleshooting_top_sites_by_alerts_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingTopSitesByAlertsPostResponse", + '200': "V1UsersIdEnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -105432,10 +116727,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_users_id_enterprises_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_troubleshooting_top_sites_by_alerts_post_request: V1TroubleshootingTopSitesByAlertsPostRequest, + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -105449,13 +116744,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_users_id_enterprises_get + Get all enterprises a specific user can access. :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 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 @@ -105478,9 +116774,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_users_id_enterprises_get_serialize( authorization=authorization, - v1_troubleshooting_top_sites_by_alerts_post_request=v1_troubleshooting_top_sites_by_alerts_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -105488,7 +116784,7 @@ def v1_troubleshooting_top_sites_by_alerts_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1TroubleshootingTopSitesByAlertsPostResponse", + '200': "V1UsersIdEnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -105497,10 +116793,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_users_id_enterprises_get_serialize( self, authorization, - v1_troubleshooting_top_sites_by_alerts_post_request, + id, _request_auth, _content_type, _headers, @@ -105522,14 +116818,14 @@ def _v1_troubleshooting_top_sites_by_alerts_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_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` @@ -105540,19 +116836,6 @@ def _v1_troubleshooting_top_sites_by_alerts_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] = [ @@ -105560,8 +116843,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='GET', + resource_path='/v1/users/{id}/enterprises', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -105578,11 +116861,10 @@ def _v1_troubleshooting_top_sites_by_alerts_post_serialize( @validate_call - def v1_users_email_password_patch( + def v1_users_id_groups_enterprises_get( 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 ")], + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -105595,17 +116877,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 + ) -> V1UsersIdGroupsEnterprisesGetResponse: + """v1_users_id_groups_enterprises_get - Change password for a user using email and token + Get enterprise-specific groups for a user. - :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 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 @@ -105628,10 +116908,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_users_id_groups_enterprises_get_serialize( + authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -105639,10 +116918,7 @@ def v1_users_email_password_patch( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': None, - '403': None, - '500': None, + '200': "V1UsersIdGroupsEnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -105656,11 +116932,10 @@ def v1_users_email_password_patch( @validate_call - def v1_users_email_password_patch_with_http_info( + def v1_users_id_groups_enterprises_get_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 ")], + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -105673,17 +116948,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[V1UsersIdGroupsEnterprisesGetResponse]: + """v1_users_id_groups_enterprises_get - Change password for a user using email and token + Get enterprise-specific groups for a user. - :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 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 @@ -105706,10 +116979,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_users_id_groups_enterprises_get_serialize( + authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -105717,10 +116989,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': "V1UsersIdGroupsEnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -105734,11 +117003,10 @@ def v1_users_email_password_patch_with_http_info( @validate_call - def v1_users_email_password_patch_without_preload_content( + def v1_users_id_groups_enterprises_get_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 ")], + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -105752,16 +117020,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_users_id_groups_enterprises_get - Change password for a user using email and token + Get enterprise-specific groups for a user. - :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 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 @@ -105784,10 +117050,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_users_id_groups_enterprises_get_serialize( + authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -105795,10 +117060,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': "V1UsersIdGroupsEnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -105807,11 +117069,10 @@ def v1_users_email_password_patch_without_preload_content( return response_data.response - def _v1_users_email_password_patch_serialize( + def _v1_users_id_groups_enterprises_get_serialize( self, - email, - token, - v1_users_email_password_patch_request, + authorization, + id, _request_auth, _content_type, _headers, @@ -105833,34 +117094,24 @@ 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 + if id is not None: + _path_params['id'] = id # 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 - - # 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] = [ @@ -105868,8 +117119,8 @@ def _v1_users_email_password_patch_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/users/{email}/password', + method='GET', + resource_path='/v1/users/{id}/groups/enterprises', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -105886,9 +117137,10 @@ def _v1_users_email_password_patch_serialize( @validate_call - def v1_users_email_recovery_get( + def v1_users_id_groups_get( self, - email: Annotated[StrictStr, Field(description="User email address")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -105901,13 +117153,15 @@ 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 + ) -> V1UsersIdGroupsGetResponse: + """v1_users_id_groups_get - Send password recovery email to user + Get all groups that a specific user belongs to. - :param email: User email address (required) - :type email: str + :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 @@ -105930,8 +117184,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_users_id_groups_get_serialize( + authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -105939,9 +117194,7 @@ def v1_users_email_recovery_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '500': None, + '200': "V1UsersIdGroupsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -105955,9 +117208,10 @@ def v1_users_email_recovery_get( @validate_call - def v1_users_email_recovery_get_with_http_info( + def v1_users_id_groups_get_with_http_info( self, - email: Annotated[StrictStr, Field(description="User email address")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -105970,13 +117224,15 @@ 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[V1UsersIdGroupsGetResponse]: + """v1_users_id_groups_get - Send password recovery email to user + Get all groups that a specific user belongs to. - :param email: User email address (required) - :type email: str + :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 @@ -105999,8 +117255,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_users_id_groups_get_serialize( + authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -106008,9 +117265,7 @@ def v1_users_email_recovery_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '500': None, + '200': "V1UsersIdGroupsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -106024,9 +117279,10 @@ def v1_users_email_recovery_get_with_http_info( @validate_call - def v1_users_email_recovery_get_without_preload_content( + def v1_users_id_groups_get_without_preload_content( self, - email: Annotated[StrictStr, Field(description="User email address")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -106040,12 +117296,14 @@ 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_users_id_groups_get - Send password recovery email to user + Get all groups that a specific user belongs to. - :param email: User email address (required) - :type email: str + :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 @@ -106068,8 +117326,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_users_id_groups_get_serialize( + authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -106077,9 +117336,7 @@ def v1_users_email_recovery_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '400': None, - '500': None, + '200': "V1UsersIdGroupsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -106088,9 +117345,10 @@ def v1_users_email_recovery_get_without_preload_content( return response_data.response - def _v1_users_email_recovery_get_serialize( + def _v1_users_id_groups_get_serialize( self, - email, + authorization, + id, _request_auth, _content_type, _headers, @@ -106112,14 +117370,23 @@ 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 + 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 @@ -106129,7 +117396,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/users/{id}/groups', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -106146,10 +117413,10 @@ def _v1_users_email_recovery_get_serialize( @validate_call - def v1_users_email_verified_patch( + def v1_users_id_groups_root_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 ")], + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -106162,15 +117429,15 @@ 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 + ) -> V1UsersIdGroupsRootGetResponse: + """v1_users_id_groups_root_get - Verify user email using verification token + Get root-level groups for a user. - :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 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 @@ -106193,9 +117460,9 @@ 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_users_id_groups_root_get_serialize( + authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -106203,10 +117470,7 @@ def v1_users_email_verified_patch( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, - '400': None, - '403': None, - '500': None, + '200': "V1UsersIdGroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -106220,10 +117484,10 @@ def v1_users_email_verified_patch( @validate_call - def v1_users_email_verified_patch_with_http_info( + def v1_users_id_groups_root_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 ")], + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -106236,15 +117500,15 @@ 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[V1UsersIdGroupsRootGetResponse]: + """v1_users_id_groups_root_get - Verify user email using verification token + Get root-level groups for a user. - :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 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 @@ -106267,9 +117531,9 @@ 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_users_id_groups_root_get_serialize( + authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -106277,10 +117541,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': "V1UsersIdGroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -106294,10 +117555,10 @@ def v1_users_email_verified_patch_with_http_info( @validate_call - def v1_users_email_verified_patch_without_preload_content( + def v1_users_id_groups_root_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 ")], + id: Annotated[StrictStr, Field(description="userId")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -106311,14 +117572,14 @@ 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_users_id_groups_root_get - Verify user email using verification token + Get root-level groups for a user. - :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 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 @@ -106341,9 +117602,9 @@ 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_users_id_groups_root_get_serialize( + authorization=authorization, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -106351,10 +117612,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': "V1UsersIdGroupsRootGetResponse", } response_data = self.api_client.call_api( *_param, @@ -106363,10 +117621,10 @@ def v1_users_email_verified_patch_without_preload_content( return response_data.response - def _v1_users_email_verified_patch_serialize( + def _v1_users_id_groups_root_get_serialize( self, - email, - token, + authorization, + id, _request_auth, _content_type, _headers, @@ -106388,18 +117646,23 @@ 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 + if id is not None: + _path_params['id'] = id # 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 @@ -106408,8 +117671,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/users/{id}/groups/root', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -106426,10 +117689,11 @@ def _v1_users_email_verified_patch_serialize( @validate_call - def v1_users_get( + def v1_users_id_verify_patch( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Optional[StrictStr] = None, + id: StrictStr, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -106442,15 +117706,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 + ) -> None: + """v1_users_id_verify_patch - Get user information by user IDs with detailed profile data. + Resend account verification email to user. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: + :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 @@ -106473,9 +117739,10 @@ def v1_users_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_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, @@ -106483,7 +117750,7 @@ def v1_users_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -106497,10 +117764,11 @@ def v1_users_get( @validate_call - def v1_users_get_with_http_info( + def v1_users_id_verify_patch_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Optional[StrictStr] = None, + id: StrictStr, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -106513,15 +117781,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[None]: + """v1_users_id_verify_patch - Get user information by user IDs with detailed profile data. + Resend account verification email to user. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: + :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 @@ -106544,9 +117814,10 @@ def v1_users_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_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, @@ -106554,7 +117825,7 @@ def v1_users_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -106568,10 +117839,11 @@ def v1_users_get_with_http_info( @validate_call - def v1_users_get_without_preload_content( + def v1_users_id_verify_patch_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Optional[StrictStr] = None, + id: StrictStr, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -106585,14 +117857,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_users_id_verify_patch - Get user information by user IDs with detailed profile data. + Resend account verification email to user. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: + :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 @@ -106615,9 +117889,10 @@ def v1_users_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_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, @@ -106625,7 +117900,7 @@ def v1_users_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -106634,10 +117909,11 @@ def v1_users_get_without_preload_content( return response_data.response - def _v1_users_get_serialize( + def _v1_users_id_verify_patch_serialize( self, authorization, id, + body, _request_auth, _content_type, _headers, @@ -106659,26 +117935,32 @@ def _v1_users_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - # process the query parameters if id is not None: - - _query_params.append(('id', id)) - + _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 - # 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] = [ @@ -106686,8 +117968,8 @@ def _v1_users_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/users', + method='PATCH', + resource_path='/v1/users/{id}/verify', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -106704,10 +117986,10 @@ def _v1_users_get_serialize( @validate_call - def v1_users_id_delete( + def v1_users_passwords_expire_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -106720,15 +118002,15 @@ 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 + ) -> V1UsersPasswordsExpirePostResponse: + """v1_users_passwords_expire_post - Delete user account. + 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: (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 @@ -106751,9 +118033,9 @@ def v1_users_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_delete_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, @@ -106761,7 +118043,7 @@ def v1_users_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1UsersPasswordsExpirePostResponse", } response_data = self.api_client.call_api( *_param, @@ -106775,10 +118057,10 @@ def v1_users_id_delete( @validate_call - def v1_users_id_delete_with_http_info( + def v1_users_passwords_expire_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -106791,15 +118073,15 @@ 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[V1UsersPasswordsExpirePostResponse]: + """v1_users_passwords_expire_post - Delete user account. + 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: (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 @@ -106822,9 +118104,9 @@ 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_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, @@ -106832,7 +118114,7 @@ def v1_users_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1UsersPasswordsExpirePostResponse", } response_data = self.api_client.call_api( *_param, @@ -106846,10 +118128,10 @@ def v1_users_id_delete_with_http_info( @validate_call - def v1_users_id_delete_without_preload_content( + def v1_users_passwords_expire_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, + v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -106863,14 +118145,14 @@ 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_users_passwords_expire_post - Delete user account. + 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: (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 @@ -106893,9 +118175,9 @@ 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_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, @@ -106903,7 +118185,7 @@ def v1_users_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1UsersPasswordsExpirePostResponse", } response_data = self.api_client.call_api( *_param, @@ -106912,10 +118194,10 @@ def v1_users_id_delete_without_preload_content( return response_data.response - def _v1_users_id_delete_serialize( + def _v1_users_passwords_expire_post_serialize( self, authorization, - id, + v1_users_passwords_expire_post_request, _request_auth, _content_type, _headers, @@ -106937,17 +118219,37 @@ def _v1_users_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_users_passwords_expire_post_request is not None: + _body_params = v1_users_passwords_expire_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] = [ @@ -106955,8 +118257,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/users/passwords/expire', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -106973,10 +118275,10 @@ def _v1_users_id_delete_serialize( @validate_call - def v1_users_id_enterprises_get( + def v1_users_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + v1_users_put_request: V1UsersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -106989,15 +118291,15 @@ 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 + ) -> None: + """v1_users_put - Get all enterprises a specific user can access. + 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: userId (required) - :type id: 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 @@ -107020,9 +118322,9 @@ def v1_users_id_enterprises_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_enterprises_get_serialize( + _param = self._v1_users_put_serialize( authorization=authorization, - id=id, + v1_users_put_request=v1_users_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -107030,7 +118332,7 @@ def v1_users_id_enterprises_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdEnterprisesGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -107044,10 +118346,10 @@ def v1_users_id_enterprises_get( @validate_call - def v1_users_id_enterprises_get_with_http_info( + def v1_users_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + v1_users_put_request: V1UsersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -107060,15 +118362,15 @@ 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]: - """v1_users_id_enterprises_get + ) -> ApiResponse[None]: + """v1_users_put - Get all enterprises a specific user can access. + 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: userId (required) - :type id: 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 @@ -107091,9 +118393,9 @@ def v1_users_id_enterprises_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_enterprises_get_serialize( + _param = self._v1_users_put_serialize( authorization=authorization, - id=id, + v1_users_put_request=v1_users_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -107101,7 +118403,7 @@ def v1_users_id_enterprises_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdEnterprisesGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -107115,10 +118417,10 @@ def v1_users_id_enterprises_get_with_http_info( @validate_call - def v1_users_id_enterprises_get_without_preload_content( + def v1_users_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + v1_users_put_request: V1UsersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -107132,14 +118434,14 @@ 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_put - Get all enterprises a specific user can access. + 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: userId (required) - :type id: 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 @@ -107162,9 +118464,9 @@ 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_put_serialize( authorization=authorization, - id=id, + v1_users_put_request=v1_users_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -107172,7 +118474,7 @@ def v1_users_id_enterprises_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdEnterprisesGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -107181,10 +118483,10 @@ def v1_users_id_enterprises_get_without_preload_content( return response_data.response - def _v1_users_id_enterprises_get_serialize( + def _v1_users_put_serialize( self, authorization, - id, + v1_users_put_request, _request_auth, _content_type, _headers, @@ -107206,24 +118508,30 @@ def _v1_users_id_enterprises_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_put_request is not None: + _body_params = v1_users_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] = [ @@ -107231,8 +118539,8 @@ def _v1_users_id_enterprises_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/users/{id}/enterprises', + method='PUT', + resource_path='/v1/users', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -107249,10 +118557,10 @@ def _v1_users_id_enterprises_get_serialize( @validate_call - def v1_users_id_groups_enterprises_get( + def v1_version_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + v1_version_post_request: V1VersionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -107265,15 +118573,15 @@ 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 + ) -> V1VersionPostResponse: + """v1_version_post - Get enterprise-specific groups for a user. + Update device config version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) - :type id: str + :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 @@ -107296,9 +118604,9 @@ 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_version_post_serialize( authorization=authorization, - id=id, + v1_version_post_request=v1_version_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -107306,7 +118614,7 @@ def v1_users_id_groups_enterprises_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsEnterprisesGetResponse", + '200': "V1VersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -107320,10 +118628,10 @@ def v1_users_id_groups_enterprises_get( @validate_call - def v1_users_id_groups_enterprises_get_with_http_info( + def v1_version_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + v1_version_post_request: V1VersionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -107336,15 +118644,15 @@ 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[V1VersionPostResponse]: + """v1_version_post - Get enterprise-specific groups for a user. + Update device config version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) - :type id: str + :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 @@ -107367,9 +118675,9 @@ 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_version_post_serialize( authorization=authorization, - id=id, + v1_version_post_request=v1_version_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -107377,7 +118685,7 @@ def v1_users_id_groups_enterprises_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsEnterprisesGetResponse", + '200': "V1VersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -107391,10 +118699,10 @@ def v1_users_id_groups_enterprises_get_with_http_info( @validate_call - def v1_users_id_groups_enterprises_get_without_preload_content( + def v1_version_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + v1_version_post_request: V1VersionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -107408,14 +118716,14 @@ 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_version_post - Get enterprise-specific groups for a user. + Update device config version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) - :type id: str + :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 @@ -107438,9 +118746,9 @@ 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_version_post_serialize( authorization=authorization, - id=id, + v1_version_post_request=v1_version_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -107448,7 +118756,7 @@ def v1_users_id_groups_enterprises_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsEnterprisesGetResponse", + '200': "V1VersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -107457,10 +118765,10 @@ def v1_users_id_groups_enterprises_get_without_preload_content( return response_data.response - def _v1_users_id_groups_enterprises_get_serialize( + def _v1_version_post_serialize( self, authorization, - id, + v1_version_post_request, _request_auth, _content_type, _headers, @@ -107482,14 +118790,14 @@ def _v1_users_id_groups_enterprises_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_version_post_request is not None: + _body_params = v1_version_post_request # set the HTTP header `Accept` @@ -107500,6 +118808,19 @@ def _v1_users_id_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] = [ @@ -107507,8 +118828,8 @@ def _v1_users_id_groups_enterprises_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/users/{id}/groups/enterprises', + method='POST', + resource_path='/v1/version', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -107525,10 +118846,9 @@ def _v1_users_id_groups_enterprises_get_serialize( @validate_call - def v1_users_id_groups_get( + def v1_zones_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)], @@ -107541,15 +118861,13 @@ 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 + ) -> V1ZonesGetResponse: + """v1_zones_get - Get all groups that a specific user belongs to. + Get Zones for the current enterprise :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 @@ -107572,9 +118890,8 @@ def v1_users_id_groups_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_id_groups_get_serialize( + _param = self._v1_zones_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -107582,7 +118899,7 @@ def v1_users_id_groups_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsGetResponse", + '200': "V1ZonesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -107596,10 +118913,9 @@ def v1_users_id_groups_get( @validate_call - def v1_users_id_groups_get_with_http_info( + def v1_zones_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)], @@ -107612,15 +118928,13 @@ 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[V1ZonesGetResponse]: + """v1_zones_get - Get all groups that a specific user belongs to. + Get Zones for the current enterprise :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 @@ -107643,9 +118957,8 @@ 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_zones_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -107653,7 +118966,7 @@ def v1_users_id_groups_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsGetResponse", + '200': "V1ZonesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -107667,10 +118980,9 @@ def v1_users_id_groups_get_with_http_info( @validate_call - def v1_users_id_groups_get_without_preload_content( + def v1_zones_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)], @@ -107684,14 +118996,12 @@ 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_zones_get - Get all groups that a specific user belongs to. + Get Zones for the current enterprise :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 @@ -107714,9 +119024,8 @@ 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_zones_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -107724,7 +119033,7 @@ def v1_users_id_groups_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsGetResponse", + '200': "V1ZonesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -107733,10 +119042,9 @@ def v1_users_id_groups_get_without_preload_content( return response_data.response - def _v1_users_id_groups_get_serialize( + def _v1_zones_get_serialize( self, authorization, - id, _request_auth, _content_type, _headers, @@ -107758,8 +119066,6 @@ def _v1_users_id_groups_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: @@ -107784,7 +119090,7 @@ def _v1_users_id_groups_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/users/{id}/groups', + resource_path='/v1/zones', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -107801,10 +119107,19 @@ def _v1_users_id_groups_get_serialize( @validate_call - def v1_users_id_groups_root_get( + def v1_ztagent_agents_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + created_date_end: Optional[StrictStr] = None, + created_date_start: Optional[StrictStr] = None, + endpoints: Optional[List[StrictStr]] = None, + hostname: Optional[StrictStr] = None, + limit: Optional[StrictInt] = None, + machine_id: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + tenant_id: Optional[StrictStr] = None, + updated_date_end: Optional[StrictStr] = None, + updated_date_start: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -107817,15 +119132,33 @@ 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 + ) -> V1ZtagentAgentsGetResponse: + """v1_ztagent_agents_get - Get root-level groups for a user. + List Conceal agents (devices) with pagination and filters. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) - :type id: str + :param created_date_end: + :type created_date_end: str + :param created_date_start: + :type created_date_start: str + :param endpoints: + :type endpoints: List[str] + :param hostname: + :type hostname: str + :param limit: + :type limit: int + :param machine_id: + :type machine_id: str + :param page: + :type page: int + :param tenant_id: + :type tenant_id: str + :param updated_date_end: + :type updated_date_end: str + :param updated_date_start: + :type updated_date_start: 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 @@ -107848,9 +119181,18 @@ 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_ztagent_agents_get_serialize( authorization=authorization, - id=id, + created_date_end=created_date_end, + created_date_start=created_date_start, + endpoints=endpoints, + hostname=hostname, + limit=limit, + machine_id=machine_id, + page=page, + tenant_id=tenant_id, + updated_date_end=updated_date_end, + updated_date_start=updated_date_start, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -107858,7 +119200,7 @@ def v1_users_id_groups_root_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsRootGetResponse", + '200': "V1ZtagentAgentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -107872,10 +119214,19 @@ def v1_users_id_groups_root_get( @validate_call - def v1_users_id_groups_root_get_with_http_info( + def v1_ztagent_agents_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + created_date_end: Optional[StrictStr] = None, + created_date_start: Optional[StrictStr] = None, + endpoints: Optional[List[StrictStr]] = None, + hostname: Optional[StrictStr] = None, + limit: Optional[StrictInt] = None, + machine_id: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + tenant_id: Optional[StrictStr] = None, + updated_date_end: Optional[StrictStr] = None, + updated_date_start: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -107888,15 +119239,33 @@ 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[V1ZtagentAgentsGetResponse]: + """v1_ztagent_agents_get - Get root-level groups for a user. + List Conceal agents (devices) with pagination and filters. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) - :type id: str + :param created_date_end: + :type created_date_end: str + :param created_date_start: + :type created_date_start: str + :param endpoints: + :type endpoints: List[str] + :param hostname: + :type hostname: str + :param limit: + :type limit: int + :param machine_id: + :type machine_id: str + :param page: + :type page: int + :param tenant_id: + :type tenant_id: str + :param updated_date_end: + :type updated_date_end: str + :param updated_date_start: + :type updated_date_start: 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 @@ -107919,9 +119288,18 @@ 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_ztagent_agents_get_serialize( authorization=authorization, - id=id, + created_date_end=created_date_end, + created_date_start=created_date_start, + endpoints=endpoints, + hostname=hostname, + limit=limit, + machine_id=machine_id, + page=page, + tenant_id=tenant_id, + updated_date_end=updated_date_end, + updated_date_start=updated_date_start, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -107929,7 +119307,7 @@ def v1_users_id_groups_root_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsRootGetResponse", + '200': "V1ZtagentAgentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -107943,10 +119321,19 @@ def v1_users_id_groups_root_get_with_http_info( @validate_call - def v1_users_id_groups_root_get_without_preload_content( + def v1_ztagent_agents_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: Annotated[StrictStr, Field(description="userId")], + created_date_end: Optional[StrictStr] = None, + created_date_start: Optional[StrictStr] = None, + endpoints: Optional[List[StrictStr]] = None, + hostname: Optional[StrictStr] = None, + limit: Optional[StrictInt] = None, + machine_id: Optional[StrictStr] = None, + page: Optional[StrictInt] = None, + tenant_id: Optional[StrictStr] = None, + updated_date_end: Optional[StrictStr] = None, + updated_date_start: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -107960,14 +119347,32 @@ 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_ztagent_agents_get - Get root-level groups for a user. + List Conceal agents (devices) with pagination and filters. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: userId (required) - :type id: str + :param created_date_end: + :type created_date_end: str + :param created_date_start: + :type created_date_start: str + :param endpoints: + :type endpoints: List[str] + :param hostname: + :type hostname: str + :param limit: + :type limit: int + :param machine_id: + :type machine_id: str + :param page: + :type page: int + :param tenant_id: + :type tenant_id: str + :param updated_date_end: + :type updated_date_end: str + :param updated_date_start: + :type updated_date_start: 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 @@ -107990,9 +119395,18 @@ 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_ztagent_agents_get_serialize( authorization=authorization, - id=id, + created_date_end=created_date_end, + created_date_start=created_date_start, + endpoints=endpoints, + hostname=hostname, + limit=limit, + machine_id=machine_id, + page=page, + tenant_id=tenant_id, + updated_date_end=updated_date_end, + updated_date_start=updated_date_start, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108000,7 +119414,7 @@ def v1_users_id_groups_root_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersIdGroupsRootGetResponse", + '200': "V1ZtagentAgentsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -108009,10 +119423,19 @@ def v1_users_id_groups_root_get_without_preload_content( return response_data.response - def _v1_users_id_groups_root_get_serialize( + def _v1_ztagent_agents_get_serialize( self, authorization, - id, + created_date_end, + created_date_start, + endpoints, + hostname, + limit, + machine_id, + page, + tenant_id, + updated_date_end, + updated_date_start, _request_auth, _content_type, _headers, @@ -108022,6 +119445,7 @@ def _v1_users_id_groups_root_get_serialize( _host = None _collection_formats: Dict[str, str] = { + 'endpoints': 'multi', } _path_params: Dict[str, str] = {} @@ -108034,9 +119458,47 @@ 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 + if created_date_end is not None: + + _query_params.append(('createdDateEnd', created_date_end)) + + if created_date_start is not None: + + _query_params.append(('createdDateStart', created_date_start)) + + if endpoints is not None: + + _query_params.append(('endpoints', endpoints)) + + if hostname is not None: + + _query_params.append(('hostname', hostname)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if machine_id is not None: + + _query_params.append(('machineId', machine_id)) + + if page is not None: + + _query_params.append(('page', page)) + + if tenant_id is not None: + + _query_params.append(('tenantId', tenant_id)) + + if updated_date_end is not None: + + _query_params.append(('updatedDateEnd', updated_date_end)) + + if updated_date_start is not None: + + _query_params.append(('updatedDateStart', updated_date_start)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -108060,7 +119522,7 @@ def _v1_users_id_groups_root_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/users/{id}/groups/root', + resource_path='/v1/ztagent/agents', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -108077,11 +119539,10 @@ def _v1_users_id_groups_root_get_serialize( @validate_call - def v1_users_id_verify_patch( + def v1_ztagent_bindings_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - body: Dict[str, Any], + enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -108094,17 +119555,15 @@ def v1_users_id_verify_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_id_verify_patch + ) -> V1ZtagentBindingsGetResponse: + """v1_ztagent_bindings_get - Resend account verification email to user. + Return the ZTAgent integration binding for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param body: (required) - :type body: object + :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 @@ -108127,10 +119586,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_ztagent_bindings_get_serialize( authorization=authorization, - id=id, - body=body, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108138,7 +119596,7 @@ def v1_users_id_verify_patch( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ZtagentBindingsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -108152,11 +119610,10 @@ def v1_users_id_verify_patch( @validate_call - def v1_users_id_verify_patch_with_http_info( + def v1_ztagent_bindings_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - body: Dict[str, Any], + enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -108169,17 +119626,15 @@ def v1_users_id_verify_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_id_verify_patch + ) -> ApiResponse[V1ZtagentBindingsGetResponse]: + """v1_ztagent_bindings_get - Resend account verification email to user. + Return the ZTAgent integration binding for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param body: (required) - :type body: object + :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 @@ -108202,10 +119657,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_ztagent_bindings_get_serialize( authorization=authorization, - id=id, - body=body, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108213,7 +119667,7 @@ def v1_users_id_verify_patch_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ZtagentBindingsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -108227,11 +119681,10 @@ def v1_users_id_verify_patch_with_http_info( @validate_call - def v1_users_id_verify_patch_without_preload_content( + def v1_ztagent_bindings_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictStr, - body: Dict[str, Any], + enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -108245,16 +119698,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_ztagent_bindings_get - Resend account verification email to user. + Return the ZTAgent integration binding for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: str - :param body: (required) - :type body: object + :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 @@ -108277,10 +119728,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_ztagent_bindings_get_serialize( authorization=authorization, - id=id, - body=body, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108288,7 +119738,7 @@ def v1_users_id_verify_patch_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ZtagentBindingsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -108297,11 +119747,10 @@ def v1_users_id_verify_patch_without_preload_content( return response_data.response - def _v1_users_id_verify_patch_serialize( + def _v1_ztagent_bindings_get_serialize( self, authorization, - id, - body, + enterprise_id, _request_auth, _content_type, _headers, @@ -108323,32 +119772,26 @@ 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 + 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 body is not None: - _body_params = body - - # 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] = [ @@ -108356,8 +119799,8 @@ def _v1_users_id_verify_patch_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/users/{id}/verify', + method='GET', + resource_path='/v1/ztagent/bindings', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -108374,10 +119817,10 @@ def _v1_users_id_verify_patch_serialize( @validate_call - def v1_users_passwords_expire_post( + def v1_ztagent_bindings_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, + v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -108390,15 +119833,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 + ) -> object: + """v1_ztagent_bindings_put - Expire passwords for multiple users and send password reset emails (Graphiant cloud only). + 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_users_passwords_expire_post_request: (required) - :type v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest + :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 @@ -108421,9 +119864,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_ztagent_bindings_put_serialize( authorization=authorization, - v1_users_passwords_expire_post_request=v1_users_passwords_expire_post_request, + v1_ztagent_bindings_put_request=v1_ztagent_bindings_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108431,7 +119874,7 @@ def v1_users_passwords_expire_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersPasswordsExpirePostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -108445,10 +119888,10 @@ def v1_users_passwords_expire_post( @validate_call - def v1_users_passwords_expire_post_with_http_info( + def v1_ztagent_bindings_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, + v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -108461,15 +119904,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[object]: + """v1_ztagent_bindings_put - Expire passwords for multiple users and send password reset emails (Graphiant cloud only). + 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_users_passwords_expire_post_request: (required) - :type v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest + :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 @@ -108492,9 +119935,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_ztagent_bindings_put_serialize( authorization=authorization, - v1_users_passwords_expire_post_request=v1_users_passwords_expire_post_request, + v1_ztagent_bindings_put_request=v1_ztagent_bindings_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108502,7 +119945,7 @@ def v1_users_passwords_expire_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersPasswordsExpirePostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -108516,10 +119959,10 @@ def v1_users_passwords_expire_post_with_http_info( @validate_call - def v1_users_passwords_expire_post_without_preload_content( + def v1_ztagent_bindings_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest, + v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -108533,14 +119976,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_ztagent_bindings_put - Expire passwords for multiple users and send password reset emails (Graphiant cloud only). + 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_users_passwords_expire_post_request: (required) - :type v1_users_passwords_expire_post_request: V1UsersPasswordsExpirePostRequest + :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 @@ -108563,9 +120006,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_ztagent_bindings_put_serialize( authorization=authorization, - v1_users_passwords_expire_post_request=v1_users_passwords_expire_post_request, + v1_ztagent_bindings_put_request=v1_ztagent_bindings_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108573,7 +120016,7 @@ def v1_users_passwords_expire_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1UsersPasswordsExpirePostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -108582,10 +120025,10 @@ def v1_users_passwords_expire_post_without_preload_content( return response_data.response - def _v1_users_passwords_expire_post_serialize( + def _v1_ztagent_bindings_put_serialize( self, authorization, - v1_users_passwords_expire_post_request, + v1_ztagent_bindings_put_request, _request_auth, _content_type, _headers, @@ -108613,8 +120056,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_ztagent_bindings_put_request is not None: + _body_params = v1_ztagent_bindings_put_request # set the HTTP header `Accept` @@ -108645,8 +120088,8 @@ def _v1_users_passwords_expire_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/users/passwords/expire', + method='PUT', + resource_path='/v1/ztagent/bindings', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -108663,10 +120106,10 @@ def _v1_users_passwords_expire_post_serialize( @validate_call - def v1_users_put( + def v2_ack_createupdate_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_put_request: V1UsersPutRequest, + v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -108679,15 +120122,14 @@ 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 + ) -> object: + """v2_ack_createupdate_post - 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 v1_users_put_request: (required) - :type v1_users_put_request: V1UsersPutRequest + :param v2_ack_createupdate_post_request: (required) + :type v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -108710,9 +120152,9 @@ def v1_users_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_put_serialize( + _param = self._v2_ack_createupdate_post_serialize( authorization=authorization, - v1_users_put_request=v1_users_put_request, + v2_ack_createupdate_post_request=v2_ack_createupdate_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108720,7 +120162,7 @@ def v1_users_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -108734,10 +120176,10 @@ def v1_users_put( @validate_call - def v1_users_put_with_http_info( + def v2_ack_createupdate_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_put_request: V1UsersPutRequest, + v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -108750,15 +120192,14 @@ 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[object]: + """v2_ack_createupdate_post - 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 v1_users_put_request: (required) - :type v1_users_put_request: V1UsersPutRequest + :param v2_ack_createupdate_post_request: (required) + :type v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -108781,9 +120222,9 @@ def v1_users_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_put_serialize( + _param = self._v2_ack_createupdate_post_serialize( authorization=authorization, - v1_users_put_request=v1_users_put_request, + v2_ack_createupdate_post_request=v2_ack_createupdate_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108791,7 +120232,7 @@ def v1_users_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -108805,10 +120246,10 @@ def v1_users_put_with_http_info( @validate_call - def v1_users_put_without_preload_content( + def v2_ack_createupdate_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_users_put_request: V1UsersPutRequest, + v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -108822,14 +120263,13 @@ 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 + """v2_ack_createupdate_post - 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 v1_users_put_request: (required) - :type v1_users_put_request: V1UsersPutRequest + :param v2_ack_createupdate_post_request: (required) + :type v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -108852,9 +120292,9 @@ def v1_users_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_users_put_serialize( + _param = self._v2_ack_createupdate_post_serialize( authorization=authorization, - v1_users_put_request=v1_users_put_request, + v2_ack_createupdate_post_request=v2_ack_createupdate_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -108862,7 +120302,7 @@ def v1_users_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -108871,10 +120311,10 @@ def v1_users_put_without_preload_content( return response_data.response - def _v1_users_put_serialize( + def _v2_ack_createupdate_post_serialize( self, authorization, - v1_users_put_request, + v2_ack_createupdate_post_request, _request_auth, _content_type, _headers, @@ -108902,10 +120342,17 @@ 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 + if v2_ack_createupdate_post_request is not None: + _body_params = v2_ack_createupdate_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: @@ -108927,8 +120374,8 @@ def _v1_users_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/users', + method='POST', + resource_path='/v2/ack/createupdate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -108945,10 +120392,10 @@ def _v1_users_put_serialize( @validate_call - def v1_version_post( + def v2_aggregated_notification_enable_disable_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_version_post_request: V1VersionPostRequest, + v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -108961,15 +120408,14 @@ 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 + ) -> object: + """v2_aggregated_notification_enable_disable_post - Update device config version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_version_post_request: (required) - :type v1_version_post_request: V1VersionPostRequest + :param v2_aggregated_notification_enable_disable_post_request: (required) + :type v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -108992,9 +120438,9 @@ def v1_version_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_version_post_serialize( + _param = self._v2_aggregated_notification_enable_disable_post_serialize( authorization=authorization, - v1_version_post_request=v1_version_post_request, + v2_aggregated_notification_enable_disable_post_request=v2_aggregated_notification_enable_disable_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -109002,7 +120448,7 @@ def v1_version_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VersionPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -109016,10 +120462,10 @@ def v1_version_post( @validate_call - def v1_version_post_with_http_info( + def v2_aggregated_notification_enable_disable_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_version_post_request: V1VersionPostRequest, + v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -109032,15 +120478,14 @@ 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[object]: + """v2_aggregated_notification_enable_disable_post - Update device config version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_version_post_request: (required) - :type v1_version_post_request: V1VersionPostRequest + :param v2_aggregated_notification_enable_disable_post_request: (required) + :type v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -109063,9 +120508,9 @@ def v1_version_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_version_post_serialize( + _param = self._v2_aggregated_notification_enable_disable_post_serialize( authorization=authorization, - v1_version_post_request=v1_version_post_request, + v2_aggregated_notification_enable_disable_post_request=v2_aggregated_notification_enable_disable_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -109073,7 +120518,7 @@ def v1_version_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VersionPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -109087,10 +120532,10 @@ def v1_version_post_with_http_info( @validate_call - def v1_version_post_without_preload_content( + def v2_aggregated_notification_enable_disable_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_version_post_request: V1VersionPostRequest, + v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -109104,14 +120549,13 @@ 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 + """v2_aggregated_notification_enable_disable_post - Update device config version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_version_post_request: (required) - :type v1_version_post_request: V1VersionPostRequest + :param v2_aggregated_notification_enable_disable_post_request: (required) + :type v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -109134,9 +120578,9 @@ def v1_version_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_version_post_serialize( + _param = self._v2_aggregated_notification_enable_disable_post_serialize( authorization=authorization, - v1_version_post_request=v1_version_post_request, + v2_aggregated_notification_enable_disable_post_request=v2_aggregated_notification_enable_disable_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -109144,7 +120588,7 @@ def v1_version_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1VersionPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -109153,10 +120597,10 @@ def v1_version_post_without_preload_content( return response_data.response - def _v1_version_post_serialize( + def _v2_aggregated_notification_enable_disable_post_serialize( self, authorization, - v1_version_post_request, + v2_aggregated_notification_enable_disable_post_request, _request_auth, _content_type, _headers, @@ -109184,8 +120628,8 @@ def _v1_version_post_serialize( _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 + if v2_aggregated_notification_enable_disable_post_request is not None: + _body_params = v2_aggregated_notification_enable_disable_post_request # set the HTTP header `Accept` @@ -109217,7 +120661,7 @@ def _v1_version_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/version', + resource_path='/v2/aggregated-notification/enable-disable', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -109234,7 +120678,7 @@ def _v1_version_post_serialize( @validate_call - def v1_zones_get( + def v2_aggregated_notification_get_state_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -109249,10 +120693,9 @@ 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 + ) -> V2AggregatedNotificationGetStateGetResponse: + """v2_aggregated_notification_get_state_get - Get Zones for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -109278,7 +120721,7 @@ def v1_zones_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_zones_get_serialize( + _param = self._v2_aggregated_notification_get_state_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -109287,7 +120730,7 @@ def v1_zones_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ZonesGetResponse", + '200': "V2AggregatedNotificationGetStateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -109301,7 +120744,7 @@ def v1_zones_get( @validate_call - def v1_zones_get_with_http_info( + def v2_aggregated_notification_get_state_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -109316,10 +120759,9 @@ 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[V2AggregatedNotificationGetStateGetResponse]: + """v2_aggregated_notification_get_state_get - Get Zones for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -109345,7 +120787,7 @@ def v1_zones_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_zones_get_serialize( + _param = self._v2_aggregated_notification_get_state_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -109354,7 +120796,7 @@ def v1_zones_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ZonesGetResponse", + '200': "V2AggregatedNotificationGetStateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -109368,7 +120810,7 @@ def v1_zones_get_with_http_info( @validate_call - def v1_zones_get_without_preload_content( + def v2_aggregated_notification_get_state_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -109384,9 +120826,8 @@ 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 + """v2_aggregated_notification_get_state_get - Get Zones for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -109412,7 +120853,7 @@ def v1_zones_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_zones_get_serialize( + _param = self._v2_aggregated_notification_get_state_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -109421,7 +120862,7 @@ def v1_zones_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ZonesGetResponse", + '200': "V2AggregatedNotificationGetStateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -109430,7 +120871,7 @@ def v1_zones_get_without_preload_content( return response_data.response - def _v1_zones_get_serialize( + def _v2_aggregated_notification_get_state_get_serialize( self, authorization, _request_auth, @@ -109478,7 +120919,7 @@ def _v1_zones_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/zones', + resource_path='/v2/aggregated-notification/get-state', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -109495,10 +120936,9 @@ def _v1_zones_get_serialize( @validate_call - def v1_ztagent_bindings_get( + def v2_allowlist_by_enterprise_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -109511,15 +120951,12 @@ def v1_ztagent_bindings_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1ZtagentBindingsGetResponse: - """v1_ztagent_bindings_get + ) -> V2AllowlistByEnterpriseGetResponse: + """v2_allowlist_by_enterprise_get - Return the ZTAgent integration binding for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 @@ -109542,9 +120979,8 @@ def v1_ztagent_bindings_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_ztagent_bindings_get_serialize( + _param = self._v2_allowlist_by_enterprise_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -109552,7 +120988,7 @@ def v1_ztagent_bindings_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ZtagentBindingsGetResponse", + '200': "V2AllowlistByEnterpriseGetResponse", } response_data = self.api_client.call_api( *_param, @@ -109566,10 +121002,9 @@ def v1_ztagent_bindings_get( @validate_call - def v1_ztagent_bindings_get_with_http_info( + def v2_allowlist_by_enterprise_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -109582,15 +121017,12 @@ def v1_ztagent_bindings_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[V1ZtagentBindingsGetResponse]: - """v1_ztagent_bindings_get + ) -> ApiResponse[V2AllowlistByEnterpriseGetResponse]: + """v2_allowlist_by_enterprise_get - Return the ZTAgent integration binding for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 @@ -109613,9 +121045,8 @@ def v1_ztagent_bindings_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_ztagent_bindings_get_serialize( + _param = self._v2_allowlist_by_enterprise_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -109623,7 +121054,7 @@ def v1_ztagent_bindings_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ZtagentBindingsGetResponse", + '200': "V2AllowlistByEnterpriseGetResponse", } response_data = self.api_client.call_api( *_param, @@ -109637,10 +121068,9 @@ def v1_ztagent_bindings_get_with_http_info( @validate_call - def v1_ztagent_bindings_get_without_preload_content( + def v2_allowlist_by_enterprise_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -109654,14 +121084,11 @@ def v1_ztagent_bindings_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_ztagent_bindings_get + """v2_allowlist_by_enterprise_get - Return the ZTAgent integration binding for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :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 @@ -109684,9 +121111,8 @@ def v1_ztagent_bindings_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_ztagent_bindings_get_serialize( + _param = self._v2_allowlist_by_enterprise_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -109694,7 +121120,7 @@ def v1_ztagent_bindings_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ZtagentBindingsGetResponse", + '200': "V2AllowlistByEnterpriseGetResponse", } response_data = self.api_client.call_api( *_param, @@ -109703,10 +121129,9 @@ def v1_ztagent_bindings_get_without_preload_content( return response_data.response - def _v1_ztagent_bindings_get_serialize( + def _v2_allowlist_by_enterprise_get_serialize( self, authorization, - enterprise_id, _request_auth, _content_type, _headers, @@ -109729,10 +121154,6 @@ def _v1_ztagent_bindings_get_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 @@ -109756,7 +121177,7 @@ def _v1_ztagent_bindings_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/ztagent/bindings', + resource_path='/v2/allowlist-by-enterprise', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -109773,10 +121194,10 @@ def _v1_ztagent_bindings_get_serialize( @validate_call - def v1_ztagent_bindings_put( + def v2_allowlist_create_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest, + v2_allowlist_create_post_request: V2AllowlistCreatePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -109790,14 +121211,13 @@ def v1_ztagent_bindings_put( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """v1_ztagent_bindings_put + """v2_allowlist_create_post - 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 v2_allowlist_create_post_request: (required) + :type v2_allowlist_create_post_request: V2AllowlistCreatePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -109820,9 +121240,9 @@ def v1_ztagent_bindings_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_ztagent_bindings_put_serialize( + _param = self._v2_allowlist_create_post_serialize( authorization=authorization, - v1_ztagent_bindings_put_request=v1_ztagent_bindings_put_request, + v2_allowlist_create_post_request=v2_allowlist_create_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -109844,10 +121264,10 @@ def v1_ztagent_bindings_put( @validate_call - def v1_ztagent_bindings_put_with_http_info( + def v2_allowlist_create_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest, + v2_allowlist_create_post_request: V2AllowlistCreatePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -109861,14 +121281,13 @@ def v1_ztagent_bindings_put_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """v1_ztagent_bindings_put + """v2_allowlist_create_post - 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 v2_allowlist_create_post_request: (required) + :type v2_allowlist_create_post_request: V2AllowlistCreatePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -109891,9 +121310,9 @@ def v1_ztagent_bindings_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_ztagent_bindings_put_serialize( + _param = self._v2_allowlist_create_post_serialize( authorization=authorization, - v1_ztagent_bindings_put_request=v1_ztagent_bindings_put_request, + v2_allowlist_create_post_request=v2_allowlist_create_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -109915,10 +121334,10 @@ def v1_ztagent_bindings_put_with_http_info( @validate_call - def v1_ztagent_bindings_put_without_preload_content( + def v2_allowlist_create_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_ztagent_bindings_put_request: V1ZtagentBindingsPutRequest, + v2_allowlist_create_post_request: V2AllowlistCreatePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -109932,14 +121351,13 @@ def v1_ztagent_bindings_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_ztagent_bindings_put + """v2_allowlist_create_post - 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 v2_allowlist_create_post_request: (required) + :type v2_allowlist_create_post_request: V2AllowlistCreatePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -109962,9 +121380,9 @@ def v1_ztagent_bindings_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_ztagent_bindings_put_serialize( + _param = self._v2_allowlist_create_post_serialize( authorization=authorization, - v1_ztagent_bindings_put_request=v1_ztagent_bindings_put_request, + v2_allowlist_create_post_request=v2_allowlist_create_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -109981,10 +121399,10 @@ def v1_ztagent_bindings_put_without_preload_content( return response_data.response - def _v1_ztagent_bindings_put_serialize( + def _v2_allowlist_create_post_serialize( self, authorization, - v1_ztagent_bindings_put_request, + v2_allowlist_create_post_request, _request_auth, _content_type, _headers, @@ -110012,8 +121430,8 @@ def _v1_ztagent_bindings_put_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 + if v2_allowlist_create_post_request is not None: + _body_params = v2_allowlist_create_post_request # set the HTTP header `Accept` @@ -110044,8 +121462,8 @@ def _v1_ztagent_bindings_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/ztagent/bindings', + method='POST', + resource_path='/v2/allowlist/create', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -110062,10 +121480,10 @@ def _v1_ztagent_bindings_put_serialize( @validate_call - def v2_ack_createupdate_post( + def v2_allowlist_deletebyalertid_alert_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest, + alert_id: Annotated[StrictStr, Field(description="Alert id of the alert to delete allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -110079,13 +121497,13 @@ def v2_ack_createupdate_post( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """v2_ack_createupdate_post + """v2_allowlist_deletebyalertid_alert_id_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_ack_createupdate_post_request: (required) - :type v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest + :param alert_id: Alert id of the alert to delete allowlist/mutelist for (required) + :type alert_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 @@ -110108,9 +121526,9 @@ def v2_ack_createupdate_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_ack_createupdate_post_serialize( + _param = self._v2_allowlist_deletebyalertid_alert_id_delete_serialize( authorization=authorization, - v2_ack_createupdate_post_request=v2_ack_createupdate_post_request, + alert_id=alert_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110132,10 +121550,10 @@ def v2_ack_createupdate_post( @validate_call - def v2_ack_createupdate_post_with_http_info( + def v2_allowlist_deletebyalertid_alert_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest, + alert_id: Annotated[StrictStr, Field(description="Alert id of the alert to delete allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -110149,13 +121567,13 @@ def v2_ack_createupdate_post_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """v2_ack_createupdate_post + """v2_allowlist_deletebyalertid_alert_id_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_ack_createupdate_post_request: (required) - :type v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest + :param alert_id: Alert id of the alert to delete allowlist/mutelist for (required) + :type alert_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 @@ -110178,9 +121596,9 @@ def v2_ack_createupdate_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_ack_createupdate_post_serialize( + _param = self._v2_allowlist_deletebyalertid_alert_id_delete_serialize( authorization=authorization, - v2_ack_createupdate_post_request=v2_ack_createupdate_post_request, + alert_id=alert_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110202,10 +121620,10 @@ def v2_ack_createupdate_post_with_http_info( @validate_call - def v2_ack_createupdate_post_without_preload_content( + def v2_allowlist_deletebyalertid_alert_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest, + alert_id: Annotated[StrictStr, Field(description="Alert id of the alert to delete allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -110219,13 +121637,13 @@ def v2_ack_createupdate_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_ack_createupdate_post + """v2_allowlist_deletebyalertid_alert_id_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_ack_createupdate_post_request: (required) - :type v2_ack_createupdate_post_request: V2AckCreateupdatePostRequest + :param alert_id: Alert id of the alert to delete allowlist/mutelist for (required) + :type alert_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 @@ -110248,9 +121666,9 @@ def v2_ack_createupdate_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_ack_createupdate_post_serialize( + _param = self._v2_allowlist_deletebyalertid_alert_id_delete_serialize( authorization=authorization, - v2_ack_createupdate_post_request=v2_ack_createupdate_post_request, + alert_id=alert_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110267,10 +121685,10 @@ def v2_ack_createupdate_post_without_preload_content( return response_data.response - def _v2_ack_createupdate_post_serialize( + def _v2_allowlist_deletebyalertid_alert_id_delete_serialize( self, authorization, - v2_ack_createupdate_post_request, + alert_id, _request_auth, _content_type, _headers, @@ -110292,14 +121710,14 @@ def _v2_ack_createupdate_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if alert_id is not None: + _path_params['alertId'] = alert_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 v2_ack_createupdate_post_request is not None: - _body_params = v2_ack_createupdate_post_request # set the HTTP header `Accept` @@ -110310,19 +121728,6 @@ def _v2_ack_createupdate_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] = [ @@ -110330,8 +121735,8 @@ def _v2_ack_createupdate_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v2/ack/createupdate', + method='DELETE', + resource_path='/v2/allowlist/deletebyalertid/{alertId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -110348,10 +121753,10 @@ def _v2_ack_createupdate_post_serialize( @validate_call - def v2_aggregated_notification_enable_disable_post( + def v2_allowlist_deletebyentityid_entity_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest, + entity_id: Annotated[StrictStr, Field(description="Entity id of the alert to delete allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -110365,13 +121770,13 @@ def v2_aggregated_notification_enable_disable_post( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """v2_aggregated_notification_enable_disable_post + """v2_allowlist_deletebyentityid_entity_id_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_aggregated_notification_enable_disable_post_request: (required) - :type v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest + :param entity_id: Entity id of the alert to delete allowlist/mutelist for (required) + :type entity_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 @@ -110394,9 +121799,9 @@ def v2_aggregated_notification_enable_disable_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_aggregated_notification_enable_disable_post_serialize( + _param = self._v2_allowlist_deletebyentityid_entity_id_delete_serialize( authorization=authorization, - v2_aggregated_notification_enable_disable_post_request=v2_aggregated_notification_enable_disable_post_request, + entity_id=entity_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110418,10 +121823,10 @@ def v2_aggregated_notification_enable_disable_post( @validate_call - def v2_aggregated_notification_enable_disable_post_with_http_info( + def v2_allowlist_deletebyentityid_entity_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest, + entity_id: Annotated[StrictStr, Field(description="Entity id of the alert to delete allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -110435,13 +121840,13 @@ def v2_aggregated_notification_enable_disable_post_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """v2_aggregated_notification_enable_disable_post + """v2_allowlist_deletebyentityid_entity_id_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_aggregated_notification_enable_disable_post_request: (required) - :type v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest + :param entity_id: Entity id of the alert to delete allowlist/mutelist for (required) + :type entity_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 @@ -110464,9 +121869,9 @@ def v2_aggregated_notification_enable_disable_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_aggregated_notification_enable_disable_post_serialize( + _param = self._v2_allowlist_deletebyentityid_entity_id_delete_serialize( authorization=authorization, - v2_aggregated_notification_enable_disable_post_request=v2_aggregated_notification_enable_disable_post_request, + entity_id=entity_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110488,10 +121893,10 @@ def v2_aggregated_notification_enable_disable_post_with_http_info( @validate_call - def v2_aggregated_notification_enable_disable_post_without_preload_content( + def v2_allowlist_deletebyentityid_entity_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest, + entity_id: Annotated[StrictStr, Field(description="Entity id of the alert to delete allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -110505,13 +121910,13 @@ def v2_aggregated_notification_enable_disable_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_aggregated_notification_enable_disable_post + """v2_allowlist_deletebyentityid_entity_id_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_aggregated_notification_enable_disable_post_request: (required) - :type v2_aggregated_notification_enable_disable_post_request: V2AggregatedNotificationEnableDisablePostRequest + :param entity_id: Entity id of the alert to delete allowlist/mutelist for (required) + :type entity_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 @@ -110534,9 +121939,9 @@ def v2_aggregated_notification_enable_disable_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_aggregated_notification_enable_disable_post_serialize( + _param = self._v2_allowlist_deletebyentityid_entity_id_delete_serialize( authorization=authorization, - v2_aggregated_notification_enable_disable_post_request=v2_aggregated_notification_enable_disable_post_request, + entity_id=entity_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110553,10 +121958,10 @@ def v2_aggregated_notification_enable_disable_post_without_preload_content( return response_data.response - def _v2_aggregated_notification_enable_disable_post_serialize( + def _v2_allowlist_deletebyentityid_entity_id_delete_serialize( self, authorization, - v2_aggregated_notification_enable_disable_post_request, + entity_id, _request_auth, _content_type, _headers, @@ -110578,14 +121983,14 @@ def _v2_aggregated_notification_enable_disable_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if entity_id is not None: + _path_params['entityId'] = entity_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 v2_aggregated_notification_enable_disable_post_request is not None: - _body_params = v2_aggregated_notification_enable_disable_post_request # set the HTTP header `Accept` @@ -110596,19 +122001,6 @@ def _v2_aggregated_notification_enable_disable_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] = [ @@ -110616,8 +122008,8 @@ def _v2_aggregated_notification_enable_disable_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v2/aggregated-notification/enable-disable', + method='DELETE', + resource_path='/v2/allowlist/deletebyentityid/{entityId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -110634,9 +122026,10 @@ def _v2_aggregated_notification_enable_disable_post_serialize( @validate_call - def v2_aggregated_notification_get_state_get( + def v2_allowlist_rule_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + rule_id: Annotated[StrictStr, Field(description="Alert id of the alert to retrieve allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -110649,12 +122042,14 @@ def v2_aggregated_notification_get_state_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AggregatedNotificationGetStateGetResponse: - """v2_aggregated_notification_get_state_get + ) -> V2AllowlistRuleIdGetResponse: + """v2_allowlist_rule_id_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param rule_id: Alert id of the alert to retrieve allowlist/mutelist for (required) + :type rule_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 @@ -110677,8 +122072,9 @@ def v2_aggregated_notification_get_state_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_aggregated_notification_get_state_get_serialize( + _param = self._v2_allowlist_rule_id_get_serialize( authorization=authorization, + rule_id=rule_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110686,7 +122082,7 @@ def v2_aggregated_notification_get_state_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AggregatedNotificationGetStateGetResponse", + '200': "V2AllowlistRuleIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -110700,9 +122096,10 @@ def v2_aggregated_notification_get_state_get( @validate_call - def v2_aggregated_notification_get_state_get_with_http_info( + def v2_allowlist_rule_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + rule_id: Annotated[StrictStr, Field(description="Alert id of the alert to retrieve allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -110715,12 +122112,14 @@ def v2_aggregated_notification_get_state_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[V2AggregatedNotificationGetStateGetResponse]: - """v2_aggregated_notification_get_state_get + ) -> ApiResponse[V2AllowlistRuleIdGetResponse]: + """v2_allowlist_rule_id_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param rule_id: Alert id of the alert to retrieve allowlist/mutelist for (required) + :type rule_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 @@ -110743,8 +122142,9 @@ def v2_aggregated_notification_get_state_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_aggregated_notification_get_state_get_serialize( + _param = self._v2_allowlist_rule_id_get_serialize( authorization=authorization, + rule_id=rule_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110752,7 +122152,7 @@ def v2_aggregated_notification_get_state_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AggregatedNotificationGetStateGetResponse", + '200': "V2AllowlistRuleIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -110766,9 +122166,10 @@ def v2_aggregated_notification_get_state_get_with_http_info( @validate_call - def v2_aggregated_notification_get_state_get_without_preload_content( + def v2_allowlist_rule_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + rule_id: Annotated[StrictStr, Field(description="Alert id of the alert to retrieve allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -110782,11 +122183,13 @@ def v2_aggregated_notification_get_state_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_aggregated_notification_get_state_get + """v2_allowlist_rule_id_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param rule_id: Alert id of the alert to retrieve allowlist/mutelist for (required) + :type rule_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 @@ -110809,8 +122212,9 @@ def v2_aggregated_notification_get_state_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_aggregated_notification_get_state_get_serialize( + _param = self._v2_allowlist_rule_id_get_serialize( authorization=authorization, + rule_id=rule_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110818,7 +122222,7 @@ def v2_aggregated_notification_get_state_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AggregatedNotificationGetStateGetResponse", + '200': "V2AllowlistRuleIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -110827,9 +122231,10 @@ def v2_aggregated_notification_get_state_get_without_preload_content( return response_data.response - def _v2_aggregated_notification_get_state_get_serialize( + def _v2_allowlist_rule_id_get_serialize( self, authorization, + rule_id, _request_auth, _content_type, _headers, @@ -110851,6 +122256,8 @@ def _v2_aggregated_notification_get_state_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if rule_id is not None: + _path_params['ruleId'] = rule_id # process the query parameters # process the header parameters if authorization is not None: @@ -110875,7 +122282,7 @@ def _v2_aggregated_notification_get_state_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/aggregated-notification/get-state', + resource_path='/v2/allowlist/{ruleId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -110892,9 +122299,10 @@ def _v2_aggregated_notification_get_state_get_serialize( @validate_call - def v2_allowlist_by_enterprise_get( + def v2_assistant_add_to_conversation_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -110907,12 +122315,14 @@ def v2_allowlist_by_enterprise_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AllowlistByEnterpriseGetResponse: - """v2_allowlist_by_enterprise_get + ) -> V2AssistantAddToConversationPostResponse: + """v2_assistant_add_to_conversation_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v2_assistant_add_to_conversation_post_request: (required) + :type v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -110935,8 +122345,9 @@ def v2_allowlist_by_enterprise_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_by_enterprise_get_serialize( + _param = self._v2_assistant_add_to_conversation_post_serialize( authorization=authorization, + v2_assistant_add_to_conversation_post_request=v2_assistant_add_to_conversation_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -110944,7 +122355,7 @@ def v2_allowlist_by_enterprise_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AllowlistByEnterpriseGetResponse", + '200': "V2AssistantAddToConversationPostResponse", } response_data = self.api_client.call_api( *_param, @@ -110958,9 +122369,10 @@ def v2_allowlist_by_enterprise_get( @validate_call - def v2_allowlist_by_enterprise_get_with_http_info( + def v2_assistant_add_to_conversation_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -110973,12 +122385,14 @@ def v2_allowlist_by_enterprise_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[V2AllowlistByEnterpriseGetResponse]: - """v2_allowlist_by_enterprise_get + ) -> ApiResponse[V2AssistantAddToConversationPostResponse]: + """v2_assistant_add_to_conversation_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v2_assistant_add_to_conversation_post_request: (required) + :type v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -111001,8 +122415,9 @@ def v2_allowlist_by_enterprise_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_by_enterprise_get_serialize( + _param = self._v2_assistant_add_to_conversation_post_serialize( authorization=authorization, + v2_assistant_add_to_conversation_post_request=v2_assistant_add_to_conversation_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -111010,7 +122425,7 @@ def v2_allowlist_by_enterprise_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AllowlistByEnterpriseGetResponse", + '200': "V2AssistantAddToConversationPostResponse", } response_data = self.api_client.call_api( *_param, @@ -111024,9 +122439,10 @@ def v2_allowlist_by_enterprise_get_with_http_info( @validate_call - def v2_allowlist_by_enterprise_get_without_preload_content( + def v2_assistant_add_to_conversation_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -111040,11 +122456,13 @@ def v2_allowlist_by_enterprise_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_allowlist_by_enterprise_get + """v2_assistant_add_to_conversation_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v2_assistant_add_to_conversation_post_request: (required) + :type v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -111067,8 +122485,9 @@ def v2_allowlist_by_enterprise_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_by_enterprise_get_serialize( + _param = self._v2_assistant_add_to_conversation_post_serialize( authorization=authorization, + v2_assistant_add_to_conversation_post_request=v2_assistant_add_to_conversation_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -111076,7 +122495,7 @@ def v2_allowlist_by_enterprise_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AllowlistByEnterpriseGetResponse", + '200': "V2AssistantAddToConversationPostResponse", } response_data = self.api_client.call_api( *_param, @@ -111085,9 +122504,10 @@ def v2_allowlist_by_enterprise_get_without_preload_content( return response_data.response - def _v2_allowlist_by_enterprise_get_serialize( + def _v2_assistant_add_to_conversation_post_serialize( self, authorization, + v2_assistant_add_to_conversation_post_request, _request_auth, _content_type, _headers, @@ -111115,6 +122535,8 @@ def _v2_allowlist_by_enterprise_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v2_assistant_add_to_conversation_post_request is not None: + _body_params = v2_assistant_add_to_conversation_post_request # set the HTTP header `Accept` @@ -111125,6 +122547,19 @@ def _v2_allowlist_by_enterprise_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] = [ @@ -111132,8 +122567,8 @@ def _v2_allowlist_by_enterprise_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/allowlist-by-enterprise', + method='POST', + resource_path='/v2/assistant/add-to-conversation', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -111150,10 +122585,10 @@ def _v2_allowlist_by_enterprise_get_serialize( @validate_call - def v2_allowlist_create_post( + def v2_assistant_conversation_context_history_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_allowlist_create_post_request: V2AllowlistCreatePostRequest, + v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -111167,13 +122602,13 @@ def v2_allowlist_create_post( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """v2_allowlist_create_post + """v2_assistant_conversation_context_history_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_allowlist_create_post_request: (required) - :type v2_allowlist_create_post_request: V2AllowlistCreatePostRequest + :param v2_assistant_conversation_context_history_post_request: (required) + :type v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -111196,9 +122631,9 @@ def v2_allowlist_create_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_create_post_serialize( + _param = self._v2_assistant_conversation_context_history_post_serialize( authorization=authorization, - v2_allowlist_create_post_request=v2_allowlist_create_post_request, + v2_assistant_conversation_context_history_post_request=v2_assistant_conversation_context_history_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -111220,10 +122655,10 @@ def v2_allowlist_create_post( @validate_call - def v2_allowlist_create_post_with_http_info( + def v2_assistant_conversation_context_history_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_allowlist_create_post_request: V2AllowlistCreatePostRequest, + v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -111237,13 +122672,13 @@ def v2_allowlist_create_post_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """v2_allowlist_create_post + """v2_assistant_conversation_context_history_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_allowlist_create_post_request: (required) - :type v2_allowlist_create_post_request: V2AllowlistCreatePostRequest + :param v2_assistant_conversation_context_history_post_request: (required) + :type v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -111266,9 +122701,9 @@ def v2_allowlist_create_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_create_post_serialize( + _param = self._v2_assistant_conversation_context_history_post_serialize( authorization=authorization, - v2_allowlist_create_post_request=v2_allowlist_create_post_request, + v2_assistant_conversation_context_history_post_request=v2_assistant_conversation_context_history_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -111290,10 +122725,10 @@ def v2_allowlist_create_post_with_http_info( @validate_call - def v2_allowlist_create_post_without_preload_content( + def v2_assistant_conversation_context_history_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_allowlist_create_post_request: V2AllowlistCreatePostRequest, + v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -111307,13 +122742,13 @@ def v2_allowlist_create_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_allowlist_create_post + """v2_assistant_conversation_context_history_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_allowlist_create_post_request: (required) - :type v2_allowlist_create_post_request: V2AllowlistCreatePostRequest + :param v2_assistant_conversation_context_history_post_request: (required) + :type v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -111336,9 +122771,9 @@ def v2_allowlist_create_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_create_post_serialize( + _param = self._v2_assistant_conversation_context_history_post_serialize( authorization=authorization, - v2_allowlist_create_post_request=v2_allowlist_create_post_request, + v2_assistant_conversation_context_history_post_request=v2_assistant_conversation_context_history_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -111355,10 +122790,10 @@ def v2_allowlist_create_post_without_preload_content( return response_data.response - def _v2_allowlist_create_post_serialize( + def _v2_assistant_conversation_context_history_post_serialize( self, authorization, - v2_allowlist_create_post_request, + v2_assistant_conversation_context_history_post_request, _request_auth, _content_type, _headers, @@ -111386,8 +122821,8 @@ def _v2_allowlist_create_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_allowlist_create_post_request is not None: - _body_params = v2_allowlist_create_post_request + if v2_assistant_conversation_context_history_post_request is not None: + _body_params = v2_assistant_conversation_context_history_post_request # set the HTTP header `Accept` @@ -111419,7 +122854,7 @@ def _v2_allowlist_create_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/allowlist/create', + resource_path='/v2/assistant/conversation-context-history/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -111436,10 +122871,10 @@ def _v2_allowlist_create_post_serialize( @validate_call - def v2_allowlist_deletebyalertid_alert_id_delete( + def v2_assistant_conversation_interface_enable_disable_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - alert_id: Annotated[StrictStr, Field(description="Alert id of the alert to delete allowlist/mutelist for")], + v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -111453,13 +122888,13 @@ def v2_allowlist_deletebyalertid_alert_id_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """v2_allowlist_deletebyalertid_alert_id_delete + """v2_assistant_conversation_interface_enable_disable_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param alert_id: Alert id of the alert to delete allowlist/mutelist for (required) - :type alert_id: str + :param v2_assistant_conversation_interface_enable_disable_post_request: (required) + :type v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -111482,9 +122917,9 @@ def v2_allowlist_deletebyalertid_alert_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_deletebyalertid_alert_id_delete_serialize( + _param = self._v2_assistant_conversation_interface_enable_disable_post_serialize( authorization=authorization, - alert_id=alert_id, + v2_assistant_conversation_interface_enable_disable_post_request=v2_assistant_conversation_interface_enable_disable_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -111506,10 +122941,10 @@ def v2_allowlist_deletebyalertid_alert_id_delete( @validate_call - def v2_allowlist_deletebyalertid_alert_id_delete_with_http_info( + def v2_assistant_conversation_interface_enable_disable_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - alert_id: Annotated[StrictStr, Field(description="Alert id of the alert to delete allowlist/mutelist for")], + v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -111523,13 +122958,13 @@ def v2_allowlist_deletebyalertid_alert_id_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """v2_allowlist_deletebyalertid_alert_id_delete + """v2_assistant_conversation_interface_enable_disable_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param alert_id: Alert id of the alert to delete allowlist/mutelist for (required) - :type alert_id: str + :param v2_assistant_conversation_interface_enable_disable_post_request: (required) + :type v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -111552,9 +122987,9 @@ def v2_allowlist_deletebyalertid_alert_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_deletebyalertid_alert_id_delete_serialize( + _param = self._v2_assistant_conversation_interface_enable_disable_post_serialize( authorization=authorization, - alert_id=alert_id, + v2_assistant_conversation_interface_enable_disable_post_request=v2_assistant_conversation_interface_enable_disable_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -111576,10 +123011,10 @@ def v2_allowlist_deletebyalertid_alert_id_delete_with_http_info( @validate_call - def v2_allowlist_deletebyalertid_alert_id_delete_without_preload_content( + def v2_assistant_conversation_interface_enable_disable_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - alert_id: Annotated[StrictStr, Field(description="Alert id of the alert to delete allowlist/mutelist for")], + v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -111593,13 +123028,13 @@ def v2_allowlist_deletebyalertid_alert_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_allowlist_deletebyalertid_alert_id_delete + """v2_assistant_conversation_interface_enable_disable_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param alert_id: Alert id of the alert to delete allowlist/mutelist for (required) - :type alert_id: str + :param v2_assistant_conversation_interface_enable_disable_post_request: (required) + :type v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -111622,9 +123057,9 @@ def v2_allowlist_deletebyalertid_alert_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_deletebyalertid_alert_id_delete_serialize( + _param = self._v2_assistant_conversation_interface_enable_disable_post_serialize( authorization=authorization, - alert_id=alert_id, + v2_assistant_conversation_interface_enable_disable_post_request=v2_assistant_conversation_interface_enable_disable_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -111641,10 +123076,10 @@ def v2_allowlist_deletebyalertid_alert_id_delete_without_preload_content( return response_data.response - def _v2_allowlist_deletebyalertid_alert_id_delete_serialize( + def _v2_assistant_conversation_interface_enable_disable_post_serialize( self, authorization, - alert_id, + v2_assistant_conversation_interface_enable_disable_post_request, _request_auth, _content_type, _headers, @@ -111666,14 +123101,14 @@ def _v2_allowlist_deletebyalertid_alert_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if alert_id is not None: - _path_params['alertId'] = alert_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 v2_assistant_conversation_interface_enable_disable_post_request is not None: + _body_params = v2_assistant_conversation_interface_enable_disable_post_request # set the HTTP header `Accept` @@ -111684,6 +123119,19 @@ def _v2_allowlist_deletebyalertid_alert_id_delete_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] = [ @@ -111691,8 +123139,8 @@ def _v2_allowlist_deletebyalertid_alert_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v2/allowlist/deletebyalertid/{alertId}', + method='POST', + resource_path='/v2/assistant/conversation-interface-enable-disable/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -111709,10 +123157,9 @@ def _v2_allowlist_deletebyalertid_alert_id_delete_serialize( @validate_call - def v2_allowlist_deletebyentityid_entity_id_delete( + def v2_assistant_conversation_interface_state_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - entity_id: Annotated[StrictStr, Field(description="Entity id of the alert to delete allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -111725,14 +123172,12 @@ def v2_allowlist_deletebyentityid_entity_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v2_allowlist_deletebyentityid_entity_id_delete + ) -> V2AssistantConversationInterfaceStateGetResponse: + """v2_assistant_conversation_interface_state_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param entity_id: Entity id of the alert to delete allowlist/mutelist for (required) - :type entity_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 @@ -111755,9 +123200,8 @@ def v2_allowlist_deletebyentityid_entity_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_deletebyentityid_entity_id_delete_serialize( + _param = self._v2_assistant_conversation_interface_state_get_serialize( authorization=authorization, - entity_id=entity_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -111765,7 +123209,7 @@ def v2_allowlist_deletebyentityid_entity_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssistantConversationInterfaceStateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -111779,10 +123223,9 @@ def v2_allowlist_deletebyentityid_entity_id_delete( @validate_call - def v2_allowlist_deletebyentityid_entity_id_delete_with_http_info( + def v2_assistant_conversation_interface_state_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - entity_id: Annotated[StrictStr, Field(description="Entity id of the alert to delete allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -111795,14 +123238,12 @@ def v2_allowlist_deletebyentityid_entity_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[object]: - """v2_allowlist_deletebyentityid_entity_id_delete + ) -> ApiResponse[V2AssistantConversationInterfaceStateGetResponse]: + """v2_assistant_conversation_interface_state_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param entity_id: Entity id of the alert to delete allowlist/mutelist for (required) - :type entity_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 @@ -111825,9 +123266,8 @@ def v2_allowlist_deletebyentityid_entity_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_deletebyentityid_entity_id_delete_serialize( + _param = self._v2_assistant_conversation_interface_state_get_serialize( authorization=authorization, - entity_id=entity_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -111835,7 +123275,7 @@ def v2_allowlist_deletebyentityid_entity_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssistantConversationInterfaceStateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -111849,10 +123289,9 @@ def v2_allowlist_deletebyentityid_entity_id_delete_with_http_info( @validate_call - def v2_allowlist_deletebyentityid_entity_id_delete_without_preload_content( + def v2_assistant_conversation_interface_state_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - entity_id: Annotated[StrictStr, Field(description="Entity id of the alert to delete allowlist/mutelist for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -111866,13 +123305,11 @@ def v2_allowlist_deletebyentityid_entity_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_allowlist_deletebyentityid_entity_id_delete + """v2_assistant_conversation_interface_state_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param entity_id: Entity id of the alert to delete allowlist/mutelist for (required) - :type entity_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 @@ -111895,9 +123332,8 @@ def v2_allowlist_deletebyentityid_entity_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_deletebyentityid_entity_id_delete_serialize( + _param = self._v2_assistant_conversation_interface_state_get_serialize( authorization=authorization, - entity_id=entity_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -111905,7 +123341,7 @@ def v2_allowlist_deletebyentityid_entity_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssistantConversationInterfaceStateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -111914,10 +123350,9 @@ def v2_allowlist_deletebyentityid_entity_id_delete_without_preload_content( return response_data.response - def _v2_allowlist_deletebyentityid_entity_id_delete_serialize( + def _v2_assistant_conversation_interface_state_get_serialize( self, authorization, - entity_id, _request_auth, _content_type, _headers, @@ -111939,8 +123374,6 @@ def _v2_allowlist_deletebyentityid_entity_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if entity_id is not None: - _path_params['entityId'] = entity_id # process the query parameters # process the header parameters if authorization is not None: @@ -111964,8 +123397,8 @@ def _v2_allowlist_deletebyentityid_entity_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v2/allowlist/deletebyentityid/{entityId}', + method='GET', + resource_path='/v2/assistant/conversation-interface-state/', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -111982,10 +123415,10 @@ def _v2_allowlist_deletebyentityid_entity_id_delete_serialize( @validate_call - def v2_allowlist_rule_id_get( + def v2_assistant_delete_conversation_chat_conversation_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - rule_id: Annotated[StrictStr, Field(description="Alert id of the alert to retrieve allowlist/mutelist for")], + conversation_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -111998,14 +123431,14 @@ def v2_allowlist_rule_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AllowlistRuleIdGetResponse: - """v2_allowlist_rule_id_get + ) -> object: + """v2_assistant_delete_conversation_chat_conversation_id_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param rule_id: Alert id of the alert to retrieve allowlist/mutelist for (required) - :type rule_id: str + :param conversation_id: (required) + :type conversation_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 @@ -112028,9 +123461,9 @@ def v2_allowlist_rule_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_rule_id_get_serialize( + _param = self._v2_assistant_delete_conversation_chat_conversation_id_delete_serialize( authorization=authorization, - rule_id=rule_id, + conversation_id=conversation_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -112038,7 +123471,7 @@ def v2_allowlist_rule_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AllowlistRuleIdGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -112052,10 +123485,10 @@ def v2_allowlist_rule_id_get( @validate_call - def v2_allowlist_rule_id_get_with_http_info( + def v2_assistant_delete_conversation_chat_conversation_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - rule_id: Annotated[StrictStr, Field(description="Alert id of the alert to retrieve allowlist/mutelist for")], + conversation_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -112068,14 +123501,14 @@ def v2_allowlist_rule_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[V2AllowlistRuleIdGetResponse]: - """v2_allowlist_rule_id_get + ) -> ApiResponse[object]: + """v2_assistant_delete_conversation_chat_conversation_id_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param rule_id: Alert id of the alert to retrieve allowlist/mutelist for (required) - :type rule_id: str + :param conversation_id: (required) + :type conversation_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 @@ -112098,9 +123531,9 @@ def v2_allowlist_rule_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_rule_id_get_serialize( + _param = self._v2_assistant_delete_conversation_chat_conversation_id_delete_serialize( authorization=authorization, - rule_id=rule_id, + conversation_id=conversation_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -112108,7 +123541,7 @@ def v2_allowlist_rule_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AllowlistRuleIdGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -112122,10 +123555,10 @@ def v2_allowlist_rule_id_get_with_http_info( @validate_call - def v2_allowlist_rule_id_get_without_preload_content( + def v2_assistant_delete_conversation_chat_conversation_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - rule_id: Annotated[StrictStr, Field(description="Alert id of the alert to retrieve allowlist/mutelist for")], + conversation_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -112139,13 +123572,13 @@ def v2_allowlist_rule_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_allowlist_rule_id_get + """v2_assistant_delete_conversation_chat_conversation_id_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param rule_id: Alert id of the alert to retrieve allowlist/mutelist for (required) - :type rule_id: str + :param conversation_id: (required) + :type conversation_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 @@ -112168,9 +123601,9 @@ def v2_allowlist_rule_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_allowlist_rule_id_get_serialize( + _param = self._v2_assistant_delete_conversation_chat_conversation_id_delete_serialize( authorization=authorization, - rule_id=rule_id, + conversation_id=conversation_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -112178,7 +123611,7 @@ def v2_allowlist_rule_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AllowlistRuleIdGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -112187,10 +123620,10 @@ def v2_allowlist_rule_id_get_without_preload_content( return response_data.response - def _v2_allowlist_rule_id_get_serialize( + def _v2_assistant_delete_conversation_chat_conversation_id_delete_serialize( self, authorization, - rule_id, + conversation_id, _request_auth, _content_type, _headers, @@ -112212,8 +123645,8 @@ def _v2_allowlist_rule_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if rule_id is not None: - _path_params['ruleId'] = rule_id + if conversation_id is not None: + _path_params['conversationId'] = conversation_id # process the query parameters # process the header parameters if authorization is not None: @@ -112237,8 +123670,8 @@ def _v2_allowlist_rule_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/allowlist/{ruleId}', + method='DELETE', + resource_path='/v2/assistant/delete-conversation-chat/{conversationId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -112255,10 +123688,10 @@ def _v2_allowlist_rule_id_get_serialize( @validate_call - def v2_assistant_add_to_conversation_post( + def v2_assistant_get_conversation_details_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest, + v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -112271,14 +123704,14 @@ def v2_assistant_add_to_conversation_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssistantAddToConversationPostResponse: - """v2_assistant_add_to_conversation_post + ) -> V2AssistantGetConversationDetailsPostResponse: + """v2_assistant_get_conversation_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_add_to_conversation_post_request: (required) - :type v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest + :param v2_assistant_get_conversation_details_post_request: (required) + :type v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -112301,9 +123734,9 @@ def v2_assistant_add_to_conversation_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_add_to_conversation_post_serialize( + _param = self._v2_assistant_get_conversation_details_post_serialize( authorization=authorization, - v2_assistant_add_to_conversation_post_request=v2_assistant_add_to_conversation_post_request, + v2_assistant_get_conversation_details_post_request=v2_assistant_get_conversation_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -112311,7 +123744,7 @@ def v2_assistant_add_to_conversation_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantAddToConversationPostResponse", + '200': "V2AssistantGetConversationDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -112325,10 +123758,10 @@ def v2_assistant_add_to_conversation_post( @validate_call - def v2_assistant_add_to_conversation_post_with_http_info( + def v2_assistant_get_conversation_details_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest, + v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -112341,14 +123774,14 @@ def v2_assistant_add_to_conversation_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[V2AssistantAddToConversationPostResponse]: - """v2_assistant_add_to_conversation_post + ) -> ApiResponse[V2AssistantGetConversationDetailsPostResponse]: + """v2_assistant_get_conversation_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_add_to_conversation_post_request: (required) - :type v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest + :param v2_assistant_get_conversation_details_post_request: (required) + :type v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -112371,9 +123804,9 @@ def v2_assistant_add_to_conversation_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_add_to_conversation_post_serialize( + _param = self._v2_assistant_get_conversation_details_post_serialize( authorization=authorization, - v2_assistant_add_to_conversation_post_request=v2_assistant_add_to_conversation_post_request, + v2_assistant_get_conversation_details_post_request=v2_assistant_get_conversation_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -112381,7 +123814,7 @@ def v2_assistant_add_to_conversation_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantAddToConversationPostResponse", + '200': "V2AssistantGetConversationDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -112395,10 +123828,10 @@ def v2_assistant_add_to_conversation_post_with_http_info( @validate_call - def v2_assistant_add_to_conversation_post_without_preload_content( + def v2_assistant_get_conversation_details_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest, + v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -112412,13 +123845,13 @@ def v2_assistant_add_to_conversation_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assistant_add_to_conversation_post + """v2_assistant_get_conversation_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_add_to_conversation_post_request: (required) - :type v2_assistant_add_to_conversation_post_request: V2AssistantAddToConversationPostRequest + :param v2_assistant_get_conversation_details_post_request: (required) + :type v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -112441,9 +123874,9 @@ def v2_assistant_add_to_conversation_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_add_to_conversation_post_serialize( + _param = self._v2_assistant_get_conversation_details_post_serialize( authorization=authorization, - v2_assistant_add_to_conversation_post_request=v2_assistant_add_to_conversation_post_request, + v2_assistant_get_conversation_details_post_request=v2_assistant_get_conversation_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -112451,7 +123884,7 @@ def v2_assistant_add_to_conversation_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantAddToConversationPostResponse", + '200': "V2AssistantGetConversationDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -112460,10 +123893,10 @@ def v2_assistant_add_to_conversation_post_without_preload_content( return response_data.response - def _v2_assistant_add_to_conversation_post_serialize( + def _v2_assistant_get_conversation_details_post_serialize( self, authorization, - v2_assistant_add_to_conversation_post_request, + v2_assistant_get_conversation_details_post_request, _request_auth, _content_type, _headers, @@ -112491,8 +123924,8 @@ def _v2_assistant_add_to_conversation_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assistant_add_to_conversation_post_request is not None: - _body_params = v2_assistant_add_to_conversation_post_request + if v2_assistant_get_conversation_details_post_request is not None: + _body_params = v2_assistant_get_conversation_details_post_request # set the HTTP header `Accept` @@ -112524,7 +123957,7 @@ def _v2_assistant_add_to_conversation_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assistant/add-to-conversation', + resource_path='/v2/assistant/get-conversation-details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -112541,10 +123974,10 @@ def _v2_assistant_add_to_conversation_post_serialize( @validate_call - def v2_assistant_conversation_context_history_post( + def v2_assistant_get_conversations_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest, + v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -112557,14 +123990,14 @@ def v2_assistant_conversation_context_history_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v2_assistant_conversation_context_history_post + ) -> V2AssistantGetConversationsPostResponse: + """v2_assistant_get_conversations_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_conversation_context_history_post_request: (required) - :type v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest + :param v2_assistant_get_conversations_post_request: (required) + :type v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -112587,9 +124020,9 @@ def v2_assistant_conversation_context_history_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_conversation_context_history_post_serialize( + _param = self._v2_assistant_get_conversations_post_serialize( authorization=authorization, - v2_assistant_conversation_context_history_post_request=v2_assistant_conversation_context_history_post_request, + v2_assistant_get_conversations_post_request=v2_assistant_get_conversations_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -112597,7 +124030,7 @@ def v2_assistant_conversation_context_history_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssistantGetConversationsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -112611,10 +124044,10 @@ def v2_assistant_conversation_context_history_post( @validate_call - def v2_assistant_conversation_context_history_post_with_http_info( + def v2_assistant_get_conversations_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest, + v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -112627,14 +124060,14 @@ def v2_assistant_conversation_context_history_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]: - """v2_assistant_conversation_context_history_post + ) -> ApiResponse[V2AssistantGetConversationsPostResponse]: + """v2_assistant_get_conversations_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_conversation_context_history_post_request: (required) - :type v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest + :param v2_assistant_get_conversations_post_request: (required) + :type v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -112657,9 +124090,9 @@ def v2_assistant_conversation_context_history_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_conversation_context_history_post_serialize( + _param = self._v2_assistant_get_conversations_post_serialize( authorization=authorization, - v2_assistant_conversation_context_history_post_request=v2_assistant_conversation_context_history_post_request, + v2_assistant_get_conversations_post_request=v2_assistant_get_conversations_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -112667,7 +124100,7 @@ def v2_assistant_conversation_context_history_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssistantGetConversationsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -112681,10 +124114,10 @@ def v2_assistant_conversation_context_history_post_with_http_info( @validate_call - def v2_assistant_conversation_context_history_post_without_preload_content( + def v2_assistant_get_conversations_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest, + v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -112698,13 +124131,13 @@ def v2_assistant_conversation_context_history_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assistant_conversation_context_history_post + """v2_assistant_get_conversations_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_conversation_context_history_post_request: (required) - :type v2_assistant_conversation_context_history_post_request: V2AssistantConversationContextHistoryPostRequest + :param v2_assistant_get_conversations_post_request: (required) + :type v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -112727,9 +124160,9 @@ def v2_assistant_conversation_context_history_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_conversation_context_history_post_serialize( + _param = self._v2_assistant_get_conversations_post_serialize( authorization=authorization, - v2_assistant_conversation_context_history_post_request=v2_assistant_conversation_context_history_post_request, + v2_assistant_get_conversations_post_request=v2_assistant_get_conversations_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -112737,7 +124170,7 @@ def v2_assistant_conversation_context_history_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssistantGetConversationsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -112746,10 +124179,10 @@ def v2_assistant_conversation_context_history_post_without_preload_content( return response_data.response - def _v2_assistant_conversation_context_history_post_serialize( + def _v2_assistant_get_conversations_post_serialize( self, authorization, - v2_assistant_conversation_context_history_post_request, + v2_assistant_get_conversations_post_request, _request_auth, _content_type, _headers, @@ -112777,8 +124210,8 @@ def _v2_assistant_conversation_context_history_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assistant_conversation_context_history_post_request is not None: - _body_params = v2_assistant_conversation_context_history_post_request + if v2_assistant_get_conversations_post_request is not None: + _body_params = v2_assistant_get_conversations_post_request # set the HTTP header `Accept` @@ -112810,7 +124243,7 @@ def _v2_assistant_conversation_context_history_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assistant/conversation-context-history/', + resource_path='/v2/assistant/get-conversations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -112827,10 +124260,10 @@ def _v2_assistant_conversation_context_history_post_serialize( @validate_call - def v2_assistant_conversation_interface_enable_disable_post( + def v2_assistant_update_conversation_name_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest, + v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -112844,13 +124277,13 @@ def v2_assistant_conversation_interface_enable_disable_post( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """v2_assistant_conversation_interface_enable_disable_post + """v2_assistant_update_conversation_name_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_conversation_interface_enable_disable_post_request: (required) - :type v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest + :param v2_assistant_update_conversation_name_post_request: (required) + :type v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -112873,9 +124306,9 @@ def v2_assistant_conversation_interface_enable_disable_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_conversation_interface_enable_disable_post_serialize( + _param = self._v2_assistant_update_conversation_name_post_serialize( authorization=authorization, - v2_assistant_conversation_interface_enable_disable_post_request=v2_assistant_conversation_interface_enable_disable_post_request, + v2_assistant_update_conversation_name_post_request=v2_assistant_update_conversation_name_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -112897,10 +124330,10 @@ def v2_assistant_conversation_interface_enable_disable_post( @validate_call - def v2_assistant_conversation_interface_enable_disable_post_with_http_info( + def v2_assistant_update_conversation_name_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest, + v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -112914,13 +124347,13 @@ def v2_assistant_conversation_interface_enable_disable_post_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """v2_assistant_conversation_interface_enable_disable_post + """v2_assistant_update_conversation_name_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_conversation_interface_enable_disable_post_request: (required) - :type v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest + :param v2_assistant_update_conversation_name_post_request: (required) + :type v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -112943,9 +124376,9 @@ def v2_assistant_conversation_interface_enable_disable_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_conversation_interface_enable_disable_post_serialize( + _param = self._v2_assistant_update_conversation_name_post_serialize( authorization=authorization, - v2_assistant_conversation_interface_enable_disable_post_request=v2_assistant_conversation_interface_enable_disable_post_request, + v2_assistant_update_conversation_name_post_request=v2_assistant_update_conversation_name_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -112967,10 +124400,10 @@ def v2_assistant_conversation_interface_enable_disable_post_with_http_info( @validate_call - def v2_assistant_conversation_interface_enable_disable_post_without_preload_content( + def v2_assistant_update_conversation_name_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest, + v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -112984,13 +124417,13 @@ def v2_assistant_conversation_interface_enable_disable_post_without_preload_cont _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assistant_conversation_interface_enable_disable_post + """v2_assistant_update_conversation_name_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_conversation_interface_enable_disable_post_request: (required) - :type v2_assistant_conversation_interface_enable_disable_post_request: V2AssistantConversationInterfaceEnableDisablePostRequest + :param v2_assistant_update_conversation_name_post_request: (required) + :type v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -113013,9 +124446,9 @@ def v2_assistant_conversation_interface_enable_disable_post_without_preload_cont :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_conversation_interface_enable_disable_post_serialize( + _param = self._v2_assistant_update_conversation_name_post_serialize( authorization=authorization, - v2_assistant_conversation_interface_enable_disable_post_request=v2_assistant_conversation_interface_enable_disable_post_request, + v2_assistant_update_conversation_name_post_request=v2_assistant_update_conversation_name_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -113032,10 +124465,10 @@ def v2_assistant_conversation_interface_enable_disable_post_without_preload_cont return response_data.response - def _v2_assistant_conversation_interface_enable_disable_post_serialize( + def _v2_assistant_update_conversation_name_post_serialize( self, authorization, - v2_assistant_conversation_interface_enable_disable_post_request, + v2_assistant_update_conversation_name_post_request, _request_auth, _content_type, _headers, @@ -113063,8 +124496,8 @@ def _v2_assistant_conversation_interface_enable_disable_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assistant_conversation_interface_enable_disable_post_request is not None: - _body_params = v2_assistant_conversation_interface_enable_disable_post_request + if v2_assistant_update_conversation_name_post_request is not None: + _body_params = v2_assistant_update_conversation_name_post_request # set the HTTP header `Accept` @@ -113096,7 +124529,7 @@ def _v2_assistant_conversation_interface_enable_disable_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assistant/conversation-interface-enable-disable/', + resource_path='/v2/assistant/update-conversation-name', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -113113,9 +124546,10 @@ def _v2_assistant_conversation_interface_enable_disable_post_serialize( @validate_call - def v2_assistant_conversation_interface_state_get( + def v2_assistant_version_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -113128,12 +124562,14 @@ def v2_assistant_conversation_interface_state_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssistantConversationInterfaceStateGetResponse: - """v2_assistant_conversation_interface_state_get + ) -> V2AssistantVersionPostResponse: + """v2_assistant_version_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: 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 @@ -113156,8 +124592,9 @@ def v2_assistant_conversation_interface_state_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_conversation_interface_state_get_serialize( + _param = self._v2_assistant_version_post_serialize( authorization=authorization, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -113165,7 +124602,7 @@ def v2_assistant_conversation_interface_state_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantConversationInterfaceStateGetResponse", + '200': "V2AssistantVersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -113179,9 +124616,10 @@ def v2_assistant_conversation_interface_state_get( @validate_call - def v2_assistant_conversation_interface_state_get_with_http_info( + def v2_assistant_version_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -113194,12 +124632,14 @@ def v2_assistant_conversation_interface_state_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[V2AssistantConversationInterfaceStateGetResponse]: - """v2_assistant_conversation_interface_state_get + ) -> ApiResponse[V2AssistantVersionPostResponse]: + """v2_assistant_version_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: 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 @@ -113222,8 +124662,9 @@ def v2_assistant_conversation_interface_state_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_conversation_interface_state_get_serialize( + _param = self._v2_assistant_version_post_serialize( authorization=authorization, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -113231,7 +124672,7 @@ def v2_assistant_conversation_interface_state_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantConversationInterfaceStateGetResponse", + '200': "V2AssistantVersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -113245,9 +124686,10 @@ def v2_assistant_conversation_interface_state_get_with_http_info( @validate_call - def v2_assistant_conversation_interface_state_get_without_preload_content( + def v2_assistant_version_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -113261,11 +124703,13 @@ def v2_assistant_conversation_interface_state_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assistant_conversation_interface_state_get + """v2_assistant_version_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: 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 @@ -113288,8 +124732,9 @@ def v2_assistant_conversation_interface_state_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_conversation_interface_state_get_serialize( + _param = self._v2_assistant_version_post_serialize( authorization=authorization, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -113297,7 +124742,7 @@ def v2_assistant_conversation_interface_state_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantConversationInterfaceStateGetResponse", + '200': "V2AssistantVersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -113306,9 +124751,10 @@ def v2_assistant_conversation_interface_state_get_without_preload_content( return response_data.response - def _v2_assistant_conversation_interface_state_get_serialize( + def _v2_assistant_version_post_serialize( self, authorization, + body, _request_auth, _content_type, _headers, @@ -113336,6 +124782,8 @@ def _v2_assistant_conversation_interface_state_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` @@ -113346,6 +124794,19 @@ def _v2_assistant_conversation_interface_state_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] = [ @@ -113353,8 +124814,8 @@ def _v2_assistant_conversation_interface_state_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/assistant/conversation-interface-state/', + method='POST', + resource_path='/v2/assistant/version', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -113371,10 +124832,10 @@ def _v2_assistant_conversation_interface_state_get_serialize( @validate_call - def v2_assistant_delete_conversation_chat_conversation_id_delete( + def v2_assurance_ai_adoption_summary_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - conversation_id: StrictStr, + v2_assurance_ai_adoption_summary_post_request: V2AssuranceAiAdoptionSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -113387,14 +124848,14 @@ def v2_assistant_delete_conversation_chat_conversation_id_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v2_assistant_delete_conversation_chat_conversation_id_delete + ) -> V2AssuranceAiAdoptionSummaryPostResponse: + """v2_assurance_ai_adoption_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param conversation_id: (required) - :type conversation_id: str + :param v2_assurance_ai_adoption_summary_post_request: (required) + :type v2_assurance_ai_adoption_summary_post_request: V2AssuranceAiAdoptionSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -113417,9 +124878,9 @@ def v2_assistant_delete_conversation_chat_conversation_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_delete_conversation_chat_conversation_id_delete_serialize( + _param = self._v2_assurance_ai_adoption_summary_post_serialize( authorization=authorization, - conversation_id=conversation_id, + v2_assurance_ai_adoption_summary_post_request=v2_assurance_ai_adoption_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -113427,7 +124888,7 @@ def v2_assistant_delete_conversation_chat_conversation_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceAiAdoptionSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -113441,10 +124902,10 @@ def v2_assistant_delete_conversation_chat_conversation_id_delete( @validate_call - def v2_assistant_delete_conversation_chat_conversation_id_delete_with_http_info( + def v2_assurance_ai_adoption_summary_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - conversation_id: StrictStr, + v2_assurance_ai_adoption_summary_post_request: V2AssuranceAiAdoptionSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -113457,14 +124918,14 @@ def v2_assistant_delete_conversation_chat_conversation_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[object]: - """v2_assistant_delete_conversation_chat_conversation_id_delete + ) -> ApiResponse[V2AssuranceAiAdoptionSummaryPostResponse]: + """v2_assurance_ai_adoption_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param conversation_id: (required) - :type conversation_id: str + :param v2_assurance_ai_adoption_summary_post_request: (required) + :type v2_assurance_ai_adoption_summary_post_request: V2AssuranceAiAdoptionSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -113487,9 +124948,9 @@ def v2_assistant_delete_conversation_chat_conversation_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_delete_conversation_chat_conversation_id_delete_serialize( + _param = self._v2_assurance_ai_adoption_summary_post_serialize( authorization=authorization, - conversation_id=conversation_id, + v2_assurance_ai_adoption_summary_post_request=v2_assurance_ai_adoption_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -113497,7 +124958,7 @@ def v2_assistant_delete_conversation_chat_conversation_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceAiAdoptionSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -113511,10 +124972,10 @@ def v2_assistant_delete_conversation_chat_conversation_id_delete_with_http_info( @validate_call - def v2_assistant_delete_conversation_chat_conversation_id_delete_without_preload_content( + def v2_assurance_ai_adoption_summary_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - conversation_id: StrictStr, + v2_assurance_ai_adoption_summary_post_request: V2AssuranceAiAdoptionSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -113528,13 +124989,13 @@ def v2_assistant_delete_conversation_chat_conversation_id_delete_without_preload _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assistant_delete_conversation_chat_conversation_id_delete + """v2_assurance_ai_adoption_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param conversation_id: (required) - :type conversation_id: str + :param v2_assurance_ai_adoption_summary_post_request: (required) + :type v2_assurance_ai_adoption_summary_post_request: V2AssuranceAiAdoptionSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -113557,9 +125018,9 @@ def v2_assistant_delete_conversation_chat_conversation_id_delete_without_preload :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_delete_conversation_chat_conversation_id_delete_serialize( + _param = self._v2_assurance_ai_adoption_summary_post_serialize( authorization=authorization, - conversation_id=conversation_id, + v2_assurance_ai_adoption_summary_post_request=v2_assurance_ai_adoption_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -113567,7 +125028,7 @@ def v2_assistant_delete_conversation_chat_conversation_id_delete_without_preload ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceAiAdoptionSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -113576,10 +125037,10 @@ def v2_assistant_delete_conversation_chat_conversation_id_delete_without_preload return response_data.response - def _v2_assistant_delete_conversation_chat_conversation_id_delete_serialize( + def _v2_assurance_ai_adoption_summary_post_serialize( self, authorization, - conversation_id, + v2_assurance_ai_adoption_summary_post_request, _request_auth, _content_type, _headers, @@ -113601,14 +125062,14 @@ def _v2_assistant_delete_conversation_chat_conversation_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if conversation_id is not None: - _path_params['conversationId'] = conversation_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 v2_assurance_ai_adoption_summary_post_request is not None: + _body_params = v2_assurance_ai_adoption_summary_post_request # set the HTTP header `Accept` @@ -113619,6 +125080,19 @@ def _v2_assistant_delete_conversation_chat_conversation_id_delete_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] = [ @@ -113626,8 +125100,8 @@ def _v2_assistant_delete_conversation_chat_conversation_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v2/assistant/delete-conversation-chat/{conversationId}', + method='POST', + resource_path='/v2/assurance/ai-adoption-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -113644,10 +125118,10 @@ def _v2_assistant_delete_conversation_chat_conversation_id_delete_serialize( @validate_call - def v2_assistant_get_conversation_details_post( + def v2_assurance_applicationdetailsbyname_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest, + v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -113660,14 +125134,14 @@ def v2_assistant_get_conversation_details_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssistantGetConversationDetailsPostResponse: - """v2_assistant_get_conversation_details_post + ) -> V2AssuranceApplicationdetailsbynamePostResponse: + """v2_assurance_applicationdetailsbyname_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_get_conversation_details_post_request: (required) - :type v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest + :param v2_assurance_applicationdetailsbyname_post_request: (required) + :type v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -113690,9 +125164,9 @@ def v2_assistant_get_conversation_details_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_get_conversation_details_post_serialize( + _param = self._v2_assurance_applicationdetailsbyname_post_serialize( authorization=authorization, - v2_assistant_get_conversation_details_post_request=v2_assistant_get_conversation_details_post_request, + v2_assurance_applicationdetailsbyname_post_request=v2_assurance_applicationdetailsbyname_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -113700,7 +125174,7 @@ def v2_assistant_get_conversation_details_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantGetConversationDetailsPostResponse", + '200': "V2AssuranceApplicationdetailsbynamePostResponse", } response_data = self.api_client.call_api( *_param, @@ -113714,10 +125188,10 @@ def v2_assistant_get_conversation_details_post( @validate_call - def v2_assistant_get_conversation_details_post_with_http_info( + def v2_assurance_applicationdetailsbyname_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest, + v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -113730,14 +125204,14 @@ def v2_assistant_get_conversation_details_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[V2AssistantGetConversationDetailsPostResponse]: - """v2_assistant_get_conversation_details_post + ) -> ApiResponse[V2AssuranceApplicationdetailsbynamePostResponse]: + """v2_assurance_applicationdetailsbyname_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_get_conversation_details_post_request: (required) - :type v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest + :param v2_assurance_applicationdetailsbyname_post_request: (required) + :type v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -113760,9 +125234,9 @@ def v2_assistant_get_conversation_details_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_get_conversation_details_post_serialize( + _param = self._v2_assurance_applicationdetailsbyname_post_serialize( authorization=authorization, - v2_assistant_get_conversation_details_post_request=v2_assistant_get_conversation_details_post_request, + v2_assurance_applicationdetailsbyname_post_request=v2_assurance_applicationdetailsbyname_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -113770,7 +125244,7 @@ def v2_assistant_get_conversation_details_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantGetConversationDetailsPostResponse", + '200': "V2AssuranceApplicationdetailsbynamePostResponse", } response_data = self.api_client.call_api( *_param, @@ -113784,10 +125258,10 @@ def v2_assistant_get_conversation_details_post_with_http_info( @validate_call - def v2_assistant_get_conversation_details_post_without_preload_content( + def v2_assurance_applicationdetailsbyname_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest, + v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -113801,13 +125275,13 @@ def v2_assistant_get_conversation_details_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assistant_get_conversation_details_post + """v2_assurance_applicationdetailsbyname_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_get_conversation_details_post_request: (required) - :type v2_assistant_get_conversation_details_post_request: V2AssistantGetConversationDetailsPostRequest + :param v2_assurance_applicationdetailsbyname_post_request: (required) + :type v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -113830,9 +125304,9 @@ def v2_assistant_get_conversation_details_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_get_conversation_details_post_serialize( + _param = self._v2_assurance_applicationdetailsbyname_post_serialize( authorization=authorization, - v2_assistant_get_conversation_details_post_request=v2_assistant_get_conversation_details_post_request, + v2_assurance_applicationdetailsbyname_post_request=v2_assurance_applicationdetailsbyname_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -113840,7 +125314,7 @@ def v2_assistant_get_conversation_details_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantGetConversationDetailsPostResponse", + '200': "V2AssuranceApplicationdetailsbynamePostResponse", } response_data = self.api_client.call_api( *_param, @@ -113849,10 +125323,10 @@ def v2_assistant_get_conversation_details_post_without_preload_content( return response_data.response - def _v2_assistant_get_conversation_details_post_serialize( + def _v2_assurance_applicationdetailsbyname_post_serialize( self, authorization, - v2_assistant_get_conversation_details_post_request, + v2_assurance_applicationdetailsbyname_post_request, _request_auth, _content_type, _headers, @@ -113880,8 +125354,8 @@ def _v2_assistant_get_conversation_details_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assistant_get_conversation_details_post_request is not None: - _body_params = v2_assistant_get_conversation_details_post_request + if v2_assurance_applicationdetailsbyname_post_request is not None: + _body_params = v2_assurance_applicationdetailsbyname_post_request # set the HTTP header `Accept` @@ -113913,7 +125387,7 @@ def _v2_assistant_get_conversation_details_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assistant/get-conversation-details', + resource_path='/v2/assurance/applicationdetailsbyname', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -113930,10 +125404,10 @@ def _v2_assistant_get_conversation_details_post_serialize( @validate_call - def v2_assistant_get_conversations_post( + def v2_assurance_applicationprofilesummary_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest, + v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -113946,14 +125420,14 @@ def v2_assistant_get_conversations_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssistantGetConversationsPostResponse: - """v2_assistant_get_conversations_post + ) -> V2AssuranceApplicationprofilesummaryPostResponse: + """v2_assurance_applicationprofilesummary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_get_conversations_post_request: (required) - :type v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest + :param v2_assurance_applicationprofilesummary_post_request: (required) + :type v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -113976,9 +125450,9 @@ def v2_assistant_get_conversations_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_get_conversations_post_serialize( + _param = self._v2_assurance_applicationprofilesummary_post_serialize( authorization=authorization, - v2_assistant_get_conversations_post_request=v2_assistant_get_conversations_post_request, + v2_assurance_applicationprofilesummary_post_request=v2_assurance_applicationprofilesummary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -113986,7 +125460,7 @@ def v2_assistant_get_conversations_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantGetConversationsPostResponse", + '200': "V2AssuranceApplicationprofilesummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114000,10 +125474,10 @@ def v2_assistant_get_conversations_post( @validate_call - def v2_assistant_get_conversations_post_with_http_info( + def v2_assurance_applicationprofilesummary_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest, + v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114016,14 +125490,14 @@ def v2_assistant_get_conversations_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[V2AssistantGetConversationsPostResponse]: - """v2_assistant_get_conversations_post + ) -> ApiResponse[V2AssuranceApplicationprofilesummaryPostResponse]: + """v2_assurance_applicationprofilesummary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_get_conversations_post_request: (required) - :type v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest + :param v2_assurance_applicationprofilesummary_post_request: (required) + :type v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -114046,9 +125520,9 @@ def v2_assistant_get_conversations_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_get_conversations_post_serialize( + _param = self._v2_assurance_applicationprofilesummary_post_serialize( authorization=authorization, - v2_assistant_get_conversations_post_request=v2_assistant_get_conversations_post_request, + v2_assurance_applicationprofilesummary_post_request=v2_assurance_applicationprofilesummary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114056,7 +125530,7 @@ def v2_assistant_get_conversations_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantGetConversationsPostResponse", + '200': "V2AssuranceApplicationprofilesummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114070,10 +125544,10 @@ def v2_assistant_get_conversations_post_with_http_info( @validate_call - def v2_assistant_get_conversations_post_without_preload_content( + def v2_assurance_applicationprofilesummary_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest, + v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114087,13 +125561,13 @@ def v2_assistant_get_conversations_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assistant_get_conversations_post + """v2_assurance_applicationprofilesummary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_get_conversations_post_request: (required) - :type v2_assistant_get_conversations_post_request: V2AssistantGetConversationsPostRequest + :param v2_assurance_applicationprofilesummary_post_request: (required) + :type v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -114116,9 +125590,9 @@ def v2_assistant_get_conversations_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_get_conversations_post_serialize( + _param = self._v2_assurance_applicationprofilesummary_post_serialize( authorization=authorization, - v2_assistant_get_conversations_post_request=v2_assistant_get_conversations_post_request, + v2_assurance_applicationprofilesummary_post_request=v2_assurance_applicationprofilesummary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114126,7 +125600,7 @@ def v2_assistant_get_conversations_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantGetConversationsPostResponse", + '200': "V2AssuranceApplicationprofilesummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114135,10 +125609,10 @@ def v2_assistant_get_conversations_post_without_preload_content( return response_data.response - def _v2_assistant_get_conversations_post_serialize( + def _v2_assurance_applicationprofilesummary_post_serialize( self, authorization, - v2_assistant_get_conversations_post_request, + v2_assurance_applicationprofilesummary_post_request, _request_auth, _content_type, _headers, @@ -114166,8 +125640,8 @@ def _v2_assistant_get_conversations_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assistant_get_conversations_post_request is not None: - _body_params = v2_assistant_get_conversations_post_request + if v2_assurance_applicationprofilesummary_post_request is not None: + _body_params = v2_assurance_applicationprofilesummary_post_request # set the HTTP header `Accept` @@ -114199,7 +125673,7 @@ def _v2_assistant_get_conversations_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assistant/get-conversations', + resource_path='/v2/assurance/applicationprofilesummary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -114216,10 +125690,10 @@ def _v2_assistant_get_conversations_post_serialize( @validate_call - def v2_assistant_update_conversation_name_post( + def v2_assurance_bucket_app_servers_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest, + v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114232,14 +125706,14 @@ def v2_assistant_update_conversation_name_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v2_assistant_update_conversation_name_post + ) -> V2AssuranceBucketAppServersPostResponse: + """v2_assurance_bucket_app_servers_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_update_conversation_name_post_request: (required) - :type v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest + :param v2_assurance_bucket_app_servers_post_request: (required) + :type v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -114262,9 +125736,9 @@ def v2_assistant_update_conversation_name_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_update_conversation_name_post_serialize( + _param = self._v2_assurance_bucket_app_servers_post_serialize( authorization=authorization, - v2_assistant_update_conversation_name_post_request=v2_assistant_update_conversation_name_post_request, + v2_assurance_bucket_app_servers_post_request=v2_assurance_bucket_app_servers_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114272,7 +125746,7 @@ def v2_assistant_update_conversation_name_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceBucketAppServersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114286,10 +125760,10 @@ def v2_assistant_update_conversation_name_post( @validate_call - def v2_assistant_update_conversation_name_post_with_http_info( + def v2_assurance_bucket_app_servers_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest, + v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114302,14 +125776,14 @@ def v2_assistant_update_conversation_name_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]: - """v2_assistant_update_conversation_name_post + ) -> ApiResponse[V2AssuranceBucketAppServersPostResponse]: + """v2_assurance_bucket_app_servers_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_update_conversation_name_post_request: (required) - :type v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest + :param v2_assurance_bucket_app_servers_post_request: (required) + :type v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -114332,9 +125806,9 @@ def v2_assistant_update_conversation_name_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_update_conversation_name_post_serialize( + _param = self._v2_assurance_bucket_app_servers_post_serialize( authorization=authorization, - v2_assistant_update_conversation_name_post_request=v2_assistant_update_conversation_name_post_request, + v2_assurance_bucket_app_servers_post_request=v2_assurance_bucket_app_servers_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114342,7 +125816,7 @@ def v2_assistant_update_conversation_name_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceBucketAppServersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114356,10 +125830,10 @@ def v2_assistant_update_conversation_name_post_with_http_info( @validate_call - def v2_assistant_update_conversation_name_post_without_preload_content( + def v2_assurance_bucket_app_servers_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest, + v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114373,13 +125847,13 @@ def v2_assistant_update_conversation_name_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assistant_update_conversation_name_post + """v2_assurance_bucket_app_servers_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assistant_update_conversation_name_post_request: (required) - :type v2_assistant_update_conversation_name_post_request: V2AssistantUpdateConversationNamePostRequest + :param v2_assurance_bucket_app_servers_post_request: (required) + :type v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -114402,9 +125876,9 @@ def v2_assistant_update_conversation_name_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_update_conversation_name_post_serialize( + _param = self._v2_assurance_bucket_app_servers_post_serialize( authorization=authorization, - v2_assistant_update_conversation_name_post_request=v2_assistant_update_conversation_name_post_request, + v2_assurance_bucket_app_servers_post_request=v2_assurance_bucket_app_servers_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114412,7 +125886,7 @@ def v2_assistant_update_conversation_name_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceBucketAppServersPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114421,10 +125895,10 @@ def v2_assistant_update_conversation_name_post_without_preload_content( return response_data.response - def _v2_assistant_update_conversation_name_post_serialize( + def _v2_assurance_bucket_app_servers_post_serialize( self, authorization, - v2_assistant_update_conversation_name_post_request, + v2_assurance_bucket_app_servers_post_request, _request_auth, _content_type, _headers, @@ -114452,8 +125926,8 @@ def _v2_assistant_update_conversation_name_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assistant_update_conversation_name_post_request is not None: - _body_params = v2_assistant_update_conversation_name_post_request + if v2_assurance_bucket_app_servers_post_request is not None: + _body_params = v2_assurance_bucket_app_servers_post_request # set the HTTP header `Accept` @@ -114485,7 +125959,7 @@ def _v2_assistant_update_conversation_name_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assistant/update-conversation-name', + resource_path='/v2/assurance/bucket-app-servers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -114502,10 +125976,10 @@ def _v2_assistant_update_conversation_name_post_serialize( @validate_call - def v2_assistant_version_post( + def v2_assurance_bucket_apps_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - body: Dict[str, Any], + v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114518,14 +125992,14 @@ def v2_assistant_version_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssistantVersionPostResponse: - """v2_assistant_version_post + ) -> V2AssuranceBucketAppsPostResponse: + """v2_assurance_bucket_apps_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :param v2_assurance_bucket_apps_post_request: (required) + :type v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -114548,9 +126022,9 @@ def v2_assistant_version_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_version_post_serialize( + _param = self._v2_assurance_bucket_apps_post_serialize( authorization=authorization, - body=body, + v2_assurance_bucket_apps_post_request=v2_assurance_bucket_apps_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114558,7 +126032,7 @@ def v2_assistant_version_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantVersionPostResponse", + '200': "V2AssuranceBucketAppsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114572,10 +126046,10 @@ def v2_assistant_version_post( @validate_call - def v2_assistant_version_post_with_http_info( + def v2_assurance_bucket_apps_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - body: Dict[str, Any], + v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114588,14 +126062,14 @@ def v2_assistant_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[V2AssistantVersionPostResponse]: - """v2_assistant_version_post + ) -> ApiResponse[V2AssuranceBucketAppsPostResponse]: + """v2_assurance_bucket_apps_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :param v2_assurance_bucket_apps_post_request: (required) + :type v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -114618,9 +126092,9 @@ def v2_assistant_version_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_version_post_serialize( + _param = self._v2_assurance_bucket_apps_post_serialize( authorization=authorization, - body=body, + v2_assurance_bucket_apps_post_request=v2_assurance_bucket_apps_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114628,7 +126102,7 @@ def v2_assistant_version_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantVersionPostResponse", + '200': "V2AssuranceBucketAppsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114642,10 +126116,10 @@ def v2_assistant_version_post_with_http_info( @validate_call - def v2_assistant_version_post_without_preload_content( + def v2_assurance_bucket_apps_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - body: Dict[str, Any], + v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114659,13 +126133,13 @@ def v2_assistant_version_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assistant_version_post + """v2_assurance_bucket_apps_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :param v2_assurance_bucket_apps_post_request: (required) + :type v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -114688,9 +126162,9 @@ def v2_assistant_version_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assistant_version_post_serialize( + _param = self._v2_assurance_bucket_apps_post_serialize( authorization=authorization, - body=body, + v2_assurance_bucket_apps_post_request=v2_assurance_bucket_apps_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114698,7 +126172,7 @@ def v2_assistant_version_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssistantVersionPostResponse", + '200': "V2AssuranceBucketAppsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114707,10 +126181,10 @@ def v2_assistant_version_post_without_preload_content( return response_data.response - def _v2_assistant_version_post_serialize( + def _v2_assurance_bucket_apps_post_serialize( self, authorization, - body, + v2_assurance_bucket_apps_post_request, _request_auth, _content_type, _headers, @@ -114738,8 +126212,8 @@ def _v2_assistant_version_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if body is not None: - _body_params = body + if v2_assurance_bucket_apps_post_request is not None: + _body_params = v2_assurance_bucket_apps_post_request # set the HTTP header `Accept` @@ -114771,7 +126245,7 @@ def _v2_assistant_version_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assistant/version', + resource_path='/v2/assurance/bucket-apps', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -114788,10 +126262,10 @@ def _v2_assistant_version_post_serialize( @validate_call - def v2_assurance_applicationdetailsbyname_post( + def v2_assurance_bucket_services_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest, + v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114804,14 +126278,14 @@ def v2_assurance_applicationdetailsbyname_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceApplicationdetailsbynamePostResponse: - """v2_assurance_applicationdetailsbyname_post + ) -> V2AssuranceBucketServicesPostResponse: + """v2_assurance_bucket_services_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_applicationdetailsbyname_post_request: (required) - :type v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest + :param v2_assurance_bucket_services_post_request: (required) + :type v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -114834,9 +126308,9 @@ def v2_assurance_applicationdetailsbyname_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_applicationdetailsbyname_post_serialize( + _param = self._v2_assurance_bucket_services_post_serialize( authorization=authorization, - v2_assurance_applicationdetailsbyname_post_request=v2_assurance_applicationdetailsbyname_post_request, + v2_assurance_bucket_services_post_request=v2_assurance_bucket_services_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114844,7 +126318,7 @@ def v2_assurance_applicationdetailsbyname_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceApplicationdetailsbynamePostResponse", + '200': "V2AssuranceBucketServicesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114858,10 +126332,10 @@ def v2_assurance_applicationdetailsbyname_post( @validate_call - def v2_assurance_applicationdetailsbyname_post_with_http_info( + def v2_assurance_bucket_services_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest, + v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114874,14 +126348,14 @@ def v2_assurance_applicationdetailsbyname_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[V2AssuranceApplicationdetailsbynamePostResponse]: - """v2_assurance_applicationdetailsbyname_post + ) -> ApiResponse[V2AssuranceBucketServicesPostResponse]: + """v2_assurance_bucket_services_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_applicationdetailsbyname_post_request: (required) - :type v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest + :param v2_assurance_bucket_services_post_request: (required) + :type v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -114904,9 +126378,9 @@ def v2_assurance_applicationdetailsbyname_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_applicationdetailsbyname_post_serialize( + _param = self._v2_assurance_bucket_services_post_serialize( authorization=authorization, - v2_assurance_applicationdetailsbyname_post_request=v2_assurance_applicationdetailsbyname_post_request, + v2_assurance_bucket_services_post_request=v2_assurance_bucket_services_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114914,7 +126388,7 @@ def v2_assurance_applicationdetailsbyname_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceApplicationdetailsbynamePostResponse", + '200': "V2AssuranceBucketServicesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114928,10 +126402,10 @@ def v2_assurance_applicationdetailsbyname_post_with_http_info( @validate_call - def v2_assurance_applicationdetailsbyname_post_without_preload_content( + def v2_assurance_bucket_services_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest, + v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -114945,13 +126419,13 @@ def v2_assurance_applicationdetailsbyname_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_applicationdetailsbyname_post + """v2_assurance_bucket_services_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_applicationdetailsbyname_post_request: (required) - :type v2_assurance_applicationdetailsbyname_post_request: V2AssuranceApplicationdetailsbynamePostRequest + :param v2_assurance_bucket_services_post_request: (required) + :type v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -114974,9 +126448,9 @@ def v2_assurance_applicationdetailsbyname_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_applicationdetailsbyname_post_serialize( + _param = self._v2_assurance_bucket_services_post_serialize( authorization=authorization, - v2_assurance_applicationdetailsbyname_post_request=v2_assurance_applicationdetailsbyname_post_request, + v2_assurance_bucket_services_post_request=v2_assurance_bucket_services_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -114984,7 +126458,7 @@ def v2_assurance_applicationdetailsbyname_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceApplicationdetailsbynamePostResponse", + '200': "V2AssuranceBucketServicesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -114993,10 +126467,10 @@ def v2_assurance_applicationdetailsbyname_post_without_preload_content( return response_data.response - def _v2_assurance_applicationdetailsbyname_post_serialize( + def _v2_assurance_bucket_services_post_serialize( self, authorization, - v2_assurance_applicationdetailsbyname_post_request, + v2_assurance_bucket_services_post_request, _request_auth, _content_type, _headers, @@ -115024,8 +126498,8 @@ def _v2_assurance_applicationdetailsbyname_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assurance_applicationdetailsbyname_post_request is not None: - _body_params = v2_assurance_applicationdetailsbyname_post_request + if v2_assurance_bucket_services_post_request is not None: + _body_params = v2_assurance_bucket_services_post_request # set the HTTP header `Accept` @@ -115057,7 +126531,7 @@ def _v2_assurance_applicationdetailsbyname_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assurance/applicationdetailsbyname', + resource_path='/v2/assurance/bucket-services', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -115074,10 +126548,10 @@ def _v2_assurance_applicationdetailsbyname_post_serialize( @validate_call - def v2_assurance_applicationprofilesummary_post( + def v2_assurance_bucket_topologies_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest, + v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -115090,14 +126564,14 @@ def v2_assurance_applicationprofilesummary_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceApplicationprofilesummaryPostResponse: - """v2_assurance_applicationprofilesummary_post + ) -> V2AssuranceBucketTopologiesPostResponse: + """v2_assurance_bucket_topologies_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_applicationprofilesummary_post_request: (required) - :type v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest + :param v2_assurance_bucket_topologies_post_request: (required) + :type v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -115120,9 +126594,9 @@ def v2_assurance_applicationprofilesummary_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_applicationprofilesummary_post_serialize( + _param = self._v2_assurance_bucket_topologies_post_serialize( authorization=authorization, - v2_assurance_applicationprofilesummary_post_request=v2_assurance_applicationprofilesummary_post_request, + v2_assurance_bucket_topologies_post_request=v2_assurance_bucket_topologies_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -115130,7 +126604,7 @@ def v2_assurance_applicationprofilesummary_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceApplicationprofilesummaryPostResponse", + '200': "V2AssuranceBucketTopologiesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -115144,10 +126618,10 @@ def v2_assurance_applicationprofilesummary_post( @validate_call - def v2_assurance_applicationprofilesummary_post_with_http_info( + def v2_assurance_bucket_topologies_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest, + v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -115160,14 +126634,14 @@ def v2_assurance_applicationprofilesummary_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[V2AssuranceApplicationprofilesummaryPostResponse]: - """v2_assurance_applicationprofilesummary_post + ) -> ApiResponse[V2AssuranceBucketTopologiesPostResponse]: + """v2_assurance_bucket_topologies_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_applicationprofilesummary_post_request: (required) - :type v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest + :param v2_assurance_bucket_topologies_post_request: (required) + :type v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -115190,9 +126664,9 @@ def v2_assurance_applicationprofilesummary_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_applicationprofilesummary_post_serialize( + _param = self._v2_assurance_bucket_topologies_post_serialize( authorization=authorization, - v2_assurance_applicationprofilesummary_post_request=v2_assurance_applicationprofilesummary_post_request, + v2_assurance_bucket_topologies_post_request=v2_assurance_bucket_topologies_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -115200,7 +126674,7 @@ def v2_assurance_applicationprofilesummary_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceApplicationprofilesummaryPostResponse", + '200': "V2AssuranceBucketTopologiesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -115214,10 +126688,10 @@ def v2_assurance_applicationprofilesummary_post_with_http_info( @validate_call - def v2_assurance_applicationprofilesummary_post_without_preload_content( + def v2_assurance_bucket_topologies_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest, + v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -115231,13 +126705,13 @@ def v2_assurance_applicationprofilesummary_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_applicationprofilesummary_post + """v2_assurance_bucket_topologies_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_applicationprofilesummary_post_request: (required) - :type v2_assurance_applicationprofilesummary_post_request: V2AssuranceApplicationprofilesummaryPostRequest + :param v2_assurance_bucket_topologies_post_request: (required) + :type v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -115260,9 +126734,9 @@ def v2_assurance_applicationprofilesummary_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_applicationprofilesummary_post_serialize( + _param = self._v2_assurance_bucket_topologies_post_serialize( authorization=authorization, - v2_assurance_applicationprofilesummary_post_request=v2_assurance_applicationprofilesummary_post_request, + v2_assurance_bucket_topologies_post_request=v2_assurance_bucket_topologies_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -115270,7 +126744,7 @@ def v2_assurance_applicationprofilesummary_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceApplicationprofilesummaryPostResponse", + '200': "V2AssuranceBucketTopologiesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -115279,10 +126753,10 @@ def v2_assurance_applicationprofilesummary_post_without_preload_content( return response_data.response - def _v2_assurance_applicationprofilesummary_post_serialize( + def _v2_assurance_bucket_topologies_post_serialize( self, authorization, - v2_assurance_applicationprofilesummary_post_request, + v2_assurance_bucket_topologies_post_request, _request_auth, _content_type, _headers, @@ -115310,8 +126784,8 @@ def _v2_assurance_applicationprofilesummary_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assurance_applicationprofilesummary_post_request is not None: - _body_params = v2_assurance_applicationprofilesummary_post_request + if v2_assurance_bucket_topologies_post_request is not None: + _body_params = v2_assurance_bucket_topologies_post_request # set the HTTP header `Accept` @@ -115343,7 +126817,7 @@ def _v2_assurance_applicationprofilesummary_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assurance/applicationprofilesummary', + resource_path='/v2/assurance/bucket-topologies', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -115360,10 +126834,10 @@ def _v2_assurance_applicationprofilesummary_post_serialize( @validate_call - def v2_assurance_bucket_app_servers_post( + def v2_assurance_bucketdetails_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest, + v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -115376,14 +126850,14 @@ def v2_assurance_bucket_app_servers_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceBucketAppServersPostResponse: - """v2_assurance_bucket_app_servers_post + ) -> V2AssuranceBucketdetailsPostResponse: + """v2_assurance_bucketdetails_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_app_servers_post_request: (required) - :type v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest + :param v2_assurance_bucketdetails_post_request: (required) + :type v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -115406,9 +126880,9 @@ def v2_assurance_bucket_app_servers_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_app_servers_post_serialize( + _param = self._v2_assurance_bucketdetails_post_serialize( authorization=authorization, - v2_assurance_bucket_app_servers_post_request=v2_assurance_bucket_app_servers_post_request, + v2_assurance_bucketdetails_post_request=v2_assurance_bucketdetails_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -115416,7 +126890,7 @@ def v2_assurance_bucket_app_servers_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketAppServersPostResponse", + '200': "V2AssuranceBucketdetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -115430,10 +126904,10 @@ def v2_assurance_bucket_app_servers_post( @validate_call - def v2_assurance_bucket_app_servers_post_with_http_info( + def v2_assurance_bucketdetails_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest, + v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -115446,14 +126920,14 @@ def v2_assurance_bucket_app_servers_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[V2AssuranceBucketAppServersPostResponse]: - """v2_assurance_bucket_app_servers_post + ) -> ApiResponse[V2AssuranceBucketdetailsPostResponse]: + """v2_assurance_bucketdetails_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_app_servers_post_request: (required) - :type v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest + :param v2_assurance_bucketdetails_post_request: (required) + :type v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -115476,9 +126950,9 @@ def v2_assurance_bucket_app_servers_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_app_servers_post_serialize( + _param = self._v2_assurance_bucketdetails_post_serialize( authorization=authorization, - v2_assurance_bucket_app_servers_post_request=v2_assurance_bucket_app_servers_post_request, + v2_assurance_bucketdetails_post_request=v2_assurance_bucketdetails_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -115486,7 +126960,7 @@ def v2_assurance_bucket_app_servers_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketAppServersPostResponse", + '200': "V2AssuranceBucketdetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -115500,10 +126974,10 @@ def v2_assurance_bucket_app_servers_post_with_http_info( @validate_call - def v2_assurance_bucket_app_servers_post_without_preload_content( + def v2_assurance_bucketdetails_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest, + v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -115517,13 +126991,13 @@ def v2_assurance_bucket_app_servers_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_bucket_app_servers_post + """v2_assurance_bucketdetails_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_app_servers_post_request: (required) - :type v2_assurance_bucket_app_servers_post_request: V2AssuranceBucketAppServersPostRequest + :param v2_assurance_bucketdetails_post_request: (required) + :type v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -115546,9 +127020,9 @@ def v2_assurance_bucket_app_servers_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_app_servers_post_serialize( + _param = self._v2_assurance_bucketdetails_post_serialize( authorization=authorization, - v2_assurance_bucket_app_servers_post_request=v2_assurance_bucket_app_servers_post_request, + v2_assurance_bucketdetails_post_request=v2_assurance_bucketdetails_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -115556,7 +127030,7 @@ def v2_assurance_bucket_app_servers_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketAppServersPostResponse", + '200': "V2AssuranceBucketdetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -115565,10 +127039,10 @@ def v2_assurance_bucket_app_servers_post_without_preload_content( return response_data.response - def _v2_assurance_bucket_app_servers_post_serialize( + def _v2_assurance_bucketdetails_post_serialize( self, authorization, - v2_assurance_bucket_app_servers_post_request, + v2_assurance_bucketdetails_post_request, _request_auth, _content_type, _headers, @@ -115596,8 +127070,8 @@ def _v2_assurance_bucket_app_servers_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assurance_bucket_app_servers_post_request is not None: - _body_params = v2_assurance_bucket_app_servers_post_request + if v2_assurance_bucketdetails_post_request is not None: + _body_params = v2_assurance_bucketdetails_post_request # set the HTTP header `Accept` @@ -115629,7 +127103,7 @@ def _v2_assurance_bucket_app_servers_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assurance/bucket-app-servers', + resource_path='/v2/assurance/bucketdetails', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -115646,10 +127120,10 @@ def _v2_assurance_bucket_app_servers_post_serialize( @validate_call - def v2_assurance_bucket_apps_post( + def v2_assurance_create_ai_adoption_approve_entry_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest, + v2_assurance_create_ai_adoption_approve_entry_post_request: V2AssuranceCreateAiAdoptionApproveEntryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -115662,14 +127136,14 @@ def v2_assurance_bucket_apps_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceBucketAppsPostResponse: - """v2_assurance_bucket_apps_post + ) -> V2AssuranceCreateAiAdoptionApproveEntryPostResponse: + """v2_assurance_create_ai_adoption_approve_entry_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_apps_post_request: (required) - :type v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest + :param v2_assurance_create_ai_adoption_approve_entry_post_request: (required) + :type v2_assurance_create_ai_adoption_approve_entry_post_request: V2AssuranceCreateAiAdoptionApproveEntryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -115692,9 +127166,9 @@ def v2_assurance_bucket_apps_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_apps_post_serialize( + _param = self._v2_assurance_create_ai_adoption_approve_entry_post_serialize( authorization=authorization, - v2_assurance_bucket_apps_post_request=v2_assurance_bucket_apps_post_request, + v2_assurance_create_ai_adoption_approve_entry_post_request=v2_assurance_create_ai_adoption_approve_entry_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -115702,7 +127176,7 @@ def v2_assurance_bucket_apps_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketAppsPostResponse", + '200': "V2AssuranceCreateAiAdoptionApproveEntryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -115716,10 +127190,10 @@ def v2_assurance_bucket_apps_post( @validate_call - def v2_assurance_bucket_apps_post_with_http_info( + def v2_assurance_create_ai_adoption_approve_entry_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest, + v2_assurance_create_ai_adoption_approve_entry_post_request: V2AssuranceCreateAiAdoptionApproveEntryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -115732,14 +127206,14 @@ def v2_assurance_bucket_apps_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[V2AssuranceBucketAppsPostResponse]: - """v2_assurance_bucket_apps_post + ) -> ApiResponse[V2AssuranceCreateAiAdoptionApproveEntryPostResponse]: + """v2_assurance_create_ai_adoption_approve_entry_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_apps_post_request: (required) - :type v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest + :param v2_assurance_create_ai_adoption_approve_entry_post_request: (required) + :type v2_assurance_create_ai_adoption_approve_entry_post_request: V2AssuranceCreateAiAdoptionApproveEntryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -115762,9 +127236,9 @@ def v2_assurance_bucket_apps_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_apps_post_serialize( + _param = self._v2_assurance_create_ai_adoption_approve_entry_post_serialize( authorization=authorization, - v2_assurance_bucket_apps_post_request=v2_assurance_bucket_apps_post_request, + v2_assurance_create_ai_adoption_approve_entry_post_request=v2_assurance_create_ai_adoption_approve_entry_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -115772,7 +127246,7 @@ def v2_assurance_bucket_apps_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketAppsPostResponse", + '200': "V2AssuranceCreateAiAdoptionApproveEntryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -115786,10 +127260,10 @@ def v2_assurance_bucket_apps_post_with_http_info( @validate_call - def v2_assurance_bucket_apps_post_without_preload_content( + def v2_assurance_create_ai_adoption_approve_entry_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest, + v2_assurance_create_ai_adoption_approve_entry_post_request: V2AssuranceCreateAiAdoptionApproveEntryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -115803,13 +127277,13 @@ def v2_assurance_bucket_apps_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_bucket_apps_post + """v2_assurance_create_ai_adoption_approve_entry_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_apps_post_request: (required) - :type v2_assurance_bucket_apps_post_request: V2AssuranceBucketAppsPostRequest + :param v2_assurance_create_ai_adoption_approve_entry_post_request: (required) + :type v2_assurance_create_ai_adoption_approve_entry_post_request: V2AssuranceCreateAiAdoptionApproveEntryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -115832,9 +127306,9 @@ def v2_assurance_bucket_apps_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_apps_post_serialize( + _param = self._v2_assurance_create_ai_adoption_approve_entry_post_serialize( authorization=authorization, - v2_assurance_bucket_apps_post_request=v2_assurance_bucket_apps_post_request, + v2_assurance_create_ai_adoption_approve_entry_post_request=v2_assurance_create_ai_adoption_approve_entry_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -115842,7 +127316,7 @@ def v2_assurance_bucket_apps_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketAppsPostResponse", + '200': "V2AssuranceCreateAiAdoptionApproveEntryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -115851,10 +127325,10 @@ def v2_assurance_bucket_apps_post_without_preload_content( return response_data.response - def _v2_assurance_bucket_apps_post_serialize( + def _v2_assurance_create_ai_adoption_approve_entry_post_serialize( self, authorization, - v2_assurance_bucket_apps_post_request, + v2_assurance_create_ai_adoption_approve_entry_post_request, _request_auth, _content_type, _headers, @@ -115882,8 +127356,8 @@ def _v2_assurance_bucket_apps_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assurance_bucket_apps_post_request is not None: - _body_params = v2_assurance_bucket_apps_post_request + if v2_assurance_create_ai_adoption_approve_entry_post_request is not None: + _body_params = v2_assurance_create_ai_adoption_approve_entry_post_request # set the HTTP header `Accept` @@ -115915,7 +127389,7 @@ def _v2_assurance_bucket_apps_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assurance/bucket-apps', + resource_path='/v2/assurance/create-ai-adoption-approve-entry', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -115932,10 +127406,10 @@ def _v2_assurance_bucket_apps_post_serialize( @validate_call - def v2_assurance_bucket_services_post( + def v2_assurance_create_dnsproxy_entry_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest, + v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -115948,14 +127422,14 @@ def v2_assurance_bucket_services_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceBucketServicesPostResponse: - """v2_assurance_bucket_services_post + ) -> V2AssuranceCreateDnsproxyEntryPostResponse: + """v2_assurance_create_dnsproxy_entry_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_services_post_request: (required) - :type v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest + :param v2_assurance_create_dnsproxy_entry_post_request: (required) + :type v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -115978,9 +127452,9 @@ def v2_assurance_bucket_services_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_services_post_serialize( + _param = self._v2_assurance_create_dnsproxy_entry_post_serialize( authorization=authorization, - v2_assurance_bucket_services_post_request=v2_assurance_bucket_services_post_request, + v2_assurance_create_dnsproxy_entry_post_request=v2_assurance_create_dnsproxy_entry_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -115988,7 +127462,7 @@ def v2_assurance_bucket_services_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketServicesPostResponse", + '200': "V2AssuranceCreateDnsproxyEntryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -116002,10 +127476,10 @@ def v2_assurance_bucket_services_post( @validate_call - def v2_assurance_bucket_services_post_with_http_info( + def v2_assurance_create_dnsproxy_entry_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest, + v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -116018,14 +127492,14 @@ def v2_assurance_bucket_services_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[V2AssuranceBucketServicesPostResponse]: - """v2_assurance_bucket_services_post + ) -> ApiResponse[V2AssuranceCreateDnsproxyEntryPostResponse]: + """v2_assurance_create_dnsproxy_entry_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_services_post_request: (required) - :type v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest + :param v2_assurance_create_dnsproxy_entry_post_request: (required) + :type v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -116048,9 +127522,9 @@ def v2_assurance_bucket_services_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_services_post_serialize( + _param = self._v2_assurance_create_dnsproxy_entry_post_serialize( authorization=authorization, - v2_assurance_bucket_services_post_request=v2_assurance_bucket_services_post_request, + v2_assurance_create_dnsproxy_entry_post_request=v2_assurance_create_dnsproxy_entry_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116058,7 +127532,7 @@ def v2_assurance_bucket_services_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketServicesPostResponse", + '200': "V2AssuranceCreateDnsproxyEntryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -116072,10 +127546,10 @@ def v2_assurance_bucket_services_post_with_http_info( @validate_call - def v2_assurance_bucket_services_post_without_preload_content( + def v2_assurance_create_dnsproxy_entry_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest, + v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -116089,13 +127563,13 @@ def v2_assurance_bucket_services_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_bucket_services_post + """v2_assurance_create_dnsproxy_entry_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_services_post_request: (required) - :type v2_assurance_bucket_services_post_request: V2AssuranceBucketServicesPostRequest + :param v2_assurance_create_dnsproxy_entry_post_request: (required) + :type v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -116118,9 +127592,9 @@ def v2_assurance_bucket_services_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_services_post_serialize( + _param = self._v2_assurance_create_dnsproxy_entry_post_serialize( authorization=authorization, - v2_assurance_bucket_services_post_request=v2_assurance_bucket_services_post_request, + v2_assurance_create_dnsproxy_entry_post_request=v2_assurance_create_dnsproxy_entry_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116128,7 +127602,7 @@ def v2_assurance_bucket_services_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketServicesPostResponse", + '200': "V2AssuranceCreateDnsproxyEntryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -116137,10 +127611,10 @@ def v2_assurance_bucket_services_post_without_preload_content( return response_data.response - def _v2_assurance_bucket_services_post_serialize( + def _v2_assurance_create_dnsproxy_entry_post_serialize( self, authorization, - v2_assurance_bucket_services_post_request, + v2_assurance_create_dnsproxy_entry_post_request, _request_auth, _content_type, _headers, @@ -116168,8 +127642,8 @@ def _v2_assurance_bucket_services_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assurance_bucket_services_post_request is not None: - _body_params = v2_assurance_bucket_services_post_request + if v2_assurance_create_dnsproxy_entry_post_request is not None: + _body_params = v2_assurance_create_dnsproxy_entry_post_request # set the HTTP header `Accept` @@ -116201,7 +127675,7 @@ def _v2_assurance_bucket_services_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assurance/bucket-services', + resource_path='/v2/assurance/create-dnsproxy-entry', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -116218,10 +127692,10 @@ def _v2_assurance_bucket_services_post_serialize( @validate_call - def v2_assurance_bucket_topologies_post( + def v2_assurance_create_user_report_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest, + v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -116234,14 +127708,14 @@ def v2_assurance_bucket_topologies_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceBucketTopologiesPostResponse: - """v2_assurance_bucket_topologies_post + ) -> V2AssuranceCreateUserReportPostResponse: + """v2_assurance_create_user_report_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_topologies_post_request: (required) - :type v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest + :param v2_assurance_create_user_report_post_request: (required) + :type v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -116264,9 +127738,9 @@ def v2_assurance_bucket_topologies_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_topologies_post_serialize( + _param = self._v2_assurance_create_user_report_post_serialize( authorization=authorization, - v2_assurance_bucket_topologies_post_request=v2_assurance_bucket_topologies_post_request, + v2_assurance_create_user_report_post_request=v2_assurance_create_user_report_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116274,7 +127748,7 @@ def v2_assurance_bucket_topologies_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketTopologiesPostResponse", + '200': "V2AssuranceCreateUserReportPostResponse", } response_data = self.api_client.call_api( *_param, @@ -116288,10 +127762,10 @@ def v2_assurance_bucket_topologies_post( @validate_call - def v2_assurance_bucket_topologies_post_with_http_info( + def v2_assurance_create_user_report_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest, + v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -116304,14 +127778,14 @@ def v2_assurance_bucket_topologies_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[V2AssuranceBucketTopologiesPostResponse]: - """v2_assurance_bucket_topologies_post + ) -> ApiResponse[V2AssuranceCreateUserReportPostResponse]: + """v2_assurance_create_user_report_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_topologies_post_request: (required) - :type v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest + :param v2_assurance_create_user_report_post_request: (required) + :type v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -116334,9 +127808,9 @@ def v2_assurance_bucket_topologies_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_topologies_post_serialize( + _param = self._v2_assurance_create_user_report_post_serialize( authorization=authorization, - v2_assurance_bucket_topologies_post_request=v2_assurance_bucket_topologies_post_request, + v2_assurance_create_user_report_post_request=v2_assurance_create_user_report_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116344,7 +127818,7 @@ def v2_assurance_bucket_topologies_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketTopologiesPostResponse", + '200': "V2AssuranceCreateUserReportPostResponse", } response_data = self.api_client.call_api( *_param, @@ -116358,10 +127832,10 @@ def v2_assurance_bucket_topologies_post_with_http_info( @validate_call - def v2_assurance_bucket_topologies_post_without_preload_content( + def v2_assurance_create_user_report_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest, + v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -116375,13 +127849,13 @@ def v2_assurance_bucket_topologies_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_bucket_topologies_post + """v2_assurance_create_user_report_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucket_topologies_post_request: (required) - :type v2_assurance_bucket_topologies_post_request: V2AssuranceBucketTopologiesPostRequest + :param v2_assurance_create_user_report_post_request: (required) + :type v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -116404,9 +127878,9 @@ def v2_assurance_bucket_topologies_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucket_topologies_post_serialize( + _param = self._v2_assurance_create_user_report_post_serialize( authorization=authorization, - v2_assurance_bucket_topologies_post_request=v2_assurance_bucket_topologies_post_request, + v2_assurance_create_user_report_post_request=v2_assurance_create_user_report_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116414,7 +127888,7 @@ def v2_assurance_bucket_topologies_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketTopologiesPostResponse", + '200': "V2AssuranceCreateUserReportPostResponse", } response_data = self.api_client.call_api( *_param, @@ -116423,10 +127897,10 @@ def v2_assurance_bucket_topologies_post_without_preload_content( return response_data.response - def _v2_assurance_bucket_topologies_post_serialize( + def _v2_assurance_create_user_report_post_serialize( self, authorization, - v2_assurance_bucket_topologies_post_request, + v2_assurance_create_user_report_post_request, _request_auth, _content_type, _headers, @@ -116454,8 +127928,8 @@ def _v2_assurance_bucket_topologies_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assurance_bucket_topologies_post_request is not None: - _body_params = v2_assurance_bucket_topologies_post_request + if v2_assurance_create_user_report_post_request is not None: + _body_params = v2_assurance_create_user_report_post_request # set the HTTP header `Accept` @@ -116487,7 +127961,7 @@ def _v2_assurance_bucket_topologies_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assurance/bucket-topologies', + resource_path='/v2/assurance/create-user-report', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -116504,10 +127978,10 @@ def _v2_assurance_bucket_topologies_post_serialize( @validate_call - def v2_assurance_bucketdetails_post( + def v2_assurance_createclassifiedapplication_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest, + v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -116520,14 +127994,14 @@ def v2_assurance_bucketdetails_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceBucketdetailsPostResponse: - """v2_assurance_bucketdetails_post + ) -> V2AssuranceCreateclassifiedapplicationPostResponse: + """v2_assurance_createclassifiedapplication_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucketdetails_post_request: (required) - :type v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest + :param v2_assurance_createclassifiedapplication_post_request: (required) + :type v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -116550,9 +128024,9 @@ def v2_assurance_bucketdetails_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucketdetails_post_serialize( + _param = self._v2_assurance_createclassifiedapplication_post_serialize( authorization=authorization, - v2_assurance_bucketdetails_post_request=v2_assurance_bucketdetails_post_request, + v2_assurance_createclassifiedapplication_post_request=v2_assurance_createclassifiedapplication_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116560,7 +128034,7 @@ def v2_assurance_bucketdetails_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketdetailsPostResponse", + '200': "V2AssuranceCreateclassifiedapplicationPostResponse", } response_data = self.api_client.call_api( *_param, @@ -116574,10 +128048,10 @@ def v2_assurance_bucketdetails_post( @validate_call - def v2_assurance_bucketdetails_post_with_http_info( + def v2_assurance_createclassifiedapplication_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest, + v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -116590,14 +128064,14 @@ def v2_assurance_bucketdetails_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[V2AssuranceBucketdetailsPostResponse]: - """v2_assurance_bucketdetails_post + ) -> ApiResponse[V2AssuranceCreateclassifiedapplicationPostResponse]: + """v2_assurance_createclassifiedapplication_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucketdetails_post_request: (required) - :type v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest + :param v2_assurance_createclassifiedapplication_post_request: (required) + :type v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -116620,9 +128094,9 @@ def v2_assurance_bucketdetails_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucketdetails_post_serialize( + _param = self._v2_assurance_createclassifiedapplication_post_serialize( authorization=authorization, - v2_assurance_bucketdetails_post_request=v2_assurance_bucketdetails_post_request, + v2_assurance_createclassifiedapplication_post_request=v2_assurance_createclassifiedapplication_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116630,7 +128104,7 @@ def v2_assurance_bucketdetails_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketdetailsPostResponse", + '200': "V2AssuranceCreateclassifiedapplicationPostResponse", } response_data = self.api_client.call_api( *_param, @@ -116644,10 +128118,10 @@ def v2_assurance_bucketdetails_post_with_http_info( @validate_call - def v2_assurance_bucketdetails_post_without_preload_content( + def v2_assurance_createclassifiedapplication_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest, + v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -116661,13 +128135,13 @@ def v2_assurance_bucketdetails_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_bucketdetails_post + """v2_assurance_createclassifiedapplication_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_bucketdetails_post_request: (required) - :type v2_assurance_bucketdetails_post_request: V2AssuranceBucketdetailsPostRequest + :param v2_assurance_createclassifiedapplication_post_request: (required) + :type v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -116690,9 +128164,9 @@ def v2_assurance_bucketdetails_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_bucketdetails_post_serialize( + _param = self._v2_assurance_createclassifiedapplication_post_serialize( authorization=authorization, - v2_assurance_bucketdetails_post_request=v2_assurance_bucketdetails_post_request, + v2_assurance_createclassifiedapplication_post_request=v2_assurance_createclassifiedapplication_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116700,7 +128174,7 @@ def v2_assurance_bucketdetails_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceBucketdetailsPostResponse", + '200': "V2AssuranceCreateclassifiedapplicationPostResponse", } response_data = self.api_client.call_api( *_param, @@ -116709,10 +128183,10 @@ def v2_assurance_bucketdetails_post_without_preload_content( return response_data.response - def _v2_assurance_bucketdetails_post_serialize( + def _v2_assurance_createclassifiedapplication_post_serialize( self, authorization, - v2_assurance_bucketdetails_post_request, + v2_assurance_createclassifiedapplication_post_request, _request_auth, _content_type, _headers, @@ -116740,8 +128214,8 @@ def _v2_assurance_bucketdetails_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assurance_bucketdetails_post_request is not None: - _body_params = v2_assurance_bucketdetails_post_request + if v2_assurance_createclassifiedapplication_post_request is not None: + _body_params = v2_assurance_createclassifiedapplication_post_request # set the HTTP header `Accept` @@ -116773,7 +128247,7 @@ def _v2_assurance_bucketdetails_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v2/assurance/bucketdetails', + resource_path='/v2/assurance/createclassifiedapplication', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -116790,10 +128264,10 @@ def _v2_assurance_bucketdetails_post_serialize( @validate_call - def v2_assurance_create_dnsproxy_entry_post( + def v2_assurance_delete_ai_adoption_approve_entry_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest, + id_list: Annotated[List[StrictStr], Field(description="list of approved app entry identifiers to delete")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -116806,14 +128280,14 @@ def v2_assurance_create_dnsproxy_entry_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceCreateDnsproxyEntryPostResponse: - """v2_assurance_create_dnsproxy_entry_post + ) -> object: + """v2_assurance_delete_ai_adoption_approve_entry_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_create_dnsproxy_entry_post_request: (required) - :type v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest + :param id_list: list of approved app entry identifiers to delete (required) + :type id_list: List[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 @@ -116836,9 +128310,9 @@ def v2_assurance_create_dnsproxy_entry_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_create_dnsproxy_entry_post_serialize( + _param = self._v2_assurance_delete_ai_adoption_approve_entry_delete_serialize( authorization=authorization, - v2_assurance_create_dnsproxy_entry_post_request=v2_assurance_create_dnsproxy_entry_post_request, + id_list=id_list, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116846,7 +128320,7 @@ def v2_assurance_create_dnsproxy_entry_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceCreateDnsproxyEntryPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -116860,10 +128334,10 @@ def v2_assurance_create_dnsproxy_entry_post( @validate_call - def v2_assurance_create_dnsproxy_entry_post_with_http_info( + def v2_assurance_delete_ai_adoption_approve_entry_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest, + id_list: Annotated[List[StrictStr], Field(description="list of approved app entry identifiers to delete")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -116876,14 +128350,14 @@ def v2_assurance_create_dnsproxy_entry_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[V2AssuranceCreateDnsproxyEntryPostResponse]: - """v2_assurance_create_dnsproxy_entry_post + ) -> ApiResponse[object]: + """v2_assurance_delete_ai_adoption_approve_entry_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_create_dnsproxy_entry_post_request: (required) - :type v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest + :param id_list: list of approved app entry identifiers to delete (required) + :type id_list: List[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 @@ -116906,9 +128380,9 @@ def v2_assurance_create_dnsproxy_entry_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_create_dnsproxy_entry_post_serialize( + _param = self._v2_assurance_delete_ai_adoption_approve_entry_delete_serialize( authorization=authorization, - v2_assurance_create_dnsproxy_entry_post_request=v2_assurance_create_dnsproxy_entry_post_request, + id_list=id_list, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116916,7 +128390,7 @@ def v2_assurance_create_dnsproxy_entry_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceCreateDnsproxyEntryPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -116930,10 +128404,10 @@ def v2_assurance_create_dnsproxy_entry_post_with_http_info( @validate_call - def v2_assurance_create_dnsproxy_entry_post_without_preload_content( + def v2_assurance_delete_ai_adoption_approve_entry_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest, + id_list: Annotated[List[StrictStr], Field(description="list of approved app entry identifiers to delete")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -116947,13 +128421,13 @@ def v2_assurance_create_dnsproxy_entry_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_create_dnsproxy_entry_post + """v2_assurance_delete_ai_adoption_approve_entry_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_create_dnsproxy_entry_post_request: (required) - :type v2_assurance_create_dnsproxy_entry_post_request: V2AssuranceCreateDnsproxyEntryPostRequest + :param id_list: list of approved app entry identifiers to delete (required) + :type id_list: List[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 @@ -116976,9 +128450,9 @@ def v2_assurance_create_dnsproxy_entry_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_create_dnsproxy_entry_post_serialize( + _param = self._v2_assurance_delete_ai_adoption_approve_entry_delete_serialize( authorization=authorization, - v2_assurance_create_dnsproxy_entry_post_request=v2_assurance_create_dnsproxy_entry_post_request, + id_list=id_list, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -116986,7 +128460,7 @@ def v2_assurance_create_dnsproxy_entry_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceCreateDnsproxyEntryPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -116995,10 +128469,10 @@ def v2_assurance_create_dnsproxy_entry_post_without_preload_content( return response_data.response - def _v2_assurance_create_dnsproxy_entry_post_serialize( + def _v2_assurance_delete_ai_adoption_approve_entry_delete_serialize( self, authorization, - v2_assurance_create_dnsproxy_entry_post_request, + id_list, _request_auth, _content_type, _headers, @@ -117008,6 +128482,7 @@ def _v2_assurance_create_dnsproxy_entry_post_serialize( _host = None _collection_formats: Dict[str, str] = { + 'idList': 'multi', } _path_params: Dict[str, str] = {} @@ -117021,13 +128496,15 @@ def _v2_assurance_create_dnsproxy_entry_post_serialize( # process the path parameters # process the query parameters + if id_list is not None: + + _query_params.append(('idList', id_list)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assurance_create_dnsproxy_entry_post_request is not None: - _body_params = v2_assurance_create_dnsproxy_entry_post_request # set the HTTP header `Accept` @@ -117038,19 +128515,6 @@ def _v2_assurance_create_dnsproxy_entry_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] = [ @@ -117058,8 +128522,8 @@ def _v2_assurance_create_dnsproxy_entry_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v2/assurance/create-dnsproxy-entry', + method='DELETE', + resource_path='/v2/assurance/delete-ai-adoption-approve-entry', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -117076,10 +128540,9 @@ def _v2_assurance_create_dnsproxy_entry_post_serialize( @validate_call - def v2_assurance_create_user_report_post( + def v2_assurance_delete_dnsproxy_entry_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117092,14 +128555,12 @@ def v2_assurance_create_user_report_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceCreateUserReportPostResponse: - """v2_assurance_create_user_report_post + ) -> object: + """v2_assurance_delete_dnsproxy_entry_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_create_user_report_post_request: (required) - :type v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -117122,9 +128583,8 @@ def v2_assurance_create_user_report_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_create_user_report_post_serialize( + _param = self._v2_assurance_delete_dnsproxy_entry_delete_serialize( authorization=authorization, - v2_assurance_create_user_report_post_request=v2_assurance_create_user_report_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117132,7 +128592,7 @@ def v2_assurance_create_user_report_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceCreateUserReportPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -117146,10 +128606,9 @@ def v2_assurance_create_user_report_post( @validate_call - def v2_assurance_create_user_report_post_with_http_info( + def v2_assurance_delete_dnsproxy_entry_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117162,14 +128621,12 @@ def v2_assurance_create_user_report_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[V2AssuranceCreateUserReportPostResponse]: - """v2_assurance_create_user_report_post + ) -> ApiResponse[object]: + """v2_assurance_delete_dnsproxy_entry_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_create_user_report_post_request: (required) - :type v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -117192,9 +128649,8 @@ def v2_assurance_create_user_report_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_create_user_report_post_serialize( + _param = self._v2_assurance_delete_dnsproxy_entry_delete_serialize( authorization=authorization, - v2_assurance_create_user_report_post_request=v2_assurance_create_user_report_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117202,7 +128658,7 @@ def v2_assurance_create_user_report_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceCreateUserReportPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -117216,10 +128672,9 @@ def v2_assurance_create_user_report_post_with_http_info( @validate_call - def v2_assurance_create_user_report_post_without_preload_content( + def v2_assurance_delete_dnsproxy_entry_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117233,13 +128688,11 @@ def v2_assurance_create_user_report_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_create_user_report_post + """v2_assurance_delete_dnsproxy_entry_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_create_user_report_post_request: (required) - :type v2_assurance_create_user_report_post_request: V2AssuranceCreateUserReportPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -117262,9 +128715,8 @@ def v2_assurance_create_user_report_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_create_user_report_post_serialize( + _param = self._v2_assurance_delete_dnsproxy_entry_delete_serialize( authorization=authorization, - v2_assurance_create_user_report_post_request=v2_assurance_create_user_report_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117272,7 +128724,7 @@ def v2_assurance_create_user_report_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceCreateUserReportPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -117281,10 +128733,9 @@ def v2_assurance_create_user_report_post_without_preload_content( return response_data.response - def _v2_assurance_create_user_report_post_serialize( + def _v2_assurance_delete_dnsproxy_entry_delete_serialize( self, authorization, - v2_assurance_create_user_report_post_request, _request_auth, _content_type, _headers, @@ -117312,8 +128763,6 @@ def _v2_assurance_create_user_report_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assurance_create_user_report_post_request is not None: - _body_params = v2_assurance_create_user_report_post_request # set the HTTP header `Accept` @@ -117324,19 +128773,6 @@ def _v2_assurance_create_user_report_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] = [ @@ -117344,8 +128780,8 @@ def _v2_assurance_create_user_report_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v2/assurance/create-user-report', + method='DELETE', + resource_path='/v2/assurance/delete-dnsproxy-entry', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -117362,10 +128798,10 @@ def _v2_assurance_create_user_report_post_serialize( @validate_call - def v2_assurance_createclassifiedapplication_post( + def v2_assurance_delete_user_report_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest, + report_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117378,14 +128814,14 @@ def v2_assurance_createclassifiedapplication_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceCreateclassifiedapplicationPostResponse: - """v2_assurance_createclassifiedapplication_post + ) -> object: + """v2_assurance_delete_user_report_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_createclassifiedapplication_post_request: (required) - :type v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest + :param report_id: + :type report_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 @@ -117408,9 +128844,9 @@ def v2_assurance_createclassifiedapplication_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_createclassifiedapplication_post_serialize( + _param = self._v2_assurance_delete_user_report_delete_serialize( authorization=authorization, - v2_assurance_createclassifiedapplication_post_request=v2_assurance_createclassifiedapplication_post_request, + report_id=report_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117418,7 +128854,7 @@ def v2_assurance_createclassifiedapplication_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceCreateclassifiedapplicationPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -117432,10 +128868,10 @@ def v2_assurance_createclassifiedapplication_post( @validate_call - def v2_assurance_createclassifiedapplication_post_with_http_info( + def v2_assurance_delete_user_report_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest, + report_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117448,14 +128884,14 @@ def v2_assurance_createclassifiedapplication_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[V2AssuranceCreateclassifiedapplicationPostResponse]: - """v2_assurance_createclassifiedapplication_post + ) -> ApiResponse[object]: + """v2_assurance_delete_user_report_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_createclassifiedapplication_post_request: (required) - :type v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest + :param report_id: + :type report_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 @@ -117478,9 +128914,9 @@ def v2_assurance_createclassifiedapplication_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_createclassifiedapplication_post_serialize( + _param = self._v2_assurance_delete_user_report_delete_serialize( authorization=authorization, - v2_assurance_createclassifiedapplication_post_request=v2_assurance_createclassifiedapplication_post_request, + report_id=report_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117488,7 +128924,7 @@ def v2_assurance_createclassifiedapplication_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceCreateclassifiedapplicationPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -117502,10 +128938,10 @@ def v2_assurance_createclassifiedapplication_post_with_http_info( @validate_call - def v2_assurance_createclassifiedapplication_post_without_preload_content( + def v2_assurance_delete_user_report_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest, + report_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117519,13 +128955,13 @@ def v2_assurance_createclassifiedapplication_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_createclassifiedapplication_post + """v2_assurance_delete_user_report_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_createclassifiedapplication_post_request: (required) - :type v2_assurance_createclassifiedapplication_post_request: V2AssuranceCreateclassifiedapplicationPostRequest + :param report_id: + :type report_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 @@ -117548,9 +128984,9 @@ def v2_assurance_createclassifiedapplication_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_createclassifiedapplication_post_serialize( + _param = self._v2_assurance_delete_user_report_delete_serialize( authorization=authorization, - v2_assurance_createclassifiedapplication_post_request=v2_assurance_createclassifiedapplication_post_request, + report_id=report_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117558,7 +128994,7 @@ def v2_assurance_createclassifiedapplication_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceCreateclassifiedapplicationPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -117567,10 +129003,10 @@ def v2_assurance_createclassifiedapplication_post_without_preload_content( return response_data.response - def _v2_assurance_createclassifiedapplication_post_serialize( + def _v2_assurance_delete_user_report_delete_serialize( self, authorization, - v2_assurance_createclassifiedapplication_post_request, + report_id, _request_auth, _content_type, _headers, @@ -117593,13 +129029,15 @@ def _v2_assurance_createclassifiedapplication_post_serialize( # process the path parameters # process the query parameters + if report_id is not None: + + _query_params.append(('reportId', report_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assurance_createclassifiedapplication_post_request is not None: - _body_params = v2_assurance_createclassifiedapplication_post_request # set the HTTP header `Accept` @@ -117610,19 +129048,6 @@ def _v2_assurance_createclassifiedapplication_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] = [ @@ -117630,8 +129055,8 @@ def _v2_assurance_createclassifiedapplication_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v2/assurance/createclassifiedapplication', + method='DELETE', + resource_path='/v2/assurance/delete-user-report', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -117648,9 +129073,10 @@ def _v2_assurance_createclassifiedapplication_post_serialize( @validate_call - def v2_assurance_delete_dnsproxy_entry_delete( + def v2_assurance_deleteclassifiedapplication_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + classification_entry_id_list: Optional[List[StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117664,11 +129090,13 @@ def v2_assurance_delete_dnsproxy_entry_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """v2_assurance_delete_dnsproxy_entry_delete + """v2_assurance_deleteclassifiedapplication_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param classification_entry_id_list: + :type classification_entry_id_list: List[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 @@ -117691,8 +129119,9 @@ def v2_assurance_delete_dnsproxy_entry_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_delete_dnsproxy_entry_delete_serialize( + _param = self._v2_assurance_deleteclassifiedapplication_delete_serialize( authorization=authorization, + classification_entry_id_list=classification_entry_id_list, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117714,9 +129143,10 @@ def v2_assurance_delete_dnsproxy_entry_delete( @validate_call - def v2_assurance_delete_dnsproxy_entry_delete_with_http_info( + def v2_assurance_deleteclassifiedapplication_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + classification_entry_id_list: Optional[List[StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117730,11 +129160,13 @@ def v2_assurance_delete_dnsproxy_entry_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """v2_assurance_delete_dnsproxy_entry_delete + """v2_assurance_deleteclassifiedapplication_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param classification_entry_id_list: + :type classification_entry_id_list: List[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 @@ -117757,8 +129189,9 @@ def v2_assurance_delete_dnsproxy_entry_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_delete_dnsproxy_entry_delete_serialize( + _param = self._v2_assurance_deleteclassifiedapplication_delete_serialize( authorization=authorization, + classification_entry_id_list=classification_entry_id_list, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117780,9 +129213,10 @@ def v2_assurance_delete_dnsproxy_entry_delete_with_http_info( @validate_call - def v2_assurance_delete_dnsproxy_entry_delete_without_preload_content( + def v2_assurance_deleteclassifiedapplication_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + classification_entry_id_list: Optional[List[StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117796,11 +129230,13 @@ def v2_assurance_delete_dnsproxy_entry_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_delete_dnsproxy_entry_delete + """v2_assurance_deleteclassifiedapplication_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param classification_entry_id_list: + :type classification_entry_id_list: List[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 @@ -117823,8 +129259,9 @@ def v2_assurance_delete_dnsproxy_entry_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_delete_dnsproxy_entry_delete_serialize( + _param = self._v2_assurance_deleteclassifiedapplication_delete_serialize( authorization=authorization, + classification_entry_id_list=classification_entry_id_list, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117841,9 +129278,10 @@ def v2_assurance_delete_dnsproxy_entry_delete_without_preload_content( return response_data.response - def _v2_assurance_delete_dnsproxy_entry_delete_serialize( + def _v2_assurance_deleteclassifiedapplication_delete_serialize( self, authorization, + classification_entry_id_list, _request_auth, _content_type, _headers, @@ -117853,6 +129291,7 @@ def _v2_assurance_delete_dnsproxy_entry_delete_serialize( _host = None _collection_formats: Dict[str, str] = { + 'classificationEntryIdList': 'multi', } _path_params: Dict[str, str] = {} @@ -117866,6 +129305,10 @@ def _v2_assurance_delete_dnsproxy_entry_delete_serialize( # process the path parameters # process the query parameters + if classification_entry_id_list is not None: + + _query_params.append(('classificationEntryIdList', classification_entry_id_list)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -117889,7 +129332,7 @@ def _v2_assurance_delete_dnsproxy_entry_delete_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/v2/assurance/delete-dnsproxy-entry', + resource_path='/v2/assurance/deleteclassifiedapplication', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -117906,10 +129349,9 @@ def _v2_assurance_delete_dnsproxy_entry_delete_serialize( @validate_call - def v2_assurance_delete_user_report_delete( + def v2_assurance_download_user_report_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - report_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117922,14 +129364,12 @@ def v2_assurance_delete_user_report_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v2_assurance_delete_user_report_delete + ) -> V2AssuranceDownloadUserReportGetResponse: + """v2_assurance_download_user_report_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param report_id: - :type report_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 @@ -117952,9 +129392,8 @@ def v2_assurance_delete_user_report_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_delete_user_report_delete_serialize( + _param = self._v2_assurance_download_user_report_get_serialize( authorization=authorization, - report_id=report_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -117962,7 +129401,7 @@ def v2_assurance_delete_user_report_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceDownloadUserReportGetResponse", } response_data = self.api_client.call_api( *_param, @@ -117976,10 +129415,9 @@ def v2_assurance_delete_user_report_delete( @validate_call - def v2_assurance_delete_user_report_delete_with_http_info( + def v2_assurance_download_user_report_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - report_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -117992,14 +129430,12 @@ def v2_assurance_delete_user_report_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[object]: - """v2_assurance_delete_user_report_delete + ) -> ApiResponse[V2AssuranceDownloadUserReportGetResponse]: + """v2_assurance_download_user_report_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param report_id: - :type report_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 @@ -118022,9 +129458,8 @@ def v2_assurance_delete_user_report_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_delete_user_report_delete_serialize( + _param = self._v2_assurance_download_user_report_get_serialize( authorization=authorization, - report_id=report_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118032,7 +129467,7 @@ def v2_assurance_delete_user_report_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceDownloadUserReportGetResponse", } response_data = self.api_client.call_api( *_param, @@ -118046,10 +129481,9 @@ def v2_assurance_delete_user_report_delete_with_http_info( @validate_call - def v2_assurance_delete_user_report_delete_without_preload_content( + def v2_assurance_download_user_report_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - report_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -118063,13 +129497,11 @@ def v2_assurance_delete_user_report_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_delete_user_report_delete + """v2_assurance_download_user_report_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param report_id: - :type report_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 @@ -118092,9 +129524,8 @@ def v2_assurance_delete_user_report_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_delete_user_report_delete_serialize( + _param = self._v2_assurance_download_user_report_get_serialize( authorization=authorization, - report_id=report_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118102,7 +129533,7 @@ def v2_assurance_delete_user_report_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceDownloadUserReportGetResponse", } response_data = self.api_client.call_api( *_param, @@ -118111,10 +129542,9 @@ def v2_assurance_delete_user_report_delete_without_preload_content( return response_data.response - def _v2_assurance_delete_user_report_delete_serialize( + def _v2_assurance_download_user_report_get_serialize( self, authorization, - report_id, _request_auth, _content_type, _headers, @@ -118137,10 +129567,6 @@ def _v2_assurance_delete_user_report_delete_serialize( # process the path parameters # process the query parameters - if report_id is not None: - - _query_params.append(('reportId', report_id)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -118163,8 +129589,8 @@ def _v2_assurance_delete_user_report_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v2/assurance/delete-user-report', + method='GET', + resource_path='/v2/assurance/download-user-report', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -118181,10 +129607,10 @@ def _v2_assurance_delete_user_report_delete_serialize( @validate_call - def v2_assurance_deleteclassifiedapplication_delete( + def v2_assurance_enterprisesummary_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - classification_entry_id_list: Optional[List[StrictStr]] = None, + v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -118197,14 +129623,14 @@ def v2_assurance_deleteclassifiedapplication_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v2_assurance_deleteclassifiedapplication_delete + ) -> V2AssuranceEnterprisesummaryPostResponse: + """v2_assurance_enterprisesummary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param classification_entry_id_list: - :type classification_entry_id_list: List[str] + :param v2_assurance_enterprisesummary_post_request: (required) + :type v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -118227,9 +129653,9 @@ def v2_assurance_deleteclassifiedapplication_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_deleteclassifiedapplication_delete_serialize( + _param = self._v2_assurance_enterprisesummary_post_serialize( authorization=authorization, - classification_entry_id_list=classification_entry_id_list, + v2_assurance_enterprisesummary_post_request=v2_assurance_enterprisesummary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118237,7 +129663,7 @@ def v2_assurance_deleteclassifiedapplication_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceEnterprisesummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -118251,10 +129677,10 @@ def v2_assurance_deleteclassifiedapplication_delete( @validate_call - def v2_assurance_deleteclassifiedapplication_delete_with_http_info( + def v2_assurance_enterprisesummary_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - classification_entry_id_list: Optional[List[StrictStr]] = None, + v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -118267,14 +129693,14 @@ def v2_assurance_deleteclassifiedapplication_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[object]: - """v2_assurance_deleteclassifiedapplication_delete + ) -> ApiResponse[V2AssuranceEnterprisesummaryPostResponse]: + """v2_assurance_enterprisesummary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param classification_entry_id_list: - :type classification_entry_id_list: List[str] + :param v2_assurance_enterprisesummary_post_request: (required) + :type v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -118297,9 +129723,9 @@ def v2_assurance_deleteclassifiedapplication_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_deleteclassifiedapplication_delete_serialize( + _param = self._v2_assurance_enterprisesummary_post_serialize( authorization=authorization, - classification_entry_id_list=classification_entry_id_list, + v2_assurance_enterprisesummary_post_request=v2_assurance_enterprisesummary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118307,7 +129733,7 @@ def v2_assurance_deleteclassifiedapplication_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceEnterprisesummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -118321,10 +129747,10 @@ def v2_assurance_deleteclassifiedapplication_delete_with_http_info( @validate_call - def v2_assurance_deleteclassifiedapplication_delete_without_preload_content( + def v2_assurance_enterprisesummary_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - classification_entry_id_list: Optional[List[StrictStr]] = None, + v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -118338,13 +129764,13 @@ def v2_assurance_deleteclassifiedapplication_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_deleteclassifiedapplication_delete + """v2_assurance_enterprisesummary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param classification_entry_id_list: - :type classification_entry_id_list: List[str] + :param v2_assurance_enterprisesummary_post_request: (required) + :type v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -118367,9 +129793,9 @@ def v2_assurance_deleteclassifiedapplication_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_deleteclassifiedapplication_delete_serialize( + _param = self._v2_assurance_enterprisesummary_post_serialize( authorization=authorization, - classification_entry_id_list=classification_entry_id_list, + v2_assurance_enterprisesummary_post_request=v2_assurance_enterprisesummary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118377,7 +129803,7 @@ def v2_assurance_deleteclassifiedapplication_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V2AssuranceEnterprisesummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -118386,10 +129812,10 @@ def v2_assurance_deleteclassifiedapplication_delete_without_preload_content( return response_data.response - def _v2_assurance_deleteclassifiedapplication_delete_serialize( + def _v2_assurance_enterprisesummary_post_serialize( self, authorization, - classification_entry_id_list, + v2_assurance_enterprisesummary_post_request, _request_auth, _content_type, _headers, @@ -118399,7 +129825,6 @@ def _v2_assurance_deleteclassifiedapplication_delete_serialize( _host = None _collection_formats: Dict[str, str] = { - 'classificationEntryIdList': 'multi', } _path_params: Dict[str, str] = {} @@ -118413,15 +129838,13 @@ def _v2_assurance_deleteclassifiedapplication_delete_serialize( # process the path parameters # process the query parameters - if classification_entry_id_list is not None: - - _query_params.append(('classificationEntryIdList', classification_entry_id_list)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v2_assurance_enterprisesummary_post_request is not None: + _body_params = v2_assurance_enterprisesummary_post_request # set the HTTP header `Accept` @@ -118432,6 +129855,19 @@ def _v2_assurance_deleteclassifiedapplication_delete_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] = [ @@ -118439,8 +129875,8 @@ def _v2_assurance_deleteclassifiedapplication_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v2/assurance/deleteclassifiedapplication', + method='POST', + resource_path='/v2/assurance/enterprisesummary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -118457,9 +129893,10 @@ def _v2_assurance_deleteclassifiedapplication_delete_serialize( @validate_call - def v2_assurance_download_user_report_get( + def v2_assurance_get_app_names_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v2_assurance_get_app_names_post_request: V2AssuranceGetAppNamesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -118472,12 +129909,14 @@ def v2_assurance_download_user_report_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceDownloadUserReportGetResponse: - """v2_assurance_download_user_report_get + ) -> V2AssuranceGetAppNamesPostResponse: + """v2_assurance_get_app_names_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v2_assurance_get_app_names_post_request: (required) + :type v2_assurance_get_app_names_post_request: V2AssuranceGetAppNamesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -118500,8 +129939,9 @@ def v2_assurance_download_user_report_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_download_user_report_get_serialize( + _param = self._v2_assurance_get_app_names_post_serialize( authorization=authorization, + v2_assurance_get_app_names_post_request=v2_assurance_get_app_names_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118509,7 +129949,7 @@ def v2_assurance_download_user_report_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceDownloadUserReportGetResponse", + '200': "V2AssuranceGetAppNamesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -118523,9 +129963,10 @@ def v2_assurance_download_user_report_get( @validate_call - def v2_assurance_download_user_report_get_with_http_info( + def v2_assurance_get_app_names_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v2_assurance_get_app_names_post_request: V2AssuranceGetAppNamesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -118538,12 +129979,14 @@ def v2_assurance_download_user_report_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[V2AssuranceDownloadUserReportGetResponse]: - """v2_assurance_download_user_report_get + ) -> ApiResponse[V2AssuranceGetAppNamesPostResponse]: + """v2_assurance_get_app_names_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v2_assurance_get_app_names_post_request: (required) + :type v2_assurance_get_app_names_post_request: V2AssuranceGetAppNamesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -118566,8 +130009,9 @@ def v2_assurance_download_user_report_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_download_user_report_get_serialize( + _param = self._v2_assurance_get_app_names_post_serialize( authorization=authorization, + v2_assurance_get_app_names_post_request=v2_assurance_get_app_names_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118575,7 +130019,7 @@ def v2_assurance_download_user_report_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceDownloadUserReportGetResponse", + '200': "V2AssuranceGetAppNamesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -118589,9 +130033,10 @@ def v2_assurance_download_user_report_get_with_http_info( @validate_call - def v2_assurance_download_user_report_get_without_preload_content( + def v2_assurance_get_app_names_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v2_assurance_get_app_names_post_request: V2AssuranceGetAppNamesPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -118605,11 +130050,13 @@ def v2_assurance_download_user_report_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_download_user_report_get + """v2_assurance_get_app_names_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v2_assurance_get_app_names_post_request: (required) + :type v2_assurance_get_app_names_post_request: V2AssuranceGetAppNamesPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -118632,8 +130079,9 @@ def v2_assurance_download_user_report_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_download_user_report_get_serialize( + _param = self._v2_assurance_get_app_names_post_serialize( authorization=authorization, + v2_assurance_get_app_names_post_request=v2_assurance_get_app_names_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118641,7 +130089,7 @@ def v2_assurance_download_user_report_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceDownloadUserReportGetResponse", + '200': "V2AssuranceGetAppNamesPostResponse", } response_data = self.api_client.call_api( *_param, @@ -118650,9 +130098,10 @@ def v2_assurance_download_user_report_get_without_preload_content( return response_data.response - def _v2_assurance_download_user_report_get_serialize( + def _v2_assurance_get_app_names_post_serialize( self, authorization, + v2_assurance_get_app_names_post_request, _request_auth, _content_type, _headers, @@ -118680,6 +130129,8 @@ def _v2_assurance_download_user_report_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v2_assurance_get_app_names_post_request is not None: + _body_params = v2_assurance_get_app_names_post_request # set the HTTP header `Accept` @@ -118690,6 +130141,19 @@ def _v2_assurance_download_user_report_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] = [ @@ -118697,8 +130161,8 @@ def _v2_assurance_download_user_report_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/assurance/download-user-report', + method='POST', + resource_path='/v2/assurance/get-app-names', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -118715,10 +130179,9 @@ def _v2_assurance_download_user_report_get_serialize( @validate_call - def v2_assurance_enterprisesummary_post( + def v2_assurance_getclassifiedapplicationlist_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -118731,14 +130194,12 @@ def v2_assurance_enterprisesummary_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceEnterprisesummaryPostResponse: - """v2_assurance_enterprisesummary_post + ) -> V2AssuranceGetclassifiedapplicationlistGetResponse: + """v2_assurance_getclassifiedapplicationlist_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_enterprisesummary_post_request: (required) - :type v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -118761,9 +130222,8 @@ def v2_assurance_enterprisesummary_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_enterprisesummary_post_serialize( + _param = self._v2_assurance_getclassifiedapplicationlist_get_serialize( authorization=authorization, - v2_assurance_enterprisesummary_post_request=v2_assurance_enterprisesummary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118771,7 +130231,7 @@ def v2_assurance_enterprisesummary_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceEnterprisesummaryPostResponse", + '200': "V2AssuranceGetclassifiedapplicationlistGetResponse", } response_data = self.api_client.call_api( *_param, @@ -118785,10 +130245,9 @@ def v2_assurance_enterprisesummary_post( @validate_call - def v2_assurance_enterprisesummary_post_with_http_info( + def v2_assurance_getclassifiedapplicationlist_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -118801,14 +130260,12 @@ def v2_assurance_enterprisesummary_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[V2AssuranceEnterprisesummaryPostResponse]: - """v2_assurance_enterprisesummary_post + ) -> ApiResponse[V2AssuranceGetclassifiedapplicationlistGetResponse]: + """v2_assurance_getclassifiedapplicationlist_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_enterprisesummary_post_request: (required) - :type v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -118831,9 +130288,8 @@ def v2_assurance_enterprisesummary_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_enterprisesummary_post_serialize( + _param = self._v2_assurance_getclassifiedapplicationlist_get_serialize( authorization=authorization, - v2_assurance_enterprisesummary_post_request=v2_assurance_enterprisesummary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118841,7 +130297,7 @@ def v2_assurance_enterprisesummary_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceEnterprisesummaryPostResponse", + '200': "V2AssuranceGetclassifiedapplicationlistGetResponse", } response_data = self.api_client.call_api( *_param, @@ -118855,10 +130311,9 @@ def v2_assurance_enterprisesummary_post_with_http_info( @validate_call - def v2_assurance_enterprisesummary_post_without_preload_content( + def v2_assurance_getclassifiedapplicationlist_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -118872,13 +130327,11 @@ def v2_assurance_enterprisesummary_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_enterprisesummary_post + """v2_assurance_getclassifiedapplicationlist_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v2_assurance_enterprisesummary_post_request: (required) - :type v2_assurance_enterprisesummary_post_request: V2AssuranceEnterprisesummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -118901,9 +130354,8 @@ def v2_assurance_enterprisesummary_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_enterprisesummary_post_serialize( + _param = self._v2_assurance_getclassifiedapplicationlist_get_serialize( authorization=authorization, - v2_assurance_enterprisesummary_post_request=v2_assurance_enterprisesummary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -118911,7 +130363,7 @@ def v2_assurance_enterprisesummary_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceEnterprisesummaryPostResponse", + '200': "V2AssuranceGetclassifiedapplicationlistGetResponse", } response_data = self.api_client.call_api( *_param, @@ -118920,10 +130372,9 @@ def v2_assurance_enterprisesummary_post_without_preload_content( return response_data.response - def _v2_assurance_enterprisesummary_post_serialize( + def _v2_assurance_getclassifiedapplicationlist_get_serialize( self, authorization, - v2_assurance_enterprisesummary_post_request, _request_auth, _content_type, _headers, @@ -118951,8 +130402,6 @@ def _v2_assurance_enterprisesummary_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v2_assurance_enterprisesummary_post_request is not None: - _body_params = v2_assurance_enterprisesummary_post_request # set the HTTP header `Accept` @@ -118963,19 +130412,6 @@ def _v2_assurance_enterprisesummary_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] = [ @@ -118983,8 +130419,8 @@ def _v2_assurance_enterprisesummary_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v2/assurance/enterprisesummary', + method='GET', + resource_path='/v2/assurance/getclassifiedapplicationlist', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -119001,7 +130437,7 @@ def _v2_assurance_enterprisesummary_post_serialize( @validate_call - def v2_assurance_getclassifiedapplicationlist_get( + def v2_assurance_read_ai_adoption_approve_entries_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -119016,8 +130452,8 @@ def v2_assurance_getclassifiedapplicationlist_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V2AssuranceGetclassifiedapplicationlistGetResponse: - """v2_assurance_getclassifiedapplicationlist_get + ) -> V2AssuranceReadAiAdoptionApproveEntriesGetResponse: + """v2_assurance_read_ai_adoption_approve_entries_get :param authorization: Bearer token. Format: Bearer (required) @@ -119044,7 +130480,7 @@ def v2_assurance_getclassifiedapplicationlist_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_getclassifiedapplicationlist_get_serialize( + _param = self._v2_assurance_read_ai_adoption_approve_entries_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -119053,7 +130489,7 @@ def v2_assurance_getclassifiedapplicationlist_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceGetclassifiedapplicationlistGetResponse", + '200': "V2AssuranceReadAiAdoptionApproveEntriesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -119067,7 +130503,7 @@ def v2_assurance_getclassifiedapplicationlist_get( @validate_call - def v2_assurance_getclassifiedapplicationlist_get_with_http_info( + def v2_assurance_read_ai_adoption_approve_entries_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -119082,8 +130518,8 @@ def v2_assurance_getclassifiedapplicationlist_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[V2AssuranceGetclassifiedapplicationlistGetResponse]: - """v2_assurance_getclassifiedapplicationlist_get + ) -> ApiResponse[V2AssuranceReadAiAdoptionApproveEntriesGetResponse]: + """v2_assurance_read_ai_adoption_approve_entries_get :param authorization: Bearer token. Format: Bearer (required) @@ -119110,7 +130546,7 @@ def v2_assurance_getclassifiedapplicationlist_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_getclassifiedapplicationlist_get_serialize( + _param = self._v2_assurance_read_ai_adoption_approve_entries_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -119119,7 +130555,7 @@ def v2_assurance_getclassifiedapplicationlist_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceGetclassifiedapplicationlistGetResponse", + '200': "V2AssuranceReadAiAdoptionApproveEntriesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -119133,7 +130569,7 @@ def v2_assurance_getclassifiedapplicationlist_get_with_http_info( @validate_call - def v2_assurance_getclassifiedapplicationlist_get_without_preload_content( + def v2_assurance_read_ai_adoption_approve_entries_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -119149,7 +130585,7 @@ def v2_assurance_getclassifiedapplicationlist_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v2_assurance_getclassifiedapplicationlist_get + """v2_assurance_read_ai_adoption_approve_entries_get :param authorization: Bearer token. Format: Bearer (required) @@ -119176,7 +130612,7 @@ def v2_assurance_getclassifiedapplicationlist_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v2_assurance_getclassifiedapplicationlist_get_serialize( + _param = self._v2_assurance_read_ai_adoption_approve_entries_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -119185,7 +130621,7 @@ def v2_assurance_getclassifiedapplicationlist_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V2AssuranceGetclassifiedapplicationlistGetResponse", + '200': "V2AssuranceReadAiAdoptionApproveEntriesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -119194,7 +130630,7 @@ def v2_assurance_getclassifiedapplicationlist_get_without_preload_content( return response_data.response - def _v2_assurance_getclassifiedapplicationlist_get_serialize( + def _v2_assurance_read_ai_adoption_approve_entries_get_serialize( self, authorization, _request_auth, @@ -119242,7 +130678,7 @@ def _v2_assurance_getclassifiedapplicationlist_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/assurance/getclassifiedapplicationlist', + resource_path='/v2/assurance/read-ai-adoption-approve-entries', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -122348,6 +133784,292 @@ def _v2_assurance_unclassifiedapplicationprofilesummary_post_serialize( + @validate_call + def v2_assurance_update_ai_adoption_approve_entry_post( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v2_assurance_update_ai_adoption_approve_entry_post_request: V2AssuranceUpdateAiAdoptionApproveEntryPostRequest, + _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, + ) -> object: + """v2_assurance_update_ai_adoption_approve_entry_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v2_assurance_update_ai_adoption_approve_entry_post_request: (required) + :type v2_assurance_update_ai_adoption_approve_entry_post_request: V2AssuranceUpdateAiAdoptionApproveEntryPostRequest + :param _request_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_assurance_update_ai_adoption_approve_entry_post_serialize( + authorization=authorization, + v2_assurance_update_ai_adoption_approve_entry_post_request=v2_assurance_update_ai_adoption_approve_entry_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "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 v2_assurance_update_ai_adoption_approve_entry_post_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v2_assurance_update_ai_adoption_approve_entry_post_request: V2AssuranceUpdateAiAdoptionApproveEntryPostRequest, + _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]: + """v2_assurance_update_ai_adoption_approve_entry_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v2_assurance_update_ai_adoption_approve_entry_post_request: (required) + :type v2_assurance_update_ai_adoption_approve_entry_post_request: V2AssuranceUpdateAiAdoptionApproveEntryPostRequest + :param _request_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_assurance_update_ai_adoption_approve_entry_post_serialize( + authorization=authorization, + v2_assurance_update_ai_adoption_approve_entry_post_request=v2_assurance_update_ai_adoption_approve_entry_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "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 v2_assurance_update_ai_adoption_approve_entry_post_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v2_assurance_update_ai_adoption_approve_entry_post_request: V2AssuranceUpdateAiAdoptionApproveEntryPostRequest, + _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_assurance_update_ai_adoption_approve_entry_post + + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v2_assurance_update_ai_adoption_approve_entry_post_request: (required) + :type v2_assurance_update_ai_adoption_approve_entry_post_request: V2AssuranceUpdateAiAdoptionApproveEntryPostRequest + :param _request_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_assurance_update_ai_adoption_approve_entry_post_serialize( + authorization=authorization, + v2_assurance_update_ai_adoption_approve_entry_post_request=v2_assurance_update_ai_adoption_approve_entry_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "object", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v2_assurance_update_ai_adoption_approve_entry_post_serialize( + self, + authorization, + v2_assurance_update_ai_adoption_approve_entry_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 v2_assurance_update_ai_adoption_approve_entry_post_request is not None: + _body_params = v2_assurance_update_ai_adoption_approve_entry_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='/v2/assurance/update-ai-adoption-approve-entry', + 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_assurance_update_dnsproxy_entry_post( self, diff --git a/graphiant_sdk/api_client.py b/graphiant_sdk/api_client.py index 6c5d9f92..39df11bc 100644 --- a/graphiant_sdk/api_client.py +++ b/graphiant_sdk/api_client.py @@ -10,7 +10,6 @@ """ # noqa: E501 - import datetime from dateutil.parser import parse from enum import Enum @@ -33,15 +32,11 @@ from graphiant_sdk.exceptions import ( ApiValueError, ApiException, - BadRequestException, - UnauthorizedException, - ForbiddenException, - NotFoundException, - ServiceException ) RequestSerialized = Tuple[str, str, Dict[str, str], Optional[str], List[str]] + class ApiClient: """Generic API client for OpenAPI client library builds. @@ -61,7 +56,7 @@ class ApiClient: PRIMITIVE_TYPES = (float, bool, bytes, str, int) NATIVE_TYPES_MAPPING = { 'int': int, - 'long': int, # TODO remove as only py3 is supported? + 'long': int, # TODO remove as only py3 is supported? 'float': float, 'str': str, 'bool': bool, @@ -91,7 +86,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/26.5.0/python' + self.user_agent = 'OpenAPI-Generator/26.6.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -112,7 +107,6 @@ def user_agent(self, value): def set_default_header(self, header_name, header_value): self.default_headers[header_name] = header_value - _default = None @classmethod @@ -153,7 +147,6 @@ def param_serialize( _host=None, _request_auth=None ) -> RequestSerialized: - """Builds the HTTP request params needed by the request. :param method: Method to call. :param resource_path: Path to method endpoint. @@ -186,7 +179,7 @@ def param_serialize( if header_params: header_params = self.sanitize_for_serialization(header_params) header_params = dict( - self.parameters_to_tuples(header_params,collection_formats) + self.parameters_to_tuples(header_params, collection_formats) ) # path parameters @@ -247,7 +240,6 @@ def param_serialize( return method, url, header_params, body, post_params - def call_api( self, method, @@ -286,7 +278,7 @@ def call_api( def response_deserialize( self, response_data: rest.RESTResponse, - response_types_map: Optional[Dict[str, ApiResponseT]]=None + response_types_map: Optional[Dict[str, ApiResponseT]] = None ) -> ApiResponse[ApiResponseT]: """Deserializes response into an object. :param response_data: RESTResponse object to be deserialized. @@ -298,7 +290,11 @@ def response_deserialize( assert response_data.data is not None, msg response_type = response_types_map.get(str(response_data.status), None) - if not response_type and isinstance(response_data.status, int) and 100 <= response_data.status <= 599: + if ( + not response_type + and isinstance(response_data.status, int) + and 100 <= response_data.status <= 599 + ): # if not found, look for '1XX', '2XX', etc. response_type = response_types_map.get(str(response_data.status)[0] + "XX", None) @@ -327,10 +323,10 @@ def response_deserialize( ) return ApiResponse( - status_code = response_data.status, - data = return_data, - headers = response_data.headers, - raw_data = response_data.data + status_code=response_data.status, + data=return_data, + headers=response_data.headers, + raw_data=response_data.data ) def sanitize_for_serialization(self, obj): @@ -389,7 +385,6 @@ def sanitize_for_serialization(self, obj): return self.sanitize_for_serialization(obj_dict) - def deserialize(self, response_text: str, response_type: str, content_type: Optional[str]): """Deserializes response into an object. @@ -407,7 +402,11 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti data = json.loads(response_text) except ValueError: data = response_text - elif re.match(r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', content_type, re.IGNORECASE): + elif re.match( + r'^application/(json|[\w!#$&.+\-^_]+\+json)\s*(;|$)', + content_type, + re.IGNORECASE, + ): if response_text == "": data = "" else: diff --git a/graphiant_sdk/api_response.py b/graphiant_sdk/api_response.py index 9bc7c11f..d1132c03 100644 --- a/graphiant_sdk/api_response.py +++ b/graphiant_sdk/api_response.py @@ -6,6 +6,7 @@ T = TypeVar("T") + class ApiResponse(BaseModel, Generic[T]): """ API response object diff --git a/graphiant_sdk/configuration.py b/graphiant_sdk/configuration.py index 32747141..0382a9ff 100644 --- a/graphiant_sdk/configuration.py +++ b/graphiant_sdk/configuration.py @@ -165,9 +165,12 @@ class Configuration: in PEM (str) or DER (bytes) format. :param cert_file: the path to a client certificate file, for mTLS. :param key_file: the path to a client key file, for mTLS. - :param assert_hostname: Set this to True/False to enable/disable SSL hostname verification. - :param tls_server_name: SSL/TLS Server Name Indication (SNI). Set this to the SNI value expected by the server. - :param connection_pool_maxsize: Connection pool max size. None in the constructor is coerced to 100 for async and cpu_count * 5 for sync. + :param assert_hostname: Set this to True/False to enable/disable SSL hostname + verification. + :param tls_server_name: SSL/TLS Server Name Indication (SNI). Set this to the + SNI value expected by the server. + :param connection_pool_maxsize: Connection pool max size. None in the constructor + is coerced to 100 for async and cpu_count * 5 for sync. :param proxy: Proxy URL. :param proxy_headers: Proxy headers. :param safe_chars_for_path_param: Safe characters for path parameter encoding. @@ -202,33 +205,33 @@ class Configuration: def __init__( self, - host: Optional[str]=None, - api_key: Optional[Dict[str, str]]=None, - api_key_prefix: Optional[Dict[str, str]]=None, - username: Optional[str]=None, - password: Optional[str]=None, - access_token: Optional[str]=None, - server_index: Optional[int]=None, - server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[Dict[int, int]]=None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, - ignore_operation_servers: bool=False, - ssl_ca_cert: Optional[str]=None, + host: Optional[str] = None, + api_key: Optional[Dict[str, str]] = None, + api_key_prefix: Optional[Dict[str, str]] = None, + username: Optional[str] = None, + password: Optional[str] = None, + access_token: Optional[str] = None, + server_index: Optional[int] = None, + server_variables: Optional[ServerVariablesT] = None, + server_operation_index: Optional[Dict[int, int]] = None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]] = None, + ignore_operation_servers: bool = False, + ssl_ca_cert: Optional[str] = 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, - verify_ssl: bool=True, - assert_hostname: Optional[bool]=None, - tls_server_name: Optional[str]=None, - connection_pool_maxsize: Optional[int]=None, - proxy: Optional[str]=None, - proxy_headers: Optional[Any]=None, - safe_chars_for_path_param: str='', - client_side_validation: bool=True, - socket_options: Optional[Any]=None, - datetime_format: str="%Y-%m-%dT%H:%M:%S.%f%z", - date_format: str="%Y-%m-%d", + cert_file: Optional[str] = None, + key_file: Optional[str] = None, + verify_ssl: bool = True, + assert_hostname: Optional[bool] = None, + tls_server_name: Optional[str] = None, + connection_pool_maxsize: Optional[int] = None, + proxy: Optional[str] = None, + proxy_headers: Optional[Any] = None, + safe_chars_for_path_param: str = '', + client_side_validation: bool = True, + socket_options: Optional[Any] = None, + datetime_format: str = "%Y-%m-%dT%H:%M:%S.%f%z", + date_format: str = "%Y-%m-%d", *, debug: Optional[bool] = None, ) -> None: @@ -324,7 +327,10 @@ def __init__( Set this to the SNI value expected by the server. """ - self.connection_pool_maxsize = connection_pool_maxsize if connection_pool_maxsize is not None else multiprocessing.cpu_count() * 5 + default_pool = multiprocessing.cpu_count() * 5 + self.connection_pool_maxsize = ( + connection_pool_maxsize if connection_pool_maxsize is not None else default_pool + ) """urllib3 connection pool's maximum number of connections saved per pool. None in the constructor is coerced to cpu_count * 5. """ @@ -356,7 +362,7 @@ def __init__( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result @@ -493,7 +499,9 @@ def logger_format(self, value: str) -> None: self.__logger_format = value self.logger_formatter = logging.Formatter(self.__logger_format) - def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]: + def get_api_key_with_prefix( + self, identifier: str, alias: Optional[str] = None + ) -> Optional[str]: """Gets API key (with prefix if set). :param identifier: The identifier of apiKey. @@ -528,7 +536,7 @@ def get_basic_auth_token(self) -> Optional[str]: basic_auth=username + ':' + password ).get('authorization') - def auth_settings(self)-> AuthSettings: + def auth_settings(self) -> AuthSettings: """Gets Auth Settings dict for api client. :return: The Auth Settings information dict. @@ -554,7 +562,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.5.0".\ + "SDK Package Version: 26.6.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: @@ -572,8 +580,8 @@ def get_host_settings(self) -> List[HostSetting]: def get_host_from_settings( self, index: Optional[int], - variables: Optional[ServerVariablesT]=None, - servers: Optional[List[HostSetting]]=None, + variables: Optional[ServerVariablesT] = None, + servers: Optional[List[HostSetting]] = None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings diff --git a/graphiant_sdk/exceptions.py b/graphiant_sdk/exceptions.py index 94034552..d94789f1 100644 --- a/graphiant_sdk/exceptions.py +++ b/graphiant_sdk/exceptions.py @@ -13,6 +13,7 @@ from typing import Any, Optional from typing_extensions import Self + class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" @@ -103,9 +104,9 @@ def __init__(self, msg, path_to_item=None) -> None: class ApiException(OpenApiException): def __init__( - self, - status=None, - reason=None, + self, + status=None, + reason=None, http_resp=None, *, body: Optional[str] = None, @@ -131,10 +132,10 @@ def __init__( @classmethod def from_response( - cls, - *, - http_resp, - body: Optional[str], + cls, + *, + http_resp, + body: Optional[str], data: Optional[Any], ) -> Self: if http_resp.status == 400: diff --git a/graphiant_sdk/models/__init__.py b/graphiant_sdk/models/__init__.py index 31f31e21..a7dc0fdb 100644 --- a/graphiant_sdk/models/__init__.py +++ b/graphiant_sdk/models/__init__.py @@ -33,6 +33,8 @@ from graphiant_sdk.models.assurance_app_id_record import AssuranceAppIdRecord from graphiant_sdk.models.assurance_app_name_record import AssuranceAppNameRecord from graphiant_sdk.models.assurance_application_profile_summary import AssuranceApplicationProfileSummary +from graphiant_sdk.models.assurance_approved_app_entry import AssuranceApprovedAppEntry +from graphiant_sdk.models.assurance_approved_app_entry_request import AssuranceApprovedAppEntryRequest from graphiant_sdk.models.assurance_bucket_app import AssuranceBucketApp from graphiant_sdk.models.assurance_bucket_app_server import AssuranceBucketAppServer from graphiant_sdk.models.assurance_bucket_details import AssuranceBucketDetails @@ -52,11 +54,13 @@ from graphiant_sdk.models.assurance_exchange_service_identifier import AssuranceExchangeServiceIdentifier from graphiant_sdk.models.assurance_flex_algo_identifier import AssuranceFlexAlgoIdentifier from graphiant_sdk.models.assurance_geolocation import AssuranceGeolocation +from graphiant_sdk.models.assurance_kpi_metric import AssuranceKpiMetric from graphiant_sdk.models.assurance_region import AssuranceRegion from graphiant_sdk.models.assurance_score_bucket_count import AssuranceScoreBucketCount from graphiant_sdk.models.assurance_score_details import AssuranceScoreDetails from graphiant_sdk.models.assurance_site import AssuranceSite from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow +from graphiant_sdk.models.assurance_top_level_kpi import AssuranceTopLevelKpi from graphiant_sdk.models.assurance_topology import AssuranceTopology from graphiant_sdk.models.assurance_topology_edge import AssuranceTopologyEdge from graphiant_sdk.models.assurance_topology_edge_link_performance import AssuranceTopologyEdgeLinkPerformance @@ -64,7 +68,11 @@ from graphiant_sdk.models.assurance_topology_node import AssuranceTopologyNode from graphiant_sdk.models.assurance_topology_path import AssuranceTopologyPath from graphiant_sdk.models.assurance_trend_value import AssuranceTrendValue +from graphiant_sdk.models.assurance_user_definition import AssuranceUserDefinition from graphiant_sdk.models.assurance_user_report import AssuranceUserReport +from graphiant_sdk.models.assurance_what_widget import AssuranceWhatWidget +from graphiant_sdk.models.assurance_when_widget import AssuranceWhenWidget +from graphiant_sdk.models.assurance_where_widget import AssuranceWhereWidget from graphiant_sdk.models.audit_activity_item import AuditActivityItem from graphiant_sdk.models.audit_audit_entry import AuditAuditEntry from graphiant_sdk.models.audit_target import AuditTarget @@ -86,6 +94,7 @@ from graphiant_sdk.models.common_permissions import CommonPermissions from graphiant_sdk.models.common_user import CommonUser from graphiant_sdk.models.common_user_info import CommonUserInfo +from graphiant_sdk.models.conceal_agent import ConcealAgent from graphiant_sdk.models.config_worker_job_status import ConfigWorkerJobStatus from graphiant_sdk.models.diagnostic_tools_archive import DiagnosticToolsArchive from graphiant_sdk.models.diagnostic_tools_arp_entry import DiagnosticToolsArpEntry @@ -148,6 +157,9 @@ from graphiant_sdk.models.mana_v2_aws_gateway_details import ManaV2AwsGatewayDetails from graphiant_sdk.models.mana_v2_aws_transit_gateway import ManaV2AwsTransitGateway from graphiant_sdk.models.mana_v2_azure_gateway_details import ManaV2AzureGatewayDetails +from graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_customer import ManaV2B2BExtranetMatchConsumerDetailsCustomer +from graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_producer_prefix import ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix +from graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_service import ManaV2B2BExtranetMatchConsumerDetailsService from graphiant_sdk.models.mana_v2_b2_b_extranet_service_customer_match_details_customer import ManaV2B2BExtranetServiceCustomerMatchDetailsCustomer from graphiant_sdk.models.mana_v2_b2_b_extranet_service_customer_match_details_producer_prefix import ManaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix from graphiant_sdk.models.mana_v2_b2_b_extranet_service_customer_match_details_service import ManaV2B2BExtranetServiceCustomerMatchDetailsService @@ -158,6 +170,8 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_consumers_summary import ManaV2B2bExtranetConsumersSummary from graphiant_sdk.models.mana_v2_b2b_extranet_customer_match_services_summary import ManaV2B2bExtranetCustomerMatchServicesSummary from graphiant_sdk.models.mana_v2_b2b_extranet_customer_services_summary import ManaV2B2bExtranetCustomerServicesSummary +from graphiant_sdk.models.mana_v2_b2b_extranet_match import ManaV2B2bExtranetMatch +from graphiant_sdk.models.mana_v2_b2b_extranet_match_consumer_details import ManaV2B2bExtranetMatchConsumerDetails from graphiant_sdk.models.mana_v2_b2b_extranet_match_service_to_customer import ManaV2B2bExtranetMatchServiceToCustomer from graphiant_sdk.models.mana_v2_b2b_extranet_peering_service_consumer_lan_segment_policy import ManaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy from graphiant_sdk.models.mana_v2_b2b_extranet_peering_service_customer_invite import ManaV2B2bExtranetPeeringServiceCustomerInvite @@ -246,13 +260,28 @@ from graphiant_sdk.models.mana_v2_enterprise_prefix_set_input import ManaV2EnterprisePrefixSetInput from graphiant_sdk.models.mana_v2_enterprise_prefix_set_input_entry import ManaV2EnterprisePrefixSetInputEntry from graphiant_sdk.models.mana_v2_extranet_auto_reverse_routes import ManaV2ExtranetAutoReverseRoutes +from graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes import ManaV2ExtranetConsumerLanPrefixes from graphiant_sdk.models.mana_v2_extranet_consumer_lan_segment_policy import ManaV2ExtranetConsumerLanSegmentPolicy from graphiant_sdk.models.mana_v2_extranet_consumer_lan_segment_policy_response import ManaV2ExtranetConsumerLanSegmentPolicyResponse from graphiant_sdk.models.mana_v2_extranet_consumer_nat_rule import ManaV2ExtranetConsumerNatRule from graphiant_sdk.models.mana_v2_extranet_device_status import ManaV2ExtranetDeviceStatus from graphiant_sdk.models.mana_v2_extranet_manual_reverse_routes import ManaV2ExtranetManualReverseRoutes +from graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized import ManaV2ExtranetNatTranslationCentralized +from graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized import ManaV2ExtranetNatTranslationDecentralized +from graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes import ManaV2ExtranetNatTranslationDevicePrefixes +from graphiant_sdk.models.mana_v2_extranet_nat_translation_mode import ManaV2ExtranetNatTranslationMode +from graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer import ManaV2ExtranetNatTranslationPeerToPeer +from graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer_prefix import ManaV2ExtranetNatTranslationPeerToPeerPrefix from graphiant_sdk.models.mana_v2_extranet_policy import ManaV2ExtranetPolicy from graphiant_sdk.models.mana_v2_extranet_policy_input import ManaV2ExtranetPolicyInput +from graphiant_sdk.models.mana_v2_extranet_service_consumer_policy import ManaV2ExtranetServiceConsumerPolicy +from graphiant_sdk.models.mana_v2_extranet_service_customer_invite import ManaV2ExtranetServiceCustomerInvite +from graphiant_sdk.models.mana_v2_extranet_service_customer_match_summary import ManaV2ExtranetServiceCustomerMatchSummary +from graphiant_sdk.models.mana_v2_extranet_service_customer_summary import ManaV2ExtranetServiceCustomerSummary +from graphiant_sdk.models.mana_v2_extranet_service_policy_response import ManaV2ExtranetServicePolicyResponse +from graphiant_sdk.models.mana_v2_extranet_service_producer_customer import ManaV2ExtranetServiceProducerCustomer +from graphiant_sdk.models.mana_v2_extranet_service_producer_policy import ManaV2ExtranetServiceProducerPolicy +from graphiant_sdk.models.mana_v2_extranet_service_summary import ManaV2ExtranetServiceSummary from graphiant_sdk.models.mana_v2_firewall_zone_pair import ManaV2FirewallZonePair from graphiant_sdk.models.mana_v2_forwarding_policy import ManaV2ForwardingPolicy from graphiant_sdk.models.mana_v2_forwarding_policy_config import ManaV2ForwardingPolicyConfig @@ -276,6 +305,8 @@ from graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config import ManaV2GuestConsumerSiteToSiteVpnConfig from graphiant_sdk.models.mana_v2_i_psec_bgp_route_config import ManaV2IPsecBgpRouteConfig from graphiant_sdk.models.mana_v2_i_psec_gateway_details import ManaV2IPsecGatewayDetails +from graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config import ManaV2IPsecGatewayPeersConfig +from graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer import ManaV2IPsecGatewayRemotePeer from graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details import ManaV2IPsecGatewayTunnelDetails from graphiant_sdk.models.mana_v2_i_psec_profile import ManaV2IPsecProfile from graphiant_sdk.models.mana_v2_i_psec_static_route_config import ManaV2IPsecStaticRouteConfig @@ -311,6 +342,8 @@ from graphiant_sdk.models.mana_v2_lacp_config import ManaV2LacpConfig from graphiant_sdk.models.mana_v2_lag_interface import ManaV2LagInterface from graphiant_sdk.models.mana_v2_lag_interface_config import ManaV2LagInterfaceConfig +from graphiant_sdk.models.mana_v2_lan_segment_public_interface_entry import ManaV2LanSegmentPublicInterfaceEntry +from graphiant_sdk.models.mana_v2_lan_segment_public_interfaces_lists import ManaV2LanSegmentPublicInterfacesLists from graphiant_sdk.models.mana_v2_lan_segment_sites_map import ManaV2LanSegmentSitesMap from graphiant_sdk.models.mana_v2_latency_bandwidth import ManaV2LatencyBandwidth from graphiant_sdk.models.mana_v2_lldp_neighbor import ManaV2LldpNeighbor @@ -475,17 +508,11 @@ from graphiant_sdk.models.mana_v2_prometheus_rule_group_config import ManaV2PrometheusRuleGroupConfig from graphiant_sdk.models.mana_v2_prometheus_sys_db_monitor_config import ManaV2PrometheusSysDbMonitorConfig from graphiant_sdk.models.mana_v2_psk_configuration import ManaV2PskConfiguration -from graphiant_sdk.models.mana_v2_public_vif import ManaV2PublicVif -from graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment import ManaV2PublicVifConsumerLanSegment -from graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment_response import ManaV2PublicVifConsumerLanSegmentResponse -from graphiant_sdk.models.mana_v2_public_vif_consumer_policy import ManaV2PublicVifConsumerPolicy -from graphiant_sdk.models.mana_v2_public_vif_consumer_policy_response import ManaV2PublicVifConsumerPolicyResponse -from graphiant_sdk.models.mana_v2_public_vif_device import ManaV2PublicVifDevice -from graphiant_sdk.models.mana_v2_public_vif_dynamic import ManaV2PublicVifDynamic -from graphiant_sdk.models.mana_v2_public_vif_fixed import ManaV2PublicVifFixed -from graphiant_sdk.models.mana_v2_public_vif_fixed_nat import ManaV2PublicVifFixedNat -from graphiant_sdk.models.mana_v2_public_vif_producer_policy import ManaV2PublicVifProducerPolicy -from graphiant_sdk.models.mana_v2_public_vif_producer_policy_response import ManaV2PublicVifProducerPolicyResponse +from graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat import ManaV2PublicVifGatewayCentralizedNat +from graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices import ManaV2PublicVifGatewayConsumerLanDevices +from graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes import ManaV2PublicVifGatewayDecentralizedPrefixes +from graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy import ManaV2PublicVifGatewayNatPrefixStrategy +from graphiant_sdk.models.mana_v2_public_vif_gateway_write_request import ManaV2PublicVifGatewayWriteRequest from graphiant_sdk.models.mana_v2_public_vif_summary import ManaV2PublicVifSummary from graphiant_sdk.models.mana_v2_qo_s_profile import ManaV2QoSProfile from graphiant_sdk.models.mana_v2_qo_s_profile_queue import ManaV2QoSProfileQueue @@ -586,6 +613,7 @@ from graphiant_sdk.models.mana_v2_vrf_config import ManaV2VrfConfig from graphiant_sdk.models.mana_v2_vrrp_group import ManaV2VrrpGroup from graphiant_sdk.models.mana_v2_vrrp_group_config import ManaV2VrrpGroupConfig +from graphiant_sdk.models.mana_v2_zero_trust_consumption_summary import ManaV2ZeroTrustConsumptionSummary from graphiant_sdk.models.mana_v2_zone import ManaV2Zone from graphiant_sdk.models.mana_v2_zone_firewall_config import ManaV2ZoneFirewallConfig from graphiant_sdk.models.mana_v2_zone_firewall_ip_policy_config import ManaV2ZoneFirewallIpPolicyConfig @@ -757,9 +785,12 @@ from graphiant_sdk.models.v1_auth_error_post_response import V1AuthErrorPostResponse from graphiant_sdk.models.v1_auth_gcs_post_request import V1AuthGcsPostRequest from graphiant_sdk.models.v1_auth_get_response import V1AuthGetResponse +from graphiant_sdk.models.v1_auth_login_callback_post500_response import V1AuthLoginCallbackPost500Response from graphiant_sdk.models.v1_auth_login_post_request import V1AuthLoginPostRequest from graphiant_sdk.models.v1_auth_login_post_response import V1AuthLoginPostResponse from graphiant_sdk.models.v1_auth_login_pre_get_response import V1AuthLoginPreGetResponse +from graphiant_sdk.models.v1_auth_login_saml_get401_response import V1AuthLoginSamlGet401Response +from graphiant_sdk.models.v1_auth_login_saml_get500_response import V1AuthLoginSamlGet500Response from graphiant_sdk.models.v1_auth_login_temp_post_request import V1AuthLoginTempPostRequest from graphiant_sdk.models.v1_auth_mfa_patch_request import V1AuthMfaPatchRequest from graphiant_sdk.models.v1_auth_mfa_post500_response import V1AuthMfaPost500Response @@ -769,7 +800,11 @@ from graphiant_sdk.models.v1_auth_patch_request import V1AuthPatchRequest from graphiant_sdk.models.v1_auth_put_request import V1AuthPutRequest from graphiant_sdk.models.v1_auth_refresh_get200_response import V1AuthRefreshGet200Response +from graphiant_sdk.models.v1_auth_refresh_get403_response import V1AuthRefreshGet403Response +from graphiant_sdk.models.v1_auth_refresh_get422_response import V1AuthRefreshGet422Response from graphiant_sdk.models.v1_auth_refresh_get_entry_point_response import V1AuthRefreshGetEntryPointResponse +from graphiant_sdk.models.v1_auth_session_get403_response import V1AuthSessionGet403Response +from graphiant_sdk.models.v1_auth_session_get422_response import V1AuthSessionGet422Response from graphiant_sdk.models.v1_auth_user_get_response import V1AuthUserGetResponse from graphiant_sdk.models.v1_backbone_health_device_device_id_post_request import V1BackboneHealthDeviceDeviceIdPostRequest from graphiant_sdk.models.v1_backbone_health_device_device_id_post_response import V1BackboneHealthDeviceDeviceIdPostResponse @@ -977,6 +1012,40 @@ from graphiant_sdk.models.v1_enterprises_patch_request import V1EnterprisesPatchRequest from graphiant_sdk.models.v1_enterprises_patch_request_token_expiry import V1EnterprisesPatchRequestTokenExpiry from graphiant_sdk.models.v1_enterprises_put_request import V1EnterprisesPutRequest +from graphiant_sdk.models.v1_extranet_b2b_consumers_customer_id_get_response import V1ExtranetB2bConsumersCustomerIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config import V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_device_status_get_response import V1ExtranetB2bConsumersIdDeviceStatusGetResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_prefixes_put_request import V1ExtranetB2bConsumersIdPrefixesPutRequest +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_prefixes_put_response import V1ExtranetB2bConsumersIdPrefixesPutResponse +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_put_request import V1ExtranetB2bConsumersIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_consumers_id_put_response import V1ExtranetB2bConsumersIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_delete_response import V1ExtranetB2bCustomersIdDeleteResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_details_get_response import V1ExtranetB2bCustomersIdDetailsGetResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_matches_summary_get_response import V1ExtranetB2bCustomersIdMatchesSummaryGetResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_id_put_request import V1ExtranetB2bCustomersIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_customers_id_put_response import V1ExtranetB2bCustomersIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_post_request import V1ExtranetB2bCustomersPostRequest +from graphiant_sdk.models.v1_extranet_b2b_customers_post_response import V1ExtranetB2bCustomersPostResponse +from graphiant_sdk.models.v1_extranet_b2b_customers_summary_get_response import V1ExtranetB2bCustomersSummaryGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_customers_post_request import V1ExtranetB2bMatchesCustomersPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_customers_post_response import V1ExtranetB2bMatchesCustomersPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_check_post_request import V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_check_post_response import V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_post_request import V1ExtranetB2bMatchesMatchIdConsumerPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_consumer_post_response import V1ExtranetB2bMatchesMatchIdConsumerPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_delete_response import V1ExtranetB2bMatchesMatchIdDeleteResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_details_get_response import V1ExtranetB2bMatchesMatchIdDetailsGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_get_response import V1ExtranetB2bMatchesMatchIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_put_request import V1ExtranetB2bMatchesMatchIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_put_response import V1ExtranetB2bMatchesMatchIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_status_put_request import V1ExtranetB2bMatchesMatchIdStatusPutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_match_id_status_put_response import V1ExtranetB2bMatchesMatchIdStatusPutResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_pause_put_request import V1ExtranetB2bMatchesPausePutRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_pause_put_response import V1ExtranetB2bMatchesPausePutResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_post_request import V1ExtranetB2bMatchesPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_post_response import V1ExtranetB2bMatchesPostResponse +from graphiant_sdk.models.v1_extranet_b2b_matches_review_post_request import V1ExtranetB2bMatchesReviewPostRequest +from graphiant_sdk.models.v1_extranet_b2b_matches_review_post_response import V1ExtranetB2bMatchesReviewPostResponse from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request import V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_response import V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request import V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest @@ -989,14 +1058,18 @@ from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_health_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request import V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest from graphiant_sdk.models.v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_response import V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse -from graphiant_sdk.models.v1_extranet_public_vif_check_post_request import V1ExtranetPublicVifCheckPostRequest -from graphiant_sdk.models.v1_extranet_public_vif_check_post_response import V1ExtranetPublicVifCheckPostResponse -from graphiant_sdk.models.v1_extranet_public_vif_get_response import V1ExtranetPublicVifGetResponse -from graphiant_sdk.models.v1_extranet_public_vif_id_get_response import V1ExtranetPublicVifIdGetResponse -from graphiant_sdk.models.v1_extranet_public_vif_id_put_request import V1ExtranetPublicVifIdPutRequest -from graphiant_sdk.models.v1_extranet_public_vif_id_put_response import V1ExtranetPublicVifIdPutResponse -from graphiant_sdk.models.v1_extranet_public_vif_post_request import V1ExtranetPublicVifPostRequest -from graphiant_sdk.models.v1_extranet_public_vif_post_response import V1ExtranetPublicVifPostResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_customers_get_response import V1ExtranetB2bProducerIdCustomersGetResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_device_status_get_response import V1ExtranetB2bProducerIdDeviceStatusGetResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_get_response import V1ExtranetB2bProducerIdGetResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_put_request import V1ExtranetB2bProducerIdPutRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_id_put_response import V1ExtranetB2bProducerIdPutResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_id_status_put_request import V1ExtranetB2bProducerIdStatusPutRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_id_status_put_response import V1ExtranetB2bProducerIdStatusPutResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_post_request import V1ExtranetB2bProducerPostRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_post_response import V1ExtranetB2bProducerPostResponse +from graphiant_sdk.models.v1_extranet_b2b_producer_review_post_request import V1ExtranetB2bProducerReviewPostRequest +from graphiant_sdk.models.v1_extranet_b2b_producer_review_post_response import V1ExtranetB2bProducerReviewPostResponse +from graphiant_sdk.models.v1_extranet_b2b_services_summary_get_response import V1ExtranetB2bServicesSummaryGetResponse from graphiant_sdk.models.v1_extranet_sites_usage_top_post_request import V1ExtranetSitesUsageTopPostRequest from graphiant_sdk.models.v1_extranet_sites_usage_top_post_response import V1ExtranetSitesUsageTopPostResponse from graphiant_sdk.models.v1_extranet_sites_usage_top_post_response_site_usage import V1ExtranetSitesUsageTopPostResponseSiteUsage @@ -1167,6 +1240,7 @@ from graphiant_sdk.models.v1_groups_root_get_response import V1GroupsRootGetResponse from graphiant_sdk.models.v1_invitation_email_post_request import V1InvitationEmailPostRequest from graphiant_sdk.models.v1_lan_segments_get_response import V1LanSegmentsGetResponse +from graphiant_sdk.models.v1_lan_segments_interfaces_public_get_response import V1LanSegmentsInterfacesPublicGetResponse from graphiant_sdk.models.v1_lldp_interface_id_neighbors_get_response import V1LldpInterfaceIdNeighborsGetResponse from graphiant_sdk.models.v1_lldp_interface_id_summary_get_response import V1LldpInterfaceIdSummaryGetResponse from graphiant_sdk.models.v1_lldp_interface_id_vendors_get_response import V1LldpInterfaceIdVendorsGetResponse @@ -1186,8 +1260,16 @@ from graphiant_sdk.models.v1_policy_route_tag_sets_tags_get_response import V1PolicyRouteTagSetsTagsGetResponse from graphiant_sdk.models.v1_policy_route_tag_sets_tags_summary_get_response import V1PolicyRouteTagSetsTagsSummaryGetResponse from graphiant_sdk.models.v1_presharedkey_get_response import V1PresharedkeyGetResponse +from graphiant_sdk.models.v1_pvif_id_details_get_response import V1PvifIdDetailsGetResponse +from graphiant_sdk.models.v1_pvif_id_put_request import V1PvifIdPutRequest +from graphiant_sdk.models.v1_pvif_id_put_response import V1PvifIdPutResponse +from graphiant_sdk.models.v1_pvif_post_request import V1PvifPostRequest +from graphiant_sdk.models.v1_pvif_post_response import V1PvifPostResponse +from graphiant_sdk.models.v1_pvif_summary_get_response import V1PvifSummaryGetResponse from graphiant_sdk.models.v1_qos_circuit_profiles_get_response import V1QosCircuitProfilesGetResponse from graphiant_sdk.models.v1_regions_get_response import V1RegionsGetResponse +from graphiant_sdk.models.v1_regions_region_id_gateways_get_response import V1RegionsRegionIdGatewaysGetResponse +from graphiant_sdk.models.v1_regions_region_id_gateways_get_response_gateway import V1RegionsRegionIdGatewaysGetResponseGateway from graphiant_sdk.models.v1_search_get_response import V1SearchGetResponse from graphiant_sdk.models.v1_site_details_sitelists_post_request import V1SiteDetailsSitelistsPostRequest from graphiant_sdk.models.v1_site_details_sitelists_post_response import V1SiteDetailsSitelistsPostResponse @@ -1248,6 +1330,7 @@ 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_agents_get_response import V1ZtagentAgentsGetResponse 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 @@ -1267,6 +1350,8 @@ from graphiant_sdk.models.v2_assistant_get_conversations_post_response import V2AssistantGetConversationsPostResponse from graphiant_sdk.models.v2_assistant_update_conversation_name_post_request import V2AssistantUpdateConversationNamePostRequest from graphiant_sdk.models.v2_assistant_version_post_response import V2AssistantVersionPostResponse +from graphiant_sdk.models.v2_assurance_ai_adoption_summary_post_request import V2AssuranceAiAdoptionSummaryPostRequest +from graphiant_sdk.models.v2_assurance_ai_adoption_summary_post_response import V2AssuranceAiAdoptionSummaryPostResponse from graphiant_sdk.models.v2_assurance_applicationdetailsbyname_post_request import V2AssuranceApplicationdetailsbynamePostRequest from graphiant_sdk.models.v2_assurance_applicationdetailsbyname_post_response import V2AssuranceApplicationdetailsbynamePostResponse from graphiant_sdk.models.v2_assurance_applicationprofilesummary_post_request import V2AssuranceApplicationprofilesummaryPostRequest @@ -1281,6 +1366,8 @@ from graphiant_sdk.models.v2_assurance_bucket_topologies_post_response import V2AssuranceBucketTopologiesPostResponse from graphiant_sdk.models.v2_assurance_bucketdetails_post_request import V2AssuranceBucketdetailsPostRequest from graphiant_sdk.models.v2_assurance_bucketdetails_post_response import V2AssuranceBucketdetailsPostResponse +from graphiant_sdk.models.v2_assurance_create_ai_adoption_approve_entry_post_request import V2AssuranceCreateAiAdoptionApproveEntryPostRequest +from graphiant_sdk.models.v2_assurance_create_ai_adoption_approve_entry_post_response import V2AssuranceCreateAiAdoptionApproveEntryPostResponse from graphiant_sdk.models.v2_assurance_create_dnsproxy_entry_post_request import V2AssuranceCreateDnsproxyEntryPostRequest from graphiant_sdk.models.v2_assurance_create_dnsproxy_entry_post_response import V2AssuranceCreateDnsproxyEntryPostResponse from graphiant_sdk.models.v2_assurance_create_user_report_post_request import V2AssuranceCreateUserReportPostRequest @@ -1290,7 +1377,10 @@ from graphiant_sdk.models.v2_assurance_download_user_report_get_response import V2AssuranceDownloadUserReportGetResponse from graphiant_sdk.models.v2_assurance_enterprisesummary_post_request import V2AssuranceEnterprisesummaryPostRequest from graphiant_sdk.models.v2_assurance_enterprisesummary_post_response import V2AssuranceEnterprisesummaryPostResponse +from graphiant_sdk.models.v2_assurance_get_app_names_post_request import V2AssuranceGetAppNamesPostRequest +from graphiant_sdk.models.v2_assurance_get_app_names_post_response import V2AssuranceGetAppNamesPostResponse from graphiant_sdk.models.v2_assurance_getclassifiedapplicationlist_get_response import V2AssuranceGetclassifiedapplicationlistGetResponse +from graphiant_sdk.models.v2_assurance_read_ai_adoption_approve_entries_get_response import V2AssuranceReadAiAdoptionApproveEntriesGetResponse from graphiant_sdk.models.v2_assurance_read_dnsproxy_list_get_response import V2AssuranceReadDnsproxyListGetResponse from graphiant_sdk.models.v2_assurance_read_user_report_list_get_response import V2AssuranceReadUserReportListGetResponse from graphiant_sdk.models.v2_assurance_scoredetails_post_request import V2AssuranceScoredetailsPostRequest @@ -1316,6 +1406,7 @@ from graphiant_sdk.models.v2_assurance_topology_site_summaries_post_response_summary import V2AssuranceTopologySiteSummariesPostResponseSummary from graphiant_sdk.models.v2_assurance_unclassifiedapplicationprofilesummary_post_request import V2AssuranceUnclassifiedapplicationprofilesummaryPostRequest from graphiant_sdk.models.v2_assurance_unclassifiedapplicationprofilesummary_post_response import V2AssuranceUnclassifiedapplicationprofilesummaryPostResponse +from graphiant_sdk.models.v2_assurance_update_ai_adoption_approve_entry_post_request import V2AssuranceUpdateAiAdoptionApproveEntryPostRequest from graphiant_sdk.models.v2_assurance_update_dnsproxy_entry_post_request import V2AssuranceUpdateDnsproxyEntryPostRequest from graphiant_sdk.models.v2_assurance_updateclassifiedapplication_post_request import V2AssuranceUpdateclassifiedapplicationPostRequest from graphiant_sdk.models.v2_audit_logs_post_request import V2AuditLogsPostRequest diff --git a/graphiant_sdk/models/alertservice_alert_record.py b/graphiant_sdk/models/alertservice_alert_record.py index ce8c933d..fdecf703 100644 --- a/graphiant_sdk/models/alertservice_alert_record.py +++ b/graphiant_sdk/models/alertservice_alert_record.py @@ -22,47 +22,45 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AlertserviceAlertRecord(BaseModel): """ AlertserviceAlertRecord """ # noqa: E501 acknowledged_list: Optional[List[StrictStr]] = Field(default=None, alias="acknowledgedList") - acknowledgement_reason: Optional[StrictStr] = Field(default=None, description="Reason put by users when acknowledged", alias="acknowledgementReason", json_schema_extra={"examples": ["example string"]}) - alert_body: Optional[StrictStr] = Field(default=None, description="Latest event(s) behind the alert (required)", alias="alertBody", json_schema_extra={"examples": ["example string"]}) - alert_id: Optional[StrictStr] = Field(default=None, description="Unique id of the alert (required)", alias="alertId", json_schema_extra={"examples": ["example string"]}) - allow_listed: Optional[StrictBool] = Field(default=None, description="whether entity in alert is put in allowlist/excludelist, disabling alert (required)", alias="allowListed", json_schema_extra={"examples": [True]}) + acknowledgement_reason: Optional[StrictStr] = Field(default=None, description="Reason put by users when acknowledged", alias="acknowledgementReason") + alert_body: Optional[StrictStr] = Field(default=None, description="Latest event(s) behind the alert (required)", alias="alertBody") + alert_id: Optional[StrictStr] = Field(default=None, description="Unique id of the alert (required)", alias="alertId") + allow_listed: Optional[StrictBool] = Field(default=None, description="whether entity in alert is put in allowlist/excludelist, disabling alert (required)", alias="allowListed") children_alert_list: Optional[AlertserviceChildrenAlertListResponse] = Field(default=None, alias="childrenAlertList") - descendant_present: Optional[StrictBool] = Field(default=None, description="Whether or not descendants are present (required)", alias="descendantPresent", json_schema_extra={"examples": [True]}) - device_id: Optional[StrictStr] = Field(default=None, description="Internal device id to navigate to troubleshooting", alias="deviceId", json_schema_extra={"examples": ["example string"]}) - end_time: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="When this alert was last seen as a continuation (required)", alias="endTime", json_schema_extra={"examples": [12345678910]}) - enterprise_id: Optional[StrictStr] = Field(default=None, description="Internal enterprise id to navigate to troubleshooting (required)", alias="enterpriseId", json_schema_extra={"examples": ["example string"]}) - entity: Optional[StrictStr] = Field(default=None, description="Entity that triggered the alert. Edge, core, etc. (required)", json_schema_extra={"examples": ["example string"]}) - interface_name: Optional[StrictStr] = Field(default=None, description="Device Interface Name", alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - mute_listed: Optional[StrictBool] = Field(default=None, description="whether entity in alert is put in notification mutelist (required)", alias="muteListed", json_schema_extra={"examples": [True]}) - notification_created: Optional[StrictBool] = Field(default=None, description="whether notification exists for this rule (required)", alias="notificationCreated", json_schema_extra={"examples": [True]}) - occurrences: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Number of times alert was raised as a continuation (required)", json_schema_extra={"examples": [12345678910]}) - peer_device_id: Optional[StrictStr] = Field(default=None, description="peer device id", alias="peerDeviceId", json_schema_extra={"examples": ["example string"]}) - peer_interface_name: Optional[StrictStr] = Field(default=None, description="Peer Interface Name", alias="peerInterfaceName", json_schema_extra={"examples": ["example string"]}) - peer_name: Optional[StrictStr] = Field(default=None, description="Peer Name", alias="peerName", json_schema_extra={"examples": ["example string"]}) - plane: Optional[StrictStr] = Field(default=None, description="Plane of the rule generating the alert (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) - reason: Optional[StrictStr] = Field(default=None, description="Reason why alert was generated (required)", json_schema_extra={"examples": ["example string"]}) - recommendation: Optional[StrictStr] = Field(default=None, description="Recommendation to recover from alert (required)", json_schema_extra={"examples": ["example string"]}) - rule_id: Optional[StrictStr] = Field(default=None, description="Unique id of the rule generating the alert (required)", alias="ruleId", json_schema_extra={"examples": ["example string"]}) - severity: Optional[StrictStr] = Field(default=None, description="Severity of the rule behind the alert (required)", json_schema_extra={"examples": ["Low"]}) - site_id: Optional[StrictStr] = Field(default=None, description="Internal site id to navigate to troubleshooting", alias="siteId", json_schema_extra={"examples": ["example string"]}) - start_time: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="When this alert was first triggered (required)", alias="startTime", json_schema_extra={"examples": [12345678910]}) - status: Optional[StrictStr] = Field(default=None, description="Status of the alert whether active or inactive (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) - troubleshooting_disabled_reason: Optional[StrictStr] = Field(default=None, description="Reason to not navigate to troubleshooting", alias="troubleshootingDisabledReason", json_schema_extra={"examples": ["example string"]}) - troubleshooting_enabled: Optional[StrictBool] = Field(default=None, description="Navigate or not navigate to troubleshooting dashboard (required)", alias="troubleshootingEnabled", json_schema_extra={"examples": [True]}) - tunnel_interface_name: Optional[StrictStr] = Field(default=None, description="Tunnel Interface Name", alias="tunnelInterfaceName", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, description="Type of alert (required)", json_schema_extra={"examples": ["example string"]}) + descendant_present: Optional[StrictBool] = Field(default=None, description="Whether or not descendants are present (required)", alias="descendantPresent") + device_id: Optional[StrictStr] = Field(default=None, description="Internal device id to navigate to troubleshooting", alias="deviceId") + end_time: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="When this alert was last seen as a continuation (required)", alias="endTime") + enterprise_id: Optional[StrictStr] = Field(default=None, description="Internal enterprise id to navigate to troubleshooting (required)", alias="enterpriseId") + entity: Optional[StrictStr] = Field(default=None, description="Entity that triggered the alert. Edge, core, etc. (required)") + interface_name: Optional[StrictStr] = Field(default=None, description="Device Interface Name", alias="interfaceName") + mute_listed: Optional[StrictBool] = Field(default=None, description="whether entity in alert is put in notification mutelist (required)", alias="muteListed") + notification_created: Optional[StrictBool] = Field(default=None, description="whether notification exists for this rule (required)", alias="notificationCreated") + occurrences: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Number of times alert was raised as a continuation (required)") + peer_device_id: Optional[StrictStr] = Field(default=None, description="peer device id", alias="peerDeviceId") + peer_interface_name: Optional[StrictStr] = Field(default=None, description="Peer Interface Name", alias="peerInterfaceName") + peer_name: Optional[StrictStr] = Field(default=None, description="Peer Name", alias="peerName") + plane: Optional[StrictStr] = Field(default=None, description="Plane of the rule generating the alert (required)") + reason: Optional[StrictStr] = Field(default=None, description="Reason why alert was generated (required)") + recommendation: Optional[StrictStr] = Field(default=None, description="Recommendation to recover from alert (required)") + rule_id: Optional[StrictStr] = Field(default=None, description="Unique id of the rule generating the alert (required)", alias="ruleId") + severity: Optional[StrictStr] = Field(default=None, description="Severity of the rule behind the alert (required)") + site_id: Optional[StrictStr] = Field(default=None, description="Internal site id to navigate to troubleshooting", alias="siteId") + start_time: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="When this alert was first triggered (required)", alias="startTime") + status: Optional[StrictStr] = Field(default=None, description="Status of the alert whether active or inactive (required)") + troubleshooting_disabled_reason: Optional[StrictStr] = Field(default=None, description="Reason to not navigate to troubleshooting", alias="troubleshootingDisabledReason") + troubleshooting_enabled: Optional[StrictBool] = Field(default=None, description="Navigate or not navigate to troubleshooting dashboard (required)", alias="troubleshootingEnabled") + tunnel_interface_name: Optional[StrictStr] = Field(default=None, description="Tunnel Interface Name", alias="tunnelInterfaceName") + type: Optional[StrictStr] = Field(default=None, description="Type of alert (required)") __properties: ClassVar[List[str]] = ["acknowledgedList", "acknowledgementReason", "alertBody", "alertId", "allowListed", "childrenAlertList", "descendantPresent", "deviceId", "endTime", "enterpriseId", "entity", "interfaceName", "muteListed", "notificationCreated", "occurrences", "peerDeviceId", "peerInterfaceName", "peerName", "plane", "reason", "recommendation", "ruleId", "severity", "siteId", "startTime", "status", "troubleshootingDisabledReason", "troubleshootingEnabled", "tunnelInterfaceName", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -74,7 +72,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/alertservice_allow_alert_notifcation_list_record.py b/graphiant_sdk/models/alertservice_allow_alert_notifcation_list_record.py index 82e58c8c..342c25c7 100644 --- a/graphiant_sdk/models/alertservice_allow_alert_notifcation_list_record.py +++ b/graphiant_sdk/models/alertservice_allow_alert_notifcation_list_record.py @@ -21,30 +21,28 @@ 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 AlertserviceAllowAlertNotifcationListRecord(BaseModel): """ AlertserviceAllowAlertNotifcationListRecord """ # noqa: E501 - create_time: Optional[StrictInt] = Field(default=None, alias="createTime", json_schema_extra={"examples": [1234567891011]}) - device_interface: Optional[StrictStr] = Field(default=None, alias="deviceInterface", json_schema_extra={"examples": ["example string"]}) - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) - enterprise_name: Optional[StrictStr] = Field(default=None, alias="enterpriseName", json_schema_extra={"examples": ["example string"]}) - entity_id: Optional[StrictStr] = Field(default=None, alias="entityId", json_schema_extra={"examples": ["example string"]}) - is_wan_circuit: Optional[StrictBool] = Field(default=None, alias="isWanCircuit", json_schema_extra={"examples": [True]}) - note_text: Optional[StrictStr] = Field(default=None, alias="noteText", json_schema_extra={"examples": ["example string"]}) - peer_device_interface: Optional[StrictStr] = Field(default=None, alias="peerDeviceInterface", json_schema_extra={"examples": ["example string"]}) - peer_device_name: Optional[StrictStr] = Field(default=None, alias="peerDeviceName", json_schema_extra={"examples": ["example string"]}) - rule_id: Optional[StrictStr] = Field(default=None, alias="ruleId", json_schema_extra={"examples": ["example string"]}) - rule_name: Optional[StrictStr] = Field(default=None, alias="ruleName", json_schema_extra={"examples": ["example string"]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) - vrf_id: Optional[StrictStr] = Field(default=None, alias="vrfId", json_schema_extra={"examples": ["example string"]}) + create_time: Optional[StrictInt] = Field(default=None, alias="createTime") + device_interface: Optional[StrictStr] = Field(default=None, alias="deviceInterface") + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + enterprise_name: Optional[StrictStr] = Field(default=None, alias="enterpriseName") + entity_id: Optional[StrictStr] = Field(default=None, alias="entityId") + is_wan_circuit: Optional[StrictBool] = Field(default=None, alias="isWanCircuit") + note_text: Optional[StrictStr] = Field(default=None, alias="noteText") + peer_device_interface: Optional[StrictStr] = Field(default=None, alias="peerDeviceInterface") + peer_device_name: Optional[StrictStr] = Field(default=None, alias="peerDeviceName") + rule_id: Optional[StrictStr] = Field(default=None, alias="ruleId") + rule_name: Optional[StrictStr] = Field(default=None, alias="ruleName") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + vrf_id: Optional[StrictStr] = Field(default=None, alias="vrfId") __properties: ClassVar[List[str]] = ["createTime", "deviceInterface", "deviceName", "enterpriseName", "entityId", "isWanCircuit", "noteText", "peerDeviceInterface", "peerDeviceName", "ruleId", "ruleName", "siteName", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/alertservice_children_alert_list_response.py b/graphiant_sdk/models/alertservice_children_alert_list_response.py index 8436426e..c8293141 100644 --- a/graphiant_sdk/models/alertservice_children_alert_list_response.py +++ b/graphiant_sdk/models/alertservice_children_alert_list_response.py @@ -21,7 +21,6 @@ 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 AlertserviceChildrenAlertListResponse(BaseModel): """ @@ -31,8 +30,7 @@ class AlertserviceChildrenAlertListResponse(BaseModel): __properties: ClassVar[List[str]] = ["alertList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/alertservice_create_integration_body.py b/graphiant_sdk/models/alertservice_create_integration_body.py index ed074b64..e4ce45eb 100644 --- a/graphiant_sdk/models/alertservice_create_integration_body.py +++ b/graphiant_sdk/models/alertservice_create_integration_body.py @@ -23,24 +23,22 @@ 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 AlertserviceCreateIntegrationBody(BaseModel): """ AlertserviceCreateIntegrationBody """ # noqa: E501 - created_by: Optional[StrictStr] = Field(default=None, description="ID of the user who created the integration", alias="createdBy", json_schema_extra={"examples": ["example string"]}) + created_by: Optional[StrictStr] = Field(default=None, description="ID of the user who created the integration", alias="createdBy") created_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdOn") details: Optional[AlertserviceIntegrationDetails] = None - enterprise: StrictInt = Field(description="ID of the enterprise (required)", json_schema_extra={"examples": [1234567891011]}) - integration_type: StrictStr = Field(description="Type of integration (required)", alias="integrationType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - is_active: Optional[StrictBool] = Field(default=None, description="Indicates whether the integration is active", alias="isActive", json_schema_extra={"examples": [True]}) - nick_name: StrictStr = Field(description="Name of the integration (required)", alias="nickName", json_schema_extra={"examples": ["example string"]}) + enterprise: StrictInt = Field(description="ID of the enterprise (required)") + integration_type: StrictStr = Field(description="Type of integration (required)", alias="integrationType") + is_active: Optional[StrictBool] = Field(default=None, description="Indicates whether the integration is active", alias="isActive") + nick_name: StrictStr = Field(description="Name of the integration (required)", alias="nickName") __properties: ClassVar[List[str]] = ["createdBy", "createdOn", "details", "enterprise", "integrationType", "isActive", "nickName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/alertservice_integration.py b/graphiant_sdk/models/alertservice_integration.py index 3236d882..3ef0b8fc 100644 --- a/graphiant_sdk/models/alertservice_integration.py +++ b/graphiant_sdk/models/alertservice_integration.py @@ -22,26 +22,24 @@ from graphiant_sdk.models.alertservice_integration_details import AlertserviceIntegrationDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AlertserviceIntegration(BaseModel): """ AlertserviceIntegration """ # noqa: E501 - created_by: Optional[StrictStr] = Field(default=None, alias="createdBy", json_schema_extra={"examples": ["example string"]}) - created_on: Optional[StrictStr] = Field(default=None, alias="createdOn", json_schema_extra={"examples": ["example string"]}) + created_by: Optional[StrictStr] = Field(default=None, alias="createdBy") + created_on: Optional[StrictStr] = Field(default=None, alias="createdOn") details: Optional[AlertserviceIntegrationDetails] = None - enterprise_id: Optional[StrictStr] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - is_active: Optional[StrictBool] = Field(default=None, alias="isActive", json_schema_extra={"examples": [True]}) - last_scanned: Optional[StrictInt] = Field(default=None, description="last scanned time for integrations (zendesk)", alias="lastScanned", json_schema_extra={"examples": [1234567891011]}) - nick_name: Optional[StrictStr] = Field(default=None, alias="nickName", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + enterprise_id: Optional[StrictStr] = Field(default=None, alias="enterpriseId") + id: Optional[StrictInt] = None + is_active: Optional[StrictBool] = Field(default=None, alias="isActive") + last_scanned: Optional[StrictInt] = Field(default=None, description="last scanned time for integrations (zendesk)", alias="lastScanned") + nick_name: Optional[StrictStr] = Field(default=None, alias="nickName") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["createdBy", "createdOn", "details", "enterpriseId", "id", "isActive", "lastScanned", "nickName", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/alertservice_integration_details.py b/graphiant_sdk/models/alertservice_integration_details.py index 6a858b4a..9e4ed823 100644 --- a/graphiant_sdk/models/alertservice_integration_details.py +++ b/graphiant_sdk/models/alertservice_integration_details.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.alertservice_zendesk_details import AlertserviceZendeskDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AlertserviceIntegrationDetails(BaseModel): """ AlertserviceIntegrationDetails """ # noqa: E501 - opsgenie_key: Optional[StrictStr] = Field(default=None, alias="opsgenieKey", json_schema_extra={"examples": ["example string"]}) - opsramp_details: Optional[StrictStr] = Field(default=None, alias="opsrampDetails", json_schema_extra={"examples": ["example string"]}) - pagerduty_routing_key: Optional[StrictStr] = Field(default=None, alias="pagerdutyRoutingKey", json_schema_extra={"examples": ["example string"]}) - webhook_url: Optional[StrictStr] = Field(default=None, alias="webhookUrl", json_schema_extra={"examples": ["example string"]}) + opsgenie_key: Optional[StrictStr] = Field(default=None, alias="opsgenieKey") + opsramp_details: Optional[StrictStr] = Field(default=None, alias="opsrampDetails") + pagerduty_routing_key: Optional[StrictStr] = Field(default=None, alias="pagerdutyRoutingKey") + webhook_url: Optional[StrictStr] = Field(default=None, alias="webhookUrl") zendesk_details: Optional[AlertserviceZendeskDetails] = Field(default=None, alias="zendeskDetails") __properties: ClassVar[List[str]] = ["opsgenieKey", "opsrampDetails", "pagerdutyRoutingKey", "webhookUrl", "zendeskDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/alertservice_notification_body.py b/graphiant_sdk/models/alertservice_notification_body.py index 5951cdb6..1b8c5567 100644 --- a/graphiant_sdk/models/alertservice_notification_body.py +++ b/graphiant_sdk/models/alertservice_notification_body.py @@ -22,18 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AlertserviceNotificationBody(BaseModel): """ AlertserviceNotificationBody """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="Description of notification", json_schema_extra={"examples": ["example string"]}) - duration: Optional[StrictStr] = Field(default=None, description="Time interval for notification (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) - enabled: Optional[StrictBool] = Field(default=None, description="Enable or disable notification (required)", json_schema_extra={"examples": [True]}) - frequency: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Frequency of notifying a continuing alert (required)", json_schema_extra={"examples": [12345678910]}) - message_body: Optional[StrictStr] = Field(default=None, description="Message body to prepend to actual message", alias="messageBody", json_schema_extra={"examples": ["example string"]}) - notification_name: Optional[StrictStr] = Field(default=None, description="Name of the notification record (required)", alias="notificationName", json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = Field(default=None, description="Description of notification") + duration: Optional[StrictStr] = Field(default=None, description="Time interval for notification (required)") + enabled: Optional[StrictBool] = Field(default=None, description="Enable or disable notification (required)") + frequency: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Frequency of notifying a continuing alert (required)") + message_body: Optional[StrictStr] = Field(default=None, description="Message body to prepend to actual message", alias="messageBody") + notification_name: Optional[StrictStr] = Field(default=None, description="Name of the notification record (required)", alias="notificationName") opsgenie_list: Optional[List[StrictStr]] = Field(default=None, alias="opsgenieList") opsramp_list: Optional[List[StrictStr]] = Field(default=None, alias="opsrampList") pagerduty_list: Optional[List[StrictStr]] = Field(default=None, alias="pagerdutyList") @@ -43,8 +42,7 @@ class AlertserviceNotificationBody(BaseModel): __properties: ClassVar[List[str]] = ["description", "duration", "enabled", "frequency", "messageBody", "notificationName", "opsgenieList", "opsrampList", "pagerdutyList", "recipientList", "teamsList", "webhookUrlList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/alertservice_notification_record.py b/graphiant_sdk/models/alertservice_notification_record.py index 4d79cb53..78cee05e 100644 --- a/graphiant_sdk/models/alertservice_notification_record.py +++ b/graphiant_sdk/models/alertservice_notification_record.py @@ -23,24 +23,22 @@ from graphiant_sdk.models.alertservice_notification_body import AlertserviceNotificationBody from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AlertserviceNotificationRecord(BaseModel): """ AlertserviceNotificationRecord """ # noqa: E501 - alert_type: Optional[StrictStr] = Field(default=None, description="Type of the alert underlying the notification (required)", alias="alertType", json_schema_extra={"examples": ["example string"]}) - mute_count: Optional[StrictInt] = Field(default=None, description="Number of entities notificated muted (required)", alias="muteCount", json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, description="Name given to the notification record (required)", json_schema_extra={"examples": ["example string"]}) + alert_type: Optional[StrictStr] = Field(default=None, description="Type of the alert underlying the notification (required)", alias="alertType") + mute_count: Optional[StrictInt] = Field(default=None, description="Number of entities notificated muted (required)", alias="muteCount") + name: Optional[StrictStr] = Field(default=None, description="Name given to the notification record (required)") notification_body: Optional[AlertserviceNotificationBody] = Field(default=None, alias="notificationBody") - notification_id: Optional[StrictStr] = Field(default=None, description="Unique id for the notification record (required)", alias="notificationId", json_schema_extra={"examples": ["example string"]}) - rule_id: Optional[StrictStr] = Field(default=None, description="The id of the rule on which notification is created (required)", alias="ruleId", json_schema_extra={"examples": ["example string"]}) - times_triggered: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Number of times notification was triggered for the same alert (required)", alias="timesTriggered", json_schema_extra={"examples": [12345678910]}) + notification_id: Optional[StrictStr] = Field(default=None, description="Unique id for the notification record (required)", alias="notificationId") + rule_id: Optional[StrictStr] = Field(default=None, description="The id of the rule on which notification is created (required)", alias="ruleId") + times_triggered: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Number of times notification was triggered for the same alert (required)", alias="timesTriggered") __properties: ClassVar[List[str]] = ["alertType", "muteCount", "name", "notificationBody", "notificationId", "ruleId", "timesTriggered"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/alertservice_rule_record.py b/graphiant_sdk/models/alertservice_rule_record.py index b517eded..eee6dd3d 100644 --- a/graphiant_sdk/models/alertservice_rule_record.py +++ b/graphiant_sdk/models/alertservice_rule_record.py @@ -21,26 +21,24 @@ 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 AlertserviceRuleRecord(BaseModel): """ AlertserviceRuleRecord """ # noqa: E501 - alarm_clear: Optional[StrictStr] = Field(default=None, description="Condition for triggering recovery", alias="alarmClear", json_schema_extra={"examples": ["example string"]}) - alarm_set: Optional[StrictStr] = Field(default=None, description="Condition for triggering alert (required)", alias="alarmSet", json_schema_extra={"examples": ["example string"]}) - allow_count: Optional[StrictInt] = Field(default=None, description="Number of entities allowed/excluded (required)", alias="allowCount", json_schema_extra={"examples": [1234567891011]}) - category: Optional[StrictStr] = Field(default=None, description="Category of the rule (required)", json_schema_extra={"examples": ["example string"]}) - enabled: Optional[StrictBool] = Field(default=None, description="Whether the rule is enabled or disabled (required)", json_schema_extra={"examples": [True]}) - plane: Optional[StrictStr] = Field(default=None, description="Plane of the rule (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) - priority: Optional[StrictStr] = Field(default=None, description="Priority of taking action against the rule (required)", json_schema_extra={"examples": ["10000000"]}) - rule_id: Optional[StrictStr] = Field(default=None, description="Unique id of the rule (required)", alias="ruleId", json_schema_extra={"examples": ["example string"]}) - rule_name: Optional[StrictStr] = Field(default=None, description="Name of the rule (required)", alias="ruleName", json_schema_extra={"examples": ["example string"]}) + alarm_clear: Optional[StrictStr] = Field(default=None, description="Condition for triggering recovery", alias="alarmClear") + alarm_set: Optional[StrictStr] = Field(default=None, description="Condition for triggering alert (required)", alias="alarmSet") + allow_count: Optional[StrictInt] = Field(default=None, description="Number of entities allowed/excluded (required)", alias="allowCount") + category: Optional[StrictStr] = Field(default=None, description="Category of the rule (required)") + enabled: Optional[StrictBool] = Field(default=None, description="Whether the rule is enabled or disabled (required)") + plane: Optional[StrictStr] = Field(default=None, description="Plane of the rule (required)") + priority: Optional[StrictStr] = Field(default=None, description="Priority of taking action against the rule (required)") + rule_id: Optional[StrictStr] = Field(default=None, description="Unique id of the rule (required)", alias="ruleId") + rule_name: Optional[StrictStr] = Field(default=None, description="Name of the rule (required)", alias="ruleName") __properties: ClassVar[List[str]] = ["alarmClear", "alarmSet", "allowCount", "category", "enabled", "plane", "priority", "ruleId", "ruleName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/alertservice_time_window.py b/graphiant_sdk/models/alertservice_time_window.py index c049b63c..f9570223 100644 --- a/graphiant_sdk/models/alertservice_time_window.py +++ b/graphiant_sdk/models/alertservice_time_window.py @@ -23,20 +23,18 @@ 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 AlertserviceTimeWindow(BaseModel): """ AlertserviceTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") __properties: ClassVar[List[str]] = ["bucketSizeSec", "oldTs", "recentTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/alertservice_update_integration_body.py b/graphiant_sdk/models/alertservice_update_integration_body.py index 17bd02b1..2eac3bdc 100644 --- a/graphiant_sdk/models/alertservice_update_integration_body.py +++ b/graphiant_sdk/models/alertservice_update_integration_body.py @@ -22,23 +22,21 @@ from graphiant_sdk.models.alertservice_integration_details import AlertserviceIntegrationDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AlertserviceUpdateIntegrationBody(BaseModel): """ AlertserviceUpdateIntegrationBody """ # noqa: E501 details: Optional[AlertserviceIntegrationDetails] = None - enterprise: StrictInt = Field(description="ID of the enterprise (required)", json_schema_extra={"examples": [1234567891011]}) - integration_type: StrictStr = Field(description="Type of integration (required)", alias="integrationType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - is_active: Optional[StrictBool] = Field(default=None, description="Indicates whether the integration is active", alias="isActive", json_schema_extra={"examples": [True]}) - nick_name: StrictStr = Field(description="nick name of the integration (required)", alias="nickName", json_schema_extra={"examples": ["example string"]}) - updated_by: Optional[StrictStr] = Field(default=None, description="ID of the user who updated the integration", alias="updatedBy", json_schema_extra={"examples": ["example string"]}) + enterprise: StrictInt = Field(description="ID of the enterprise (required)") + integration_type: StrictStr = Field(description="Type of integration (required)", alias="integrationType") + is_active: Optional[StrictBool] = Field(default=None, description="Indicates whether the integration is active", alias="isActive") + nick_name: StrictStr = Field(description="nick name of the integration (required)", alias="nickName") + updated_by: Optional[StrictStr] = Field(default=None, description="ID of the user who updated the integration", alias="updatedBy") __properties: ClassVar[List[str]] = ["details", "enterprise", "integrationType", "isActive", "nickName", "updatedBy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/alertservice_zendesk_details.py b/graphiant_sdk/models/alertservice_zendesk_details.py index 4c94722a..85b8a1d9 100644 --- a/graphiant_sdk/models/alertservice_zendesk_details.py +++ b/graphiant_sdk/models/alertservice_zendesk_details.py @@ -21,21 +21,19 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AlertserviceZendeskDetails(BaseModel): """ AlertserviceZendeskDetails """ # noqa: E501 - zendesk_api_token: StrictStr = Field(description="zendesk api token (required)", alias="zendeskApiToken", json_schema_extra={"examples": ["example string"]}) - zendesk_assignee_id: StrictStr = Field(description="zendesk assignee id (required)", alias="zendeskAssigneeId", json_schema_extra={"examples": ["example string"]}) - zendesk_base_url: StrictStr = Field(description="zendesk base url (required)", alias="zendeskBaseUrl", json_schema_extra={"examples": ["example string"]}) - zendesk_email: StrictStr = Field(description="zendesk email (required)", alias="zendeskEmail", json_schema_extra={"examples": ["example string"]}) + zendesk_api_token: StrictStr = Field(description="zendesk api token (required)", alias="zendeskApiToken") + zendesk_assignee_id: StrictStr = Field(description="zendesk assignee id (required)", alias="zendeskAssigneeId") + zendesk_base_url: StrictStr = Field(description="zendesk base url (required)", alias="zendeskBaseUrl") + zendesk_email: StrictStr = Field(description="zendesk email (required)", alias="zendeskEmail") __properties: ClassVar[List[str]] = ["zendeskApiToken", "zendeskAssigneeId", "zendeskBaseUrl", "zendeskEmail"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assistant_assistant_conversation.py b/graphiant_sdk/models/assistant_assistant_conversation.py index f4680b58..06af93b7 100644 --- a/graphiant_sdk/models/assistant_assistant_conversation.py +++ b/graphiant_sdk/models/assistant_assistant_conversation.py @@ -21,21 +21,19 @@ 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 AssistantAssistantConversation(BaseModel): """ AssistantAssistantConversation """ # noqa: E501 - conversation_header: Optional[StrictStr] = Field(default=None, alias="conversationHeader", json_schema_extra={"examples": ["example string"]}) - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) - conversation_recent_timestamp: Optional[StrictInt] = Field(default=None, alias="conversationRecentTimestamp", json_schema_extra={"examples": [1234567891011]}) - enable_context_history: Optional[StrictBool] = Field(default=None, alias="enableContextHistory", json_schema_extra={"examples": [True]}) + conversation_header: Optional[StrictStr] = Field(default=None, alias="conversationHeader") + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") + conversation_recent_timestamp: Optional[StrictInt] = Field(default=None, alias="conversationRecentTimestamp") + enable_context_history: Optional[StrictBool] = Field(default=None, alias="enableContextHistory") __properties: ClassVar[List[str]] = ["conversationHeader", "conversationId", "conversationRecentTimestamp", "enableContextHistory"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assistant_assistant_question.py b/graphiant_sdk/models/assistant_assistant_question.py index 9f1b992e..d5c36aff 100644 --- a/graphiant_sdk/models/assistant_assistant_question.py +++ b/graphiant_sdk/models/assistant_assistant_question.py @@ -21,21 +21,19 @@ 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 AssistantAssistantQuestion(BaseModel): """ AssistantAssistantQuestion """ # noqa: E501 - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) - question_language: Optional[StrictStr] = Field(default=None, alias="questionLanguage", json_schema_extra={"examples": ["ENUM_VALUE"]}) - question_text: Optional[StrictStr] = Field(default=None, alias="questionText", json_schema_extra={"examples": ["example string"]}) - question_timestamp: Optional[StrictInt] = Field(default=None, alias="questionTimestamp", json_schema_extra={"examples": [1234567891011]}) + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") + question_language: Optional[StrictStr] = Field(default=None, alias="questionLanguage") + question_text: Optional[StrictStr] = Field(default=None, alias="questionText") + question_timestamp: Optional[StrictInt] = Field(default=None, alias="questionTimestamp") __properties: ClassVar[List[str]] = ["conversationId", "questionLanguage", "questionText", "questionTimestamp"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assistant_assistant_response.py b/graphiant_sdk/models/assistant_assistant_response.py index 368c39bc..37d81727 100644 --- a/graphiant_sdk/models/assistant_assistant_response.py +++ b/graphiant_sdk/models/assistant_assistant_response.py @@ -23,26 +23,24 @@ from graphiant_sdk.models.assistant_dataframe_dictionary import AssistantDataframeDictionary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssistantAssistantResponse(BaseModel): """ AssistantAssistantResponse """ # noqa: E501 - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") dataframe_dictionary: Optional[List[AssistantDataframeDictionary]] = Field(default=None, alias="dataframeDictionary") original_question: Optional[AssistantAssistantQuestion] = Field(default=None, alias="originalQuestion") - response_id: Optional[StrictStr] = Field(default=None, alias="responseId", json_schema_extra={"examples": ["example string"]}) - response_language: Optional[StrictStr] = Field(default=None, alias="responseLanguage", json_schema_extra={"examples": ["ENUM_VALUE"]}) - response_text: Optional[StrictStr] = Field(default=None, alias="responseText", json_schema_extra={"examples": ["example string"]}) - response_timestamp: Optional[StrictInt] = Field(default=None, alias="responseTimestamp", json_schema_extra={"examples": [1234567891011]}) - response_type: Optional[StrictStr] = Field(default=None, alias="responseType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - visualization_summary: Optional[StrictStr] = Field(default=None, alias="visualizationSummary", json_schema_extra={"examples": ["example string"]}) + response_id: Optional[StrictStr] = Field(default=None, alias="responseId") + response_language: Optional[StrictStr] = Field(default=None, alias="responseLanguage") + response_text: Optional[StrictStr] = Field(default=None, alias="responseText") + response_timestamp: Optional[StrictInt] = Field(default=None, alias="responseTimestamp") + response_type: Optional[StrictStr] = Field(default=None, alias="responseType") + visualization_summary: Optional[StrictStr] = Field(default=None, alias="visualizationSummary") __properties: ClassVar[List[str]] = ["conversationId", "dataframeDictionary", "originalQuestion", "responseId", "responseLanguage", "responseText", "responseTimestamp", "responseType", "visualizationSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assistant_dataframe_dictionary.py b/graphiant_sdk/models/assistant_dataframe_dictionary.py index 19a9e38c..6132391a 100644 --- a/graphiant_sdk/models/assistant_dataframe_dictionary.py +++ b/graphiant_sdk/models/assistant_dataframe_dictionary.py @@ -21,20 +21,18 @@ 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 AssistantDataframeDictionary(BaseModel): """ AssistantDataframeDictionary """ # noqa: E501 dataframe_dictionary_map: Optional[Dict[str, StrictStr]] = Field(default=None, alias="dataframeDictionaryMap") - x_axis: Optional[StrictStr] = Field(default=None, alias="xAxis", json_schema_extra={"examples": ["example string"]}) - y_axis: Optional[StrictStr] = Field(default=None, alias="yAxis", json_schema_extra={"examples": ["example string"]}) + x_axis: Optional[StrictStr] = Field(default=None, alias="xAxis") + y_axis: Optional[StrictStr] = Field(default=None, alias="yAxis") __properties: ClassVar[List[str]] = ["dataframeDictionaryMap", "xAxis", "yAxis"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assistant_time_window.py b/graphiant_sdk/models/assistant_time_window.py index 796203a1..2aa6516e 100644 --- a/graphiant_sdk/models/assistant_time_window.py +++ b/graphiant_sdk/models/assistant_time_window.py @@ -23,20 +23,18 @@ 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 AssistantTimeWindow(BaseModel): """ AssistantTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") __properties: ClassVar[List[str]] = ["bucketSizeSec", "oldTs", "recentTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_app_id_record.py b/graphiant_sdk/models/assurance_app_id_record.py index 72504f12..18d8a6b9 100644 --- a/graphiant_sdk/models/assurance_app_id_record.py +++ b/graphiant_sdk/models/assurance_app_id_record.py @@ -23,44 +23,42 @@ from graphiant_sdk.models.assurance_flex_algo_identifier import AssuranceFlexAlgoIdentifier from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceAppIdRecord(BaseModel): """ AssuranceAppIdRecord """ # noqa: E501 - affected_hosts: Optional[StrictInt] = Field(default=None, alias="affectedHosts", json_schema_extra={"examples": [1234567891011]}) - affected_regions: Optional[StrictInt] = Field(default=None, alias="affectedRegions", json_schema_extra={"examples": [1234567891011]}) - affected_sites: Optional[StrictInt] = Field(default=None, alias="affectedSites", json_schema_extra={"examples": [1234567891011]}) - affected_vrfs: Optional[StrictInt] = Field(default=None, alias="affectedVrfs", json_schema_extra={"examples": [1234567891011]}) - app_id_key: Optional[StrictStr] = Field(default=None, alias="appIdKey", json_schema_extra={"examples": ["example string"]}) - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - app_type: Optional[StrictStr] = Field(default=None, alias="appType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + affected_hosts: Optional[StrictInt] = Field(default=None, alias="affectedHosts") + affected_regions: Optional[StrictInt] = Field(default=None, alias="affectedRegions") + affected_sites: Optional[StrictInt] = Field(default=None, alias="affectedSites") + affected_vrfs: Optional[StrictInt] = Field(default=None, alias="affectedVrfs") + app_id_key: Optional[StrictStr] = Field(default=None, alias="appIdKey") + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + app_type: Optional[StrictStr] = Field(default=None, alias="appType") blocked_policy_list: Optional[List[StrictStr]] = Field(default=None, alias="blockedPolicyList") blocked_reason_list: Optional[List[StrictStr]] = Field(default=None, alias="blockedReasonList") - category: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - classfication_field: Optional[StrictStr] = Field(default=None, alias="classficationField", json_schema_extra={"examples": ["example string"]}) - classification_field: Optional[StrictStr] = Field(default=None, alias="classificationField", json_schema_extra={"examples": ["example string"]}) + category: Optional[StrictStr] = None + classfication_field: Optional[StrictStr] = Field(default=None, alias="classficationField") + classification_field: Optional[StrictStr] = Field(default=None, alias="classificationField") clients: Optional[List[StrictStr]] = None exchange_service: Optional[List[AssuranceExchangeServiceIdentifier]] = Field(default=None, alias="exchangeService") - first_seen: Optional[StrictInt] = Field(default=None, alias="firstSeen", json_schema_extra={"examples": [1234567891011]}) + first_seen: Optional[StrictInt] = Field(default=None, alias="firstSeen") flex_algo: Optional[List[AssuranceFlexAlgoIdentifier]] = Field(default=None, alias="flexAlgo") - flows_analyzed: Optional[StrictInt] = Field(default=None, alias="flowsAnalyzed", json_schema_extra={"examples": [1234567891011]}) - last_seen: Optional[StrictInt] = Field(default=None, alias="lastSeen", json_schema_extra={"examples": [1234567891011]}) - new_ip_hint: Optional[StrictBool] = Field(default=None, alias="newIpHint", json_schema_extra={"examples": [True]}) - recommendation: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + flows_analyzed: Optional[StrictInt] = Field(default=None, alias="flowsAnalyzed") + last_seen: Optional[StrictInt] = Field(default=None, alias="lastSeen") + new_ip_hint: Optional[StrictBool] = Field(default=None, alias="newIpHint") + recommendation: Optional[StrictStr] = None region_list: Optional[List[StrictStr]] = Field(default=None, alias="regionList") - risk_status: Optional[StrictStr] = Field(default=None, alias="riskStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - server_ip: Optional[StrictStr] = Field(default=None, alias="serverIp", json_schema_extra={"examples": ["example string"]}) - server_port: Optional[StrictStr] = Field(default=None, alias="serverPort", json_schema_extra={"examples": ["example string"]}) + risk_status: Optional[StrictStr] = Field(default=None, alias="riskStatus") + server_ip: Optional[StrictStr] = Field(default=None, alias="serverIp") + server_port: Optional[StrictStr] = Field(default=None, alias="serverPort") site_list: Optional[List[StrictStr]] = Field(default=None, alias="siteList") - threat_score: Optional[StrictInt] = Field(default=None, alias="threatScore", json_schema_extra={"examples": [1234567891011]}) + threat_score: Optional[StrictInt] = Field(default=None, alias="threatScore") vrf_list: Optional[List[StrictStr]] = Field(default=None, alias="vrfList") __properties: ClassVar[List[str]] = ["affectedHosts", "affectedRegions", "affectedSites", "affectedVrfs", "appIdKey", "appName", "appType", "blockedPolicyList", "blockedReasonList", "category", "classficationField", "classificationField", "clients", "exchangeService", "firstSeen", "flexAlgo", "flowsAnalyzed", "lastSeen", "newIpHint", "recommendation", "regionList", "riskStatus", "serverIp", "serverPort", "siteList", "threatScore", "vrfList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -72,7 +70,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_app_name_record.py b/graphiant_sdk/models/assurance_app_name_record.py index 9914bab9..3441d65e 100644 --- a/graphiant_sdk/models/assurance_app_name_record.py +++ b/graphiant_sdk/models/assurance_app_name_record.py @@ -24,33 +24,32 @@ from graphiant_sdk.models.assurance_flex_algo_identifier import AssuranceFlexAlgoIdentifier from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceAppNameRecord(BaseModel): """ AssuranceAppNameRecord """ # noqa: E501 - affected_hosts: Optional[StrictInt] = Field(default=None, alias="affectedHosts", json_schema_extra={"examples": [1234567891011]}) - affected_regions: Optional[StrictInt] = Field(default=None, alias="affectedRegions", json_schema_extra={"examples": [1234567891011]}) - affected_sites: Optional[StrictInt] = Field(default=None, alias="affectedSites", json_schema_extra={"examples": [1234567891011]}) - affected_vrfs: Optional[StrictInt] = Field(default=None, alias="affectedVrfs", json_schema_extra={"examples": [1234567891011]}) - app_id: Optional[StrictInt] = Field(default=None, alias="appId", json_schema_extra={"examples": [1234567891011]}) + affected_hosts: Optional[StrictInt] = Field(default=None, alias="affectedHosts") + affected_regions: Optional[StrictInt] = Field(default=None, alias="affectedRegions") + affected_sites: Optional[StrictInt] = Field(default=None, alias="affectedSites") + affected_vrfs: Optional[StrictInt] = Field(default=None, alias="affectedVrfs") + app_ai_tag: Optional[StrictStr] = Field(default=None, alias="appAiTag") + app_id: Optional[StrictInt] = Field(default=None, alias="appId") app_id_records: Optional[List[AssuranceAppIdRecord]] = Field(default=None, alias="appIdRecords") - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - app_type: Optional[StrictStr] = Field(default=None, alias="appType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - category: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - da_classified: Optional[StrictBool] = Field(default=None, alias="daClassified", json_schema_extra={"examples": [True]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + app_type: Optional[StrictStr] = Field(default=None, alias="appType") + category: Optional[StrictStr] = None + da_classified: Optional[StrictBool] = Field(default=None, alias="daClassified") exchange_service: Optional[List[AssuranceExchangeServiceIdentifier]] = Field(default=None, alias="exchangeService") flex_algo: Optional[List[AssuranceFlexAlgoIdentifier]] = Field(default=None, alias="flexAlgo") - flows_analyzed: Optional[StrictInt] = Field(default=None, alias="flowsAnalyzed", json_schema_extra={"examples": [1234567891011]}) - recommendation: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - risk_status: Optional[StrictStr] = Field(default=None, alias="riskStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - threat_score: Optional[StrictInt] = Field(default=None, alias="threatScore", json_schema_extra={"examples": [1234567891011]}) - __properties: ClassVar[List[str]] = ["affectedHosts", "affectedRegions", "affectedSites", "affectedVrfs", "appId", "appIdRecords", "appName", "appType", "category", "daClassified", "exchangeService", "flexAlgo", "flowsAnalyzed", "recommendation", "riskStatus", "threatScore"] + flows_analyzed: Optional[StrictInt] = Field(default=None, alias="flowsAnalyzed") + recommendation: Optional[StrictStr] = None + risk_status: Optional[StrictStr] = Field(default=None, alias="riskStatus") + threat_score: Optional[StrictInt] = Field(default=None, alias="threatScore") + __properties: ClassVar[List[str]] = ["affectedHosts", "affectedRegions", "affectedSites", "affectedVrfs", "appAiTag", "appId", "appIdRecords", "appName", "appType", "category", "daClassified", "exchangeService", "flexAlgo", "flowsAnalyzed", "recommendation", "riskStatus", "threatScore"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -62,7 +61,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -124,6 +124,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "affectedRegions": obj.get("affectedRegions"), "affectedSites": obj.get("affectedSites"), "affectedVrfs": obj.get("affectedVrfs"), + "appAiTag": obj.get("appAiTag"), "appId": obj.get("appId"), "appIdRecords": [AssuranceAppIdRecord.from_dict(_item) for _item in obj["appIdRecords"]] if obj.get("appIdRecords") is not None else None, "appName": obj.get("appName"), diff --git a/graphiant_sdk/models/assurance_application_profile_summary.py b/graphiant_sdk/models/assurance_application_profile_summary.py index f4417a70..235af9ec 100644 --- a/graphiant_sdk/models/assurance_application_profile_summary.py +++ b/graphiant_sdk/models/assurance_application_profile_summary.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_bucket_summary import AssuranceBucketSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceApplicationProfileSummary(BaseModel): """ @@ -32,8 +31,7 @@ class AssuranceApplicationProfileSummary(BaseModel): __properties: ClassVar[List[str]] = ["bucketSummaryList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_approved_app_entry.py b/graphiant_sdk/models/assurance_approved_app_entry.py new file mode 100644 index 00000000..38cfd52f --- /dev/null +++ b/graphiant_sdk/models/assurance_approved_app_entry.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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class AssuranceApprovedAppEntry(BaseModel): + """ + AssuranceApprovedAppEntry + """ # noqa: E501 + active_users: Optional[StrictInt] = Field(default=None, description="number of active users (required)", alias="activeUsers") + category: Optional[StrictStr] = Field(default=None, description="approved AI tool category (required)") + data_sent_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="data sent in kbps (required)", alias="dataSentKbps") + id: Optional[StrictStr] = Field(default=None, description="approved app entry identifier (required)") + tool: Optional[StrictStr] = Field(default=None, description="approved AI tool name (required)") + __properties: ClassVar[List[str]] = ["activeUsers", "category", "dataSentKbps", "id", "tool"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssuranceApprovedAppEntry 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 AssuranceApprovedAppEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "activeUsers": obj.get("activeUsers"), + "category": obj.get("category"), + "dataSentKbps": obj.get("dataSentKbps"), + "id": obj.get("id"), + "tool": obj.get("tool") + }) + return _obj + + diff --git a/graphiant_sdk/models/assurance_approved_app_entry_request.py b/graphiant_sdk/models/assurance_approved_app_entry_request.py new file mode 100644 index 00000000..f59fac51 --- /dev/null +++ b/graphiant_sdk/models/assurance_approved_app_entry_request.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 import Optional, Set +from typing_extensions import Self + +class AssuranceApprovedAppEntryRequest(BaseModel): + """ + AssuranceApprovedAppEntryRequest + """ # noqa: E501 + app_name: StrictStr = Field(description="app name to approve (required)", alias="appName") + domain: Optional[StrictStr] = Field(default=None, description="app name to approve") + id: Optional[StrictStr] = Field(default=None, description="approved app entry identifier") + tag_requested: StrictStr = Field(description="resulting tag, approved or shadow (required)", alias="tagRequested") + __properties: ClassVar[List[str]] = ["appName", "domain", "id", "tagRequested"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssuranceApprovedAppEntryRequest 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 AssuranceApprovedAppEntryRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "appName": obj.get("appName"), + "domain": obj.get("domain"), + "id": obj.get("id"), + "tagRequested": obj.get("tagRequested") + }) + return _obj + + diff --git a/graphiant_sdk/models/assurance_bucket_app.py b/graphiant_sdk/models/assurance_bucket_app.py index 398bb31e..ee0da763 100644 --- a/graphiant_sdk/models/assurance_bucket_app.py +++ b/graphiant_sdk/models/assurance_bucket_app.py @@ -23,23 +23,21 @@ from graphiant_sdk.models.assurance_flex_algo_identifier import AssuranceFlexAlgoIdentifier from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceBucketApp(BaseModel): """ AssuranceBucketApp """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - builtin_app_id: Optional[StrictInt] = Field(default=None, alias="builtinAppId", json_schema_extra={"examples": [1234567891011]}) - custom_app_id: Optional[StrictInt] = Field(default=None, alias="customAppId", json_schema_extra={"examples": [1234567891011]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + builtin_app_id: Optional[StrictInt] = Field(default=None, alias="builtinAppId") + custom_app_id: Optional[StrictInt] = Field(default=None, alias="customAppId") exchange_service: Optional[AssuranceExchangeServiceIdentifier] = Field(default=None, alias="exchangeService") flex_algo: Optional[AssuranceFlexAlgoIdentifier] = Field(default=None, alias="flexAlgo") - is_domain: Optional[StrictBool] = Field(default=None, alias="isDomain", json_schema_extra={"examples": [True]}) + is_domain: Optional[StrictBool] = Field(default=None, alias="isDomain") __properties: ClassVar[List[str]] = ["appName", "builtinAppId", "customAppId", "exchangeService", "flexAlgo", "isDomain"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_bucket_app_server.py b/graphiant_sdk/models/assurance_bucket_app_server.py index 7de60e7a..5bd98b16 100644 --- a/graphiant_sdk/models/assurance_bucket_app_server.py +++ b/graphiant_sdk/models/assurance_bucket_app_server.py @@ -21,22 +21,20 @@ 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 AssuranceBucketAppServer(BaseModel): """ AssuranceBucketAppServer """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey", json_schema_extra={"examples": ["example string"]}) - server_ip: Optional[StrictStr] = Field(default=None, alias="serverIp", json_schema_extra={"examples": ["example string"]}) - server_port: Optional[StrictStr] = Field(default=None, alias="serverPort", json_schema_extra={"examples": ["example string"]}) - server_protocol: Optional[StrictStr] = Field(default=None, alias="serverProtocol", json_schema_extra={"examples": ["example string"]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey") + server_ip: Optional[StrictStr] = Field(default=None, alias="serverIp") + server_port: Optional[StrictStr] = Field(default=None, alias="serverPort") + server_protocol: Optional[StrictStr] = Field(default=None, alias="serverProtocol") __properties: ClassVar[List[str]] = ["appName", "appServerKey", "serverIp", "serverPort", "serverProtocol"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_bucket_details.py b/graphiant_sdk/models/assurance_bucket_details.py index 284cfb82..de218a46 100644 --- a/graphiant_sdk/models/assurance_bucket_details.py +++ b/graphiant_sdk/models/assurance_bucket_details.py @@ -24,30 +24,28 @@ from graphiant_sdk.models.assurance_trend_value import AssuranceTrendValue from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceBucketDetails(BaseModel): """ AssuranceBucketDetails """ # noqa: E501 - app_count_threat_high: Optional[StrictInt] = Field(default=None, alias="appCountThreatHigh", json_schema_extra={"examples": [1234567891011]}) - app_count_threat_low: Optional[StrictInt] = Field(default=None, alias="appCountThreatLow", json_schema_extra={"examples": [1234567891011]}) - app_count_threat_medium: Optional[StrictInt] = Field(default=None, alias="appCountThreatMedium", json_schema_extra={"examples": [1234567891011]}) + app_count_threat_high: Optional[StrictInt] = Field(default=None, alias="appCountThreatHigh") + app_count_threat_low: Optional[StrictInt] = Field(default=None, alias="appCountThreatLow") + app_count_threat_medium: Optional[StrictInt] = Field(default=None, alias="appCountThreatMedium") app_id_records: Optional[List[AssuranceAppIdRecord]] = Field(default=None, alias="appIdRecords") app_name_records: Optional[List[AssuranceAppNameRecord]] = Field(default=None, alias="appNameRecords") - bucket_name_to_display: Optional[StrictStr] = Field(default=None, alias="bucketNameToDisplay", json_schema_extra={"examples": ["example string"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - display_ip_port: Optional[StrictBool] = Field(default=None, alias="displayIpPort", json_schema_extra={"examples": [True]}) - flow_count: Optional[StrictInt] = Field(default=None, alias="flowCount", json_schema_extra={"examples": [1234567891011]}) - new_ip_hint: Optional[StrictBool] = Field(default=None, alias="newIpHint", json_schema_extra={"examples": [True]}) - recommendation: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + bucket_name_to_display: Optional[StrictStr] = Field(default=None, alias="bucketNameToDisplay") + description: Optional[StrictStr] = None + display_ip_port: Optional[StrictBool] = Field(default=None, alias="displayIpPort") + flow_count: Optional[StrictInt] = Field(default=None, alias="flowCount") + new_ip_hint: Optional[StrictBool] = Field(default=None, alias="newIpHint") + recommendation: Optional[StrictStr] = None trend_value_list: Optional[List[AssuranceTrendValue]] = Field(default=None, alias="trendValueList") - unique_app_count: Optional[StrictInt] = Field(default=None, alias="uniqueAppCount", json_schema_extra={"examples": [1234567891011]}) + unique_app_count: Optional[StrictInt] = Field(default=None, alias="uniqueAppCount") __properties: ClassVar[List[str]] = ["appCountThreatHigh", "appCountThreatLow", "appCountThreatMedium", "appIdRecords", "appNameRecords", "bucketNameToDisplay", "description", "displayIpPort", "flowCount", "newIpHint", "recommendation", "trendValueList", "uniqueAppCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,7 +57,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_bucket_stats.py b/graphiant_sdk/models/assurance_bucket_stats.py index fe641104..6d5d2857 100644 --- a/graphiant_sdk/models/assurance_bucket_stats.py +++ b/graphiant_sdk/models/assurance_bucket_stats.py @@ -21,21 +21,19 @@ 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 AssuranceBucketStats(BaseModel): """ AssuranceBucketStats """ # noqa: E501 - prev_unique_app_count: Optional[StrictInt] = Field(default=None, alias="prevUniqueAppCount", json_schema_extra={"examples": [1234567891011]}) - prev_unique_threat_count: Optional[StrictInt] = Field(default=None, alias="prevUniqueThreatCount", json_schema_extra={"examples": [1234567891011]}) - unique_app_count: Optional[StrictInt] = Field(default=None, alias="uniqueAppCount", json_schema_extra={"examples": [1234567891011]}) - unique_threat_count: Optional[StrictInt] = Field(default=None, alias="uniqueThreatCount", json_schema_extra={"examples": [1234567891011]}) + prev_unique_app_count: Optional[StrictInt] = Field(default=None, alias="prevUniqueAppCount") + prev_unique_threat_count: Optional[StrictInt] = Field(default=None, alias="prevUniqueThreatCount") + unique_app_count: Optional[StrictInt] = Field(default=None, alias="uniqueAppCount") + unique_threat_count: Optional[StrictInt] = Field(default=None, alias="uniqueThreatCount") __properties: ClassVar[List[str]] = ["prevUniqueAppCount", "prevUniqueThreatCount", "uniqueAppCount", "uniqueThreatCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_bucket_stats_with_id.py b/graphiant_sdk/models/assurance_bucket_stats_with_id.py index 9a9d74fb..dccbde71 100644 --- a/graphiant_sdk/models/assurance_bucket_stats_with_id.py +++ b/graphiant_sdk/models/assurance_bucket_stats_with_id.py @@ -21,21 +21,19 @@ 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 AssuranceBucketStatsWithId(BaseModel): """ AssuranceBucketStatsWithId """ # noqa: E501 - assurance_bucket: Optional[StrictStr] = Field(default=None, alias="assuranceBucket", json_schema_extra={"examples": ["ENUM_VALUE"]}) - bucket_name_to_display: Optional[StrictStr] = Field(default=None, alias="bucketNameToDisplay", json_schema_extra={"examples": ["example string"]}) - prev_unique_app_count: Optional[StrictInt] = Field(default=None, alias="prevUniqueAppCount", json_schema_extra={"examples": [1234567891011]}) - unique_app_count: Optional[StrictInt] = Field(default=None, alias="uniqueAppCount", json_schema_extra={"examples": [1234567891011]}) + assurance_bucket: Optional[StrictStr] = Field(default=None, alias="assuranceBucket") + bucket_name_to_display: Optional[StrictStr] = Field(default=None, alias="bucketNameToDisplay") + prev_unique_app_count: Optional[StrictInt] = Field(default=None, alias="prevUniqueAppCount") + unique_app_count: Optional[StrictInt] = Field(default=None, alias="uniqueAppCount") __properties: ClassVar[List[str]] = ["assuranceBucket", "bucketNameToDisplay", "prevUniqueAppCount", "uniqueAppCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_bucket_summary.py b/graphiant_sdk/models/assurance_bucket_summary.py index a4e71091..d595e384 100644 --- a/graphiant_sdk/models/assurance_bucket_summary.py +++ b/graphiant_sdk/models/assurance_bucket_summary.py @@ -23,26 +23,24 @@ from graphiant_sdk.models.assurance_bucket_stats_with_id import AssuranceBucketStatsWithId from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceBucketSummary(BaseModel): """ AssuranceBucketSummary """ # noqa: E501 - assurance_bucket: Optional[StrictStr] = Field(default=None, alias="assuranceBucket", json_schema_extra={"examples": ["ENUM_VALUE"]}) - bucket_color: Optional[StrictStr] = Field(default=None, alias="bucketColor", json_schema_extra={"examples": ["ENUM_VALUE"]}) - bucket_name_to_display: Optional[StrictStr] = Field(default=None, alias="bucketNameToDisplay", json_schema_extra={"examples": ["example string"]}) + assurance_bucket: Optional[StrictStr] = Field(default=None, alias="assuranceBucket") + bucket_color: Optional[StrictStr] = Field(default=None, alias="bucketColor") + bucket_name_to_display: Optional[StrictStr] = Field(default=None, alias="bucketNameToDisplay") bucket_stats: Optional[AssuranceBucketStats] = Field(default=None, alias="bucketStats") child_bucket_list: Optional[List[StrictStr]] = Field(default=None, alias="childBucketList") child_bucket_stats_list: Optional[List[AssuranceBucketStatsWithId]] = Field(default=None, alias="childBucketStatsList") - is_root: Optional[StrictBool] = Field(default=None, alias="isRoot", json_schema_extra={"examples": [True]}) - is_terminal: Optional[StrictBool] = Field(default=None, alias="isTerminal", json_schema_extra={"examples": [True]}) + is_root: Optional[StrictBool] = Field(default=None, alias="isRoot") + is_terminal: Optional[StrictBool] = Field(default=None, alias="isTerminal") parent_bucket_list: Optional[List[StrictStr]] = Field(default=None, alias="parentBucketList") __properties: ClassVar[List[str]] = ["assuranceBucket", "bucketColor", "bucketNameToDisplay", "bucketStats", "childBucketList", "childBucketStatsList", "isRoot", "isTerminal", "parentBucketList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_classified_application.py b/graphiant_sdk/models/assurance_classified_application.py index 49e37960..d0c1c726 100644 --- a/graphiant_sdk/models/assurance_classified_application.py +++ b/graphiant_sdk/models/assurance_classified_application.py @@ -21,22 +21,20 @@ 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 AssuranceClassifiedApplication(BaseModel): """ AssuranceClassifiedApplication """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - classification_entry_id: Optional[StrictStr] = Field(default=None, alias="classificationEntryId", json_schema_extra={"examples": ["example string"]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + classification_entry_id: Optional[StrictStr] = Field(default=None, alias="classificationEntryId") ip_prefix_list: Optional[List[StrictStr]] = Field(default=None, alias="ipPrefixList") port_list: Optional[List[StrictStr]] = Field(default=None, alias="portList") protocol_list: Optional[List[StrictStr]] = Field(default=None, alias="protocolList") __properties: ClassVar[List[str]] = ["appName", "classificationEntryId", "ipPrefixList", "portList", "protocolList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_client_session.py b/graphiant_sdk/models/assurance_client_session.py index 8f9c7a04..20d5e759 100644 --- a/graphiant_sdk/models/assurance_client_session.py +++ b/graphiant_sdk/models/assurance_client_session.py @@ -26,40 +26,38 @@ 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 AssuranceClientSession(BaseModel): """ AssuranceClientSession """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - bucket: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + bucket: Optional[StrictStr] = None client_endpoint: Optional[AssuranceClientSessionEndpointDetails] = Field(default=None, alias="clientEndpoint") - client_flex_algo: Optional[StrictStr] = Field(default=None, alias="clientFlexAlgo", json_schema_extra={"examples": ["example string"]}) - client_ip: Optional[StrictStr] = Field(default=None, alias="clientIp", json_schema_extra={"examples": ["example string"]}) + 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", json_schema_extra={"examples": ["example string"]}) - exchange_service_name: Optional[StrictStr] = Field(default=None, alias="exchangeServiceName", json_schema_extra={"examples": ["example string"]}) + client_username: Optional[StrictStr] = Field(default=None, alias="clientUsername") + exchange_service_name: Optional[StrictStr] = Field(default=None, alias="exchangeServiceName") 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") local_dia_links: Optional[List[AssuranceClientSessionDiaLink]] = Field(default=None, alias="localDiaLinks") pop_links: Optional[List[AssuranceClientSessionPopLink]] = Field(default=None, alias="popLinks") remote_dia_links: Optional[List[AssuranceClientSessionDiaLink]] = Field(default=None, alias="remoteDiaLinks") - risk_status: Optional[StrictStr] = Field(default=None, alias="riskStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + risk_status: Optional[StrictStr] = Field(default=None, alias="riskStatus") server_endpoint: Optional[AssuranceClientSessionEndpointDetails] = Field(default=None, alias="serverEndpoint") server_flex_algos: Optional[List[StrictStr]] = Field(default=None, alias="serverFlexAlgos") - server_ip: Optional[StrictStr] = Field(default=None, alias="serverIp", json_schema_extra={"examples": ["example string"]}) + server_ip: Optional[StrictStr] = Field(default=None, alias="serverIp") server_links: Optional[List[AssuranceClientSessionEndpointLink]] = Field(default=None, alias="serverLinks") - server_port: Optional[StrictInt] = Field(default=None, alias="serverPort", json_schema_extra={"examples": [123]}) - session_id: Optional[StrictStr] = Field(default=None, alias="sessionId", json_schema_extra={"examples": ["example string"]}) - sla: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass", json_schema_extra={"examples": ["example string"]}) + server_port: Optional[StrictInt] = Field(default=None, alias="serverPort") + 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", "clientUsername", "exchangeServiceName", "firstSeenTs", "lanSegment", "lastSeenTs", "localDiaLinks", "popLinks", "remoteDiaLinks", "riskStatus", "serverEndpoint", "serverFlexAlgos", "serverIp", "serverLinks", "serverPort", "sessionId", "sla", "slaClass"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -71,7 +69,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_client_session_dia_link.py b/graphiant_sdk/models/assurance_client_session_dia_link.py index bdd492af..28537581 100644 --- a/graphiant_sdk/models/assurance_client_session_dia_link.py +++ b/graphiant_sdk/models/assurance_client_session_dia_link.py @@ -21,18 +21,16 @@ 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 AssuranceClientSessionDiaLink(BaseModel): """ AssuranceClientSessionDiaLink """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") __properties: ClassVar[List[str]] = ["circuitName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_client_session_endpoint_details.py b/graphiant_sdk/models/assurance_client_session_endpoint_details.py index 63054be5..c3b0992f 100644 --- a/graphiant_sdk/models/assurance_client_session_endpoint_details.py +++ b/graphiant_sdk/models/assurance_client_session_endpoint_details.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.assurance_site import AssuranceSite from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceClientSessionEndpointDetails(BaseModel): """ @@ -32,18 +31,17 @@ class AssuranceClientSessionEndpointDetails(BaseModel): """ # noqa: E501 circuits: Optional[List[StrictStr]] = None edges: Optional[List[AssuranceEdge]] = None - is_gateway: Optional[StrictBool] = Field(default=None, alias="isGateway", json_schema_extra={"examples": [True]}) + is_gateway: Optional[StrictBool] = Field(default=None, alias="isGateway") jitter: Optional[AssuranceClientSessionEndpointDetailsStatistics] = None latency: Optional[AssuranceClientSessionEndpointDetailsStatistics] = None loss: Optional[AssuranceClientSessionEndpointDetailsStatistics] = None site: Optional[AssuranceSite] = None - total_downlink_usage: Optional[StrictInt] = Field(default=None, alias="totalDownlinkUsage", json_schema_extra={"examples": [1234567891011]}) - total_uplink_usage: Optional[StrictInt] = Field(default=None, alias="totalUplinkUsage", json_schema_extra={"examples": [1234567891011]}) + total_downlink_usage: Optional[StrictInt] = Field(default=None, alias="totalDownlinkUsage") + total_uplink_usage: Optional[StrictInt] = Field(default=None, alias="totalUplinkUsage") __properties: ClassVar[List[str]] = ["circuits", "edges", "isGateway", "jitter", "latency", "loss", "site", "totalDownlinkUsage", "totalUplinkUsage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,7 +53,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_client_session_endpoint_details_statistics.py b/graphiant_sdk/models/assurance_client_session_endpoint_details_statistics.py index 4185d076..31916559 100644 --- a/graphiant_sdk/models/assurance_client_session_endpoint_details_statistics.py +++ b/graphiant_sdk/models/assurance_client_session_endpoint_details_statistics.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +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 AssuranceClientSessionEndpointDetailsStatistics(BaseModel): """ AssuranceClientSessionEndpointDetailsStatistics """ # noqa: E501 - avg: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - max: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - min: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) + avg: Optional[Union[StrictFloat, StrictInt]] = None + max: Optional[Union[StrictFloat, StrictInt]] = None + min: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["avg", "max", "min"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_client_session_endpoint_link.py b/graphiant_sdk/models/assurance_client_session_endpoint_link.py index 768dd144..be6a321e 100644 --- a/graphiant_sdk/models/assurance_client_session_endpoint_link.py +++ b/graphiant_sdk/models/assurance_client_session_endpoint_link.py @@ -21,22 +21,20 @@ 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 AssuranceClientSessionEndpointLink(BaseModel): """ AssuranceClientSessionEndpointLink """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) - jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - pop_name: Optional[StrictStr] = Field(default=None, alias="popName", json_schema_extra={"examples": ["example string"]}) + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + jitter: Optional[Union[StrictFloat, StrictInt]] = None + latency: Optional[Union[StrictFloat, StrictInt]] = None + loss: Optional[Union[StrictFloat, StrictInt]] = None + pop_name: Optional[StrictStr] = Field(default=None, alias="popName") __properties: ClassVar[List[str]] = ["circuitName", "jitter", "latency", "loss", "popName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_client_session_pop_link.py b/graphiant_sdk/models/assurance_client_session_pop_link.py index 0d462c1d..84cfd0ae 100644 --- a/graphiant_sdk/models/assurance_client_session_pop_link.py +++ b/graphiant_sdk/models/assurance_client_session_pop_link.py @@ -21,22 +21,20 @@ 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 AssuranceClientSessionPopLink(BaseModel): """ AssuranceClientSessionPopLink """ # noqa: E501 - first_pop_name: Optional[StrictStr] = Field(default=None, alias="firstPopName", json_schema_extra={"examples": ["example string"]}) - jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - second_pop_name: Optional[StrictStr] = Field(default=None, alias="secondPopName", json_schema_extra={"examples": ["example string"]}) + first_pop_name: Optional[StrictStr] = Field(default=None, alias="firstPopName") + jitter: Optional[Union[StrictFloat, StrictInt]] = None + latency: Optional[Union[StrictFloat, StrictInt]] = None + loss: Optional[Union[StrictFloat, StrictInt]] = None + second_pop_name: Optional[StrictStr] = Field(default=None, alias="secondPopName") __properties: ClassVar[List[str]] = ["firstPopName", "jitter", "latency", "loss", "secondPopName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_dns_proxy_entry.py b/graphiant_sdk/models/assurance_dns_proxy_entry.py index 637563b1..2adcda30 100644 --- a/graphiant_sdk/models/assurance_dns_proxy_entry.py +++ b/graphiant_sdk/models/assurance_dns_proxy_entry.py @@ -21,23 +21,21 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceDnsProxyEntry(BaseModel): """ AssuranceDnsProxyEntry """ # noqa: E501 - dnsproxy_entry_id: StrictStr = Field(description="dns proxy table entry id (required)", alias="dnsproxyEntryId", json_schema_extra={"examples": ["example string"]}) + dnsproxy_entry_id: StrictStr = Field(description="dns proxy table entry id (required)", alias="dnsproxyEntryId") ip_list: List[StrictStr] = Field(alias="ipList") - name: StrictStr = Field(description="name of the entry (required)", json_schema_extra={"examples": ["DNSPROXY_EXCEPTION_DNS"]}) - name_text: StrictStr = Field(description="user defined name of the record (required)", alias="nameText", json_schema_extra={"examples": ["example string"]}) + name: StrictStr = Field(description="name of the entry (required)") + name_text: StrictStr = Field(description="user defined name of the record (required)", alias="nameText") port_list: List[StrictStr] = Field(alias="portList") - protocol: StrictStr = Field(description="protocol to exclude (required)", json_schema_extra={"examples": ["example string"]}) + protocol: StrictStr = Field(description="protocol to exclude (required)") __properties: ClassVar[List[str]] = ["dnsproxyEntryId", "ipList", "name", "nameText", "portList", "protocol"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_edge.py b/graphiant_sdk/models/assurance_edge.py index 9f1da07b..51f7b57e 100644 --- a/graphiant_sdk/models/assurance_edge.py +++ b/graphiant_sdk/models/assurance_edge.py @@ -21,19 +21,17 @@ 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 AssuranceEdge(BaseModel): """ AssuranceEdge """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") __properties: ClassVar[List[str]] = ["deviceId", "deviceName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_enterprise_summary.py b/graphiant_sdk/models/assurance_enterprise_summary.py index 796ccdfd..0903c432 100644 --- a/graphiant_sdk/models/assurance_enterprise_summary.py +++ b/graphiant_sdk/models/assurance_enterprise_summary.py @@ -21,23 +21,21 @@ 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 AssuranceEnterpriseSummary(BaseModel): """ AssuranceEnterpriseSummary """ # noqa: E501 - flows_analyzed: Optional[StrictInt] = Field(default=None, alias="flowsAnalyzed", json_schema_extra={"examples": [1234567891011]}) - gap_score: Optional[StrictInt] = Field(default=None, alias="gapScore", json_schema_extra={"examples": [1234567891011]}) - prev_gap_score: Optional[StrictInt] = Field(default=None, alias="prevGapScore", json_schema_extra={"examples": [1234567891011]}) - risk_bin: Optional[StrictInt] = Field(default=None, alias="riskBin", json_schema_extra={"examples": [1234567891011]}) - threat_count: Optional[StrictInt] = Field(default=None, alias="threatCount", json_schema_extra={"examples": [1234567891011]}) - unique_apps_count: Optional[StrictInt] = Field(default=None, alias="uniqueAppsCount", json_schema_extra={"examples": [1234567891011]}) + flows_analyzed: Optional[StrictInt] = Field(default=None, alias="flowsAnalyzed") + gap_score: Optional[StrictInt] = Field(default=None, alias="gapScore") + prev_gap_score: Optional[StrictInt] = Field(default=None, alias="prevGapScore") + risk_bin: Optional[StrictInt] = Field(default=None, alias="riskBin") + threat_count: Optional[StrictInt] = Field(default=None, alias="threatCount") + unique_apps_count: Optional[StrictInt] = Field(default=None, alias="uniqueAppsCount") __properties: ClassVar[List[str]] = ["flowsAnalyzed", "gapScore", "prevGapScore", "riskBin", "threatCount", "uniqueAppsCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_exchange_service_identifier.py b/graphiant_sdk/models/assurance_exchange_service_identifier.py index 436e0b5c..5b849097 100644 --- a/graphiant_sdk/models/assurance_exchange_service_identifier.py +++ b/graphiant_sdk/models/assurance_exchange_service_identifier.py @@ -21,19 +21,17 @@ 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 AssuranceExchangeServiceIdentifier(BaseModel): """ AssuranceExchangeServiceIdentifier """ # noqa: E501 - exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId", json_schema_extra={"examples": [1234567891011]}) - exchange_service_name: Optional[StrictStr] = Field(default=None, alias="exchangeServiceName", json_schema_extra={"examples": ["example string"]}) + exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId") + exchange_service_name: Optional[StrictStr] = Field(default=None, alias="exchangeServiceName") __properties: ClassVar[List[str]] = ["exchangeServiceId", "exchangeServiceName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_flex_algo_identifier.py b/graphiant_sdk/models/assurance_flex_algo_identifier.py index 21e11320..9c5371f3 100644 --- a/graphiant_sdk/models/assurance_flex_algo_identifier.py +++ b/graphiant_sdk/models/assurance_flex_algo_identifier.py @@ -21,19 +21,17 @@ 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 AssuranceFlexAlgoIdentifier(BaseModel): """ AssuranceFlexAlgoIdentifier """ # noqa: E501 - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId", json_schema_extra={"examples": [1234567891011]}) - flex_algo_name: Optional[StrictStr] = Field(default=None, alias="flexAlgoName", json_schema_extra={"examples": ["example string"]}) + flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") + flex_algo_name: Optional[StrictStr] = Field(default=None, alias="flexAlgoName") __properties: ClassVar[List[str]] = ["flexAlgoId", "flexAlgoName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_geolocation.py b/graphiant_sdk/models/assurance_geolocation.py index e6713539..a4f2a512 100644 --- a/graphiant_sdk/models/assurance_geolocation.py +++ b/graphiant_sdk/models/assurance_geolocation.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +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 AssuranceGeolocation(BaseModel): """ AssuranceGeolocation """ # noqa: E501 - lat: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - long: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) + lat: Optional[Union[StrictFloat, StrictInt]] = None + long: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["lat", "long"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_kpi_metric.py b/graphiant_sdk/models/assurance_kpi_metric.py new file mode 100644 index 00000000..6f0df8b3 --- /dev/null +++ b/graphiant_sdk/models/assurance_kpi_metric.py @@ -0,0 +1,97 @@ +# 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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class AssuranceKpiMetric(BaseModel): + """ + AssuranceKpiMetric + """ # noqa: E501 + delta: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="delta value for the metric") + name: Optional[StrictStr] = Field(default=None, description="name of the metric") + percent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="AI adoption percent for the metric") + tag: Optional[StrictStr] = Field(default=None, description="AI adoption tag for the metric") + token_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="AI adoption token usage value", alias="tokenUsage") + value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="metric value (required)") + __properties: ClassVar[List[str]] = ["delta", "name", "percent", "tag", "tokenUsage", "value"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssuranceKpiMetric 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 AssuranceKpiMetric from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "delta": obj.get("delta"), + "name": obj.get("name"), + "percent": obj.get("percent"), + "tag": obj.get("tag"), + "tokenUsage": obj.get("tokenUsage"), + "value": obj.get("value") + }) + return _obj + + diff --git a/graphiant_sdk/models/assurance_region.py b/graphiant_sdk/models/assurance_region.py index ffe9210f..0b59eddf 100644 --- a/graphiant_sdk/models/assurance_region.py +++ b/graphiant_sdk/models/assurance_region.py @@ -21,20 +21,18 @@ 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 AssuranceRegion(BaseModel): """ AssuranceRegion """ # noqa: E501 - region_id: Optional[StrictInt] = Field(default=None, alias="regionId", json_schema_extra={"examples": [123]}) - region_iso_code: Optional[StrictStr] = Field(default=None, alias="regionIsoCode", json_schema_extra={"examples": ["example string"]}) - region_name: Optional[StrictStr] = Field(default=None, alias="regionName", json_schema_extra={"examples": ["example string"]}) + 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", "regionIsoCode", "regionName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_score_bucket_count.py b/graphiant_sdk/models/assurance_score_bucket_count.py index fcc128f2..bd8598c4 100644 --- a/graphiant_sdk/models/assurance_score_bucket_count.py +++ b/graphiant_sdk/models/assurance_score_bucket_count.py @@ -21,20 +21,18 @@ 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 AssuranceScoreBucketCount(BaseModel): """ AssuranceScoreBucketCount """ # noqa: E501 - curr_score: Optional[StrictInt] = Field(default=None, alias="currScore", json_schema_extra={"examples": [1234567891011]}) - max_score: Optional[StrictInt] = Field(default=None, alias="maxScore", json_schema_extra={"examples": [1234567891011]}) - score_bucket_id: Optional[StrictStr] = Field(default=None, alias="scoreBucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) + curr_score: Optional[StrictInt] = Field(default=None, alias="currScore") + max_score: Optional[StrictInt] = Field(default=None, alias="maxScore") + score_bucket_id: Optional[StrictStr] = Field(default=None, alias="scoreBucketId") __properties: ClassVar[List[str]] = ["currScore", "maxScore", "scoreBucketId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_score_details.py b/graphiant_sdk/models/assurance_score_details.py index cc7b0e55..ce087ef8 100644 --- a/graphiant_sdk/models/assurance_score_details.py +++ b/graphiant_sdk/models/assurance_score_details.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_score_bucket_count import AssuranceScoreBucketCount from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceScoreDetails(BaseModel): """ @@ -32,8 +31,7 @@ class AssuranceScoreDetails(BaseModel): __properties: ClassVar[List[str]] = ["scoreBucketList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_site.py b/graphiant_sdk/models/assurance_site.py index 238e70de..aef6ed29 100644 --- a/graphiant_sdk/models/assurance_site.py +++ b/graphiant_sdk/models/assurance_site.py @@ -21,21 +21,19 @@ 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 AssuranceSite(BaseModel): """ AssuranceSite """ # noqa: E501 - region_id: Optional[StrictInt] = Field(default=None, alias="regionId", json_schema_extra={"examples": [123]}) - site_enterprise_name: Optional[StrictStr] = Field(default=None, alias="siteEnterpriseName", json_schema_extra={"examples": ["example string"]}) - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) + region_id: Optional[StrictInt] = Field(default=None, alias="regionId") + site_enterprise_name: Optional[StrictStr] = Field(default=None, alias="siteEnterpriseName") + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") __properties: ClassVar[List[str]] = ["regionId", "siteEnterpriseName", "siteId", "siteName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_time_window.py b/graphiant_sdk/models/assurance_time_window.py index 3f84cdaa..b7489158 100644 --- a/graphiant_sdk/models/assurance_time_window.py +++ b/graphiant_sdk/models/assurance_time_window.py @@ -23,20 +23,18 @@ 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 AssuranceTimeWindow(BaseModel): """ AssuranceTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") __properties: ClassVar[List[str]] = ["bucketSizeSec", "oldTs", "recentTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_top_level_kpi.py b/graphiant_sdk/models/assurance_top_level_kpi.py new file mode 100644 index 00000000..5d3fa287 --- /dev/null +++ b/graphiant_sdk/models/assurance_top_level_kpi.py @@ -0,0 +1,106 @@ +# 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.assurance_kpi_metric import AssuranceKpiMetric +from typing import Optional, Set +from typing_extensions import Self + +class AssuranceTopLevelKpi(BaseModel): + """ + AssuranceTopLevelKpi + """ # noqa: E501 + data_transferred_kbps_metric: Optional[AssuranceKpiMetric] = Field(default=None, alias="dataTransferredKbpsMetric") + shadow_ai_tools_metric: Optional[AssuranceKpiMetric] = Field(default=None, alias="shadowAiToolsMetric") + tools_metric: Optional[AssuranceKpiMetric] = Field(default=None, alias="toolsMetric") + users_metric: Optional[AssuranceKpiMetric] = Field(default=None, alias="usersMetric") + __properties: ClassVar[List[str]] = ["dataTransferredKbpsMetric", "shadowAiToolsMetric", "toolsMetric", "usersMetric"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssuranceTopLevelKpi 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 data_transferred_kbps_metric + if self.data_transferred_kbps_metric: + _dict['dataTransferredKbpsMetric'] = self.data_transferred_kbps_metric.to_dict() + # override the default output from pydantic by calling `to_dict()` of shadow_ai_tools_metric + if self.shadow_ai_tools_metric: + _dict['shadowAiToolsMetric'] = self.shadow_ai_tools_metric.to_dict() + # override the default output from pydantic by calling `to_dict()` of tools_metric + if self.tools_metric: + _dict['toolsMetric'] = self.tools_metric.to_dict() + # override the default output from pydantic by calling `to_dict()` of users_metric + if self.users_metric: + _dict['usersMetric'] = self.users_metric.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssuranceTopLevelKpi from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataTransferredKbpsMetric": AssuranceKpiMetric.from_dict(obj["dataTransferredKbpsMetric"]) if obj.get("dataTransferredKbpsMetric") is not None else None, + "shadowAiToolsMetric": AssuranceKpiMetric.from_dict(obj["shadowAiToolsMetric"]) if obj.get("shadowAiToolsMetric") is not None else None, + "toolsMetric": AssuranceKpiMetric.from_dict(obj["toolsMetric"]) if obj.get("toolsMetric") is not None else None, + "usersMetric": AssuranceKpiMetric.from_dict(obj["usersMetric"]) if obj.get("usersMetric") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/assurance_topology.py b/graphiant_sdk/models/assurance_topology.py index af5451d0..fa598278 100644 --- a/graphiant_sdk/models/assurance_topology.py +++ b/graphiant_sdk/models/assurance_topology.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.assurance_topology_path import AssuranceTopologyPath from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceTopology(BaseModel): """ @@ -36,8 +35,7 @@ class AssuranceTopology(BaseModel): __properties: ClassVar[List[str]] = ["edges", "nodes", "paths"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_topology_edge.py b/graphiant_sdk/models/assurance_topology_edge.py index 474b60c5..f3467fc2 100644 --- a/graphiant_sdk/models/assurance_topology_edge.py +++ b/graphiant_sdk/models/assurance_topology_edge.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.assurance_topology_edge_link_performance import AssuranceTopologyEdgeLinkPerformance from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceTopologyEdge(BaseModel): """ AssuranceTopologyEdge """ # noqa: E501 - destination_node_id: Optional[StrictStr] = Field(default=None, alias="destinationNodeId", json_schema_extra={"examples": ["example string"]}) + destination_node_id: Optional[StrictStr] = Field(default=None, alias="destinationNodeId") performance: Optional[List[AssuranceTopologyEdgeLinkPerformance]] = None - source_node_id: Optional[StrictStr] = Field(default=None, alias="sourceNodeId", json_schema_extra={"examples": ["example string"]}) + source_node_id: Optional[StrictStr] = Field(default=None, alias="sourceNodeId") __properties: ClassVar[List[str]] = ["destinationNodeId", "performance", "sourceNodeId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_topology_edge_link_performance.py b/graphiant_sdk/models/assurance_topology_edge_link_performance.py index d0f8a43a..f6c96306 100644 --- a/graphiant_sdk/models/assurance_topology_edge_link_performance.py +++ b/graphiant_sdk/models/assurance_topology_edge_link_performance.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +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 AssuranceTopologyEdgeLinkPerformance(BaseModel): """ AssuranceTopologyEdgeLinkPerformance """ # noqa: E501 - jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) + jitter: Optional[Union[StrictFloat, StrictInt]] = None + latency: Optional[Union[StrictFloat, StrictInt]] = None + loss: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["jitter", "latency", "loss"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_topology_filter.py b/graphiant_sdk/models/assurance_topology_filter.py index f91bb38d..3ed468ba 100644 --- a/graphiant_sdk/models/assurance_topology_filter.py +++ b/graphiant_sdk/models/assurance_topology_filter.py @@ -21,7 +21,6 @@ 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 AssuranceTopologyFilter(BaseModel): """ @@ -33,8 +32,7 @@ class AssuranceTopologyFilter(BaseModel): __properties: ClassVar[List[str]] = ["clientSiteIds", "regionIds", "serverSiteIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_topology_node.py b/graphiant_sdk/models/assurance_topology_node.py index 0a74197c..aa6d65dc 100644 --- a/graphiant_sdk/models/assurance_topology_node.py +++ b/graphiant_sdk/models/assurance_topology_node.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.assurance_geolocation import AssuranceGeolocation from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AssuranceTopologyNode(BaseModel): """ AssuranceTopologyNode """ # noqa: E501 - active: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + active: Optional[StrictBool] = None location: Optional[AssuranceGeolocation] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - node_id: Optional[StrictStr] = Field(default=None, alias="nodeId", json_schema_extra={"examples": ["example string"]}) - node_type: Optional[StrictStr] = Field(default=None, alias="nodeType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + name: Optional[StrictStr] = None + node_id: Optional[StrictStr] = Field(default=None, alias="nodeId") + node_type: Optional[StrictStr] = Field(default=None, alias="nodeType") __properties: ClassVar[List[str]] = ["active", "location", "name", "nodeId", "nodeType"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_topology_path.py b/graphiant_sdk/models/assurance_topology_path.py index 3ab3fc4b..aedf4ec0 100644 --- a/graphiant_sdk/models/assurance_topology_path.py +++ b/graphiant_sdk/models/assurance_topology_path.py @@ -21,7 +21,6 @@ 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 AssuranceTopologyPath(BaseModel): """ @@ -31,8 +30,7 @@ class AssuranceTopologyPath(BaseModel): __properties: ClassVar[List[str]] = ["nodeIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_trend_value.py b/graphiant_sdk/models/assurance_trend_value.py index ed365056..5380b4de 100644 --- a/graphiant_sdk/models/assurance_trend_value.py +++ b/graphiant_sdk/models/assurance_trend_value.py @@ -21,20 +21,18 @@ 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 AssuranceTrendValue(BaseModel): """ AssuranceTrendValue """ # noqa: E501 - end_time: Optional[StrictInt] = Field(default=None, alias="endTime", json_schema_extra={"examples": [1234567891011]}) - flow_count: Optional[StrictInt] = Field(default=None, alias="flowCount", json_schema_extra={"examples": [1234567891011]}) - start_time: Optional[StrictInt] = Field(default=None, alias="startTime", json_schema_extra={"examples": [1234567891011]}) + end_time: Optional[StrictInt] = Field(default=None, alias="endTime") + flow_count: Optional[StrictInt] = Field(default=None, alias="flowCount") + start_time: Optional[StrictInt] = Field(default=None, alias="startTime") __properties: ClassVar[List[str]] = ["endTime", "flowCount", "startTime"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_user_definition.py b/graphiant_sdk/models/assurance_user_definition.py new file mode 100644 index 00000000..31f039fa --- /dev/null +++ b/graphiant_sdk/models/assurance_user_definition.py @@ -0,0 +1,99 @@ +# 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, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class AssuranceUserDefinition(BaseModel): + """ + AssuranceUserDefinition + """ # noqa: E501 + data_sent: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="tokens sent by the user (required)", alias="dataSent") + managed: Optional[StrictBool] = Field(default=None, description="whether the user is managed (required)") + sessions_day: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="daily sessions for the user (required)", alias="sessionsDay") + tokens_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="token usage (required)", alias="tokensUsage") + tokens_usage_days: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="token usage per day (required)", alias="tokensUsageDays") + user: Optional[StrictStr] = Field(default=None, description="user identifier (required)") + vrf: Optional[StrictStr] = Field(default=None, description="VRF associated with the user (required)") + __properties: ClassVar[List[str]] = ["dataSent", "managed", "sessionsDay", "tokensUsage", "tokensUsageDays", "user", "vrf"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssuranceUserDefinition 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 AssuranceUserDefinition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dataSent": obj.get("dataSent"), + "managed": obj.get("managed"), + "sessionsDay": obj.get("sessionsDay"), + "tokensUsage": obj.get("tokensUsage"), + "tokensUsageDays": obj.get("tokensUsageDays"), + "user": obj.get("user"), + "vrf": obj.get("vrf") + }) + return _obj + + diff --git a/graphiant_sdk/models/assurance_user_report.py b/graphiant_sdk/models/assurance_user_report.py index 80dd06ef..5710d8f4 100644 --- a/graphiant_sdk/models/assurance_user_report.py +++ b/graphiant_sdk/models/assurance_user_report.py @@ -21,25 +21,23 @@ 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 AssuranceUserReport(BaseModel): """ AssuranceUserReport """ # noqa: E501 created_by: Optional[List[StrictStr]] = Field(default=None, alias="createdBy") - created_on: Optional[StrictInt] = Field(default=None, alias="createdOn", json_schema_extra={"examples": [1234567891011]}) + created_on: Optional[StrictInt] = Field(default=None, alias="createdOn") email_list: Optional[List[StrictStr]] = Field(default=None, alias="emailList") - enterprise_id: Optional[StrictStr] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": ["example string"]}) - report_id: Optional[StrictInt] = Field(default=None, alias="reportId", json_schema_extra={"examples": [1234567891011]}) - report_name: Optional[StrictStr] = Field(default=None, alias="reportName", json_schema_extra={"examples": ["example string"]}) - report_type: Optional[StrictStr] = Field(default=None, alias="reportType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - time_period: Optional[StrictStr] = Field(default=None, alias="timePeriod", json_schema_extra={"examples": ["ENUM_VALUE"]}) + enterprise_id: Optional[StrictStr] = Field(default=None, alias="enterpriseId") + report_id: Optional[StrictInt] = Field(default=None, alias="reportId") + report_name: Optional[StrictStr] = Field(default=None, alias="reportName") + report_type: Optional[StrictStr] = Field(default=None, alias="reportType") + time_period: Optional[StrictStr] = Field(default=None, alias="timePeriod") __properties: ClassVar[List[str]] = ["createdBy", "createdOn", "emailList", "enterpriseId", "reportId", "reportName", "reportType", "timePeriod"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/assurance_what_widget.py b/graphiant_sdk/models/assurance_what_widget.py new file mode 100644 index 00000000..a7d15cc7 --- /dev/null +++ b/graphiant_sdk/models/assurance_what_widget.py @@ -0,0 +1,113 @@ +# 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.assurance_kpi_metric import AssuranceKpiMetric +from typing import Optional, Set +from typing_extensions import Self + +class AssuranceWhatWidget(BaseModel): + """ + AssuranceWhatWidget + """ # noqa: E501 + bubble_categories: Optional[List[AssuranceKpiMetric]] = Field(default=None, alias="bubbleCategories") + top_tools_by_active_users: Optional[List[AssuranceKpiMetric]] = Field(default=None, alias="topToolsByActiveUsers") + top_tools_by_data_transferred: Optional[List[AssuranceKpiMetric]] = Field(default=None, alias="topToolsByDataTransferred") + __properties: ClassVar[List[str]] = ["bubbleCategories", "topToolsByActiveUsers", "topToolsByDataTransferred"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssuranceWhatWidget 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 bubble_categories (list) + _items = [] + if self.bubble_categories: + for _item_bubble_categories in self.bubble_categories: + if _item_bubble_categories: + _items.append(_item_bubble_categories.to_dict()) + _dict['bubbleCategories'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in top_tools_by_active_users (list) + _items = [] + if self.top_tools_by_active_users: + for _item_top_tools_by_active_users in self.top_tools_by_active_users: + if _item_top_tools_by_active_users: + _items.append(_item_top_tools_by_active_users.to_dict()) + _dict['topToolsByActiveUsers'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in top_tools_by_data_transferred (list) + _items = [] + if self.top_tools_by_data_transferred: + for _item_top_tools_by_data_transferred in self.top_tools_by_data_transferred: + if _item_top_tools_by_data_transferred: + _items.append(_item_top_tools_by_data_transferred.to_dict()) + _dict['topToolsByDataTransferred'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssuranceWhatWidget from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bubbleCategories": [AssuranceKpiMetric.from_dict(_item) for _item in obj["bubbleCategories"]] if obj.get("bubbleCategories") is not None else None, + "topToolsByActiveUsers": [AssuranceKpiMetric.from_dict(_item) for _item in obj["topToolsByActiveUsers"]] if obj.get("topToolsByActiveUsers") is not None else None, + "topToolsByDataTransferred": [AssuranceKpiMetric.from_dict(_item) for _item in obj["topToolsByDataTransferred"]] if obj.get("topToolsByDataTransferred") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/assurance_when_widget.py b/graphiant_sdk/models/assurance_when_widget.py new file mode 100644 index 00000000..662b1226 --- /dev/null +++ b/graphiant_sdk/models/assurance_when_widget.py @@ -0,0 +1,122 @@ +# 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.assurance_kpi_metric import AssuranceKpiMetric +from typing import Optional, Set +from typing_extensions import Self + +class AssuranceWhenWidget(BaseModel): + """ + AssuranceWhenWidget + """ # noqa: E501 + day_of_week: Optional[List[AssuranceKpiMetric]] = Field(default=None, alias="dayOfWeek") + hour_of_day: Optional[List[AssuranceKpiMetric]] = Field(default=None, alias="hourOfDay") + monthly_active_users: Optional[List[AssuranceKpiMetric]] = Field(default=None, alias="monthlyActiveUsers") + monthly_bandwidth_transferred: Optional[List[AssuranceKpiMetric]] = Field(default=None, alias="monthlyBandwidthTransferred") + __properties: ClassVar[List[str]] = ["dayOfWeek", "hourOfDay", "monthlyActiveUsers", "monthlyBandwidthTransferred"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssuranceWhenWidget 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 day_of_week (list) + _items = [] + if self.day_of_week: + for _item_day_of_week in self.day_of_week: + if _item_day_of_week: + _items.append(_item_day_of_week.to_dict()) + _dict['dayOfWeek'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in hour_of_day (list) + _items = [] + if self.hour_of_day: + for _item_hour_of_day in self.hour_of_day: + if _item_hour_of_day: + _items.append(_item_hour_of_day.to_dict()) + _dict['hourOfDay'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in monthly_active_users (list) + _items = [] + if self.monthly_active_users: + for _item_monthly_active_users in self.monthly_active_users: + if _item_monthly_active_users: + _items.append(_item_monthly_active_users.to_dict()) + _dict['monthlyActiveUsers'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in monthly_bandwidth_transferred (list) + _items = [] + if self.monthly_bandwidth_transferred: + for _item_monthly_bandwidth_transferred in self.monthly_bandwidth_transferred: + if _item_monthly_bandwidth_transferred: + _items.append(_item_monthly_bandwidth_transferred.to_dict()) + _dict['monthlyBandwidthTransferred'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssuranceWhenWidget from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "dayOfWeek": [AssuranceKpiMetric.from_dict(_item) for _item in obj["dayOfWeek"]] if obj.get("dayOfWeek") is not None else None, + "hourOfDay": [AssuranceKpiMetric.from_dict(_item) for _item in obj["hourOfDay"]] if obj.get("hourOfDay") is not None else None, + "monthlyActiveUsers": [AssuranceKpiMetric.from_dict(_item) for _item in obj["monthlyActiveUsers"]] if obj.get("monthlyActiveUsers") is not None else None, + "monthlyBandwidthTransferred": [AssuranceKpiMetric.from_dict(_item) for _item in obj["monthlyBandwidthTransferred"]] if obj.get("monthlyBandwidthTransferred") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/assurance_where_widget.py b/graphiant_sdk/models/assurance_where_widget.py new file mode 100644 index 00000000..9bff5ae2 --- /dev/null +++ b/graphiant_sdk/models/assurance_where_widget.py @@ -0,0 +1,114 @@ +# 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.assurance_kpi_metric import AssuranceKpiMetric +from graphiant_sdk.models.assurance_user_definition import AssuranceUserDefinition +from typing import Optional, Set +from typing_extensions import Self + +class AssuranceWhereWidget(BaseModel): + """ + AssuranceWhereWidget + """ # noqa: E501 + top_sites_by_users: Optional[List[AssuranceKpiMetric]] = Field(default=None, alias="topSitesByUsers") + top_users_by_data_transferred: Optional[List[AssuranceUserDefinition]] = Field(default=None, alias="topUsersByDataTransferred") + top_vrfs_by_users: Optional[List[AssuranceKpiMetric]] = Field(default=None, alias="topVrfsByUsers") + __properties: ClassVar[List[str]] = ["topSitesByUsers", "topUsersByDataTransferred", "topVrfsByUsers"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AssuranceWhereWidget 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 top_sites_by_users (list) + _items = [] + if self.top_sites_by_users: + for _item_top_sites_by_users in self.top_sites_by_users: + if _item_top_sites_by_users: + _items.append(_item_top_sites_by_users.to_dict()) + _dict['topSitesByUsers'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in top_users_by_data_transferred (list) + _items = [] + if self.top_users_by_data_transferred: + for _item_top_users_by_data_transferred in self.top_users_by_data_transferred: + if _item_top_users_by_data_transferred: + _items.append(_item_top_users_by_data_transferred.to_dict()) + _dict['topUsersByDataTransferred'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in top_vrfs_by_users (list) + _items = [] + if self.top_vrfs_by_users: + for _item_top_vrfs_by_users in self.top_vrfs_by_users: + if _item_top_vrfs_by_users: + _items.append(_item_top_vrfs_by_users.to_dict()) + _dict['topVrfsByUsers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AssuranceWhereWidget from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "topSitesByUsers": [AssuranceKpiMetric.from_dict(_item) for _item in obj["topSitesByUsers"]] if obj.get("topSitesByUsers") is not None else None, + "topUsersByDataTransferred": [AssuranceUserDefinition.from_dict(_item) for _item in obj["topUsersByDataTransferred"]] if obj.get("topUsersByDataTransferred") is not None else None, + "topVrfsByUsers": [AssuranceKpiMetric.from_dict(_item) for _item in obj["topVrfsByUsers"]] if obj.get("topVrfsByUsers") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/audit_activity_item.py b/graphiant_sdk/models/audit_activity_item.py index c81be1de..de425000 100644 --- a/graphiant_sdk/models/audit_activity_item.py +++ b/graphiant_sdk/models/audit_activity_item.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 AuditActivityItem(BaseModel): """ AuditActivityItem """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "name", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/audit_audit_entry.py b/graphiant_sdk/models/audit_audit_entry.py index d8917d7c..11b9f1dc 100644 --- a/graphiant_sdk/models/audit_audit_entry.py +++ b/graphiant_sdk/models/audit_audit_entry.py @@ -23,28 +23,26 @@ 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 AuditAuditEntry(BaseModel): """ AuditAuditEntry """ # noqa: E501 - activity: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - actor: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - category: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + activity: Optional[StrictStr] = None + actor: Optional[StrictStr] = None + category: Optional[StrictStr] = None end: Optional[GoogleProtobufTimestamp] = None failed_target_results: Optional[List[AuditTargetResult]] = Field(default=None, alias="failedTargetResults") - info: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - reason: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - service: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + info: Optional[StrictStr] = None + reason: Optional[StrictStr] = None + service: Optional[StrictStr] = None start: Optional[GoogleProtobufTimestamp] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None targets: Optional[List[AuditTargetResult]] = None __properties: ClassVar[List[str]] = ["activity", "actor", "category", "end", "failedTargetResults", "info", "reason", "service", "start", "status", "targets"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/audit_target.py b/graphiant_sdk/models/audit_target.py index c1667b38..96be5101 100644 --- a/graphiant_sdk/models/audit_target.py +++ b/graphiant_sdk/models/audit_target.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AuditTarget(BaseModel): """ AuditTarget """ # noqa: E501 - id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [12345678910]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/audit_target_result.py b/graphiant_sdk/models/audit_target_result.py index 23e74c7e..1fa186f6 100644 --- a/graphiant_sdk/models/audit_target_result.py +++ b/graphiant_sdk/models/audit_target_result.py @@ -17,25 +17,23 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.audit_target import AuditTarget from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AuditTargetResult(BaseModel): """ AuditTargetResult """ # noqa: E501 - reason: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + reason: Optional[StrictStr] = None + status: Optional[StrictStr] = None target: Optional[AuditTarget] = None __properties: ClassVar[List[str]] = ["reason", "status", "target"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/auditmon_activity_details.py b/graphiant_sdk/models/auditmon_activity_details.py index 1419de10..1d430ace 100644 --- a/graphiant_sdk/models/auditmon_activity_details.py +++ b/graphiant_sdk/models/auditmon_activity_details.py @@ -24,35 +24,33 @@ 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 AuditmonActivityDetails(BaseModel): """ AuditmonActivityDetails """ # noqa: E501 - action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + action: Optional[StrictStr] = None attributes: Optional[List[AuditActivityItem]] = None - category: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - disable_auto_timeout: Optional[StrictBool] = Field(default=None, alias="disableAutoTimeout", json_schema_extra={"examples": [True]}) + category: Optional[StrictStr] = None + disable_auto_timeout: Optional[StrictBool] = Field(default=None, alias="disableAutoTimeout") end_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="endTs") - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - initiator_type: Optional[StrictStr] = Field(default=None, alias="initiatorType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + id: Optional[StrictStr] = None + initiator_type: Optional[StrictStr] = Field(default=None, alias="initiatorType") job_entities: Optional[List[AuditActivityItem]] = Field(default=None, alias="jobEntities") - job_type: Optional[StrictStr] = Field(default=None, alias="jobType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - original_enterprise_id: Optional[StrictInt] = Field(default=None, alias="originalEnterpriseId", json_schema_extra={"examples": [1234567891011]}) + job_type: Optional[StrictStr] = Field(default=None, alias="jobType") + original_enterprise_id: Optional[StrictInt] = Field(default=None, alias="originalEnterpriseId") start_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTs") - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None targets: Optional[List[AuditmonActivityDetailsTarget]] = None - trace_session_id: Optional[StrictStr] = Field(default=None, alias="traceSessionId", json_schema_extra={"examples": ["example string"]}) - usage: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - user: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - user_id: Optional[StrictStr] = Field(default=None, alias="userId", json_schema_extra={"examples": ["example string"]}) + trace_session_id: Optional[StrictStr] = Field(default=None, alias="traceSessionId") + usage: Optional[StrictStr] = None + user: Optional[StrictStr] = None + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["action", "attributes", "category", "disableAutoTimeout", "endTs", "enterpriseId", "id", "initiatorType", "jobEntities", "jobType", "originalEnterpriseId", "startTs", "status", "targets", "traceSessionId", "usage", "user", "userId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -64,7 +62,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/auditmon_activity_details_target.py b/graphiant_sdk/models/auditmon_activity_details_target.py index d692a93b..6223dd5c 100644 --- a/graphiant_sdk/models/auditmon_activity_details_target.py +++ b/graphiant_sdk/models/auditmon_activity_details_target.py @@ -24,24 +24,22 @@ 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 AuditmonActivityDetailsTarget(BaseModel): """ AuditmonActivityDetailsTarget """ # noqa: E501 - detailed_failure_reason: Optional[StrictStr] = Field(default=None, alias="detailedFailureReason", json_schema_extra={"examples": ["example string"]}) + detailed_failure_reason: Optional[StrictStr] = Field(default=None, alias="detailedFailureReason") end_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="endTs") events: Optional[List[AuditmonActivityDetailsTargetEvent]] = None - failure_reason: Optional[StrictStr] = Field(default=None, alias="failureReason", json_schema_extra={"examples": ["example string"]}) + failure_reason: Optional[StrictStr] = Field(default=None, alias="failureReason") ids: Optional[List[AuditActivityItem]] = None start_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTs") - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["detailedFailureReason", "endTs", "events", "failureReason", "ids", "startTs", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/auditmon_activity_details_target_event.py b/graphiant_sdk/models/auditmon_activity_details_target_event.py index 80754f0a..23b1d660 100644 --- a/graphiant_sdk/models/auditmon_activity_details_target_event.py +++ b/graphiant_sdk/models/auditmon_activity_details_target_event.py @@ -22,21 +22,19 @@ 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 AuditmonActivityDetailsTargetEvent(BaseModel): """ AuditmonActivityDetailsTargetEvent """ # noqa: E501 - state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - state_id: Optional[StrictInt] = Field(default=None, alias="stateId", json_schema_extra={"examples": [123]}) - trace_session_id: Optional[StrictStr] = Field(default=None, alias="traceSessionId", json_schema_extra={"examples": ["example string"]}) + state: Optional[StrictStr] = None + state_id: Optional[StrictInt] = Field(default=None, alias="stateId") + trace_session_id: Optional[StrictStr] = Field(default=None, alias="traceSessionId") ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["state", "stateId", "traceSessionId", "ts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/auditmon_activity_logs_selector.py b/graphiant_sdk/models/auditmon_activity_logs_selector.py index 8b821136..de134a29 100644 --- a/graphiant_sdk/models/auditmon_activity_logs_selector.py +++ b/graphiant_sdk/models/auditmon_activity_logs_selector.py @@ -22,23 +22,21 @@ from graphiant_sdk.models.audit_activity_item import AuditActivityItem from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AuditmonActivityLogsSelector(BaseModel): """ AuditmonActivityLogsSelector """ # noqa: E501 device_ids: Optional[List[StrictInt]] = Field(default=None, alias="deviceIds") - id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - in_progress: Optional[StrictBool] = Field(default=None, alias="inProgress", json_schema_extra={"examples": [True]}) + id: Optional[StrictStr] = None + in_progress: Optional[StrictBool] = Field(default=None, alias="inProgress") job_entity: Optional[AuditActivityItem] = Field(default=None, alias="jobEntity") target_ids: Optional[List[AuditActivityItem]] = Field(default=None, alias="targetIds") - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceIds", "id", "inProgress", "jobEntity", "targetIds", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/auditmon_activity_logs_selector_v2.py b/graphiant_sdk/models/auditmon_activity_logs_selector_v2.py index 2992efda..63f6feca 100644 --- a/graphiant_sdk/models/auditmon_activity_logs_selector_v2.py +++ b/graphiant_sdk/models/auditmon_activity_logs_selector_v2.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.audit_activity_item import AuditActivityItem from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AuditmonActivityLogsSelectorV2(BaseModel): """ @@ -37,8 +36,7 @@ class AuditmonActivityLogsSelectorV2(BaseModel): __properties: ClassVar[List[str]] = ["deviceIds", "entities", "siteIds", "statuses", "types", "userIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/auditmon_audit_log.py b/graphiant_sdk/models/auditmon_audit_log.py index 0ea01623..96120e91 100644 --- a/graphiant_sdk/models/auditmon_audit_log.py +++ b/graphiant_sdk/models/auditmon_audit_log.py @@ -23,25 +23,23 @@ 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 AuditmonAuditLog(BaseModel): """ AuditmonAuditLog """ # noqa: E501 - action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - activity_id: Optional[StrictStr] = Field(default=None, alias="activityId", json_schema_extra={"examples": ["example string"]}) - category: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + action: Optional[StrictStr] = None + activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") + category: Optional[StrictStr] = None entity: Optional[AuditActivityItem] = None - job_type: Optional[StrictStr] = Field(default=None, alias="jobType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + job_type: Optional[StrictStr] = Field(default=None, alias="jobType") target: Optional[AuditActivityItem] = None ts: Optional[GoogleProtobufTimestamp] = None - user: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + user: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["action", "activityId", "category", "entity", "jobType", "target", "ts", "user"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/auditmon_audit_logs_v2_selector.py b/graphiant_sdk/models/auditmon_audit_logs_v2_selector.py index 3ebc13e9..0dd33d9d 100644 --- a/graphiant_sdk/models/auditmon_audit_logs_v2_selector.py +++ b/graphiant_sdk/models/auditmon_audit_logs_v2_selector.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.audit_activity_item import AuditActivityItem from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class AuditmonAuditLogsV2Selector(BaseModel): """ @@ -36,8 +35,7 @@ class AuditmonAuditLogsV2Selector(BaseModel): __properties: ClassVar[List[str]] = ["categories", "entities", "jobTypes", "targets", "users"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/auditmon_histogram.py b/graphiant_sdk/models/auditmon_histogram.py index 31f2665d..d0ecd0c1 100644 --- a/graphiant_sdk/models/auditmon_histogram.py +++ b/graphiant_sdk/models/auditmon_histogram.py @@ -23,19 +23,17 @@ 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 AuditmonHistogram(BaseModel): """ AuditmonHistogram """ # noqa: E501 - count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["count", "ts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/auditmon_selector.py b/graphiant_sdk/models/auditmon_selector.py index 5bca0f5e..7e2a2a0f 100644 --- a/graphiant_sdk/models/auditmon_selector.py +++ b/graphiant_sdk/models/auditmon_selector.py @@ -21,19 +21,17 @@ 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 AuditmonSelector(BaseModel): """ AuditmonSelector """ # noqa: E501 - var_field: Optional[StrictStr] = Field(default=None, description="Field to search", alias="field", json_schema_extra={"examples": ["AuditFieldId"]}) + var_field: Optional[StrictStr] = Field(default=None, description="Field to search", alias="field") values: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["field", "values"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/auth_permissions.py b/graphiant_sdk/models/auth_permissions.py index 702e5e03..4016fce9 100644 --- a/graphiant_sdk/models/auth_permissions.py +++ b/graphiant_sdk/models/auth_permissions.py @@ -21,28 +21,27 @@ 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 AuthPermissions(BaseModel): """ AuthPermissions """ # noqa: E501 - billing_and_invoicing: Optional[StrictStr] = Field(default=None, alias="billingAndInvoicing", json_schema_extra={"examples": ["read_write"]}) - licensing: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["read_write"]}) - order_status: Optional[StrictStr] = Field(default=None, alias="orderStatus", json_schema_extra={"examples": ["read"]}) - support: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["read"]}) - user_and_tenant_management: Optional[StrictStr] = Field(default=None, alias="userAndTenantManagement", json_schema_extra={"examples": ["read_write"]}) - asset_manager: Optional[StrictStr] = Field(default=None, alias="assetManager", json_schema_extra={"examples": ["read_write"]}) - global_services: Optional[StrictStr] = Field(default=None, alias="globalServices", json_schema_extra={"examples": ["read"]}) - network_configurations: Optional[StrictStr] = Field(default=None, alias="networkConfigurations", json_schema_extra={"examples": ["read_write"]}) - safety_and_security: Optional[StrictStr] = Field(default=None, alias="safetyAndSecurity", json_schema_extra={"examples": ["read_write"]}) - service_policies: Optional[StrictStr] = Field(default=None, alias="servicePolicies", json_schema_extra={"examples": ["read_write"]}) - compliance: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["read"]}) - developer_tools: Optional[StrictStr] = Field(default=None, alias="developerTools", json_schema_extra={"examples": ["read"]}) - insights: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["read_write"]}) - logs: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["read_write"]}) - monitoring_and_troubleshooting: Optional[StrictStr] = Field(default=None, alias="monitoringAndTroubleshooting", json_schema_extra={"examples": ["read_write"]}) - reports: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["read"]}) + billing_and_invoicing: Optional[StrictStr] = Field(default=None, alias="billingAndInvoicing") + licensing: Optional[StrictStr] = None + order_status: Optional[StrictStr] = Field(default=None, alias="orderStatus") + support: Optional[StrictStr] = None + user_and_tenant_management: Optional[StrictStr] = Field(default=None, alias="userAndTenantManagement") + asset_manager: Optional[StrictStr] = Field(default=None, alias="assetManager") + global_services: Optional[StrictStr] = Field(default=None, alias="globalServices") + network_configurations: Optional[StrictStr] = Field(default=None, alias="networkConfigurations") + safety_and_security: Optional[StrictStr] = Field(default=None, alias="safetyAndSecurity") + service_policies: Optional[StrictStr] = Field(default=None, alias="servicePolicies") + compliance: Optional[StrictStr] = None + developer_tools: Optional[StrictStr] = Field(default=None, alias="developerTools") + insights: Optional[StrictStr] = None + logs: Optional[StrictStr] = None + monitoring_and_troubleshooting: Optional[StrictStr] = Field(default=None, alias="monitoringAndTroubleshooting") + reports: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["billingAndInvoicing", "licensing", "orderStatus", "support", "userAndTenantManagement", "assetManager", "globalServices", "networkConfigurations", "safetyAndSecurity", "servicePolicies", "compliance", "developerTools", "insights", "logs", "monitoringAndTroubleshooting", "reports"] @field_validator('billing_and_invoicing') @@ -206,8 +205,7 @@ def reports_validate_enum(cls, value): return value model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -219,7 +217,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/common_billing_contract.py b/graphiant_sdk/models/common_billing_contract.py index 6074dae5..9e9acf2a 100644 --- a/graphiant_sdk/models/common_billing_contract.py +++ b/graphiant_sdk/models/common_billing_contract.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.common_billing_time_period import CommonBillingTimePeriod from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class CommonBillingContract(BaseModel): """ CommonBillingContract """ # noqa: E501 - contracted_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number of credits agreed upon for the entirety of the current contract", alias="contractedCredits", json_schema_extra={"examples": [12.34]}) + contracted_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number of credits agreed upon for the entirety of the current contract", alias="contractedCredits") expiration_date: Optional[CommonBillingTimePeriod] = Field(default=None, alias="expirationDate") __properties: ClassVar[List[str]] = ["contractedCredits", "expirationDate"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/common_billing_time_period.py b/graphiant_sdk/models/common_billing_time_period.py index 2efc18b4..7a998c37 100644 --- a/graphiant_sdk/models/common_billing_time_period.py +++ b/graphiant_sdk/models/common_billing_time_period.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, 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 CommonBillingTimePeriod(BaseModel): """ CommonBillingTimePeriod """ # noqa: E501 - month: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - year: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + month: Optional[StrictInt] = None + year: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["month", "year"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/common_page_info.py b/graphiant_sdk/models/common_page_info.py index 2b91c80d..c9b5aa43 100644 --- a/graphiant_sdk/models/common_page_info.py +++ b/graphiant_sdk/models/common_page_info.py @@ -22,24 +22,22 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class CommonPageInfo(BaseModel): """ CommonPageInfo """ # noqa: E501 - current_page: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The page number we are currently on (required)", alias="currentPage", json_schema_extra={"examples": [1]}) - end_cursor: Optional[StrictStr] = Field(default=None, description="Cursor pointing to the last record on the current page", alias="endCursor", json_schema_extra={"examples": ["xxxxxxy"]}) - has_next_page: Optional[StrictBool] = Field(default=None, description="An indicator whether there is a page after this one in the resultset based on current position", alias="hasNextPage", json_schema_extra={"examples": [True]}) - has_prev_page: Optional[StrictBool] = Field(default=None, description="An indicator whether there is a page before this one in the resultset based on current position", alias="hasPrevPage", json_schema_extra={"examples": [True]}) - start_cursor: Optional[StrictStr] = Field(default=None, description="Cursor pointing to the first record on the current page", alias="startCursor", json_schema_extra={"examples": ["xxxxxx"]}) - total_pages: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The number of pages in the complete resultset based on the current length of the page (required)", alias="totalPages", json_schema_extra={"examples": [4]}) - total_records: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Describes the total number of records in the complete resultset (required)", alias="totalRecords", json_schema_extra={"examples": [400]}) + current_page: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The page number we are currently on (required)", alias="currentPage") + end_cursor: Optional[StrictStr] = Field(default=None, description="Cursor pointing to the last record on the current page", alias="endCursor") + has_next_page: Optional[StrictBool] = Field(default=None, description="An indicator whether there is a page after this one in the resultset based on current position", alias="hasNextPage") + has_prev_page: Optional[StrictBool] = Field(default=None, description="An indicator whether there is a page before this one in the resultset based on current position", alias="hasPrevPage") + start_cursor: Optional[StrictStr] = Field(default=None, description="Cursor pointing to the first record on the current page", alias="startCursor") + total_pages: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The number of pages in the complete resultset based on the current length of the page (required)", alias="totalPages") + total_records: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Describes the total number of records in the complete resultset (required)", alias="totalRecords") __properties: ClassVar[List[str]] = ["currentPage", "endCursor", "hasNextPage", "hasPrevPage", "startCursor", "totalPages", "totalRecords"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/common_page_request.py b/graphiant_sdk/models/common_page_request.py index 71eab655..e470d1b6 100644 --- a/graphiant_sdk/models/common_page_request.py +++ b/graphiant_sdk/models/common_page_request.py @@ -22,22 +22,20 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class CommonPageRequest(BaseModel): """ CommonPageRequest """ # noqa: E501 - after: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - before: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - first: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - last: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - token: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + after: Optional[StrictStr] = None + before: Optional[StrictStr] = None + first: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + last: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + token: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["after", "before", "first", "last", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/common_permissions.py b/graphiant_sdk/models/common_permissions.py index 5449d0fb..ae427451 100644 --- a/graphiant_sdk/models/common_permissions.py +++ b/graphiant_sdk/models/common_permissions.py @@ -21,36 +21,34 @@ 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 CommonPermissions(BaseModel): """ CommonPermissions """ # noqa: E501 - asset_manager: Optional[StrictStr] = Field(default=None, alias="assetManager", json_schema_extra={"examples": ["ENUM_VALUE"]}) - b2b: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - b2b_security_profile_external: Optional[StrictStr] = Field(default=None, alias="b2bSecurityProfileExternal", json_schema_extra={"examples": ["ENUM_VALUE"]}) - billing_and_invoicing: Optional[StrictStr] = Field(default=None, alias="billingAndInvoicing", json_schema_extra={"examples": ["ENUM_VALUE"]}) - compliance: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - developer_tools: Optional[StrictStr] = Field(default=None, alias="developerTools", json_schema_extra={"examples": ["ENUM_VALUE"]}) - gateway: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - global_services: Optional[StrictStr] = Field(default=None, alias="globalServices", json_schema_extra={"examples": ["ENUM_VALUE"]}) - insights: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - licensing: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - logs: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - monitoring_and_troubleshooting: Optional[StrictStr] = Field(default=None, alias="monitoringAndTroubleshooting", json_schema_extra={"examples": ["ENUM_VALUE"]}) - network_configuration: Optional[StrictStr] = Field(default=None, alias="networkConfiguration", json_schema_extra={"examples": ["ENUM_VALUE"]}) - order_status: Optional[StrictStr] = Field(default=None, alias="orderStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - reports: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - safety_and_security: Optional[StrictStr] = Field(default=None, alias="safetyAndSecurity", json_schema_extra={"examples": ["ENUM_VALUE"]}) - service_policies: Optional[StrictStr] = Field(default=None, alias="servicePolicies", json_schema_extra={"examples": ["ENUM_VALUE"]}) - support: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - user_and_tenant_management: Optional[StrictStr] = Field(default=None, alias="userAndTenantManagement", json_schema_extra={"examples": ["ENUM_VALUE"]}) + asset_manager: Optional[StrictStr] = Field(default=None, alias="assetManager") + b2b: Optional[StrictStr] = None + b2b_security_profile_external: Optional[StrictStr] = Field(default=None, alias="b2bSecurityProfileExternal") + billing_and_invoicing: Optional[StrictStr] = Field(default=None, alias="billingAndInvoicing") + compliance: Optional[StrictStr] = None + developer_tools: Optional[StrictStr] = Field(default=None, alias="developerTools") + gateway: Optional[StrictStr] = None + global_services: Optional[StrictStr] = Field(default=None, alias="globalServices") + insights: Optional[StrictStr] = None + licensing: Optional[StrictStr] = None + logs: Optional[StrictStr] = None + monitoring_and_troubleshooting: Optional[StrictStr] = Field(default=None, alias="monitoringAndTroubleshooting") + network_configuration: Optional[StrictStr] = Field(default=None, alias="networkConfiguration") + order_status: Optional[StrictStr] = Field(default=None, alias="orderStatus") + reports: Optional[StrictStr] = None + safety_and_security: Optional[StrictStr] = Field(default=None, alias="safetyAndSecurity") + service_policies: Optional[StrictStr] = Field(default=None, alias="servicePolicies") + support: Optional[StrictStr] = None + user_and_tenant_management: Optional[StrictStr] = Field(default=None, alias="userAndTenantManagement") __properties: ClassVar[List[str]] = ["assetManager", "b2b", "b2bSecurityProfileExternal", "billingAndInvoicing", "compliance", "developerTools", "gateway", "globalServices", "insights", "licensing", "logs", "monitoringAndTroubleshooting", "networkConfiguration", "orderStatus", "reports", "safetyAndSecurity", "servicePolicies", "support", "userAndTenantManagement"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -62,7 +60,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/common_user.py b/graphiant_sdk/models/common_user.py index 51cb9d0c..55c56300 100644 --- a/graphiant_sdk/models/common_user.py +++ b/graphiant_sdk/models/common_user.py @@ -22,27 +22,25 @@ 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 CommonUser(BaseModel): """ CommonUser """ # noqa: E501 - email: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - first_name: Optional[StrictStr] = Field(default=None, alias="firstName", json_schema_extra={"examples": ["example string"]}) + email: Optional[StrictStr] = None + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + first_name: Optional[StrictStr] = Field(default=None, alias="firstName") last_active_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastActiveAt") - last_name: Optional[StrictStr] = Field(default=None, alias="lastName", json_schema_extra={"examples": ["example string"]}) - mfa_factor: Optional[StrictStr] = Field(default=None, alias="mfaFactor", json_schema_extra={"examples": ["example string"]}) - phone_number: Optional[StrictStr] = Field(default=None, alias="phoneNumber", json_schema_extra={"examples": ["example string"]}) - time_zone: Optional[StrictStr] = Field(default=None, alias="timeZone", json_schema_extra={"examples": ["example string"]}) - user_id: Optional[StrictStr] = Field(default=None, alias="userId", json_schema_extra={"examples": ["example string"]}) - verified: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + last_name: Optional[StrictStr] = Field(default=None, alias="lastName") + mfa_factor: Optional[StrictStr] = Field(default=None, alias="mfaFactor") + phone_number: Optional[StrictStr] = Field(default=None, alias="phoneNumber") + time_zone: Optional[StrictStr] = Field(default=None, alias="timeZone") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + verified: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["email", "enterpriseId", "firstName", "lastActiveAt", "lastName", "mfaFactor", "phoneNumber", "timeZone", "userId", "verified"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/common_user_info.py b/graphiant_sdk/models/common_user_info.py index 6a254550..6c5c57ff 100644 --- a/graphiant_sdk/models/common_user_info.py +++ b/graphiant_sdk/models/common_user_info.py @@ -22,23 +22,21 @@ from graphiant_sdk.models.common_permissions import CommonPermissions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class CommonUserInfo(BaseModel): """ CommonUserInfo """ # noqa: E501 - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - exp: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - original_enterprise_id: Optional[StrictInt] = Field(default=None, alias="originalEnterpriseId", json_schema_extra={"examples": [1234567891011]}) + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + exp: Optional[StrictInt] = None + original_enterprise_id: Optional[StrictInt] = Field(default=None, alias="originalEnterpriseId") permissions: Optional[CommonPermissions] = None - time_zone: Optional[StrictStr] = Field(default=None, alias="timeZone", json_schema_extra={"examples": ["example string"]}) - user_id: Optional[StrictStr] = Field(default=None, alias="userId", json_schema_extra={"examples": ["example string"]}) + time_zone: Optional[StrictStr] = Field(default=None, alias="timeZone") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["enterpriseId", "exp", "originalEnterpriseId", "permissions", "timeZone", "userId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/conceal_agent.py b/graphiant_sdk/models/conceal_agent.py new file mode 100644 index 00000000..886b965c --- /dev/null +++ b/graphiant_sdk/models/conceal_agent.py @@ -0,0 +1,97 @@ +# 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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ConcealAgent(BaseModel): + """ + ConcealAgent + """ # noqa: E501 + created_at: Optional[StrictStr] = Field(default=None, alias="createdAt") + disabled: Optional[StrictBool] = None + id: Optional[StrictStr] = None + identifier: Optional[StrictStr] = None + last_checkin: Optional[StrictStr] = Field(default=None, alias="lastCheckin") + machine: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["createdAt", "disabled", "id", "identifier", "lastCheckin", "machine"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ConcealAgent 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 ConcealAgent from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "createdAt": obj.get("createdAt"), + "disabled": obj.get("disabled"), + "id": obj.get("id"), + "identifier": obj.get("identifier"), + "lastCheckin": obj.get("lastCheckin"), + "machine": obj.get("machine") + }) + return _obj + + diff --git a/graphiant_sdk/models/config_worker_job_status.py b/graphiant_sdk/models/config_worker_job_status.py index 53e8f1de..a4bc978d 100644 --- a/graphiant_sdk/models/config_worker_job_status.py +++ b/graphiant_sdk/models/config_worker_job_status.py @@ -22,7 +22,6 @@ 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 ConfigWorkerJobStatus(BaseModel): """ @@ -30,15 +29,14 @@ class ConfigWorkerJobStatus(BaseModel): """ # noqa: E501 completed_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="completedAt") created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - error: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - error_count: Optional[StrictInt] = Field(default=None, alias="errorCount", json_schema_extra={"examples": [123]}) - job_id: Optional[StrictInt] = Field(default=None, alias="jobId", json_schema_extra={"examples": [1234567891011]}) - job_state: Optional[StrictStr] = Field(default=None, alias="jobState", json_schema_extra={"examples": ["ENUM_VALUE"]}) + error: Optional[StrictStr] = None + error_count: Optional[StrictInt] = Field(default=None, alias="errorCount") + job_id: Optional[StrictInt] = Field(default=None, alias="jobId") + job_state: Optional[StrictStr] = Field(default=None, alias="jobState") __properties: ClassVar[List[str]] = ["completedAt", "createdAt", "error", "errorCount", "jobId", "jobState"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_archive.py b/graphiant_sdk/models/diagnostic_tools_archive.py index 35c80616..e2b31fe9 100644 --- a/graphiant_sdk/models/diagnostic_tools_archive.py +++ b/graphiant_sdk/models/diagnostic_tools_archive.py @@ -22,26 +22,24 @@ 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 DiagnosticToolsArchive(BaseModel): """ DiagnosticToolsArchive """ # noqa: E501 - archive_file_name: Optional[StrictStr] = Field(default=None, description="The archive file name", alias="archiveFileName", json_schema_extra={"examples": ["12000.tar.zst.gpg"]}) - archive_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific archive", alias="archiveId", json_schema_extra={"examples": [1000000]}) - archive_url: Optional[StrictStr] = Field(default=None, description="The URL to download this archive", alias="archiveUrl", json_schema_extra={"examples": ["graphiant.com/archives/134"]}) + archive_file_name: Optional[StrictStr] = Field(default=None, description="The archive file name", alias="archiveFileName") + archive_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific archive", alias="archiveId") + archive_url: Optional[StrictStr] = Field(default=None, description="The URL to download this archive", alias="archiveUrl") created: Optional[GoogleProtobufTimestamp] = None - creator: Optional[StrictStr] = Field(default=None, description="The user who requested the generation of this archive", json_schema_extra={"examples": ["8a2ec658-f25b-11ec-b939-0242ac120002"]}) - description: Optional[StrictStr] = Field(default=None, description="Description of the requested archive", json_schema_extra={"examples": ["archive requested to debug tenant A problem in device B"]}) - progress: Optional[StrictInt] = Field(default=None, description="The upload progress of the requested debug archive in percentage", json_schema_extra={"examples": [80]}) - status: Optional[StrictStr] = Field(default=None, description="The status of the requested debug archive", json_schema_extra={"examples": ["Uploaded"]}) - type: Optional[StrictStr] = Field(default=None, description="The type of the archive", json_schema_extra={"examples": ["Debug"]}) + creator: Optional[StrictStr] = Field(default=None, description="The user who requested the generation of this archive") + description: Optional[StrictStr] = Field(default=None, description="Description of the requested archive") + progress: Optional[StrictInt] = Field(default=None, description="The upload progress of the requested debug archive in percentage") + status: Optional[StrictStr] = Field(default=None, description="The status of the requested debug archive") + type: Optional[StrictStr] = Field(default=None, description="The type of the archive") __properties: ClassVar[List[str]] = ["archiveFileName", "archiveId", "archiveUrl", "created", "creator", "description", "progress", "status", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_arp_entry.py b/graphiant_sdk/models/diagnostic_tools_arp_entry.py index d8bdefc0..d6135866 100644 --- a/graphiant_sdk/models/diagnostic_tools_arp_entry.py +++ b/graphiant_sdk/models/diagnostic_tools_arp_entry.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.diagnostic_tools_arp_entry_address import DiagnosticToolsArpEntryAddress from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class DiagnosticToolsArpEntry(BaseModel): """ DiagnosticToolsArpEntry """ # noqa: E501 address: Optional[DiagnosticToolsArpEntryAddress] = None - all_entry: Optional[StrictBool] = Field(default=None, description="All IPv4 addresses", alias="allEntry", json_schema_extra={"examples": [True]}) - interface_name: Optional[StrictStr] = Field(default=None, description="Interface Name", alias="interfaceName", json_schema_extra={"examples": ["GigabitEthernet0/2"]}) + all_entry: Optional[StrictBool] = Field(default=None, description="All IPv4 addresses", alias="allEntry") + interface_name: Optional[StrictStr] = Field(default=None, description="Interface Name", alias="interfaceName") __properties: ClassVar[List[str]] = ["address", "allEntry", "interfaceName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_arp_entry_address.py b/graphiant_sdk/models/diagnostic_tools_arp_entry_address.py index 5a9ed559..f7ba60ce 100644 --- a/graphiant_sdk/models/diagnostic_tools_arp_entry_address.py +++ b/graphiant_sdk/models/diagnostic_tools_arp_entry_address.py @@ -21,7 +21,6 @@ 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 DiagnosticToolsArpEntryAddress(BaseModel): """ @@ -31,8 +30,7 @@ class DiagnosticToolsArpEntryAddress(BaseModel): __properties: ClassVar[List[str]] = ["address"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_diagnostic_params.py b/graphiant_sdk/models/diagnostic_tools_diagnostic_params.py index e876050a..3b341966 100644 --- a/graphiant_sdk/models/diagnostic_tools_diagnostic_params.py +++ b/graphiant_sdk/models/diagnostic_tools_diagnostic_params.py @@ -22,26 +22,24 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class DiagnosticToolsDiagnosticParams(BaseModel): """ DiagnosticToolsDiagnosticParams """ # noqa: E501 - dest_address: StrictStr = Field(description="IPv4 or IPv6 Destination address (required)", alias="destAddress", json_schema_extra={"examples": ["172.1.1.1"]}) - hop_stats_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Per hop probes needed for traceroute hop stats", alias="hopStatsCount", json_schema_extra={"examples": [10]}) - interface: Optional[StrictStr] = Field(default=None, description="Source Interface name", json_schema_extra={"examples": ["ethernet1/0"]}) - payload_size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Size of packet to be sent", alias="payloadSize", json_schema_extra={"examples": [64]}) - port: Annotated[int, Field(strict=True, ge=0)] = Field(description="Valid in case of TCP ping (required)", json_schema_extra={"examples": [443]}) - probe_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Number of probes to send", alias="probeCount", json_schema_extra={"examples": [4]}) - src_address: StrictStr = Field(description="IPv4 or IPv6 address (required)", alias="srcAddress", json_schema_extra={"examples": ["10.1.1.1"]}) + dest_address: StrictStr = Field(description="IPv4 or IPv6 Destination address (required)", alias="destAddress") + hop_stats_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Per hop probes needed for traceroute hop stats", alias="hopStatsCount") + interface: Optional[StrictStr] = Field(default=None, description="Source Interface name") + payload_size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Size of packet to be sent", alias="payloadSize") + port: Annotated[int, Field(strict=True, ge=0)] = Field(description="Valid in case of TCP ping (required)") + probe_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Number of probes to send", alias="probeCount") + src_address: StrictStr = Field(description="IPv4 or IPv6 address (required)", alias="srcAddress") tos: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Type of service") - vrf_name: StrictStr = Field(description="configure VRF Name (required)", alias="vrfName", json_schema_extra={"examples": ["finance"]}) + vrf_name: StrictStr = Field(description="configure VRF Name (required)", alias="vrfName") __properties: ClassVar[List[str]] = ["destAddress", "hopStatsCount", "interface", "payloadSize", "port", "probeCount", "srcAddress", "tos", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_diagnostic_result.py b/graphiant_sdk/models/diagnostic_tools_diagnostic_result.py index 1e6adbe2..420ef964 100644 --- a/graphiant_sdk/models/diagnostic_tools_diagnostic_result.py +++ b/graphiant_sdk/models/diagnostic_tools_diagnostic_result.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.diagnostic_tools_traceroute_result import DiagnosticToolsTracerouteResult from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class DiagnosticToolsDiagnosticResult(BaseModel): """ @@ -36,8 +35,7 @@ class DiagnosticToolsDiagnosticResult(BaseModel): __properties: ClassVar[List[str]] = ["pingResult", "routeInfo", "traceResult"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_hop_info.py b/graphiant_sdk/models/diagnostic_tools_hop_info.py index fe67a12c..e931d44d 100644 --- a/graphiant_sdk/models/diagnostic_tools_hop_info.py +++ b/graphiant_sdk/models/diagnostic_tools_hop_info.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.diagnostic_tools_hop_stats import DiagnosticToolsHopStats from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class DiagnosticToolsHopInfo(BaseModel): """ DiagnosticToolsHopInfo """ # noqa: E501 - host_address: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 address (required)", alias="hostAddress", json_schema_extra={"examples": ["1213:1::6451"]}) - path_mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Path MTU for this host_address (required)", alias="pathMtu", json_schema_extra={"examples": [1500]}) - round_trip_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="time in milli seconds (required)", alias="roundTripTime", json_schema_extra={"examples": [10]}) + host_address: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 address (required)", alias="hostAddress") + path_mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Path MTU for this host_address (required)", alias="pathMtu") + round_trip_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="time in milli seconds (required)", alias="roundTripTime") stats: Optional[DiagnosticToolsHopStats] = None __properties: ClassVar[List[str]] = ["hostAddress", "pathMtu", "roundTripTime", "stats"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_hop_stats.py b/graphiant_sdk/models/diagnostic_tools_hop_stats.py index 1418ce82..178816ed 100644 --- a/graphiant_sdk/models/diagnostic_tools_hop_stats.py +++ b/graphiant_sdk/models/diagnostic_tools_hop_stats.py @@ -22,23 +22,21 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class DiagnosticToolsHopStats(BaseModel): """ DiagnosticToolsHopStats """ # noqa: E501 - avg_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="avgTime", json_schema_extra={"examples": [3]}) - max_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="maxTime", json_schema_extra={"examples": [10]}) - min_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="minTime", json_schema_extra={"examples": [5]}) - rx_packets: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Received packet count (required)", alias="rxPackets", json_schema_extra={"examples": [10]}) - std_dev_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Standard deviation of the round-trip time in milli seconds (required)", alias="stdDevTime", json_schema_extra={"examples": [3]}) - tx_packets: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Transmitted packet count (required)", alias="txPackets", json_schema_extra={"examples": [10]}) + avg_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="avgTime") + max_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="maxTime") + min_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="minTime") + rx_packets: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Received packet count (required)", alias="rxPackets") + std_dev_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Standard deviation of the round-trip time in milli seconds (required)", alias="stdDevTime") + tx_packets: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Transmitted packet count (required)", alias="txPackets") __properties: ClassVar[List[str]] = ["avgTime", "maxTime", "minTime", "rxPackets", "stdDevTime", "txPackets"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_p_cap_filter.py b/graphiant_sdk/models/diagnostic_tools_p_cap_filter.py index 1140a2ac..bdf401fe 100644 --- a/graphiant_sdk/models/diagnostic_tools_p_cap_filter.py +++ b/graphiant_sdk/models/diagnostic_tools_p_cap_filter.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.diagnostic_tools_prefix_port import DiagnosticToolsPrefixPort from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class DiagnosticToolsPCapFilter(BaseModel): """ DiagnosticToolsPCapFilter """ # noqa: E501 destination: Optional[DiagnosticToolsPrefixPort] = None - dscp: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Filters the packet capture for the specified DSCP field", json_schema_extra={"examples": [80]}) - protocol: Optional[StrictStr] = Field(default=None, description="Filters the packet capture for the specified protocol", json_schema_extra={"examples": ["Tcp"]}) + dscp: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Filters the packet capture for the specified DSCP field") + protocol: Optional[StrictStr] = Field(default=None, description="Filters the packet capture for the specified protocol") source: Optional[DiagnosticToolsPrefixPort] = None __properties: ClassVar[List[str]] = ["destination", "dscp", "protocol", "source"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_ping_result.py b/graphiant_sdk/models/diagnostic_tools_ping_result.py index 8bf68b88..52f2d314 100644 --- a/graphiant_sdk/models/diagnostic_tools_ping_result.py +++ b/graphiant_sdk/models/diagnostic_tools_ping_result.py @@ -22,23 +22,21 @@ 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 DiagnosticToolsPingResult(BaseModel): """ DiagnosticToolsPingResult """ # noqa: E501 - avg_loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="% loss (required)", alias="avgLoss", json_schema_extra={"examples": [64]}) - avg_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="avgTime", json_schema_extra={"examples": [3]}) + avg_loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="% loss (required)", alias="avgLoss") + avg_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="avgTime") completed_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="completedTime") - max_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="maxTime", json_schema_extra={"examples": [10]}) - min_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="minTime", json_schema_extra={"examples": [5]}) - result: Optional[StrictStr] = Field(default=None, description="Success or Failed (required)", json_schema_extra={"examples": ["Success"]}) + max_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="maxTime") + min_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Time in milli seconds (required)", alias="minTime") + result: Optional[StrictStr] = Field(default=None, description="Success or Failed (required)") __properties: ClassVar[List[str]] = ["avgLoss", "avgTime", "completedTime", "maxTime", "minTime", "result"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_prefix_port.py b/graphiant_sdk/models/diagnostic_tools_prefix_port.py index 8577e6e0..cd709130 100644 --- a/graphiant_sdk/models/diagnostic_tools_prefix_port.py +++ b/graphiant_sdk/models/diagnostic_tools_prefix_port.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class DiagnosticToolsPrefixPort(BaseModel): """ DiagnosticToolsPrefixPort """ # noqa: E501 - port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Filters the capture for the specified port", json_schema_extra={"examples": [80]}) - prefix: Optional[StrictStr] = Field(default=None, description="Filters the capture for the specified prefix", json_schema_extra={"examples": ["1.1.1.0/24"]}) + port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Filters the capture for the specified port") + prefix: Optional[StrictStr] = Field(default=None, description="Filters the capture for the specified prefix") __properties: ClassVar[List[str]] = ["port", "prefix"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_route_lookup_result.py b/graphiant_sdk/models/diagnostic_tools_route_lookup_result.py index df1158ef..3361efc1 100644 --- a/graphiant_sdk/models/diagnostic_tools_route_lookup_result.py +++ b/graphiant_sdk/models/diagnostic_tools_route_lookup_result.py @@ -21,20 +21,18 @@ 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 DiagnosticToolsRouteLookupResult(BaseModel): """ DiagnosticToolsRouteLookupResult """ # noqa: E501 - nexthop_address: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 gateway address (required)", alias="nexthopAddress", json_schema_extra={"examples": ["1213:1::6451"]}) - outgoing_interface: Optional[StrictStr] = Field(default=None, description="Interface name (required)", alias="outgoingInterface", json_schema_extra={"examples": ["Ethernet0/1"]}) - prefix: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 longest matching prefix (required)", json_schema_extra={"examples": ["1213:1::6451"]}) + nexthop_address: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 gateway address (required)", alias="nexthopAddress") + outgoing_interface: Optional[StrictStr] = Field(default=None, description="Interface name (required)", alias="outgoingInterface") + prefix: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 longest matching prefix (required)") __properties: ClassVar[List[str]] = ["nexthopAddress", "outgoingInterface", "prefix"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_speedtest_params.py b/graphiant_sdk/models/diagnostic_tools_speedtest_params.py index eef81191..327d6d64 100644 --- a/graphiant_sdk/models/diagnostic_tools_speedtest_params.py +++ b/graphiant_sdk/models/diagnostic_tools_speedtest_params.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.diagnostic_tools_target_type import DiagnosticToolsTargetType from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class DiagnosticToolsSpeedtestParams(BaseModel): """ DiagnosticToolsSpeedtestParams """ # noqa: E501 - provider: StrictStr = Field(description="Speedtest provider name (required)", json_schema_extra={"examples": ["ookla"]}) - server_id: Optional[StrictStr] = Field(default=None, description="This is fetched using GetSpeedtestServers API", alias="serverId", json_schema_extra={"examples": ["234123"]}) + provider: StrictStr = Field(description="Speedtest provider name (required)") + server_id: Optional[StrictStr] = Field(default=None, description="This is fetched using GetSpeedtestServers API", alias="serverId") target: DiagnosticToolsTargetType - token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup", json_schema_extra={"examples": ["example string"]}) + token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup") __properties: ClassVar[List[str]] = ["provider", "serverId", "target", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_speedtest_result.py b/graphiant_sdk/models/diagnostic_tools_speedtest_result.py index edcc8694..b2df5cd8 100644 --- a/graphiant_sdk/models/diagnostic_tools_speedtest_result.py +++ b/graphiant_sdk/models/diagnostic_tools_speedtest_result.py @@ -23,26 +23,24 @@ 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 DiagnosticToolsSpeedtestResult(BaseModel): """ DiagnosticToolsSpeedtestResult """ # noqa: E501 - avg_ping_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Avg Ping Time in milli seconds (required)", alias="avgPingTime", json_schema_extra={"examples": [3]}) + avg_ping_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Avg Ping Time in milli seconds (required)", alias="avgPingTime") date_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="dateTime") - download_speed: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Download speed in Mbps (required)", alias="downloadSpeed", json_schema_extra={"examples": [30.1]}) - isp: Optional[StrictStr] = Field(default=None, description="ISP details (required)", json_schema_extra={"examples": ["Google Fiber"]}) - max_ping_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Max PingTime in milli seconds (required)", alias="maxPingTime", json_schema_extra={"examples": [5]}) - min_ping_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Min Ping Time in milli seconds (required)", alias="minPingTime", json_schema_extra={"examples": [10]}) - result: Optional[StrictStr] = Field(default=None, description="Status of the speedtest operation (required)", json_schema_extra={"examples": ["Failed"]}) + download_speed: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Download speed in Mbps (required)", alias="downloadSpeed") + isp: Optional[StrictStr] = Field(default=None, description="ISP details (required)") + max_ping_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Max PingTime in milli seconds (required)", alias="maxPingTime") + min_ping_time: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Min Ping Time in milli seconds (required)", alias="minPingTime") + result: Optional[StrictStr] = Field(default=None, description="Status of the speedtest operation (required)") server_details: Optional[DiagnosticToolsSpeedtestServer] = Field(default=None, alias="serverDetails") - upload_speed: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Upload speed in Mbps (required)", alias="uploadSpeed", json_schema_extra={"examples": [21]}) + upload_speed: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Upload speed in Mbps (required)", alias="uploadSpeed") __properties: ClassVar[List[str]] = ["avgPingTime", "dateTime", "downloadSpeed", "isp", "maxPingTime", "minPingTime", "result", "serverDetails", "uploadSpeed"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_speedtest_server.py b/graphiant_sdk/models/diagnostic_tools_speedtest_server.py index 17a5c057..2052c0ab 100644 --- a/graphiant_sdk/models/diagnostic_tools_speedtest_server.py +++ b/graphiant_sdk/models/diagnostic_tools_speedtest_server.py @@ -21,23 +21,21 @@ 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 DiagnosticToolsSpeedtestServer(BaseModel): """ DiagnosticToolsSpeedtestServer """ # noqa: E501 - country: Optional[StrictStr] = Field(default=None, description="Country of the speedtest server (required)", json_schema_extra={"examples": ["United Kingdom"]}) - host: Optional[StrictStr] = Field(default=None, description="Hostname of the speedtest server (required)", json_schema_extra={"examples": ["speedtest.fastmetrics.com"]}) - id: Optional[StrictStr] = Field(default=None, description="Server Id. Internal mapping to a server.", json_schema_extra={"examples": ["29113"]}) - ip_address: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 address (required)", alias="ipAddress", json_schema_extra={"examples": ["1213:1::6451"]}) - location: Optional[StrictStr] = Field(default=None, description="Location of the speedtest server (required)", json_schema_extra={"examples": ["Sheffield"]}) - name: Optional[StrictStr] = Field(default=None, description="Name of the speedtest server (required)", json_schema_extra={"examples": ["Google Fiber"]}) + country: Optional[StrictStr] = Field(default=None, description="Country of the speedtest server (required)") + host: Optional[StrictStr] = Field(default=None, description="Hostname of the speedtest server (required)") + id: Optional[StrictStr] = Field(default=None, description="Server Id. Internal mapping to a server.") + ip_address: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 address (required)", alias="ipAddress") + location: Optional[StrictStr] = Field(default=None, description="Location of the speedtest server (required)") + name: Optional[StrictStr] = Field(default=None, description="Name of the speedtest server (required)") __properties: ClassVar[List[str]] = ["country", "host", "id", "ipAddress", "location", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_target_type.py b/graphiant_sdk/models/diagnostic_tools_target_type.py index 1e2ab088..19131e9d 100644 --- a/graphiant_sdk/models/diagnostic_tools_target_type.py +++ b/graphiant_sdk/models/diagnostic_tools_target_type.py @@ -21,19 +21,17 @@ 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 DiagnosticToolsTargetType(BaseModel): """ DiagnosticToolsTargetType """ # noqa: E501 - interface: Optional[StrictStr] = Field(default=None, description="Source Interface name", json_schema_extra={"examples": ["ethernet1/0"]}) - vrf_name: Optional[StrictStr] = Field(default=None, description="Configured VRF Name", alias="vrfName", json_schema_extra={"examples": ["isp-red"]}) + interface: Optional[StrictStr] = Field(default=None, description="Source Interface name") + vrf_name: Optional[StrictStr] = Field(default=None, description="Configured VRF Name", alias="vrfName") __properties: ClassVar[List[str]] = ["interface", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/diagnostic_tools_traceroute_result.py b/graphiant_sdk/models/diagnostic_tools_traceroute_result.py index 1e63b25b..b42cba01 100644 --- a/graphiant_sdk/models/diagnostic_tools_traceroute_result.py +++ b/graphiant_sdk/models/diagnostic_tools_traceroute_result.py @@ -24,24 +24,22 @@ 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 DiagnosticToolsTracerouteResult(BaseModel): """ DiagnosticToolsTracerouteResult """ # noqa: E501 hops: Optional[List[DiagnosticToolsHopInfo]] = None - max_latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="time in milliseconds (required)", alias="maxLatency", json_schema_extra={"examples": [10]}) - max_latency_host: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 address (required)", alias="maxLatencyHost", json_schema_extra={"examples": ["A123:3242::1111"]}) - max_path_mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Path MTU (required)", alias="maxPathMtu", json_schema_extra={"examples": [1500]}) - min_path_mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Path MTU (required)", alias="minPathMtu", json_schema_extra={"examples": [1000]}) - result: Optional[StrictStr] = Field(default=None, description="Success or Failed (required)", json_schema_extra={"examples": ["Failed"]}) + max_latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="time in milliseconds (required)", alias="maxLatency") + max_latency_host: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 address (required)", alias="maxLatencyHost") + max_path_mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Path MTU (required)", alias="maxPathMtu") + min_path_mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Path MTU (required)", alias="minPathMtu") + result: Optional[StrictStr] = Field(default=None, description="Success or Failed (required)") stopped_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="stoppedTime") __properties: ClassVar[List[str]] = ["hops", "maxLatency", "maxLatencyHost", "maxPathMtu", "minPathMtu", "result", "stoppedTime"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/google_protobuf_duration.py b/graphiant_sdk/models/google_protobuf_duration.py index 93a5d6e4..ef46a41f 100644 --- a/graphiant_sdk/models/google_protobuf_duration.py +++ b/graphiant_sdk/models/google_protobuf_duration.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, 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 GoogleProtobufDuration(BaseModel): """ GoogleProtobufDuration """ # noqa: E501 - nanos: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - seconds: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + nanos: Optional[StrictInt] = None + seconds: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["nanos", "seconds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/google_protobuf_timestamp.py b/graphiant_sdk/models/google_protobuf_timestamp.py index 0cd1c69e..4145470c 100644 --- a/graphiant_sdk/models/google_protobuf_timestamp.py +++ b/graphiant_sdk/models/google_protobuf_timestamp.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, 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 GoogleProtobufTimestamp(BaseModel): """ GoogleProtobufTimestamp """ # noqa: E501 - nanos: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - seconds: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + nanos: Optional[StrictInt] = None + seconds: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["nanos", "seconds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/iam_counts.py b/graphiant_sdk/models/iam_counts.py index 3cd05b3e..ff260439 100644 --- a/graphiant_sdk/models/iam_counts.py +++ b/graphiant_sdk/models/iam_counts.py @@ -21,30 +21,28 @@ 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 IamCounts(BaseModel): """ IamCounts """ # noqa: E501 - active_down_count: Optional[StrictInt] = Field(default=None, alias="activeDownCount", json_schema_extra={"examples": [1234567891011]}) - active_up_count: Optional[StrictInt] = Field(default=None, alias="activeUpCount", json_schema_extra={"examples": [1234567891011]}) - deactivated_down_count: Optional[StrictInt] = Field(default=None, alias="deactivatedDownCount", json_schema_extra={"examples": [1234567891011]}) - down_sites_count: Optional[StrictInt] = Field(default=None, alias="downSitesCount", json_schema_extra={"examples": [1234567891011]}) - empty_sites_count: Optional[StrictInt] = Field(default=None, alias="emptySitesCount", json_schema_extra={"examples": [1234567891011]}) - impaired_sites_count: Optional[StrictInt] = Field(default=None, alias="impairedSitesCount", json_schema_extra={"examples": [1234567891011]}) - staging_down_count: Optional[StrictInt] = Field(default=None, alias="stagingDownCount", json_schema_extra={"examples": [1234567891011]}) - staging_up_count: Optional[StrictInt] = Field(default=None, alias="stagingUpCount", json_schema_extra={"examples": [1234567891011]}) - total_customers: Optional[StrictInt] = Field(default=None, alias="totalCustomers", json_schema_extra={"examples": [1234567891011]}) - total_edges: Optional[StrictInt] = Field(default=None, alias="totalEdges", json_schema_extra={"examples": [1234567891011]}) - total_msps: Optional[StrictInt] = Field(default=None, alias="totalMsps", json_schema_extra={"examples": [1234567891011]}) - total_sites: Optional[StrictInt] = Field(default=None, alias="totalSites", json_schema_extra={"examples": [1234567891011]}) - up_sites_count: Optional[StrictInt] = Field(default=None, alias="upSitesCount", json_schema_extra={"examples": [1234567891011]}) + active_down_count: Optional[StrictInt] = Field(default=None, alias="activeDownCount") + active_up_count: Optional[StrictInt] = Field(default=None, alias="activeUpCount") + deactivated_down_count: Optional[StrictInt] = Field(default=None, alias="deactivatedDownCount") + down_sites_count: Optional[StrictInt] = Field(default=None, alias="downSitesCount") + empty_sites_count: Optional[StrictInt] = Field(default=None, alias="emptySitesCount") + impaired_sites_count: Optional[StrictInt] = Field(default=None, alias="impairedSitesCount") + staging_down_count: Optional[StrictInt] = Field(default=None, alias="stagingDownCount") + staging_up_count: Optional[StrictInt] = Field(default=None, alias="stagingUpCount") + total_customers: Optional[StrictInt] = Field(default=None, alias="totalCustomers") + total_edges: Optional[StrictInt] = Field(default=None, alias="totalEdges") + total_msps: Optional[StrictInt] = Field(default=None, alias="totalMsps") + total_sites: Optional[StrictInt] = Field(default=None, alias="totalSites") + up_sites_count: Optional[StrictInt] = Field(default=None, alias="upSitesCount") __properties: ClassVar[List[str]] = ["activeDownCount", "activeUpCount", "deactivatedDownCount", "downSitesCount", "emptySitesCount", "impairedSitesCount", "stagingDownCount", "stagingUpCount", "totalCustomers", "totalEdges", "totalMsps", "totalSites", "upSitesCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/iam_customer.py b/graphiant_sdk/models/iam_customer.py index 801f7108..fcb08c37 100644 --- a/graphiant_sdk/models/iam_customer.py +++ b/graphiant_sdk/models/iam_customer.py @@ -22,24 +22,22 @@ from graphiant_sdk.models.iam_counts import IamCounts from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IamCustomer(BaseModel): """ IamCustomer """ # noqa: E501 - admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail", json_schema_extra={"examples": ["example string"]}) - company_name: Optional[StrictStr] = Field(default=None, alias="companyName", json_schema_extra={"examples": ["example string"]}) + admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail") + company_name: Optional[StrictStr] = Field(default=None, alias="companyName") counts: Optional[IamCounts] = None - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - impersonation_enabled: Optional[StrictBool] = Field(default=None, alias="impersonationEnabled", json_schema_extra={"examples": [True]}) - marketplace_id: Optional[StrictStr] = Field(default=None, alias="marketplaceId", json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + impersonation_enabled: Optional[StrictBool] = Field(default=None, alias="impersonationEnabled") + marketplace_id: Optional[StrictStr] = Field(default=None, alias="marketplaceId") __properties: ClassVar[List[str]] = ["adminEmail", "companyName", "counts", "description", "enterpriseId", "impersonationEnabled", "marketplaceId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/iam_enterprise.py b/graphiant_sdk/models/iam_enterprise.py index a563e6d3..f876e041 100644 --- a/graphiant_sdk/models/iam_enterprise.py +++ b/graphiant_sdk/models/iam_enterprise.py @@ -24,37 +24,35 @@ from graphiant_sdk.models.iam_customer import IamCustomer from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IamEnterprise(BaseModel): """ IamEnterprise """ # noqa: E501 - accept_eula: Optional[StrictBool] = Field(default=None, alias="acceptEula", json_schema_extra={"examples": [True]}) - account_type: Optional[StrictStr] = Field(default=None, alias="accountType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail", json_schema_extra={"examples": ["example string"]}) - cloud_provider: Optional[StrictStr] = Field(default=None, alias="cloudProvider", json_schema_extra={"examples": ["ENUM_VALUE"]}) - company_name: Optional[StrictStr] = Field(default=None, alias="companyName", json_schema_extra={"examples": ["example string"]}) + accept_eula: Optional[StrictBool] = Field(default=None, alias="acceptEula") + account_type: Optional[StrictStr] = Field(default=None, alias="accountType") + admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail") + cloud_provider: Optional[StrictStr] = Field(default=None, alias="cloudProvider") + company_name: Optional[StrictStr] = Field(default=None, alias="companyName") counts: Optional[IamCounts] = None - credit_limit: Optional[StrictInt] = Field(default=None, alias="creditLimit", json_schema_extra={"examples": [123]}) + credit_limit: Optional[StrictInt] = Field(default=None, alias="creditLimit") customers: Optional[Dict[str, IamCustomer]] = None - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) + description: Optional[StrictStr] = None + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") eula_agreement_date: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="eulaAgreementDate") - impersonation_enabled: Optional[StrictBool] = Field(default=None, alias="impersonationEnabled", json_schema_extra={"examples": [True]}) - logo: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - marketplace_id: Optional[StrictStr] = Field(default=None, alias="marketplaceId", json_schema_extra={"examples": ["example string"]}) - parent_company_name: Optional[StrictStr] = Field(default=None, alias="parentCompanyName", json_schema_extra={"examples": ["example string"]}) - parent_enterprise_id: Optional[StrictInt] = Field(default=None, alias="parentEnterpriseId", json_schema_extra={"examples": [1234567891011]}) - portal_banner: Optional[StrictStr] = Field(default=None, alias="portalBanner", json_schema_extra={"examples": ["example string"]}) - proxy_tenant_id: Optional[StrictInt] = Field(default=None, alias="proxyTenantId", json_schema_extra={"examples": [1234567891011]}) - small_logo: Optional[StrictStr] = Field(default=None, alias="smallLogo", json_schema_extra={"examples": ["example string"]}) - token_expiry: Optional[StrictStr] = Field(default=None, alias="tokenExpiry", json_schema_extra={"examples": ["example string"]}) + impersonation_enabled: Optional[StrictBool] = Field(default=None, alias="impersonationEnabled") + logo: Optional[StrictStr] = None + marketplace_id: Optional[StrictStr] = Field(default=None, alias="marketplaceId") + parent_company_name: Optional[StrictStr] = Field(default=None, alias="parentCompanyName") + parent_enterprise_id: Optional[StrictInt] = Field(default=None, alias="parentEnterpriseId") + portal_banner: Optional[StrictStr] = Field(default=None, alias="portalBanner") + proxy_tenant_id: Optional[StrictInt] = Field(default=None, alias="proxyTenantId") + small_logo: Optional[StrictStr] = Field(default=None, alias="smallLogo") + token_expiry: Optional[StrictStr] = Field(default=None, alias="tokenExpiry") __properties: ClassVar[List[str]] = ["acceptEula", "accountType", "adminEmail", "cloudProvider", "companyName", "counts", "creditLimit", "customers", "description", "enterpriseId", "eulaAgreementDate", "impersonationEnabled", "logo", "marketplaceId", "parentCompanyName", "parentEnterpriseId", "portalBanner", "proxyTenantId", "smallLogo", "tokenExpiry"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -66,7 +64,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/iam_enterprise_permissions.py b/graphiant_sdk/models/iam_enterprise_permissions.py index 17fa69ee..6cb89a41 100644 --- a/graphiant_sdk/models/iam_enterprise_permissions.py +++ b/graphiant_sdk/models/iam_enterprise_permissions.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.common_permissions import CommonPermissions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IamEnterprisePermissions(BaseModel): """ IamEnterprisePermissions """ # noqa: E501 - group_type: Optional[StrictStr] = Field(default=None, description=" (required)", alias="groupType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + group_type: Optional[StrictStr] = Field(default=None, description=" (required)", alias="groupType") permissions: Optional[CommonPermissions] = None __properties: ClassVar[List[str]] = ["groupType", "permissions"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/iam_failed_user.py b/graphiant_sdk/models/iam_failed_user.py index c63e59d0..9fad96ed 100644 --- a/graphiant_sdk/models/iam_failed_user.py +++ b/graphiant_sdk/models/iam_failed_user.py @@ -21,19 +21,17 @@ 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 IamFailedUser(BaseModel): """ IamFailedUser """ # noqa: E501 - reason: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - user_id: Optional[StrictStr] = Field(default=None, alias="userId", json_schema_extra={"examples": ["example string"]}) + reason: Optional[StrictStr] = None + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["reason", "userId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/iam_group.py b/graphiant_sdk/models/iam_group.py index 658f4b9f..6f7acae6 100644 --- a/graphiant_sdk/models/iam_group.py +++ b/graphiant_sdk/models/iam_group.py @@ -23,26 +23,24 @@ from graphiant_sdk.models.iam_enterprise_permissions import IamEnterprisePermissions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IamGroup(BaseModel): """ IamGroup """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None enterprise_ids: Optional[List[StrictInt]] = Field(default=None, alias="enterpriseIds") enterprise_permissions: Optional[Dict[str, IamEnterprisePermissions]] = Field(default=None, alias="enterprisePermissions") - group_type: Optional[StrictStr] = Field(default=None, alias="groupType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + group_type: Optional[StrictStr] = Field(default=None, alias="groupType") + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None permissions: Optional[CommonPermissions] = None - time_window_end: Optional[StrictInt] = Field(default=None, alias="timeWindowEnd", json_schema_extra={"examples": [1234567891011]}) - time_window_start: Optional[StrictInt] = Field(default=None, alias="timeWindowStart", json_schema_extra={"examples": [1234567891011]}) + time_window_end: Optional[StrictInt] = Field(default=None, alias="timeWindowEnd") + time_window_start: Optional[StrictInt] = Field(default=None, alias="timeWindowStart") __properties: ClassVar[List[str]] = ["description", "enterpriseIds", "enterprisePermissions", "groupType", "id", "name", "permissions", "timeWindowEnd", "timeWindowStart"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_app_bandwidth_stats.py b/graphiant_sdk/models/ipfix_app_bandwidth_stats.py index e6fc8d19..367c4032 100644 --- a/graphiant_sdk/models/ipfix_app_bandwidth_stats.py +++ b/graphiant_sdk/models/ipfix_app_bandwidth_stats.py @@ -22,20 +22,18 @@ 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 IpfixAppBandwidthStats(BaseModel): """ IpfixAppBandwidthStats """ # noqa: E501 - dl_bw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Bandwidth in kilo bits per second", alias="dlBw", json_schema_extra={"examples": [123.45]}) + dl_bw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Bandwidth in kilo bits per second", alias="dlBw") ts: Optional[GoogleProtobufTimestamp] = None - ul_bw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Bandwidth in kilo bits per second", alias="ulBw", json_schema_extra={"examples": [123.45]}) + ul_bw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Bandwidth in kilo bits per second", alias="ulBw") __properties: ClassVar[List[str]] = ["dlBw", "ts", "ulBw"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_app_flow_table.py b/graphiant_sdk/models/ipfix_app_flow_table.py index a1a7db36..91f56428 100644 --- a/graphiant_sdk/models/ipfix_app_flow_table.py +++ b/graphiant_sdk/models/ipfix_app_flow_table.py @@ -23,32 +23,30 @@ 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 IpfixAppFlowTable(BaseModel): """ IpfixAppFlowTable """ # noqa: E501 - dest_ip: Optional[StrictStr] = Field(default=None, alias="destIp", json_schema_extra={"examples": ["example string"]}) - dest_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destPort", json_schema_extra={"examples": [123]}) - dl_circuit_name: Optional[StrictStr] = Field(default=None, alias="dlCircuitName", json_schema_extra={"examples": ["example string"]}) - dl_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Down link application usage in MB", alias="dlUsage", json_schema_extra={"examples": [123.45]}) - egress_local_core_region: Optional[StrictStr] = Field(default=None, alias="egressLocalCoreRegion", json_schema_extra={"examples": ["example string"]}) - ingress_local_core_region: Optional[StrictStr] = Field(default=None, alias="ingressLocalCoreRegion", json_schema_extra={"examples": ["example string"]}) - lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": ["example string"]}) - protocol: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - remote_core_region: Optional[StrictStr] = Field(default=None, alias="remoteCoreRegion", json_schema_extra={"examples": ["example string"]}) - sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass", json_schema_extra={"examples": ["ENUM_VALUE"]}) - src_ip: Optional[StrictStr] = Field(default=None, alias="srcIp", json_schema_extra={"examples": ["example string"]}) - src_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="srcPort", json_schema_extra={"examples": [123]}) + dest_ip: Optional[StrictStr] = Field(default=None, alias="destIp") + dest_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destPort") + dl_circuit_name: Optional[StrictStr] = Field(default=None, alias="dlCircuitName") + dl_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Down link application usage in MB", alias="dlUsage") + egress_local_core_region: Optional[StrictStr] = Field(default=None, alias="egressLocalCoreRegion") + ingress_local_core_region: Optional[StrictStr] = Field(default=None, alias="ingressLocalCoreRegion") + lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment") + protocol: Optional[StrictStr] = None + remote_core_region: Optional[StrictStr] = Field(default=None, alias="remoteCoreRegion") + sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass") + src_ip: Optional[StrictStr] = Field(default=None, alias="srcIp") + src_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="srcPort") ts: Optional[GoogleProtobufTimestamp] = None - ul_circuit_name: Optional[StrictStr] = Field(default=None, alias="ulCircuitName", json_schema_extra={"examples": ["example string"]}) - ul_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Up link application usage in MB", alias="ulUsage", json_schema_extra={"examples": [123.45]}) + ul_circuit_name: Optional[StrictStr] = Field(default=None, alias="ulCircuitName") + ul_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Up link application usage in MB", alias="ulUsage") __properties: ClassVar[List[str]] = ["destIp", "destPort", "dlCircuitName", "dlUsage", "egressLocalCoreRegion", "ingressLocalCoreRegion", "lanSegment", "protocol", "remoteCoreRegion", "slaClass", "srcIp", "srcPort", "ts", "ulCircuitName", "ulUsage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,7 +58,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_app_flow_table_selector.py b/graphiant_sdk/models/ipfix_app_flow_table_selector.py index e3836fc5..6879d0a1 100644 --- a/graphiant_sdk/models/ipfix_app_flow_table_selector.py +++ b/graphiant_sdk/models/ipfix_app_flow_table_selector.py @@ -21,7 +21,6 @@ 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 IpfixAppFlowTableSelector(BaseModel): """ @@ -32,8 +31,7 @@ class IpfixAppFlowTableSelector(BaseModel): __properties: ClassVar[List[str]] = ["circuitName", "slaClass"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_app_incidents.py b/graphiant_sdk/models/ipfix_app_incidents.py index e2089333..6a79021c 100644 --- a/graphiant_sdk/models/ipfix_app_incidents.py +++ b/graphiant_sdk/models/ipfix_app_incidents.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.ipfix_app_incidents_data import IpfixAppIncidentsData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixAppIncidents(BaseModel): """ @@ -32,8 +31,7 @@ class IpfixAppIncidents(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_app_incidents_data.py b/graphiant_sdk/models/ipfix_app_incidents_data.py index 379684ae..f3b75ba6 100644 --- a/graphiant_sdk/models/ipfix_app_incidents_data.py +++ b/graphiant_sdk/models/ipfix_app_incidents_data.py @@ -23,20 +23,18 @@ 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 IpfixAppIncidentsData(BaseModel): """ IpfixAppIncidentsData """ # noqa: E501 - app_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="number of apps running in this time bucket", alias="appCount", json_schema_extra={"examples": [123]}) - app_status: Optional[StrictStr] = Field(default=None, alias="appStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + app_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="number of apps running in this time bucket", alias="appCount") + app_status: Optional[StrictStr] = Field(default=None, alias="appStatus") ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["appCount", "appStatus", "ts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_app_state_summary_count.py b/graphiant_sdk/models/ipfix_app_state_summary_count.py index 958851cf..0dfc9566 100644 --- a/graphiant_sdk/models/ipfix_app_state_summary_count.py +++ b/graphiant_sdk/models/ipfix_app_state_summary_count.py @@ -25,7 +25,6 @@ from graphiant_sdk.models.statsmon_v2_circuit_incidents import StatsmonV2CircuitIncidents from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixAppStateSummaryCount(BaseModel): """ @@ -33,15 +32,14 @@ class IpfixAppStateSummaryCount(BaseModel): """ # noqa: E501 app_health: Optional[Dict[str, Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, alias="appHealth") app_incidents: Optional[IpfixAppIncidents] = Field(default=None, alias="appIncidents") - apps_on_device_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appsOnDeviceCount", json_schema_extra={"examples": [123]}) - average_qoe: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageQoe", json_schema_extra={"examples": [123.45]}) + apps_on_device_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appsOnDeviceCount") + average_qoe: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageQoe") circuits_incidents: Optional[List[StatsmonCircuitsIncidents]] = Field(default=None, alias="circuitsIncidents") circuits_incidentsv2: Optional[List[StatsmonV2CircuitIncidents]] = Field(default=None, alias="circuitsIncidentsv2") __properties: ClassVar[List[str]] = ["appHealth", "appIncidents", "appsOnDeviceCount", "averageQoe", "circuitsIncidents", "circuitsIncidentsv2"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_app_topology_selector.py b/graphiant_sdk/models/ipfix_app_topology_selector.py index 80efe252..17367643 100644 --- a/graphiant_sdk/models/ipfix_app_topology_selector.py +++ b/graphiant_sdk/models/ipfix_app_topology_selector.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixAppTopologySelector(BaseModel): """ IpfixAppTopologySelector """ # noqa: E501 - app_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Filter by app ID", alias="appId", json_schema_extra={"examples": [123]}) - app_name: Optional[StrictStr] = Field(default=None, description="Filter by application name", alias="appName", json_schema_extra={"examples": ["example string"]}) - sla_class: Optional[StrictStr] = Field(default=None, description="Filter by SLA class", alias="slaClass", json_schema_extra={"examples": ["ENUM_VALUE"]}) + app_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Filter by app ID", alias="appId") + app_name: Optional[StrictStr] = Field(default=None, description="Filter by application name", alias="appName") + sla_class: Optional[StrictStr] = Field(default=None, description="Filter by SLA class", alias="slaClass") __properties: ClassVar[List[str]] = ["appId", "appName", "slaClass"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_app_utilization_summary.py b/graphiant_sdk/models/ipfix_app_utilization_summary.py index 1f245b8a..f8d7b316 100644 --- a/graphiant_sdk/models/ipfix_app_utilization_summary.py +++ b/graphiant_sdk/models/ipfix_app_utilization_summary.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixAppUtilizationSummary(BaseModel): """ IpfixAppUtilizationSummary """ # noqa: E501 - app_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appId", json_schema_extra={"examples": [123]}) - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - usage: Optional[StrictInt] = Field(default=None, description="application usage in kilo bytes", json_schema_extra={"examples": [1234567891011]}) + app_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appId") + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + usage: Optional[StrictInt] = Field(default=None, description="application usage in kilo bytes") __properties: ClassVar[List[str]] = ["appId", "appName", "usage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_app_visualization.py b/graphiant_sdk/models/ipfix_app_visualization.py index 712337e6..11cbd7a2 100644 --- a/graphiant_sdk/models/ipfix_app_visualization.py +++ b/graphiant_sdk/models/ipfix_app_visualization.py @@ -23,22 +23,20 @@ from graphiant_sdk.models.ipfix_circuit_metrics import IpfixCircuitMetrics from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixAppVisualization(BaseModel): """ IpfixAppVisualization """ # noqa: E501 - app_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appId", json_schema_extra={"examples": [123]}) - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) + app_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appId") + app_name: Optional[StrictStr] = Field(default=None, alias="appName") circuit_availability: Optional[Dict[str, Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, alias="circuitAvailability") circuit_map: Optional[Dict[str, IpfixCircuitMetrics]] = Field(default=None, alias="circuitMap") - current_status: Optional[StrictStr] = Field(default=None, description="current status of the app.", alias="currentStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + current_status: Optional[StrictStr] = Field(default=None, description="current status of the app.", alias="currentStatus") __properties: ClassVar[List[str]] = ["appId", "appName", "circuitAvailability", "circuitMap", "currentStatus"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_circuit_metrics.py b/graphiant_sdk/models/ipfix_circuit_metrics.py index a3f37016..509c3816 100644 --- a/graphiant_sdk/models/ipfix_circuit_metrics.py +++ b/graphiant_sdk/models/ipfix_circuit_metrics.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.ipfix_twamp_metrics import IpfixTwampMetrics from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixCircuitMetrics(BaseModel): """ IpfixCircuitMetrics """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="circuit name", json_schema_extra={"examples": ["example string"]}) - sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass", json_schema_extra={"examples": ["ENUM_VALUE"]}) + name: Optional[StrictStr] = Field(default=None, description="circuit name") + sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass") stats: Optional[IpfixTwampMetrics] = None - usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="usage of the circuit by the application in kilo bytes", json_schema_extra={"examples": [123.45]}) - usage_pct: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usagePct", json_schema_extra={"examples": [12.34]}) + usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="usage of the circuit by the application in kilo bytes") + usage_pct: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usagePct") __properties: ClassVar[List[str]] = ["name", "slaClass", "stats", "usage", "usagePct"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_client_usage_summary.py b/graphiant_sdk/models/ipfix_client_usage_summary.py index 214a576f..876b0682 100644 --- a/graphiant_sdk/models/ipfix_client_usage_summary.py +++ b/graphiant_sdk/models/ipfix_client_usage_summary.py @@ -21,19 +21,17 @@ 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 IpfixClientUsageSummary(BaseModel): """ IpfixClientUsageSummary """ # noqa: E501 - client_ip_address: Optional[StrictStr] = Field(default=None, alias="clientIpAddress", json_schema_extra={"examples": ["example string"]}) - usage: Optional[StrictInt] = Field(default=None, description="data used in kilo bytes", json_schema_extra={"examples": [1234567891011]}) + client_ip_address: Optional[StrictStr] = Field(default=None, alias="clientIpAddress") + usage: Optional[StrictInt] = Field(default=None, description="data used in kilo bytes") __properties: ClassVar[List[str]] = ["clientIpAddress", "usage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_connection_map.py b/graphiant_sdk/models/ipfix_connection_map.py index 9486978b..07ae2a00 100644 --- a/graphiant_sdk/models/ipfix_connection_map.py +++ b/graphiant_sdk/models/ipfix_connection_map.py @@ -22,7 +22,6 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixConnectionMap(BaseModel): """ @@ -30,12 +29,11 @@ class IpfixConnectionMap(BaseModel): """ # noqa: E501 connections: Optional[Dict[str, Annotated[int, Field(strict=True, ge=0)]]] = None connections_v2: Optional[Dict[str, Union[StrictFloat, StrictInt]]] = Field(default=None, alias="connectionsV2") - name: Optional[StrictStr] = Field(default=None, description="the name of the connection", json_schema_extra={"examples": ["Site 1"]}) + name: Optional[StrictStr] = Field(default=None, description="the name of the connection") __properties: ClassVar[List[str]] = ["connections", "connectionsV2", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_entity_usage.py b/graphiant_sdk/models/ipfix_entity_usage.py index 26d8e15f..d88201e5 100644 --- a/graphiant_sdk/models/ipfix_entity_usage.py +++ b/graphiant_sdk/models/ipfix_entity_usage.py @@ -21,20 +21,18 @@ 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 IpfixEntityUsage(BaseModel): """ IpfixEntityUsage """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, description="id of the entity", json_schema_extra={"examples": [1]}) - name: Optional[StrictStr] = Field(default=None, description="name of the entity", json_schema_extra={"examples": ["Site 1"]}) - usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="usage in kbps", json_schema_extra={"examples": [1000000]}) + id: Optional[StrictInt] = Field(default=None, description="id of the entity") + name: Optional[StrictStr] = Field(default=None, description="name of the entity") + usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="usage in kbps") __properties: ClassVar[List[str]] = ["id", "name", "usage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_nat_entry.py b/graphiant_sdk/models/ipfix_nat_entry.py index 026b6864..9f1e0567 100644 --- a/graphiant_sdk/models/ipfix_nat_entry.py +++ b/graphiant_sdk/models/ipfix_nat_entry.py @@ -22,29 +22,27 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixNatEntry(BaseModel): """ IpfixNatEntry """ # noqa: E501 - destination_ip_address: Optional[StrictStr] = Field(default=None, alias="destinationIpAddress", json_schema_extra={"examples": ["example string"]}) - destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": [123]}) - inside_global_ip_address: Optional[StrictStr] = Field(default=None, alias="insideGlobalIpAddress", json_schema_extra={"examples": ["example string"]}) - inside_global_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="insideGlobalPort", json_schema_extra={"examples": [123]}) - inside_local_ip_address: Optional[StrictStr] = Field(default=None, alias="insideLocalIpAddress", json_schema_extra={"examples": ["example string"]}) - inside_local_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="insideLocalPort", json_schema_extra={"examples": [123]}) - nat_type: Optional[StrictStr] = Field(default=None, alias="natType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - outside_global_ip_address: Optional[StrictStr] = Field(default=None, alias="outsideGlobalIpAddress", json_schema_extra={"examples": ["example string"]}) - outside_global_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="outsideGlobalPort", json_schema_extra={"examples": [123]}) - pre_destination_ip_address: Optional[StrictStr] = Field(default=None, alias="preDestinationIpAddress", json_schema_extra={"examples": ["example string"]}) - pre_destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="preDestinationPort", json_schema_extra={"examples": [123]}) - vrf_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="vrfId", json_schema_extra={"examples": [12345678910]}) + destination_ip_address: Optional[StrictStr] = Field(default=None, alias="destinationIpAddress") + destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort") + inside_global_ip_address: Optional[StrictStr] = Field(default=None, alias="insideGlobalIpAddress") + inside_global_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="insideGlobalPort") + inside_local_ip_address: Optional[StrictStr] = Field(default=None, alias="insideLocalIpAddress") + inside_local_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="insideLocalPort") + nat_type: Optional[StrictStr] = Field(default=None, alias="natType") + outside_global_ip_address: Optional[StrictStr] = Field(default=None, alias="outsideGlobalIpAddress") + outside_global_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="outsideGlobalPort") + pre_destination_ip_address: Optional[StrictStr] = Field(default=None, alias="preDestinationIpAddress") + pre_destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="preDestinationPort") + vrf_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="vrfId") __properties: ClassVar[List[str]] = ["destinationIpAddress", "destinationPort", "insideGlobalIpAddress", "insideGlobalPort", "insideLocalIpAddress", "insideLocalPort", "natType", "outsideGlobalIpAddress", "outsideGlobalPort", "preDestinationIpAddress", "preDestinationPort", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_nat_entry_filter.py b/graphiant_sdk/models/ipfix_nat_entry_filter.py index d08c6e7a..49e3c48c 100644 --- a/graphiant_sdk/models/ipfix_nat_entry_filter.py +++ b/graphiant_sdk/models/ipfix_nat_entry_filter.py @@ -22,25 +22,23 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixNatEntryFilter(BaseModel): """ IpfixNatEntryFilter """ # noqa: E501 - destination_ip: Optional[StrictStr] = Field(default=None, alias="destinationIp", json_schema_extra={"examples": ["example string"]}) - destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": [123]}) - inside_local_ip: Optional[StrictStr] = Field(default=None, alias="insideLocalIp", json_schema_extra={"examples": ["example string"]}) - inside_local_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="insideLocalPort", json_schema_extra={"examples": [123]}) - nat_type: Optional[StrictStr] = Field(default=None, alias="natType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - outside_global_ip: Optional[StrictStr] = Field(default=None, alias="outsideGlobalIp", json_schema_extra={"examples": ["example string"]}) - outside_global_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="outsideGlobalPort", json_schema_extra={"examples": [123]}) + destination_ip: Optional[StrictStr] = Field(default=None, alias="destinationIp") + destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort") + inside_local_ip: Optional[StrictStr] = Field(default=None, alias="insideLocalIp") + inside_local_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="insideLocalPort") + nat_type: Optional[StrictStr] = Field(default=None, alias="natType") + outside_global_ip: Optional[StrictStr] = Field(default=None, alias="outsideGlobalIp") + outside_global_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="outsideGlobalPort") vrf_ids: Optional[List[Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, alias="vrfIds") __properties: ClassVar[List[str]] = ["destinationIp", "destinationPort", "insideLocalIp", "insideLocalPort", "natType", "outsideGlobalIp", "outsideGlobalPort", "vrfIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_nat_usage.py b/graphiant_sdk/models/ipfix_nat_usage.py index c2f28018..82e32d11 100644 --- a/graphiant_sdk/models/ipfix_nat_usage.py +++ b/graphiant_sdk/models/ipfix_nat_usage.py @@ -22,22 +22,20 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixNatUsage(BaseModel): """ IpfixNatUsage """ # noqa: E501 - current_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="currentCount", json_schema_extra={"examples": [12345678910]}) - current_count_extranet: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="currentCountExtranet", json_schema_extra={"examples": [12345678910]}) - current_count_pat: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="currentCountPat", json_schema_extra={"examples": [12345678910]}) - current_count_static: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="currentCountStatic", json_schema_extra={"examples": [12345678910]}) - max_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxCount", json_schema_extra={"examples": [12345678910]}) + current_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="currentCount") + current_count_extranet: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="currentCountExtranet") + current_count_pat: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="currentCountPat") + current_count_static: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="currentCountStatic") + max_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxCount") __properties: ClassVar[List[str]] = ["currentCount", "currentCountExtranet", "currentCountPat", "currentCountStatic", "maxCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_network_topology.py b/graphiant_sdk/models/ipfix_network_topology.py index 9589dba9..0857858f 100644 --- a/graphiant_sdk/models/ipfix_network_topology.py +++ b/graphiant_sdk/models/ipfix_network_topology.py @@ -26,7 +26,6 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixNetworkTopology(BaseModel): """ @@ -35,14 +34,13 @@ class IpfixNetworkTopology(BaseModel): circuit_status: Optional[Dict[str, Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, alias="circuitStatus") delta: Optional[IpfixNetworkTopologyDelta] = None edges: Optional[List[ManaV2ConnectivityGraphEdge]] = None - flows: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Application flow count", json_schema_extra={"examples": [123]}) + flows: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Application flow count") nodes: Optional[List[ManaV2ConnectivityGraphNode]] = None time_window: Optional[StatsmonTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["circuitStatus", "delta", "edges", "flows", "nodes", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_network_topology_delta.py b/graphiant_sdk/models/ipfix_network_topology_delta.py index e9c65bbe..febf11d8 100644 --- a/graphiant_sdk/models/ipfix_network_topology_delta.py +++ b/graphiant_sdk/models/ipfix_network_topology_delta.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_connectivity_graph_node import ManaV2ConnectivityGraphNode from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class IpfixNetworkTopologyDelta(BaseModel): """ @@ -36,8 +35,7 @@ class IpfixNetworkTopologyDelta(BaseModel): __properties: ClassVar[List[str]] = ["edgesAdded", "edgesDeleted", "nodesAdded", "nodesDeleted"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_stats.py b/graphiant_sdk/models/ipfix_stats.py index 4ae01b9c..2c264af4 100644 --- a/graphiant_sdk/models/ipfix_stats.py +++ b/graphiant_sdk/models/ipfix_stats.py @@ -22,20 +22,18 @@ 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 IpfixStats(BaseModel): """ IpfixStats """ # noqa: E501 - avg_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Average service usage in kbps", alias="avgUsage", json_schema_extra={"examples": [1000000]}) - peak_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Peak service usage in kbps", alias="peakUsage", json_schema_extra={"examples": [1000000]}) + avg_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Average service usage in kbps", alias="avgUsage") + peak_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Peak service usage in kbps", alias="peakUsage") ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["avgUsage", "peakUsage", "ts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_time_window.py b/graphiant_sdk/models/ipfix_time_window.py index 6afcc520..e5a09e59 100644 --- a/graphiant_sdk/models/ipfix_time_window.py +++ b/graphiant_sdk/models/ipfix_time_window.py @@ -23,20 +23,18 @@ 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 IpfixTimeWindow(BaseModel): """ IpfixTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") __properties: ClassVar[List[str]] = ["bucketSizeSec", "oldTs", "recentTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/ipfix_twamp_metrics.py b/graphiant_sdk/models/ipfix_twamp_metrics.py index 183a1745..2094803f 100644 --- a/graphiant_sdk/models/ipfix_twamp_metrics.py +++ b/graphiant_sdk/models/ipfix_twamp_metrics.py @@ -21,23 +21,21 @@ 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 IpfixTwampMetrics(BaseModel): """ IpfixTwampMetrics """ # noqa: E501 - health_avg: Optional[StrictStr] = Field(default=None, description="calculated health average (over time window) ", alias="healthAvg", json_schema_extra={"examples": ["ENUM_VALUE"]}) - jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Jitter in ms", json_schema_extra={"examples": [123.45]}) - latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Latency in ms", json_schema_extra={"examples": [123.45]}) - loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Loss in percentage", json_schema_extra={"examples": [12.34]}) - mos: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - status: Optional[StrictStr] = Field(default=None, description="calculated status (last measured value)", json_schema_extra={"examples": ["ENUM_VALUE"]}) + health_avg: Optional[StrictStr] = Field(default=None, description="calculated health average (over time window) ", alias="healthAvg") + jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Jitter in ms") + latency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Latency in ms") + loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Loss in percentage") + mos: Optional[Union[StrictFloat, StrictInt]] = None + status: Optional[StrictStr] = Field(default=None, description="calculated status (last measured value)") __properties: ClassVar[List[str]] = ["healthAvg", "jitter", "latency", "loss", "mos", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_allocation_conversion_holder.py b/graphiant_sdk/models/mana_v2_allocation_conversion_holder.py index 38ab48ee..ac144aaa 100644 --- a/graphiant_sdk/models/mana_v2_allocation_conversion_holder.py +++ b/graphiant_sdk/models/mana_v2_allocation_conversion_holder.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_allocation_conversion_holder_bin import ManaV2AllocationConversionHolderBin from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2AllocationConversionHolder(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2AllocationConversionHolder(BaseModel): __properties: ClassVar[List[str]] = ["bins"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_allocation_conversion_holder_bin.py b/graphiant_sdk/models/mana_v2_allocation_conversion_holder_bin.py index c8414947..a5253d95 100644 --- a/graphiant_sdk/models/mana_v2_allocation_conversion_holder_bin.py +++ b/graphiant_sdk/models/mana_v2_allocation_conversion_holder_bin.py @@ -21,23 +21,21 @@ 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 ManaV2AllocationConversionHolderBin(BaseModel): """ ManaV2AllocationConversionHolderBin """ # noqa: E501 - allocation_upper_bound: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Int32 value indicating the conversion rates apply from the prior highest upper bound to this upper bound", alias="allocationUpperBound", json_schema_extra={"examples": [12.34]}) - core_conversion_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Conversion rate from gigabytes per second to Graphiant credits for connections to core devices", alias="coreConversionFactor", json_schema_extra={"examples": [12.34]}) - core_conversion_rate: Optional[StrictInt] = Field(default=None, alias="coreConversionRate", json_schema_extra={"examples": [123]}) - gw_conversion_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Conversion rate from gigabytes per second to Graphiant credits for connections to gateway devices", alias="gwConversionFactor", json_schema_extra={"examples": [12.34]}) - gw_conversion_rate: Optional[StrictInt] = Field(default=None, alias="gwConversionRate", json_schema_extra={"examples": [123]}) - is_private: Optional[StrictBool] = Field(default=None, description="True-only flag indicating the conversion rates apply within a private context such as in-country", alias="isPrivate", json_schema_extra={"examples": [True]}) + allocation_upper_bound: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Int32 value indicating the conversion rates apply from the prior highest upper bound to this upper bound", alias="allocationUpperBound") + core_conversion_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Conversion rate from gigabytes per second to Graphiant credits for connections to core devices", alias="coreConversionFactor") + core_conversion_rate: Optional[StrictInt] = Field(default=None, alias="coreConversionRate") + gw_conversion_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Conversion rate from gigabytes per second to Graphiant credits for connections to gateway devices", alias="gwConversionFactor") + gw_conversion_rate: Optional[StrictInt] = Field(default=None, alias="gwConversionRate") + is_private: Optional[StrictBool] = Field(default=None, description="True-only flag indicating the conversion rates apply within a private context such as in-country", alias="isPrivate") __properties: ClassVar[List[str]] = ["allocationUpperBound", "coreConversionFactor", "coreConversionRate", "gwConversionFactor", "gwConversionRate", "isPrivate"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_app.py b/graphiant_sdk/models/mana_v2_app.py index ee8ea5f7..c4fe74b8 100644 --- a/graphiant_sdk/models/mana_v2_app.py +++ b/graphiant_sdk/models/mana_v2_app.py @@ -17,25 +17,23 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_app_identifier import ManaV2AppIdentifier from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2App(BaseModel): """ ManaV2App """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None identifier: Optional[ManaV2AppIdentifier] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "identifier", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_app_identifier.py b/graphiant_sdk/models/mana_v2_app_identifier.py index 325eeeaa..aa8a6cf0 100644 --- a/graphiant_sdk/models/mana_v2_app_identifier.py +++ b/graphiant_sdk/models/mana_v2_app_identifier.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2AppIdentifier(BaseModel): """ ManaV2AppIdentifier """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + id: Optional[StrictInt] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_app_list_config.py b/graphiant_sdk/models/mana_v2_app_list_config.py index 45d0b9b7..5204cefb 100644 --- a/graphiant_sdk/models/mana_v2_app_list_config.py +++ b/graphiant_sdk/models/mana_v2_app_list_config.py @@ -17,25 +17,23 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_app_identifier import ManaV2AppIdentifier from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2AppListConfig(BaseModel): """ ManaV2AppListConfig """ # noqa: E501 apps: Optional[List[ManaV2AppIdentifier]] = None - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["apps", "description", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_application_match_config.py b/graphiant_sdk/models/mana_v2_application_match_config.py index fc10642f..8eacd6e8 100644 --- a/graphiant_sdk/models/mana_v2_application_match_config.py +++ b/graphiant_sdk/models/mana_v2_application_match_config.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2ApplicationMatchConfig(BaseModel): """ ManaV2ApplicationMatchConfig """ # noqa: E501 - builtin: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - custom: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + builtin: Optional[StrictStr] = None + custom: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["builtin", "custom"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_application_profile.py b/graphiant_sdk/models/mana_v2_application_profile.py index 6ba0ddd5..2345642b 100644 --- a/graphiant_sdk/models/mana_v2_application_profile.py +++ b/graphiant_sdk/models/mana_v2_application_profile.py @@ -21,20 +21,18 @@ 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 ManaV2ApplicationProfile(BaseModel): """ ManaV2ApplicationProfile """ # noqa: E501 - port_range: Optional[StrictStr] = Field(default=None, description="Port Range", alias="portRange", json_schema_extra={"examples": ["example string"]}) + port_range: Optional[StrictStr] = Field(default=None, description="Port Range", alias="portRange") ports: List[StrictInt] - protocol: StrictInt = Field(description="Protocol for the application profile (required)", json_schema_extra={"examples": [123]}) + protocol: StrictInt = Field(description="Protocol for the application profile (required)") __properties: ClassVar[List[str]] = ["portRange", "ports", "protocol"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_assurance_config.py b/graphiant_sdk/models/mana_v2_assurance_config.py index 13c1dd5e..8a5175d4 100644 --- a/graphiant_sdk/models/mana_v2_assurance_config.py +++ b/graphiant_sdk/models/mana_v2_assurance_config.py @@ -22,23 +22,21 @@ from graphiant_sdk.models.mana_v2_bucket_app import ManaV2BucketApp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2AssuranceConfig(BaseModel): """ ManaV2AssuranceConfig """ # noqa: E501 apps: Optional[List[ManaV2BucketApp]] = None - flex_algo: Optional[StrictStr] = Field(default=None, alias="flexAlgo", json_schema_extra={"examples": ["example string"]}) + flex_algo: Optional[StrictStr] = Field(default=None, alias="flexAlgo") lan_names: Optional[List[StrictStr]] = Field(default=None, alias="lanNames") - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - site_list_id: Optional[StrictInt] = Field(default=None, alias="siteListId", json_schema_extra={"examples": [1234567891011]}) - use_all_sites: Optional[StrictBool] = Field(default=None, alias="useAllSites", json_schema_extra={"examples": [True]}) + name: Optional[StrictStr] = None + site_list_id: Optional[StrictInt] = Field(default=None, alias="siteListId") + use_all_sites: Optional[StrictBool] = Field(default=None, alias="useAllSites") __properties: ClassVar[List[str]] = ["apps", "flexAlgo", "lanNames", "name", "siteListId", "useAllSites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_aws_advance_settings.py b/graphiant_sdk/models/mana_v2_aws_advance_settings.py index 8eefd7a2..da73b5f8 100644 --- a/graphiant_sdk/models/mana_v2_aws_advance_settings.py +++ b/graphiant_sdk/models/mana_v2_aws_advance_settings.py @@ -21,23 +21,21 @@ 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 ManaV2AwsAdvanceSettings(BaseModel): """ ManaV2AwsAdvanceSettings """ # noqa: E501 - address_family: Optional[StrictStr] = Field(default=None, alias="addressFamily", json_schema_extra={"examples": ["ENUM_VALUE"]}) + address_family: Optional[StrictStr] = Field(default=None, alias="addressFamily") allowed_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="allowedPrefixes") - amazon_bgp_router_ip: Optional[StrictStr] = Field(default=None, alias="amazonBgpRouterIp", json_schema_extra={"examples": ["example string"]}) - bgp_auth_key: Optional[StrictStr] = Field(default=None, alias="bgpAuthKey", json_schema_extra={"examples": ["example string"]}) - customer_bgp_router_ip: Optional[StrictStr] = Field(default=None, alias="customerBgpRouterIp", json_schema_extra={"examples": ["example string"]}) - is_jumbo: Optional[StrictBool] = Field(default=None, alias="isJumbo", json_schema_extra={"examples": [True]}) + amazon_bgp_router_ip: Optional[StrictStr] = Field(default=None, alias="amazonBgpRouterIp") + bgp_auth_key: Optional[StrictStr] = Field(default=None, alias="bgpAuthKey") + customer_bgp_router_ip: Optional[StrictStr] = Field(default=None, alias="customerBgpRouterIp") + is_jumbo: Optional[StrictBool] = Field(default=None, alias="isJumbo") __properties: ClassVar[List[str]] = ["addressFamily", "allowedPrefixes", "amazonBgpRouterIp", "bgpAuthKey", "customerBgpRouterIp", "isJumbo"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_aws_credentials.py b/graphiant_sdk/models/mana_v2_aws_credentials.py index 8812b542..e5dd865c 100644 --- a/graphiant_sdk/models/mana_v2_aws_credentials.py +++ b/graphiant_sdk/models/mana_v2_aws_credentials.py @@ -21,19 +21,17 @@ 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 ManaV2AwsCredentials(BaseModel): """ ManaV2AwsCredentials """ # noqa: E501 - access_key_id: Optional[StrictStr] = Field(default=None, alias="accessKeyId", json_schema_extra={"examples": ["example string"]}) - secret_access_key: Optional[StrictStr] = Field(default=None, alias="secretAccessKey", json_schema_extra={"examples": ["example string"]}) + access_key_id: Optional[StrictStr] = Field(default=None, alias="accessKeyId") + secret_access_key: Optional[StrictStr] = Field(default=None, alias="secretAccessKey") __properties: ClassVar[List[str]] = ["accessKeyId", "secretAccessKey"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_aws_direct_connect_gateway.py b/graphiant_sdk/models/mana_v2_aws_direct_connect_gateway.py index 5bfa353f..a0dd7cfd 100644 --- a/graphiant_sdk/models/mana_v2_aws_direct_connect_gateway.py +++ b/graphiant_sdk/models/mana_v2_aws_direct_connect_gateway.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.mana_v2_aws_transit_gateway import ManaV2AwsTransitGateway from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2AwsDirectConnectGateway(BaseModel): """ ManaV2AwsDirectConnectGateway """ # noqa: E501 - asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + id: Optional[StrictStr] = None + name: Optional[StrictStr] = None transit_gateways: Optional[List[ManaV2AwsTransitGateway]] = Field(default=None, alias="transitGateways") __properties: ClassVar[List[str]] = ["asn", "id", "name", "transitGateways"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_aws_gateway_details.py b/graphiant_sdk/models/mana_v2_aws_gateway_details.py index 31d5c1e9..49636100 100644 --- a/graphiant_sdk/models/mana_v2_aws_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_aws_gateway_details.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.mana_v2_aws_gateway_details_transit_connection import ManaV2AWSGatewayDetailsTransitConnection from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2AwsGatewayDetails(BaseModel): """ ManaV2AwsGatewayDetails """ # noqa: E501 - account_id: Optional[StrictStr] = Field(default=None, alias="accountId", json_schema_extra={"examples": ["example string"]}) + account_id: Optional[StrictStr] = Field(default=None, alias="accountId") advance_settings: Optional[ManaV2AwsAdvanceSettings] = Field(default=None, alias="advanceSettings") transit_connection: Optional[ManaV2AWSGatewayDetailsTransitConnection] = Field(default=None, alias="transitConnection") __properties: ClassVar[List[str]] = ["accountId", "advanceSettings", "transitConnection"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_aws_gateway_details_transit_connection.py b/graphiant_sdk/models/mana_v2_aws_gateway_details_transit_connection.py index a5bd87b1..d399a106 100644 --- a/graphiant_sdk/models/mana_v2_aws_gateway_details_transit_connection.py +++ b/graphiant_sdk/models/mana_v2_aws_gateway_details_transit_connection.py @@ -24,21 +24,19 @@ from graphiant_sdk.models.mana_v2_aws_direct_connect_gateway import ManaV2AwsDirectConnectGateway from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2AWSGatewayDetailsTransitConnection(BaseModel): """ ManaV2AWSGatewayDetailsTransitConnection """ # noqa: E501 credentials: Optional[ManaV2AwsCredentials] = None - customer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="customerAsn", json_schema_extra={"examples": [123]}) + customer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="customerAsn") gateway: Optional[ManaV2AwsDirectConnectGateway] = None - region: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + region: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["credentials", "customerAsn", "gateway", "region"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_aws_transit_gateway.py b/graphiant_sdk/models/mana_v2_aws_transit_gateway.py index 8545471a..c3fc4534 100644 --- a/graphiant_sdk/models/mana_v2_aws_transit_gateway.py +++ b/graphiant_sdk/models/mana_v2_aws_transit_gateway.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.mana_v2_aws_transit_gateway_vpc import ManaV2AWSTransitGatewayVpc from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2AwsTransitGateway(BaseModel): """ ManaV2AwsTransitGateway """ # noqa: E501 - asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + id: Optional[StrictStr] = None vpcs: Optional[List[ManaV2AWSTransitGatewayVpc]] = None __properties: ClassVar[List[str]] = ["asn", "id", "vpcs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_aws_transit_gateway_vpc.py b/graphiant_sdk/models/mana_v2_aws_transit_gateway_vpc.py index 908b8038..ce2374ad 100644 --- a/graphiant_sdk/models/mana_v2_aws_transit_gateway_vpc.py +++ b/graphiant_sdk/models/mana_v2_aws_transit_gateway_vpc.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_subnet import ManaV2Subnet from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2AWSTransitGatewayVpc(BaseModel): """ ManaV2AWSTransitGatewayVpc """ # noqa: E501 - id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictStr] = None subnets: Optional[List[ManaV2Subnet]] = None __properties: ClassVar[List[str]] = ["id", "subnets"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_azure_gateway_details.py b/graphiant_sdk/models/mana_v2_azure_gateway_details.py index db50cc40..543fee92 100644 --- a/graphiant_sdk/models/mana_v2_azure_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_azure_gateway_details.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2AzureGatewayDetails(BaseModel): """ ManaV2AzureGatewayDetails """ # noqa: E501 - ms_peering_vlan_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="msPeeringVlanId", json_schema_extra={"examples": [123]}) - routing_policy: Optional[StrictStr] = Field(default=None, alias="routingPolicy", json_schema_extra={"examples": ["example string"]}) - service_key: Optional[StrictStr] = Field(default=None, alias="serviceKey", json_schema_extra={"examples": ["example string"]}) + ms_peering_vlan_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="msPeeringVlanId") + routing_policy: Optional[StrictStr] = Field(default=None, alias="routingPolicy") + service_key: Optional[StrictStr] = Field(default=None, alias="serviceKey") __properties: ClassVar[List[str]] = ["msPeeringVlanId", "routingPolicy", "serviceKey"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2_b_extranet_match_consumer_details_customer.py b/graphiant_sdk/models/mana_v2_b2_b_extranet_match_consumer_details_customer.py new file mode 100644 index 00000000..a10ca398 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_b2_b_extranet_match_consumer_details_customer.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_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2B2BExtranetMatchConsumerDetailsCustomer(BaseModel): + """ + ManaV2B2BExtranetMatchConsumerDetailsCustomer + """ # noqa: E501 + admin_emails: Optional[List[StrictStr]] = Field(default=None, alias="adminEmails") + company_name: Optional[StrictStr] = Field(default=None, alias="companyName") + id: Optional[StrictInt] = None + num_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSites") + __properties: ClassVar[List[str]] = ["adminEmails", "companyName", "id", "numSites"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2B2BExtranetMatchConsumerDetailsCustomer 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 ManaV2B2BExtranetMatchConsumerDetailsCustomer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminEmails": obj.get("adminEmails"), + "companyName": obj.get("companyName"), + "id": obj.get("id"), + "numSites": obj.get("numSites") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_b2_b_extranet_match_consumer_details_producer_prefix.py b/graphiant_sdk/models/mana_v2_b2_b_extranet_match_consumer_details_producer_prefix.py new file mode 100644 index 00000000..36006bb3 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_b2_b_extranet_match_consumer_details_producer_prefix.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, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix(BaseModel): + """ + ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix + """ # noqa: E501 + customer_translated_prefix: Optional[StrictStr] = Field(default=None, alias="customerTranslatedPrefix") + prefix: Optional[StrictStr] = None + tag: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["customerTranslatedPrefix", "prefix", "tag"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix 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 ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customerTranslatedPrefix": obj.get("customerTranslatedPrefix"), + "prefix": obj.get("prefix"), + "tag": obj.get("tag") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_b2_b_extranet_match_consumer_details_service.py b/graphiant_sdk/models/mana_v2_b2_b_extranet_match_consumer_details_service.py new file mode 100644 index 00000000..277d1427 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_b2_b_extranet_match_consumer_details_service.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2B2BExtranetMatchConsumerDetailsService(BaseModel): + """ + ManaV2B2BExtranetMatchConsumerDetailsService + """ # noqa: E501 + company_name: Optional[StrictStr] = Field(default=None, alias="companyName") + contact_email: Optional[List[StrictStr]] = Field(default=None, alias="contactEmail") + description: Optional[StrictStr] = None + id: Optional[StrictInt] = None + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + __properties: ClassVar[List[str]] = ["companyName", "contactEmail", "description", "id", "serviceName"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2B2BExtranetMatchConsumerDetailsService 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 ManaV2B2BExtranetMatchConsumerDetailsService from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "companyName": obj.get("companyName"), + "contactEmail": obj.get("contactEmail"), + "description": obj.get("description"), + "id": obj.get("id"), + "serviceName": obj.get("serviceName") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_customer.py b/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_customer.py index 2abe744b..5b583ad8 100644 --- a/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_customer.py +++ b/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_customer.py @@ -22,21 +22,19 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2B2BExtranetServiceCustomerMatchDetailsCustomer(BaseModel): """ ManaV2B2BExtranetServiceCustomerMatchDetailsCustomer """ # noqa: E501 - company_name: Optional[StrictStr] = Field(default=None, alias="companyName", json_schema_extra={"examples": ["example string"]}) + company_name: Optional[StrictStr] = Field(default=None, alias="companyName") emails: Optional[List[StrictStr]] = None - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - num_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSites", json_schema_extra={"examples": [123]}) + id: Optional[StrictInt] = None + num_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSites") __properties: ClassVar[List[str]] = ["companyName", "emails", "id", "numSites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_producer_prefix.py b/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_producer_prefix.py index a63758fd..32cd2e6d 100644 --- a/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_producer_prefix.py +++ b/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_producer_prefix.py @@ -21,20 +21,18 @@ 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 ManaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix(BaseModel): """ ManaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix """ # noqa: E501 - customer_translated_prefix: Optional[StrictStr] = Field(default=None, alias="customerTranslatedPrefix", json_schema_extra={"examples": ["example string"]}) - prefix: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - tag: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + customer_translated_prefix: Optional[StrictStr] = Field(default=None, alias="customerTranslatedPrefix") + prefix: Optional[StrictStr] = None + tag: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["customerTranslatedPrefix", "prefix", "tag"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_service.py b/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_service.py index 6010e3c0..47d7eacd 100644 --- a/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_service.py +++ b/graphiant_sdk/models/mana_v2_b2_b_extranet_service_customer_match_details_service.py @@ -21,22 +21,20 @@ 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 ManaV2B2BExtranetServiceCustomerMatchDetailsService(BaseModel): """ ManaV2B2BExtranetServiceCustomerMatchDetailsService """ # noqa: E501 - company_name: Optional[StrictStr] = Field(default=None, alias="companyName", json_schema_extra={"examples": ["example string"]}) + company_name: Optional[StrictStr] = Field(default=None, alias="companyName") contact_email: Optional[List[StrictStr]] = Field(default=None, alias="contactEmail") - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + id: Optional[StrictInt] = None + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") __properties: ClassVar[List[str]] = ["companyName", "contactEmail", "description", "id", "serviceName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_application_customer_summary.py b/graphiant_sdk/models/mana_v2_b2b_application_customer_summary.py index 75624c20..402c6500 100644 --- a/graphiant_sdk/models/mana_v2_b2b_application_customer_summary.py +++ b/graphiant_sdk/models/mana_v2_b2b_application_customer_summary.py @@ -22,23 +22,21 @@ 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 ManaV2B2bApplicationCustomerSummary(BaseModel): """ ManaV2B2bApplicationCustomerSummary """ # noqa: E501 - admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail", json_schema_extra={"examples": ["example string"]}) - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail") + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + status: Optional[StrictStr] = None updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["adminEmail", "enterpriseId", "id", "name", "status", "updatedAt"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_application.py b/graphiant_sdk/models/mana_v2_b2b_extranet_application.py index b491b36f..179a039a 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_application.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_application.py @@ -23,29 +23,27 @@ 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 ManaV2B2bExtranetApplication(BaseModel): """ ManaV2B2bExtranetApplication """ # noqa: E501 created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - is_publisher: Optional[StrictBool] = Field(default=None, alias="isPublisher", json_schema_extra={"examples": [True]}) - lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": [1234567891011]}) - matched_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedCustomers", json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + is_publisher: Optional[StrictBool] = Field(default=None, alias="isPublisher") + lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment") + matched_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedCustomers") + name: Optional[StrictStr] = None server_ip_address: Optional[List[StrictStr]] = Field(default=None, alias="serverIpAddress") - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - total_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalCustomers", json_schema_extra={"examples": [123]}) - total_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalSites", json_schema_extra={"examples": [123]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None + total_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalCustomers") + total_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalSites") + type: Optional[StrictStr] = None updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["createdAt", "id", "isPublisher", "lanSegment", "matchedCustomers", "name", "serverIpAddress", "status", "totalCustomers", "totalSites", "type", "updatedAt"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_application_invite.py b/graphiant_sdk/models/mana_v2_b2b_extranet_application_invite.py index 4cfbf47a..bcc4be61 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_application_invite.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_application_invite.py @@ -22,23 +22,21 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2B2bExtranetApplicationInvite(BaseModel): """ ManaV2B2bExtranetApplicationInvite """ # noqa: E501 - admin_email: StrictStr = Field(description="Admin email of the customer (required)", alias="adminEmail", json_schema_extra={"examples": ["example string"]}) - consumer_burst_size: Annotated[int, Field(strict=True, ge=0)] = Field(description="Maximum Burst size per site for the customer (required)", alias="consumerBurstSize", json_schema_extra={"examples": [123]}) - consumer_bw_site: Annotated[int, Field(strict=True, ge=0)] = Field(description="Maximum Bandwidth allocation per site for the customer (required)", alias="consumerBwSite", json_schema_extra={"examples": [123]}) - enterprise_id: StrictInt = Field(description="Enterprise ID of the customer (required)", alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - maximum_site_count: Annotated[int, Field(strict=True, ge=0)] = Field(description="Maximum number of sites for the customer (required)", alias="maximumSiteCount", json_schema_extra={"examples": [123]}) + admin_email: StrictStr = Field(description="Admin email of the customer (required)", alias="adminEmail") + consumer_burst_size: Annotated[int, Field(strict=True, ge=0)] = Field(description="Maximum Burst size per site for the customer (required)", alias="consumerBurstSize") + consumer_bw_site: Annotated[int, Field(strict=True, ge=0)] = Field(description="Maximum Bandwidth allocation per site for the customer (required)", alias="consumerBwSite") + enterprise_id: StrictInt = Field(description="Enterprise ID of the customer (required)", alias="enterpriseId") + maximum_site_count: Annotated[int, Field(strict=True, ge=0)] = Field(description="Maximum number of sites for the customer (required)", alias="maximumSiteCount") service_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="servicePrefixes") __properties: ClassVar[List[str]] = ["adminEmail", "consumerBurstSize", "consumerBwSite", "enterpriseId", "maximumSiteCount", "servicePrefixes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_application_invite_response.py b/graphiant_sdk/models/mana_v2_b2b_extranet_application_invite_response.py index bacd8c05..3afc61ab 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_application_invite_response.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_application_invite_response.py @@ -22,24 +22,22 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2B2bExtranetApplicationInviteResponse(BaseModel): """ ManaV2B2bExtranetApplicationInviteResponse """ # noqa: E501 - admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail", json_schema_extra={"examples": ["example string"]}) - consumer_burst_size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="consumerBurstSize", json_schema_extra={"examples": [123]}) - consumer_bw_site: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="consumerBwSite", json_schema_extra={"examples": [123]}) - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - maximum_site_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maximumSiteCount", json_schema_extra={"examples": [123]}) + admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail") + consumer_burst_size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="consumerBurstSize") + consumer_bw_site: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="consumerBwSite") + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + id: Optional[StrictInt] = None + maximum_site_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maximumSiteCount") service_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="servicePrefixes") __properties: ClassVar[List[str]] = ["adminEmail", "consumerBurstSize", "consumerBwSite", "enterpriseId", "id", "maximumSiteCount", "servicePrefixes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_consumers_summary.py b/graphiant_sdk/models/mana_v2_b2b_extranet_consumers_summary.py index bc65dabe..70a51ed7 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_consumers_summary.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_consumers_summary.py @@ -23,28 +23,26 @@ 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 ManaV2B2bExtranetConsumersSummary(BaseModel): """ ManaV2B2bExtranetConsumersSummary """ # noqa: E501 - b2b_status: Optional[StrictStr] = Field(default=None, alias="b2bStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + b2b_status: Optional[StrictStr] = Field(default=None, alias="b2bStatus") created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - num_edges: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numEdges", json_schema_extra={"examples": [123]}) - num_segments: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSegments", json_schema_extra={"examples": [123]}) - num_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSites", json_schema_extra={"examples": [123]}) - provider_name: Optional[StrictStr] = Field(default=None, alias="providerName", json_schema_extra={"examples": ["example string"]}) - publisher_name: Optional[StrictStr] = Field(default=None, alias="publisherName", json_schema_extra={"examples": ["example string"]}) - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + id: Optional[StrictInt] = None + num_edges: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numEdges") + num_segments: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSegments") + num_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSites") + provider_name: Optional[StrictStr] = Field(default=None, alias="providerName") + publisher_name: Optional[StrictStr] = Field(default=None, alias="publisherName") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + status: Optional[StrictStr] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["b2bStatus", "createdAt", "id", "numEdges", "numSegments", "numSites", "providerName", "publisherName", "serviceName", "status", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_customer_match_services_summary.py b/graphiant_sdk/models/mana_v2_b2b_extranet_customer_match_services_summary.py index c0adcf31..712b7983 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_customer_match_services_summary.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_customer_match_services_summary.py @@ -23,24 +23,22 @@ 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 ManaV2B2bExtranetCustomerMatchServicesSummary(BaseModel): """ ManaV2B2bExtranetCustomerMatchServicesSummary """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": [1234567891011]}) - matched_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedCustomers", json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + id: Optional[StrictInt] = None + lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment") + matched_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedCustomers") + name: Optional[StrictStr] = None + status: Optional[StrictStr] = None + type: Optional[StrictStr] = None updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["id", "lanSegment", "matchedCustomers", "name", "status", "type", "updatedAt"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_customer_services_summary.py b/graphiant_sdk/models/mana_v2_b2b_extranet_customer_services_summary.py index 5799b93d..917f846e 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_customer_services_summary.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_customer_services_summary.py @@ -23,24 +23,22 @@ 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 ManaV2B2bExtranetCustomerServicesSummary(BaseModel): """ ManaV2B2bExtranetCustomerServicesSummary """ # noqa: E501 admin_emails: Optional[List[StrictStr]] = Field(default=None, alias="adminEmails") - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - matched_services: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedServices", json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + id: Optional[StrictInt] = None + matched_services: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedServices") + name: Optional[StrictStr] = None + status: Optional[StrictStr] = None + type: Optional[StrictStr] = None updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["adminEmails", "id", "matchedServices", "name", "status", "type", "updatedAt"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_match.py b/graphiant_sdk/models/mana_v2_b2b_extranet_match.py new file mode 100644 index 00000000..b11f5cd4 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_match.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag import ManaV2B2bExtranetPrefixTag +from graphiant_sdk.models.mana_v2_extranet_nat_translation_mode import ManaV2ExtranetNatTranslationMode +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2B2bExtranetMatch(BaseModel): + """ + ManaV2B2bExtranetMatch + """ # noqa: E501 + consumer_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="consumerPrefixes") + lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment") + nat_translation_mode: Optional[ManaV2ExtranetNatTranslationMode] = Field(default=None, alias="natTranslationMode") + num_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Number of customers subscribed to the service", alias="numCustomers") + service_id: Optional[StrictInt] = Field(default=None, description="Producer service id", alias="serviceId") + service_prefixes: Optional[List[ManaV2B2bExtranetPrefixTag]] = Field(default=None, alias="servicePrefixes") + __properties: ClassVar[List[str]] = ["consumerPrefixes", "lanSegment", "natTranslationMode", "numCustomers", "serviceId", "servicePrefixes"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2B2bExtranetMatch 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 nat_translation_mode + if self.nat_translation_mode: + _dict['natTranslationMode'] = self.nat_translation_mode.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in service_prefixes (list) + _items = [] + if self.service_prefixes: + for _item_service_prefixes in self.service_prefixes: + if _item_service_prefixes: + _items.append(_item_service_prefixes.to_dict()) + _dict['servicePrefixes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2B2bExtranetMatch from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerPrefixes": obj.get("consumerPrefixes"), + "lanSegment": obj.get("lanSegment"), + "natTranslationMode": ManaV2ExtranetNatTranslationMode.from_dict(obj["natTranslationMode"]) if obj.get("natTranslationMode") is not None else None, + "numCustomers": obj.get("numCustomers"), + "serviceId": obj.get("serviceId"), + "servicePrefixes": [ManaV2B2bExtranetPrefixTag.from_dict(_item) for _item in obj["servicePrefixes"]] if obj.get("servicePrefixes") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_match_consumer_details.py b/graphiant_sdk/models/mana_v2_b2b_extranet_match_consumer_details.py new file mode 100644 index 00000000..000cfeca --- /dev/null +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_match_consumer_details.py @@ -0,0 +1,122 @@ +# 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.mana_v2_b2_b_extranet_match_consumer_details_customer import ManaV2B2BExtranetMatchConsumerDetailsCustomer +from graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_producer_prefix import ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix +from graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_service import ManaV2B2BExtranetMatchConsumerDetailsService +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2B2bExtranetMatchConsumerDetails(BaseModel): + """ + ManaV2B2bExtranetMatchConsumerDetails + """ # noqa: E501 + consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId") + consumer_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="consumerPrefixes") + customer: Optional[ManaV2B2BExtranetMatchConsumerDetailsCustomer] = None + old_consumer_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="oldConsumerPrefixes") + old_service_prefixes: Optional[List[ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix]] = Field(default=None, alias="oldServicePrefixes") + service: Optional[ManaV2B2BExtranetMatchConsumerDetailsService] = None + service_prefixes: Optional[List[ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix]] = Field(default=None, alias="servicePrefixes") + __properties: ClassVar[List[str]] = ["consumerId", "consumerPrefixes", "customer", "oldConsumerPrefixes", "oldServicePrefixes", "service", "servicePrefixes"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2B2bExtranetMatchConsumerDetails 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 customer + if self.customer: + _dict['customer'] = self.customer.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in old_service_prefixes (list) + _items = [] + if self.old_service_prefixes: + for _item_old_service_prefixes in self.old_service_prefixes: + if _item_old_service_prefixes: + _items.append(_item_old_service_prefixes.to_dict()) + _dict['oldServicePrefixes'] = _items + # override the default output from pydantic by calling `to_dict()` of service + if self.service: + _dict['service'] = self.service.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in service_prefixes (list) + _items = [] + if self.service_prefixes: + for _item_service_prefixes in self.service_prefixes: + if _item_service_prefixes: + _items.append(_item_service_prefixes.to_dict()) + _dict['servicePrefixes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2B2bExtranetMatchConsumerDetails from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerId": obj.get("consumerId"), + "consumerPrefixes": obj.get("consumerPrefixes"), + "customer": ManaV2B2BExtranetMatchConsumerDetailsCustomer.from_dict(obj["customer"]) if obj.get("customer") is not None else None, + "oldConsumerPrefixes": obj.get("oldConsumerPrefixes"), + "oldServicePrefixes": [ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix.from_dict(_item) for _item in obj["oldServicePrefixes"]] if obj.get("oldServicePrefixes") is not None else None, + "service": ManaV2B2BExtranetMatchConsumerDetailsService.from_dict(obj["service"]) if obj.get("service") is not None else None, + "servicePrefixes": [ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix.from_dict(_item) for _item in obj["servicePrefixes"]] if obj.get("servicePrefixes") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_match_service_to_customer.py b/graphiant_sdk/models/mana_v2_b2b_extranet_match_service_to_customer.py index db17c8dc..efc9ed11 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_match_service_to_customer.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_match_service_to_customer.py @@ -24,22 +24,20 @@ from graphiant_sdk.models.mana_v2_b2b_nat import ManaV2B2bNat from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2B2bExtranetMatchServiceToCustomer(BaseModel): """ ManaV2B2bExtranetMatchServiceToCustomer """ # noqa: E501 - id: StrictInt = Field(description="ID of the service being subscribed by the customer (required)", json_schema_extra={"examples": [1234567891011]}) - lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": [1234567891011]}) + id: StrictInt = Field(description="ID of the service being subscribed by the customer (required)") + lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment") nat: List[ManaV2B2bNat] - num_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Number of customers subscribed to the service", alias="numCustomers", json_schema_extra={"examples": [123]}) + num_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Number of customers subscribed to the service", alias="numCustomers") service_prefixes: List[ManaV2B2bExtranetPrefixTag] = Field(alias="servicePrefixes") __properties: ClassVar[List[str]] = ["id", "lanSegment", "nat", "numCustomers", "servicePrefixes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_consumer_lan_segment_policy.py b/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_consumer_lan_segment_policy.py index 0fa4ba26..c5206071 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_consumer_lan_segment_policy.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_consumer_lan_segment_policy.py @@ -21,19 +21,17 @@ 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 ManaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy(BaseModel): """ ManaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy """ # noqa: E501 consumer_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="consumerPrefixes") - lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": [1234567891011]}) + lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment") __properties: ClassVar[List[str]] = ["consumerPrefixes", "lanSegment"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_customer_invite.py b/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_customer_invite.py index 3265a630..b351b1ed 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_customer_invite.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_customer_invite.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2B2bExtranetPeeringServiceCustomerInvite(BaseModel): """ ManaV2B2bExtranetPeeringServiceCustomerInvite """ # noqa: E501 admin_email: List[StrictStr] = Field(alias="adminEmail") - maximum_number_of_sites: Annotated[int, Field(strict=True, ge=0)] = Field(description="Maximum number of sites for the peering service customer (required)", alias="maximumNumberOfSites", json_schema_extra={"examples": [123]}) + maximum_number_of_sites: Annotated[int, Field(strict=True, ge=0)] = Field(description="Maximum number of sites for the peering service customer (required)", alias="maximumNumberOfSites") __properties: ClassVar[List[str]] = ["adminEmail", "maximumNumberOfSites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_policy_response.py b/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_policy_response.py index 1daea291..4c80ad8f 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_policy_response.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_policy_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_peering_service_producer_policy import ManaV2B2bExtranetPeeringServiceProducerPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2B2bExtranetPeeringServicePolicyResponse(BaseModel): """ ManaV2B2bExtranetPeeringServicePolicyResponse """ # noqa: E501 policy: Optional[ManaV2B2bExtranetPeeringServiceProducerPolicy] = None - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") __properties: ClassVar[List[str]] = ["policy", "serviceName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_producer_policy.py b/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_producer_policy.py index 166051c1..1691ccc9 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_producer_policy.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_peering_service_producer_policy.py @@ -24,23 +24,21 @@ from graphiant_sdk.models.mana_v2_global_object_service_ops import ManaV2GlobalObjectServiceOps from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2B2bExtranetPeeringServiceProducerPolicy(BaseModel): """ ManaV2B2bExtranetPeeringServiceProducerPolicy """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="Description for the service", json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = Field(default=None, description="Description for the service") global_object_ops: Optional[Dict[str, ManaV2GlobalObjectServiceOps]] = Field(default=None, alias="globalObjectOps") prefix_tags: List[ManaV2B2bExtranetPrefixTag] = Field(alias="prefixTags") - service_lan_segment: StrictInt = Field(description="LAN segment ID for the service (required)", alias="serviceLanSegment", json_schema_extra={"examples": [1234567891011]}) + service_lan_segment: StrictInt = Field(description="LAN segment ID for the service (required)", alias="serviceLanSegment") site: List[ManaV2B2bSiteInformation] - type: StrictStr = Field(description="Type of the service whether it is application or peering (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) + type: StrictStr = Field(description="Type of the service whether it is application or peering (required)") __properties: ClassVar[List[str]] = ["description", "globalObjectOps", "prefixTags", "serviceLanSegment", "site", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_policy_response.py b/graphiant_sdk/models/mana_v2_b2b_extranet_policy_response.py index 233c6529..17594c19 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_policy_response.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_policy_response.py @@ -24,22 +24,20 @@ from graphiant_sdk.models.mana_v2_traffic_policy_rule import ManaV2TrafficPolicyRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2B2bExtranetPolicyResponse(BaseModel): """ ManaV2B2bExtranetPolicyResponse """ # noqa: E501 - dns_name: Optional[StrictStr] = Field(default=None, alias="dnsName", json_schema_extra={"examples": ["example string"]}) + dns_name: Optional[StrictStr] = Field(default=None, alias="dnsName") inbound_security_rules: Optional[List[ManaV2SecurityPolicyRule]] = Field(default=None, alias="inboundSecurityRules") policy: Optional[ManaV2B2bExtranetProducerPolicy] = None - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") traffic_rules: Optional[List[ManaV2TrafficPolicyRule]] = Field(default=None, alias="trafficRules") __properties: ClassVar[List[str]] = ["dnsName", "inboundSecurityRules", "policy", "serviceName", "trafficRules"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_prefix_tag.py b/graphiant_sdk/models/mana_v2_b2b_extranet_prefix_tag.py index cb8f8c7c..e36e59b9 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_prefix_tag.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_prefix_tag.py @@ -21,19 +21,17 @@ 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 ManaV2B2bExtranetPrefixTag(BaseModel): """ ManaV2B2bExtranetPrefixTag """ # noqa: E501 - prefix: StrictStr = Field(description="Prefix advertised by the service (required)", json_schema_extra={"examples": ["10.1.2.0/24"]}) - tag: Optional[StrictStr] = Field(default=None, description="Tag for the prefix", json_schema_extra={"examples": ["example string"]}) + prefix: StrictStr = Field(description="Prefix advertised by the service (required)") + tag: Optional[StrictStr] = Field(default=None, description="Tag for the prefix") __properties: ClassVar[List[str]] = ["prefix", "tag"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_producer_policy.py b/graphiant_sdk/models/mana_v2_b2b_extranet_producer_policy.py index 4fb75a2f..49e13b7a 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_producer_policy.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_producer_policy.py @@ -27,30 +27,28 @@ from graphiant_sdk.models.mana_v2_sla_information import ManaV2SlaInformation from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2B2bExtranetProducerPolicy(BaseModel): """ ManaV2B2bExtranetProducerPolicy """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="Description for the service", json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = Field(default=None, description="Description for the service") global_object_device_summaries: Optional[Dict[str, ManaV2GlobalObjectServiceSummaries]] = Field(default=None, alias="globalObjectDeviceSummaries") global_object_summaries: Optional[Dict[str, ManaV2GlobalObjectServiceSummaries]] = Field(default=None, alias="globalObjectSummaries") nat_pools: List[StrictStr] = Field(alias="natPools") prefix_tags: Optional[List[ManaV2B2bExtranetPrefixTag]] = Field(default=None, alias="prefixTags") profiles: Optional[List[ManaV2ApplicationProfile]] = None - service_lan_segment: StrictInt = Field(description="LAN segment for the service (required)", alias="serviceLanSegment", json_schema_extra={"examples": [1234567891011]}) + service_lan_segment: StrictInt = Field(description="LAN segment for the service (required)", alias="serviceLanSegment") service_prefixes: List[StrictStr] = Field(alias="servicePrefixes") sites: List[ManaV2B2bSiteInformation] sla: Optional[ManaV2SlaInformation] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - type: StrictStr = Field(description="Type of the service whether it is application or peering (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) - unmatched_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="unmatchedCustomers", json_schema_extra={"examples": [123]}) + status: Optional[StrictStr] = None + type: StrictStr = Field(description="Type of the service whether it is application or peering (required)") + unmatched_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="unmatchedCustomers") __properties: ClassVar[List[str]] = ["description", "globalObjectDeviceSummaries", "globalObjectSummaries", "natPools", "prefixTags", "profiles", "serviceLanSegment", "servicePrefixes", "sites", "sla", "status", "type", "unmatchedCustomers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -62,7 +60,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_service_customer_match_details.py b/graphiant_sdk/models/mana_v2_b2b_extranet_service_customer_match_details.py index 8c067420..f52ccba3 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_service_customer_match_details.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_service_customer_match_details.py @@ -24,13 +24,12 @@ from graphiant_sdk.models.mana_v2_b2_b_extranet_service_customer_match_details_service import ManaV2B2BExtranetServiceCustomerMatchDetailsService from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2B2bExtranetServiceCustomerMatchDetails(BaseModel): """ ManaV2B2bExtranetServiceCustomerMatchDetails """ # noqa: E501 - consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId", json_schema_extra={"examples": [1234567891011]}) + consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId") consumer_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="consumerPrefixes") customer: Optional[ManaV2B2BExtranetServiceCustomerMatchDetailsCustomer] = None old_consumer_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="oldConsumerPrefixes") @@ -40,8 +39,7 @@ class ManaV2B2bExtranetServiceCustomerMatchDetails(BaseModel): __properties: ClassVar[List[str]] = ["consumerId", "consumerPrefixes", "customer", "oldConsumerPrefixes", "oldServicePrefixes", "service", "servicePrefixes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_status_summary.py b/graphiant_sdk/models/mana_v2_b2b_extranet_status_summary.py index 3c947378..ce1333ce 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_status_summary.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_status_summary.py @@ -22,22 +22,20 @@ 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 ManaV2B2bExtranetStatusSummary(BaseModel): """ ManaV2B2bExtranetStatusSummary """ # noqa: E501 created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - device_status: Optional[StrictStr] = Field(default=None, alias="deviceStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - location: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_status: Optional[StrictStr] = Field(default=None, alias="deviceStatus") + location: Optional[StrictInt] = None + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["createdAt", "deviceId", "deviceStatus", "location", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_nat.py b/graphiant_sdk/models/mana_v2_b2b_nat.py index bfcfba61..a226458a 100644 --- a/graphiant_sdk/models/mana_v2_b2b_nat.py +++ b/graphiant_sdk/models/mana_v2_b2b_nat.py @@ -21,19 +21,17 @@ 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 ManaV2B2bNat(BaseModel): """ ManaV2B2bNat """ # noqa: E501 - outside_nat_prefix: Optional[StrictStr] = Field(default=None, description="Outside NAT prefix for the customer prefix", alias="outsideNatPrefix", json_schema_extra={"examples": ["100.1.2.0/24"]}) - prefix: StrictStr = Field(description="Prefix imported into the service (required)", json_schema_extra={"examples": ["10.1.2.0/24"]}) + outside_nat_prefix: Optional[StrictStr] = Field(default=None, description="Outside NAT prefix for the customer prefix", alias="outsideNatPrefix") + prefix: StrictStr = Field(description="Prefix imported into the service (required)") __properties: ClassVar[List[str]] = ["outsideNatPrefix", "prefix"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_b2b_site_information.py b/graphiant_sdk/models/mana_v2_b2b_site_information.py index b7031006..1d3f1130 100644 --- a/graphiant_sdk/models/mana_v2_b2b_site_information.py +++ b/graphiant_sdk/models/mana_v2_b2b_site_information.py @@ -22,14 +22,13 @@ from graphiant_sdk.models.mana_v2_policer import ManaV2Policer from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2B2bSiteInformation(BaseModel): """ ManaV2B2bSiteInformation """ # noqa: E501 - bw_allocation_site_lists: Optional[StrictInt] = Field(default=None, description="Total Bandwidth allocation for the service on these site lists", alias="bwAllocationSiteLists", json_schema_extra={"examples": [123]}) - bw_allocation_sites: Optional[StrictInt] = Field(default=None, description="Total Bandwidth allocation for the service on these sites", alias="bwAllocationSites", json_schema_extra={"examples": [123]}) + bw_allocation_site_lists: Optional[StrictInt] = Field(default=None, description="Total Bandwidth allocation for the service on these site lists", alias="bwAllocationSiteLists") + bw_allocation_sites: Optional[StrictInt] = Field(default=None, description="Total Bandwidth allocation for the service on these sites", alias="bwAllocationSites") policer_site_lists: Optional[ManaV2Policer] = Field(default=None, alias="policerSiteLists") policer_sites: Optional[ManaV2Policer] = Field(default=None, alias="policerSites") site_lists: Optional[List[StrictInt]] = Field(default=None, alias="siteLists") @@ -37,8 +36,7 @@ class ManaV2B2bSiteInformation(BaseModel): __properties: ClassVar[List[str]] = ["bwAllocationSiteLists", "bwAllocationSites", "policerSiteLists", "policerSites", "siteLists", "sites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bandwidth_consumption_summary.py b/graphiant_sdk/models/mana_v2_bandwidth_consumption_summary.py index 66b9ec77..9ead9723 100644 --- a/graphiant_sdk/models/mana_v2_bandwidth_consumption_summary.py +++ b/graphiant_sdk/models/mana_v2_bandwidth_consumption_summary.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_regional_bandwidth_consumption_summary import ManaV2RegionalBandwidthConsumptionSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2BandwidthConsumptionSummary(BaseModel): """ @@ -36,8 +35,7 @@ class ManaV2BandwidthConsumptionSummary(BaseModel): __properties: ClassVar[List[str]] = ["contractualSummary", "globalSummary", "regionalSummaries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bandwidth_info.py b/graphiant_sdk/models/mana_v2_bandwidth_info.py index 57a61abd..8a3b93fd 100644 --- a/graphiant_sdk/models/mana_v2_bandwidth_info.py +++ b/graphiant_sdk/models/mana_v2_bandwidth_info.py @@ -21,22 +21,20 @@ 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 ManaV2BandwidthInfo(BaseModel): """ ManaV2BandwidthInfo """ # noqa: E501 - combined_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the credits associated with cloud and gateway networks", alias="combinedCredits", json_schema_extra={"examples": [12.34]}) - core_bandwidth: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Soft-upper-bounded max speed in gigabytes per second associated with core network connections", alias="coreBandwidth", json_schema_extra={"examples": [12.34]}) - core_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits derived from bandwidth on core network connections", alias="coreCredits", json_schema_extra={"examples": [12.34]}) - gw_bandwidth: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Soft-upper-bounded max speed in gigabytes per second associated with gateway connections", alias="gwBandwidth", json_schema_extra={"examples": [12.34]}) - gw_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits derived from bandwidth on gateway network connections", alias="gwCredits", json_schema_extra={"examples": [12.34]}) + combined_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Sum of the credits associated with cloud and gateway networks", alias="combinedCredits") + core_bandwidth: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Soft-upper-bounded max speed in gigabytes per second associated with core network connections", alias="coreBandwidth") + core_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits derived from bandwidth on core network connections", alias="coreCredits") + gw_bandwidth: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Soft-upper-bounded max speed in gigabytes per second associated with gateway connections", alias="gwBandwidth") + gw_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits derived from bandwidth on gateway network connections", alias="gwCredits") __properties: ClassVar[List[str]] = ["combinedCredits", "coreBandwidth", "coreCredits", "gwBandwidth", "gwCredits"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bfd_instance.py b/graphiant_sdk/models/mana_v2_bfd_instance.py index 622c66fa..48014dde 100644 --- a/graphiant_sdk/models/mana_v2_bfd_instance.py +++ b/graphiant_sdk/models/mana_v2_bfd_instance.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2BfdInstance(BaseModel): """ ManaV2BfdInstance """ # noqa: E501 - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - minimum_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minimumInterval", json_schema_extra={"examples": [123]}) - multiplier: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + enabled: Optional[StrictBool] = None + minimum_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minimumInterval") + multiplier: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["enabled", "minimumInterval", "multiplier"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bfd_instance_config.py b/graphiant_sdk/models/mana_v2_bfd_instance_config.py index ae00ab86..7127216b 100644 --- a/graphiant_sdk/models/mana_v2_bfd_instance_config.py +++ b/graphiant_sdk/models/mana_v2_bfd_instance_config.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2BfdInstanceConfig(BaseModel): """ ManaV2BfdInstanceConfig """ # noqa: E501 - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - local_multiplier: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localMultiplier", json_schema_extra={"examples": [123]}) - minimum_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minimumInterval", json_schema_extra={"examples": [123]}) + enabled: Optional[StrictBool] = None + local_multiplier: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localMultiplier") + minimum_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minimumInterval") __properties: ClassVar[List[str]] = ["enabled", "localMultiplier", "minimumInterval"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bfd_neighbor.py b/graphiant_sdk/models/mana_v2_bfd_neighbor.py index 9dd1c80e..ff2177fa 100644 --- a/graphiant_sdk/models/mana_v2_bfd_neighbor.py +++ b/graphiant_sdk/models/mana_v2_bfd_neighbor.py @@ -24,30 +24,28 @@ 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 ManaV2BfdNeighbor(BaseModel): """ ManaV2BfdNeighbor """ # noqa: E501 - desired_minimum_tx_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="desiredMinimumTxInterval", json_schema_extra={"examples": [123]}) - if_index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ifIndex", json_schema_extra={"examples": [123]}) - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + desired_minimum_tx_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="desiredMinimumTxInterval") + if_index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ifIndex") + interface: Optional[StrictStr] = None last_updated: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastUpdated") - local_diag: Optional[StrictStr] = Field(default=None, alias="localDiag", json_schema_extra={"examples": ["ENUM_VALUE"]}) - peer_address: Optional[StrictStr] = Field(default=None, alias="peerAddress", json_schema_extra={"examples": ["example string"]}) - remote_diag: Optional[StrictStr] = Field(default=None, alias="remoteDiag", json_schema_extra={"examples": ["ENUM_VALUE"]}) - required_minimum_rx_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="requiredMinimumRxInterval", json_schema_extra={"examples": [123]}) - segment_name: Optional[StrictStr] = Field(default=None, alias="segmentName", json_schema_extra={"examples": ["example string"]}) - source_address: Optional[StrictStr] = Field(default=None, alias="sourceAddress", json_schema_extra={"examples": ["example string"]}) - state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + local_diag: Optional[StrictStr] = Field(default=None, alias="localDiag") + peer_address: Optional[StrictStr] = Field(default=None, alias="peerAddress") + remote_diag: Optional[StrictStr] = Field(default=None, alias="remoteDiag") + required_minimum_rx_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="requiredMinimumRxInterval") + segment_name: Optional[StrictStr] = Field(default=None, alias="segmentName") + source_address: Optional[StrictStr] = Field(default=None, alias="sourceAddress") + state: Optional[StrictStr] = None time_in_state: Optional[GoogleProtobufDuration] = Field(default=None, alias="timeInState") - up: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + up: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["desiredMinimumTxInterval", "ifIndex", "interface", "lastUpdated", "localDiag", "peerAddress", "remoteDiag", "requiredMinimumRxInterval", "segmentName", "sourceAddress", "state", "timeInState", "up"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,7 +57,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_aggregation.py b/graphiant_sdk/models/mana_v2_bgp_aggregation.py index 85bd393f..11fcf8f8 100644 --- a/graphiant_sdk/models/mana_v2_bgp_aggregation.py +++ b/graphiant_sdk/models/mana_v2_bgp_aggregation.py @@ -21,21 +21,19 @@ 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 ManaV2BgpAggregation(BaseModel): """ ManaV2BgpAggregation """ # noqa: E501 - as_set: Optional[StrictBool] = Field(default=None, alias="asSet", json_schema_extra={"examples": [True]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - prefix: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - summary_only: Optional[StrictBool] = Field(default=None, alias="summaryOnly", json_schema_extra={"examples": [True]}) + as_set: Optional[StrictBool] = Field(default=None, alias="asSet") + id: Optional[StrictInt] = None + prefix: Optional[StrictStr] = None + summary_only: Optional[StrictBool] = Field(default=None, alias="summaryOnly") __properties: ClassVar[List[str]] = ["asSet", "id", "prefix", "summaryOnly"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_aggregations_config.py b/graphiant_sdk/models/mana_v2_bgp_aggregations_config.py index 5a1a91f3..ace92f9a 100644 --- a/graphiant_sdk/models/mana_v2_bgp_aggregations_config.py +++ b/graphiant_sdk/models/mana_v2_bgp_aggregations_config.py @@ -21,20 +21,18 @@ 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 ManaV2BgpAggregationsConfig(BaseModel): """ ManaV2BgpAggregationsConfig """ # noqa: E501 - as_set: Optional[StrictBool] = Field(default=None, alias="asSet", json_schema_extra={"examples": [True]}) - prefix: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - summary_only: Optional[StrictBool] = Field(default=None, alias="summaryOnly", json_schema_extra={"examples": [True]}) + as_set: Optional[StrictBool] = Field(default=None, alias="asSet") + prefix: Optional[StrictStr] = None + summary_only: Optional[StrictBool] = Field(default=None, alias="summaryOnly") __properties: ClassVar[List[str]] = ["asSet", "prefix", "summaryOnly"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_connection.py b/graphiant_sdk/models/mana_v2_bgp_connection.py index 823bc7ac..2e7da595 100644 --- a/graphiant_sdk/models/mana_v2_bgp_connection.py +++ b/graphiant_sdk/models/mana_v2_bgp_connection.py @@ -22,23 +22,21 @@ 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 ManaV2BgpConnection(BaseModel): """ ManaV2BgpConnection """ # noqa: E501 - local_address: Optional[StrictStr] = Field(default=None, alias="localAddress", json_schema_extra={"examples": ["example string"]}) - oper_status: Optional[StrictBool] = Field(default=None, alias="operStatus", json_schema_extra={"examples": [True]}) - remote_address: Optional[StrictStr] = Field(default=None, alias="remoteAddress", json_schema_extra={"examples": ["example string"]}) - state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + local_address: Optional[StrictStr] = Field(default=None, alias="localAddress") + oper_status: Optional[StrictBool] = Field(default=None, alias="operStatus") + remote_address: Optional[StrictStr] = Field(default=None, alias="remoteAddress") + state: Optional[StrictStr] = None time_since_last_oper_change: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="timeSinceLastOperChange") - up: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + up: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["localAddress", "operStatus", "remoteAddress", "state", "timeSinceLastOperChange", "up"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_dynamic_neighbor_oper_peer.py b/graphiant_sdk/models/mana_v2_bgp_dynamic_neighbor_oper_peer.py index c839e570..5f9f8362 100644 --- a/graphiant_sdk/models/mana_v2_bgp_dynamic_neighbor_oper_peer.py +++ b/graphiant_sdk/models/mana_v2_bgp_dynamic_neighbor_oper_peer.py @@ -23,23 +23,21 @@ 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 ManaV2BgpDynamicNeighborOperPeer(BaseModel): """ ManaV2BgpDynamicNeighborOperPeer """ # noqa: E501 last_oper_status_change: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastOperStatusChange") - local_address: Optional[StrictStr] = Field(default=None, description="Local address used for this peer session, if known from oper", alias="localAddress", json_schema_extra={"examples": ["example string"]}) - oper_status: Optional[StrictBool] = Field(default=None, description="True when the BGP session to this peer is operationally up (e.g. established)", alias="operStatus", json_schema_extra={"examples": [True]}) - peer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Peer ASN from oper, if reported", alias="peerAsn", json_schema_extra={"examples": [123]}) - remote_address: Optional[StrictStr] = Field(default=None, description="Peer address from device oper state (IPv4/IPv6; may include IPv6 zone id)", alias="remoteAddress", json_schema_extra={"examples": ["example string"]}) - state: Optional[StrictStr] = Field(default=None, description="BGP FSM state for this peer session", json_schema_extra={"examples": ["ENUM_VALUE"]}) + local_address: Optional[StrictStr] = Field(default=None, description="Local address used for this peer session, if known from oper", alias="localAddress") + oper_status: Optional[StrictBool] = Field(default=None, description="True when the BGP session to this peer is operationally up (e.g. established)", alias="operStatus") + peer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Peer ASN from oper, if reported", alias="peerAsn") + remote_address: Optional[StrictStr] = Field(default=None, description="Peer address from device oper state (IPv4/IPv6; may include IPv6 zone id)", alias="remoteAddress") + state: Optional[StrictStr] = Field(default=None, description="BGP FSM state for this peer session") __properties: ClassVar[List[str]] = ["lastOperStatusChange", "localAddress", "operStatus", "peerAsn", "remoteAddress", "state"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_instance.py b/graphiant_sdk/models/mana_v2_bgp_instance.py index 29285aac..2766105d 100644 --- a/graphiant_sdk/models/mana_v2_bgp_instance.py +++ b/graphiant_sdk/models/mana_v2_bgp_instance.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2BgpInstance(BaseModel): """ ManaV2BgpInstance """ # noqa: E501 - asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - router_id: Optional[StrictStr] = Field(default=None, alias="routerId", json_schema_extra={"examples": ["example string"]}) + asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + id: Optional[StrictInt] = None + router_id: Optional[StrictStr] = Field(default=None, alias="routerId") __properties: ClassVar[List[str]] = ["asn", "id", "routerId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_instance_config.py b/graphiant_sdk/models/mana_v2_bgp_instance_config.py index 641ca208..f7e3d63e 100644 --- a/graphiant_sdk/models/mana_v2_bgp_instance_config.py +++ b/graphiant_sdk/models/mana_v2_bgp_instance_config.py @@ -22,21 +22,19 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2BgpInstanceConfig(BaseModel): """ ManaV2BgpInstanceConfig """ # noqa: E501 address_families: Optional[List[StrictStr]] = Field(default=None, alias="addressFamilies") - asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - route_server: Optional[StrictBool] = Field(default=None, alias="routeServer", json_schema_extra={"examples": [True]}) - router_id: Optional[StrictStr] = Field(default=None, alias="routerId", json_schema_extra={"examples": ["example string"]}) + asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + route_server: Optional[StrictBool] = Field(default=None, alias="routeServer") + router_id: Optional[StrictStr] = Field(default=None, alias="routerId") __properties: ClassVar[List[str]] = ["addressFamilies", "asn", "routeServer", "routerId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_multipath.py b/graphiant_sdk/models/mana_v2_bgp_multipath.py index cbc6e356..6dd7d91a 100644 --- a/graphiant_sdk/models/mana_v2_bgp_multipath.py +++ b/graphiant_sdk/models/mana_v2_bgp_multipath.py @@ -21,19 +21,17 @@ 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 ManaV2BgpMultipath(BaseModel): """ ManaV2BgpMultipath """ # noqa: E501 - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId", json_schema_extra={"examples": [1234567891011]}) + enabled: Optional[StrictBool] = None + vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId") __properties: ClassVar[List[str]] = ["enabled", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_multipath_config.py b/graphiant_sdk/models/mana_v2_bgp_multipath_config.py index a108dc0c..5c33b37a 100644 --- a/graphiant_sdk/models/mana_v2_bgp_multipath_config.py +++ b/graphiant_sdk/models/mana_v2_bgp_multipath_config.py @@ -21,19 +21,17 @@ 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 ManaV2BgpMultipathConfig(BaseModel): """ ManaV2BgpMultipathConfig """ # noqa: E501 - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId", json_schema_extra={"examples": [1234567891011]}) + enabled: Optional[StrictBool] = None + vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId") __properties: ClassVar[List[str]] = ["enabled", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_neighbor.py b/graphiant_sdk/models/mana_v2_bgp_neighbor.py index e41dbe03..454a8b69 100644 --- a/graphiant_sdk/models/mana_v2_bgp_neighbor.py +++ b/graphiant_sdk/models/mana_v2_bgp_neighbor.py @@ -27,41 +27,39 @@ from graphiant_sdk.models.mana_v2_bgp_neighbor_address_family import ManaV2BgpNeighborAddressFamily from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2BgpNeighbor(BaseModel): """ ManaV2BgpNeighbor """ # noqa: E501 address_families: Optional[List[ManaV2BgpNeighborAddressFamily]] = Field(default=None, alias="addressFamilies") - allow_as_in: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="allowAsIn", json_schema_extra={"examples": [123]}) - as_override: Optional[StrictBool] = Field(default=None, alias="asOverride", json_schema_extra={"examples": [True]}) + allow_as_in: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="allowAsIn") + as_override: Optional[StrictBool] = Field(default=None, alias="asOverride") bfd: Optional[ManaV2BfdInstance] = None bfd_neighbor: Optional[ManaV2BfdNeighbor] = Field(default=None, alias="bfdNeighbor") - bgp_type: Optional[StrictStr] = Field(default=None, alias="bgpType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - default_originate: Optional[StrictStr] = Field(default=None, description="Set when default route needs to be advertised in BGP domain", alias="defaultOriginate", json_schema_extra={"examples": ["ENUM_VALUE"]}) + bgp_type: Optional[StrictStr] = Field(default=None, alias="bgpType") + default_originate: Optional[StrictStr] = Field(default=None, description="Set when default route needs to be advertised in BGP domain", alias="defaultOriginate") dynamic_neighbor_peers: Optional[List[ManaV2BgpDynamicNeighborOperPeer]] = Field(default=None, alias="dynamicNeighborPeers") - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - hold_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="holdTimer", json_schema_extra={"examples": [123]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - keepalive_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="keepaliveTimer", json_schema_extra={"examples": [123]}) - local_address: Optional[StrictStr] = Field(default=None, alias="localAddress", json_schema_extra={"examples": ["example string"]}) - local_interface: Optional[StrictStr] = Field(default=None, alias="localInterface", json_schema_extra={"examples": ["example string"]}) - max_prefix: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Maximum number of prefixes that can be received from neighbor", alias="maxPrefix", json_schema_extra={"examples": [10000]}) - md5_password: Optional[StrictStr] = Field(default=None, alias="md5Password", json_schema_extra={"examples": ["example string"]}) - multi_hop: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Set when EBGP multi-hop functionality is enabled", alias="multiHop", json_schema_extra={"examples": [5]}) - peer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="peerAsn", json_schema_extra={"examples": [123]}) - remote_address: Optional[StrictStr] = Field(default=None, alias="remoteAddress", json_schema_extra={"examples": ["example string"]}) - remove_private_as: Optional[StrictBool] = Field(default=None, alias="removePrivateAs", json_schema_extra={"examples": [True]}) - send_community: Optional[StrictBool] = Field(default=None, description="Flag for sending standard, extended, and large communities", alias="sendCommunity", json_schema_extra={"examples": [True]}) - state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + enabled: Optional[StrictBool] = None + hold_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="holdTimer") + id: Optional[StrictInt] = None + keepalive_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="keepaliveTimer") + local_address: Optional[StrictStr] = Field(default=None, alias="localAddress") + local_interface: Optional[StrictStr] = Field(default=None, alias="localInterface") + max_prefix: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Maximum number of prefixes that can be received from neighbor", alias="maxPrefix") + md5_password: Optional[StrictStr] = Field(default=None, alias="md5Password") + multi_hop: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Set when EBGP multi-hop functionality is enabled", alias="multiHop") + peer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="peerAsn") + remote_address: Optional[StrictStr] = Field(default=None, alias="remoteAddress") + remove_private_as: Optional[StrictBool] = Field(default=None, alias="removePrivateAs") + send_community: Optional[StrictBool] = Field(default=None, description="Flag for sending standard, extended, and large communities", alias="sendCommunity") + state: Optional[StrictStr] = None time_since_last_oper_change: Optional[GoogleProtobufDuration] = Field(default=None, alias="timeSinceLastOperChange") - up: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + up: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["addressFamilies", "allowAsIn", "asOverride", "bfd", "bfdNeighbor", "bgpType", "defaultOriginate", "dynamicNeighborPeers", "enabled", "holdTimer", "id", "keepaliveTimer", "localAddress", "localInterface", "maxPrefix", "md5Password", "multiHop", "peerAsn", "remoteAddress", "removePrivateAs", "sendCommunity", "state", "timeSinceLastOperChange", "up"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -73,7 +71,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_neighbor_address_family.py b/graphiant_sdk/models/mana_v2_bgp_neighbor_address_family.py index d42dc493..b66af60a 100644 --- a/graphiant_sdk/models/mana_v2_bgp_neighbor_address_family.py +++ b/graphiant_sdk/models/mana_v2_bgp_neighbor_address_family.py @@ -21,21 +21,19 @@ 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 ManaV2BgpNeighborAddressFamily(BaseModel): """ ManaV2BgpNeighborAddressFamily """ # noqa: E501 - address_family: Optional[StrictStr] = Field(default=None, alias="addressFamily", json_schema_extra={"examples": ["ENUM_VALUE"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - inbound_policy: Optional[StrictStr] = Field(default=None, alias="inboundPolicy", json_schema_extra={"examples": ["example string"]}) - outbound_policy: Optional[StrictStr] = Field(default=None, alias="outboundPolicy", json_schema_extra={"examples": ["example string"]}) + address_family: Optional[StrictStr] = Field(default=None, alias="addressFamily") + id: Optional[StrictInt] = None + inbound_policy: Optional[StrictStr] = Field(default=None, alias="inboundPolicy") + outbound_policy: Optional[StrictStr] = Field(default=None, alias="outboundPolicy") __properties: ClassVar[List[str]] = ["addressFamily", "id", "inboundPolicy", "outboundPolicy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_neighbor_address_family_config.py b/graphiant_sdk/models/mana_v2_bgp_neighbor_address_family_config.py index 51c2c79e..ced95915 100644 --- a/graphiant_sdk/models/mana_v2_bgp_neighbor_address_family_config.py +++ b/graphiant_sdk/models/mana_v2_bgp_neighbor_address_family_config.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_nullable_policy_name import ManaV2NullablePolicyName from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2BgpNeighborAddressFamilyConfig(BaseModel): """ ManaV2BgpNeighborAddressFamilyConfig """ # noqa: E501 - address_family: Optional[StrictStr] = Field(default=None, alias="addressFamily", json_schema_extra={"examples": ["ENUM_VALUE"]}) + address_family: Optional[StrictStr] = Field(default=None, alias="addressFamily") inbound_policy: Optional[ManaV2NullablePolicyName] = Field(default=None, alias="inboundPolicy") outbound_policy: Optional[ManaV2NullablePolicyName] = Field(default=None, alias="outboundPolicy") __properties: ClassVar[List[str]] = ["addressFamily", "inboundPolicy", "outboundPolicy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_neighbor_config.py b/graphiant_sdk/models/mana_v2_bgp_neighbor_config.py index 479291ce..fa413590 100644 --- a/graphiant_sdk/models/mana_v2_bgp_neighbor_config.py +++ b/graphiant_sdk/models/mana_v2_bgp_neighbor_config.py @@ -31,7 +31,6 @@ from graphiant_sdk.models.mana_v2_nullable_md5_password import ManaV2NullableMd5Password from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2BgpNeighborConfig(BaseModel): """ @@ -39,28 +38,27 @@ class ManaV2BgpNeighborConfig(BaseModel): """ # noqa: E501 address_families: Optional[Dict[str, ManaV2NullableBgpNeighborAddressFamilyConfig]] = Field(default=None, alias="addressFamilies") allow_as_in: Optional[ManaV2NullableAllowAsIn] = Field(default=None, alias="allowAsIn") - as_override: Optional[StrictBool] = Field(default=None, alias="asOverride", json_schema_extra={"examples": [True]}) + as_override: Optional[StrictBool] = Field(default=None, alias="asOverride") bfd: Optional[ManaV2NullableBfdInstanceConfig] = None - default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate", json_schema_extra={"examples": ["ENUM_VALUE"]}) + default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate") ebgp_multihop_ttl: Optional[ManaV2NullableEbgpConfig] = Field(default=None, alias="ebgpMultihopTtl") - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - hold_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="holdTimer", json_schema_extra={"examples": [123]}) + enabled: Optional[StrictBool] = None + hold_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="holdTimer") hold_timer_value: Optional[ManaV2NullableHoldTimer] = Field(default=None, alias="holdTimerValue") - keepalive_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="keepaliveTimer", json_schema_extra={"examples": [123]}) + keepalive_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="keepaliveTimer") keepalive_timer_value: Optional[ManaV2NullableKeepAliveTimer] = Field(default=None, alias="keepaliveTimerValue") - local_address: Optional[StrictStr] = Field(default=None, alias="localAddress", json_schema_extra={"examples": ["example string"]}) + local_address: Optional[StrictStr] = Field(default=None, alias="localAddress") local_interface: Optional[ManaV2NullableInterfaceName] = Field(default=None, alias="localInterface") max_prefix_value: Optional[ManaV2NullableMaxPrefix] = Field(default=None, alias="maxPrefixValue") md5_password: Optional[ManaV2NullableMd5Password] = Field(default=None, alias="md5Password") - peer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="peerAsn", json_schema_extra={"examples": [123]}) - remote_address: Optional[StrictStr] = Field(default=None, alias="remoteAddress", json_schema_extra={"examples": ["example string"]}) - remove_private_as: Optional[StrictBool] = Field(default=None, alias="removePrivateAs", json_schema_extra={"examples": [True]}) - send_community: Optional[StrictBool] = Field(default=None, alias="sendCommunity", json_schema_extra={"examples": [True]}) + peer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="peerAsn") + remote_address: Optional[StrictStr] = Field(default=None, alias="remoteAddress") + remove_private_as: Optional[StrictBool] = Field(default=None, alias="removePrivateAs") + send_community: Optional[StrictBool] = Field(default=None, alias="sendCommunity") __properties: ClassVar[List[str]] = ["addressFamilies", "allowAsIn", "asOverride", "bfd", "defaultOriginate", "ebgpMultihopTtl", "enabled", "holdTimer", "holdTimerValue", "keepaliveTimer", "keepaliveTimerValue", "localAddress", "localInterface", "maxPrefixValue", "md5Password", "peerAsn", "remoteAddress", "removePrivateAs", "sendCommunity"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -72,7 +70,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_redistribute.py b/graphiant_sdk/models/mana_v2_bgp_redistribute.py index 5f4c73ca..c38cf635 100644 --- a/graphiant_sdk/models/mana_v2_bgp_redistribute.py +++ b/graphiant_sdk/models/mana_v2_bgp_redistribute.py @@ -17,26 +17,24 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, StrictBool 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 ManaV2BgpRedistribute(BaseModel): """ ManaV2BgpRedistribute """ # noqa: E501 - bgp: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - connected: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - dia: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - ospfv2: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - static: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + bgp: Optional[StrictBool] = None + connected: Optional[StrictBool] = None + dia: Optional[StrictBool] = None + ospfv2: Optional[StrictBool] = None + static: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["bgp", "connected", "dia", "ospfv2", "static"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bgp_redistribute_protocol_config.py b/graphiant_sdk/models/mana_v2_bgp_redistribute_protocol_config.py index dd2e2c02..d5456afa 100644 --- a/graphiant_sdk/models/mana_v2_bgp_redistribute_protocol_config.py +++ b/graphiant_sdk/models/mana_v2_bgp_redistribute_protocol_config.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, StrictBool 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 ManaV2BgpRedistributeProtocolConfig(BaseModel): """ ManaV2BgpRedistributeProtocolConfig """ # noqa: E501 - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + enabled: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bucket_app.py b/graphiant_sdk/models/mana_v2_bucket_app.py index 106293a2..32b7e172 100644 --- a/graphiant_sdk/models/mana_v2_bucket_app.py +++ b/graphiant_sdk/models/mana_v2_bucket_app.py @@ -22,24 +22,22 @@ from graphiant_sdk.models.mana_v2_bucket_app_server import ManaV2BucketAppServer from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2BucketApp(BaseModel): """ ManaV2BucketApp """ # noqa: E501 - bucket_id: Optional[StrictInt] = Field(default=None, alias="bucketId", json_schema_extra={"examples": [123]}) - builtin_app_id: Optional[StrictInt] = Field(default=None, alias="builtinAppId", json_schema_extra={"examples": [1234567891011]}) - custom_app_id: Optional[StrictInt] = Field(default=None, alias="customAppId", json_schema_extra={"examples": [1234567891011]}) - is_domain: Optional[StrictBool] = Field(default=None, alias="isDomain", json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + bucket_id: Optional[StrictInt] = Field(default=None, alias="bucketId") + builtin_app_id: Optional[StrictInt] = Field(default=None, alias="builtinAppId") + custom_app_id: Optional[StrictInt] = Field(default=None, alias="customAppId") + is_domain: Optional[StrictBool] = Field(default=None, alias="isDomain") + name: Optional[StrictStr] = None servers: Optional[List[ManaV2BucketAppServer]] = None - use_all_servers: Optional[StrictBool] = Field(default=None, alias="useAllServers", json_schema_extra={"examples": [True]}) + use_all_servers: Optional[StrictBool] = Field(default=None, alias="useAllServers") __properties: ClassVar[List[str]] = ["bucketId", "builtinAppId", "customAppId", "isDomain", "name", "servers", "useAllServers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_bucket_app_server.py b/graphiant_sdk/models/mana_v2_bucket_app_server.py index 8ec26892..7f11209f 100644 --- a/graphiant_sdk/models/mana_v2_bucket_app_server.py +++ b/graphiant_sdk/models/mana_v2_bucket_app_server.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2BucketAppServer(BaseModel): """ ManaV2BucketAppServer """ # noqa: E501 - ip: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - port: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - protocol: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + ip: Optional[StrictStr] = None + port: Optional[StrictInt] = None + protocol: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["ip", "port", "protocol"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_circuit.py b/graphiant_sdk/models/mana_v2_circuit.py index 90983348..cf035473 100644 --- a/graphiant_sdk/models/mana_v2_circuit.py +++ b/graphiant_sdk/models/mana_v2_circuit.py @@ -29,7 +29,6 @@ from graphiant_sdk.models.mana_v2_static_route import ManaV2StaticRoute from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2Circuit(BaseModel): """ @@ -39,36 +38,35 @@ class ManaV2Circuit(BaseModel): bgp_multipath: Optional[ManaV2BgpMultipath] = Field(default=None, alias="bgpMultipath") bgp_neighbors: Optional[List[ManaV2BgpNeighbor]] = Field(default=None, alias="bgpNeighbors") bgp_redistributions: Optional[ManaV2BgpRedistribute] = Field(default=None, alias="bgpRedistributions") - carrier: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - circuit_type: Optional[StrictStr] = Field(default=None, alias="circuitType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - connection_type: Optional[StrictStr] = Field(default=None, alias="connectionType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + carrier: Optional[StrictStr] = None + circuit_type: Optional[StrictStr] = Field(default=None, alias="circuitType") + connection_type: Optional[StrictStr] = Field(default=None, alias="connectionType") core_logical_interfaces_v2: Optional[List[ManaV2CircuitInterface]] = Field(default=None, alias="coreLogicalInterfacesV2") - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - dia_enabled: Optional[StrictBool] = Field(default=None, alias="diaEnabled", json_schema_extra={"examples": [True]}) - dia_snmp_index: Optional[StrictInt] = Field(default=None, alias="diaSnmpIndex", json_schema_extra={"examples": [1234567891011]}) - discovered_public_ip: Optional[StrictStr] = Field(default=None, alias="discoveredPublicIp", json_schema_extra={"examples": ["example string"]}) - drop_mechanism: Optional[StrictStr] = Field(default=None, alias="dropMechanism", json_schema_extra={"examples": ["ENUM_VALUE"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - label: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort", json_schema_extra={"examples": [True]}) - link_down_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="linkDownSpeedMbps", json_schema_extra={"examples": [123]}) - link_up_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="linkUpSpeedMbps", json_schema_extra={"examples": [123]}) - loopback: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + dia_enabled: Optional[StrictBool] = Field(default=None, alias="diaEnabled") + dia_snmp_index: Optional[StrictInt] = Field(default=None, alias="diaSnmpIndex") + discovered_public_ip: Optional[StrictStr] = Field(default=None, alias="discoveredPublicIp") + drop_mechanism: Optional[StrictStr] = Field(default=None, alias="dropMechanism") + id: Optional[StrictInt] = None + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + label: Optional[StrictStr] = None + last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort") + link_down_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="linkDownSpeedMbps") + link_up_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="linkUpSpeedMbps") + loopback: Optional[StrictBool] = None + name: Optional[StrictStr] = None pat_addresses: Optional[List[StrictStr]] = Field(default=None, alias="patAddresses") - private_ip: Optional[StrictStr] = Field(default=None, alias="privateIp", json_schema_extra={"examples": ["example string"]}) + private_ip: Optional[StrictStr] = Field(default=None, alias="privateIp") profile: Optional[ManaV2QoSProfile] = None - qos_profile: Optional[StrictStr] = Field(default=None, alias="qosProfile", json_schema_extra={"examples": ["ENUM_VALUE"]}) - qos_profile_type: Optional[StrictStr] = Field(default=None, alias="qosProfileType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - snmp_index: Optional[StrictInt] = Field(default=None, alias="snmpIndex", json_schema_extra={"examples": [1234567891011]}) + qos_profile: Optional[StrictStr] = Field(default=None, alias="qosProfile") + qos_profile_type: Optional[StrictStr] = Field(default=None, alias="qosProfileType") + snmp_index: Optional[StrictInt] = Field(default=None, alias="snmpIndex") static_routes: Optional[List[ManaV2StaticRoute]] = Field(default=None, alias="staticRoutes") wan_interface_v2: Optional[ManaV2CircuitInterface] = Field(default=None, alias="wanInterfaceV2") __properties: ClassVar[List[str]] = ["bgpAggregations", "bgpMultipath", "bgpNeighbors", "bgpRedistributions", "carrier", "circuitType", "connectionType", "coreLogicalInterfacesV2", "description", "diaEnabled", "diaSnmpIndex", "discoveredPublicIp", "dropMechanism", "id", "interfaceName", "label", "lastResort", "linkDownSpeedMbps", "linkUpSpeedMbps", "loopback", "name", "patAddresses", "privateIp", "profile", "qosProfile", "qosProfileType", "snmpIndex", "staticRoutes", "wanInterfaceV2"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -80,7 +78,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_circuit_config.py b/graphiant_sdk/models/mana_v2_circuit_config.py index 480c1cd2..efe2a519 100644 --- a/graphiant_sdk/models/mana_v2_circuit_config.py +++ b/graphiant_sdk/models/mana_v2_circuit_config.py @@ -28,7 +28,6 @@ from graphiant_sdk.models.mana_v2_nullable_static_route_config import ManaV2NullableStaticRouteConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2CircuitConfig(BaseModel): """ @@ -38,27 +37,26 @@ class ManaV2CircuitConfig(BaseModel): bgp_multipath: Optional[ManaV2NullableBgpMultipathConfig] = Field(default=None, alias="bgpMultipath") bgp_neighbors: Optional[Dict[str, ManaV2NullableBgpNeighborConfig]] = Field(default=None, alias="bgpNeighbors") bgp_redistribution: Optional[Dict[str, ManaV2NullableBgpRedistributeProtocolConfig]] = Field(default=None, alias="bgpRedistribution") - carrier: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - circuit_type: Optional[StrictStr] = Field(default=None, alias="circuitType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - connection_type: Optional[StrictStr] = Field(default=None, alias="connectionType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - dia_enabled: Optional[StrictBool] = Field(default=None, alias="diaEnabled", json_schema_extra={"examples": [True]}) - drop_mechanism: Optional[StrictStr] = Field(default=None, alias="dropMechanism", json_schema_extra={"examples": ["ENUM_VALUE"]}) - label: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort", json_schema_extra={"examples": [True]}) - link_down_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="linkDownSpeedMbps", json_schema_extra={"examples": [123]}) - link_up_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="linkUpSpeedMbps", json_schema_extra={"examples": [123]}) - loopback: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + carrier: Optional[StrictStr] = None + circuit_type: Optional[StrictStr] = Field(default=None, alias="circuitType") + connection_type: Optional[StrictStr] = Field(default=None, alias="connectionType") + description: Optional[StrictStr] = None + dia_enabled: Optional[StrictBool] = Field(default=None, alias="diaEnabled") + drop_mechanism: Optional[StrictStr] = Field(default=None, alias="dropMechanism") + label: Optional[StrictStr] = None + last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort") + link_down_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="linkDownSpeedMbps") + link_up_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="linkUpSpeedMbps") + loopback: Optional[StrictBool] = None + name: Optional[StrictStr] = None pat_addresses: Optional[ManaV2NullableIpList] = Field(default=None, alias="patAddresses") - qos_profile: Optional[StrictStr] = Field(default=None, alias="qosProfile", json_schema_extra={"examples": ["ENUM_VALUE"]}) - qos_profile_type: Optional[StrictStr] = Field(default=None, alias="qosProfileType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + qos_profile: Optional[StrictStr] = Field(default=None, alias="qosProfile") + qos_profile_type: Optional[StrictStr] = Field(default=None, alias="qosProfileType") static_routes: Optional[Dict[str, ManaV2NullableStaticRouteConfig]] = Field(default=None, alias="staticRoutes") __properties: ClassVar[List[str]] = ["bgpAggregations", "bgpMultipath", "bgpNeighbors", "bgpRedistribution", "carrier", "circuitType", "connectionType", "description", "diaEnabled", "dropMechanism", "label", "lastResort", "linkDownSpeedMbps", "linkUpSpeedMbps", "loopback", "name", "patAddresses", "qosProfile", "qosProfileType", "staticRoutes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -70,7 +68,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_circuit_interface.py b/graphiant_sdk/models/mana_v2_circuit_interface.py index 6f887dcf..328ae80a 100644 --- a/graphiant_sdk/models/mana_v2_circuit_interface.py +++ b/graphiant_sdk/models/mana_v2_circuit_interface.py @@ -21,22 +21,20 @@ 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 ManaV2CircuitInterface(BaseModel): """ ManaV2CircuitInterface """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus", json_schema_extra={"examples": [True]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - index: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - oper_status: Optional[StrictBool] = Field(default=None, alias="operStatus", json_schema_extra={"examples": [True]}) + admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") + id: Optional[StrictInt] = None + index: Optional[StrictInt] = None + name: Optional[StrictStr] = None + oper_status: Optional[StrictBool] = Field(default=None, alias="operStatus") __properties: ClassVar[List[str]] = ["adminStatus", "id", "index", "name", "operStatus"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_community_container.py b/graphiant_sdk/models/mana_v2_community_container.py index 17f9061f..98538cd5 100644 --- a/graphiant_sdk/models/mana_v2_community_container.py +++ b/graphiant_sdk/models/mana_v2_community_container.py @@ -21,7 +21,6 @@ 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 ManaV2CommunityContainer(BaseModel): """ @@ -31,8 +30,7 @@ class ManaV2CommunityContainer(BaseModel): __properties: ClassVar[List[str]] = ["community"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_community_type.py b/graphiant_sdk/models/mana_v2_community_type.py index 1e1085b2..982be5a7 100644 --- a/graphiant_sdk/models/mana_v2_community_type.py +++ b/graphiant_sdk/models/mana_v2_community_type.py @@ -21,19 +21,17 @@ 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 ManaV2CommunityType(BaseModel): """ ManaV2CommunityType """ # noqa: E501 - additive: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + additive: Optional[StrictBool] = None community_list: Optional[List[StrictStr]] = Field(default=None, alias="communityList") __properties: ClassVar[List[str]] = ["additive", "communityList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_configuration_metadata.py b/graphiant_sdk/models/mana_v2_configuration_metadata.py index 634d82ea..4d52979e 100644 --- a/graphiant_sdk/models/mana_v2_configuration_metadata.py +++ b/graphiant_sdk/models/mana_v2_configuration_metadata.py @@ -21,20 +21,18 @@ 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 ManaV2ConfigurationMetadata(BaseModel): """ ManaV2ConfigurationMetadata """ # noqa: E501 - commit_confirm: Optional[StrictBool] = Field(default=None, alias="commitConfirm", json_schema_extra={"examples": [True]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + commit_confirm: Optional[StrictBool] = Field(default=None, alias="commitConfirm") + description: Optional[StrictStr] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["commitConfirm", "description", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_connectivity_graph_edge.py b/graphiant_sdk/models/mana_v2_connectivity_graph_edge.py index 635de0dc..153fbcbb 100644 --- a/graphiant_sdk/models/mana_v2_connectivity_graph_edge.py +++ b/graphiant_sdk/models/mana_v2_connectivity_graph_edge.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.mana_v2_graphiant_connections import ManaV2GraphiantConnections from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ConnectivityGraphEdge(BaseModel): """ ManaV2ConnectivityGraphEdge """ # noqa: E501 - a: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - b: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + a: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + b: Optional[Annotated[int, Field(strict=True, ge=0)]] = None connections: Optional[ManaV2GraphiantConnections] = None - quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + quality: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["a", "b", "connections", "quality"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_connectivity_graph_node.py b/graphiant_sdk/models/mana_v2_connectivity_graph_node.py index aa909056..7d9db68a 100644 --- a/graphiant_sdk/models/mana_v2_connectivity_graph_node.py +++ b/graphiant_sdk/models/mana_v2_connectivity_graph_node.py @@ -23,23 +23,21 @@ from graphiant_sdk.models.mana_v2_graphiant_connections import ManaV2GraphiantConnections from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ConnectivityGraphNode(BaseModel): """ ManaV2ConnectivityGraphNode """ # noqa: E501 connections: Optional[ManaV2GraphiantConnections] = None - id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - override_region: Optional[StrictStr] = Field(default=None, alias="overrideRegion", json_schema_extra={"examples": ["example string"]}) - region: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + name: Optional[StrictStr] = None + override_region: Optional[StrictStr] = Field(default=None, alias="overrideRegion") + region: Optional[StrictStr] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["connections", "id", "name", "overrideRegion", "region", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_consumer.py b/graphiant_sdk/models/mana_v2_consumer.py index dc062815..0c1ae2de 100644 --- a/graphiant_sdk/models/mana_v2_consumer.py +++ b/graphiant_sdk/models/mana_v2_consumer.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2Consumer(BaseModel): """ ManaV2Consumer """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None vrfs: Optional[List[StrictInt]] = None __properties: ClassVar[List[str]] = ["id", "name", "vrfs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_consumer_device_information.py b/graphiant_sdk/models/mana_v2_consumer_device_information.py index 286279ae..f0f6498b 100644 --- a/graphiant_sdk/models/mana_v2_consumer_device_information.py +++ b/graphiant_sdk/models/mana_v2_consumer_device_information.py @@ -22,21 +22,19 @@ 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 ManaV2ConsumerDeviceInformation(BaseModel): """ ManaV2ConsumerDeviceInformation """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") last_updated: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastUpdated") - site: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + site: Optional[StrictInt] = None + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceId", "lastUpdated", "site", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_content_filter_match_config.py b/graphiant_sdk/models/mana_v2_content_filter_match_config.py index 02a3d798..a4cd0567 100644 --- a/graphiant_sdk/models/mana_v2_content_filter_match_config.py +++ b/graphiant_sdk/models/mana_v2_content_filter_match_config.py @@ -21,7 +21,6 @@ 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 ManaV2ContentFilterMatchConfig(BaseModel): """ @@ -31,8 +30,7 @@ class ManaV2ContentFilterMatchConfig(BaseModel): __properties: ClassVar[List[str]] = ["domainCategoryIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_contractual_bandwidth_consumption_summary.py b/graphiant_sdk/models/mana_v2_contractual_bandwidth_consumption_summary.py index 8a00162b..0feb30bc 100644 --- a/graphiant_sdk/models/mana_v2_contractual_bandwidth_consumption_summary.py +++ b/graphiant_sdk/models/mana_v2_contractual_bandwidth_consumption_summary.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.mana_v2_time_period import ManaV2TimePeriod from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ContractualBandwidthConsumptionSummary(BaseModel): """ ManaV2ContractualBandwidthConsumptionSummary """ # noqa: E501 expiration_date: Optional[ManaV2TimePeriod] = Field(default=None, alias="expirationDate") - total_consumed_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All credits consumed over the entirety the enterprise's contracts", alias="totalConsumedCredits", json_schema_extra={"examples": [12.34]}) - total_contracted_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number of credits agreed upon for the entirety of the current contract", alias="totalContractedCredits", json_schema_extra={"examples": [12.34]}) - total_remaining_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number of unused credits remaining under the current contract", alias="totalRemainingCredits", json_schema_extra={"examples": [12.34]}) + total_consumed_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All credits consumed over the entirety the enterprise's contracts", alias="totalConsumedCredits") + total_contracted_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number of credits agreed upon for the entirety of the current contract", alias="totalContractedCredits") + total_remaining_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number of unused credits remaining under the current contract", alias="totalRemainingCredits") __properties: ClassVar[List[str]] = ["expirationDate", "totalConsumedCredits", "totalContractedCredits", "totalRemainingCredits"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_core_device_config.py b/graphiant_sdk/models/mana_v2_core_device_config.py index e6ab258d..1da3e545 100644 --- a/graphiant_sdk/models/mana_v2_core_device_config.py +++ b/graphiant_sdk/models/mana_v2_core_device_config.py @@ -30,7 +30,6 @@ from graphiant_sdk.models.mana_v2_vrf_config import ManaV2VrfConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2CoreDeviceConfig(BaseModel): """ @@ -41,12 +40,12 @@ class ManaV2CoreDeviceConfig(BaseModel): interfaces: Optional[Dict[str, ManaV2NullableInterfaceCoreConfig]] = None ipfix_exporters: Optional[Dict[str, ManaV2NullableIpfixExporterConfig]] = Field(default=None, alias="ipfixExporters") isp_vrfs: Optional[Dict[str, ManaV2VrfConfig]] = Field(default=None, alias="ispVrfs") - maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode", json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode") + name: Optional[StrictStr] = None prefix_sets: Optional[Dict[str, ManaV2NullablePrefixSetConfig]] = Field(default=None, alias="prefixSets") prometheus: Optional[ManaV2PrometheusConfig] = None - region: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - region_name: Optional[StrictStr] = Field(default=None, alias="regionName", json_schema_extra={"examples": ["example string"]}) + region: Optional[StrictStr] = None + region_name: Optional[StrictStr] = Field(default=None, alias="regionName") route_policies: Optional[Dict[str, ManaV2NullableRoutingPolicyConfig]] = Field(default=None, alias="routePolicies") site: Optional[ManaV2NewSite] = None traffic_policy: Optional[ManaV2ForwardingPolicyConfig] = Field(default=None, alias="trafficPolicy") @@ -54,8 +53,7 @@ class ManaV2CoreDeviceConfig(BaseModel): __properties: ClassVar[List[str]] = ["bgpInstance", "coreVrf", "interfaces", "ipfixExporters", "ispVrfs", "maintenanceMode", "name", "prefixSets", "prometheus", "region", "regionName", "routePolicies", "site", "trafficPolicy", "vrfs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -67,7 +65,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_core_interface_config.py b/graphiant_sdk/models/mana_v2_core_interface_config.py index 1698efcb..08870eb6 100644 --- a/graphiant_sdk/models/mana_v2_core_interface_config.py +++ b/graphiant_sdk/models/mana_v2_core_interface_config.py @@ -23,28 +23,26 @@ from graphiant_sdk.models.mana_v2_interface_ip_config import ManaV2InterfaceIpConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2CoreInterfaceConfig(BaseModel): """ ManaV2CoreInterfaceConfig """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus", json_schema_extra={"examples": [True]}) - alias: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - duplex: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") + alias: Optional[StrictStr] = None + description: Optional[StrictStr] = None + duplex: Optional[StrictStr] = None ipv4: Optional[ManaV2InterfaceIpConfig] = None ipv6: Optional[ManaV2InterfaceIpConfig] = None - max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit", json_schema_extra={"examples": [123]}) - mpls_enabled: Optional[StrictBool] = Field(default=None, alias="mplsEnabled", json_schema_extra={"examples": [True]}) - tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4", json_schema_extra={"examples": [123]}) - tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6", json_schema_extra={"examples": [123]}) - x_talk_filter: Optional[StrictBool] = Field(default=None, alias="xTalkFilter", json_schema_extra={"examples": [True]}) + max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit") + mpls_enabled: Optional[StrictBool] = Field(default=None, alias="mplsEnabled") + tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4") + tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6") + x_talk_filter: Optional[StrictBool] = Field(default=None, alias="xTalkFilter") __properties: ClassVar[List[str]] = ["adminStatus", "alias", "description", "duplex", "ipv4", "ipv6", "maxTransmissionUnit", "mplsEnabled", "tcpMssV4", "tcpMssV6", "xTalkFilter"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_core_link_cost.py b/graphiant_sdk/models/mana_v2_core_link_cost.py index ab8ed1d1..e33847cc 100644 --- a/graphiant_sdk/models/mana_v2_core_link_cost.py +++ b/graphiant_sdk/models/mana_v2_core_link_cost.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.mana_v2_latency_bandwidth import ManaV2LatencyBandwidth from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2CoreLinkCost(BaseModel): """ ManaV2CoreLinkCost """ # noqa: E501 dynamic: Optional[ManaV2LatencyBandwidth] = None - static: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + static: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["dynamic", "static"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_core_vlan_interface_config.py b/graphiant_sdk/models/mana_v2_core_vlan_interface_config.py index efffd2b7..ce4b58ab 100644 --- a/graphiant_sdk/models/mana_v2_core_vlan_interface_config.py +++ b/graphiant_sdk/models/mana_v2_core_vlan_interface_config.py @@ -27,7 +27,6 @@ from graphiant_sdk.models.mana_v2interface_config_type import ManaV2interfaceConfigType from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2CoreVlanInterfaceConfig(BaseModel): """ @@ -38,13 +37,12 @@ class ManaV2CoreVlanInterfaceConfig(BaseModel): gateway_neighbor: Optional[ManaV2InterfaceCoreToGatewayPeerConfig] = Field(default=None, alias="gatewayNeighbor") interface: Optional[ManaV2CoreInterfaceConfig] = None interface_type: Optional[ManaV2interfaceConfigType] = Field(default=None, alias="interfaceType") - vlan_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="vlanId", json_schema_extra={"examples": [123]}) + vlan_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="vlanId") wan: Optional[ManaV2InterfaceWanConfig] = None __properties: ClassVar[List[str]] = ["coreNeighbor", "default", "gatewayNeighbor", "interface", "interfaceType", "vlanId", "wan"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_customer_match_info.py b/graphiant_sdk/models/mana_v2_customer_match_info.py index 5fc8b0b5..5e1604ed 100644 --- a/graphiant_sdk/models/mana_v2_customer_match_info.py +++ b/graphiant_sdk/models/mana_v2_customer_match_info.py @@ -23,25 +23,23 @@ 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 ManaV2CustomerMatchInfo(BaseModel): """ ManaV2CustomerMatchInfo """ # noqa: E501 - customer_id: Optional[StrictStr] = Field(default=None, alias="customerId", json_schema_extra={"examples": ["example string"]}) - customer_name: Optional[StrictStr] = Field(default=None, alias="customerName", json_schema_extra={"examples": ["example string"]}) + customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") + customer_name: Optional[StrictStr] = Field(default=None, alias="customerName") emails: Optional[List[StrictStr]] = None - match_id: Optional[StrictInt] = Field(default=None, alias="matchId", json_schema_extra={"examples": [1234567891011]}) - matched_services: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedServices", json_schema_extra={"examples": [123]}) - peer_type: Optional[StrictStr] = Field(default=None, alias="peerType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + match_id: Optional[StrictInt] = Field(default=None, alias="matchId") + matched_services: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedServices") + peer_type: Optional[StrictStr] = Field(default=None, alias="peerType") + status: Optional[StrictStr] = None updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["customerId", "customerName", "emails", "matchId", "matchedServices", "peerType", "status", "updatedAt"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_device.py b/graphiant_sdk/models/mana_v2_device.py index 83a11310..cfcfd874 100644 --- a/graphiant_sdk/models/mana_v2_device.py +++ b/graphiant_sdk/models/mana_v2_device.py @@ -42,64 +42,62 @@ from graphiant_sdk.models.mana_v2_vrf import ManaV2Vrf from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2Device(BaseModel): """ ManaV2Device """ # noqa: E501 bgp: Optional[ManaV2BgpInstance] = None - bgp_enabled: Optional[StrictBool] = Field(default=None, alias="bgpEnabled", json_schema_extra={"examples": [True]}) + bgp_enabled: Optional[StrictBool] = Field(default=None, alias="bgpEnabled") circuits: Optional[List[ManaV2Circuit]] = None config_updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="configUpdatedAt") created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - dhcp_server_enabled: Optional[StrictBool] = Field(default=None, alias="dhcpServerEnabled", json_schema_extra={"examples": [True]}) + dhcp_server_enabled: Optional[StrictBool] = Field(default=None, alias="dhcpServerEnabled") dns: Optional[ManaV2Dns] = None - gdi: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + gdi: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + hostname: Optional[StrictStr] = None + id: Optional[StrictInt] = None interfaces: Optional[List[ManaV2Interface]] = None - internal_state: Optional[StrictStr] = Field(default=None, alias="internalState", json_schema_extra={"examples": ["ENUM_VALUE"]}) - ipfix_enabled: Optional[StrictBool] = Field(default=None, alias="ipfixEnabled", json_schema_extra={"examples": [True]}) + internal_state: Optional[StrictStr] = Field(default=None, alias="internalState") + ipfix_enabled: Optional[StrictBool] = Field(default=None, alias="ipfixEnabled") ipfix_exporters: Optional[List[ManaV2IpfixExporter]] = Field(default=None, alias="ipfixExporters") ipsec_tunnels: Optional[List[ManaV2SiteToSiteIPsec]] = Field(default=None, alias="ipsecTunnels") last_booted_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastBootedAt") - lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled", json_schema_extra={"examples": [True]}) + lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled") local_route_tag: Optional[ManaV2RouteTag] = Field(default=None, alias="localRouteTag") - local_web_server_password: Optional[StrictStr] = Field(default=None, alias="localWebServerPassword", json_schema_extra={"examples": ["example string"]}) + local_web_server_password: Optional[StrictStr] = Field(default=None, alias="localWebServerPassword") location: Optional[ManaV2Location] = None - maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode", json_schema_extra={"examples": [True]}) + maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode") nat_policy: Optional[ManaV2NatPolicy] = Field(default=None, alias="natPolicy") - notes: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + notes: Optional[StrictStr] = None ntp: Optional[ManaV2Ntp] = None - oper_staled: Optional[StrictBool] = Field(default=None, alias="operStaled", json_schema_extra={"examples": [True]}) + oper_staled: Optional[StrictBool] = Field(default=None, alias="operStaled") oper_staled_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="operStaledAt") oper_updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="operUpdatedAt") - ospfv2_enabled: Optional[StrictBool] = Field(default=None, alias="ospfv2Enabled", json_schema_extra={"examples": [True]}) - ospfv3_enabled: Optional[StrictBool] = Field(default=None, alias="ospfv3Enabled", json_schema_extra={"examples": [True]}) - platform: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + ospfv2_enabled: Optional[StrictBool] = Field(default=None, alias="ospfv2Enabled") + ospfv3_enabled: Optional[StrictBool] = Field(default=None, alias="ospfv3Enabled") + platform: Optional[StrictStr] = None prefix_sets: Optional[List[ManaV2PrefixSet]] = Field(default=None, alias="prefixSets") - reboot_reason: Optional[StrictStr] = Field(default=None, alias="rebootReason", json_schema_extra={"examples": ["example string"]}) + reboot_reason: Optional[StrictStr] = Field(default=None, alias="rebootReason") region: Optional[ManaV2Region] = None region_override: Optional[ManaV2Region] = Field(default=None, alias="regionOverride") - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + role: Optional[StrictStr] = None routing_policies: Optional[List[ManaV2RoutingPolicy]] = Field(default=None, alias="routingPolicies") segments: Optional[List[ManaV2Vrf]] = None - serial_number: Optional[StrictStr] = Field(default=None, alias="serialNumber", json_schema_extra={"examples": ["example string"]}) + serial_number: Optional[StrictStr] = Field(default=None, alias="serialNumber") site: Optional[ManaV2Site] = None sla_conformance: Optional[ManaV2SlaConformance] = Field(default=None, alias="slaConformance") snmp: Optional[ManaV2Snmp] = None - software_version: Optional[StrictStr] = Field(default=None, alias="softwareVersion", json_schema_extra={"examples": ["example string"]}) - static_routes_enabled: Optional[StrictBool] = Field(default=None, alias="staticRoutesEnabled", json_schema_extra={"examples": [True]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + software_version: Optional[StrictStr] = Field(default=None, alias="softwareVersion") + static_routes_enabled: Optional[StrictBool] = Field(default=None, alias="staticRoutesEnabled") + status: Optional[StrictStr] = None traffic_policy: Optional[ManaV2ForwardingPolicy] = Field(default=None, alias="trafficPolicy") uptime: Optional[GoogleProtobufDuration] = None - vrrp_enabled: Optional[StrictBool] = Field(default=None, alias="vrrpEnabled", json_schema_extra={"examples": [True]}) + vrrp_enabled: Optional[StrictBool] = Field(default=None, alias="vrrpEnabled") __properties: ClassVar[List[str]] = ["bgp", "bgpEnabled", "circuits", "configUpdatedAt", "createdAt", "dhcpServerEnabled", "dns", "gdi", "hostname", "id", "interfaces", "internalState", "ipfixEnabled", "ipfixExporters", "ipsecTunnels", "lastBootedAt", "lldpEnabled", "localRouteTag", "localWebServerPassword", "location", "maintenanceMode", "natPolicy", "notes", "ntp", "operStaled", "operStaledAt", "operUpdatedAt", "ospfv2Enabled", "ospfv3Enabled", "platform", "prefixSets", "rebootReason", "region", "regionOverride", "role", "routingPolicies", "segments", "serialNumber", "site", "slaConformance", "snmp", "softwareVersion", "staticRoutesEnabled", "status", "trafficPolicy", "uptime", "vrrpEnabled"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -111,7 +109,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_device_filter.py b/graphiant_sdk/models/mana_v2_device_filter.py index 7415ca69..f6e033e9 100644 --- a/graphiant_sdk/models/mana_v2_device_filter.py +++ b/graphiant_sdk/models/mana_v2_device_filter.py @@ -21,21 +21,19 @@ 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 ManaV2DeviceFilter(BaseModel): """ ManaV2DeviceFilter """ # noqa: E501 - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - list: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) + hostname: Optional[StrictStr] = None + list: Optional[StrictStr] = None + role: Optional[StrictStr] = None + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") __properties: ClassVar[List[str]] = ["hostname", "list", "role", "siteId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_device_snapshot.py b/graphiant_sdk/models/mana_v2_device_snapshot.py index bd08acf4..768d5b67 100644 --- a/graphiant_sdk/models/mana_v2_device_snapshot.py +++ b/graphiant_sdk/models/mana_v2_device_snapshot.py @@ -24,24 +24,22 @@ from graphiant_sdk.models.mana_v2_device_snapshot_data import ManaV2DeviceSnapshotData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2DeviceSnapshot(BaseModel): """ ManaV2DeviceSnapshot """ # noqa: E501 author: Optional[CommonUserInfo] = None - category: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + category: Optional[StrictStr] = None created_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdOn") data: Optional[ManaV2DeviceSnapshotData] = None - golden: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, description="name for the snapshot", json_schema_extra={"examples": ["6-1-24-status-check"]}) + golden: Optional[StrictBool] = None + id: Optional[StrictInt] = None + name: Optional[StrictStr] = Field(default=None, description="name for the snapshot") __properties: ClassVar[List[str]] = ["author", "category", "createdOn", "data", "golden", "id", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_device_snapshot_data.py b/graphiant_sdk/models/mana_v2_device_snapshot_data.py index cef0d241..5d688c58 100644 --- a/graphiant_sdk/models/mana_v2_device_snapshot_data.py +++ b/graphiant_sdk/models/mana_v2_device_snapshot_data.py @@ -22,31 +22,29 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2DeviceSnapshotData(BaseModel): """ ManaV2DeviceSnapshotData """ # noqa: E501 - ospf_installed_route_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="OSPFInstalledRouteCount", json_schema_extra={"examples": [123]}) - t2_session_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="T2SessionCount", json_schema_extra={"examples": [123]}) - twamp_session_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="TWAMPSessionCount", json_schema_extra={"examples": [123]}) - bfd_session_count: Optional[StrictInt] = Field(default=None, alias="bfdSessionCount", json_schema_extra={"examples": [123]}) + ospf_installed_route_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="OSPFInstalledRouteCount") + t2_session_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="T2SessionCount") + twamp_session_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="TWAMPSessionCount") + bfd_session_count: Optional[StrictInt] = Field(default=None, alias="bfdSessionCount") bgp_neighbor_ip_list: Optional[List[StrictStr]] = Field(default=None, alias="bgpNeighborIpList") - bgp_session_count: Optional[StrictInt] = Field(default=None, alias="bgpSessionCount", json_schema_extra={"examples": [123]}) - device_role: Optional[StrictStr] = Field(default=None, alias="deviceRole", json_schema_extra={"examples": ["ENUM_VALUE"]}) - failed_services_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="failedServicesCount", json_schema_extra={"examples": [123]}) - graphnos_version: Optional[StrictStr] = Field(default=None, alias="graphnosVersion", json_schema_extra={"examples": ["example string"]}) - installed_labels: Optional[StrictInt] = Field(default=None, alias="installedLabels", json_schema_extra={"examples": [123]}) - ipsec_session_count: Optional[StrictInt] = Field(default=None, alias="ipsecSessionCount", json_schema_extra={"examples": [123]}) - ongoing_alerts: Optional[StrictInt] = Field(default=None, alias="ongoingAlerts", json_schema_extra={"examples": [123]}) + bgp_session_count: Optional[StrictInt] = Field(default=None, alias="bgpSessionCount") + device_role: Optional[StrictStr] = Field(default=None, alias="deviceRole") + failed_services_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="failedServicesCount") + graphnos_version: Optional[StrictStr] = Field(default=None, alias="graphnosVersion") + installed_labels: Optional[StrictInt] = Field(default=None, alias="installedLabels") + ipsec_session_count: Optional[StrictInt] = Field(default=None, alias="ipsecSessionCount") + ongoing_alerts: Optional[StrictInt] = Field(default=None, alias="ongoingAlerts") ospf_neighbor_ip_list: Optional[List[StrictStr]] = Field(default=None, alias="ospfNeighborIpList") - ospf_session_count: Optional[StrictInt] = Field(default=None, alias="ospfSessionCount", json_schema_extra={"examples": [123]}) + ospf_session_count: Optional[StrictInt] = Field(default=None, alias="ospfSessionCount") __properties: ClassVar[List[str]] = ["OSPFInstalledRouteCount", "T2SessionCount", "TWAMPSessionCount", "bfdSessionCount", "bgpNeighborIpList", "bgpSessionCount", "deviceRole", "failedServicesCount", "graphnosVersion", "installedLabels", "ipsecSessionCount", "ongoingAlerts", "ospfNeighborIpList", "ospfSessionCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -58,7 +56,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_device_snapshot_list.py b/graphiant_sdk/models/mana_v2_device_snapshot_list.py index c0156fa2..f926a5fa 100644 --- a/graphiant_sdk/models/mana_v2_device_snapshot_list.py +++ b/graphiant_sdk/models/mana_v2_device_snapshot_list.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_device_snapshot import ManaV2DeviceSnapshot from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2DeviceSnapshotList(BaseModel): """ ManaV2DeviceSnapshotList """ # noqa: E501 - count: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + count: Optional[StrictInt] = None snapshots: Optional[List[ManaV2DeviceSnapshot]] = None __properties: ClassVar[List[str]] = ["count", "snapshots"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dhcp_lease.py b/graphiant_sdk/models/mana_v2_dhcp_lease.py index 2fce61c4..7ca1a4a6 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_lease.py +++ b/graphiant_sdk/models/mana_v2_dhcp_lease.py @@ -22,22 +22,20 @@ 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 ManaV2DhcpLease(BaseModel): """ ManaV2DhcpLease """ # noqa: E501 ends_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="endsAt") - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - ip_address: Optional[StrictStr] = Field(default=None, alias="ipAddress", json_schema_extra={"examples": ["example string"]}) - mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress", json_schema_extra={"examples": ["example string"]}) - vrf: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + ip_address: Optional[StrictStr] = Field(default=None, alias="ipAddress") + mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress") + vrf: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["endsAt", "id", "ipAddress", "macAddress", "vrf"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dhcp_relay.py b/graphiant_sdk/models/mana_v2_dhcp_relay.py index cb75146b..b2cb5c6b 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_relay.py +++ b/graphiant_sdk/models/mana_v2_dhcp_relay.py @@ -21,7 +21,6 @@ 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 ManaV2DhcpRelay(BaseModel): """ @@ -29,12 +28,11 @@ class ManaV2DhcpRelay(BaseModel): """ # noqa: E501 dhcpv4_relays: Optional[List[StrictStr]] = Field(default=None, alias="dhcpv4Relays") dhcpv6_relays: Optional[List[StrictStr]] = Field(default=None, alias="dhcpv6Relays") - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["dhcpv4Relays", "dhcpv6Relays", "id"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dhcp_relay_config.py b/graphiant_sdk/models/mana_v2_dhcp_relay_config.py index c376042d..c5c02f34 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_relay_config.py +++ b/graphiant_sdk/models/mana_v2_dhcp_relay_config.py @@ -21,7 +21,6 @@ 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 ManaV2DhcpRelayConfig(BaseModel): """ @@ -31,8 +30,7 @@ class ManaV2DhcpRelayConfig(BaseModel): __properties: ClassVar[List[str]] = ["relayServers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dhcp_server_dns_parameters_config.py b/graphiant_sdk/models/mana_v2_dhcp_server_dns_parameters_config.py index 080ac514..7add447d 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_server_dns_parameters_config.py +++ b/graphiant_sdk/models/mana_v2_dhcp_server_dns_parameters_config.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2DhcpServerDnsParametersConfig(BaseModel): """ ManaV2DhcpServerDnsParametersConfig """ # noqa: E501 - primary: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - secondary: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + primary: Optional[StrictStr] = None + secondary: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["primary", "secondary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dhcp_server_ip_range.py b/graphiant_sdk/models/mana_v2_dhcp_server_ip_range.py index 7734cb2b..40270e9d 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_server_ip_range.py +++ b/graphiant_sdk/models/mana_v2_dhcp_server_ip_range.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2DhcpServerIpRange(BaseModel): """ ManaV2DhcpServerIpRange """ # noqa: E501 - end: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - start: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + end: Optional[StrictStr] = None + start: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["end", "start"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dhcp_server_pool.py b/graphiant_sdk/models/mana_v2_dhcp_server_pool.py index 492b0a4e..dfa52cc7 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_server_pool.py +++ b/graphiant_sdk/models/mana_v2_dhcp_server_pool.py @@ -26,34 +26,32 @@ from graphiant_sdk.models.mana_v2_dns_servers import ManaV2DnsServers from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2DhcpServerPool(BaseModel): """ ManaV2DhcpServerPool """ # noqa: E501 - default_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="defaultLeaseTimeSecs", json_schema_extra={"examples": [123]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - domain_name: Optional[StrictStr] = Field(default=None, alias="domainName", json_schema_extra={"examples": ["example string"]}) - gateway: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix", json_schema_extra={"examples": ["example string"]}) - ip_version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ipVersion", json_schema_extra={"examples": [123]}) + default_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="defaultLeaseTimeSecs") + description: Optional[StrictStr] = None + domain_name: Optional[StrictStr] = Field(default=None, alias="domainName") + gateway: Optional[StrictStr] = None + id: Optional[StrictInt] = None + interface: Optional[StrictStr] = None + ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix") + ip_version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ipVersion") leases: Optional[List[ManaV2DhcpLease]] = None - max_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxLeaseTimeSecs", json_schema_extra={"examples": [123]}) - min_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minLeaseTimeSecs", json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + max_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxLeaseTimeSecs") + min_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minLeaseTimeSecs") + name: Optional[StrictStr] = None nameservers: Optional[ManaV2DnsServers] = None ranges: Optional[List[ManaV2DhcpServerIpRange]] = None static_leases: Optional[List[ManaV2DhcpStaticLease]] = Field(default=None, alias="staticLeases") - total_addresses: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalAddresses", json_schema_extra={"examples": [12345678910]}) - utilization: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + total_addresses: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalAddresses") + utilization: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["defaultLeaseTimeSecs", "description", "domainName", "gateway", "id", "interface", "ipPrefix", "ipVersion", "leases", "maxLeaseTimeSecs", "minLeaseTimeSecs", "name", "nameservers", "ranges", "staticLeases", "totalAddresses", "utilization"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -65,7 +63,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dhcp_static_lease.py b/graphiant_sdk/models/mana_v2_dhcp_static_lease.py index a523d3a5..e9220cd7 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_static_lease.py +++ b/graphiant_sdk/models/mana_v2_dhcp_static_lease.py @@ -21,22 +21,20 @@ 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 ManaV2DhcpStaticLease(BaseModel): """ ManaV2DhcpStaticLease """ # noqa: E501 - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - ip_address: Optional[StrictStr] = Field(default=None, alias="ipAddress", json_schema_extra={"examples": ["example string"]}) - mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress", json_schema_extra={"examples": ["example string"]}) - vrf: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + hostname: Optional[StrictStr] = None + id: Optional[StrictInt] = None + ip_address: Optional[StrictStr] = Field(default=None, alias="ipAddress") + mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress") + vrf: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["hostname", "id", "ipAddress", "macAddress", "vrf"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dhcp_subnet_config.py b/graphiant_sdk/models/mana_v2_dhcp_subnet_config.py index d6794df1..c455de57 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_subnet_config.py +++ b/graphiant_sdk/models/mana_v2_dhcp_subnet_config.py @@ -26,30 +26,28 @@ from graphiant_sdk.models.mana_v2_nullable_dhcpip_range_list import ManaV2NullableDhcpipRangeList from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2DhcpSubnetConfig(BaseModel): """ ManaV2DhcpSubnetConfig """ # noqa: E501 - default_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="defaultLeaseTimeSecs", json_schema_extra={"examples": [123]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - domain_name: Optional[StrictStr] = Field(default=None, alias="domainName", json_schema_extra={"examples": ["example string"]}) + default_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="defaultLeaseTimeSecs") + description: Optional[StrictStr] = None + domain_name: Optional[StrictStr] = Field(default=None, alias="domainName") domain_name_server: Optional[ManaV2DhcpServerDnsParametersConfig] = Field(default=None, alias="domainNameServer") - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - ip_gateway: Optional[StrictStr] = Field(default=None, alias="ipGateway", json_schema_extra={"examples": ["example string"]}) - ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix", json_schema_extra={"examples": ["example string"]}) + interface: Optional[StrictStr] = None + ip_gateway: Optional[StrictStr] = Field(default=None, alias="ipGateway") + ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix") ip_ranges: Optional[List[ManaV2DhcpipRangeConfig]] = Field(default=None, alias="ipRanges") ip_ranges_v2: Optional[ManaV2NullableDhcpipRangeList] = Field(default=None, alias="ipRangesV2") - max_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxLeaseTimeSecs", json_schema_extra={"examples": [123]}) - min_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minLeaseTimeSecs", json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + max_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxLeaseTimeSecs") + min_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minLeaseTimeSecs") + name: Optional[StrictStr] = None static_leases: Optional[Dict[str, ManaV2NullableDhcpSubnetStaticLeaseConfig]] = Field(default=None, alias="staticLeases") __properties: ClassVar[List[str]] = ["defaultLeaseTimeSecs", "description", "domainName", "domainNameServer", "interface", "ipGateway", "ipPrefix", "ipRanges", "ipRangesV2", "maxLeaseTimeSecs", "minLeaseTimeSecs", "name", "staticLeases"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -61,7 +59,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dhcp_subnet_static_lease_config.py b/graphiant_sdk/models/mana_v2_dhcp_subnet_static_lease_config.py index 4a5f2462..eddf9a57 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_subnet_static_lease_config.py +++ b/graphiant_sdk/models/mana_v2_dhcp_subnet_static_lease_config.py @@ -21,20 +21,18 @@ 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 ManaV2DhcpSubnetStaticLeaseConfig(BaseModel): """ ManaV2DhcpSubnetStaticLeaseConfig """ # noqa: E501 - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - ip_address: Optional[StrictStr] = Field(default=None, alias="ipAddress", json_schema_extra={"examples": ["example string"]}) - mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress", json_schema_extra={"examples": ["example string"]}) + hostname: Optional[StrictStr] = None + ip_address: Optional[StrictStr] = Field(default=None, alias="ipAddress") + mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress") __properties: ClassVar[List[str]] = ["hostname", "ipAddress", "macAddress"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dhcpip_range_config.py b/graphiant_sdk/models/mana_v2_dhcpip_range_config.py index a75318be..7a07da85 100644 --- a/graphiant_sdk/models/mana_v2_dhcpip_range_config.py +++ b/graphiant_sdk/models/mana_v2_dhcpip_range_config.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2DhcpipRangeConfig(BaseModel): """ ManaV2DhcpipRangeConfig """ # noqa: E501 - end: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - start: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + end: Optional[StrictStr] = None + start: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["end", "start"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dns.py b/graphiant_sdk/models/mana_v2_dns.py index 5536dff2..f67815a2 100644 --- a/graphiant_sdk/models/mana_v2_dns.py +++ b/graphiant_sdk/models/mana_v2_dns.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_static_dns_servers import ManaV2StaticDnsServers from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2Dns(BaseModel): """ @@ -33,14 +32,13 @@ class ManaV2Dns(BaseModel): cloudflare_servers: Optional[List[ManaV2DnsipAddress]] = Field(default=None, alias="cloudflareServers") dynamic_servers: Optional[List[ManaV2DnsipAddress]] = Field(default=None, alias="dynamicServers") dynamic_servers_v2: Optional[ManaV2DynamicDnsServers] = Field(default=None, alias="dynamicServersV2") - mode: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + mode: Optional[StrictStr] = None static_servers: Optional[List[ManaV2DnsipAddress]] = Field(default=None, alias="staticServers") static_servers_v2: Optional[ManaV2StaticDnsServers] = Field(default=None, alias="staticServersV2") __properties: ClassVar[List[str]] = ["cloudflareServers", "dynamicServers", "dynamicServersV2", "mode", "staticServers", "staticServersV2"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dns_config.py b/graphiant_sdk/models/mana_v2_dns_config.py index 04ba7eb2..191a6677 100644 --- a/graphiant_sdk/models/mana_v2_dns_config.py +++ b/graphiant_sdk/models/mana_v2_dns_config.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_dns_config_static import ManaV2DNSConfigStatic from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2DnsConfig(BaseModel): """ @@ -35,8 +34,7 @@ class ManaV2DnsConfig(BaseModel): __properties: ClassVar[List[str]] = ["cloudflare", "dynamic", "static"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dns_config_dynamic.py b/graphiant_sdk/models/mana_v2_dns_config_dynamic.py index 41c2ea74..29708537 100644 --- a/graphiant_sdk/models/mana_v2_dns_config_dynamic.py +++ b/graphiant_sdk/models/mana_v2_dns_config_dynamic.py @@ -21,19 +21,17 @@ 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 ManaV2DNSConfigDynamic(BaseModel): """ ManaV2DNSConfigDynamic """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") __properties: ClassVar[List[str]] = ["circuitName", "interfaceName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dns_config_static.py b/graphiant_sdk/models/mana_v2_dns_config_static.py index b321b080..bc4241bb 100644 --- a/graphiant_sdk/models/mana_v2_dns_config_static.py +++ b/graphiant_sdk/models/mana_v2_dns_config_static.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_nullable_ipv6_address import ManaV2NullableIPv6Address from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2DNSConfigStatic(BaseModel): """ @@ -36,8 +35,7 @@ class ManaV2DNSConfigStatic(BaseModel): __properties: ClassVar[List[str]] = ["primaryIpv4V2", "primaryIpv6V2", "secondaryIpv4V2", "secondaryIpv6V2"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dns_servers.py b/graphiant_sdk/models/mana_v2_dns_servers.py index 40e2e6ba..ed47c104 100644 --- a/graphiant_sdk/models/mana_v2_dns_servers.py +++ b/graphiant_sdk/models/mana_v2_dns_servers.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2DnsServers(BaseModel): """ ManaV2DnsServers """ # noqa: E501 - primary: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - secondary: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + primary: Optional[StrictStr] = None + secondary: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["primary", "secondary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dnsip_address.py b/graphiant_sdk/models/mana_v2_dnsip_address.py index 737de62b..760c620f 100644 --- a/graphiant_sdk/models/mana_v2_dnsip_address.py +++ b/graphiant_sdk/models/mana_v2_dnsip_address.py @@ -21,24 +21,22 @@ 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 ManaV2DnsipAddress(BaseModel): """ ManaV2DnsipAddress """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - ipv4: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - ipv6: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - source: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - stale: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + ipv4: Optional[StrictStr] = None + ipv6: Optional[StrictStr] = None + source: Optional[StrictStr] = None + stale: Optional[StrictBool] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["circuitName", "interfaceName", "ipv4", "ipv6", "source", "stale", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dnsip_addresses.py b/graphiant_sdk/models/mana_v2_dnsip_addresses.py index c6ecd83d..92b18cf1 100644 --- a/graphiant_sdk/models/mana_v2_dnsip_addresses.py +++ b/graphiant_sdk/models/mana_v2_dnsip_addresses.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_dnsip_address import ManaV2DnsipAddress from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2DnsipAddresses(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2DnsipAddresses(BaseModel): __properties: ClassVar[List[str]] = ["dynamicServers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_domain_category.py b/graphiant_sdk/models/mana_v2_domain_category.py index c9251eec..4fd8cb5e 100644 --- a/graphiant_sdk/models/mana_v2_domain_category.py +++ b/graphiant_sdk/models/mana_v2_domain_category.py @@ -21,21 +21,19 @@ 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.", json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, description="Stable identifier for this domain category in the content-filter catalog.", json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, description="Human-readable name of the domain category.", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, description="Optional category classifier or grouping hint from the catalog (e.g. vendor-specific type).", json_schema_extra={"examples": ["example string"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_domain_list_match_config.py b/graphiant_sdk/models/mana_v2_domain_list_match_config.py index 8dbbf6f8..fc0f261a 100644 --- a/graphiant_sdk/models/mana_v2_domain_list_match_config.py +++ b/graphiant_sdk/models/mana_v2_domain_list_match_config.py @@ -21,7 +21,6 @@ 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 ManaV2DomainListMatchConfig(BaseModel): """ @@ -31,8 +30,7 @@ class ManaV2DomainListMatchConfig(BaseModel): __properties: ClassVar[List[str]] = ["domainWildcards"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dpi_application_config.py b/graphiant_sdk/models/mana_v2_dpi_application_config.py index b789d180..80c6dab6 100644 --- a/graphiant_sdk/models/mana_v2_dpi_application_config.py +++ b/graphiant_sdk/models/mana_v2_dpi_application_config.py @@ -24,33 +24,31 @@ from graphiant_sdk.models.mana_v2_l4_port_list_config import ManaV2L4PortListConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2DpiApplicationConfig(BaseModel): """ ManaV2DpiApplicationConfig """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - destination_network: Optional[StrictStr] = Field(default=None, alias="destinationNetwork", json_schema_extra={"examples": ["example string"]}) - destination_network_list: Optional[StrictStr] = Field(default=None, alias="destinationNetworkList", json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + destination_network: Optional[StrictStr] = Field(default=None, alias="destinationNetwork") + destination_network_list: Optional[StrictStr] = Field(default=None, alias="destinationNetworkList") destination_networks: Optional[ManaV2IpNetworkListConfig] = Field(default=None, alias="destinationNetworks") - destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": [123]}) - destination_port_list: Optional[StrictStr] = Field(default=None, alias="destinationPortList", json_schema_extra={"examples": ["example string"]}) + destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort") + destination_port_list: Optional[StrictStr] = Field(default=None, alias="destinationPortList") destination_ports: Optional[ManaV2L4PortListConfig] = Field(default=None, alias="destinationPorts") - icmp_type: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="icmpType", json_schema_extra={"examples": [123]}) - ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - source_network: Optional[StrictStr] = Field(default=None, alias="sourceNetwork", json_schema_extra={"examples": ["example string"]}) - source_network_list: Optional[StrictStr] = Field(default=None, alias="sourceNetworkList", json_schema_extra={"examples": ["example string"]}) + icmp_type: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="icmpType") + ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol") + name: Optional[StrictStr] = None + source_network: Optional[StrictStr] = Field(default=None, alias="sourceNetwork") + source_network_list: Optional[StrictStr] = Field(default=None, alias="sourceNetworkList") source_networks: Optional[ManaV2IpNetworkListConfig] = Field(default=None, alias="sourceNetworks") - source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort", json_schema_extra={"examples": [123]}) - source_port_list: Optional[StrictStr] = Field(default=None, alias="sourcePortList", json_schema_extra={"examples": ["example string"]}) + source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort") + source_port_list: Optional[StrictStr] = Field(default=None, alias="sourcePortList") source_ports: Optional[ManaV2L4PortListConfig] = Field(default=None, alias="sourcePorts") __properties: ClassVar[List[str]] = ["description", "destinationNetwork", "destinationNetworkList", "destinationNetworks", "destinationPort", "destinationPortList", "destinationPorts", "icmpType", "ipProtocol", "name", "sourceNetwork", "sourceNetworkList", "sourceNetworks", "sourcePort", "sourcePortList", "sourcePorts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -62,7 +60,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dpi_custom_application.py b/graphiant_sdk/models/mana_v2_dpi_custom_application.py index aae249c0..969c66dd 100644 --- a/graphiant_sdk/models/mana_v2_dpi_custom_application.py +++ b/graphiant_sdk/models/mana_v2_dpi_custom_application.py @@ -22,29 +22,27 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2DpiCustomApplication(BaseModel): """ ManaV2DpiCustomApplication """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - destination_network: Optional[StrictStr] = Field(default=None, alias="destinationNetwork", json_schema_extra={"examples": ["example string"]}) - destination_network_list: Optional[StrictStr] = Field(default=None, alias="destinationNetworkList", json_schema_extra={"examples": ["example string"]}) - destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": [123]}) - destination_port_list: Optional[StrictStr] = Field(default=None, alias="destinationPortList", json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - source_network: Optional[StrictStr] = Field(default=None, alias="sourceNetwork", json_schema_extra={"examples": ["example string"]}) - source_network_list: Optional[StrictStr] = Field(default=None, alias="sourceNetworkList", json_schema_extra={"examples": ["example string"]}) - source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort", json_schema_extra={"examples": [123]}) - source_port_list: Optional[StrictStr] = Field(default=None, alias="sourcePortList", json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + destination_network: Optional[StrictStr] = Field(default=None, alias="destinationNetwork") + destination_network_list: Optional[StrictStr] = Field(default=None, alias="destinationNetworkList") + destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort") + destination_port_list: Optional[StrictStr] = Field(default=None, alias="destinationPortList") + id: Optional[StrictInt] = None + ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol") + name: Optional[StrictStr] = None + source_network: Optional[StrictStr] = Field(default=None, alias="sourceNetwork") + source_network_list: Optional[StrictStr] = Field(default=None, alias="sourceNetworkList") + source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort") + source_port_list: Optional[StrictStr] = Field(default=None, alias="sourcePortList") __properties: ClassVar[List[str]] = ["description", "destinationNetwork", "destinationNetworkList", "destinationPort", "destinationPortList", "id", "ipProtocol", "name", "sourceNetwork", "sourceNetworkList", "sourcePort", "sourcePortList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dscp.py b/graphiant_sdk/models/mana_v2_dscp.py index a518bfea..37a4d199 100644 --- a/graphiant_sdk/models/mana_v2_dscp.py +++ b/graphiant_sdk/models/mana_v2_dscp.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2Dscp(BaseModel): """ ManaV2Dscp """ # noqa: E501 - code_point: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="codePoint", json_schema_extra={"examples": [123]}) + code_point: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="codePoint") __properties: ClassVar[List[str]] = ["codePoint"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_dynamic_dns_servers.py b/graphiant_sdk/models/mana_v2_dynamic_dns_servers.py index f5fecbdb..f1a9b658 100644 --- a/graphiant_sdk/models/mana_v2_dynamic_dns_servers.py +++ b/graphiant_sdk/models/mana_v2_dynamic_dns_servers.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_dnsip_addresses import ManaV2DnsipAddresses from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2DynamicDnsServers(BaseModel): """ ManaV2DynamicDnsServers """ # noqa: E501 - circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + circuit: Optional[StrictStr] = None servers: Optional[Dict[str, ManaV2DnsipAddresses]] = None __properties: ClassVar[List[str]] = ["circuit", "servers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_edge_device_config.py b/graphiant_sdk/models/mana_v2_edge_device_config.py index 01c0901c..70dd6060 100644 --- a/graphiant_sdk/models/mana_v2_edge_device_config.py +++ b/graphiant_sdk/models/mana_v2_edge_device_config.py @@ -39,34 +39,33 @@ from graphiant_sdk.models.mana_v2_vrf_config import ManaV2VrfConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2EdgeDeviceConfig(BaseModel): """ ManaV2EdgeDeviceConfig """ # noqa: E501 - bgp_enabled: Optional[StrictBool] = Field(default=None, alias="bgpEnabled", json_schema_extra={"examples": [True]}) + bgp_enabled: Optional[StrictBool] = Field(default=None, alias="bgpEnabled") bgp_instance: Optional[ManaV2BgpInstanceConfig] = Field(default=None, alias="bgpInstance") circuits: Optional[Dict[str, ManaV2CircuitConfig]] = None - dhcp_server_enabled: Optional[StrictBool] = Field(default=None, alias="dhcpServerEnabled", json_schema_extra={"examples": [True]}) + dhcp_server_enabled: Optional[StrictBool] = Field(default=None, alias="dhcpServerEnabled") dns: Optional[ManaV2NullableDnsConfig] = None interfaces: Optional[Dict[str, ManaV2NullableInterfaceConfig]] = None - ipfix_enabled: Optional[StrictBool] = Field(default=None, alias="ipfixEnabled", json_schema_extra={"examples": [True]}) + ipfix_enabled: Optional[StrictBool] = Field(default=None, alias="ipfixEnabled") ipfix_exporters: Optional[Dict[str, ManaV2NullableIpfixExporterConfig]] = Field(default=None, alias="ipfixExporters") lag_interfaces: Optional[Dict[str, ManaV2NullableLagInterfaceConfig]] = Field(default=None, alias="lagInterfaces") - lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled", json_schema_extra={"examples": [True]}) + lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled") local_route_tag: Optional[ManaV2NullableRouteTagSet] = Field(default=None, alias="localRouteTag") - local_web_server_password: Optional[StrictStr] = Field(default=None, alias="localWebServerPassword", json_schema_extra={"examples": ["example string"]}) + local_web_server_password: Optional[StrictStr] = Field(default=None, alias="localWebServerPassword") location: Optional[ManaV2Location] = None - maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode", json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode") + name: Optional[StrictStr] = None nat_policy: Optional[ManaV2NatPolicyConfig] = Field(default=None, alias="natPolicy") ntp_global_object: Optional[Dict[str, ManaV2NullableNtpConfig]] = Field(default=None, alias="ntpGlobalObject") - ospfv2_enabled: Optional[StrictBool] = Field(default=None, alias="ospfv2Enabled", json_schema_extra={"examples": [True]}) - ospfv3_enabled: Optional[StrictBool] = Field(default=None, alias="ospfv3Enabled", json_schema_extra={"examples": [True]}) + ospfv2_enabled: Optional[StrictBool] = Field(default=None, alias="ospfv2Enabled") + ospfv3_enabled: Optional[StrictBool] = Field(default=None, alias="ospfv3Enabled") prefix_sets: Optional[Dict[str, ManaV2NullablePrefixSetConfig]] = Field(default=None, alias="prefixSets") - region: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - region_name: Optional[StrictStr] = Field(default=None, alias="regionName", json_schema_extra={"examples": ["example string"]}) + region: Optional[StrictStr] = None + region_name: Optional[StrictStr] = Field(default=None, alias="regionName") route_policies: Optional[Dict[str, ManaV2NullableRoutingPolicyConfig]] = Field(default=None, alias="routePolicies") segments: Optional[Dict[str, ManaV2VrfConfig]] = None site: Optional[ManaV2NewSite] = None @@ -74,14 +73,13 @@ class ManaV2EdgeDeviceConfig(BaseModel): sla_conformance: Optional[ManaV2NullableSlaConformance] = Field(default=None, alias="slaConformance") snmp: Optional[ManaV2NullableSnmpConfig] = None snmp_global_object: Optional[Dict[str, ManaV2NullableSnmpConfig]] = Field(default=None, alias="snmpGlobalObject") - static_routes_enabled: Optional[StrictBool] = Field(default=None, alias="staticRoutesEnabled", json_schema_extra={"examples": [True]}) + static_routes_enabled: Optional[StrictBool] = Field(default=None, alias="staticRoutesEnabled") traffic_policy: Optional[ManaV2ForwardingPolicyConfig] = Field(default=None, alias="trafficPolicy") - vrrp_enabled: Optional[StrictBool] = Field(default=None, alias="vrrpEnabled", json_schema_extra={"examples": [True]}) + vrrp_enabled: Optional[StrictBool] = Field(default=None, alias="vrrpEnabled") __properties: ClassVar[List[str]] = ["bgpEnabled", "bgpInstance", "circuits", "dhcpServerEnabled", "dns", "interfaces", "ipfixEnabled", "ipfixExporters", "lagInterfaces", "lldpEnabled", "localRouteTag", "localWebServerPassword", "location", "maintenanceMode", "name", "natPolicy", "ntpGlobalObject", "ospfv2Enabled", "ospfv3Enabled", "prefixSets", "region", "regionName", "routePolicies", "segments", "site", "siteToSiteVpn", "slaConformance", "snmp", "snmpGlobalObject", "staticRoutesEnabled", "trafficPolicy", "vrrpEnabled"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -93,7 +91,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_enterprise_configuration.py b/graphiant_sdk/models/mana_v2_enterprise_configuration.py index 3427b03e..46df7fc1 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_configuration.py +++ b/graphiant_sdk/models/mana_v2_enterprise_configuration.py @@ -21,19 +21,17 @@ 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 ManaV2EnterpriseConfiguration(BaseModel): """ ManaV2EnterpriseConfiguration """ # noqa: E501 - encryption: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - use_encryption: Optional[StrictBool] = Field(default=None, alias="useEncryption", json_schema_extra={"examples": [True]}) + encryption: Optional[StrictStr] = None + use_encryption: Optional[StrictBool] = Field(default=None, alias="useEncryption") __properties: ClassVar[List[str]] = ["encryption", "useEncryption"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_enterprise_prefix_set.py b/graphiant_sdk/models/mana_v2_enterprise_prefix_set.py index d33e67b0..e3cdfd95 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_prefix_set.py +++ b/graphiant_sdk/models/mana_v2_enterprise_prefix_set.py @@ -17,27 +17,25 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_enterprise_prefix_set_entry import ManaV2EnterprisePrefixSetEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2EnterprisePrefixSet(BaseModel): """ ManaV2EnterprisePrefixSet """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None entries: Optional[List[ManaV2EnterprisePrefixSetEntry]] = None - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - mode: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + mode: Optional[StrictStr] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "entries", "id", "mode", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_config.py b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_config.py index 4d0c260f..c6075f51 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_config.py +++ b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_enterprise_prefix_set_data import ManaV2EnterprisePrefixSetData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2EnterprisePrefixSetConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2EnterprisePrefixSetConfig(BaseModel): __properties: ClassVar[List[str]] = ["prefixSet"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_data.py b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_data.py index 0f9da3ce..44ca2b0a 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_data.py +++ b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_data.py @@ -17,25 +17,23 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_enterprise_prefix_set_data_entry import ManaV2EnterprisePrefixSetDataEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2EnterprisePrefixSetData(BaseModel): """ ManaV2EnterprisePrefixSetData """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None entries: Optional[List[ManaV2EnterprisePrefixSetDataEntry]] = None - mode: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + mode: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "entries", "mode"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_data_entry.py b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_data_entry.py index edb4403b..aec34a74 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_data_entry.py +++ b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_data_entry.py @@ -22,21 +22,19 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2EnterprisePrefixSetDataEntry(BaseModel): """ ManaV2EnterprisePrefixSetDataEntry """ # noqa: E501 - ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix", json_schema_extra={"examples": ["example string"]}) - mask_lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskLower", json_schema_extra={"examples": [123]}) - mask_upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskUpper", json_schema_extra={"examples": [123]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix") + mask_lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskLower") + mask_upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskUpper") + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["ipPrefix", "maskLower", "maskUpper", "seq"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_entry.py b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_entry.py index 11ff133f..696e8c9d 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_entry.py +++ b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_entry.py @@ -22,21 +22,19 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2EnterprisePrefixSetEntry(BaseModel): """ ManaV2EnterprisePrefixSetEntry """ # noqa: E501 - ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix", json_schema_extra={"examples": ["example string"]}) - mask_lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskLower", json_schema_extra={"examples": [123]}) - mask_upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskUpper", json_schema_extra={"examples": [123]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix") + mask_lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskLower") + mask_upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskUpper") + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["ipPrefix", "maskLower", "maskUpper", "seq"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_input.py b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_input.py index c92667f8..98e4026a 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_input.py +++ b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_input.py @@ -17,27 +17,25 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_enterprise_prefix_set_input_entry import ManaV2EnterprisePrefixSetInputEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2EnterprisePrefixSetInput(BaseModel): """ ManaV2EnterprisePrefixSetInput """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None entries: Optional[Dict[str, ManaV2EnterprisePrefixSetInputEntry]] = None - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - mode: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + mode: Optional[StrictStr] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "entries", "id", "mode", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_input_entry.py b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_input_entry.py index 5f060ed3..ea579a19 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_input_entry.py +++ b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_input_entry.py @@ -22,21 +22,19 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2EnterprisePrefixSetInputEntry(BaseModel): """ ManaV2EnterprisePrefixSetInputEntry """ # noqa: E501 - ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix", json_schema_extra={"examples": ["example string"]}) - mask_lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskLower", json_schema_extra={"examples": [123]}) - mask_upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskUpper", json_schema_extra={"examples": [123]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix") + mask_lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskLower") + mask_upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskUpper") + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["ipPrefix", "maskLower", "maskUpper", "seq"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_extranet_auto_reverse_routes.py b/graphiant_sdk/models/mana_v2_extranet_auto_reverse_routes.py index e779b068..6b77a7b6 100644 --- a/graphiant_sdk/models/mana_v2_extranet_auto_reverse_routes.py +++ b/graphiant_sdk/models/mana_v2_extranet_auto_reverse_routes.py @@ -21,19 +21,17 @@ 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 ManaV2ExtranetAutoReverseRoutes(BaseModel): """ ManaV2ExtranetAutoReverseRoutes """ # noqa: E501 - auto_propagate: Optional[StrictBool] = Field(default=None, alias="autoPropagate", json_schema_extra={"examples": [True]}) + auto_propagate: Optional[StrictBool] = Field(default=None, alias="autoPropagate") excluded_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="excludedPrefixes") __properties: ClassVar[List[str]] = ["autoPropagate", "excludedPrefixes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_extranet_consumer_lan_prefixes.py b/graphiant_sdk/models/mana_v2_extranet_consumer_lan_prefixes.py new file mode 100644 index 00000000..359820f2 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_consumer_lan_prefixes.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 + + +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 + +class ManaV2ExtranetConsumerLanPrefixes(BaseModel): + """ + ManaV2ExtranetConsumerLanPrefixes + """ # noqa: E501 + consumer_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="consumerPrefixes") + service_prefix_dnat: Optional[Dict[str, StrictStr]] = Field(default=None, alias="servicePrefixDnat") + __properties: ClassVar[List[str]] = ["consumerPrefixes", "servicePrefixDnat"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetConsumerLanPrefixes 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 ManaV2ExtranetConsumerLanPrefixes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerPrefixes": obj.get("consumerPrefixes"), + "servicePrefixDnat": obj.get("servicePrefixDnat") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_consumer_lan_segment_policy.py b/graphiant_sdk/models/mana_v2_extranet_consumer_lan_segment_policy.py index 3d7d41d2..68b194b2 100644 --- a/graphiant_sdk/models/mana_v2_extranet_consumer_lan_segment_policy.py +++ b/graphiant_sdk/models/mana_v2_extranet_consumer_lan_segment_policy.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_extranet_consumer_nat_rule import ManaV2ExtranetConsumerNatRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ExtranetConsumerLanSegmentPolicy(BaseModel): """ ManaV2ExtranetConsumerLanSegmentPolicy """ # noqa: E501 - consumer_lan_segment: Optional[StrictInt] = Field(default=None, alias="consumerLanSegment", json_schema_extra={"examples": [1234567891011]}) + consumer_lan_segment: Optional[StrictInt] = Field(default=None, alias="consumerLanSegment") restricted_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="restrictedPrefixes") rules: Optional[List[ManaV2ExtranetConsumerNatRule]] = None __properties: ClassVar[List[str]] = ["consumerLanSegment", "restrictedPrefixes", "rules"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_extranet_consumer_lan_segment_policy_response.py b/graphiant_sdk/models/mana_v2_extranet_consumer_lan_segment_policy_response.py index 2fac4799..35009db2 100644 --- a/graphiant_sdk/models/mana_v2_extranet_consumer_lan_segment_policy_response.py +++ b/graphiant_sdk/models/mana_v2_extranet_consumer_lan_segment_policy_response.py @@ -24,13 +24,12 @@ from graphiant_sdk.models.mana_v2_traffic_policy_rule import ManaV2TrafficPolicyRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ExtranetConsumerLanSegmentPolicyResponse(BaseModel): """ ManaV2ExtranetConsumerLanSegmentPolicyResponse """ # noqa: E501 - consumer_lan_segment: Optional[StrictInt] = Field(default=None, alias="consumerLanSegment", json_schema_extra={"examples": [1234567891011]}) + consumer_lan_segment: Optional[StrictInt] = Field(default=None, alias="consumerLanSegment") inbound_security_rules: Optional[List[ManaV2SecurityPolicyRule]] = Field(default=None, alias="inboundSecurityRules") outbound_security_rules: Optional[List[ManaV2SecurityPolicyRule]] = Field(default=None, alias="outboundSecurityRules") restricted_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="restrictedPrefixes") @@ -39,8 +38,7 @@ class ManaV2ExtranetConsumerLanSegmentPolicyResponse(BaseModel): __properties: ClassVar[List[str]] = ["consumerLanSegment", "inboundSecurityRules", "outboundSecurityRules", "restrictedPrefixes", "rules", "trafficRules"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_extranet_consumer_nat_rule.py b/graphiant_sdk/models/mana_v2_extranet_consumer_nat_rule.py index b8428075..4ae5109a 100644 --- a/graphiant_sdk/models/mana_v2_extranet_consumer_nat_rule.py +++ b/graphiant_sdk/models/mana_v2_extranet_consumer_nat_rule.py @@ -21,19 +21,17 @@ 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 ManaV2ExtranetConsumerNatRule(BaseModel): """ ManaV2ExtranetConsumerNatRule """ # noqa: E501 - outside_nat_prefix: Optional[StrictStr] = Field(default=None, description="Optional nat prefix associated with a service prefix with an empty string indicating no NATing", alias="outsideNatPrefix", json_schema_extra={"examples": ["example string"]}) - service_prefix: StrictStr = Field(description="Service prefix for the NAT rule (required)", alias="servicePrefix", json_schema_extra={"examples": ["10.1.2.0/24"]}) + outside_nat_prefix: Optional[StrictStr] = Field(default=None, description="Optional nat prefix associated with a service prefix with an empty string indicating no NATing", alias="outsideNatPrefix") + service_prefix: StrictStr = Field(description="Service prefix for the NAT rule (required)", alias="servicePrefix") __properties: ClassVar[List[str]] = ["outsideNatPrefix", "servicePrefix"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_extranet_device_status.py b/graphiant_sdk/models/mana_v2_extranet_device_status.py index 31f9c896..0c61d974 100644 --- a/graphiant_sdk/models/mana_v2_extranet_device_status.py +++ b/graphiant_sdk/models/mana_v2_extranet_device_status.py @@ -21,21 +21,19 @@ 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 ManaV2ExtranetDeviceStatus(BaseModel): """ ManaV2ExtranetDeviceStatus """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "siteName", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_extranet_manual_reverse_routes.py b/graphiant_sdk/models/mana_v2_extranet_manual_reverse_routes.py index 7ef4bf92..4fc10850 100644 --- a/graphiant_sdk/models/mana_v2_extranet_manual_reverse_routes.py +++ b/graphiant_sdk/models/mana_v2_extranet_manual_reverse_routes.py @@ -21,7 +21,6 @@ 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 ManaV2ExtranetManualReverseRoutes(BaseModel): """ @@ -31,8 +30,7 @@ class ManaV2ExtranetManualReverseRoutes(BaseModel): __properties: ClassVar[List[str]] = ["prefixes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_extranet_nat_translation_centralized.py b/graphiant_sdk/models/mana_v2_extranet_nat_translation_centralized.py new file mode 100644 index 00000000..b9708004 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_nat_translation_centralized.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 + + +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_extranet_nat_translation_device_prefixes import ManaV2ExtranetNatTranslationDevicePrefixes +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetNatTranslationCentralized(BaseModel): + """ + ManaV2ExtranetNatTranslationCentralized + """ # noqa: E501 + prefixes: Optional[Dict[str, ManaV2ExtranetNatTranslationDevicePrefixes]] = None + __properties: ClassVar[List[str]] = ["prefixes"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetNatTranslationCentralized 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 value in prefixes (dict) + _field_dict = {} + if self.prefixes: + for _key_prefixes in self.prefixes: + if self.prefixes[_key_prefixes]: + _field_dict[_key_prefixes] = self.prefixes[_key_prefixes].to_dict() + _dict['prefixes'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2ExtranetNatTranslationCentralized from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "prefixes": dict( + (_k, ManaV2ExtranetNatTranslationDevicePrefixes.from_dict(_v)) + for _k, _v in obj["prefixes"].items() + ) + if obj.get("prefixes") is not None + else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_nat_translation_decentralized.py b/graphiant_sdk/models/mana_v2_extranet_nat_translation_decentralized.py new file mode 100644 index 00000000..a2c60746 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_nat_translation_decentralized.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 + + +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_extranet_nat_translation_device_prefixes import ManaV2ExtranetNatTranslationDevicePrefixes +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetNatTranslationDecentralized(BaseModel): + """ + ManaV2ExtranetNatTranslationDecentralized + """ # noqa: E501 + prefixes: Optional[Dict[str, ManaV2ExtranetNatTranslationDevicePrefixes]] = None + __properties: ClassVar[List[str]] = ["prefixes"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetNatTranslationDecentralized 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 value in prefixes (dict) + _field_dict = {} + if self.prefixes: + for _key_prefixes in self.prefixes: + if self.prefixes[_key_prefixes]: + _field_dict[_key_prefixes] = self.prefixes[_key_prefixes].to_dict() + _dict['prefixes'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2ExtranetNatTranslationDecentralized from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "prefixes": dict( + (_k, ManaV2ExtranetNatTranslationDevicePrefixes.from_dict(_v)) + for _k, _v in obj["prefixes"].items() + ) + if obj.get("prefixes") is not None + else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_nat_translation_device_prefixes.py b/graphiant_sdk/models/mana_v2_extranet_nat_translation_device_prefixes.py new file mode 100644 index 00000000..0ea87ca3 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_nat_translation_device_prefixes.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 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetNatTranslationDevicePrefixes(BaseModel): + """ + ManaV2ExtranetNatTranslationDevicePrefixes + """ # noqa: E501 + prefixes: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["prefixes"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetNatTranslationDevicePrefixes 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 ManaV2ExtranetNatTranslationDevicePrefixes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "prefixes": obj.get("prefixes") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_nat_translation_mode.py b/graphiant_sdk/models/mana_v2_extranet_nat_translation_mode.py new file mode 100644 index 00000000..d5472daf --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_nat_translation_mode.py @@ -0,0 +1,103 @@ +# 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_extranet_nat_translation_centralized import ManaV2ExtranetNatTranslationCentralized +from graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized import ManaV2ExtranetNatTranslationDecentralized +from graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer import ManaV2ExtranetNatTranslationPeerToPeer +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetNatTranslationMode(BaseModel): + """ + ManaV2ExtranetNatTranslationMode + """ # noqa: E501 + centralized: Optional[ManaV2ExtranetNatTranslationCentralized] = None + decentralized: Optional[ManaV2ExtranetNatTranslationDecentralized] = None + peer_to_peer: Optional[ManaV2ExtranetNatTranslationPeerToPeer] = Field(default=None, alias="peerToPeer") + __properties: ClassVar[List[str]] = ["centralized", "decentralized", "peerToPeer"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetNatTranslationMode 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 centralized + if self.centralized: + _dict['centralized'] = self.centralized.to_dict() + # override the default output from pydantic by calling `to_dict()` of decentralized + if self.decentralized: + _dict['decentralized'] = self.decentralized.to_dict() + # override the default output from pydantic by calling `to_dict()` of peer_to_peer + if self.peer_to_peer: + _dict['peerToPeer'] = self.peer_to_peer.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2ExtranetNatTranslationMode from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "centralized": ManaV2ExtranetNatTranslationCentralized.from_dict(obj["centralized"]) if obj.get("centralized") is not None else None, + "decentralized": ManaV2ExtranetNatTranslationDecentralized.from_dict(obj["decentralized"]) if obj.get("decentralized") is not None else None, + "peerToPeer": ManaV2ExtranetNatTranslationPeerToPeer.from_dict(obj["peerToPeer"]) if obj.get("peerToPeer") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_nat_translation_peer_to_peer.py b/graphiant_sdk/models/mana_v2_extranet_nat_translation_peer_to_peer.py new file mode 100644 index 00000000..6e412fba --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_nat_translation_peer_to_peer.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer_prefix import ManaV2ExtranetNatTranslationPeerToPeerPrefix +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetNatTranslationPeerToPeer(BaseModel): + """ + ManaV2ExtranetNatTranslationPeerToPeer + """ # noqa: E501 + prefixes: Optional[List[ManaV2ExtranetNatTranslationPeerToPeerPrefix]] = None + __properties: ClassVar[List[str]] = ["prefixes"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetNatTranslationPeerToPeer 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 prefixes (list) + _items = [] + if self.prefixes: + for _item_prefixes in self.prefixes: + if _item_prefixes: + _items.append(_item_prefixes.to_dict()) + _dict['prefixes'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2ExtranetNatTranslationPeerToPeer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "prefixes": [ManaV2ExtranetNatTranslationPeerToPeerPrefix.from_dict(_item) for _item in obj["prefixes"]] if obj.get("prefixes") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_nat_translation_peer_to_peer_prefix.py b/graphiant_sdk/models/mana_v2_extranet_nat_translation_peer_to_peer_prefix.py new file mode 100644 index 00000000..e3d12883 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_nat_translation_peer_to_peer_prefix.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 + + +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 + +class ManaV2ExtranetNatTranslationPeerToPeerPrefix(BaseModel): + """ + ManaV2ExtranetNatTranslationPeerToPeerPrefix + """ # noqa: E501 + outside_nat_prefix: Optional[StrictStr] = Field(default=None, description="Optional outside address presented for prefix on the far side of the attachment; omit for no NAT on that prefix", alias="outsideNatPrefix") + prefix: Optional[StrictStr] = Field(default=None, description="At match: customer export prefix. At consumer accept/update (peering): subscribed service prefix") + __properties: ClassVar[List[str]] = ["outsideNatPrefix", "prefix"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetNatTranslationPeerToPeerPrefix 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 ManaV2ExtranetNatTranslationPeerToPeerPrefix from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "outsideNatPrefix": obj.get("outsideNatPrefix"), + "prefix": obj.get("prefix") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_policy.py b/graphiant_sdk/models/mana_v2_extranet_policy.py index 4eed5da7..74d2a88d 100644 --- a/graphiant_sdk/models/mana_v2_extranet_policy.py +++ b/graphiant_sdk/models/mana_v2_extranet_policy.py @@ -27,7 +27,6 @@ from graphiant_sdk.models.mana_v2_vrf import ManaV2Vrf from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ExtranetPolicy(BaseModel): """ @@ -36,23 +35,22 @@ class ManaV2ExtranetPolicy(BaseModel): auto: Optional[ManaV2ExtranetAutoReverseRoutes] = None branches: Optional[ManaV2PolicyTarget] = None created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - created_by: Optional[StrictStr] = Field(default=None, alias="createdBy", json_schema_extra={"examples": ["example string"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + created_by: Optional[StrictStr] = Field(default=None, alias="createdBy") + description: Optional[StrictStr] = None host_prefix_set: Optional[ManaV2EnterprisePrefixSet] = Field(default=None, alias="hostPrefixSet") - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None manual: Optional[ManaV2ExtranetManualReverseRoutes] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None shared_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="sharedPrefixes") shared_segment: Optional[ManaV2Vrf] = Field(default=None, alias="sharedSegment") source: Optional[ManaV2PolicyTarget] = None target_segments: Optional[List[ManaV2Vrf]] = Field(default=None, alias="targetSegments") - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + type: Optional[StrictStr] = None updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["auto", "branches", "createdAt", "createdBy", "description", "hostPrefixSet", "id", "manual", "name", "sharedPrefixes", "sharedSegment", "source", "targetSegments", "type", "updatedAt"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -64,7 +62,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_extranet_policy_input.py b/graphiant_sdk/models/mana_v2_extranet_policy_input.py index 9eb43722..830e28e1 100644 --- a/graphiant_sdk/models/mana_v2_extranet_policy_input.py +++ b/graphiant_sdk/models/mana_v2_extranet_policy_input.py @@ -25,7 +25,6 @@ from graphiant_sdk.models.mana_v2_policy_target_input import ManaV2PolicyTargetInput from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ExtranetPolicyInput(BaseModel): """ @@ -33,20 +32,19 @@ class ManaV2ExtranetPolicyInput(BaseModel): """ # noqa: E501 auto: Optional[ManaV2ExtranetAutoReverseRoutes] = None branches: Optional[ManaV2PolicyTargetInput] = None - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None host_prefix_set: Optional[ManaV2EnterprisePrefixSetInput] = Field(default=None, alias="hostPrefixSet") manual: Optional[ManaV2ExtranetManualReverseRoutes] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None shared_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="sharedPrefixes") - shared_segment: Optional[StrictInt] = Field(default=None, alias="sharedSegment", json_schema_extra={"examples": [1234567891011]}) + shared_segment: Optional[StrictInt] = Field(default=None, alias="sharedSegment") source: Optional[ManaV2PolicyTargetInput] = None target_segments: Optional[List[StrictInt]] = Field(default=None, alias="targetSegments") - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["auto", "branches", "description", "hostPrefixSet", "manual", "name", "sharedPrefixes", "sharedSegment", "source", "targetSegments", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -58,7 +56,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_extranet_service_consumer_policy.py b/graphiant_sdk/models/mana_v2_extranet_service_consumer_policy.py new file mode 100644 index 00000000..f97bb5f5 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_service_consumer_policy.py @@ -0,0 +1,137 @@ +# 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_b2b_site_information import ManaV2B2bSiteInformation +from graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes import ManaV2ExtranetConsumerLanPrefixes +from graphiant_sdk.models.mana_v2_extranet_nat_translation_mode import ManaV2ExtranetNatTranslationMode +from graphiant_sdk.models.mana_v2_global_object_service_ops import ManaV2GlobalObjectServiceOps +from graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config import ManaV2GuestConsumerSiteToSiteVpnConfig +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetServiceConsumerPolicy(BaseModel): + """ + ManaV2ExtranetServiceConsumerPolicy + """ # noqa: E501 + consumer_lan_segments: Dict[str, ManaV2ExtranetConsumerLanPrefixes] = Field(alias="consumerLanSegments") + global_object_ops: Optional[Dict[str, ManaV2GlobalObjectServiceOps]] = Field(default=None, alias="globalObjectOps") + nat_translation_mode: Optional[ManaV2ExtranetNatTranslationMode] = Field(default=None, alias="natTranslationMode") + site_to_site_vpn: Optional[ManaV2GuestConsumerSiteToSiteVpnConfig] = Field(default=None, alias="siteToSiteVpn") + sites: Optional[List[ManaV2B2bSiteInformation]] = None + __properties: ClassVar[List[str]] = ["consumerLanSegments", "globalObjectOps", "natTranslationMode", "siteToSiteVpn", "sites"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServiceConsumerPolicy 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 value in consumer_lan_segments (dict) + _field_dict = {} + if self.consumer_lan_segments: + for _key_consumer_lan_segments in self.consumer_lan_segments: + if self.consumer_lan_segments[_key_consumer_lan_segments]: + _field_dict[_key_consumer_lan_segments] = self.consumer_lan_segments[_key_consumer_lan_segments].to_dict() + _dict['consumerLanSegments'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in global_object_ops (dict) + _field_dict = {} + if self.global_object_ops: + for _key_global_object_ops in self.global_object_ops: + if self.global_object_ops[_key_global_object_ops]: + _field_dict[_key_global_object_ops] = self.global_object_ops[_key_global_object_ops].to_dict() + _dict['globalObjectOps'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of nat_translation_mode + if self.nat_translation_mode: + _dict['natTranslationMode'] = self.nat_translation_mode.to_dict() + # override the default output from pydantic by calling `to_dict()` of site_to_site_vpn + if self.site_to_site_vpn: + _dict['siteToSiteVpn'] = self.site_to_site_vpn.to_dict() + # 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 + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServiceConsumerPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerLanSegments": dict( + (_k, ManaV2ExtranetConsumerLanPrefixes.from_dict(_v)) + for _k, _v in obj["consumerLanSegments"].items() + ) + if obj.get("consumerLanSegments") is not None + else None, + "globalObjectOps": dict( + (_k, ManaV2GlobalObjectServiceOps.from_dict(_v)) + for _k, _v in obj["globalObjectOps"].items() + ) + if obj.get("globalObjectOps") is not None + else None, + "natTranslationMode": ManaV2ExtranetNatTranslationMode.from_dict(obj["natTranslationMode"]) if obj.get("natTranslationMode") is not None else None, + "siteToSiteVpn": ManaV2GuestConsumerSiteToSiteVpnConfig.from_dict(obj["siteToSiteVpn"]) if obj.get("siteToSiteVpn") is not None else None, + "sites": [ManaV2B2bSiteInformation.from_dict(_item) for _item in obj["sites"]] if obj.get("sites") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_service_customer_invite.py b/graphiant_sdk/models/mana_v2_extranet_service_customer_invite.py new file mode 100644 index 00000000..31686e19 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_service_customer_invite.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_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetServiceCustomerInvite(BaseModel): + """ + ManaV2ExtranetServiceCustomerInvite + """ # noqa: E501 + admin_emails: Optional[List[StrictStr]] = Field(default=None, alias="adminEmails") + maximum_number_of_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Maximum number of consumer sites", alias="maximumNumberOfSites") + __properties: ClassVar[List[str]] = ["adminEmails", "maximumNumberOfSites"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServiceCustomerInvite 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 ManaV2ExtranetServiceCustomerInvite from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminEmails": obj.get("adminEmails"), + "maximumNumberOfSites": obj.get("maximumNumberOfSites") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_service_customer_match_summary.py b/graphiant_sdk/models/mana_v2_extranet_service_customer_match_summary.py new file mode 100644 index 00000000..29412a74 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_service_customer_match_summary.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from graphiant_sdk.models.google_protobuf_timestamp import GoogleProtobufTimestamp +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetServiceCustomerMatchSummary(BaseModel): + """ + ManaV2ExtranetServiceCustomerMatchSummary + """ # noqa: E501 + id: Optional[StrictInt] = None + lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment") + matched_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedCustomers") + name: Optional[StrictStr] = None + service_type: Optional[StrictStr] = Field(default=None, alias="serviceType") + status: Optional[StrictStr] = None + updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["id", "lanSegment", "matchedCustomers", "name", "serviceType", "status", "updatedAt"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServiceCustomerMatchSummary 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 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 ManaV2ExtranetServiceCustomerMatchSummary 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"), + "lanSegment": obj.get("lanSegment"), + "matchedCustomers": obj.get("matchedCustomers"), + "name": obj.get("name"), + "serviceType": obj.get("serviceType"), + "status": obj.get("status"), + "updatedAt": GoogleProtobufTimestamp.from_dict(obj["updatedAt"]) if obj.get("updatedAt") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_service_customer_summary.py b/graphiant_sdk/models/mana_v2_extranet_service_customer_summary.py new file mode 100644 index 00000000..87357292 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_service_customer_summary.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from graphiant_sdk.models.google_protobuf_timestamp import GoogleProtobufTimestamp +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetServiceCustomerSummary(BaseModel): + """ + ManaV2ExtranetServiceCustomerSummary + """ # noqa: E501 + admin_emails: Optional[List[StrictStr]] = Field(default=None, alias="adminEmails") + id: Optional[StrictInt] = None + matched_services: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedServices") + name: Optional[StrictStr] = None + status: Optional[StrictStr] = None + type: Optional[StrictStr] = None + updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["adminEmails", "id", "matchedServices", "name", "status", "type", "updatedAt"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServiceCustomerSummary 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 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 ManaV2ExtranetServiceCustomerSummary from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminEmails": obj.get("adminEmails"), + "id": obj.get("id"), + "matchedServices": obj.get("matchedServices"), + "name": obj.get("name"), + "status": obj.get("status"), + "type": obj.get("type"), + "updatedAt": GoogleProtobufTimestamp.from_dict(obj["updatedAt"]) if obj.get("updatedAt") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_service_policy_response.py b/graphiant_sdk/models/mana_v2_extranet_service_policy_response.py new file mode 100644 index 00000000..a1a49553 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_service_policy_response.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 graphiant_sdk.models.mana_v2_extranet_service_producer_policy import ManaV2ExtranetServiceProducerPolicy +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetServicePolicyResponse(BaseModel): + """ + ManaV2ExtranetServicePolicyResponse + """ # noqa: E501 + policy: Optional[ManaV2ExtranetServiceProducerPolicy] = None + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + service_type: Optional[StrictStr] = Field(default=None, alias="serviceType") + __properties: ClassVar[List[str]] = ["policy", "serviceName", "serviceType"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServicePolicyResponse 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServicePolicyResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": ManaV2ExtranetServiceProducerPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None, + "serviceName": obj.get("serviceName"), + "serviceType": obj.get("serviceType") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_service_producer_customer.py b/graphiant_sdk/models/mana_v2_extranet_service_producer_customer.py new file mode 100644 index 00000000..b74d6641 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_service_producer_customer.py @@ -0,0 +1,106 @@ +# 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_extensions import Annotated +from graphiant_sdk.models.google_protobuf_timestamp import GoogleProtobufTimestamp +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetServiceProducerCustomer(BaseModel): + """ + ManaV2ExtranetServiceProducerCustomer + """ # noqa: E501 + admin_emails: Optional[List[StrictStr]] = Field(default=None, alias="adminEmails") + customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") + match_id: Optional[StrictInt] = Field(default=None, alias="matchId") + matched_services: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="matchedServices") + name: Optional[StrictStr] = None + status: Optional[StrictStr] = None + type: Optional[StrictStr] = None + updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") + __properties: ClassVar[List[str]] = ["adminEmails", "customerId", "matchId", "matchedServices", "name", "status", "type", "updatedAt"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServiceProducerCustomer 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 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 ManaV2ExtranetServiceProducerCustomer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminEmails": obj.get("adminEmails"), + "customerId": obj.get("customerId"), + "matchId": obj.get("matchId"), + "matchedServices": obj.get("matchedServices"), + "name": obj.get("name"), + "status": obj.get("status"), + "type": obj.get("type"), + "updatedAt": GoogleProtobufTimestamp.from_dict(obj["updatedAt"]) if obj.get("updatedAt") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_service_producer_policy.py b/graphiant_sdk/models/mana_v2_extranet_service_producer_policy.py new file mode 100644 index 00000000..49860d4d --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_service_producer_policy.py @@ -0,0 +1,145 @@ +# 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.mana_v2_b2b_extranet_prefix_tag import ManaV2B2bExtranetPrefixTag +from graphiant_sdk.models.mana_v2_b2b_site_information import ManaV2B2bSiteInformation +from graphiant_sdk.models.mana_v2_extranet_nat_translation_mode import ManaV2ExtranetNatTranslationMode +from graphiant_sdk.models.mana_v2_global_object_service_ops import ManaV2GlobalObjectServiceOps +from graphiant_sdk.models.mana_v2_global_object_service_summaries import ManaV2GlobalObjectServiceSummaries +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetServiceProducerPolicy(BaseModel): + """ + ManaV2ExtranetServiceProducerPolicy + """ # noqa: E501 + description: Optional[StrictStr] = None + global_object_device_summaries: Optional[Dict[str, ManaV2GlobalObjectServiceSummaries]] = Field(default=None, alias="globalObjectDeviceSummaries") + global_object_ops: Optional[Dict[str, ManaV2GlobalObjectServiceOps]] = Field(default=None, alias="globalObjectOps") + nat_translation_mode: Optional[ManaV2ExtranetNatTranslationMode] = Field(default=None, alias="natTranslationMode") + prefix_tags: Optional[List[ManaV2B2bExtranetPrefixTag]] = Field(default=None, alias="prefixTags") + service_lan_segment: Optional[StrictInt] = Field(default=None, description="LAN segment ID for the service", alias="serviceLanSegment") + sites: Optional[List[ManaV2B2bSiteInformation]] = None + __properties: ClassVar[List[str]] = ["description", "globalObjectDeviceSummaries", "globalObjectOps", "natTranslationMode", "prefixTags", "serviceLanSegment", "sites"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServiceProducerPolicy 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 value in global_object_device_summaries (dict) + _field_dict = {} + if self.global_object_device_summaries: + for _key_global_object_device_summaries in self.global_object_device_summaries: + if self.global_object_device_summaries[_key_global_object_device_summaries]: + _field_dict[_key_global_object_device_summaries] = self.global_object_device_summaries[_key_global_object_device_summaries].to_dict() + _dict['globalObjectDeviceSummaries'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in global_object_ops (dict) + _field_dict = {} + if self.global_object_ops: + for _key_global_object_ops in self.global_object_ops: + if self.global_object_ops[_key_global_object_ops]: + _field_dict[_key_global_object_ops] = self.global_object_ops[_key_global_object_ops].to_dict() + _dict['globalObjectOps'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of nat_translation_mode + if self.nat_translation_mode: + _dict['natTranslationMode'] = self.nat_translation_mode.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in prefix_tags (list) + _items = [] + if self.prefix_tags: + for _item_prefix_tags in self.prefix_tags: + if _item_prefix_tags: + _items.append(_item_prefix_tags.to_dict()) + _dict['prefixTags'] = _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 + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServiceProducerPolicy 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"), + "globalObjectDeviceSummaries": dict( + (_k, ManaV2GlobalObjectServiceSummaries.from_dict(_v)) + for _k, _v in obj["globalObjectDeviceSummaries"].items() + ) + if obj.get("globalObjectDeviceSummaries") is not None + else None, + "globalObjectOps": dict( + (_k, ManaV2GlobalObjectServiceOps.from_dict(_v)) + for _k, _v in obj["globalObjectOps"].items() + ) + if obj.get("globalObjectOps") is not None + else None, + "natTranslationMode": ManaV2ExtranetNatTranslationMode.from_dict(obj["natTranslationMode"]) if obj.get("natTranslationMode") is not None else None, + "prefixTags": [ManaV2B2bExtranetPrefixTag.from_dict(_item) for _item in obj["prefixTags"]] if obj.get("prefixTags") is not None else None, + "serviceLanSegment": obj.get("serviceLanSegment"), + "sites": [ManaV2B2bSiteInformation.from_dict(_item) for _item in obj["sites"]] if obj.get("sites") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_extranet_service_summary.py b/graphiant_sdk/models/mana_v2_extranet_service_summary.py new file mode 100644 index 00000000..b5b4c312 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_extranet_service_summary.py @@ -0,0 +1,115 @@ +# 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 typing_extensions import Annotated +from graphiant_sdk.models.google_protobuf_timestamp import GoogleProtobufTimestamp +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ExtranetServiceSummary(BaseModel): + """ + ManaV2ExtranetServiceSummary + """ # noqa: E501 + created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") + id: Optional[StrictInt] = None + is_publisher: Optional[StrictBool] = Field(default=None, description="True when this enterprise publishes the service; false when consuming a remote producer", alias="isPublisher") + lan_segment: Optional[StrictInt] = Field(default=None, description="Service LAN segment when is_publisher and VRF exists", alias="lanSegment") + last_updated: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastUpdated") + server_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="serverPrefixes") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + service_type: Optional[StrictStr] = Field(default=None, alias="serviceType") + sites: Optional[List[StrictInt]] = None + status: Optional[StrictStr] = None + total_customers: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalCustomers") + __properties: ClassVar[List[str]] = ["createdAt", "id", "isPublisher", "lanSegment", "lastUpdated", "serverPrefixes", "serviceName", "serviceType", "sites", "status", "totalCustomers"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServiceSummary 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 last_updated + if self.last_updated: + _dict['lastUpdated'] = self.last_updated.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2ExtranetServiceSummary 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, + "id": obj.get("id"), + "isPublisher": obj.get("isPublisher"), + "lanSegment": obj.get("lanSegment"), + "lastUpdated": GoogleProtobufTimestamp.from_dict(obj["lastUpdated"]) if obj.get("lastUpdated") is not None else None, + "serverPrefixes": obj.get("serverPrefixes"), + "serviceName": obj.get("serviceName"), + "serviceType": obj.get("serviceType"), + "sites": obj.get("sites"), + "status": obj.get("status"), + "totalCustomers": obj.get("totalCustomers") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_firewall_zone_pair.py b/graphiant_sdk/models/mana_v2_firewall_zone_pair.py index 212f8378..cf4a8ae7 100644 --- a/graphiant_sdk/models/mana_v2_firewall_zone_pair.py +++ b/graphiant_sdk/models/mana_v2_firewall_zone_pair.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_security_policy_ruleset import ManaV2SecurityPolicyRuleset from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2FirewallZonePair(BaseModel): """ ManaV2FirewallZonePair """ # noqa: E501 - inside: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - outside: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + inside: Optional[StrictStr] = None + outside: Optional[StrictStr] = None security_rulesets: Optional[List[ManaV2SecurityPolicyRuleset]] = Field(default=None, alias="securityRulesets") __properties: ClassVar[List[str]] = ["inside", "outside", "securityRulesets"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_forwarding_policy.py b/graphiant_sdk/models/mana_v2_forwarding_policy.py index d77a8b70..555be611 100644 --- a/graphiant_sdk/models/mana_v2_forwarding_policy.py +++ b/graphiant_sdk/models/mana_v2_forwarding_policy.py @@ -28,7 +28,6 @@ from graphiant_sdk.models.mana_v2_zone_firewall_policy import ManaV2ZoneFirewallPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ForwardingPolicy(BaseModel): """ @@ -44,8 +43,7 @@ class ManaV2ForwardingPolicy(BaseModel): __properties: ClassVar[List[str]] = ["dpiApplications", "networkLists", "portLists", "securityRulesets", "trafficRulesets", "zoneFirewalls", "zonePairs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_forwarding_policy_config.py b/graphiant_sdk/models/mana_v2_forwarding_policy_config.py index 55ee08e5..a8c82c6e 100644 --- a/graphiant_sdk/models/mana_v2_forwarding_policy_config.py +++ b/graphiant_sdk/models/mana_v2_forwarding_policy_config.py @@ -28,7 +28,6 @@ from graphiant_sdk.models.mana_v2_nullable_zone_firewall_config import ManaV2NullableZoneFirewallConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ForwardingPolicyConfig(BaseModel): """ @@ -44,8 +43,7 @@ class ManaV2ForwardingPolicyConfig(BaseModel): __properties: ClassVar[List[str]] = ["dpiApplications", "networkLists", "portLists", "securityRulesets", "trafficRulesets", "zoneFirewalls", "zones"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_forwarding_policy_match.py b/graphiant_sdk/models/mana_v2_forwarding_policy_match.py index a5af6bf3..4e824d5a 100644 --- a/graphiant_sdk/models/mana_v2_forwarding_policy_match.py +++ b/graphiant_sdk/models/mana_v2_forwarding_policy_match.py @@ -24,30 +24,28 @@ from graphiant_sdk.models.mana_v2_port_range import ManaV2PortRange from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ForwardingPolicyMatch(BaseModel): """ ManaV2ForwardingPolicyMatch """ # noqa: E501 - application: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - destination_network: Optional[StrictStr] = Field(default=None, alias="destinationNetwork", json_schema_extra={"examples": ["example string"]}) - destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": [123]}) + application: Optional[StrictStr] = None + destination_network: Optional[StrictStr] = Field(default=None, alias="destinationNetwork") + destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort") destination_port_range: Optional[ManaV2PortRange] = Field(default=None, alias="destinationPortRange") domain_category_ids: Optional[List[StrictInt]] = Field(default=None, alias="domainCategoryIds") domain_wildcards: Optional[List[StrictStr]] = Field(default=None, alias="domainWildcards") dscp: Optional[ManaV2Dscp] = None - icmp_type: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="icmpType", json_schema_extra={"examples": [123]}) - ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - protocol: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - source_network: Optional[StrictStr] = Field(default=None, alias="sourceNetwork", json_schema_extra={"examples": ["example string"]}) - source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort", json_schema_extra={"examples": [123]}) + icmp_type: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="icmpType") + ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol") + protocol: Optional[StrictStr] = None + source_network: Optional[StrictStr] = Field(default=None, alias="sourceNetwork") + source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort") source_port_range: Optional[ManaV2PortRange] = Field(default=None, alias="sourcePortRange") __properties: ClassVar[List[str]] = ["application", "destinationNetwork", "destinationPort", "destinationPortRange", "domainCategoryIds", "domainWildcards", "dscp", "icmpType", "ipProtocol", "protocol", "sourceNetwork", "sourcePort", "sourcePortRange"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,7 +57,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_forwarding_policy_match_config.py b/graphiant_sdk/models/mana_v2_forwarding_policy_match_config.py index 90abef9b..bf73543c 100644 --- a/graphiant_sdk/models/mana_v2_forwarding_policy_match_config.py +++ b/graphiant_sdk/models/mana_v2_forwarding_policy_match_config.py @@ -30,7 +30,6 @@ from graphiant_sdk.models.mana_v2_port_range_config import ManaV2PortRangeConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ForwardingPolicyMatchConfig(BaseModel): """ @@ -39,21 +38,20 @@ class ManaV2ForwardingPolicyMatchConfig(BaseModel): application: Optional[ManaV2NullableApplicationMatchConfig] = None content_filter: Optional[ManaV2NullableContentFilterMatchConfig] = Field(default=None, alias="contentFilter") destination_network: Optional[ManaV2NullableDestinationNetworkMatchConfig] = Field(default=None, alias="destinationNetwork") - destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": [123]}) + destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort") destination_port_range: Optional[ManaV2PortRangeConfig] = Field(default=None, alias="destinationPortRange") domain_list: Optional[ManaV2NullableDomainListMatchConfig] = Field(default=None, alias="domainList") dscp: Optional[ManaV2NullableDscpMatchConfig] = None - icmp_type: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="icmpType", json_schema_extra={"examples": [123]}) - ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) + icmp_type: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="icmpType") + ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol") protocol: Optional[ManaV2NullableIpProtocol] = None source_network: Optional[ManaV2NullableSourceNetworkMatchConfig] = Field(default=None, alias="sourceNetwork") - source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort", json_schema_extra={"examples": [123]}) + source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort") source_port_range: Optional[ManaV2PortRangeConfig] = Field(default=None, alias="sourcePortRange") __properties: ClassVar[List[str]] = ["application", "contentFilter", "destinationNetwork", "destinationPort", "destinationPortRange", "domainList", "dscp", "icmpType", "ipProtocol", "protocol", "sourceNetwork", "sourcePort", "sourcePortRange"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -65,7 +63,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_gateway_details.py b/graphiant_sdk/models/mana_v2_gateway_details.py index 43886a14..1ce13841 100644 --- a/graphiant_sdk/models/mana_v2_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_gateway_details.py @@ -26,7 +26,6 @@ from graphiant_sdk.models.mana_v2_oci_gateway_details import ManaV2OciGatewayDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2GatewayDetails(BaseModel): """ @@ -34,18 +33,17 @@ class ManaV2GatewayDetails(BaseModel): """ # noqa: E501 aws: Optional[ManaV2AwsGatewayDetails] = None azure: Optional[ManaV2AzureGatewayDetails] = None - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None gcp: Optional[ManaV2GcpGatewayDetails] = None ipsec_gateway: Optional[ManaV2IPsecGatewayDetails] = Field(default=None, alias="ipsecGateway") oci: Optional[ManaV2OciGatewayDetails] = None - region_id: Optional[StrictInt] = Field(default=None, alias="regionId", json_schema_extra={"examples": [123]}) - speed: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId", json_schema_extra={"examples": [1234567891011]}) + region_id: Optional[StrictInt] = Field(default=None, alias="regionId") + speed: Optional[StrictStr] = None + vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId") __properties: ClassVar[List[str]] = ["aws", "azure", "description", "gcp", "ipsecGateway", "oci", "regionId", "speed", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_gateway_summary.py b/graphiant_sdk/models/mana_v2_gateway_summary.py index 260c7ea8..8c4ba4a1 100644 --- a/graphiant_sdk/models/mana_v2_gateway_summary.py +++ b/graphiant_sdk/models/mana_v2_gateway_summary.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_gateway_summary_gateway_device_summary import ManaV2GatewaySummaryGatewayDeviceSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2GatewaySummary(BaseModel): """ @@ -31,19 +30,18 @@ class ManaV2GatewaySummary(BaseModel): """ # noqa: E501 created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") gateway_device_summary: Optional[List[ManaV2GatewaySummaryGatewayDeviceSummary]] = Field(default=None, alias="gatewayDeviceSummary") - graphiant_region: Optional[StrictStr] = Field(default=None, alias="graphiantRegion", json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - speed: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - support_status: Optional[StrictStr] = Field(default=None, alias="supportStatus", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + graphiant_region: Optional[StrictStr] = Field(default=None, alias="graphiantRegion") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + speed: Optional[StrictStr] = None + status: Optional[StrictStr] = None + support_status: Optional[StrictStr] = Field(default=None, alias="supportStatus") + type: Optional[StrictStr] = None updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["createdAt", "gatewayDeviceSummary", "graphiantRegion", "id", "name", "speed", "status", "supportStatus", "type", "updatedAt"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,7 +53,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_gateway_summary_gateway_device_summary.py b/graphiant_sdk/models/mana_v2_gateway_summary_gateway_device_summary.py index 95af5388..0e9e9ae7 100644 --- a/graphiant_sdk/models/mana_v2_gateway_summary_gateway_device_summary.py +++ b/graphiant_sdk/models/mana_v2_gateway_summary_gateway_device_summary.py @@ -21,21 +21,19 @@ 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 ManaV2GatewaySummaryGatewayDeviceSummary(BaseModel): """ ManaV2GatewaySummaryGatewayDeviceSummary """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - interface_id: Optional[StrictInt] = Field(default=None, alias="interfaceId", json_schema_extra={"examples": [1234567891011]}) - maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode", json_schema_extra={"examples": [True]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + hostname: Optional[StrictStr] = None + interface_id: Optional[StrictInt] = Field(default=None, alias="interfaceId") + maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode") __properties: ClassVar[List[str]] = ["deviceId", "hostname", "interfaceId", "maintenanceMode"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_gcp_gateway_details.py b/graphiant_sdk/models/mana_v2_gcp_gateway_details.py index 0640426b..721583fb 100644 --- a/graphiant_sdk/models/mana_v2_gcp_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_gcp_gateway_details.py @@ -21,20 +21,18 @@ 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 ManaV2GcpGatewayDetails(BaseModel): """ ManaV2GcpGatewayDetails """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - pairing_key: Optional[StrictStr] = Field(default=None, alias="pairingKey", json_schema_extra={"examples": ["example string"]}) - routing_policy: Optional[StrictStr] = Field(default=None, alias="routingPolicy", json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + pairing_key: Optional[StrictStr] = Field(default=None, alias="pairingKey") + routing_policy: Optional[StrictStr] = Field(default=None, alias="routingPolicy") __properties: ClassVar[List[str]] = ["description", "pairingKey", "routingPolicy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_global_app_config.py b/graphiant_sdk/models/mana_v2_global_app_config.py index ab00e213..fe87c4fb 100644 --- a/graphiant_sdk/models/mana_v2_global_app_config.py +++ b/graphiant_sdk/models/mana_v2_global_app_config.py @@ -22,24 +22,22 @@ from graphiant_sdk.models.mana_v2_global_app_port_range import ManaV2GlobalAppPortRange from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2GlobalAppConfig(BaseModel): """ ManaV2GlobalAppConfig """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None ip_lists: Optional[List[StrictStr]] = Field(default=None, alias="ipLists") ip_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="ipPrefixes") - ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol") + name: Optional[StrictStr] = None port_ranges: Optional[List[ManaV2GlobalAppPortRange]] = Field(default=None, alias="portRanges") - url: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + url: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "ipLists", "ipPrefixes", "ipProtocol", "name", "portRanges", "url"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_global_app_port_range.py b/graphiant_sdk/models/mana_v2_global_app_port_range.py index ae056bb4..5b2fafce 100644 --- a/graphiant_sdk/models/mana_v2_global_app_port_range.py +++ b/graphiant_sdk/models/mana_v2_global_app_port_range.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2GlobalAppPortRange(BaseModel): """ ManaV2GlobalAppPortRange """ # noqa: E501 - lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["lower", "upper"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_global_bandwidth_consumption_summary.py b/graphiant_sdk/models/mana_v2_global_bandwidth_consumption_summary.py index 9da97ebc..f133b14d 100644 --- a/graphiant_sdk/models/mana_v2_global_bandwidth_consumption_summary.py +++ b/graphiant_sdk/models/mana_v2_global_bandwidth_consumption_summary.py @@ -21,22 +21,20 @@ 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 ManaV2GlobalBandwidthConsumptionSummary(BaseModel): """ ManaV2GlobalBandwidthConsumptionSummary """ # noqa: E501 - allocated_monthly_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits allocated for the current month", alias="allocatedMonthlyCredits", json_schema_extra={"examples": [12.34]}) - consumed_monthly_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits billed for the current month. It equals the the higher value between the credits allocated and used for the month", alias="consumedMonthlyCredits", json_schema_extra={"examples": [12.34]}) - prior_allocated_monthly_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits allocated for the prior month", alias="priorAllocatedMonthlyCredits", json_schema_extra={"examples": [12.34]}) - prior_consumed_monthly_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits billed for the prior month.", alias="priorConsumedMonthlyCredits", json_schema_extra={"examples": [12.34]}) - recommended_monthly_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Expected amount of credits to allocate for the month to match the overall contracted amount. For monthly-contracted enterprises, this is equivalent to the monthly number of credits being billed while for term-based-contracted enterprises, this is equivalent to the number of credits to use up in this and the following months to use up exactly the number of credits remaining in the contract.", alias="recommendedMonthlyCredits", json_schema_extra={"examples": [12.34]}) + allocated_monthly_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits allocated for the current month", alias="allocatedMonthlyCredits") + consumed_monthly_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits billed for the current month. It equals the the higher value between the credits allocated and used for the month", alias="consumedMonthlyCredits") + prior_allocated_monthly_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits allocated for the prior month", alias="priorAllocatedMonthlyCredits") + prior_consumed_monthly_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits billed for the prior month.", alias="priorConsumedMonthlyCredits") + recommended_monthly_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Expected amount of credits to allocate for the month to match the overall contracted amount. For monthly-contracted enterprises, this is equivalent to the monthly number of credits being billed while for term-based-contracted enterprises, this is equivalent to the number of credits to use up in this and the following months to use up exactly the number of credits remaining in the contract.", alias="recommendedMonthlyCredits") __properties: ClassVar[List[str]] = ["allocatedMonthlyCredits", "consumedMonthlyCredits", "priorAllocatedMonthlyCredits", "priorConsumedMonthlyCredits", "recommendedMonthlyCredits"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_global_content_filter_config.py b/graphiant_sdk/models/mana_v2_global_content_filter_config.py index 7fedf8c5..ee448ef4 100644 --- a/graphiant_sdk/models/mana_v2_global_content_filter_config.py +++ b/graphiant_sdk/models/mana_v2_global_content_filter_config.py @@ -22,22 +22,20 @@ 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.", json_schema_extra={"examples": ["example string"]}) + 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", json_schema_extra={"examples": [1234567891011]}) - 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", json_schema_extra={"examples": [True]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_global_content_filter_rule.py b/graphiant_sdk/models/mana_v2_global_content_filter_rule.py index bf6a49c9..51b8e777 100644 --- a/graphiant_sdk/models/mana_v2_global_content_filter_rule.py +++ b/graphiant_sdk/models/mana_v2_global_content_filter_rule.py @@ -21,19 +21,17 @@ 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", json_schema_extra={"examples": [1234567891011]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_global_object_device_status.py b/graphiant_sdk/models/mana_v2_global_object_device_status.py index 55cfb32e..0d323e8e 100644 --- a/graphiant_sdk/models/mana_v2_global_object_device_status.py +++ b/graphiant_sdk/models/mana_v2_global_object_device_status.py @@ -22,24 +22,22 @@ 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 ManaV2GlobalObjectDeviceStatus(BaseModel): """ ManaV2GlobalObjectDeviceStatus """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage", json_schema_extra={"examples": ["example string"]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - internal_state: Optional[StrictStr] = Field(default=None, alias="internalState", json_schema_extra={"examples": ["ENUM_VALUE"]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage") + hostname: Optional[StrictStr] = None + internal_state: Optional[StrictStr] = Field(default=None, alias="internalState") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + status: Optional[StrictStr] = None status_since: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="statusSince") __properties: ClassVar[List[str]] = ["deviceId", "errorMessage", "hostname", "internalState", "siteName", "status", "statusSince"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_global_object_operation_config.py b/graphiant_sdk/models/mana_v2_global_object_operation_config.py index 7b11b15f..210c4d76 100644 --- a/graphiant_sdk/models/mana_v2_global_object_operation_config.py +++ b/graphiant_sdk/models/mana_v2_global_object_operation_config.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_nullable_site_interface_name import ManaV2NullableSiteInterfaceName from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2GlobalObjectOperationConfig(BaseModel): """ ManaV2GlobalObjectOperationConfig """ # noqa: E501 interface: Optional[ManaV2NullableSiteInterfaceName] = None - operation: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + operation: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["interface", "operation"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_global_object_service_ops.py b/graphiant_sdk/models/mana_v2_global_object_service_ops.py index b3c20f8d..cf0031c7 100644 --- a/graphiant_sdk/models/mana_v2_global_object_service_ops.py +++ b/graphiant_sdk/models/mana_v2_global_object_service_ops.py @@ -21,7 +21,6 @@ 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 ManaV2GlobalObjectServiceOps(BaseModel): """ @@ -31,8 +30,7 @@ class ManaV2GlobalObjectServiceOps(BaseModel): __properties: ClassVar[List[str]] = ["routingPolicyOps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_global_object_service_summaries.py b/graphiant_sdk/models/mana_v2_global_object_service_summaries.py index 4b6627e4..7071e2b5 100644 --- a/graphiant_sdk/models/mana_v2_global_object_service_summaries.py +++ b/graphiant_sdk/models/mana_v2_global_object_service_summaries.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_global_object_summary import ManaV2GlobalObjectSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2GlobalObjectServiceSummaries(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2GlobalObjectServiceSummaries(BaseModel): __properties: ClassVar[List[str]] = ["routingPolicies"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_global_object_summary.py b/graphiant_sdk/models/mana_v2_global_object_summary.py index 080cdc8b..91b0ef58 100644 --- a/graphiant_sdk/models/mana_v2_global_object_summary.py +++ b/graphiant_sdk/models/mana_v2_global_object_summary.py @@ -22,31 +22,29 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2GlobalObjectSummary(BaseModel): """ ManaV2GlobalObjectSummary """ # noqa: E501 - attach_point: Optional[StrictStr] = Field(default=None, alias="attachPoint", json_schema_extra={"examples": ["ENUM_VALUE"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - ip_version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ipVersion", json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - num_attached_devices: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numAttachedDevices", json_schema_extra={"examples": [123]}) - num_attached_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numAttachedSites", json_schema_extra={"examples": [123]}) - num_failures: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numFailures", json_schema_extra={"examples": [123]}) - num_in_sync_devices: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numInSyncDevices", json_schema_extra={"examples": [123]}) - num_override_devices: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numOverrideDevices", json_schema_extra={"examples": [123]}) - num_policies: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numPolicies", json_schema_extra={"examples": [123]}) - num_prefixes: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numPrefixes", json_schema_extra={"examples": [123]}) - num_rules: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numRules", json_schema_extra={"examples": [123]}) - num_statements: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numStatements", json_schema_extra={"examples": [123]}) - traffic_policy_type: Optional[StrictStr] = Field(default=None, alias="trafficPolicyType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + attach_point: Optional[StrictStr] = Field(default=None, alias="attachPoint") + id: Optional[StrictInt] = None + ip_version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ipVersion") + name: Optional[StrictStr] = None + num_attached_devices: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numAttachedDevices") + num_attached_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numAttachedSites") + num_failures: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numFailures") + num_in_sync_devices: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numInSyncDevices") + num_override_devices: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numOverrideDevices") + num_policies: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numPolicies") + num_prefixes: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numPrefixes") + num_rules: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numRules") + num_statements: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numStatements") + traffic_policy_type: Optional[StrictStr] = Field(default=None, alias="trafficPolicyType") __properties: ClassVar[List[str]] = ["attachPoint", "id", "ipVersion", "name", "numAttachedDevices", "numAttachedSites", "numFailures", "numInSyncDevices", "numOverrideDevices", "numPolicies", "numPrefixes", "numRules", "numStatements", "trafficPolicyType"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -58,7 +56,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_graphiant_connections.py b/graphiant_sdk/models/mana_v2_graphiant_connections.py index 1ecf7733..15195219 100644 --- a/graphiant_sdk/models/mana_v2_graphiant_connections.py +++ b/graphiant_sdk/models/mana_v2_graphiant_connections.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ipsec_connection import ManaV2IpsecConnection from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2GraphiantConnections(BaseModel): """ @@ -34,8 +33,7 @@ class ManaV2GraphiantConnections(BaseModel): __properties: ClassVar[List[str]] = ["controlConnection", "coreConnection", "managementConnection"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_guest_consumer_site_to_site_vpn_config.py b/graphiant_sdk/models/mana_v2_guest_consumer_site_to_site_vpn_config.py index 07f87f66..2914a6ad 100644 --- a/graphiant_sdk/models/mana_v2_guest_consumer_site_to_site_vpn_config.py +++ b/graphiant_sdk/models/mana_v2_guest_consumer_site_to_site_vpn_config.py @@ -20,9 +20,9 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_i_psec_gateway_details import ManaV2IPsecGatewayDetails +from graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config import ManaV2IPsecGatewayPeersConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2GuestConsumerSiteToSiteVpnConfig(BaseModel): """ @@ -30,12 +30,12 @@ class ManaV2GuestConsumerSiteToSiteVpnConfig(BaseModel): """ # noqa: E501 emails: Optional[List[StrictStr]] = None ipsec_gateway_details: Optional[ManaV2IPsecGatewayDetails] = Field(default=None, alias="ipsecGatewayDetails") - region_id: Optional[StrictInt] = Field(default=None, alias="regionId", json_schema_extra={"examples": [123]}) - __properties: ClassVar[List[str]] = ["emails", "ipsecGatewayDetails", "regionId"] + ipsec_gateway_peers: Optional[ManaV2IPsecGatewayPeersConfig] = Field(default=None, alias="ipsecGatewayPeers") + region_id: Optional[StrictInt] = Field(default=None, alias="regionId") + __properties: ClassVar[List[str]] = ["emails", "ipsecGatewayDetails", "ipsecGatewayPeers", "regionId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -75,6 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of ipsec_gateway_details if self.ipsec_gateway_details: _dict['ipsecGatewayDetails'] = self.ipsec_gateway_details.to_dict() + # override the default output from pydantic by calling `to_dict()` of ipsec_gateway_peers + if self.ipsec_gateway_peers: + _dict['ipsecGatewayPeers'] = self.ipsec_gateway_peers.to_dict() return _dict @classmethod @@ -89,6 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "emails": obj.get("emails"), "ipsecGatewayDetails": ManaV2IPsecGatewayDetails.from_dict(obj["ipsecGatewayDetails"]) if obj.get("ipsecGatewayDetails") is not None else None, + "ipsecGatewayPeers": ManaV2IPsecGatewayPeersConfig.from_dict(obj["ipsecGatewayPeers"]) if obj.get("ipsecGatewayPeers") is not None else None, "regionId": obj.get("regionId") }) return _obj diff --git a/graphiant_sdk/models/mana_v2_i_psec_bgp_route_config.py b/graphiant_sdk/models/mana_v2_i_psec_bgp_route_config.py index 4a60df9d..d6a8caf3 100644 --- a/graphiant_sdk/models/mana_v2_i_psec_bgp_route_config.py +++ b/graphiant_sdk/models/mana_v2_i_psec_bgp_route_config.py @@ -24,23 +24,21 @@ from graphiant_sdk.models.mana_v2_nullable_md5_password import ManaV2NullableMd5Password from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2IPsecBgpRouteConfig(BaseModel): """ ManaV2IPsecBgpRouteConfig """ # noqa: E501 address_families: Optional[Dict[str, ManaV2NullableBgpNeighborAddressFamilyConfig]] = Field(default=None, alias="addressFamilies") - hold_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="holdTimer", json_schema_extra={"examples": [123]}) - keepalive_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="keepaliveTimer", json_schema_extra={"examples": [123]}) + hold_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="holdTimer") + keepalive_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="keepaliveTimer") md5_password: Optional[ManaV2NullableMd5Password] = Field(default=None, alias="md5Password") - peer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="peerAsn", json_schema_extra={"examples": [123]}) - send_community: Optional[StrictBool] = Field(default=None, alias="sendCommunity", json_schema_extra={"examples": [True]}) + peer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="peerAsn") + send_community: Optional[StrictBool] = Field(default=None, alias="sendCommunity") __properties: ClassVar[List[str]] = ["addressFamilies", "holdTimer", "keepaliveTimer", "md5Password", "peerAsn", "sendCommunity"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_i_psec_gateway_details.py b/graphiant_sdk/models/mana_v2_i_psec_gateway_details.py index cd08c9d6..5f4651c1 100644 --- a/graphiant_sdk/models/mana_v2_i_psec_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_i_psec_gateway_details.py @@ -24,27 +24,25 @@ from graphiant_sdk.models.mana_v2_ipsec_routing_config import ManaV2IpsecRoutingConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2IPsecGatewayDetails(BaseModel): """ ManaV2IPsecGatewayDetails """ # noqa: E501 - destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress", json_schema_extra={"examples": ["example string"]}) - ike_initiator: Optional[StrictBool] = Field(default=None, alias="ikeInitiator", json_schema_extra={"examples": [True]}) - mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="remoteIkePeerIdentity", json_schema_extra={"examples": ["example string"]}) + destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress") + ike_initiator: Optional[StrictBool] = Field(default=None, alias="ikeInitiator") + mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + name: Optional[StrictStr] = None + remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="remoteIkePeerIdentity") routing: Optional[ManaV2IpsecRoutingConfig] = None - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss", json_schema_extra={"examples": [123]}) + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") tunnel1: Optional[ManaV2IPsecGatewayTunnelDetails] = None tunnel2: Optional[ManaV2IPsecGatewayTunnelDetails] = None - vpn_profile: Optional[StrictStr] = Field(default=None, alias="vpnProfile", json_schema_extra={"examples": ["example string"]}) + vpn_profile: Optional[StrictStr] = Field(default=None, alias="vpnProfile") __properties: ClassVar[List[str]] = ["destinationAddress", "ikeInitiator", "mtu", "name", "remoteIkePeerIdentity", "routing", "tcpMss", "tunnel1", "tunnel2", "vpnProfile"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_i_psec_gateway_peers_config.py b/graphiant_sdk/models/mana_v2_i_psec_gateway_peers_config.py new file mode 100644 index 00000000..24027b72 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_i_psec_gateway_peers_config.py @@ -0,0 +1,103 @@ +# 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 graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer import ManaV2IPsecGatewayRemotePeer +from graphiant_sdk.models.mana_v2_ipsec_routing_config import ManaV2IpsecRoutingConfig +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2IPsecGatewayPeersConfig(BaseModel): + """ + ManaV2IPsecGatewayPeersConfig + """ # noqa: E501 + name: Optional[StrictStr] = Field(default=None, description="Name of the IPsec gateway service") + remote_peers: Optional[List[ManaV2IPsecGatewayRemotePeer]] = Field(default=None, alias="remotePeers") + routing: Optional[ManaV2IpsecRoutingConfig] = None + __properties: ClassVar[List[str]] = ["name", "remotePeers", "routing"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2IPsecGatewayPeersConfig 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 remote_peers (list) + _items = [] + if self.remote_peers: + for _item_remote_peers in self.remote_peers: + if _item_remote_peers: + _items.append(_item_remote_peers.to_dict()) + _dict['remotePeers'] = _items + # override the default output from pydantic by calling `to_dict()` of routing + if self.routing: + _dict['routing'] = self.routing.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2IPsecGatewayPeersConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "name": obj.get("name"), + "remotePeers": [ManaV2IPsecGatewayRemotePeer.from_dict(_item) for _item in obj["remotePeers"]] if obj.get("remotePeers") is not None else None, + "routing": ManaV2IpsecRoutingConfig.from_dict(obj["routing"]) if obj.get("routing") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_i_psec_gateway_remote_peer.py b/graphiant_sdk/models/mana_v2_i_psec_gateway_remote_peer.py new file mode 100644 index 00000000..c1c00ea5 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_i_psec_gateway_remote_peer.py @@ -0,0 +1,111 @@ +# 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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details import ManaV2IPsecGatewayTunnelDetails +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2IPsecGatewayRemotePeer(BaseModel): + """ + ManaV2IPsecGatewayRemotePeer + """ # noqa: E501 + destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress") + ike_initiator: Optional[StrictBool] = Field(default=None, description="When true, Graphiant initiates IKE for this peer", alias="ikeInitiator") + mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + name: Optional[StrictStr] = Field(default=None, description="Optional display name or label for this peer; used when generating tunnel names") + remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, description="IKE identity of the remote peer", alias="remoteIkePeerIdentity") + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + tunnel1: Optional[ManaV2IPsecGatewayTunnelDetails] = None + tunnel2: Optional[ManaV2IPsecGatewayTunnelDetails] = None + vpn_profile: Optional[StrictStr] = Field(default=None, description="Enterprise IPsec VPN profile name for this peer", alias="vpnProfile") + __properties: ClassVar[List[str]] = ["destinationAddress", "ikeInitiator", "mtu", "name", "remoteIkePeerIdentity", "tcpMss", "tunnel1", "tunnel2", "vpnProfile"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2IPsecGatewayRemotePeer 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 tunnel1 + if self.tunnel1: + _dict['tunnel1'] = self.tunnel1.to_dict() + # override the default output from pydantic by calling `to_dict()` of tunnel2 + if self.tunnel2: + _dict['tunnel2'] = self.tunnel2.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2IPsecGatewayRemotePeer from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "destinationAddress": obj.get("destinationAddress"), + "ikeInitiator": obj.get("ikeInitiator"), + "mtu": obj.get("mtu"), + "name": obj.get("name"), + "remoteIkePeerIdentity": obj.get("remoteIkePeerIdentity"), + "tcpMss": obj.get("tcpMss"), + "tunnel1": ManaV2IPsecGatewayTunnelDetails.from_dict(obj["tunnel1"]) if obj.get("tunnel1") is not None else None, + "tunnel2": ManaV2IPsecGatewayTunnelDetails.from_dict(obj["tunnel2"]) if obj.get("tunnel2") is not None else None, + "vpnProfile": obj.get("vpnProfile") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_i_psec_gateway_tunnel_details.py b/graphiant_sdk/models/mana_v2_i_psec_gateway_tunnel_details.py index bd1fec8c..5946eb4e 100644 --- a/graphiant_sdk/models/mana_v2_i_psec_gateway_tunnel_details.py +++ b/graphiant_sdk/models/mana_v2_i_psec_gateway_tunnel_details.py @@ -21,21 +21,19 @@ 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 ManaV2IPsecGatewayTunnelDetails(BaseModel): """ ManaV2IPsecGatewayTunnelDetails """ # noqa: E501 - inside_ipv4_cidr: Optional[StrictStr] = Field(default=None, alias="insideIpv4Cidr", json_schema_extra={"examples": ["example string"]}) - inside_ipv6_cidr: Optional[StrictStr] = Field(default=None, alias="insideIpv6Cidr", json_schema_extra={"examples": ["example string"]}) - local_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="localIkePeerIdentity", json_schema_extra={"examples": ["example string"]}) - psk: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + inside_ipv4_cidr: Optional[StrictStr] = Field(default=None, alias="insideIpv4Cidr") + inside_ipv6_cidr: Optional[StrictStr] = Field(default=None, alias="insideIpv6Cidr") + local_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="localIkePeerIdentity") + psk: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["insideIpv4Cidr", "insideIpv6Cidr", "localIkePeerIdentity", "psk"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_i_psec_profile.py b/graphiant_sdk/models/mana_v2_i_psec_profile.py index 6b68340c..2bcbe5b7 100644 --- a/graphiant_sdk/models/mana_v2_i_psec_profile.py +++ b/graphiant_sdk/models/mana_v2_i_psec_profile.py @@ -22,30 +22,28 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2IPsecProfile(BaseModel): """ ManaV2IPsecProfile """ # noqa: E501 - anti_replay_window_size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="antiReplayWindowSize", json_schema_extra={"examples": [123]}) - dpd_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdInterval", json_schema_extra={"examples": [123]}) - esn: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - ike_dh_group: Optional[StrictStr] = Field(default=None, alias="ikeDhGroup", json_schema_extra={"examples": ["ENUM_VALUE"]}) - ike_encryption_alg: Optional[StrictStr] = Field(default=None, alias="ikeEncryptionAlg", json_schema_extra={"examples": ["ENUM_VALUE"]}) - ike_integrity: Optional[StrictStr] = Field(default=None, alias="ikeIntegrity", json_schema_extra={"examples": ["ENUM_VALUE"]}) - ipsec_encryption_alg: Optional[StrictStr] = Field(default=None, alias="ipsecEncryptionAlg", json_schema_extra={"examples": ["ENUM_VALUE"]}) - ipsec_integrity: Optional[StrictStr] = Field(default=None, alias="ipsecIntegrity", json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - perfect_forward_secrecy: Optional[StrictStr] = Field(default=None, alias="perfectForwardSecrecy", json_schema_extra={"examples": ["ENUM_VALUE"]}) - reauth_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="reauthInterval", json_schema_extra={"examples": [123]}) - rekey_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="rekeyInterval", json_schema_extra={"examples": [123]}) + anti_replay_window_size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="antiReplayWindowSize") + dpd_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdInterval") + esn: Optional[StrictBool] = None + id: Optional[StrictInt] = None + ike_dh_group: Optional[StrictStr] = Field(default=None, alias="ikeDhGroup") + ike_encryption_alg: Optional[StrictStr] = Field(default=None, alias="ikeEncryptionAlg") + ike_integrity: Optional[StrictStr] = Field(default=None, alias="ikeIntegrity") + ipsec_encryption_alg: Optional[StrictStr] = Field(default=None, alias="ipsecEncryptionAlg") + ipsec_integrity: Optional[StrictStr] = Field(default=None, alias="ipsecIntegrity") + name: Optional[StrictStr] = None + perfect_forward_secrecy: Optional[StrictStr] = Field(default=None, alias="perfectForwardSecrecy") + reauth_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="reauthInterval") + rekey_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="rekeyInterval") __properties: ClassVar[List[str]] = ["antiReplayWindowSize", "dpdInterval", "esn", "id", "ikeDhGroup", "ikeEncryptionAlg", "ikeIntegrity", "ipsecEncryptionAlg", "ipsecIntegrity", "name", "perfectForwardSecrecy", "reauthInterval", "rekeyInterval"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_i_psec_static_route_config.py b/graphiant_sdk/models/mana_v2_i_psec_static_route_config.py index a46ed2ee..edf28394 100644 --- a/graphiant_sdk/models/mana_v2_i_psec_static_route_config.py +++ b/graphiant_sdk/models/mana_v2_i_psec_static_route_config.py @@ -21,7 +21,6 @@ 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 ManaV2IPsecStaticRouteConfig(BaseModel): """ @@ -31,8 +30,7 @@ class ManaV2IPsecStaticRouteConfig(BaseModel): __properties: ClassVar[List[str]] = ["destinationPrefix"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_i_psec_tunnel.py b/graphiant_sdk/models/mana_v2_i_psec_tunnel.py index d93e8e43..35c20e2c 100644 --- a/graphiant_sdk/models/mana_v2_i_psec_tunnel.py +++ b/graphiant_sdk/models/mana_v2_i_psec_tunnel.py @@ -23,34 +23,32 @@ from graphiant_sdk.models.mana_v2_ipsec_routing_config import ManaV2IpsecRoutingConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2IPsecTunnel(BaseModel): """ ManaV2IPsecTunnel """ # noqa: E501 - destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress", json_schema_extra={"examples": ["example string"]}) - ike_initiator: Optional[StrictBool] = Field(default=None, alias="ikeInitiator", json_schema_extra={"examples": [True]}) - ipsec_label: Optional[StrictStr] = Field(default=None, alias="ipsecLabel", json_schema_extra={"examples": ["ENUM_VALUE"]}) - lan: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - local_address_v4: Optional[StrictStr] = Field(default=None, alias="localAddressV4", json_schema_extra={"examples": ["example string"]}) - local_address_v6: Optional[StrictStr] = Field(default=None, alias="localAddressV6", json_schema_extra={"examples": ["example string"]}) - local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit", json_schema_extra={"examples": ["example string"]}) - local_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="localIkePeerIdentity", json_schema_extra={"examples": ["example string"]}) - mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - preshared_key: Optional[StrictStr] = Field(default=None, alias="presharedKey", json_schema_extra={"examples": ["example string"]}) - remote_address_v4: Optional[StrictStr] = Field(default=None, alias="remoteAddressV4", json_schema_extra={"examples": ["example string"]}) - remote_address_v6: Optional[StrictStr] = Field(default=None, alias="remoteAddressV6", json_schema_extra={"examples": ["example string"]}) - remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="remoteIkePeerIdentity", json_schema_extra={"examples": ["example string"]}) + destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress") + ike_initiator: Optional[StrictBool] = Field(default=None, alias="ikeInitiator") + ipsec_label: Optional[StrictStr] = Field(default=None, alias="ipsecLabel") + lan: Optional[StrictStr] = None + local_address_v4: Optional[StrictStr] = Field(default=None, alias="localAddressV4") + local_address_v6: Optional[StrictStr] = Field(default=None, alias="localAddressV6") + local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit") + local_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="localIkePeerIdentity") + mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + name: Optional[StrictStr] = None + preshared_key: Optional[StrictStr] = Field(default=None, alias="presharedKey") + remote_address_v4: Optional[StrictStr] = Field(default=None, alias="remoteAddressV4") + remote_address_v6: Optional[StrictStr] = Field(default=None, alias="remoteAddressV6") + remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="remoteIkePeerIdentity") routing: Optional[ManaV2IpsecRoutingConfig] = None - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss", json_schema_extra={"examples": [123]}) - vpn_profile: Optional[StrictStr] = Field(default=None, alias="vpnProfile", json_schema_extra={"examples": ["example string"]}) + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + vpn_profile: Optional[StrictStr] = Field(default=None, alias="vpnProfile") __properties: ClassVar[List[str]] = ["destinationAddress", "ikeInitiator", "ipsecLabel", "lan", "localAddressV4", "localAddressV6", "localCircuit", "localIkePeerIdentity", "mtu", "name", "presharedKey", "remoteAddressV4", "remoteAddressV6", "remoteIkePeerIdentity", "routing", "tcpMss", "vpnProfile"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -62,7 +60,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface.py b/graphiant_sdk/models/mana_v2_interface.py index eb2a5ab7..6fafea6e 100644 --- a/graphiant_sdk/models/mana_v2_interface.py +++ b/graphiant_sdk/models/mana_v2_interface.py @@ -29,52 +29,50 @@ from graphiant_sdk.models.mana_v2_lag_interface import ManaV2LagInterface from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2Interface(BaseModel): """ ManaV2Interface """ # noqa: E501 - alias: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) + alias: Optional[StrictStr] = None + circuit: Optional[StrictStr] = None + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") config_updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="configUpdatedAt") - configured_max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="configuredMaxTransmissionUnit", json_schema_extra={"examples": [123]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - duplex: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - gateway_address_v4: Optional[StrictStr] = Field(default=None, alias="gatewayAddressV4", json_schema_extra={"examples": ["example string"]}) - gateway_address_v6: Optional[StrictStr] = Field(default=None, alias="gatewayAddressV6", json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + configured_max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="configuredMaxTransmissionUnit") + description: Optional[StrictStr] = None + duplex: Optional[StrictStr] = None + enabled: Optional[StrictBool] = None + gateway_address_v4: Optional[StrictStr] = Field(default=None, alias="gatewayAddressV4") + gateway_address_v6: Optional[StrictStr] = Field(default=None, alias="gatewayAddressV6") + id: Optional[StrictInt] = None ip_sec: Optional[ManaV2InterfaceIPsec] = Field(default=None, alias="ipSec") ipv4: Optional[ManaV2InterfaceAddress] = None ipv6: Optional[ManaV2InterfaceAddress] = None ipv6_addresses: Optional[List[ManaV2InterfaceAddress]] = Field(default=None, alias="ipv6Addresses") lag_interface: Optional[ManaV2LagInterface] = Field(default=None, alias="lagInterface") - lan: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled", json_schema_extra={"examples": [True]}) + lan: Optional[StrictStr] = None + lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled") macsec: Optional[ManaV2InterfaceMaCsec] = None - max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit", json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit") + name: Optional[StrictStr] = None oper_updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="operUpdatedAt") - phy_address: Optional[StrictStr] = Field(default=None, alias="phyAddress", json_schema_extra={"examples": ["example string"]}) - protocol: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - security_zone: Optional[StrictStr] = Field(default=None, alias="securityZone", json_schema_extra={"examples": ["example string"]}) + phy_address: Optional[StrictStr] = Field(default=None, alias="phyAddress") + protocol: Optional[StrictStr] = None + security_zone: Optional[StrictStr] = Field(default=None, alias="securityZone") sfp_optical_strength: Optional[List[ManaV2InterfaceSfpOpticalStrength]] = Field(default=None, alias="sfpOpticalStrength") - speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="speedMbps", json_schema_extra={"examples": [123]}) + speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="speedMbps") subinterfaces: Optional[List[ManaV2InterfaceVlan]] = None - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss", json_schema_extra={"examples": [123]}) - tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4", json_schema_extra={"examples": [123]}) - tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6", json_schema_extra={"examples": [123]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - up: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - vrf_function_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="vrfFunctionId", json_schema_extra={"examples": [123]}) - vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName", json_schema_extra={"examples": ["example string"]}) + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4") + tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6") + type: Optional[StrictStr] = None + up: Optional[StrictBool] = None + vrf_function_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="vrfFunctionId") + vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName") __properties: ClassVar[List[str]] = ["alias", "circuit", "circuitName", "configUpdatedAt", "configuredMaxTransmissionUnit", "description", "duplex", "enabled", "gatewayAddressV4", "gatewayAddressV6", "id", "ipSec", "ipv4", "ipv6", "ipv6Addresses", "lagInterface", "lan", "lldpEnabled", "macsec", "maxTransmissionUnit", "name", "operUpdatedAt", "phyAddress", "protocol", "securityZone", "sfpOpticalStrength", "speedMbps", "subinterfaces", "tcpMss", "tcpMssV4", "tcpMssV6", "type", "up", "vrfFunctionId", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -86,7 +84,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_address.py b/graphiant_sdk/models/mana_v2_interface_address.py index 0de48d29..32698d2e 100644 --- a/graphiant_sdk/models/mana_v2_interface_address.py +++ b/graphiant_sdk/models/mana_v2_interface_address.py @@ -23,23 +23,21 @@ from graphiant_sdk.models.mana_v2_vrrp_group import ManaV2VrrpGroup from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceAddress(BaseModel): """ ManaV2InterfaceAddress """ # noqa: E501 - address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - dhcp_client: Optional[StrictBool] = Field(default=None, alias="dhcpClient", json_schema_extra={"examples": [True]}) + address: Optional[StrictStr] = None + dhcp_client: Optional[StrictBool] = Field(default=None, alias="dhcpClient") dhcp_relay: Optional[ManaV2DhcpRelay] = Field(default=None, alias="dhcpRelay") - dhcp_server: Optional[StrictBool] = Field(default=None, alias="dhcpServer", json_schema_extra={"examples": [True]}) - origin: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + dhcp_server: Optional[StrictBool] = Field(default=None, alias="dhcpServer") + origin: Optional[StrictStr] = None vrrp_group: Optional[ManaV2VrrpGroup] = Field(default=None, alias="vrrpGroup") __properties: ClassVar[List[str]] = ["address", "dhcpClient", "dhcpRelay", "dhcpServer", "origin", "vrrpGroup"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_config.py b/graphiant_sdk/models/mana_v2_interface_config.py index 07c4db71..959c484e 100644 --- a/graphiant_sdk/models/mana_v2_interface_config.py +++ b/graphiant_sdk/models/mana_v2_interface_config.py @@ -28,38 +28,36 @@ from graphiant_sdk.models.mana_v2_nullable_tcp_mss_v6 import ManaV2NullableTcpMssV6 from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceConfig(BaseModel): """ ManaV2InterfaceConfig """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus", json_schema_extra={"examples": [True]}) - alias: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - duplex: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") + alias: Optional[StrictStr] = None + circuit: Optional[StrictStr] = None + description: Optional[StrictStr] = None + duplex: Optional[StrictStr] = None ipsec: Optional[ManaV2InterfaceIPsecConfig] = None ipv4: Optional[ManaV2InterfaceIpConfig] = None ipv6: Optional[ManaV2InterfaceIpConfig] = None - lan: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled", json_schema_extra={"examples": [True]}) - loopback: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + lan: Optional[StrictStr] = None + lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled") + loopback: Optional[StrictBool] = None macsec: Optional[ManaV2NullableMaCsecConfiguration] = None - max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit", json_schema_extra={"examples": [123]}) - security_zone: Optional[StrictStr] = Field(default=None, alias="securityZone", json_schema_extra={"examples": ["example string"]}) - speed: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit") + security_zone: Optional[StrictStr] = Field(default=None, alias="securityZone") + speed: Optional[StrictInt] = None subinterfaces: Optional[Dict[str, ManaV2NullableInterfaceVlanConfig]] = None - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss", json_schema_extra={"examples": [123]}) - tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4", json_schema_extra={"examples": [123]}) - tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6", json_schema_extra={"examples": [123]}) + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4") + tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6") v4_tcp_mss: Optional[ManaV2NullableTcpMssV4] = Field(default=None, alias="v4TcpMss") v6_tcp_mss: Optional[ManaV2NullableTcpMssV6] = Field(default=None, alias="v6TcpMss") __properties: ClassVar[List[str]] = ["adminStatus", "alias", "circuit", "description", "duplex", "ipsec", "ipv4", "ipv6", "lan", "lldpEnabled", "loopback", "macsec", "maxTransmissionUnit", "securityZone", "speed", "subinterfaces", "tcpMss", "tcpMssV4", "tcpMssV6", "v4TcpMss", "v6TcpMss"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -71,7 +69,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_core_config.py b/graphiant_sdk/models/mana_v2_interface_core_config.py index 962a5d78..72b2ab0f 100644 --- a/graphiant_sdk/models/mana_v2_interface_core_config.py +++ b/graphiant_sdk/models/mana_v2_interface_core_config.py @@ -34,21 +34,20 @@ from graphiant_sdk.models.mana_v2interface_config_type import ManaV2interfaceConfigType from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceCoreConfig(BaseModel): """ ManaV2InterfaceCoreConfig """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus", json_schema_extra={"examples": [True]}) - alias: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") + alias: Optional[StrictStr] = None + circuit: Optional[StrictStr] = None core_neighbor: Optional[ManaV2InterfaceCoreToCorePeerConfig] = Field(default=None, alias="coreNeighbor") core_to_core_tunnel: Optional[Dict[str, Any]] = Field(default=None, alias="coreToCoreTunnel") - create_link_local_address: Optional[StrictBool] = Field(default=None, alias="createLinkLocalAddress", json_schema_extra={"examples": [True]}) + create_link_local_address: Optional[StrictBool] = Field(default=None, alias="createLinkLocalAddress") default: Optional[Dict[str, Any]] = None - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - duplex: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + duplex: Optional[StrictStr] = None dynamic: Optional[ManaV2LatencyBandwidth] = None flex_algos: Optional[ManaV2InterfaceCoreFlexAlgoConfig] = Field(default=None, alias="flexAlgos") gateway_neighbor: Optional[ManaV2InterfaceCoreToGatewayPeerConfig] = Field(default=None, alias="gatewayNeighbor") @@ -57,32 +56,31 @@ class ManaV2InterfaceCoreConfig(BaseModel): ipsec: Optional[ManaV2InterfaceIPsecConfig] = None ipv4: Optional[ManaV2InterfaceIpConfig] = None ipv6: Optional[ManaV2InterfaceIpConfig] = None - lan: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled", json_schema_extra={"examples": [True]}) - loopback: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit", json_schema_extra={"examples": [123]}) - mpls_enabled: Optional[StrictBool] = Field(default=None, alias="mplsEnabled", json_schema_extra={"examples": [True]}) + lan: Optional[StrictStr] = None + lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled") + loopback: Optional[StrictBool] = None + max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit") + mpls_enabled: Optional[StrictBool] = Field(default=None, alias="mplsEnabled") ospf_cost: Optional[ManaV2CoreLinkCost] = Field(default=None, alias="ospfCost") ospf_interface: Optional[ManaV2NullableOspfInterfaceConfig] = Field(default=None, alias="ospfInterface") - peer_device_id: Optional[StrictInt] = Field(default=None, alias="peerDeviceId", json_schema_extra={"examples": [1234567891011]}) - peer_hostname: Optional[StrictStr] = Field(default=None, alias="peerHostname", json_schema_extra={"examples": ["example string"]}) - security_zone: Optional[StrictStr] = Field(default=None, alias="securityZone", json_schema_extra={"examples": ["example string"]}) - speed: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - static: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + peer_device_id: Optional[StrictInt] = Field(default=None, alias="peerDeviceId") + peer_hostname: Optional[StrictStr] = Field(default=None, alias="peerHostname") + security_zone: Optional[StrictStr] = Field(default=None, alias="securityZone") + speed: Optional[StrictInt] = None + static: Optional[Annotated[int, Field(strict=True, ge=0)]] = None subinterfaces: Optional[Dict[str, ManaV2NullableCoreInterfaceVlanConfig]] = None - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss", json_schema_extra={"examples": [123]}) - tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4", json_schema_extra={"examples": [123]}) - tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6", json_schema_extra={"examples": [123]}) - tunnel_interface: Optional[StrictStr] = Field(default=None, alias="tunnelInterface", json_schema_extra={"examples": ["example string"]}) - tunnel_underlay: Optional[StrictStr] = Field(default=None, alias="tunnelUnderlay", json_schema_extra={"examples": ["example string"]}) + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4") + tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6") + tunnel_interface: Optional[StrictStr] = Field(default=None, alias="tunnelInterface") + tunnel_underlay: Optional[StrictStr] = Field(default=None, alias="tunnelUnderlay") wan: Optional[ManaV2InterfaceWanConfig] = None wan_management: Optional[Dict[str, Any]] = Field(default=None, alias="wanManagement") - x_talk_filter: Optional[StrictBool] = Field(default=None, alias="xTalkFilter", json_schema_extra={"examples": [True]}) + x_talk_filter: Optional[StrictBool] = Field(default=None, alias="xTalkFilter") __properties: ClassVar[List[str]] = ["adminStatus", "alias", "circuit", "coreNeighbor", "coreToCoreTunnel", "createLinkLocalAddress", "default", "description", "duplex", "dynamic", "flexAlgos", "gatewayNeighbor", "gw", "interfaceType", "ipsec", "ipv4", "ipv6", "lan", "lldpEnabled", "loopback", "maxTransmissionUnit", "mplsEnabled", "ospfCost", "ospfInterface", "peerDeviceId", "peerHostname", "securityZone", "speed", "static", "subinterfaces", "tcpMss", "tcpMssV4", "tcpMssV6", "tunnelInterface", "tunnelUnderlay", "wan", "wanManagement", "xTalkFilter"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -94,7 +92,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_core_flex_algo_config.py b/graphiant_sdk/models/mana_v2_interface_core_flex_algo_config.py index 55559bec..f4f5b1ee 100644 --- a/graphiant_sdk/models/mana_v2_interface_core_flex_algo_config.py +++ b/graphiant_sdk/models/mana_v2_interface_core_flex_algo_config.py @@ -21,7 +21,6 @@ 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 ManaV2InterfaceCoreFlexAlgoConfig(BaseModel): """ @@ -31,8 +30,7 @@ class ManaV2InterfaceCoreFlexAlgoConfig(BaseModel): __properties: ClassVar[List[str]] = ["flexAlgoNames"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_core_to_core_peer_config.py b/graphiant_sdk/models/mana_v2_interface_core_to_core_peer_config.py index 55cddc43..fafbb9bb 100644 --- a/graphiant_sdk/models/mana_v2_interface_core_to_core_peer_config.py +++ b/graphiant_sdk/models/mana_v2_interface_core_to_core_peer_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_core_link_cost import ManaV2CoreLinkCost from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceCoreToCorePeerConfig(BaseModel): """ @@ -30,13 +29,12 @@ class ManaV2InterfaceCoreToCorePeerConfig(BaseModel): """ # noqa: E501 cost: Optional[ManaV2CoreLinkCost] = Field(default=None, alias="Cost") ospf_cost: Optional[ManaV2CoreLinkCost] = Field(default=None, alias="ospfCost") - peer_hostname: Optional[StrictStr] = Field(default=None, alias="peerHostname", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + peer_hostname: Optional[StrictStr] = Field(default=None, alias="peerHostname") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["Cost", "ospfCost", "peerHostname", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_core_to_gateway_peer_config.py b/graphiant_sdk/models/mana_v2_interface_core_to_gateway_peer_config.py index 4fe8aed4..0c147a5a 100644 --- a/graphiant_sdk/models/mana_v2_interface_core_to_gateway_peer_config.py +++ b/graphiant_sdk/models/mana_v2_interface_core_to_gateway_peer_config.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2InterfaceCoreToGatewayPeerConfig(BaseModel): """ ManaV2InterfaceCoreToGatewayPeerConfig """ # noqa: E501 - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_dhcp_config.py b/graphiant_sdk/models/mana_v2_interface_dhcp_config.py index 885fcc54..5f80cf97 100644 --- a/graphiant_sdk/models/mana_v2_interface_dhcp_config.py +++ b/graphiant_sdk/models/mana_v2_interface_dhcp_config.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_dhcp_relay_config import ManaV2DhcpRelayConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceDhcpConfig(BaseModel): """ ManaV2InterfaceDhcpConfig """ # noqa: E501 - dhcp_client: Optional[StrictBool] = Field(default=None, alias="dhcpClient", json_schema_extra={"examples": [True]}) + dhcp_client: Optional[StrictBool] = Field(default=None, alias="dhcpClient") dhcp_relay: Optional[ManaV2DhcpRelayConfig] = Field(default=None, alias="dhcpRelay") __properties: ClassVar[List[str]] = ["dhcpClient", "dhcpRelay"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_i_psec.py b/graphiant_sdk/models/mana_v2_interface_i_psec.py index 9a0d35bd..94a53ef6 100644 --- a/graphiant_sdk/models/mana_v2_interface_i_psec.py +++ b/graphiant_sdk/models/mana_v2_interface_i_psec.py @@ -23,43 +23,41 @@ 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 ManaV2InterfaceIPsec(BaseModel): """ ManaV2InterfaceIPsec """ # noqa: E501 - anti_replay_window_size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="antiReplayWindowSize", json_schema_extra={"examples": [123]}) - dh_group: Optional[StrictStr] = Field(default=None, alias="dhGroup", json_schema_extra={"examples": ["ENUM_VALUE"]}) - dpd_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdInterval", json_schema_extra={"examples": [123]}) - encryption_alg: Optional[StrictStr] = Field(default=None, alias="encryptionAlg", json_schema_extra={"examples": ["ENUM_VALUE"]}) - esn: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + anti_replay_window_size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="antiReplayWindowSize") + dh_group: Optional[StrictStr] = Field(default=None, alias="dhGroup") + dpd_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdInterval") + encryption_alg: Optional[StrictStr] = Field(default=None, alias="encryptionAlg") + esn: Optional[StrictBool] = None established_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="establishedTime") - ike_integrity: Optional[StrictStr] = Field(default=None, alias="ikeIntegrity", json_schema_extra={"examples": ["ENUM_VALUE"]}) - ipsec_encryption_alg: Optional[StrictStr] = Field(default=None, alias="ipsecEncryptionAlg", json_schema_extra={"examples": ["ENUM_VALUE"]}) - ipsec_integrity: Optional[StrictStr] = Field(default=None, alias="ipsecIntegrity", json_schema_extra={"examples": ["ENUM_VALUE"]}) - label: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - local_address: Optional[StrictStr] = Field(default=None, alias="localAddress", json_schema_extra={"examples": ["example string"]}) - local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit", json_schema_extra={"examples": ["example string"]}) - local_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="localIkePeerIdentity", json_schema_extra={"examples": ["example string"]}) - local_ikesa_spi: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localIkesaSpi", json_schema_extra={"examples": [12345678910]}) - local_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localPort", json_schema_extra={"examples": [123]}) - negotiated_algo: Optional[StrictStr] = Field(default=None, alias="negotiatedAlgo", json_schema_extra={"examples": ["example string"]}) - oper_state: Optional[StrictBool] = Field(default=None, alias="operState", json_schema_extra={"examples": [True]}) - perfect_forward_secrecy: Optional[StrictStr] = Field(default=None, alias="perfectForwardSecrecy", json_schema_extra={"examples": ["example string"]}) - preshared_key: Optional[StrictStr] = Field(default=None, alias="presharedKey", json_schema_extra={"examples": ["example string"]}) - protocol: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - reauth_interval: Optional[StrictInt] = Field(default=None, alias="reauthInterval", json_schema_extra={"examples": [1234567891011]}) - rekey_interval: Optional[StrictInt] = Field(default=None, alias="rekeyInterval", json_schema_extra={"examples": [1234567891011]}) - remote_address: Optional[StrictStr] = Field(default=None, alias="remoteAddress", json_schema_extra={"examples": ["example string"]}) - remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="remoteIkePeerIdentity", json_schema_extra={"examples": ["example string"]}) - remote_ikesa_spi: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="remoteIkesaSpi", json_schema_extra={"examples": [12345678910]}) - remote_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="remotePort", json_schema_extra={"examples": [123]}) + ike_integrity: Optional[StrictStr] = Field(default=None, alias="ikeIntegrity") + ipsec_encryption_alg: Optional[StrictStr] = Field(default=None, alias="ipsecEncryptionAlg") + ipsec_integrity: Optional[StrictStr] = Field(default=None, alias="ipsecIntegrity") + label: Optional[StrictStr] = None + local_address: Optional[StrictStr] = Field(default=None, alias="localAddress") + local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit") + local_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="localIkePeerIdentity") + local_ikesa_spi: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localIkesaSpi") + local_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localPort") + negotiated_algo: Optional[StrictStr] = Field(default=None, alias="negotiatedAlgo") + oper_state: Optional[StrictBool] = Field(default=None, alias="operState") + perfect_forward_secrecy: Optional[StrictStr] = Field(default=None, alias="perfectForwardSecrecy") + preshared_key: Optional[StrictStr] = Field(default=None, alias="presharedKey") + protocol: Optional[StrictStr] = None + reauth_interval: Optional[StrictInt] = Field(default=None, alias="reauthInterval") + rekey_interval: Optional[StrictInt] = Field(default=None, alias="rekeyInterval") + remote_address: Optional[StrictStr] = Field(default=None, alias="remoteAddress") + remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="remoteIkePeerIdentity") + remote_ikesa_spi: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="remoteIkesaSpi") + remote_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="remotePort") __properties: ClassVar[List[str]] = ["antiReplayWindowSize", "dhGroup", "dpdInterval", "encryptionAlg", "esn", "establishedTime", "ikeIntegrity", "ipsecEncryptionAlg", "ipsecIntegrity", "label", "localAddress", "localCircuit", "localIkePeerIdentity", "localIkesaSpi", "localPort", "negotiatedAlgo", "operState", "perfectForwardSecrecy", "presharedKey", "protocol", "reauthInterval", "rekeyInterval", "remoteAddress", "remoteIkePeerIdentity", "remoteIkesaSpi", "remotePort"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -71,7 +69,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_i_psec_config.py b/graphiant_sdk/models/mana_v2_interface_i_psec_config.py index ca5d8cd4..3d3b37d2 100644 --- a/graphiant_sdk/models/mana_v2_interface_i_psec_config.py +++ b/graphiant_sdk/models/mana_v2_interface_i_psec_config.py @@ -22,36 +22,34 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceIPsecConfig(BaseModel): """ ManaV2InterfaceIPsecConfig """ # noqa: E501 - anti_replay_window_size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="antiReplayWindowSize", json_schema_extra={"examples": [123]}) - dh_group: Optional[StrictStr] = Field(default=None, alias="dhGroup", json_schema_extra={"examples": ["ENUM_VALUE"]}) - dpd_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdInterval", json_schema_extra={"examples": [123]}) - encryption_alg: Optional[StrictStr] = Field(default=None, alias="encryptionAlg", json_schema_extra={"examples": ["ENUM_VALUE"]}) - esn: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - ike_integrity: Optional[StrictStr] = Field(default=None, alias="ikeIntegrity", json_schema_extra={"examples": ["ENUM_VALUE"]}) - initiator: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - ipsec_encryption_alg: Optional[StrictStr] = Field(default=None, alias="ipsecEncryptionAlg", json_schema_extra={"examples": ["ENUM_VALUE"]}) - ipsec_integrity: Optional[StrictStr] = Field(default=None, alias="ipsecIntegrity", json_schema_extra={"examples": ["ENUM_VALUE"]}) - label: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - local_address: Optional[StrictStr] = Field(default=None, alias="localAddress", json_schema_extra={"examples": ["example string"]}) - local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit", json_schema_extra={"examples": ["example string"]}) - local_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="localIkePeerIdentity", json_schema_extra={"examples": ["example string"]}) - perfect_forward_secrecy: Optional[StrictStr] = Field(default=None, alias="perfectForwardSecrecy", json_schema_extra={"examples": ["ENUM_VALUE"]}) - preshared_key: Optional[StrictStr] = Field(default=None, alias="presharedKey", json_schema_extra={"examples": ["example string"]}) - reauth_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="reauthInterval", json_schema_extra={"examples": [123]}) - rekey_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="rekeyInterval", json_schema_extra={"examples": [123]}) - remote_address: Optional[StrictStr] = Field(default=None, alias="remoteAddress", json_schema_extra={"examples": ["example string"]}) - remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="remoteIkePeerIdentity", json_schema_extra={"examples": ["example string"]}) + anti_replay_window_size: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="antiReplayWindowSize") + dh_group: Optional[StrictStr] = Field(default=None, alias="dhGroup") + dpd_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdInterval") + encryption_alg: Optional[StrictStr] = Field(default=None, alias="encryptionAlg") + esn: Optional[StrictBool] = None + ike_integrity: Optional[StrictStr] = Field(default=None, alias="ikeIntegrity") + initiator: Optional[StrictBool] = None + ipsec_encryption_alg: Optional[StrictStr] = Field(default=None, alias="ipsecEncryptionAlg") + ipsec_integrity: Optional[StrictStr] = Field(default=None, alias="ipsecIntegrity") + label: Optional[StrictStr] = None + local_address: Optional[StrictStr] = Field(default=None, alias="localAddress") + local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit") + local_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="localIkePeerIdentity") + perfect_forward_secrecy: Optional[StrictStr] = Field(default=None, alias="perfectForwardSecrecy") + preshared_key: Optional[StrictStr] = Field(default=None, alias="presharedKey") + reauth_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="reauthInterval") + rekey_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="rekeyInterval") + remote_address: Optional[StrictStr] = Field(default=None, alias="remoteAddress") + remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="remoteIkePeerIdentity") __properties: ClassVar[List[str]] = ["antiReplayWindowSize", "dhGroup", "dpdInterval", "encryptionAlg", "esn", "ikeIntegrity", "initiator", "ipsecEncryptionAlg", "ipsecIntegrity", "label", "localAddress", "localCircuit", "localIkePeerIdentity", "perfectForwardSecrecy", "presharedKey", "reauthInterval", "rekeyInterval", "remoteAddress", "remoteIkePeerIdentity"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -63,7 +61,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_ip_config.py b/graphiant_sdk/models/mana_v2_interface_ip_config.py index 55d50e62..f720b264 100644 --- a/graphiant_sdk/models/mana_v2_interface_ip_config.py +++ b/graphiant_sdk/models/mana_v2_interface_ip_config.py @@ -25,7 +25,6 @@ from graphiant_sdk.models.mana_v2_nullable_vrrp_group_config import ManaV2NullableVrrpGroupConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceIpConfig(BaseModel): """ @@ -38,8 +37,7 @@ class ManaV2InterfaceIpConfig(BaseModel): __properties: ClassVar[List[str]] = ["address", "dhcp", "gw", "vrrp"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_lagvlan_config.py b/graphiant_sdk/models/mana_v2_interface_lagvlan_config.py index 754edb68..b6d1d067 100644 --- a/graphiant_sdk/models/mana_v2_interface_lagvlan_config.py +++ b/graphiant_sdk/models/mana_v2_interface_lagvlan_config.py @@ -23,24 +23,22 @@ from graphiant_sdk.models.mana_v2_interface_ip_config import ManaV2InterfaceIpConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceLagvlanConfig(BaseModel): """ ManaV2InterfaceLagvlanConfig """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus", json_schema_extra={"examples": [True]}) - alias: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") + alias: Optional[StrictStr] = None + description: Optional[StrictStr] = None ipv4: Optional[ManaV2InterfaceIpConfig] = None ipv6: Optional[ManaV2InterfaceIpConfig] = None - segment: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - vlan: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + segment: Optional[StrictStr] = None + vlan: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["adminStatus", "alias", "description", "ipv4", "ipv6", "segment", "vlan"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_ma_csec.py b/graphiant_sdk/models/mana_v2_interface_ma_csec.py index 25729145..cfa0d10c 100644 --- a/graphiant_sdk/models/mana_v2_interface_ma_csec.py +++ b/graphiant_sdk/models/mana_v2_interface_ma_csec.py @@ -23,24 +23,22 @@ from graphiant_sdk.models.mana_v2_sak_configuration import ManaV2SakConfiguration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceMaCsec(BaseModel): """ ManaV2InterfaceMaCsec """ # noqa: E501 - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - encryption_enforcement_mode: Optional[StrictStr] = Field(default=None, alias="encryptionEnforcementMode", json_schema_extra={"examples": ["ENUM_VALUE"]}) - key_server_priority: Optional[StrictInt] = Field(default=None, alias="keyServerPriority", json_schema_extra={"examples": [1234567891011]}) + enabled: Optional[StrictBool] = None + encryption_enforcement_mode: Optional[StrictStr] = Field(default=None, alias="encryptionEnforcementMode") + key_server_priority: Optional[StrictInt] = Field(default=None, alias="keyServerPriority") psk_configurations: Optional[List[ManaV2PskConfiguration]] = Field(default=None, alias="pskConfigurations") sak_configurations: Optional[List[ManaV2SakConfiguration]] = Field(default=None, alias="sakConfigurations") - split_sak_config_by_lag_member: Optional[StrictBool] = Field(default=None, alias="splitSakConfigByLagMember", json_schema_extra={"examples": [True]}) - transparent_vlan: Optional[StrictBool] = Field(default=None, alias="transparentVlan", json_schema_extra={"examples": [True]}) + split_sak_config_by_lag_member: Optional[StrictBool] = Field(default=None, alias="splitSakConfigByLagMember") + transparent_vlan: Optional[StrictBool] = Field(default=None, alias="transparentVlan") __properties: ClassVar[List[str]] = ["enabled", "encryptionEnforcementMode", "keyServerPriority", "pskConfigurations", "sakConfigurations", "splitSakConfigByLagMember", "transparentVlan"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_sfp_optical_strength.py b/graphiant_sdk/models/mana_v2_interface_sfp_optical_strength.py index c5dc6bd6..0fc0e89f 100644 --- a/graphiant_sdk/models/mana_v2_interface_sfp_optical_strength.py +++ b/graphiant_sdk/models/mana_v2_interface_sfp_optical_strength.py @@ -22,22 +22,20 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceSfpOpticalStrength(BaseModel): """ ManaV2InterfaceSfpOpticalStrength """ # noqa: E501 - index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - rx_power: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="rxPower", json_schema_extra={"examples": [12.34]}) - tx_bias: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="txBias", json_schema_extra={"examples": [12.34]}) - tx_power: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="txPower", json_schema_extra={"examples": [12.34]}) - voltage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) + index: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + rx_power: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="rxPower") + tx_bias: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="txBias") + tx_power: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="txPower") + voltage: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["index", "rxPower", "txBias", "txPower", "voltage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_tunnel.py b/graphiant_sdk/models/mana_v2_interface_tunnel.py index 7af682ee..0ae7fd18 100644 --- a/graphiant_sdk/models/mana_v2_interface_tunnel.py +++ b/graphiant_sdk/models/mana_v2_interface_tunnel.py @@ -23,33 +23,31 @@ from graphiant_sdk.models.mana_v2_interface import ManaV2Interface from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceTunnel(BaseModel): """ ManaV2InterfaceTunnel """ # noqa: E501 - anti_replay_w_size: Optional[StrictInt] = Field(default=None, alias="antiReplayWSize", json_schema_extra={"examples": [123]}) + anti_replay_w_size: Optional[StrictInt] = Field(default=None, alias="antiReplayWSize") established_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="establishedTime") - local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit", json_schema_extra={"examples": ["example string"]}) + local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit") local_interface: Optional[ManaV2Interface] = Field(default=None, alias="localInterface") - local_port: Optional[StrictInt] = Field(default=None, alias="localPort", json_schema_extra={"examples": [123]}) - local_spi: Optional[StrictInt] = Field(default=None, alias="localSpi", json_schema_extra={"examples": [1234567891011]}) - negotiated_algorithms: Optional[StrictStr] = Field(default=None, alias="negotiatedAlgorithms", json_schema_extra={"examples": ["example string"]}) - oper_state: Optional[StrictBool] = Field(default=None, alias="operState", json_schema_extra={"examples": [True]}) - peer_address: Optional[StrictStr] = Field(default=None, alias="peerAddress", json_schema_extra={"examples": ["example string"]}) - protocol: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + local_port: Optional[StrictInt] = Field(default=None, alias="localPort") + local_spi: Optional[StrictInt] = Field(default=None, alias="localSpi") + negotiated_algorithms: Optional[StrictStr] = Field(default=None, alias="negotiatedAlgorithms") + oper_state: Optional[StrictBool] = Field(default=None, alias="operState") + peer_address: Optional[StrictStr] = Field(default=None, alias="peerAddress") + protocol: Optional[StrictStr] = None rekey_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="rekeyTime") - remote_port: Optional[StrictInt] = Field(default=None, alias="remotePort", json_schema_extra={"examples": [123]}) - remote_spi: Optional[StrictInt] = Field(default=None, alias="remoteSpi", json_schema_extra={"examples": [1234567891011]}) - session_id: Optional[StrictInt] = Field(default=None, alias="sessionId", json_schema_extra={"examples": [1234567891011]}) - source_address: Optional[StrictStr] = Field(default=None, alias="sourceAddress", json_schema_extra={"examples": ["example string"]}) + remote_port: Optional[StrictInt] = Field(default=None, alias="remotePort") + remote_spi: Optional[StrictInt] = Field(default=None, alias="remoteSpi") + session_id: Optional[StrictInt] = Field(default=None, alias="sessionId") + source_address: Optional[StrictStr] = Field(default=None, alias="sourceAddress") tunnel_interface: Optional[ManaV2Interface] = Field(default=None, alias="tunnelInterface") __properties: ClassVar[List[str]] = ["antiReplayWSize", "establishedTime", "localCircuit", "localInterface", "localPort", "localSpi", "negotiatedAlgorithms", "operState", "peerAddress", "protocol", "rekeyTime", "remotePort", "remoteSpi", "sessionId", "sourceAddress", "tunnelInterface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -61,7 +59,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_vlan.py b/graphiant_sdk/models/mana_v2_interface_vlan.py index 52bc9530..2d13b07a 100644 --- a/graphiant_sdk/models/mana_v2_interface_vlan.py +++ b/graphiant_sdk/models/mana_v2_interface_vlan.py @@ -24,42 +24,40 @@ from graphiant_sdk.models.mana_v2_interface_address import ManaV2InterfaceAddress from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceVlan(BaseModel): """ ManaV2InterfaceVlan """ # noqa: E501 - alias: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + alias: Optional[StrictStr] = None + circuit: Optional[StrictStr] = None config_updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="configUpdatedAt") - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - duplex: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - gateway_address_v4: Optional[StrictStr] = Field(default=None, alias="gatewayAddressV4", json_schema_extra={"examples": ["example string"]}) - gateway_address_v6: Optional[StrictStr] = Field(default=None, alias="gatewayAddressV6", json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + description: Optional[StrictStr] = None + duplex: Optional[StrictStr] = None + enabled: Optional[StrictBool] = None + gateway_address_v4: Optional[StrictStr] = Field(default=None, alias="gatewayAddressV4") + gateway_address_v6: Optional[StrictStr] = Field(default=None, alias="gatewayAddressV6") + id: Optional[StrictInt] = None ipv4: Optional[ManaV2InterfaceAddress] = None ipv6: Optional[ManaV2InterfaceAddress] = None ipv6_addresses: Optional[List[ManaV2InterfaceAddress]] = Field(default=None, alias="ipv6Addresses") - lan: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress", json_schema_extra={"examples": ["example string"]}) - max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit", json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + lan: Optional[StrictStr] = None + mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress") + max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit") + name: Optional[StrictStr] = None oper_updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="operUpdatedAt") - parent_mac_address: Optional[StrictStr] = Field(default=None, alias="parentMacAddress", json_schema_extra={"examples": ["example string"]}) - security_zone: Optional[StrictStr] = Field(default=None, alias="securityZone", json_schema_extra={"examples": ["example string"]}) - speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="speedMbps", json_schema_extra={"examples": [123]}) - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss", json_schema_extra={"examples": [123]}) - tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4", json_schema_extra={"examples": [123]}) - tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6", json_schema_extra={"examples": [123]}) - up: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - vlan: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + parent_mac_address: Optional[StrictStr] = Field(default=None, alias="parentMacAddress") + security_zone: Optional[StrictStr] = Field(default=None, alias="securityZone") + speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="speedMbps") + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4") + tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6") + up: Optional[StrictBool] = None + vlan: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["alias", "circuit", "configUpdatedAt", "description", "duplex", "enabled", "gatewayAddressV4", "gatewayAddressV6", "id", "ipv4", "ipv6", "ipv6Addresses", "lan", "macAddress", "maxTransmissionUnit", "name", "operUpdatedAt", "parentMacAddress", "securityZone", "speedMbps", "tcpMss", "tcpMssV4", "tcpMssV6", "up", "vlan"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -71,7 +69,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_vlan_config.py b/graphiant_sdk/models/mana_v2_interface_vlan_config.py index 5027786b..174a8a3d 100644 --- a/graphiant_sdk/models/mana_v2_interface_vlan_config.py +++ b/graphiant_sdk/models/mana_v2_interface_vlan_config.py @@ -26,34 +26,32 @@ from graphiant_sdk.models.mana_v2_nullable_vrrp_group_config import ManaV2NullableVrrpGroupConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceVlanConfig(BaseModel): """ ManaV2InterfaceVlanConfig """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus", json_schema_extra={"examples": [True]}) - alias: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") + alias: Optional[StrictStr] = None + circuit: Optional[StrictStr] = None + description: Optional[StrictStr] = None ipv4: Optional[ManaV2InterfaceIpConfig] = None ipv6: Optional[ManaV2InterfaceIpConfig] = None - lan: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled", json_schema_extra={"examples": [True]}) - max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit", json_schema_extra={"examples": [123]}) - security_zone: Optional[StrictStr] = Field(default=None, alias="securityZone", json_schema_extra={"examples": ["example string"]}) - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss", json_schema_extra={"examples": [123]}) - tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4", json_schema_extra={"examples": [123]}) - tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6", json_schema_extra={"examples": [123]}) + lan: Optional[StrictStr] = None + lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled") + max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit") + security_zone: Optional[StrictStr] = Field(default=None, alias="securityZone") + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4") + tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6") v4_tcp_mss: Optional[ManaV2NullableTcpMssV4] = Field(default=None, alias="v4TcpMss") v6_tcp_mss: Optional[ManaV2NullableTcpMssV6] = Field(default=None, alias="v6TcpMss") - vlan: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + vlan: Optional[Annotated[int, Field(strict=True, ge=0)]] = None vrrp: Optional[ManaV2NullableVrrpGroupConfig] = None __properties: ClassVar[List[str]] = ["adminStatus", "alias", "circuit", "description", "ipv4", "ipv6", "lan", "lldpEnabled", "maxTransmissionUnit", "securityZone", "tcpMss", "tcpMssV4", "tcpMssV6", "v4TcpMss", "v6TcpMss", "vlan", "vrrp"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -65,7 +63,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_interface_wan_config.py b/graphiant_sdk/models/mana_v2_interface_wan_config.py index 1367e672..321b6439 100644 --- a/graphiant_sdk/models/mana_v2_interface_wan_config.py +++ b/graphiant_sdk/models/mana_v2_interface_wan_config.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_nullable_interface_ip_config import ManaV2NullableInterfaceIpConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2InterfaceWanConfig(BaseModel): """ ManaV2InterfaceWanConfig """ # noqa: E501 gw: Optional[ManaV2NullableInterfaceIpConfig] = None - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName", json_schema_extra={"examples": ["example string"]}) + type: Optional[StrictStr] = None + vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName") __properties: ClassVar[List[str]] = ["gw", "type", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_internet_access_bandwidth_info.py b/graphiant_sdk/models/mana_v2_internet_access_bandwidth_info.py index 9bb41bbe..f858ea98 100644 --- a/graphiant_sdk/models/mana_v2_internet_access_bandwidth_info.py +++ b/graphiant_sdk/models/mana_v2_internet_access_bandwidth_info.py @@ -21,19 +21,17 @@ 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 ManaV2InternetAccessBandwidthInfo(BaseModel): """ ManaV2InternetAccessBandwidthInfo """ # noqa: E501 - internet_bandwidth: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Bandwidth value associated with dia gateways. This should either be 0, 10, or 100.", alias="internetBandwidth", json_schema_extra={"examples": [12.34]}) - internet_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Additional credits to support the provided DIA bandwidth", alias="internetCredits", json_schema_extra={"examples": [12.34]}) + internet_bandwidth: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Bandwidth value associated with dia gateways. This should either be 0, 10, or 100.", alias="internetBandwidth") + internet_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Additional credits to support the provided DIA bandwidth", alias="internetCredits") __properties: ClassVar[List[str]] = ["internetBandwidth", "internetCredits"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ip_firewall_policy.py b/graphiant_sdk/models/mana_v2_ip_firewall_policy.py index 62b7d577..3c1f1303 100644 --- a/graphiant_sdk/models/mana_v2_ip_firewall_policy.py +++ b/graphiant_sdk/models/mana_v2_ip_firewall_policy.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2IpFirewallPolicy(BaseModel): """ ManaV2IpFirewallPolicy """ # noqa: E501 - block_land_attacks: Optional[StrictBool] = Field(default=None, alias="blockLandAttacks", json_schema_extra={"examples": [True]}) - session_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sessionLimit", json_schema_extra={"examples": [123]}) - urpf: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + block_land_attacks: Optional[StrictBool] = Field(default=None, alias="blockLandAttacks") + session_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sessionLimit") + urpf: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["blockLandAttacks", "sessionLimit", "urpf"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ip_network_list.py b/graphiant_sdk/models/mana_v2_ip_network_list.py index 3bab0956..6f538b80 100644 --- a/graphiant_sdk/models/mana_v2_ip_network_list.py +++ b/graphiant_sdk/models/mana_v2_ip_network_list.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2IpNetworkList(BaseModel): """ ManaV2IpNetworkList """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None networks: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["id", "name", "networks"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ip_network_list_config.py b/graphiant_sdk/models/mana_v2_ip_network_list_config.py index 392d5029..ee783aeb 100644 --- a/graphiant_sdk/models/mana_v2_ip_network_list_config.py +++ b/graphiant_sdk/models/mana_v2_ip_network_list_config.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2IpNetworkListConfig(BaseModel): """ ManaV2IpNetworkListConfig """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None networks: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["name", "networks"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ipfix_exporter.py b/graphiant_sdk/models/mana_v2_ipfix_exporter.py index cd697183..cf0b066d 100644 --- a/graphiant_sdk/models/mana_v2_ipfix_exporter.py +++ b/graphiant_sdk/models/mana_v2_ipfix_exporter.py @@ -22,32 +22,30 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2IpfixExporter(BaseModel): """ ManaV2IpfixExporter """ # noqa: E501 - destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress", json_schema_extra={"examples": ["example string"]}) - destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": [123]}) - error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage", json_schema_extra={"examples": ["example string"]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress") + destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort") + error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage") + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + id: Optional[StrictInt] = None monitored_segments: Optional[List[StrictStr]] = Field(default=None, alias="monitoredSegments") - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - sample_mode: Optional[StrictStr] = Field(default=None, alias="sampleMode", json_schema_extra={"examples": ["example string"]}) - sample_rate: Optional[StrictInt] = Field(default=None, alias="sampleRate", json_schema_extra={"examples": [1234567891011]}) - source_address: Optional[StrictStr] = Field(default=None, alias="sourceAddress", json_schema_extra={"examples": ["example string"]}) - source_interface: Optional[StrictStr] = Field(default=None, alias="sourceInterface", json_schema_extra={"examples": ["example string"]}) - source_segment: Optional[StrictStr] = Field(default=None, alias="sourceSegment", json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId", json_schema_extra={"examples": [1234567891011]}) - vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName", json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None + sample_mode: Optional[StrictStr] = Field(default=None, alias="sampleMode") + sample_rate: Optional[StrictInt] = Field(default=None, alias="sampleRate") + source_address: Optional[StrictStr] = Field(default=None, alias="sourceAddress") + source_interface: Optional[StrictStr] = Field(default=None, alias="sourceInterface") + source_segment: Optional[StrictStr] = Field(default=None, alias="sourceSegment") + status: Optional[StrictStr] = None + vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId") + vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName") __properties: ClassVar[List[str]] = ["destinationAddress", "destinationPort", "errorMessage", "globalId", "id", "monitoredSegments", "name", "sampleMode", "sampleRate", "sourceAddress", "sourceInterface", "sourceSegment", "status", "vrfId", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,7 +57,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ipfix_exporter_config.py b/graphiant_sdk/models/mana_v2_ipfix_exporter_config.py index ff771835..59f528b7 100644 --- a/graphiant_sdk/models/mana_v2_ipfix_exporter_config.py +++ b/graphiant_sdk/models/mana_v2_ipfix_exporter_config.py @@ -22,27 +22,25 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2IpfixExporterConfig(BaseModel): """ ManaV2IpfixExporterConfig """ # noqa: E501 - destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress", json_schema_extra={"examples": ["example string"]}) - destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": [123]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync", json_schema_extra={"examples": [True]}) + destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress") + destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort") + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync") monitored_segments: Optional[List[StrictStr]] = Field(default=None, alias="monitoredSegments") - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - sample_mode: Optional[StrictStr] = Field(default=None, alias="sampleMode", json_schema_extra={"examples": ["ENUM_VALUE"]}) - sample_rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sampleRate", json_schema_extra={"examples": [123]}) - source_interface_name: Optional[StrictStr] = Field(default=None, alias="sourceInterfaceName", json_schema_extra={"examples": ["example string"]}) - vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId", json_schema_extra={"examples": [1234567891011]}) + name: Optional[StrictStr] = None + sample_mode: Optional[StrictStr] = Field(default=None, alias="sampleMode") + sample_rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sampleRate") + source_interface_name: Optional[StrictStr] = Field(default=None, alias="sourceInterfaceName") + vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId") __properties: ClassVar[List[str]] = ["destinationAddress", "destinationPort", "globalId", "isGlobalSync", "monitoredSegments", "name", "sampleMode", "sampleRate", "sourceInterfaceName", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ipsec_connection.py b/graphiant_sdk/models/mana_v2_ipsec_connection.py index 0f497e05..95523b5a 100644 --- a/graphiant_sdk/models/mana_v2_ipsec_connection.py +++ b/graphiant_sdk/models/mana_v2_ipsec_connection.py @@ -23,23 +23,21 @@ 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 ManaV2IpsecConnection(BaseModel): """ ManaV2IpsecConnection """ # noqa: E501 - dest_ip: Optional[StrictStr] = Field(default=None, alias="destIp", json_schema_extra={"examples": ["example string"]}) - dest_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destPort", json_schema_extra={"examples": [123]}) + dest_ip: Optional[StrictStr] = Field(default=None, alias="destIp") + dest_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destPort") last_established_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastEstablishedTime") - quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp", json_schema_extra={"examples": ["example string"]}) - source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort", json_schema_extra={"examples": [123]}) + quality: Optional[StrictStr] = None + source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp") + source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort") __properties: ClassVar[List[str]] = ["destIp", "destPort", "lastEstablishedTime", "quality", "sourceIp", "sourcePort"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ipsec_routing_config.py b/graphiant_sdk/models/mana_v2_ipsec_routing_config.py index 7a1b5c7a..a932e8e3 100644 --- a/graphiant_sdk/models/mana_v2_ipsec_routing_config.py +++ b/graphiant_sdk/models/mana_v2_ipsec_routing_config.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_i_psec_static_route_config import ManaV2IPsecStaticRouteConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2IpsecRoutingConfig(BaseModel): """ @@ -34,8 +33,7 @@ class ManaV2IpsecRoutingConfig(BaseModel): __properties: ClassVar[List[str]] = ["bgp", "static"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_l4_port_list.py b/graphiant_sdk/models/mana_v2_l4_port_list.py index ce24da4d..9bf89b50 100644 --- a/graphiant_sdk/models/mana_v2_l4_port_list.py +++ b/graphiant_sdk/models/mana_v2_l4_port_list.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2L4PortList(BaseModel): """ ManaV2L4PortList """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None ports: Optional[List[Annotated[int, Field(strict=True, ge=0)]]] = None __properties: ClassVar[List[str]] = ["id", "name", "ports"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_l4_port_list_config.py b/graphiant_sdk/models/mana_v2_l4_port_list_config.py index 2e85c59d..9302d97c 100644 --- a/graphiant_sdk/models/mana_v2_l4_port_list_config.py +++ b/graphiant_sdk/models/mana_v2_l4_port_list_config.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2L4PortListConfig(BaseModel): """ ManaV2L4PortListConfig """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None ports: Optional[List[Annotated[int, Field(strict=True, ge=0)]]] = None __properties: ClassVar[List[str]] = ["name", "ports"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_lacp_config.py b/graphiant_sdk/models/mana_v2_lacp_config.py index d471f9b1..54b1570c 100644 --- a/graphiant_sdk/models/mana_v2_lacp_config.py +++ b/graphiant_sdk/models/mana_v2_lacp_config.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2LacpConfig(BaseModel): """ ManaV2LacpConfig """ # noqa: E501 - mode: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - timer: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + mode: Optional[StrictStr] = None + timer: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["mode", "timer"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_lag_interface.py b/graphiant_sdk/models/mana_v2_lag_interface.py index 9b13e7ff..37bd613f 100644 --- a/graphiant_sdk/models/mana_v2_lag_interface.py +++ b/graphiant_sdk/models/mana_v2_lag_interface.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.mana_v2_lacp_config import ManaV2LacpConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2LagInterface(BaseModel): """ ManaV2LagInterface """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None lacp_config: Optional[ManaV2LacpConfig] = Field(default=None, alias="lacpConfig") members: Optional[List[StrictInt]] = None - minimum_members: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minimumMembers", json_schema_extra={"examples": [123]}) + minimum_members: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minimumMembers") __properties: ClassVar[List[str]] = ["id", "lacpConfig", "members", "minimumMembers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_lag_interface_config.py b/graphiant_sdk/models/mana_v2_lag_interface_config.py index 3c45e115..14fd5d08 100644 --- a/graphiant_sdk/models/mana_v2_lag_interface_config.py +++ b/graphiant_sdk/models/mana_v2_lag_interface_config.py @@ -27,29 +27,27 @@ from graphiant_sdk.models.mana_v2_nullable_ma_csec_configuration import ManaV2NullableMaCsecConfiguration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2LagInterfaceConfig(BaseModel): """ ManaV2LagInterfaceConfig """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus", json_schema_extra={"examples": [True]}) - alias: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") + alias: Optional[StrictStr] = None + description: Optional[StrictStr] = None ipv4: Optional[ManaV2InterfaceIpConfig] = None ipv6: Optional[ManaV2InterfaceIpConfig] = None lacp: Optional[ManaV2LacpConfig] = None lag_members: Optional[Dict[str, ManaV2NullableLagMemberInterface]] = Field(default=None, alias="lagMembers") macsec: Optional[ManaV2NullableMaCsecConfiguration] = None - minimum_members: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minimumMembers", json_schema_extra={"examples": [123]}) - mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - segment: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + minimum_members: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minimumMembers") + mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + segment: Optional[StrictStr] = None subinterfaces: Optional[Dict[str, ManaV2NullableInterfaceLagvlanConfig]] = None __properties: ClassVar[List[str]] = ["adminStatus", "alias", "description", "ipv4", "ipv6", "lacp", "lagMembers", "macsec", "minimumMembers", "mtu", "segment", "subinterfaces"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -61,7 +59,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_lan_segment_public_interface_entry.py b/graphiant_sdk/models/mana_v2_lan_segment_public_interface_entry.py new file mode 100644 index 00000000..6de2d5e6 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_lan_segment_public_interface_entry.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2LanSegmentPublicInterfaceEntry(BaseModel): + """ + ManaV2LanSegmentPublicInterfaceEntry + """ # noqa: E501 + interface_id: Optional[StrictInt] = Field(default=None, description="network.interface id (required)", alias="interfaceId") + ipv4_addresses: Optional[List[StrictStr]] = Field(default=None, alias="ipv4Addresses") + name: Optional[StrictStr] = Field(default=None, description="Device interface name (BGP local_interface uses this) (required)") + storage_provider: Optional[StrictStr] = Field(default=None, description="Interface storage provider (cloud provider for gateway LAN interfaces)", alias="storageProvider") + __properties: ClassVar[List[str]] = ["interfaceId", "ipv4Addresses", "name", "storageProvider"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2LanSegmentPublicInterfaceEntry 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 ManaV2LanSegmentPublicInterfaceEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "interfaceId": obj.get("interfaceId"), + "ipv4Addresses": obj.get("ipv4Addresses"), + "name": obj.get("name"), + "storageProvider": obj.get("storageProvider") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_lan_segment_public_interfaces_lists.py b/graphiant_sdk/models/mana_v2_lan_segment_public_interfaces_lists.py new file mode 100644 index 00000000..03d84e93 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_lan_segment_public_interfaces_lists.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_lan_segment_public_interface_entry import ManaV2LanSegmentPublicInterfaceEntry +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2LanSegmentPublicInterfacesLists(BaseModel): + """ + ManaV2LanSegmentPublicInterfacesLists + """ # noqa: E501 + private_interfaces: Optional[List[ManaV2LanSegmentPublicInterfaceEntry]] = Field(default=None, alias="privateInterfaces") + public_interfaces: Optional[List[ManaV2LanSegmentPublicInterfaceEntry]] = Field(default=None, alias="publicInterfaces") + __properties: ClassVar[List[str]] = ["privateInterfaces", "publicInterfaces"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2LanSegmentPublicInterfacesLists 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 private_interfaces (list) + _items = [] + if self.private_interfaces: + for _item_private_interfaces in self.private_interfaces: + if _item_private_interfaces: + _items.append(_item_private_interfaces.to_dict()) + _dict['privateInterfaces'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in public_interfaces (list) + _items = [] + if self.public_interfaces: + for _item_public_interfaces in self.public_interfaces: + if _item_public_interfaces: + _items.append(_item_public_interfaces.to_dict()) + _dict['publicInterfaces'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2LanSegmentPublicInterfacesLists from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "privateInterfaces": [ManaV2LanSegmentPublicInterfaceEntry.from_dict(_item) for _item in obj["privateInterfaces"]] if obj.get("privateInterfaces") is not None else None, + "publicInterfaces": [ManaV2LanSegmentPublicInterfaceEntry.from_dict(_item) for _item in obj["publicInterfaces"]] if obj.get("publicInterfaces") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_lan_segment_sites_map.py b/graphiant_sdk/models/mana_v2_lan_segment_sites_map.py index bf71e618..459560b9 100644 --- a/graphiant_sdk/models/mana_v2_lan_segment_sites_map.py +++ b/graphiant_sdk/models/mana_v2_lan_segment_sites_map.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_site_lan_segment_device_buckets import ManaV2SiteLanSegmentDeviceBuckets from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2LanSegmentSitesMap(BaseModel): """ @@ -33,8 +32,7 @@ class ManaV2LanSegmentSitesMap(BaseModel): __properties: ClassVar[List[str]] = ["siteIds", "siteListIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_latency_bandwidth.py b/graphiant_sdk/models/mana_v2_latency_bandwidth.py index af2d9754..7509271f 100644 --- a/graphiant_sdk/models/mana_v2_latency_bandwidth.py +++ b/graphiant_sdk/models/mana_v2_latency_bandwidth.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, 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 ManaV2LatencyBandwidth(BaseModel): """ ManaV2LatencyBandwidth """ # noqa: E501 - bandwidth: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - latency: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + bandwidth: Optional[StrictInt] = None + latency: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["bandwidth", "latency"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_lldp_neighbor.py b/graphiant_sdk/models/mana_v2_lldp_neighbor.py index 8067dfbe..462d351b 100644 --- a/graphiant_sdk/models/mana_v2_lldp_neighbor.py +++ b/graphiant_sdk/models/mana_v2_lldp_neighbor.py @@ -21,24 +21,22 @@ 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 ManaV2LldpNeighbor(BaseModel): """ ManaV2LldpNeighbor """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - ip_address: Optional[StrictStr] = Field(default=None, alias="ipAddress", json_schema_extra={"examples": ["example string"]}) - mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress", json_schema_extra={"examples": ["example string"]}) - port: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - system_name: Optional[StrictStr] = Field(default=None, alias="systemName", json_schema_extra={"examples": ["example string"]}) - vendor: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + interface: Optional[StrictStr] = None + ip_address: Optional[StrictStr] = Field(default=None, alias="ipAddress") + mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress") + port: Optional[StrictStr] = None + system_name: Optional[StrictStr] = Field(default=None, alias="systemName") + vendor: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "interface", "ipAddress", "macAddress", "port", "systemName", "vendor"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_location.py b/graphiant_sdk/models/mana_v2_location.py index 2460556e..eadfff7a 100644 --- a/graphiant_sdk/models/mana_v2_location.py +++ b/graphiant_sdk/models/mana_v2_location.py @@ -21,28 +21,26 @@ 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 ManaV2Location(BaseModel): """ ManaV2Location """ # noqa: E501 - address_line1: Optional[StrictStr] = Field(default=None, alias="addressLine1", json_schema_extra={"examples": ["example string"]}) - address_line2: Optional[StrictStr] = Field(default=None, alias="addressLine2", json_schema_extra={"examples": ["example string"]}) - city: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - country: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - country_code: Optional[StrictStr] = Field(default=None, alias="countryCode", json_schema_extra={"examples": ["example string"]}) - latitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [123.45]}) - longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [123.45]}) - notes: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - province_code: Optional[StrictStr] = Field(default=None, alias="provinceCode", json_schema_extra={"examples": ["example string"]}) - state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - state_code: Optional[StrictStr] = Field(default=None, alias="stateCode", json_schema_extra={"examples": ["example string"]}) + address_line1: Optional[StrictStr] = Field(default=None, alias="addressLine1") + address_line2: Optional[StrictStr] = Field(default=None, alias="addressLine2") + city: Optional[StrictStr] = None + country: Optional[StrictStr] = None + country_code: Optional[StrictStr] = Field(default=None, alias="countryCode") + latitude: Optional[Union[StrictFloat, StrictInt]] = None + longitude: Optional[Union[StrictFloat, StrictInt]] = None + notes: Optional[StrictStr] = None + province_code: Optional[StrictStr] = Field(default=None, alias="provinceCode") + state: Optional[StrictStr] = None + state_code: Optional[StrictStr] = Field(default=None, alias="stateCode") __properties: ClassVar[List[str]] = ["addressLine1", "addressLine2", "city", "country", "countryCode", "latitude", "longitude", "notes", "provinceCode", "state", "stateCode"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ma_csec_configuration.py b/graphiant_sdk/models/mana_v2_ma_csec_configuration.py index 6ee398fe..38d13e6a 100644 --- a/graphiant_sdk/models/mana_v2_ma_csec_configuration.py +++ b/graphiant_sdk/models/mana_v2_ma_csec_configuration.py @@ -25,27 +25,25 @@ from graphiant_sdk.models.mana_v2_sak_configuration import ManaV2SakConfiguration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2MaCsecConfiguration(BaseModel): """ ManaV2MaCsecConfiguration """ # noqa: E501 - enabled: StrictBool = Field(description="Whether MACsec is enabled or disabled (required)", json_schema_extra={"examples": [True]}) - encryption_enforcement_mode: StrictStr = Field(description="The encryption enforcement mode (required)", alias="encryptionEnforcementMode", json_schema_extra={"examples": ["MACSEC_ENFORCEMENT_MODE_SHOULD_ENCRYPT"]}) + enabled: StrictBool = Field(description="Whether MACsec is enabled or disabled (required)") + encryption_enforcement_mode: StrictStr = Field(description="The encryption enforcement mode (required)", alias="encryptionEnforcementMode") global_sak_configuration: ManaV2NullableSakConfiguration = Field(alias="globalSakConfiguration") - key_server_priority: Optional[StrictInt] = Field(default=None, description="The priority of the key server. Lower number means higher priority.", alias="keyServerPriority", json_schema_extra={"examples": [255]}) + key_server_priority: Optional[StrictInt] = Field(default=None, description="The priority of the key server. Lower number means higher priority.", alias="keyServerPriority") psk_configurations: Optional[List[ManaV2PskConfiguration]] = Field(default=None, alias="pskConfigurations") psk_configurations_by_nickname: Dict[str, ManaV2NullablePskConfiguration] = Field(alias="pskConfigurationsByNickname") sak_configurations: Optional[List[ManaV2SakConfiguration]] = Field(default=None, alias="sakConfigurations") sak_configurations_by_lag_member_interface_id: Dict[str, ManaV2NullableSakConfiguration] = Field(alias="sakConfigurationsByLagMemberInterfaceId") - split_sak_config_by_lag_member: Optional[StrictBool] = Field(default=None, description="Whether to allow individual SAK configurations for each lag member", alias="splitSakConfigByLagMember", json_schema_extra={"examples": [True]}) - transparent_vlan: Optional[StrictBool] = Field(default=None, description="Whether transparent VLAN is enabled or disabled", alias="transparentVlan", json_schema_extra={"examples": [True]}) + split_sak_config_by_lag_member: Optional[StrictBool] = Field(default=None, description="Whether to allow individual SAK configurations for each lag member", alias="splitSakConfigByLagMember") + transparent_vlan: Optional[StrictBool] = Field(default=None, description="Whether transparent VLAN is enabled or disabled", alias="transparentVlan") __properties: ClassVar[List[str]] = ["enabled", "encryptionEnforcementMode", "globalSakConfiguration", "keyServerPriority", "pskConfigurations", "pskConfigurationsByNickname", "sakConfigurations", "sakConfigurationsByLagMemberInterfaceId", "splitSakConfigByLagMember", "transparentVlan"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_mana_configuration.py b/graphiant_sdk/models/mana_v2_mana_configuration.py index a6d7ae08..ce855a96 100644 --- a/graphiant_sdk/models/mana_v2_mana_configuration.py +++ b/graphiant_sdk/models/mana_v2_mana_configuration.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_version_metadata import ManaV2VersionMetadata from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ManaConfiguration(BaseModel): """ @@ -34,8 +33,7 @@ class ManaV2ManaConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["manaDevice", "versionInfo"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_managed_enterprise_contract_info.py b/graphiant_sdk/models/mana_v2_managed_enterprise_contract_info.py index d16f2fd2..d24a68de 100644 --- a/graphiant_sdk/models/mana_v2_managed_enterprise_contract_info.py +++ b/graphiant_sdk/models/mana_v2_managed_enterprise_contract_info.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.common_billing_contract import CommonBillingContract from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ManagedEnterpriseContractInfo(BaseModel): """ ManaV2ManagedEnterpriseContractInfo """ # noqa: E501 - consumed_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All credits consumed over the entirety the enterprise's contracts", alias="consumedCredits", json_schema_extra={"examples": [12.34]}) + consumed_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All credits consumed over the entirety the enterprise's contracts", alias="consumedCredits") enterprise_contract: Optional[CommonBillingContract] = Field(default=None, alias="enterpriseContract") - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - enterprise_name: Optional[StrictStr] = Field(default=None, alias="enterpriseName", json_schema_extra={"examples": ["example string"]}) + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + enterprise_name: Optional[StrictStr] = Field(default=None, alias="enterpriseName") __properties: ClassVar[List[str]] = ["consumedCredits", "enterpriseContract", "enterpriseId", "enterpriseName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nat_policy.py b/graphiant_sdk/models/mana_v2_nat_policy.py index 784f3a6b..c03b6d3b 100644 --- a/graphiant_sdk/models/mana_v2_nat_policy.py +++ b/graphiant_sdk/models/mana_v2_nat_policy.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_nat_policy_ruleset import ManaV2NatPolicyRuleset from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NatPolicy(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NatPolicy(BaseModel): __properties: ClassVar[List[str]] = ["natPolicyRulesets"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nat_policy_config.py b/graphiant_sdk/models/mana_v2_nat_policy_config.py index 1bea1ec3..7abedf3f 100644 --- a/graphiant_sdk/models/mana_v2_nat_policy_config.py +++ b/graphiant_sdk/models/mana_v2_nat_policy_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_nullable_nat_policy_ruleset_config import ManaV2NullableNatPolicyRulesetConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NatPolicyConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NatPolicyConfig(BaseModel): __properties: ClassVar[List[str]] = ["natRulesets"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nat_policy_ruleset.py b/graphiant_sdk/models/mana_v2_nat_policy_ruleset.py index b0d34e3e..31b10a54 100644 --- a/graphiant_sdk/models/mana_v2_nat_policy_ruleset.py +++ b/graphiant_sdk/models/mana_v2_nat_policy_ruleset.py @@ -17,26 +17,24 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_nat_policy_ruleset_rule import ManaV2NATPolicyRulesetRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NatPolicyRuleset(BaseModel): """ ManaV2NatPolicyRuleset """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None rules: Optional[List[ManaV2NATPolicyRulesetRule]] = None __properties: ClassVar[List[str]] = ["description", "id", "name", "rules"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config.py b/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config.py index fadd9d9d..d1d5f13c 100644 --- a/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config.py +++ b/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config.py @@ -17,25 +17,23 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_nat_policy_ruleset_config_nullable_rule import ManaV2NATPolicyRulesetConfigNullableRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NatPolicyRulesetConfig(BaseModel): """ ManaV2NatPolicyRulesetConfig """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + name: Optional[StrictStr] = None rules: Optional[Dict[str, ManaV2NATPolicyRulesetConfigNullableRule]] = None __properties: ClassVar[List[str]] = ["description", "name", "rules"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config_nullable_rule.py b/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config_nullable_rule.py index 7540e8be..adc86e73 100644 --- a/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config_nullable_rule.py +++ b/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config_nullable_rule.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_nat_policy_ruleset_config_nullable_rule_rule import ManaV2NATPolicyRulesetConfigNullableRuleRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NATPolicyRulesetConfigNullableRule(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NATPolicyRulesetConfigNullableRule(BaseModel): __properties: ClassVar[List[str]] = ["rule"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config_nullable_rule_rule.py b/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config_nullable_rule_rule.py index ef0f2e8a..b13df121 100644 --- a/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config_nullable_rule_rule.py +++ b/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config_nullable_rule_rule.py @@ -21,26 +21,24 @@ 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 ManaV2NATPolicyRulesetConfigNullableRuleRule(BaseModel): """ ManaV2NATPolicyRulesetConfigNullableRuleRule """ # noqa: E501 - advertise_pre_nat_prefixes: Optional[StrictBool] = Field(default=None, alias="advertisePreNatPrefixes", json_schema_extra={"examples": [True]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - original_dst_ip_prefix: Optional[StrictStr] = Field(default=None, alias="originalDstIpPrefix", json_schema_extra={"examples": ["example string"]}) - original_src_ip_prefix: Optional[StrictStr] = Field(default=None, alias="originalSrcIpPrefix", json_schema_extra={"examples": ["example string"]}) - seq: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - translated_dst_ip_prefix: Optional[StrictStr] = Field(default=None, alias="translatedDstIpPrefix", json_schema_extra={"examples": ["example string"]}) - translated_src_ip_prefix: Optional[StrictStr] = Field(default=None, alias="translatedSrcIpPrefix", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + advertise_pre_nat_prefixes: Optional[StrictBool] = Field(default=None, alias="advertisePreNatPrefixes") + description: Optional[StrictStr] = None + name: Optional[StrictStr] = None + original_dst_ip_prefix: Optional[StrictStr] = Field(default=None, alias="originalDstIpPrefix") + original_src_ip_prefix: Optional[StrictStr] = Field(default=None, alias="originalSrcIpPrefix") + seq: Optional[StrictInt] = None + translated_dst_ip_prefix: Optional[StrictStr] = Field(default=None, alias="translatedDstIpPrefix") + translated_src_ip_prefix: Optional[StrictStr] = Field(default=None, alias="translatedSrcIpPrefix") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["advertisePreNatPrefixes", "description", "name", "originalDstIpPrefix", "originalSrcIpPrefix", "seq", "translatedDstIpPrefix", "translatedSrcIpPrefix", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nat_policy_ruleset_rule.py b/graphiant_sdk/models/mana_v2_nat_policy_ruleset_rule.py index e9c0c3ac..73d0248d 100644 --- a/graphiant_sdk/models/mana_v2_nat_policy_ruleset_rule.py +++ b/graphiant_sdk/models/mana_v2_nat_policy_ruleset_rule.py @@ -22,28 +22,26 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NATPolicyRulesetRule(BaseModel): """ ManaV2NATPolicyRulesetRule """ # noqa: E501 - advertise_pre_nat_prefixes: Optional[StrictBool] = Field(default=None, alias="advertisePreNatPrefixes", json_schema_extra={"examples": [True]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - original_dst_ip_prefix: Optional[StrictStr] = Field(default=None, alias="originalDstIpPrefix", json_schema_extra={"examples": ["example string"]}) - original_src_ip_prefix: Optional[StrictStr] = Field(default=None, alias="originalSrcIpPrefix", json_schema_extra={"examples": ["example string"]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - translated_dst_ip_prefix: Optional[StrictStr] = Field(default=None, alias="translatedDstIpPrefix", json_schema_extra={"examples": ["example string"]}) - translated_src_ip_prefix: Optional[StrictStr] = Field(default=None, alias="translatedSrcIpPrefix", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + advertise_pre_nat_prefixes: Optional[StrictBool] = Field(default=None, alias="advertisePreNatPrefixes") + description: Optional[StrictStr] = None + id: Optional[StrictInt] = None + index: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + name: Optional[StrictStr] = None + original_dst_ip_prefix: Optional[StrictStr] = Field(default=None, alias="originalDstIpPrefix") + original_src_ip_prefix: Optional[StrictStr] = Field(default=None, alias="originalSrcIpPrefix") + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + translated_dst_ip_prefix: Optional[StrictStr] = Field(default=None, alias="translatedDstIpPrefix") + translated_src_ip_prefix: Optional[StrictStr] = Field(default=None, alias="translatedSrcIpPrefix") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["advertisePreNatPrefixes", "description", "id", "index", "name", "originalDstIpPrefix", "originalSrcIpPrefix", "seq", "translatedDstIpPrefix", "translatedSrcIpPrefix", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,7 +53,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_network_slice.py b/graphiant_sdk/models/mana_v2_network_slice.py index b196665a..151017ca 100644 --- a/graphiant_sdk/models/mana_v2_network_slice.py +++ b/graphiant_sdk/models/mana_v2_network_slice.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.mana_v2_network_slice_peer import ManaV2NetworkSlicePeer from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NetworkSlice(BaseModel): """ ManaV2NetworkSlice """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + id: Optional[StrictInt] = None peers: Optional[List[ManaV2NetworkSlicePeer]] = None - slice_index: Optional[StrictInt] = Field(default=None, alias="sliceIndex", json_schema_extra={"examples": [123]}) + slice_index: Optional[StrictInt] = Field(default=None, alias="sliceIndex") tags: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["id", "peers", "sliceIndex", "tags"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_network_slice_peer.py b/graphiant_sdk/models/mana_v2_network_slice_peer.py index caab7583..42b36851 100644 --- a/graphiant_sdk/models/mana_v2_network_slice_peer.py +++ b/graphiant_sdk/models/mana_v2_network_slice_peer.py @@ -24,25 +24,23 @@ from graphiant_sdk.models.mana_v2_interface_tunnel import ManaV2InterfaceTunnel from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NetworkSlicePeer(BaseModel): """ ManaV2NetworkSlicePeer """ # noqa: E501 bgp_connection: Optional[ManaV2BgpConnection] = Field(default=None, alias="bgpConnection") - connection_quality: Optional[StrictStr] = Field(default=None, alias="connectionQuality", json_schema_extra={"examples": ["ENUM_VALUE"]}) - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - gdi: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + connection_quality: Optional[StrictStr] = Field(default=None, alias="connectionQuality") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + gdi: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + hostname: Optional[StrictStr] = None ipsec_connection: Optional[ManaV2InterfaceTunnel] = Field(default=None, alias="ipsecConnection") - state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + state: Optional[StrictStr] = None wan_addresses: Optional[List[StrictStr]] = Field(default=None, alias="wanAddresses") __properties: ClassVar[List[str]] = ["bgpConnection", "connectionQuality", "deviceId", "gdi", "hostname", "ipsecConnection", "state", "wanAddresses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_new_site.py b/graphiant_sdk/models/mana_v2_new_site.py index accbfdfb..2c7f231e 100644 --- a/graphiant_sdk/models/mana_v2_new_site.py +++ b/graphiant_sdk/models/mana_v2_new_site.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_route_tag import ManaV2RouteTag from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NewSite(BaseModel): """ @@ -34,8 +33,8 @@ class ManaV2NewSite(BaseModel): ipfix_exporter_ops: Optional[Dict[str, StrictStr]] = Field(default=None, alias="ipfixExporterOps") ipfix_exporter_ops_v2: Optional[Dict[str, ManaV2GlobalObjectOperationConfig]] = Field(default=None, alias="ipfixExporterOpsV2") location: Optional[ManaV2Location] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - notes: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None + notes: Optional[StrictStr] = None ntp_ops: Optional[Dict[str, StrictStr]] = Field(default=None, alias="ntpOps") prefix_set_ops: Optional[Dict[str, StrictStr]] = Field(default=None, alias="prefixSetOps") route_tag: Optional[ManaV2RouteTag] = Field(default=None, alias="routeTag") @@ -47,8 +46,7 @@ class ManaV2NewSite(BaseModel): __properties: ClassVar[List[str]] = ["globalPrefixSetOps", "ipfixExporterOps", "ipfixExporterOpsV2", "location", "name", "notes", "ntpOps", "prefixSetOps", "routeTag", "routingPolicyOps", "snmpOps", "syslogServerOps", "syslogServerOpsV2", "trafficPolicyOps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,7 +58,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_notify_filter_profile_include.py b/graphiant_sdk/models/mana_v2_notify_filter_profile_include.py index e4fa580d..a7f76b02 100644 --- a/graphiant_sdk/models/mana_v2_notify_filter_profile_include.py +++ b/graphiant_sdk/models/mana_v2_notify_filter_profile_include.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictBool, 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 ManaV2NotifyFilterProfileInclude(BaseModel): """ ManaV2NotifyFilterProfileInclude """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - include: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - subtree: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + include: Optional[StrictBool] = None + subtree: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "include", "subtree"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_notify_filter_profile_include_config.py b/graphiant_sdk/models/mana_v2_notify_filter_profile_include_config.py index 0251cb4d..d1ceac3f 100644 --- a/graphiant_sdk/models/mana_v2_notify_filter_profile_include_config.py +++ b/graphiant_sdk/models/mana_v2_notify_filter_profile_include_config.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, StrictBool 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 ManaV2NotifyFilterProfileIncludeConfig(BaseModel): """ ManaV2NotifyFilterProfileIncludeConfig """ # noqa: E501 - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + enabled: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ntp.py b/graphiant_sdk/models/mana_v2_ntp.py index 290c5e15..bf6da875 100644 --- a/graphiant_sdk/models/mana_v2_ntp.py +++ b/graphiant_sdk/models/mana_v2_ntp.py @@ -21,23 +21,21 @@ 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 ManaV2Ntp(BaseModel): """ ManaV2Ntp """ # noqa: E501 domains: Optional[List[StrictStr]] = None - error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage", json_schema_extra={"examples": ["example string"]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage") + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["domains", "errorMessage", "globalId", "id", "name", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ntp_config.py b/graphiant_sdk/models/mana_v2_ntp_config.py index 247d9d5d..f2f26919 100644 --- a/graphiant_sdk/models/mana_v2_ntp_config.py +++ b/graphiant_sdk/models/mana_v2_ntp_config.py @@ -21,21 +21,19 @@ 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 ManaV2NtpConfig(BaseModel): """ ManaV2NtpConfig """ # noqa: E501 domains: Optional[List[StrictStr]] = None - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync", json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync") + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["domains", "globalId", "isGlobalSync", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_address.py b/graphiant_sdk/models/mana_v2_nullable_address.py index 15df2526..a82cdb77 100644 --- a/graphiant_sdk/models/mana_v2_nullable_address.py +++ b/graphiant_sdk/models/mana_v2_nullable_address.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableAddress(BaseModel): """ ManaV2NullableAddress """ # noqa: E501 - address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + address: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["address"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_administrative_distance.py b/graphiant_sdk/models/mana_v2_nullable_administrative_distance.py index 2355bc3f..cd34f670 100644 --- a/graphiant_sdk/models/mana_v2_nullable_administrative_distance.py +++ b/graphiant_sdk/models/mana_v2_nullable_administrative_distance.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableAdministrativeDistance(BaseModel): """ ManaV2NullableAdministrativeDistance """ # noqa: E501 - distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["distance"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_allow_as_in.py b/graphiant_sdk/models/mana_v2_nullable_allow_as_in.py index 21f79df6..4468434f 100644 --- a/graphiant_sdk/models/mana_v2_nullable_allow_as_in.py +++ b/graphiant_sdk/models/mana_v2_nullable_allow_as_in.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableAllowAsIn(BaseModel): """ ManaV2NullableAllowAsIn """ # noqa: E501 - count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["count"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_application_match_config.py b/graphiant_sdk/models/mana_v2_nullable_application_match_config.py index de8377de..5a59f8ce 100644 --- a/graphiant_sdk/models/mana_v2_nullable_application_match_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_application_match_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_application_match_config import ManaV2ApplicationMatchConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableApplicationMatchConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableApplicationMatchConfig(BaseModel): __properties: ClassVar[List[str]] = ["match"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_as_path_prepend.py b/graphiant_sdk/models/mana_v2_nullable_as_path_prepend.py index 60d1e57f..43e5cb5e 100644 --- a/graphiant_sdk/models/mana_v2_nullable_as_path_prepend.py +++ b/graphiant_sdk/models/mana_v2_nullable_as_path_prepend.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableAsPathPrepend(BaseModel): """ ManaV2NullableAsPathPrepend """ # noqa: E501 - repeat: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + repeat: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["repeat"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_bfd_instance_config.py b/graphiant_sdk/models/mana_v2_nullable_bfd_instance_config.py index 6b8e9d39..c439b832 100644 --- a/graphiant_sdk/models/mana_v2_nullable_bfd_instance_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_bfd_instance_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_bfd_instance_config import ManaV2BfdInstanceConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableBfdInstanceConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableBfdInstanceConfig(BaseModel): __properties: ClassVar[List[str]] = ["bfd"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_bgp_aggregations_config.py b/graphiant_sdk/models/mana_v2_nullable_bgp_aggregations_config.py index 98c82495..46ddd9c6 100644 --- a/graphiant_sdk/models/mana_v2_nullable_bgp_aggregations_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_bgp_aggregations_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_bgp_aggregations_config import ManaV2BgpAggregationsConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableBgpAggregationsConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableBgpAggregationsConfig(BaseModel): __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_bgp_multipath_config.py b/graphiant_sdk/models/mana_v2_nullable_bgp_multipath_config.py index b5e5e74f..75fc4874 100644 --- a/graphiant_sdk/models/mana_v2_nullable_bgp_multipath_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_bgp_multipath_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_bgp_multipath_config import ManaV2BgpMultipathConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableBgpMultipathConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableBgpMultipathConfig(BaseModel): __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_bgp_neighbor_address_family_config.py b/graphiant_sdk/models/mana_v2_nullable_bgp_neighbor_address_family_config.py index 1c77d146..a50d2eb1 100644 --- a/graphiant_sdk/models/mana_v2_nullable_bgp_neighbor_address_family_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_bgp_neighbor_address_family_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config import ManaV2BgpNeighborAddressFamilyConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableBgpNeighborAddressFamilyConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableBgpNeighborAddressFamilyConfig(BaseModel): __properties: ClassVar[List[str]] = ["family"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_bgp_neighbor_config.py b/graphiant_sdk/models/mana_v2_nullable_bgp_neighbor_config.py index 4e261f98..89a4fe4d 100644 --- a/graphiant_sdk/models/mana_v2_nullable_bgp_neighbor_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_bgp_neighbor_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_bgp_neighbor_config import ManaV2BgpNeighborConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableBgpNeighborConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableBgpNeighborConfig(BaseModel): __properties: ClassVar[List[str]] = ["neighbor"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_bgp_redistribute_protocol_config.py b/graphiant_sdk/models/mana_v2_nullable_bgp_redistribute_protocol_config.py index b3128848..71588870 100644 --- a/graphiant_sdk/models/mana_v2_nullable_bgp_redistribute_protocol_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_bgp_redistribute_protocol_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_bgp_redistribute_protocol_config import ManaV2BgpRedistributeProtocolConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableBgpRedistributeProtocolConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableBgpRedistributeProtocolConfig(BaseModel): __properties: ClassVar[List[str]] = ["protocol"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_bgp_set_next_hop.py b/graphiant_sdk/models/mana_v2_nullable_bgp_set_next_hop.py index ef583c21..62366ff7 100644 --- a/graphiant_sdk/models/mana_v2_nullable_bgp_set_next_hop.py +++ b/graphiant_sdk/models/mana_v2_nullable_bgp_set_next_hop.py @@ -21,18 +21,16 @@ 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 ManaV2NullableBgpSetNextHop(BaseModel): """ ManaV2NullableBgpSetNextHop """ # noqa: E501 - next_hop: Optional[StrictStr] = Field(default=None, alias="nextHop", json_schema_extra={"examples": ["example string"]}) + next_hop: Optional[StrictStr] = Field(default=None, alias="nextHop") __properties: ClassVar[List[str]] = ["nextHop"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_call_policy.py b/graphiant_sdk/models/mana_v2_nullable_call_policy.py index f6a2f8b5..18f11014 100644 --- a/graphiant_sdk/models/mana_v2_nullable_call_policy.py +++ b/graphiant_sdk/models/mana_v2_nullable_call_policy.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableCallPolicy(BaseModel): """ ManaV2NullableCallPolicy """ # noqa: E501 - policy: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + policy: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_communities.py b/graphiant_sdk/models/mana_v2_nullable_communities.py index ca768f02..8f3d20e2 100644 --- a/graphiant_sdk/models/mana_v2_nullable_communities.py +++ b/graphiant_sdk/models/mana_v2_nullable_communities.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_community_type import ManaV2CommunityType from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableCommunities(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableCommunities(BaseModel): __properties: ClassVar[List[str]] = ["community"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_community.py b/graphiant_sdk/models/mana_v2_nullable_community.py index d9b08bc8..370a7e80 100644 --- a/graphiant_sdk/models/mana_v2_nullable_community.py +++ b/graphiant_sdk/models/mana_v2_nullable_community.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_community_container import ManaV2CommunityContainer from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableCommunity(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableCommunity(BaseModel): __properties: ClassVar[List[str]] = ["community"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_content_filter_match_config.py b/graphiant_sdk/models/mana_v2_nullable_content_filter_match_config.py index fd3ccd7e..455909c4 100644 --- a/graphiant_sdk/models/mana_v2_nullable_content_filter_match_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_content_filter_match_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_content_filter_match_config import ManaV2ContentFilterMatchConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableContentFilterMatchConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableContentFilterMatchConfig(BaseModel): __properties: ClassVar[List[str]] = ["match"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_core_interface_vlan_config.py b/graphiant_sdk/models/mana_v2_nullable_core_interface_vlan_config.py index f239ce61..861d00e3 100644 --- a/graphiant_sdk/models/mana_v2_nullable_core_interface_vlan_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_core_interface_vlan_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_core_vlan_interface_config import ManaV2CoreVlanInterfaceConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableCoreInterfaceVlanConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableCoreInterfaceVlanConfig(BaseModel): __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_destination_network_match_config.py b/graphiant_sdk/models/mana_v2_nullable_destination_network_match_config.py index 34761390..6353e1ef 100644 --- a/graphiant_sdk/models/mana_v2_nullable_destination_network_match_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_destination_network_match_config.py @@ -21,18 +21,16 @@ 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 ManaV2NullableDestinationNetworkMatchConfig(BaseModel): """ ManaV2NullableDestinationNetworkMatchConfig """ # noqa: E501 - destination_network: Optional[StrictStr] = Field(default=None, alias="destinationNetwork", json_schema_extra={"examples": ["example string"]}) + destination_network: Optional[StrictStr] = Field(default=None, alias="destinationNetwork") __properties: ClassVar[List[str]] = ["destinationNetwork"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_dhcp_subnet_config.py b/graphiant_sdk/models/mana_v2_nullable_dhcp_subnet_config.py index cf112b03..87057197 100644 --- a/graphiant_sdk/models/mana_v2_nullable_dhcp_subnet_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_dhcp_subnet_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_dhcp_subnet_config import ManaV2DhcpSubnetConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableDhcpSubnetConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableDhcpSubnetConfig(BaseModel): __properties: ClassVar[List[str]] = ["subnet"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_dhcp_subnet_static_lease_config.py b/graphiant_sdk/models/mana_v2_nullable_dhcp_subnet_static_lease_config.py index cec6ad33..242be51d 100644 --- a/graphiant_sdk/models/mana_v2_nullable_dhcp_subnet_static_lease_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_dhcp_subnet_static_lease_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_dhcp_subnet_static_lease_config import ManaV2DhcpSubnetStaticLeaseConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableDhcpSubnetStaticLeaseConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableDhcpSubnetStaticLeaseConfig(BaseModel): __properties: ClassVar[List[str]] = ["lease"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_dhcpip_range_list.py b/graphiant_sdk/models/mana_v2_nullable_dhcpip_range_list.py index 36a73f7d..5846dad9 100644 --- a/graphiant_sdk/models/mana_v2_nullable_dhcpip_range_list.py +++ b/graphiant_sdk/models/mana_v2_nullable_dhcpip_range_list.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_dhcpip_range_config import ManaV2DhcpipRangeConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableDhcpipRangeList(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableDhcpipRangeList(BaseModel): __properties: ClassVar[List[str]] = ["ipRange"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_dns_config.py b/graphiant_sdk/models/mana_v2_nullable_dns_config.py index 3f9720c8..c0223108 100644 --- a/graphiant_sdk/models/mana_v2_nullable_dns_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_dns_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_dns_config import ManaV2DnsConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableDnsConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableDnsConfig(BaseModel): __properties: ClassVar[List[str]] = ["dns"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_domain_list_match_config.py b/graphiant_sdk/models/mana_v2_nullable_domain_list_match_config.py index 927ef480..7b3be58b 100644 --- a/graphiant_sdk/models/mana_v2_nullable_domain_list_match_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_domain_list_match_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_domain_list_match_config import ManaV2DomainListMatchConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableDomainListMatchConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableDomainListMatchConfig(BaseModel): __properties: ClassVar[List[str]] = ["match"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_dpi_application_config.py b/graphiant_sdk/models/mana_v2_nullable_dpi_application_config.py index 84815ff8..5e6084b1 100644 --- a/graphiant_sdk/models/mana_v2_nullable_dpi_application_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_dpi_application_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_dpi_application_config import ManaV2DpiApplicationConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableDpiApplicationConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableDpiApplicationConfig(BaseModel): __properties: ClassVar[List[str]] = ["application"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_dscp_match_config.py b/graphiant_sdk/models/mana_v2_nullable_dscp_match_config.py index 4a01d8d1..ad920de0 100644 --- a/graphiant_sdk/models/mana_v2_nullable_dscp_match_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_dscp_match_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_dscp import ManaV2Dscp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableDscpMatchConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableDscpMatchConfig(BaseModel): __properties: ClassVar[List[str]] = ["match"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ebgp_config.py b/graphiant_sdk/models/mana_v2_nullable_ebgp_config.py index 8a12e374..702d43b1 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ebgp_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_ebgp_config.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableEbgpConfig(BaseModel): """ ManaV2NullableEbgpConfig """ # noqa: E501 - multi_hop: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="multiHop", json_schema_extra={"examples": [123]}) + multi_hop: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="multiHop") __properties: ClassVar[List[str]] = ["multiHop"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_enterprise_prefix_set_config.py b/graphiant_sdk/models/mana_v2_nullable_enterprise_prefix_set_config.py index 043e7029..fe559ade 100644 --- a/graphiant_sdk/models/mana_v2_nullable_enterprise_prefix_set_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_enterprise_prefix_set_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_enterprise_prefix_set_config import ManaV2EnterprisePrefixSetConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableEnterprisePrefixSetConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableEnterprisePrefixSetConfig(BaseModel): __properties: ClassVar[List[str]] = ["target"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_gateway_config.py b/graphiant_sdk/models/mana_v2_nullable_gateway_config.py index 940b9787..4cf1af1b 100644 --- a/graphiant_sdk/models/mana_v2_nullable_gateway_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_gateway_config.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableGatewayConfig(BaseModel): """ ManaV2NullableGatewayConfig """ # noqa: E501 - address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + address: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["address"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_hold_timer.py b/graphiant_sdk/models/mana_v2_nullable_hold_timer.py index f194e8b5..a0754380 100644 --- a/graphiant_sdk/models/mana_v2_nullable_hold_timer.py +++ b/graphiant_sdk/models/mana_v2_nullable_hold_timer.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableHoldTimer(BaseModel): """ ManaV2NullableHoldTimer """ # noqa: E501 - timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["timer"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_i_psec_tunnel_config.py b/graphiant_sdk/models/mana_v2_nullable_i_psec_tunnel_config.py index 275be215..fb418eb0 100644 --- a/graphiant_sdk/models/mana_v2_nullable_i_psec_tunnel_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_i_psec_tunnel_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_i_psec_tunnel import ManaV2IPsecTunnel from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableIPsecTunnelConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableIPsecTunnelConfig(BaseModel): __properties: ClassVar[List[str]] = ["siteToSiteVpn"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_i_psec_vpn_profiles_config.py b/graphiant_sdk/models/mana_v2_nullable_i_psec_vpn_profiles_config.py index 47a585b9..f1530d07 100644 --- a/graphiant_sdk/models/mana_v2_nullable_i_psec_vpn_profiles_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_i_psec_vpn_profiles_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_i_psec_profile import ManaV2IPsecProfile from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableIPsecVpnProfilesConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableIPsecVpnProfilesConfig(BaseModel): __properties: ClassVar[List[str]] = ["vpnProfile"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_interface_config.py b/graphiant_sdk/models/mana_v2_nullable_interface_config.py index e29ba3f7..d986bb79 100644 --- a/graphiant_sdk/models/mana_v2_nullable_interface_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_interface_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_interface_config import ManaV2InterfaceConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableInterfaceConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableInterfaceConfig(BaseModel): __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_interface_core_config.py b/graphiant_sdk/models/mana_v2_nullable_interface_core_config.py index f768cec4..778bd28c 100644 --- a/graphiant_sdk/models/mana_v2_nullable_interface_core_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_interface_core_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_interface_core_config import ManaV2InterfaceCoreConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableInterfaceCoreConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableInterfaceCoreConfig(BaseModel): __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_interface_ip_config.py b/graphiant_sdk/models/mana_v2_nullable_interface_ip_config.py index 518f813c..12291040 100644 --- a/graphiant_sdk/models/mana_v2_nullable_interface_ip_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_interface_ip_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_interface_ip_config import ManaV2InterfaceIpConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableInterfaceIpConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableInterfaceIpConfig(BaseModel): __properties: ClassVar[List[str]] = ["gw"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_interface_lagvlan_config.py b/graphiant_sdk/models/mana_v2_nullable_interface_lagvlan_config.py index d875c0d9..fc805c40 100644 --- a/graphiant_sdk/models/mana_v2_nullable_interface_lagvlan_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_interface_lagvlan_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_interface_lagvlan_config import ManaV2InterfaceLagvlanConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableInterfaceLagvlanConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableInterfaceLagvlanConfig(BaseModel): __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_interface_name.py b/graphiant_sdk/models/mana_v2_nullable_interface_name.py index 5789bb6f..a27e7eb9 100644 --- a/graphiant_sdk/models/mana_v2_nullable_interface_name.py +++ b/graphiant_sdk/models/mana_v2_nullable_interface_name.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableInterfaceName(BaseModel): """ ManaV2NullableInterfaceName """ # noqa: E501 - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + interface: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_interface_priority_decrement.py b/graphiant_sdk/models/mana_v2_nullable_interface_priority_decrement.py index f6b99a08..9cb5ff45 100644 --- a/graphiant_sdk/models/mana_v2_nullable_interface_priority_decrement.py +++ b/graphiant_sdk/models/mana_v2_nullable_interface_priority_decrement.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableInterfacePriorityDecrement(BaseModel): """ ManaV2NullableInterfacePriorityDecrement """ # noqa: E501 - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - priority_decrement: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="priorityDecrement", json_schema_extra={"examples": [123]}) + interface: Optional[StrictStr] = None + priority_decrement: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="priorityDecrement") __properties: ClassVar[List[str]] = ["interface", "priorityDecrement"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_interface_vlan_config.py b/graphiant_sdk/models/mana_v2_nullable_interface_vlan_config.py index a13e2668..c3c8a0f1 100644 --- a/graphiant_sdk/models/mana_v2_nullable_interface_vlan_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_interface_vlan_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_interface_vlan_config import ManaV2InterfaceVlanConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableInterfaceVlanConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableInterfaceVlanConfig(BaseModel): __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ip_list.py b/graphiant_sdk/models/mana_v2_nullable_ip_list.py index 97313769..728d2837 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ip_list.py +++ b/graphiant_sdk/models/mana_v2_nullable_ip_list.py @@ -21,7 +21,6 @@ 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 ManaV2NullableIpList(BaseModel): """ @@ -31,8 +30,7 @@ class ManaV2NullableIpList(BaseModel): __properties: ClassVar[List[str]] = ["addresses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ip_network_list_config.py b/graphiant_sdk/models/mana_v2_nullable_ip_network_list_config.py index 3919f2c4..1f2af731 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ip_network_list_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_ip_network_list_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ip_network_list_config import ManaV2IpNetworkListConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableIpNetworkListConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableIpNetworkListConfig(BaseModel): __properties: ClassVar[List[str]] = ["list"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ip_protocol.py b/graphiant_sdk/models/mana_v2_nullable_ip_protocol.py index 976b46c2..f712ae5b 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ip_protocol.py +++ b/graphiant_sdk/models/mana_v2_nullable_ip_protocol.py @@ -21,18 +21,16 @@ 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 ManaV2NullableIpProtocol(BaseModel): """ ManaV2NullableIpProtocol """ # noqa: E501 - ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) + ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol") __properties: ClassVar[List[str]] = ["ipProtocol"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ipfix_exporter_config.py b/graphiant_sdk/models/mana_v2_nullable_ipfix_exporter_config.py index f7736f03..e7536fea 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ipfix_exporter_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_ipfix_exporter_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ipfix_exporter_config import ManaV2IpfixExporterConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableIpfixExporterConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableIpfixExporterConfig(BaseModel): __properties: ClassVar[List[str]] = ["exporter"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ipv4_address.py b/graphiant_sdk/models/mana_v2_nullable_ipv4_address.py index e5fcdaba..a536a047 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ipv4_address.py +++ b/graphiant_sdk/models/mana_v2_nullable_ipv4_address.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableIPv4Address(BaseModel): """ ManaV2NullableIPv4Address """ # noqa: E501 - address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + address: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["address"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ipv6_address.py b/graphiant_sdk/models/mana_v2_nullable_ipv6_address.py index 4965eade..54e18103 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ipv6_address.py +++ b/graphiant_sdk/models/mana_v2_nullable_ipv6_address.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableIPv6Address(BaseModel): """ ManaV2NullableIPv6Address """ # noqa: E501 - address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + address: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["address"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_keep_alive_timer.py b/graphiant_sdk/models/mana_v2_nullable_keep_alive_timer.py index 0477f98d..ad93a1cd 100644 --- a/graphiant_sdk/models/mana_v2_nullable_keep_alive_timer.py +++ b/graphiant_sdk/models/mana_v2_nullable_keep_alive_timer.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableKeepAliveTimer(BaseModel): """ ManaV2NullableKeepAliveTimer """ # noqa: E501 - timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["timer"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_l4_port_list_config.py b/graphiant_sdk/models/mana_v2_nullable_l4_port_list_config.py index 43e209cc..875b30c2 100644 --- a/graphiant_sdk/models/mana_v2_nullable_l4_port_list_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_l4_port_list_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_l4_port_list_config import ManaV2L4PortListConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableL4PortListConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableL4PortListConfig(BaseModel): __properties: ClassVar[List[str]] = ["list"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_lag_interface_config.py b/graphiant_sdk/models/mana_v2_nullable_lag_interface_config.py index ec58df8c..44b9adf2 100644 --- a/graphiant_sdk/models/mana_v2_nullable_lag_interface_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_lag_interface_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_lag_interface_config import ManaV2LagInterfaceConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableLagInterfaceConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableLagInterfaceConfig(BaseModel): __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_lag_member_interface.py b/graphiant_sdk/models/mana_v2_nullable_lag_member_interface.py index cd7a25bf..d2319f98 100644 --- a/graphiant_sdk/models/mana_v2_nullable_lag_member_interface.py +++ b/graphiant_sdk/models/mana_v2_nullable_lag_member_interface.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableLagMemberInterface(BaseModel): """ ManaV2NullableLagMemberInterface """ # noqa: E501 - interface: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + interface: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_local_preferance.py b/graphiant_sdk/models/mana_v2_nullable_local_preferance.py index e398341d..a886cd65 100644 --- a/graphiant_sdk/models/mana_v2_nullable_local_preferance.py +++ b/graphiant_sdk/models/mana_v2_nullable_local_preferance.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableLocalPreferance(BaseModel): """ ManaV2NullableLocalPreferance """ # noqa: E501 - local_pref: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localPref", json_schema_extra={"examples": [123]}) + local_pref: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localPref") __properties: ClassVar[List[str]] = ["localPref"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ma_csec_configuration.py b/graphiant_sdk/models/mana_v2_nullable_ma_csec_configuration.py index b0b48231..b960967d 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ma_csec_configuration.py +++ b/graphiant_sdk/models/mana_v2_nullable_ma_csec_configuration.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ma_csec_configuration import ManaV2MaCsecConfiguration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableMaCsecConfiguration(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableMaCsecConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["macsec"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ma_csec_rekey_interval.py b/graphiant_sdk/models/mana_v2_nullable_ma_csec_rekey_interval.py index 658be2bc..20a1eeda 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ma_csec_rekey_interval.py +++ b/graphiant_sdk/models/mana_v2_nullable_ma_csec_rekey_interval.py @@ -21,18 +21,16 @@ 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 ManaV2NullableMaCsecRekeyInterval(BaseModel): """ ManaV2NullableMaCsecRekeyInterval """ # noqa: E501 - rekey_interval: Optional[StrictInt] = Field(default=None, alias="rekeyInterval", json_schema_extra={"examples": [1234567891011]}) + rekey_interval: Optional[StrictInt] = Field(default=None, alias="rekeyInterval") __properties: ClassVar[List[str]] = ["rekeyInterval"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ma_csec_replay_protection_window_size.py b/graphiant_sdk/models/mana_v2_nullable_ma_csec_replay_protection_window_size.py index 71a71d18..3504a638 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ma_csec_replay_protection_window_size.py +++ b/graphiant_sdk/models/mana_v2_nullable_ma_csec_replay_protection_window_size.py @@ -21,18 +21,16 @@ 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 ManaV2NullableMaCsecReplayProtectionWindowSize(BaseModel): """ ManaV2NullableMaCsecReplayProtectionWindowSize """ # noqa: E501 - replay_protection_window_size: Optional[StrictInt] = Field(default=None, alias="replayProtectionWindowSize", json_schema_extra={"examples": [1234567891011]}) + replay_protection_window_size: Optional[StrictInt] = Field(default=None, alias="replayProtectionWindowSize") __properties: ClassVar[List[str]] = ["replayProtectionWindowSize"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_max_prefix.py b/graphiant_sdk/models/mana_v2_nullable_max_prefix.py index 7e3548c3..9f877d92 100644 --- a/graphiant_sdk/models/mana_v2_nullable_max_prefix.py +++ b/graphiant_sdk/models/mana_v2_nullable_max_prefix.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableMaxPrefix(BaseModel): """ ManaV2NullableMaxPrefix """ # noqa: E501 - max_prefix: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxPrefix", json_schema_extra={"examples": [123]}) + max_prefix: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxPrefix") __properties: ClassVar[List[str]] = ["maxPrefix"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_md5_password.py b/graphiant_sdk/models/mana_v2_nullable_md5_password.py index a1585ae9..503fc146 100644 --- a/graphiant_sdk/models/mana_v2_nullable_md5_password.py +++ b/graphiant_sdk/models/mana_v2_nullable_md5_password.py @@ -21,18 +21,16 @@ 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 ManaV2NullableMd5Password(BaseModel): """ ManaV2NullableMd5Password """ # noqa: E501 - md5_password: Optional[StrictStr] = Field(default=None, alias="md5Password", json_schema_extra={"examples": ["example string"]}) + md5_password: Optional[StrictStr] = Field(default=None, alias="md5Password") __properties: ClassVar[List[str]] = ["md5Password"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_meter_rates.py b/graphiant_sdk/models/mana_v2_nullable_meter_rates.py index a82ee0f3..cf3d882d 100644 --- a/graphiant_sdk/models/mana_v2_nullable_meter_rates.py +++ b/graphiant_sdk/models/mana_v2_nullable_meter_rates.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableMeterRates(BaseModel): """ ManaV2NullableMeterRates """ # noqa: E501 - rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["rate"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_metric.py b/graphiant_sdk/models/mana_v2_nullable_metric.py index 59f7f8da..2235c4ed 100644 --- a/graphiant_sdk/models/mana_v2_nullable_metric.py +++ b/graphiant_sdk/models/mana_v2_nullable_metric.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableMetric(BaseModel): """ ManaV2NullableMetric """ # noqa: E501 - absolute: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - modifier: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + absolute: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + modifier: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["absolute", "modifier"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_nat_policy_ruleset_config.py b/graphiant_sdk/models/mana_v2_nullable_nat_policy_ruleset_config.py index 6bcfdf9c..16348177 100644 --- a/graphiant_sdk/models/mana_v2_nullable_nat_policy_ruleset_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_nat_policy_ruleset_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_nat_policy_ruleset_config import ManaV2NatPolicyRulesetConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableNatPolicyRulesetConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableNatPolicyRulesetConfig(BaseModel): __properties: ClassVar[List[str]] = ["ruleset"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_nat_policy_ruleset_name.py b/graphiant_sdk/models/mana_v2_nullable_nat_policy_ruleset_name.py index 770629a6..f0e12701 100644 --- a/graphiant_sdk/models/mana_v2_nullable_nat_policy_ruleset_name.py +++ b/graphiant_sdk/models/mana_v2_nullable_nat_policy_ruleset_name.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableNatPolicyRulesetName(BaseModel): """ ManaV2NullableNatPolicyRulesetName """ # noqa: E501 - ruleset: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + ruleset: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["ruleset"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ntp_config.py b/graphiant_sdk/models/mana_v2_nullable_ntp_config.py index 18ba1042..13d1ccee 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ntp_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_ntp_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ntp_config import ManaV2NtpConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableNtpConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableNtpConfig(BaseModel): __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ospf_admin_distance_value.py b/graphiant_sdk/models/mana_v2_nullable_ospf_admin_distance_value.py index f664cd4c..4958a744 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ospf_admin_distance_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_ospf_admin_distance_value.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableOspfAdminDistanceValue(BaseModel): """ ManaV2NullableOspfAdminDistanceValue """ # noqa: E501 - admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="adminDistance", json_schema_extra={"examples": [123]}) + admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="adminDistance") __properties: ClassVar[List[str]] = ["adminDistance"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ospf_area_config.py b/graphiant_sdk/models/mana_v2_nullable_ospf_area_config.py index f65824ed..8075bfad 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ospf_area_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_ospf_area_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ospf_area_config import ManaV2OspfAreaConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableOspfAreaConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableOspfAreaConfig(BaseModel): __properties: ClassVar[List[str]] = ["area"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ospf_dead_interval_value.py b/graphiant_sdk/models/mana_v2_nullable_ospf_dead_interval_value.py index 8afcb610..6bc8746c 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ospf_dead_interval_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_ospf_dead_interval_value.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableOspfDeadIntervalValue(BaseModel): """ ManaV2NullableOspfDeadIntervalValue """ # noqa: E501 - dead_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deadInterval", json_schema_extra={"examples": [123]}) + dead_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deadInterval") __properties: ClassVar[List[str]] = ["deadInterval"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ospf_hello_interval_value.py b/graphiant_sdk/models/mana_v2_nullable_ospf_hello_interval_value.py index de091c1a..783340b1 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ospf_hello_interval_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_ospf_hello_interval_value.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableOspfHelloIntervalValue(BaseModel): """ ManaV2NullableOspfHelloIntervalValue """ # noqa: E501 - hello_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="helloInterval", json_schema_extra={"examples": [123]}) + hello_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="helloInterval") __properties: ClassVar[List[str]] = ["helloInterval"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ospf_interface_config.py b/graphiant_sdk/models/mana_v2_nullable_ospf_interface_config.py index f602f021..a2491ef7 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ospf_interface_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_ospf_interface_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ospf_interface_config import ManaV2OspfInterfaceConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableOspfInterfaceConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableOspfInterfaceConfig(BaseModel): __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ospf_process_config.py b/graphiant_sdk/models/mana_v2_nullable_ospf_process_config.py index 2aa757ac..0581d779 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ospf_process_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_ospf_process_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ospf_process_config import ManaV2OspfProcessConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableOspfProcessConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableOspfProcessConfig(BaseModel): __properties: ClassVar[List[str]] = ["process"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ospf_redistribute_protocol_config.py b/graphiant_sdk/models/mana_v2_nullable_ospf_redistribute_protocol_config.py index 054c422d..b22afd65 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ospf_redistribute_protocol_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_ospf_redistribute_protocol_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ospf_redistribute_protocol_config import ManaV2OspfRedistributeProtocolConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableOspfRedistributeProtocolConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableOspfRedistributeProtocolConfig(BaseModel): __properties: ClassVar[List[str]] = ["protocol"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_ospf_retransmit_interval_value.py b/graphiant_sdk/models/mana_v2_nullable_ospf_retransmit_interval_value.py index 451a9eac..3535bfb2 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ospf_retransmit_interval_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_ospf_retransmit_interval_value.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableOspfRetransmitIntervalValue(BaseModel): """ ManaV2NullableOspfRetransmitIntervalValue """ # noqa: E501 - retransmit_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="retransmitInterval", json_schema_extra={"examples": [123]}) + retransmit_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="retransmitInterval") __properties: ClassVar[List[str]] = ["retransmitInterval"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_policy_name.py b/graphiant_sdk/models/mana_v2_nullable_policy_name.py index 9f0945fd..66429de1 100644 --- a/graphiant_sdk/models/mana_v2_nullable_policy_name.py +++ b/graphiant_sdk/models/mana_v2_nullable_policy_name.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullablePolicyName(BaseModel): """ ManaV2NullablePolicyName """ # noqa: E501 - policy: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + policy: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_prefix_set.py b/graphiant_sdk/models/mana_v2_nullable_prefix_set.py index 0639238c..2435c0aa 100644 --- a/graphiant_sdk/models/mana_v2_nullable_prefix_set.py +++ b/graphiant_sdk/models/mana_v2_nullable_prefix_set.py @@ -21,18 +21,16 @@ 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 ManaV2NullablePrefixSet(BaseModel): """ ManaV2NullablePrefixSet """ # noqa: E501 - prefix_set: Optional[StrictStr] = Field(default=None, alias="prefixSet", json_schema_extra={"examples": ["example string"]}) + prefix_set: Optional[StrictStr] = Field(default=None, alias="prefixSet") __properties: ClassVar[List[str]] = ["prefixSet"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_prefix_set_config.py b/graphiant_sdk/models/mana_v2_nullable_prefix_set_config.py index 1487218a..793eff55 100644 --- a/graphiant_sdk/models/mana_v2_nullable_prefix_set_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_prefix_set_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_prefix_set_config import ManaV2PrefixSetConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullablePrefixSetConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullablePrefixSetConfig(BaseModel): __properties: ClassVar[List[str]] = ["prefixSet"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_prometheus_remote_write_sink_config.py b/graphiant_sdk/models/mana_v2_nullable_prometheus_remote_write_sink_config.py index b23502f9..e31853f8 100644 --- a/graphiant_sdk/models/mana_v2_nullable_prometheus_remote_write_sink_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_prometheus_remote_write_sink_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_prometheus_remote_write_sink_config import ManaV2PrometheusRemoteWriteSinkConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullablePrometheusRemoteWriteSinkConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullablePrometheusRemoteWriteSinkConfig(BaseModel): __properties: ClassVar[List[str]] = ["sink"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_prometheus_rule_config.py b/graphiant_sdk/models/mana_v2_nullable_prometheus_rule_config.py index eee18938..de8dabb2 100644 --- a/graphiant_sdk/models/mana_v2_nullable_prometheus_rule_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_prometheus_rule_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_prometheus_rule_config import ManaV2PrometheusRuleConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullablePrometheusRuleConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullablePrometheusRuleConfig(BaseModel): __properties: ClassVar[List[str]] = ["ruleGroup"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_prometheus_rule_group_config.py b/graphiant_sdk/models/mana_v2_nullable_prometheus_rule_group_config.py index 6b3a891a..badb5b7d 100644 --- a/graphiant_sdk/models/mana_v2_nullable_prometheus_rule_group_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_prometheus_rule_group_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_prometheus_rule_group_config import ManaV2PrometheusRuleGroupConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullablePrometheusRuleGroupConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullablePrometheusRuleGroupConfig(BaseModel): __properties: ClassVar[List[str]] = ["ruleGroup"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_prometheus_sys_db_monitor_config.py b/graphiant_sdk/models/mana_v2_nullable_prometheus_sys_db_monitor_config.py index 48ea5e7a..42e7e006 100644 --- a/graphiant_sdk/models/mana_v2_nullable_prometheus_sys_db_monitor_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_prometheus_sys_db_monitor_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_prometheus_sys_db_monitor_config import ManaV2PrometheusSysDbMonitorConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullablePrometheusSysDbMonitorConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullablePrometheusSysDbMonitorConfig(BaseModel): __properties: ClassVar[List[str]] = ["sysdbMonitor"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_protocol_route_type.py b/graphiant_sdk/models/mana_v2_nullable_protocol_route_type.py index 249aa4f9..488010c6 100644 --- a/graphiant_sdk/models/mana_v2_nullable_protocol_route_type.py +++ b/graphiant_sdk/models/mana_v2_nullable_protocol_route_type.py @@ -21,18 +21,16 @@ 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 ManaV2NullableProtocolRouteType(BaseModel): """ ManaV2NullableProtocolRouteType """ # noqa: E501 - route_type: Optional[StrictStr] = Field(default=None, alias="routeType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + route_type: Optional[StrictStr] = Field(default=None, alias="routeType") __properties: ClassVar[List[str]] = ["routeType"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_psk_configuration.py b/graphiant_sdk/models/mana_v2_nullable_psk_configuration.py index 46276bd6..c95e5b40 100644 --- a/graphiant_sdk/models/mana_v2_nullable_psk_configuration.py +++ b/graphiant_sdk/models/mana_v2_nullable_psk_configuration.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_psk_configuration import ManaV2PskConfiguration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullablePskConfiguration(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullablePskConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["psk"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_route_tag_set.py b/graphiant_sdk/models/mana_v2_nullable_route_tag_set.py index 9cc51fac..534559e9 100644 --- a/graphiant_sdk/models/mana_v2_nullable_route_tag_set.py +++ b/graphiant_sdk/models/mana_v2_nullable_route_tag_set.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_route_tag import ManaV2RouteTag from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableRouteTagSet(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableRouteTagSet(BaseModel): __properties: ClassVar[List[str]] = ["entry"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_routing_policy_config.py b/graphiant_sdk/models/mana_v2_nullable_routing_policy_config.py index 00ed00de..9dd6f2b5 100644 --- a/graphiant_sdk/models/mana_v2_nullable_routing_policy_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_routing_policy_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_routing_policy_config import ManaV2RoutingPolicyConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableRoutingPolicyConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableRoutingPolicyConfig(BaseModel): __properties: ClassVar[List[str]] = ["policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_routing_protocol.py b/graphiant_sdk/models/mana_v2_nullable_routing_protocol.py index 1d8b026a..eed7a137 100644 --- a/graphiant_sdk/models/mana_v2_nullable_routing_protocol.py +++ b/graphiant_sdk/models/mana_v2_nullable_routing_protocol.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableRoutingProtocol(BaseModel): """ ManaV2NullableRoutingProtocol """ # noqa: E501 - protocol: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + protocol: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["protocol"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_sak_configuration.py b/graphiant_sdk/models/mana_v2_nullable_sak_configuration.py index 4e1c511a..d5053e3f 100644 --- a/graphiant_sdk/models/mana_v2_nullable_sak_configuration.py +++ b/graphiant_sdk/models/mana_v2_nullable_sak_configuration.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_sak_configuration import ManaV2SakConfiguration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSakConfiguration(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSakConfiguration(BaseModel): __properties: ClassVar[List[str]] = ["sak"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_security_policy_ruleset_config.py b/graphiant_sdk/models/mana_v2_nullable_security_policy_ruleset_config.py index 2f57a3f7..7b9ed2e4 100644 --- a/graphiant_sdk/models/mana_v2_nullable_security_policy_ruleset_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_security_policy_ruleset_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_security_policy_ruleset_config import ManaV2SecurityPolicyRulesetConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSecurityPolicyRulesetConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSecurityPolicyRulesetConfig(BaseModel): __properties: ClassVar[List[str]] = ["ruleset"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_security_zone_config.py b/graphiant_sdk/models/mana_v2_nullable_security_zone_config.py index 7a2fc895..9653c6cc 100644 --- a/graphiant_sdk/models/mana_v2_nullable_security_zone_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_security_zone_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_security_zone_config import ManaV2SecurityZoneConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSecurityZoneConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSecurityZoneConfig(BaseModel): __properties: ClassVar[List[str]] = ["zone"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_security_zone_pair_config.py b/graphiant_sdk/models/mana_v2_nullable_security_zone_pair_config.py index 5e0806c8..3098576e 100644 --- a/graphiant_sdk/models/mana_v2_nullable_security_zone_pair_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_security_zone_pair_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_security_zone_pair_config import ManaV2SecurityZonePairConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSecurityZonePairConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSecurityZonePairConfig(BaseModel): __properties: ClassVar[List[str]] = ["pair"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_session_limit.py b/graphiant_sdk/models/mana_v2_nullable_session_limit.py index bc73bb82..999331b5 100644 --- a/graphiant_sdk/models/mana_v2_nullable_session_limit.py +++ b/graphiant_sdk/models/mana_v2_nullable_session_limit.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSessionLimit(BaseModel): """ ManaV2NullableSessionLimit """ # noqa: E501 - limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["limit"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_set_circuit_config.py b/graphiant_sdk/models/mana_v2_nullable_set_circuit_config.py index 1d78b8fa..d6a2cd3c 100644 --- a/graphiant_sdk/models/mana_v2_nullable_set_circuit_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_set_circuit_config.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableSetCircuitConfig(BaseModel): """ ManaV2NullableSetCircuitConfig """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_set_circuit_label_config.py b/graphiant_sdk/models/mana_v2_nullable_set_circuit_label_config.py index 0947199e..59993013 100644 --- a/graphiant_sdk/models/mana_v2_nullable_set_circuit_label_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_set_circuit_label_config.py @@ -21,19 +21,17 @@ 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 ManaV2NullableSetCircuitLabelConfig(BaseModel): """ ManaV2NullableSetCircuitLabelConfig """ # noqa: E501 - ipsec_label: Optional[StrictStr] = Field(default=None, alias="ipsecLabel", json_schema_extra={"examples": ["ENUM_VALUE"]}) - label: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + ipsec_label: Optional[StrictStr] = Field(default=None, alias="ipsecLabel") + label: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["ipsecLabel", "label"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_set_dscp_config.py b/graphiant_sdk/models/mana_v2_nullable_set_dscp_config.py index d7be7f54..6ca12bc5 100644 --- a/graphiant_sdk/models/mana_v2_nullable_set_dscp_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_set_dscp_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_dscp import ManaV2Dscp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSetDscpConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSetDscpConfig(BaseModel): __properties: ClassVar[List[str]] = ["val"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_set_sla_class_config.py b/graphiant_sdk/models/mana_v2_nullable_set_sla_class_config.py index e7041d20..ecd1f3d4 100644 --- a/graphiant_sdk/models/mana_v2_nullable_set_sla_class_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_set_sla_class_config.py @@ -21,18 +21,16 @@ 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 ManaV2NullableSetSlaClassConfig(BaseModel): """ ManaV2NullableSetSlaClassConfig """ # noqa: E501 - var_class: Optional[StrictStr] = Field(default=None, alias="class", json_schema_extra={"examples": ["ENUM_VALUE"]}) + var_class: Optional[StrictStr] = Field(default=None, alias="class") __properties: ClassVar[List[str]] = ["class"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_site_interface_name.py b/graphiant_sdk/models/mana_v2_nullable_site_interface_name.py index 96c3fe2a..373836e1 100644 --- a/graphiant_sdk/models/mana_v2_nullable_site_interface_name.py +++ b/graphiant_sdk/models/mana_v2_nullable_site_interface_name.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableSiteInterfaceName(BaseModel): """ ManaV2NullableSiteInterfaceName """ # noqa: E501 - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + interface: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_sla_conformance.py b/graphiant_sdk/models/mana_v2_nullable_sla_conformance.py index 57423872..ff0fcf2a 100644 --- a/graphiant_sdk/models/mana_v2_nullable_sla_conformance.py +++ b/graphiant_sdk/models/mana_v2_nullable_sla_conformance.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_sla_conformance import ManaV2SlaConformance from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSlaConformance(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSlaConformance(BaseModel): __properties: ClassVar[List[str]] = ["slaConformance"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_snmp_community_config_value.py b/graphiant_sdk/models/mana_v2_nullable_snmp_community_config_value.py index 956be3db..9ea245d8 100644 --- a/graphiant_sdk/models/mana_v2_nullable_snmp_community_config_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_snmp_community_config_value.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableSnmpCommunityConfigValue(BaseModel): """ ManaV2NullableSnmpCommunityConfigValue """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_snmp_config.py b/graphiant_sdk/models/mana_v2_nullable_snmp_config.py index a2fedfb4..70997722 100644 --- a/graphiant_sdk/models/mana_v2_nullable_snmp_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_snmp_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp_config import ManaV2SnmpConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSnmpConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSnmpConfig(BaseModel): __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_snmp_engine_endpoint_config_value.py b/graphiant_sdk/models/mana_v2_nullable_snmp_engine_endpoint_config_value.py index 5ff3eb91..2e70c1df 100644 --- a/graphiant_sdk/models/mana_v2_nullable_snmp_engine_endpoint_config_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_snmp_engine_endpoint_config_value.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp_engine_endpoint_config import ManaV2SnmpEngineEndpointConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSnmpEngineEndpointConfigValue(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSnmpEngineEndpointConfigValue(BaseModel): __properties: ClassVar[List[str]] = ["engineEndpoint"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_snmp_engine_endpoints_address.py b/graphiant_sdk/models/mana_v2_nullable_snmp_engine_endpoints_address.py index 3e21b834..4b65799d 100644 --- a/graphiant_sdk/models/mana_v2_nullable_snmp_engine_endpoints_address.py +++ b/graphiant_sdk/models/mana_v2_nullable_snmp_engine_endpoints_address.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableSnmpEngineEndpointsAddress(BaseModel): """ ManaV2NullableSnmpEngineEndpointsAddress """ # noqa: E501 - address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + address: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["address"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_snmp_notify_filter_profile_config_value.py b/graphiant_sdk/models/mana_v2_nullable_snmp_notify_filter_profile_config_value.py index f4ad4a1a..9ca5b9f5 100644 --- a/graphiant_sdk/models/mana_v2_nullable_snmp_notify_filter_profile_config_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_snmp_notify_filter_profile_config_value.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp_notify_filter_profile_config import ManaV2SnmpNotifyFilterProfileConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSnmpNotifyFilterProfileConfigValue(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSnmpNotifyFilterProfileConfigValue(BaseModel): __properties: ClassVar[List[str]] = ["notifyFilterProfile"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_snmp_target_config_value.py b/graphiant_sdk/models/mana_v2_nullable_snmp_target_config_value.py index 6f26c39a..002d96bd 100644 --- a/graphiant_sdk/models/mana_v2_nullable_snmp_target_config_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_snmp_target_config_value.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp_target_config import ManaV2SnmpTargetConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSnmpTargetConfigValue(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSnmpTargetConfigValue(BaseModel): __properties: ClassVar[List[str]] = ["target"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_group_access_value.py b/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_group_access_value.py index e072cf70..1cf55ad6 100644 --- a/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_group_access_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_group_access_value.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp_vacm_group_access_config import ManaV2SnmpVacmGroupAccessConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSnmpVacmGroupAccessValue(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSnmpVacmGroupAccessValue(BaseModel): __properties: ClassVar[List[str]] = ["access"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_group_member_value.py b/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_group_member_value.py index 1cdd879c..3a6ce5bf 100644 --- a/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_group_member_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_group_member_value.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp_vacm_group_member_config import ManaV2SnmpVacmGroupMemberConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSnmpVacmGroupMemberValue(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSnmpVacmGroupMemberValue(BaseModel): __properties: ClassVar[List[str]] = ["member"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_view_value.py b/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_view_value.py index 173ad7c4..aeaee035 100644 --- a/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_view_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_snmp_vacm_view_value.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp_vacm_view_config import ManaV2SnmpVacmViewConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSnmpVacmViewValue(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSnmpVacmViewValue(BaseModel): __properties: ClassVar[List[str]] = ["view"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_source_network_match_config.py b/graphiant_sdk/models/mana_v2_nullable_source_network_match_config.py index fc804e10..cfcde6e0 100644 --- a/graphiant_sdk/models/mana_v2_nullable_source_network_match_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_source_network_match_config.py @@ -21,18 +21,16 @@ 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 ManaV2NullableSourceNetworkMatchConfig(BaseModel): """ ManaV2NullableSourceNetworkMatchConfig """ # noqa: E501 - source_network: Optional[StrictStr] = Field(default=None, alias="sourceNetwork", json_schema_extra={"examples": ["example string"]}) + source_network: Optional[StrictStr] = Field(default=None, alias="sourceNetwork") __properties: ClassVar[List[str]] = ["sourceNetwork"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_stale_purge.py b/graphiant_sdk/models/mana_v2_nullable_stale_purge.py index 735fcb4f..3c6e59f3 100644 --- a/graphiant_sdk/models/mana_v2_nullable_stale_purge.py +++ b/graphiant_sdk/models/mana_v2_nullable_stale_purge.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, StrictBool 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 ManaV2NullableStalePurge(BaseModel): """ ManaV2NullableStalePurge """ # noqa: E501 - stale: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + stale: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["stale"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_static_route_config.py b/graphiant_sdk/models/mana_v2_nullable_static_route_config.py index 2c1f96ce..952c8036 100644 --- a/graphiant_sdk/models/mana_v2_nullable_static_route_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_static_route_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_static_route_config import ManaV2StaticRouteConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableStaticRouteConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableStaticRouteConfig(BaseModel): __properties: ClassVar[List[str]] = ["route"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_syslog_collector_config.py b/graphiant_sdk/models/mana_v2_nullable_syslog_collector_config.py index 72975b44..14f67706 100644 --- a/graphiant_sdk/models/mana_v2_nullable_syslog_collector_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_syslog_collector_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_syslog_collector_config import ManaV2SyslogCollectorConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableSyslogCollectorConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableSyslogCollectorConfig(BaseModel): __properties: ClassVar[List[str]] = ["target"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v4.py b/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v4.py index d98437e3..aa02191c 100644 --- a/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v4.py +++ b/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v4.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableTcpMssV4(BaseModel): """ ManaV2NullableTcpMssV4 """ # noqa: E501 - tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4", json_schema_extra={"examples": [123]}) + tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4") __properties: ClassVar[List[str]] = ["tcpMssV4"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v6.py b/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v6.py index 0016436f..ac4c7731 100644 --- a/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v6.py +++ b/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v6.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableTcpMssV6(BaseModel): """ ManaV2NullableTcpMssV6 """ # noqa: E501 - tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6", json_schema_extra={"examples": [123]}) + tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6") __properties: ClassVar[List[str]] = ["tcpMssV6"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_traffic_policy_ruleset_config.py b/graphiant_sdk/models/mana_v2_nullable_traffic_policy_ruleset_config.py index adbc4936..5186e6f0 100644 --- a/graphiant_sdk/models/mana_v2_nullable_traffic_policy_ruleset_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_traffic_policy_ruleset_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_traffic_policy_ruleset_config import ManaV2TrafficPolicyRulesetConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableTrafficPolicyRulesetConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableTrafficPolicyRulesetConfig(BaseModel): __properties: ClassVar[List[str]] = ["ruleset"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_traffic_policy_ruleset_name.py b/graphiant_sdk/models/mana_v2_nullable_traffic_policy_ruleset_name.py index b3c04e59..d71acd8d 100644 --- a/graphiant_sdk/models/mana_v2_nullable_traffic_policy_ruleset_name.py +++ b/graphiant_sdk/models/mana_v2_nullable_traffic_policy_ruleset_name.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2NullableTrafficPolicyRulesetName(BaseModel): """ ManaV2NullableTrafficPolicyRulesetName """ # noqa: E501 - ruleset: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + ruleset: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["ruleset"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_usm_local_user_config_value.py b/graphiant_sdk/models/mana_v2_nullable_usm_local_user_config_value.py index 6c4b49e4..4797c70d 100644 --- a/graphiant_sdk/models/mana_v2_nullable_usm_local_user_config_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_usm_local_user_config_value.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp_usm_local_user_config import ManaV2SnmpUsmLocalUserConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableUsmLocalUserConfigValue(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableUsmLocalUserConfigValue(BaseModel): __properties: ClassVar[List[str]] = ["localUser"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_usm_remote_user_config_value.py b/graphiant_sdk/models/mana_v2_nullable_usm_remote_user_config_value.py index 7cb26395..b3d01470 100644 --- a/graphiant_sdk/models/mana_v2_nullable_usm_remote_user_config_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_usm_remote_user_config_value.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp_usm_remote_user_config import ManaV2SnmpUsmRemoteUserConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableUsmRemoteUserConfigValue(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableUsmRemoteUserConfigValue(BaseModel): __properties: ClassVar[List[str]] = ["remoteUser"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_vacm_group_value.py b/graphiant_sdk/models/mana_v2_nullable_vacm_group_value.py index 1f8da3a1..83d1b70c 100644 --- a/graphiant_sdk/models/mana_v2_nullable_vacm_group_value.py +++ b/graphiant_sdk/models/mana_v2_nullable_vacm_group_value.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_vacm_group_config import ManaV2VacmGroupConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableVacmGroupValue(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableVacmGroupValue(BaseModel): __properties: ClassVar[List[str]] = ["group"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_vrrp_group_config.py b/graphiant_sdk/models/mana_v2_nullable_vrrp_group_config.py index cf230926..09b3118a 100644 --- a/graphiant_sdk/models/mana_v2_nullable_vrrp_group_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_vrrp_group_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_vrrp_group_config import ManaV2VrrpGroupConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableVrrpGroupConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableVrrpGroupConfig(BaseModel): __properties: ClassVar[List[str]] = ["group"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_weight.py b/graphiant_sdk/models/mana_v2_nullable_weight.py index 4e122a0f..7413f8e8 100644 --- a/graphiant_sdk/models/mana_v2_nullable_weight.py +++ b/graphiant_sdk/models/mana_v2_nullable_weight.py @@ -22,18 +22,16 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableWeight(BaseModel): """ ManaV2NullableWeight """ # noqa: E501 - weight: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + weight: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["weight"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_nullable_zone_firewall_config.py b/graphiant_sdk/models/mana_v2_nullable_zone_firewall_config.py index 04a651d1..a18444a1 100644 --- a/graphiant_sdk/models/mana_v2_nullable_zone_firewall_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_zone_firewall_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_zone_firewall_config import ManaV2ZoneFirewallConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2NullableZoneFirewallConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2NullableZoneFirewallConfig(BaseModel): __properties: ClassVar[List[str]] = ["zoneFirewall"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_oci_gateway_details.py b/graphiant_sdk/models/mana_v2_oci_gateway_details.py index 179d3f76..ae120018 100644 --- a/graphiant_sdk/models/mana_v2_oci_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_oci_gateway_details.py @@ -21,20 +21,18 @@ 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 ManaV2OciGatewayDetails(BaseModel): """ ManaV2OciGatewayDetails """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - fast_connect_ocid: Optional[StrictStr] = Field(default=None, alias="fastConnectOcid", json_schema_extra={"examples": ["example string"]}) - routing_policy: Optional[StrictStr] = Field(default=None, alias="routingPolicy", json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + fast_connect_ocid: Optional[StrictStr] = Field(default=None, alias="fastConnectOcid") + routing_policy: Optional[StrictStr] = Field(default=None, alias="routingPolicy") __properties: ClassVar[List[str]] = ["description", "fastConnectOcid", "routingPolicy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_osp_fv2_process.py b/graphiant_sdk/models/mana_v2_osp_fv2_process.py index 049fbfd2..09993d26 100644 --- a/graphiant_sdk/models/mana_v2_osp_fv2_process.py +++ b/graphiant_sdk/models/mana_v2_osp_fv2_process.py @@ -24,24 +24,22 @@ from graphiant_sdk.models.mana_v2_ospf_redistribute import ManaV2OspfRedistribute from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2OspFv2Process(BaseModel): """ ManaV2OspFv2Process """ # noqa: E501 - admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Administrative Distance for routes installed", alias="adminDistance", json_schema_extra={"examples": [100]}) + admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Administrative Distance for routes installed", alias="adminDistance") areas: Optional[List[ManaV2OspfArea]] = None - auto_router_id: Optional[StrictBool] = Field(default=None, alias="autoRouterId", json_schema_extra={"examples": [True]}) - default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate", json_schema_extra={"examples": ["ENUM_VALUE"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + auto_router_id: Optional[StrictBool] = Field(default=None, alias="autoRouterId") + default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate") + id: Optional[StrictInt] = None redistributed_protocols: Optional[List[ManaV2OspfRedistribute]] = Field(default=None, alias="redistributedProtocols") - router_id: Optional[StrictStr] = Field(default=None, alias="routerId", json_schema_extra={"examples": ["example string"]}) + router_id: Optional[StrictStr] = Field(default=None, alias="routerId") __properties: ClassVar[List[str]] = ["adminDistance", "areas", "autoRouterId", "defaultOriginate", "id", "redistributedProtocols", "routerId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_osp_fv3_process.py b/graphiant_sdk/models/mana_v2_osp_fv3_process.py index e4a28805..a64428ba 100644 --- a/graphiant_sdk/models/mana_v2_osp_fv3_process.py +++ b/graphiant_sdk/models/mana_v2_osp_fv3_process.py @@ -24,24 +24,22 @@ from graphiant_sdk.models.mana_v2_ospf_redistribute import ManaV2OspfRedistribute from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2OspFv3Process(BaseModel): """ ManaV2OspFv3Process """ # noqa: E501 - admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Administrative Distance for routes installed", alias="adminDistance", json_schema_extra={"examples": [100]}) + admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Administrative Distance for routes installed", alias="adminDistance") areas: Optional[List[ManaV2OspfArea]] = None - default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate", json_schema_extra={"examples": ["ENUM_VALUE"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate") + id: Optional[StrictInt] = None redistributed_protocols: Optional[List[ManaV2OspfRedistribute]] = Field(default=None, alias="redistributedProtocols") - router_id: Optional[StrictStr] = Field(default=None, alias="routerId", json_schema_extra={"examples": ["example string"]}) - version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + router_id: Optional[StrictStr] = Field(default=None, alias="routerId") + version: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["adminDistance", "areas", "defaultOriginate", "id", "redistributedProtocols", "routerId", "version"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ospf_area.py b/graphiant_sdk/models/mana_v2_ospf_area.py index 45f73cf8..2cf0533f 100644 --- a/graphiant_sdk/models/mana_v2_ospf_area.py +++ b/graphiant_sdk/models/mana_v2_ospf_area.py @@ -24,24 +24,22 @@ from graphiant_sdk.models.mana_v2_ospf_interface import ManaV2OspfInterface from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2OspfArea(BaseModel): """ ManaV2OspfArea """ # noqa: E501 - area_id: Optional[StrictStr] = Field(default=None, alias="areaId", json_schema_extra={"examples": ["example string"]}) + area_id: Optional[StrictStr] = Field(default=None, alias="areaId") bfd: Optional[ManaV2BfdInstance] = None bfd_neighbors: Optional[List[ManaV2BfdNeighbor]] = Field(default=None, alias="bfdNeighbors") - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None interfaces: Optional[List[ManaV2OspfInterface]] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + name: Optional[StrictStr] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["areaId", "bfd", "bfdNeighbors", "id", "interfaces", "name", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ospf_area_config.py b/graphiant_sdk/models/mana_v2_ospf_area_config.py index 451e6c24..2becb03a 100644 --- a/graphiant_sdk/models/mana_v2_ospf_area_config.py +++ b/graphiant_sdk/models/mana_v2_ospf_area_config.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.mana_v2_nullable_ospf_interface_config import ManaV2NullableOspfInterfaceConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2OspfAreaConfig(BaseModel): """ ManaV2OspfAreaConfig """ # noqa: E501 - area_id: Optional[StrictStr] = Field(default=None, alias="areaId", json_schema_extra={"examples": ["example string"]}) + area_id: Optional[StrictStr] = Field(default=None, alias="areaId") interfaces: Optional[Dict[str, ManaV2NullableOspfInterfaceConfig]] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + name: Optional[StrictStr] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["areaId", "interfaces", "name", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ospf_interface.py b/graphiant_sdk/models/mana_v2_ospf_interface.py index d55d91a9..4910ef65 100644 --- a/graphiant_sdk/models/mana_v2_ospf_interface.py +++ b/graphiant_sdk/models/mana_v2_ospf_interface.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_bfd_neighbor import ManaV2BfdNeighbor from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2OspfInterface(BaseModel): """ @@ -32,26 +31,25 @@ class ManaV2OspfInterface(BaseModel): """ # noqa: E501 bfd: Optional[ManaV2BfdInstance] = None bfd_neighbors: Optional[List[ManaV2BfdNeighbor]] = Field(default=None, alias="bfdNeighbors") - cost: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - dead_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deadInterval", json_schema_extra={"examples": [123]}) - dead_interval_value: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deadIntervalValue", json_schema_extra={"examples": [123]}) - dr_priority: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="drPriority", json_schema_extra={"examples": [123]}) - hello_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="helloInterval", json_schema_extra={"examples": [123]}) - hello_interval_value: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="helloIntervalValue", json_schema_extra={"examples": [123]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - if_index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ifIndex", json_schema_extra={"examples": [123]}) - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit", json_schema_extra={"examples": [123]}) - mtu_ignore: Optional[StrictBool] = Field(default=None, alias="mtuIgnore", json_schema_extra={"examples": [True]}) - prefix_sid: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="prefixSid", json_schema_extra={"examples": [123]}) - retransmit_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="retransmitInterval", json_schema_extra={"examples": [123]}) - retransmit_interval_value: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="retransmitIntervalValue", json_schema_extra={"examples": [123]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + cost: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + dead_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deadInterval") + dead_interval_value: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deadIntervalValue") + dr_priority: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="drPriority") + hello_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="helloInterval") + hello_interval_value: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="helloIntervalValue") + id: Optional[StrictInt] = None + if_index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ifIndex") + interface: Optional[StrictStr] = None + max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit") + mtu_ignore: Optional[StrictBool] = Field(default=None, alias="mtuIgnore") + prefix_sid: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="prefixSid") + retransmit_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="retransmitInterval") + retransmit_interval_value: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="retransmitIntervalValue") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["bfd", "bfdNeighbors", "cost", "deadInterval", "deadIntervalValue", "drPriority", "helloInterval", "helloIntervalValue", "id", "ifIndex", "interface", "maxTransmissionUnit", "mtuIgnore", "prefixSid", "retransmitInterval", "retransmitIntervalValue", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -63,7 +61,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ospf_interface_config.py b/graphiant_sdk/models/mana_v2_ospf_interface_config.py index 45ad2890..24ecfe03 100644 --- a/graphiant_sdk/models/mana_v2_ospf_interface_config.py +++ b/graphiant_sdk/models/mana_v2_ospf_interface_config.py @@ -26,28 +26,26 @@ from graphiant_sdk.models.mana_v2_nullable_ospf_retransmit_interval_value import ManaV2NullableOspfRetransmitIntervalValue from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2OspfInterfaceConfig(BaseModel): """ ManaV2OspfInterfaceConfig """ # noqa: E501 bfd: Optional[ManaV2NullableBfdInstanceConfig] = None - cost: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + cost: Optional[Annotated[int, Field(strict=True, ge=0)]] = None dead_interval_value: Optional[ManaV2NullableOspfDeadIntervalValue] = Field(default=None, alias="deadIntervalValue") - dr_priority: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="drPriority", json_schema_extra={"examples": [123]}) + dr_priority: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="drPriority") hello_interval_value: Optional[ManaV2NullableOspfHelloIntervalValue] = Field(default=None, alias="helloIntervalValue") - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - mtu_ignore: Optional[StrictBool] = Field(default=None, alias="mtuIgnore", json_schema_extra={"examples": [True]}) - prefix_sid: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="prefixSid", json_schema_extra={"examples": [123]}) + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + mtu_ignore: Optional[StrictBool] = Field(default=None, alias="mtuIgnore") + prefix_sid: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="prefixSid") retransmit_interval_value: Optional[ManaV2NullableOspfRetransmitIntervalValue] = Field(default=None, alias="retransmitIntervalValue") - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["bfd", "cost", "deadIntervalValue", "drPriority", "helloIntervalValue", "interfaceName", "mtu", "mtuIgnore", "prefixSid", "retransmitIntervalValue", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,7 +57,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ospf_process_config.py b/graphiant_sdk/models/mana_v2_ospf_process_config.py index fa007cb9..08074b53 100644 --- a/graphiant_sdk/models/mana_v2_ospf_process_config.py +++ b/graphiant_sdk/models/mana_v2_ospf_process_config.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_nullable_ospf_redistribute_protocol_config import ManaV2NullableOspfRedistributeProtocolConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2OspfProcessConfig(BaseModel): """ @@ -33,16 +32,15 @@ class ManaV2OspfProcessConfig(BaseModel): address_families: Optional[List[StrictStr]] = Field(default=None, alias="addressFamilies") admin_distance: Optional[ManaV2NullableOspfAdminDistanceValue] = Field(default=None, alias="adminDistance") areas: Optional[Dict[str, ManaV2NullableOspfAreaConfig]] = None - auto: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate", json_schema_extra={"examples": ["ENUM_VALUE"]}) - manual: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + auto: Optional[StrictBool] = None + default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate") + manual: Optional[StrictStr] = None + name: Optional[StrictStr] = None redistribution: Optional[Dict[str, ManaV2NullableOspfRedistributeProtocolConfig]] = None __properties: ClassVar[List[str]] = ["addressFamilies", "adminDistance", "areas", "auto", "defaultOriginate", "manual", "name", "redistribution"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ospf_redistribute.py b/graphiant_sdk/models/mana_v2_ospf_redistribute.py index f16b17fe..5a7a8b4d 100644 --- a/graphiant_sdk/models/mana_v2_ospf_redistribute.py +++ b/graphiant_sdk/models/mana_v2_ospf_redistribute.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2OspfRedistribute(BaseModel): """ ManaV2OspfRedistribute """ # noqa: E501 - metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - metric_type: Optional[StrictStr] = Field(default=None, alias="metricType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - redist_type: Optional[StrictStr] = Field(default=None, alias="redistType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + metric_type: Optional[StrictStr] = Field(default=None, alias="metricType") + redist_type: Optional[StrictStr] = Field(default=None, alias="redistType") __properties: ClassVar[List[str]] = ["metric", "metricType", "redistType"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_ospf_redistribute_protocol_config.py b/graphiant_sdk/models/mana_v2_ospf_redistribute_protocol_config.py index 696835e8..da91eb6b 100644 --- a/graphiant_sdk/models/mana_v2_ospf_redistribute_protocol_config.py +++ b/graphiant_sdk/models/mana_v2_ospf_redistribute_protocol_config.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2OspfRedistributeProtocolConfig(BaseModel): """ ManaV2OspfRedistributeProtocolConfig """ # noqa: E501 - metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - metric_type: Optional[StrictStr] = Field(default=None, alias="metricType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + metric_type: Optional[StrictStr] = Field(default=None, alias="metricType") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["metric", "metricType", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_overlay_filter_config.py b/graphiant_sdk/models/mana_v2_overlay_filter_config.py index 0952453d..db660542 100644 --- a/graphiant_sdk/models/mana_v2_overlay_filter_config.py +++ b/graphiant_sdk/models/mana_v2_overlay_filter_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_nullable_policy_name import ManaV2NullablePolicyName from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2OverlayFilterConfig(BaseModel): """ @@ -33,8 +32,7 @@ class ManaV2OverlayFilterConfig(BaseModel): __properties: ClassVar[List[str]] = ["exportPolicy", "importPolicy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_overlay_filters.py b/graphiant_sdk/models/mana_v2_overlay_filters.py index 0363cb61..e6f63dff 100644 --- a/graphiant_sdk/models/mana_v2_overlay_filters.py +++ b/graphiant_sdk/models/mana_v2_overlay_filters.py @@ -21,19 +21,17 @@ 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 ManaV2OverlayFilters(BaseModel): """ ManaV2OverlayFilters """ # noqa: E501 - inbound_filter: Optional[StrictStr] = Field(default=None, alias="inboundFilter", json_schema_extra={"examples": ["example string"]}) - outbound_filter: Optional[StrictStr] = Field(default=None, alias="outboundFilter", json_schema_extra={"examples": ["example string"]}) + inbound_filter: Optional[StrictStr] = Field(default=None, alias="inboundFilter") + outbound_filter: Optional[StrictStr] = Field(default=None, alias="outboundFilter") __properties: ClassVar[List[str]] = ["inboundFilter", "outboundFilter"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_policer.py b/graphiant_sdk/models/mana_v2_policer.py index 3930de8c..a25a95be 100644 --- a/graphiant_sdk/models/mana_v2_policer.py +++ b/graphiant_sdk/models/mana_v2_policer.py @@ -21,19 +21,17 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2Policer(BaseModel): """ ManaV2Policer """ # noqa: E501 - burst_size: StrictInt = Field(description="Burst size for the policer (required)", alias="burstSize", json_schema_extra={"examples": [123]}) - bw: StrictInt = Field(description="Bandwidth for the policer (required)", json_schema_extra={"examples": [123]}) + burst_size: StrictInt = Field(description="Burst size for the policer (required)", alias="burstSize") + bw: StrictInt = Field(description="Bandwidth for the policer (required)") __properties: ClassVar[List[str]] = ["burstSize", "bw"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_policy_match.py b/graphiant_sdk/models/mana_v2_policy_match.py index 8ab2a08b..6fd1cd31 100644 --- a/graphiant_sdk/models/mana_v2_policy_match.py +++ b/graphiant_sdk/models/mana_v2_policy_match.py @@ -22,23 +22,21 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PolicyMatch(BaseModel): """ ManaV2PolicyMatch """ # noqa: E501 - destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": [123]}) - destination_prefix: Optional[StrictStr] = Field(default=None, alias="destinationPrefix", json_schema_extra={"examples": ["example string"]}) - icmp_type: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="icmpType", json_schema_extra={"examples": [123]}) - protocol: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort", json_schema_extra={"examples": [123]}) - source_prefix: Optional[StrictStr] = Field(default=None, alias="sourcePrefix", json_schema_extra={"examples": ["example string"]}) + destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort") + destination_prefix: Optional[StrictStr] = Field(default=None, alias="destinationPrefix") + icmp_type: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="icmpType") + protocol: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort") + source_prefix: Optional[StrictStr] = Field(default=None, alias="sourcePrefix") __properties: ClassVar[List[str]] = ["destinationPort", "destinationPrefix", "icmpType", "protocol", "sourcePort", "sourcePrefix"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_policy_target.py b/graphiant_sdk/models/mana_v2_policy_target.py index 1b4fe2d9..f658f303 100644 --- a/graphiant_sdk/models/mana_v2_policy_target.py +++ b/graphiant_sdk/models/mana_v2_policy_target.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_site import ManaV2Site from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PolicyTarget(BaseModel): """ @@ -36,8 +35,7 @@ class ManaV2PolicyTarget(BaseModel): __properties: ClassVar[List[str]] = ["excludedDevices", "prefixSet", "sites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_policy_target_input.py b/graphiant_sdk/models/mana_v2_policy_target_input.py index 537253ec..c884fef1 100644 --- a/graphiant_sdk/models/mana_v2_policy_target_input.py +++ b/graphiant_sdk/models/mana_v2_policy_target_input.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_enterprise_prefix_set_input import ManaV2EnterprisePrefixSetInput from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PolicyTargetInput(BaseModel): """ @@ -34,8 +33,7 @@ class ManaV2PolicyTargetInput(BaseModel): __properties: ClassVar[List[str]] = ["excludedDevices", "prefixSet", "sites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_port_range.py b/graphiant_sdk/models/mana_v2_port_range.py index 6f34b6be..4ab9898d 100644 --- a/graphiant_sdk/models/mana_v2_port_range.py +++ b/graphiant_sdk/models/mana_v2_port_range.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PortRange(BaseModel): """ ManaV2PortRange """ # noqa: E501 - lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["lower", "upper"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_port_range_config.py b/graphiant_sdk/models/mana_v2_port_range_config.py index 681d8966..22a3627a 100644 --- a/graphiant_sdk/models/mana_v2_port_range_config.py +++ b/graphiant_sdk/models/mana_v2_port_range_config.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PortRangeConfig(BaseModel): """ ManaV2PortRangeConfig """ # noqa: E501 - lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["lower", "upper"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_prefix_set.py b/graphiant_sdk/models/mana_v2_prefix_set.py index bb8731b7..3d72414f 100644 --- a/graphiant_sdk/models/mana_v2_prefix_set.py +++ b/graphiant_sdk/models/mana_v2_prefix_set.py @@ -24,27 +24,25 @@ from graphiant_sdk.models.mana_v2_prefix_set_policy import ManaV2PrefixSetPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PrefixSet(BaseModel): """ ManaV2PrefixSet """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None entries: Optional[List[ManaV2PrefixSetEntry]] = None - error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage", json_schema_extra={"examples": ["example string"]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - mode: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage") + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + id: Optional[StrictInt] = None + mode: Optional[StrictStr] = None + name: Optional[StrictStr] = None policies: Optional[List[ManaV2PrefixSetPolicy]] = None - policy_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="policyCount", json_schema_extra={"examples": [123]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + policy_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="policyCount") + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "entries", "errorMessage", "globalId", "id", "mode", "name", "policies", "policyCount", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_prefix_set_config.py b/graphiant_sdk/models/mana_v2_prefix_set_config.py index 97b7f7fc..a73f60b9 100644 --- a/graphiant_sdk/models/mana_v2_prefix_set_config.py +++ b/graphiant_sdk/models/mana_v2_prefix_set_config.py @@ -22,23 +22,21 @@ from graphiant_sdk.models.mana_v2_prefix_set_config_nullable_entry import ManaV2PrefixSetConfigNullableEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PrefixSetConfig(BaseModel): """ ManaV2PrefixSetConfig """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None entries: Optional[Dict[str, ManaV2PrefixSetConfigNullableEntry]] = None - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync", json_schema_extra={"examples": [True]}) - mode: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync") + mode: Optional[StrictStr] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "entries", "globalId", "isGlobalSync", "mode", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_prefix_set_config_nullable_entry.py b/graphiant_sdk/models/mana_v2_prefix_set_config_nullable_entry.py index ee7d632d..2f38e04d 100644 --- a/graphiant_sdk/models/mana_v2_prefix_set_config_nullable_entry.py +++ b/graphiant_sdk/models/mana_v2_prefix_set_config_nullable_entry.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_prefix_set_config_nullable_entry_entry import ManaV2PrefixSetConfigNullableEntryEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PrefixSetConfigNullableEntry(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2PrefixSetConfigNullableEntry(BaseModel): __properties: ClassVar[List[str]] = ["entry"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_prefix_set_config_nullable_entry_entry.py b/graphiant_sdk/models/mana_v2_prefix_set_config_nullable_entry_entry.py index ae69d8d9..8d9b804b 100644 --- a/graphiant_sdk/models/mana_v2_prefix_set_config_nullable_entry_entry.py +++ b/graphiant_sdk/models/mana_v2_prefix_set_config_nullable_entry_entry.py @@ -22,21 +22,19 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PrefixSetConfigNullableEntryEntry(BaseModel): """ ManaV2PrefixSetConfigNullableEntryEntry """ # noqa: E501 - ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix", json_schema_extra={"examples": ["example string"]}) - mask_lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskLower", json_schema_extra={"examples": [123]}) - mask_upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskUpper", json_schema_extra={"examples": [123]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix") + mask_lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskLower") + mask_upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskUpper") + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["ipPrefix", "maskLower", "maskUpper", "seq"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_prefix_set_entry.py b/graphiant_sdk/models/mana_v2_prefix_set_entry.py index 1db5b6f6..c65f07af 100644 --- a/graphiant_sdk/models/mana_v2_prefix_set_entry.py +++ b/graphiant_sdk/models/mana_v2_prefix_set_entry.py @@ -22,22 +22,20 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PrefixSetEntry(BaseModel): """ ManaV2PrefixSetEntry """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix", json_schema_extra={"examples": ["example string"]}) - mask_lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskLower", json_schema_extra={"examples": [123]}) - mask_upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskUpper", json_schema_extra={"examples": [123]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + id: Optional[StrictInt] = None + ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix") + mask_lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskLower") + mask_upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maskUpper") + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["id", "ipPrefix", "maskLower", "maskUpper", "seq"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_prefix_set_policy.py b/graphiant_sdk/models/mana_v2_prefix_set_policy.py index fa66635d..7eac6930 100644 --- a/graphiant_sdk/models/mana_v2_prefix_set_policy.py +++ b/graphiant_sdk/models/mana_v2_prefix_set_policy.py @@ -21,20 +21,18 @@ 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 ManaV2PrefixSetPolicy(BaseModel): """ ManaV2PrefixSetPolicy """ # noqa: E501 - attach_point: Optional[StrictStr] = Field(default=None, alias="attachPoint", json_schema_extra={"examples": ["ENUM_VALUE"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + attach_point: Optional[StrictStr] = Field(default=None, alias="attachPoint") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["attachPoint", "id", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_prometheus_config.py b/graphiant_sdk/models/mana_v2_prometheus_config.py index 4a97583a..7e4748c2 100644 --- a/graphiant_sdk/models/mana_v2_prometheus_config.py +++ b/graphiant_sdk/models/mana_v2_prometheus_config.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_nullable_prometheus_sys_db_monitor_config import ManaV2NullablePrometheusSysDbMonitorConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PrometheusConfig(BaseModel): """ @@ -36,8 +35,7 @@ class ManaV2PrometheusConfig(BaseModel): __properties: ClassVar[List[str]] = ["ruleGroups", "sink", "sysdbMonitors"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_prometheus_remote_write_sink_config.py b/graphiant_sdk/models/mana_v2_prometheus_remote_write_sink_config.py index 19757118..4df1d244 100644 --- a/graphiant_sdk/models/mana_v2_prometheus_remote_write_sink_config.py +++ b/graphiant_sdk/models/mana_v2_prometheus_remote_write_sink_config.py @@ -22,21 +22,19 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PrometheusRemoteWriteSinkConfig(BaseModel): """ ManaV2PrometheusRemoteWriteSinkConfig """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - host: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - path: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + description: Optional[StrictStr] = None + host: Optional[StrictStr] = None + path: Optional[StrictStr] = None + port: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["description", "host", "path", "port"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_prometheus_rule_config.py b/graphiant_sdk/models/mana_v2_prometheus_rule_config.py index c2ce6d1b..5900dee7 100644 --- a/graphiant_sdk/models/mana_v2_prometheus_rule_config.py +++ b/graphiant_sdk/models/mana_v2_prometheus_rule_config.py @@ -22,23 +22,21 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PrometheusRuleConfig(BaseModel): """ ManaV2PrometheusRuleConfig """ # noqa: E501 - alert: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - expression: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - severity: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - template: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - trigger_seconds: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="triggerSeconds", json_schema_extra={"examples": [123]}) + alert: Optional[StrictBool] = None + expression: Optional[StrictStr] = None + name: Optional[StrictStr] = None + severity: Optional[StrictStr] = None + template: Optional[StrictStr] = None + trigger_seconds: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="triggerSeconds") __properties: ClassVar[List[str]] = ["alert", "expression", "name", "severity", "template", "triggerSeconds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_prometheus_rule_group_config.py b/graphiant_sdk/models/mana_v2_prometheus_rule_group_config.py index 27de4705..4eb10ab9 100644 --- a/graphiant_sdk/models/mana_v2_prometheus_rule_group_config.py +++ b/graphiant_sdk/models/mana_v2_prometheus_rule_group_config.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.mana_v2_nullable_prometheus_rule_config import ManaV2NullablePrometheusRuleConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PrometheusRuleGroupConfig(BaseModel): """ ManaV2PrometheusRuleGroupConfig """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - interval_seconds: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="intervalSeconds", json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + interval_seconds: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="intervalSeconds") + name: Optional[StrictStr] = None rules: Optional[Dict[str, ManaV2NullablePrometheusRuleConfig]] = None __properties: ClassVar[List[str]] = ["description", "intervalSeconds", "name", "rules"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_prometheus_sys_db_monitor_config.py b/graphiant_sdk/models/mana_v2_prometheus_sys_db_monitor_config.py index 40631c88..ce8d96d8 100644 --- a/graphiant_sdk/models/mana_v2_prometheus_sys_db_monitor_config.py +++ b/graphiant_sdk/models/mana_v2_prometheus_sys_db_monitor_config.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2PrometheusSysDbMonitorConfig(BaseModel): """ ManaV2PrometheusSysDbMonitorConfig """ # noqa: E501 - interval_seconds: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="intervalSeconds", json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + interval_seconds: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="intervalSeconds") + name: Optional[StrictStr] = None xpaths: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["intervalSeconds", "name", "xpaths"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_psk_configuration.py b/graphiant_sdk/models/mana_v2_psk_configuration.py index 027db3e5..3809a811 100644 --- a/graphiant_sdk/models/mana_v2_psk_configuration.py +++ b/graphiant_sdk/models/mana_v2_psk_configuration.py @@ -22,23 +22,21 @@ 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 ManaV2PskConfiguration(BaseModel): """ ManaV2PskConfiguration """ # noqa: E501 - cak: Optional[StrictStr] = Field(default=None, description="The Connection Authentication Key (CAK)", json_schema_extra={"examples": ["1234567890abcdef1234567890abcdef"]}) - cak_cryptographic_algorithm: Optional[StrictStr] = Field(default=None, description="The cryptographic algorithm for the CAK, SAK Cipher Suite is implicitly selected based on this field. (required)", alias="cakCryptographicAlgorithm", json_schema_extra={"examples": ["AES_128_CMAC"]}) - ckn: Optional[StrictStr] = Field(default=None, description="The Connection Key Name (CKN) (required)", json_schema_extra={"examples": ["Corp-MACsec-CKN"]}) - nickname: Optional[StrictStr] = Field(default=None, description="The nickname of the PSK (required)", json_schema_extra={"examples": ["PSK1"]}) + cak: Optional[StrictStr] = Field(default=None, description="The Connection Authentication Key (CAK)") + cak_cryptographic_algorithm: Optional[StrictStr] = Field(default=None, description="The cryptographic algorithm for the CAK, SAK Cipher Suite is implicitly selected based on this field. (required)", alias="cakCryptographicAlgorithm") + ckn: Optional[StrictStr] = Field(default=None, description="The Connection Key Name (CKN) (required)") + nickname: Optional[StrictStr] = Field(default=None, description="The nickname of the PSK (required)") start_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTime") - use_xpn_for_cipher_suite: Optional[StrictBool] = Field(default=None, description="Whether to use XPN for the cipher suite. If true, AES_128_GCM_XPN or AES_256_GCM_XPN is selected based on the cmac algorithm. If false, AES_128_GCM or AES_256_GCM is selected based on the cmac algorithm.", alias="useXpnForCipherSuite", json_schema_extra={"examples": [True]}) + use_xpn_for_cipher_suite: Optional[StrictBool] = Field(default=None, description="Whether to use XPN for the cipher suite. If true, AES_128_GCM_XPN or AES_256_GCM_XPN is selected based on the cmac algorithm. If false, AES_128_GCM or AES_256_GCM is selected based on the cmac algorithm.", alias="useXpnForCipherSuite") __properties: ClassVar[List[str]] = ["cak", "cakCryptographicAlgorithm", "ckn", "nickname", "startTime", "useXpnForCipherSuite"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_public_vif_gateway_centralized_nat.py b/graphiant_sdk/models/mana_v2_public_vif_gateway_centralized_nat.py new file mode 100644 index 00000000..b587a4ab --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_gateway_centralized_nat.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 + + +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 import Optional, Set +from typing_extensions import Self + +class ManaV2PublicVifGatewayCentralizedNat(BaseModel): + """ + ManaV2PublicVifGatewayCentralizedNat + """ # noqa: E501 + consumer_prefix: Dict[str, StrictStr] = Field(alias="consumerPrefix") + __properties: ClassVar[List[str]] = ["consumerPrefix"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifGatewayCentralizedNat 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 ManaV2PublicVifGatewayCentralizedNat from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerPrefix": obj.get("consumerPrefix") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_gateway_consumer_lan_devices.py b/graphiant_sdk/models/mana_v2_public_vif_gateway_consumer_lan_devices.py new file mode 100644 index 00000000..b5825a42 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_gateway_consumer_lan_devices.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 + + +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 + +class ManaV2PublicVifGatewayConsumerLanDevices(BaseModel): + """ + ManaV2PublicVifGatewayConsumerLanDevices + """ # noqa: E501 + consumer_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="consumerPrefixes") + __properties: ClassVar[List[str]] = ["consumerPrefixes"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifGatewayConsumerLanDevices 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 ManaV2PublicVifGatewayConsumerLanDevices from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerPrefixes": obj.get("consumerPrefixes") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_gateway_decentralized_prefixes.py b/graphiant_sdk/models/mana_v2_public_vif_gateway_decentralized_prefixes.py new file mode 100644 index 00000000..ca99f6d9 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_gateway_decentralized_prefixes.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 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2PublicVifGatewayDecentralizedPrefixes(BaseModel): + """ + ManaV2PublicVifGatewayDecentralizedPrefixes + """ # noqa: E501 + prefixes: Dict[str, StrictStr] + __properties: ClassVar[List[str]] = ["prefixes"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifGatewayDecentralizedPrefixes 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 ManaV2PublicVifGatewayDecentralizedPrefixes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "prefixes": obj.get("prefixes") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_gateway_nat_prefix_strategy.py b/graphiant_sdk/models/mana_v2_public_vif_gateway_nat_prefix_strategy.py new file mode 100644 index 00000000..21f520b4 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_gateway_nat_prefix_strategy.py @@ -0,0 +1,97 @@ +# 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_public_vif_gateway_centralized_nat import ManaV2PublicVifGatewayCentralizedNat +from graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes import ManaV2PublicVifGatewayDecentralizedPrefixes +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2PublicVifGatewayNatPrefixStrategy(BaseModel): + """ + ManaV2PublicVifGatewayNatPrefixStrategy + """ # noqa: E501 + centralized: Optional[ManaV2PublicVifGatewayCentralizedNat] = None + decentralized: Optional[ManaV2PublicVifGatewayDecentralizedPrefixes] = None + __properties: ClassVar[List[str]] = ["centralized", "decentralized"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifGatewayNatPrefixStrategy 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 centralized + if self.centralized: + _dict['centralized'] = self.centralized.to_dict() + # override the default output from pydantic by calling `to_dict()` of decentralized + if self.decentralized: + _dict['decentralized'] = self.decentralized.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2PublicVifGatewayNatPrefixStrategy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "centralized": ManaV2PublicVifGatewayCentralizedNat.from_dict(obj["centralized"]) if obj.get("centralized") is not None else None, + "decentralized": ManaV2PublicVifGatewayDecentralizedPrefixes.from_dict(obj["decentralized"]) if obj.get("decentralized") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_gateway_write_request.py b/graphiant_sdk/models/mana_v2_public_vif_gateway_write_request.py new file mode 100644 index 00000000..4cd10ea1 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_gateway_write_request.py @@ -0,0 +1,137 @@ +# 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.mana_v2_bgp_neighbor_config import ManaV2BgpNeighborConfig +from graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices import ManaV2PublicVifGatewayConsumerLanDevices +from graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy import ManaV2PublicVifGatewayNatPrefixStrategy +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2PublicVifGatewayWriteRequest(BaseModel): + """ + ManaV2PublicVifGatewayWriteRequest + """ # noqa: E501 + advertisement: Optional[ManaV2SiteInformation] = None + consumer_lan_segments: Dict[str, ManaV2PublicVifGatewayConsumerLanDevices] = Field(alias="consumerLanSegments") + covering_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="coveringPrefixes") + gateway_bgp_neighbors: Dict[str, ManaV2BgpNeighborConfig] = Field(alias="gatewayBgpNeighbors") + lan_segment_id: StrictInt = Field(description="Producer LAN segment (VRF) on gateway appliances (required)", alias="lanSegmentId") + nat_prefix_strategy: ManaV2PublicVifGatewayNatPrefixStrategy = Field(alias="natPrefixStrategy") + region_id: StrictInt = Field(description="Graphiant region for gateway appliances (required)", alias="regionId") + service_name: StrictStr = Field(description="Service display name (required)", alias="serviceName") + storage_provider: StrictStr = Field(description="Storage provider; each gateway appliance must match region and provider (required)", alias="storageProvider") + __properties: ClassVar[List[str]] = ["advertisement", "consumerLanSegments", "coveringPrefixes", "gatewayBgpNeighbors", "lanSegmentId", "natPrefixStrategy", "regionId", "serviceName", "storageProvider"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifGatewayWriteRequest 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 advertisement + if self.advertisement: + _dict['advertisement'] = self.advertisement.to_dict() + # override the default output from pydantic by calling `to_dict()` of each value in consumer_lan_segments (dict) + _field_dict = {} + if self.consumer_lan_segments: + for _key_consumer_lan_segments in self.consumer_lan_segments: + if self.consumer_lan_segments[_key_consumer_lan_segments]: + _field_dict[_key_consumer_lan_segments] = self.consumer_lan_segments[_key_consumer_lan_segments].to_dict() + _dict['consumerLanSegments'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in gateway_bgp_neighbors (dict) + _field_dict = {} + if self.gateway_bgp_neighbors: + for _key_gateway_bgp_neighbors in self.gateway_bgp_neighbors: + if self.gateway_bgp_neighbors[_key_gateway_bgp_neighbors]: + _field_dict[_key_gateway_bgp_neighbors] = self.gateway_bgp_neighbors[_key_gateway_bgp_neighbors].to_dict() + _dict['gatewayBgpNeighbors'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of nat_prefix_strategy + if self.nat_prefix_strategy: + _dict['natPrefixStrategy'] = self.nat_prefix_strategy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2PublicVifGatewayWriteRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "advertisement": ManaV2SiteInformation.from_dict(obj["advertisement"]) if obj.get("advertisement") is not None else None, + "consumerLanSegments": dict( + (_k, ManaV2PublicVifGatewayConsumerLanDevices.from_dict(_v)) + for _k, _v in obj["consumerLanSegments"].items() + ) + if obj.get("consumerLanSegments") is not None + else None, + "coveringPrefixes": obj.get("coveringPrefixes"), + "gatewayBgpNeighbors": dict( + (_k, ManaV2BgpNeighborConfig.from_dict(_v)) + for _k, _v in obj["gatewayBgpNeighbors"].items() + ) + if obj.get("gatewayBgpNeighbors") is not None + else None, + "lanSegmentId": obj.get("lanSegmentId"), + "natPrefixStrategy": ManaV2PublicVifGatewayNatPrefixStrategy.from_dict(obj["natPrefixStrategy"]) if obj.get("natPrefixStrategy") is not None else None, + "regionId": obj.get("regionId"), + "serviceName": obj.get("serviceName"), + "storageProvider": obj.get("storageProvider") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_summary.py b/graphiant_sdk/models/mana_v2_public_vif_summary.py index 9ad9c016..b22f00dd 100644 --- a/graphiant_sdk/models/mana_v2_public_vif_summary.py +++ b/graphiant_sdk/models/mana_v2_public_vif_summary.py @@ -22,21 +22,19 @@ 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 ManaV2PublicVifSummary(BaseModel): """ ManaV2PublicVifSummary """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, description="id of this Public VIF", json_schema_extra={"examples": [1234567891011]}) - service_name: Optional[StrictStr] = Field(default=None, description="name of this Public VIF", alias="serviceName", json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = Field(default=None, description="id of this Public VIF") + service_name: Optional[StrictStr] = Field(default=None, description="name of this Public VIF", alias="serviceName") updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") - user_name: Optional[StrictStr] = Field(default=None, description="creator of this Public VIF", alias="userName", json_schema_extra={"examples": ["example string"]}) + user_name: Optional[StrictStr] = Field(default=None, description="creator of this Public VIF", alias="userName") __properties: ClassVar[List[str]] = ["id", "serviceName", "updatedAt", "userName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_qo_s_profile.py b/graphiant_sdk/models/mana_v2_qo_s_profile.py index 6fd94a98..c9963aeb 100644 --- a/graphiant_sdk/models/mana_v2_qo_s_profile.py +++ b/graphiant_sdk/models/mana_v2_qo_s_profile.py @@ -17,25 +17,23 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_qo_s_profile_queue import ManaV2QoSProfileQueue from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2QoSProfile(BaseModel): """ ManaV2QoSProfile """ # noqa: E501 - kind: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - profile: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + kind: Optional[StrictStr] = None + profile: Optional[StrictStr] = None queues: Optional[List[ManaV2QoSProfileQueue]] = None __properties: ClassVar[List[str]] = ["kind", "profile", "queues"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_qo_s_profile_queue.py b/graphiant_sdk/models/mana_v2_qo_s_profile_queue.py index 5720f712..9db1e6a9 100644 --- a/graphiant_sdk/models/mana_v2_qo_s_profile_queue.py +++ b/graphiant_sdk/models/mana_v2_qo_s_profile_queue.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2QoSProfileQueue(BaseModel): """ ManaV2QoSProfileQueue """ # noqa: E501 - bandwidth_percent: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bandwidthPercent", json_schema_extra={"examples": [123]}) - default_queue: Optional[StrictBool] = Field(default=None, alias="defaultQueue", json_schema_extra={"examples": [True]}) - sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass", json_schema_extra={"examples": ["ENUM_VALUE"]}) + bandwidth_percent: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bandwidthPercent") + default_queue: Optional[StrictBool] = Field(default=None, alias="defaultQueue") + sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass") __properties: ClassVar[List[str]] = ["bandwidthPercent", "defaultQueue", "slaClass"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_region.py b/graphiant_sdk/models/mana_v2_region.py index c3edb345..0224e108 100644 --- a/graphiant_sdk/models/mana_v2_region.py +++ b/graphiant_sdk/models/mana_v2_region.py @@ -22,22 +22,20 @@ 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 class ManaV2Region(BaseModel): """ ManaV2Region """ # noqa: E501 coordinates: Optional[ManaV2RegionCoordinates] = None - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - region_iso_code: Optional[StrictStr] = Field(default=None, alias="regionIsoCode", json_schema_extra={"examples": ["example string"]}) - unavailable: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + 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]] = ["coordinates", "id", "name", "regionIsoCode", "unavailable"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_region_coordinates.py b/graphiant_sdk/models/mana_v2_region_coordinates.py index 35bf022f..f10de04f 100644 --- a/graphiant_sdk/models/mana_v2_region_coordinates.py +++ b/graphiant_sdk/models/mana_v2_region_coordinates.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +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]] = Field(default=None, json_schema_extra={"examples": [123.45]}) - longitude: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [123.45]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_regional_allocation.py b/graphiant_sdk/models/mana_v2_regional_allocation.py index 4bce9125..762b7a7b 100644 --- a/graphiant_sdk/models/mana_v2_regional_allocation.py +++ b/graphiant_sdk/models/mana_v2_regional_allocation.py @@ -21,24 +21,22 @@ 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 ManaV2RegionalAllocation(BaseModel): """ ManaV2RegionalAllocation """ # noqa: E501 - allocation_core: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gigabytes per second allowed for core network connections on this region", alias="allocationCore", json_schema_extra={"examples": [12.34]}) - allocation_gw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gigabytes per second allowed for gateway connections on this region", alias="allocationGw", json_schema_extra={"examples": [12.34]}) - allocation_internet: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gigabytes per second allowed for dia gateway internet access on this region. Must be 0, 10, or 100", alias="allocationInternet", json_schema_extra={"examples": [12.34]}) - credit_core: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="creditCore", json_schema_extra={"examples": [12.34]}) - credit_gw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="creditGw", json_schema_extra={"examples": [12.34]}) - region_id: Optional[StrictInt] = Field(default=None, alias="regionId", json_schema_extra={"examples": [123]}) - region_name: Optional[StrictStr] = Field(default=None, alias="regionName", json_schema_extra={"examples": ["example string"]}) + allocation_core: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gigabytes per second allowed for core network connections on this region", alias="allocationCore") + allocation_gw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gigabytes per second allowed for gateway connections on this region", alias="allocationGw") + allocation_internet: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Gigabytes per second allowed for dia gateway internet access on this region. Must be 0, 10, or 100", alias="allocationInternet") + credit_core: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="creditCore") + credit_gw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="creditGw") + region_id: Optional[StrictInt] = Field(default=None, alias="regionId") + region_name: Optional[StrictStr] = Field(default=None, alias="regionName") __properties: ClassVar[List[str]] = ["allocationCore", "allocationGw", "allocationInternet", "creditCore", "creditGw", "regionId", "regionName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_regional_bandwidth_consumption_summary.py b/graphiant_sdk/models/mana_v2_regional_bandwidth_consumption_summary.py index e74551c4..050447fe 100644 --- a/graphiant_sdk/models/mana_v2_regional_bandwidth_consumption_summary.py +++ b/graphiant_sdk/models/mana_v2_regional_bandwidth_consumption_summary.py @@ -23,23 +23,21 @@ from graphiant_sdk.models.mana_v2_internet_access_bandwidth_info import ManaV2InternetAccessBandwidthInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RegionalBandwidthConsumptionSummary(BaseModel): """ ManaV2RegionalBandwidthConsumptionSummary """ # noqa: E501 allocation: Optional[ManaV2BandwidthInfo] = None - consumed_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits billed for the region. It equals the higher value between total credits allocated and used plus any additional dia consumption", alias="consumedCredits", json_schema_extra={"examples": [12.34]}) - core_conversion_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Conversion rate from gigabytes per second to Graphiant credits used for calculating credits on core networks for this region", alias="coreConversionFactor", json_schema_extra={"examples": [12.34]}) - gw_conversion_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Conversion rate from gigabytes per second to Graphiant credits used for calculating credits on core networks for this region", alias="gwConversionFactor", json_schema_extra={"examples": [12.34]}) + consumed_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Credits billed for the region. It equals the higher value between total credits allocated and used plus any additional dia consumption", alias="consumedCredits") + core_conversion_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Conversion rate from gigabytes per second to Graphiant credits used for calculating credits on core networks for this region", alias="coreConversionFactor") + gw_conversion_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Conversion rate from gigabytes per second to Graphiant credits used for calculating credits on core networks for this region", alias="gwConversionFactor") internet_consumption: Optional[ManaV2InternetAccessBandwidthInfo] = Field(default=None, alias="internetConsumption") usage: Optional[ManaV2BandwidthInfo] = None __properties: ClassVar[List[str]] = ["allocation", "consumedCredits", "coreConversionFactor", "gwConversionFactor", "internetConsumption", "usage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_route_tag.py b/graphiant_sdk/models/mana_v2_route_tag.py index 9835b033..c3a43b0c 100644 --- a/graphiant_sdk/models/mana_v2_route_tag.py +++ b/graphiant_sdk/models/mana_v2_route_tag.py @@ -21,20 +21,18 @@ 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 ManaV2RouteTag(BaseModel): """ ManaV2RouteTag """ # noqa: E501 - level_one: Optional[StrictStr] = Field(default=None, alias="levelOne", json_schema_extra={"examples": ["example string"]}) - level_two: Optional[StrictStr] = Field(default=None, alias="levelTwo", json_schema_extra={"examples": ["example string"]}) - level_zero: Optional[StrictStr] = Field(default=None, alias="levelZero", json_schema_extra={"examples": ["example string"]}) + level_one: Optional[StrictStr] = Field(default=None, alias="levelOne") + level_two: Optional[StrictStr] = Field(default=None, alias="levelTwo") + level_zero: Optional[StrictStr] = Field(default=None, alias="levelZero") __properties: ClassVar[List[str]] = ["levelOne", "levelTwo", "levelZero"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_route_tag_device.py b/graphiant_sdk/models/mana_v2_route_tag_device.py index d26e7e92..54243cdb 100644 --- a/graphiant_sdk/models/mana_v2_route_tag_device.py +++ b/graphiant_sdk/models/mana_v2_route_tag_device.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.mana_v2_route_tag import ManaV2RouteTag from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RouteTagDevice(BaseModel): """ ManaV2RouteTagDevice """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - location_id: Optional[StrictInt] = Field(default=None, alias="locationId", json_schema_extra={"examples": [1234567891011]}) - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + location_id: Optional[StrictInt] = Field(default=None, alias="locationId") + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") tag: Optional[ManaV2RouteTag] = None __properties: ClassVar[List[str]] = ["deviceId", "locationId", "siteId", "tag"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_route_tag_element.py b/graphiant_sdk/models/mana_v2_route_tag_element.py index 0707d085..92cf6bfa 100644 --- a/graphiant_sdk/models/mana_v2_route_tag_element.py +++ b/graphiant_sdk/models/mana_v2_route_tag_element.py @@ -21,21 +21,19 @@ 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 ManaV2RouteTagElement(BaseModel): """ ManaV2RouteTagElement """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None next_set: Optional[List[ManaV2RouteTagElement]] = Field(default=None, alias="nextSet") - tag: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - tag_value: Optional[StrictInt] = Field(default=None, alias="tagValue", json_schema_extra={"examples": [123]}) + tag: Optional[StrictStr] = None + tag_value: Optional[StrictInt] = Field(default=None, alias="tagValue") __properties: ClassVar[List[str]] = ["id", "nextSet", "tag", "tagValue"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_route_tag_id.py b/graphiant_sdk/models/mana_v2_route_tag_id.py index 4380e586..7e799c1f 100644 --- a/graphiant_sdk/models/mana_v2_route_tag_id.py +++ b/graphiant_sdk/models/mana_v2_route_tag_id.py @@ -21,20 +21,18 @@ 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 ManaV2RouteTagId(BaseModel): """ ManaV2RouteTagId """ # noqa: E501 - level_one: Optional[StrictInt] = Field(default=None, alias="levelOne", json_schema_extra={"examples": [1234567891011]}) - level_two: Optional[StrictInt] = Field(default=None, alias="levelTwo", json_schema_extra={"examples": [1234567891011]}) - level_zero: Optional[StrictInt] = Field(default=None, alias="levelZero", json_schema_extra={"examples": [1234567891011]}) + level_one: Optional[StrictInt] = Field(default=None, alias="levelOne") + level_two: Optional[StrictInt] = Field(default=None, alias="levelTwo") + level_zero: Optional[StrictInt] = Field(default=None, alias="levelZero") __properties: ClassVar[List[str]] = ["levelOne", "levelTwo", "levelZero"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_route_tag_summary.py b/graphiant_sdk/models/mana_v2_route_tag_summary.py index fa5a78a6..de35002e 100644 --- a/graphiant_sdk/models/mana_v2_route_tag_summary.py +++ b/graphiant_sdk/models/mana_v2_route_tag_summary.py @@ -21,24 +21,22 @@ 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 ManaV2RouteTagSummary(BaseModel): """ ManaV2RouteTagSummary """ # noqa: E501 - device_count: Optional[StrictInt] = Field(default=None, alias="deviceCount", json_schema_extra={"examples": [123]}) - level_one: Optional[StrictInt] = Field(default=None, alias="levelOne", json_schema_extra={"examples": [1234567891011]}) - level_one_tag: Optional[StrictStr] = Field(default=None, alias="levelOneTag", json_schema_extra={"examples": ["example string"]}) - level_two: Optional[StrictInt] = Field(default=None, alias="levelTwo", json_schema_extra={"examples": [1234567891011]}) - level_two_tag: Optional[StrictStr] = Field(default=None, alias="levelTwoTag", json_schema_extra={"examples": ["example string"]}) - level_zero: Optional[StrictInt] = Field(default=None, alias="levelZero", json_schema_extra={"examples": [1234567891011]}) - level_zero_tag: Optional[StrictStr] = Field(default=None, alias="levelZeroTag", json_schema_extra={"examples": ["example string"]}) + device_count: Optional[StrictInt] = Field(default=None, alias="deviceCount") + level_one: Optional[StrictInt] = Field(default=None, alias="levelOne") + level_one_tag: Optional[StrictStr] = Field(default=None, alias="levelOneTag") + level_two: Optional[StrictInt] = Field(default=None, alias="levelTwo") + level_two_tag: Optional[StrictStr] = Field(default=None, alias="levelTwoTag") + level_zero: Optional[StrictInt] = Field(default=None, alias="levelZero") + level_zero_tag: Optional[StrictStr] = Field(default=None, alias="levelZeroTag") __properties: ClassVar[List[str]] = ["deviceCount", "levelOne", "levelOneTag", "levelTwo", "levelTwoTag", "levelZero", "levelZeroTag"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_routing_policy.py b/graphiant_sdk/models/mana_v2_routing_policy.py index b99a4e61..36691ba7 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy.py +++ b/graphiant_sdk/models/mana_v2_routing_policy.py @@ -22,26 +22,24 @@ from graphiant_sdk.models.mana_v2_routing_policy_statement import ManaV2RoutingPolicyStatement from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RoutingPolicy(BaseModel): """ ManaV2RoutingPolicy """ # noqa: E501 - attach_point: Optional[StrictStr] = Field(default=None, alias="attachPoint", json_schema_extra={"examples": ["ENUM_VALUE"]}) - default_action: Optional[StrictStr] = Field(default=None, alias="defaultAction", json_schema_extra={"examples": ["ENUM_VALUE"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage", json_schema_extra={"examples": ["example string"]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + attach_point: Optional[StrictStr] = Field(default=None, alias="attachPoint") + default_action: Optional[StrictStr] = Field(default=None, alias="defaultAction") + description: Optional[StrictStr] = None + error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage") + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None statements: Optional[List[ManaV2RoutingPolicyStatement]] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["attachPoint", "defaultAction", "description", "errorMessage", "globalId", "id", "name", "statements", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_routing_policy_config.py b/graphiant_sdk/models/mana_v2_routing_policy_config.py index 26a39b5b..2086a573 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_config.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_config.py @@ -22,24 +22,22 @@ from graphiant_sdk.models.mana_v2_routing_policy_config_nullable_statement import ManaV2RoutingPolicyConfigNullableStatement from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RoutingPolicyConfig(BaseModel): """ ManaV2RoutingPolicyConfig """ # noqa: E501 - attach_point: Optional[StrictStr] = Field(default=None, alias="attachPoint", json_schema_extra={"examples": ["ENUM_VALUE"]}) - default_action: Optional[StrictStr] = Field(default=None, alias="defaultAction", json_schema_extra={"examples": ["ENUM_VALUE"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync", json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + attach_point: Optional[StrictStr] = Field(default=None, alias="attachPoint") + default_action: Optional[StrictStr] = Field(default=None, alias="defaultAction") + description: Optional[StrictStr] = None + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync") + name: Optional[StrictStr] = None statements: Optional[Dict[str, ManaV2RoutingPolicyConfigNullableStatement]] = None __properties: ClassVar[List[str]] = ["attachPoint", "defaultAction", "description", "globalId", "isGlobalSync", "name", "statements"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement.py b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement.py index c74c4be8..5fced73e 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_routing_policy_config_nullable_statement_statement import ManaV2RoutingPolicyConfigNullableStatementStatement from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RoutingPolicyConfigNullableStatement(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2RoutingPolicyConfigNullableStatement(BaseModel): __properties: ClassVar[List[str]] = ["statement"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement.py b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement.py index 7149b92c..6d3b9fb5 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_routing_policy_config_nullable_statement_statement_nullable_match import ManaV2RoutingPolicyConfigNullableStatementStatementNullableMatch from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RoutingPolicyConfigNullableStatementStatement(BaseModel): """ @@ -32,12 +31,11 @@ class ManaV2RoutingPolicyConfigNullableStatementStatement(BaseModel): """ # noqa: E501 actions: Optional[Dict[str, ManaV2RoutingPolicyConfigNullableStatementStatementNullableAction]] = None matches: Optional[Dict[str, ManaV2RoutingPolicyConfigNullableStatementStatementNullableMatch]] = None - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["actions", "matches", "seq"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_action.py b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_action.py index bd525465..4ead6edc 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_action.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_action.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_routing_policy_config_nullable_statement_statement_nullable_action_action import ManaV2RoutingPolicyConfigNullableStatementStatementNullableActionAction from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RoutingPolicyConfigNullableStatementStatementNullableAction(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2RoutingPolicyConfigNullableStatementStatementNullableAction(BaseMode __properties: ClassVar[List[str]] = ["action"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_action_action.py b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_action_action.py index 784d3a26..71dc77ff 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_action_action.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_action_action.py @@ -30,7 +30,6 @@ from graphiant_sdk.models.mana_v2_nullable_weight import ManaV2NullableWeight from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RoutingPolicyConfigNullableStatementStatementNullableActionAction(BaseModel): """ @@ -43,14 +42,13 @@ class ManaV2RoutingPolicyConfigNullableStatementStatementNullableActionAction(Ba communities: Optional[ManaV2NullableCommunities] = None local_pref: Optional[ManaV2NullableLocalPreferance] = Field(default=None, alias="localPref") metric: Optional[ManaV2NullableMetric] = None - result: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + result: Optional[StrictStr] = None + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None weight: Optional[ManaV2NullableWeight] = None __properties: ClassVar[List[str]] = ["administrativeDistance", "aspathPrepend", "bgpSetNextHop", "callPolicy", "communities", "localPref", "metric", "result", "seq", "weight"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -62,7 +60,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_match.py b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_match.py index 2447ccae..24994ccf 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_match.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_match.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_routing_policy_config_nullable_statement_statement_nullable_match_match import ManaV2RoutingPolicyConfigNullableStatementStatementNullableMatchMatch from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RoutingPolicyConfigNullableStatementStatementNullableMatch(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2RoutingPolicyConfigNullableStatementStatementNullableMatch(BaseModel __properties: ClassVar[List[str]] = ["match"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_match_match.py b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_match_match.py index 3c656703..b6c8439b 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_match_match.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_config_nullable_statement_statement_nullable_match_match.py @@ -29,7 +29,6 @@ from graphiant_sdk.models.mana_v2_nullable_stale_purge import ManaV2NullableStalePurge from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RoutingPolicyConfigNullableStatementStatementNullableMatchMatch(BaseModel): """ @@ -39,15 +38,14 @@ class ManaV2RoutingPolicyConfigNullableStatementStatementNullableMatchMatch(Base prefix_set: Optional[ManaV2NullablePrefixSet] = Field(default=None, alias="prefixSet") protocol_route_type: Optional[ManaV2NullableProtocolRouteType] = Field(default=None, alias="protocolRouteType") route_tag: Optional[ManaV2NullableRouteTagSet] = Field(default=None, alias="routeTag") - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None source_interface: Optional[ManaV2NullableInterfaceName] = Field(default=None, alias="sourceInterface") source_protocol: Optional[ManaV2NullableRoutingProtocol] = Field(default=None, alias="sourceProtocol") stale: Optional[ManaV2NullableStalePurge] = None __properties: ClassVar[List[str]] = ["community", "prefixSet", "protocolRouteType", "routeTag", "seq", "sourceInterface", "sourceProtocol", "stale"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,7 +57,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_routing_policy_statement.py b/graphiant_sdk/models/mana_v2_routing_policy_statement.py index c73b8222..72094810 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_statement.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_statement.py @@ -24,21 +24,19 @@ from graphiant_sdk.models.mana_v2_routing_policy_statement_match import ManaV2RoutingPolicyStatementMatch from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RoutingPolicyStatement(BaseModel): """ ManaV2RoutingPolicyStatement """ # noqa: E501 actions: Optional[List[ManaV2RoutingPolicyStatementAction]] = None - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None matches: Optional[List[ManaV2RoutingPolicyStatementMatch]] = None - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["actions", "id", "matches", "seq"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_routing_policy_statement_action.py b/graphiant_sdk/models/mana_v2_routing_policy_statement_action.py index 06e0ecc7..2630aeb2 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_statement_action.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_statement_action.py @@ -23,29 +23,27 @@ from graphiant_sdk.models.mana_v2_community_type import ManaV2CommunityType from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RoutingPolicyStatementAction(BaseModel): """ ManaV2RoutingPolicyStatementAction """ # noqa: E501 - administrative_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="administrativeDistance", json_schema_extra={"examples": [123]}) - aspath_prepend: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="aspathPrepend", json_schema_extra={"examples": [123]}) - bgp_set_next_hop: Optional[StrictStr] = Field(default=None, alias="bgpSetNextHop", json_schema_extra={"examples": ["example string"]}) - call_policy: Optional[StrictStr] = Field(default=None, alias="callPolicy", json_schema_extra={"examples": ["example string"]}) + administrative_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="administrativeDistance") + aspath_prepend: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="aspathPrepend") + bgp_set_next_hop: Optional[StrictStr] = Field(default=None, alias="bgpSetNextHop") + call_policy: Optional[StrictStr] = Field(default=None, alias="callPolicy") community: Optional[ManaV2CommunityType] = None - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - local_pref: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localPref", json_schema_extra={"examples": [123]}) - metric_absolute: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="metricAbsolute", json_schema_extra={"examples": [123]}) - metric_modifier: Optional[StrictInt] = Field(default=None, alias="metricModifier", json_schema_extra={"examples": [123]}) - result: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - weight: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + id: Optional[StrictInt] = None + local_pref: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localPref") + metric_absolute: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="metricAbsolute") + metric_modifier: Optional[StrictInt] = Field(default=None, alias="metricModifier") + result: Optional[StrictStr] = None + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + weight: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["administrativeDistance", "aspathPrepend", "bgpSetNextHop", "callPolicy", "community", "id", "localPref", "metricAbsolute", "metricModifier", "result", "seq", "weight"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_routing_policy_statement_match.py b/graphiant_sdk/models/mana_v2_routing_policy_statement_match.py index 50c79e6d..68464c25 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_statement_match.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_statement_match.py @@ -23,26 +23,24 @@ from graphiant_sdk.models.mana_v2_route_tag import ManaV2RouteTag from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2RoutingPolicyStatementMatch(BaseModel): """ ManaV2RoutingPolicyStatementMatch """ # noqa: E501 community: Optional[List[StrictStr]] = None - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - prefix_set: Optional[StrictStr] = Field(default=None, alias="prefixSet", json_schema_extra={"examples": ["example string"]}) - protocol_route_type: Optional[StrictStr] = Field(default=None, alias="protocolRouteType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + id: Optional[StrictInt] = None + prefix_set: Optional[StrictStr] = Field(default=None, alias="prefixSet") + protocol_route_type: Optional[StrictStr] = Field(default=None, alias="protocolRouteType") route_tag: Optional[ManaV2RouteTag] = Field(default=None, alias="routeTag") - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - source_interface: Optional[StrictStr] = Field(default=None, alias="sourceInterface", json_schema_extra={"examples": ["example string"]}) - source_protocol: Optional[StrictStr] = Field(default=None, alias="sourceProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - stale_purge: Optional[StrictBool] = Field(default=None, alias="stalePurge", json_schema_extra={"examples": [True]}) + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + source_interface: Optional[StrictStr] = Field(default=None, alias="sourceInterface") + source_protocol: Optional[StrictStr] = Field(default=None, alias="sourceProtocol") + stale_purge: Optional[StrictBool] = Field(default=None, alias="stalePurge") __properties: ClassVar[List[str]] = ["community", "id", "prefixSet", "protocolRouteType", "routeTag", "seq", "sourceInterface", "sourceProtocol", "stalePurge"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_sak_configuration.py b/graphiant_sdk/models/mana_v2_sak_configuration.py index 5d4c2d0a..2a5aa936 100644 --- a/graphiant_sdk/models/mana_v2_sak_configuration.py +++ b/graphiant_sdk/models/mana_v2_sak_configuration.py @@ -23,23 +23,21 @@ from graphiant_sdk.models.mana_v2_nullable_ma_csec_replay_protection_window_size import ManaV2NullableMaCsecReplayProtectionWindowSize from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SakConfiguration(BaseModel): """ ManaV2SakConfiguration """ # noqa: E501 - cipher_suite: Optional[StrictStr] = Field(default=None, alias="cipherSuite", json_schema_extra={"examples": ["ENUM_VALUE"]}) - lag_member_interface_id: Optional[StrictInt] = Field(default=None, description="The interface ID (required for when each lag member has a different MACsec configuration - when split_sak_config_by_lag_member is true) (required)", alias="lagMemberInterfaceId", json_schema_extra={"examples": [1]}) + cipher_suite: Optional[StrictStr] = Field(default=None, alias="cipherSuite") + lag_member_interface_id: Optional[StrictInt] = Field(default=None, description="The interface ID (required for when each lag member has a different MACsec configuration - when split_sak_config_by_lag_member is true) (required)", alias="lagMemberInterfaceId") nullable_rekey_interval: Optional[ManaV2NullableMaCsecRekeyInterval] = Field(default=None, alias="nullableRekeyInterval") nullable_replay_protection_window_size: Optional[ManaV2NullableMaCsecReplayProtectionWindowSize] = Field(default=None, alias="nullableReplayProtectionWindowSize") - rekey_interval: Optional[StrictInt] = Field(default=None, alias="rekeyInterval", json_schema_extra={"examples": [1234567891011]}) - replay_protection_window_size: Optional[StrictInt] = Field(default=None, alias="replayProtectionWindowSize", json_schema_extra={"examples": [1234567891011]}) + rekey_interval: Optional[StrictInt] = Field(default=None, alias="rekeyInterval") + replay_protection_window_size: Optional[StrictInt] = Field(default=None, alias="replayProtectionWindowSize") __properties: ClassVar[List[str]] = ["cipherSuite", "lagMemberInterfaceId", "nullableRekeyInterval", "nullableReplayProtectionWindowSize", "rekeyInterval", "replayProtectionWindowSize"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_security_policy_rule.py b/graphiant_sdk/models/mana_v2_security_policy_rule.py index 1a55a9c1..a647fe79 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_rule.py +++ b/graphiant_sdk/models/mana_v2_security_policy_rule.py @@ -23,22 +23,20 @@ from graphiant_sdk.models.mana_v2_policy_match import ManaV2PolicyMatch from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SecurityPolicyRule(BaseModel): """ ManaV2SecurityPolicyRule """ # noqa: E501 - action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - implicit: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + action: Optional[StrictStr] = None + implicit: Optional[StrictBool] = None match: Optional[ManaV2PolicyMatch] = None - policy_rule_index: Optional[StrictInt] = Field(default=None, alias="policyRuleIndex", json_schema_extra={"examples": [1234567891011]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + policy_rule_index: Optional[StrictInt] = Field(default=None, alias="policyRuleIndex") + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["action", "implicit", "match", "policyRuleIndex", "seq"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_security_policy_rule_row.py b/graphiant_sdk/models/mana_v2_security_policy_rule_row.py index 98cf8e23..abdc6bc3 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_rule_row.py +++ b/graphiant_sdk/models/mana_v2_security_policy_rule_row.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_site_device_stub import ManaV2SiteDeviceStub from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SecurityPolicyRuleRow(BaseModel): """ @@ -31,12 +30,11 @@ class ManaV2SecurityPolicyRuleRow(BaseModel): """ # noqa: E501 device: Optional[ManaV2SiteDeviceStub] = None security_policy_rule: Optional[ManaV2SecurityPolicyRule] = Field(default=None, alias="securityPolicyRule") - vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName", json_schema_extra={"examples": ["example string"]}) + vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName") __properties: ClassVar[List[str]] = ["device", "securityPolicyRule", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_security_policy_ruleset.py b/graphiant_sdk/models/mana_v2_security_policy_ruleset.py index d4a21f49..5cc4e119 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_ruleset.py +++ b/graphiant_sdk/models/mana_v2_security_policy_ruleset.py @@ -23,25 +23,23 @@ from graphiant_sdk.models.mana_v2_security_policy_ruleset_rule import ManaV2SecurityPolicyRulesetRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SecurityPolicyRuleset(BaseModel): """ ManaV2SecurityPolicyRuleset """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage", json_schema_extra={"examples": ["example string"]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage") + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + id: Optional[StrictInt] = None + index: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + name: Optional[StrictStr] = None rules: Optional[List[ManaV2SecurityPolicyRulesetRule]] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "errorMessage", "globalId", "id", "index", "name", "rules", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_security_policy_ruleset_config.py b/graphiant_sdk/models/mana_v2_security_policy_ruleset_config.py index 0d5742a5..f909b056 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_ruleset_config.py +++ b/graphiant_sdk/models/mana_v2_security_policy_ruleset_config.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.mana_v2_security_policy_ruleset_config_nullable_rule import ManaV2SecurityPolicyRulesetConfigNullableRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SecurityPolicyRulesetConfig(BaseModel): """ ManaV2SecurityPolicyRulesetConfig """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync", json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync") + name: Optional[StrictStr] = None rules: Optional[Dict[str, ManaV2SecurityPolicyRulesetConfigNullableRule]] = None __properties: ClassVar[List[str]] = ["description", "globalId", "isGlobalSync", "name", "rules"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_security_policy_ruleset_config_nullable_rule.py b/graphiant_sdk/models/mana_v2_security_policy_ruleset_config_nullable_rule.py index c200589c..656680fb 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_ruleset_config_nullable_rule.py +++ b/graphiant_sdk/models/mana_v2_security_policy_ruleset_config_nullable_rule.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_security_policy_ruleset_config_nullable_rule_rule import ManaV2SecurityPolicyRulesetConfigNullableRuleRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SecurityPolicyRulesetConfigNullableRule(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2SecurityPolicyRulesetConfigNullableRule(BaseModel): __properties: ClassVar[List[str]] = ["rule"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_security_policy_ruleset_config_nullable_rule_rule.py b/graphiant_sdk/models/mana_v2_security_policy_ruleset_config_nullable_rule_rule.py index 18ff59b2..770a9b8d 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_ruleset_config_nullable_rule_rule.py +++ b/graphiant_sdk/models/mana_v2_security_policy_ruleset_config_nullable_rule_rule.py @@ -24,27 +24,25 @@ from graphiant_sdk.models.mana_v2_nullable_meter_rates import ManaV2NullableMeterRates from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SecurityPolicyRulesetConfigNullableRuleRule(BaseModel): """ ManaV2SecurityPolicyRulesetConfigNullableRuleRule """ # noqa: E501 - action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + action: Optional[StrictStr] = None + description: Optional[StrictStr] = None downlink_burst_rate: Optional[ManaV2NullableMeterRates] = Field(default=None, alias="downlinkBurstRate") downlink_policer_rate: Optional[ManaV2NullableMeterRates] = Field(default=None, alias="downlinkPolicerRate") - logging: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + logging: Optional[StrictBool] = None match: Optional[ManaV2ForwardingPolicyMatchConfig] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + name: Optional[StrictStr] = None + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None uplink_burst_rate: Optional[ManaV2NullableMeterRates] = Field(default=None, alias="uplinkBurstRate") uplink_policer_rate: Optional[ManaV2NullableMeterRates] = Field(default=None, alias="uplinkPolicerRate") __properties: ClassVar[List[str]] = ["action", "description", "downlinkBurstRate", "downlinkPolicerRate", "logging", "match", "name", "seq", "uplinkBurstRate", "uplinkPolicerRate"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_security_policy_ruleset_rule.py b/graphiant_sdk/models/mana_v2_security_policy_ruleset_rule.py index b2783fe9..fe800892 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_ruleset_rule.py +++ b/graphiant_sdk/models/mana_v2_security_policy_ruleset_rule.py @@ -23,29 +23,27 @@ from graphiant_sdk.models.mana_v2_forwarding_policy_match import ManaV2ForwardingPolicyMatch from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SecurityPolicyRulesetRule(BaseModel): """ ManaV2SecurityPolicyRulesetRule """ # noqa: E501 - action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - downlink_burst_rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="downlinkBurstRate", json_schema_extra={"examples": [123]}) - downlink_policer_rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="downlinkPolicerRate", json_schema_extra={"examples": [123]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - logging: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + action: Optional[StrictStr] = None + description: Optional[StrictStr] = None + downlink_burst_rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="downlinkBurstRate") + downlink_policer_rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="downlinkPolicerRate") + id: Optional[StrictInt] = None + index: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + logging: Optional[StrictBool] = None match: Optional[ManaV2ForwardingPolicyMatch] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - uplink_burst_rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="uplinkBurstRate", json_schema_extra={"examples": [123]}) - uplink_policer_rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="uplinkPolicerRate", json_schema_extra={"examples": [123]}) + name: Optional[StrictStr] = None + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + uplink_burst_rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="uplinkBurstRate") + uplink_policer_rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="uplinkPolicerRate") __properties: ClassVar[List[str]] = ["action", "description", "downlinkBurstRate", "downlinkPolicerRate", "id", "index", "logging", "match", "name", "seq", "uplinkBurstRate", "uplinkPolicerRate"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_security_zone.py b/graphiant_sdk/models/mana_v2_security_zone.py index 5a74a05c..5b6f0c95 100644 --- a/graphiant_sdk/models/mana_v2_security_zone.py +++ b/graphiant_sdk/models/mana_v2_security_zone.py @@ -21,21 +21,19 @@ 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 ManaV2SecurityZone(BaseModel): """ ManaV2SecurityZone """ # noqa: E501 - inside: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - outside: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - ruleset: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - tcp_protection: Optional[StrictBool] = Field(default=None, alias="tcpProtection", json_schema_extra={"examples": [True]}) + inside: Optional[StrictStr] = None + outside: Optional[StrictStr] = None + ruleset: Optional[StrictStr] = None + tcp_protection: Optional[StrictBool] = Field(default=None, alias="tcpProtection") __properties: ClassVar[List[str]] = ["inside", "outside", "ruleset", "tcpProtection"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_security_zone_config.py b/graphiant_sdk/models/mana_v2_security_zone_config.py index 06bdfb02..b33825d6 100644 --- a/graphiant_sdk/models/mana_v2_security_zone_config.py +++ b/graphiant_sdk/models/mana_v2_security_zone_config.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_nullable_security_zone_pair_config import ManaV2NullableSecurityZonePairConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SecurityZoneConfig(BaseModel): """ ManaV2SecurityZoneConfig """ # noqa: E501 - inside: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + inside: Optional[StrictStr] = None pairs: Optional[Dict[str, ManaV2NullableSecurityZonePairConfig]] = None __properties: ClassVar[List[str]] = ["inside", "pairs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_security_zone_pair_config.py b/graphiant_sdk/models/mana_v2_security_zone_pair_config.py index a0df8a2a..e137377f 100644 --- a/graphiant_sdk/models/mana_v2_security_zone_pair_config.py +++ b/graphiant_sdk/models/mana_v2_security_zone_pair_config.py @@ -21,20 +21,18 @@ 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 ManaV2SecurityZonePairConfig(BaseModel): """ ManaV2SecurityZonePairConfig """ # noqa: E501 - outside: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - ruleset: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - tcp_protection: Optional[StrictBool] = Field(default=None, alias="tcpProtection", json_schema_extra={"examples": [True]}) + outside: Optional[StrictStr] = None + ruleset: Optional[StrictStr] = None + tcp_protection: Optional[StrictBool] = Field(default=None, alias="tcpProtection") __properties: ClassVar[List[str]] = ["outside", "ruleset", "tcpProtection"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_single_route_tag.py b/graphiant_sdk/models/mana_v2_single_route_tag.py index d642b733..992e73a4 100644 --- a/graphiant_sdk/models/mana_v2_single_route_tag.py +++ b/graphiant_sdk/models/mana_v2_single_route_tag.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_single_route_tag_route_tag_element import ManaV2SingleRouteTagRouteTagElement from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SingleRouteTag(BaseModel): """ @@ -34,8 +33,7 @@ class ManaV2SingleRouteTag(BaseModel): __properties: ClassVar[List[str]] = ["levelOne", "levelTwo", "levelZero"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_single_route_tag_route_tag_element.py b/graphiant_sdk/models/mana_v2_single_route_tag_route_tag_element.py index a0a58d1d..b875cc17 100644 --- a/graphiant_sdk/models/mana_v2_single_route_tag_route_tag_element.py +++ b/graphiant_sdk/models/mana_v2_single_route_tag_route_tag_element.py @@ -21,20 +21,18 @@ 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 ManaV2SingleRouteTagRouteTagElement(BaseModel): """ ManaV2SingleRouteTagRouteTagElement """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - tag: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - tag_value: Optional[StrictInt] = Field(default=None, alias="tagValue", json_schema_extra={"examples": [123]}) + id: Optional[StrictInt] = None + tag: Optional[StrictStr] = None + tag_value: Optional[StrictInt] = Field(default=None, alias="tagValue") __properties: ClassVar[List[str]] = ["id", "tag", "tagValue"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_site.py b/graphiant_sdk/models/mana_v2_site.py index 951b4d83..d08fd0c3 100644 --- a/graphiant_sdk/models/mana_v2_site.py +++ b/graphiant_sdk/models/mana_v2_site.py @@ -26,31 +26,29 @@ from graphiant_sdk.models.mana_v2_site_device_stub import ManaV2SiteDeviceStub from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2Site(BaseModel): """ ManaV2Site """ # noqa: E501 - address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + address: Optional[StrictStr] = None created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") devices: Optional[List[ManaV2SiteDeviceStub]] = None - edge_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="edgeCount", json_schema_extra={"examples": [123]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + edge_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="edgeCount") + id: Optional[StrictInt] = None location: Optional[ManaV2Location] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - notes: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - policy_reference_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="policyReferenceCount", json_schema_extra={"examples": [123]}) + name: Optional[StrictStr] = None + notes: Optional[StrictStr] = None + policy_reference_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="policyReferenceCount") policy_tag: Optional[ManaV2SingleRouteTag] = Field(default=None, alias="policyTag") - segment_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="segmentCount", json_schema_extra={"examples": [123]}) - site_list_reference_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteListReferenceCount", json_schema_extra={"examples": [123]}) + segment_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="segmentCount") + site_list_reference_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteListReferenceCount") tags: Optional[List[StrictStr]] = None updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["address", "createdAt", "devices", "edgeCount", "id", "location", "name", "notes", "policyReferenceCount", "policyTag", "segmentCount", "siteListReferenceCount", "tags", "updatedAt"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -62,7 +60,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_site_device_stub.py b/graphiant_sdk/models/mana_v2_site_device_stub.py index 5408c80c..357fe8cf 100644 --- a/graphiant_sdk/models/mana_v2_site_device_stub.py +++ b/graphiant_sdk/models/mana_v2_site_device_stub.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2SiteDeviceStub(BaseModel): """ ManaV2SiteDeviceStub """ # noqa: E501 - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + hostname: Optional[StrictStr] = None + id: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["hostname", "id"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_site_device_summary.py b/graphiant_sdk/models/mana_v2_site_device_summary.py index 6c245daf..71c53df4 100644 --- a/graphiant_sdk/models/mana_v2_site_device_summary.py +++ b/graphiant_sdk/models/mana_v2_site_device_summary.py @@ -17,24 +17,23 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictInt, 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 ManaV2SiteDeviceSummary(BaseModel): """ ManaV2SiteDeviceSummary """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - __properties: ClassVar[List[str]] = ["deviceId", "hostname"] + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + hostname: Optional[StrictStr] = None + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + __properties: ClassVar[List[str]] = ["deviceId", "hostname", "siteId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -84,7 +84,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "deviceId": obj.get("deviceId"), - "hostname": obj.get("hostname") + "hostname": obj.get("hostname"), + "siteId": obj.get("siteId") }) return _obj diff --git a/graphiant_sdk/models/mana_v2_site_information.py b/graphiant_sdk/models/mana_v2_site_information.py index 52e21804..146c054a 100644 --- a/graphiant_sdk/models/mana_v2_site_information.py +++ b/graphiant_sdk/models/mana_v2_site_information.py @@ -21,7 +21,6 @@ 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 ManaV2SiteInformation(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2SiteInformation(BaseModel): __properties: ClassVar[List[str]] = ["siteLists", "sites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_site_lan_segment_device_buckets.py b/graphiant_sdk/models/mana_v2_site_lan_segment_device_buckets.py index 42dc484d..abd7751e 100644 --- a/graphiant_sdk/models/mana_v2_site_lan_segment_device_buckets.py +++ b/graphiant_sdk/models/mana_v2_site_lan_segment_device_buckets.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_site_device_summary import ManaV2SiteDeviceSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SiteLanSegmentDeviceBuckets(BaseModel): """ @@ -33,8 +32,7 @@ class ManaV2SiteLanSegmentDeviceBuckets(BaseModel): __properties: ClassVar[List[str]] = ["lanSegmentExists", "lanSegmentMissing"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_site_list.py b/graphiant_sdk/models/mana_v2_site_list.py index 6570a113..73778749 100644 --- a/graphiant_sdk/models/mana_v2_site_list.py +++ b/graphiant_sdk/models/mana_v2_site_list.py @@ -22,21 +22,19 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SiteList(BaseModel): """ ManaV2SiteList """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - policy_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="policyCount", json_schema_extra={"examples": [123]}) - site_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteCount", json_schema_extra={"examples": [123]}) - site_list_id: Optional[StrictInt] = Field(default=None, alias="siteListId", json_schema_extra={"examples": [1234567891011]}) + name: Optional[StrictStr] = None + policy_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="policyCount") + site_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteCount") + site_list_id: Optional[StrictInt] = Field(default=None, alias="siteListId") __properties: ClassVar[List[str]] = ["name", "policyCount", "siteCount", "siteListId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_site_list_entry.py b/graphiant_sdk/models/mana_v2_site_list_entry.py index 18f27664..91b637a1 100644 --- a/graphiant_sdk/models/mana_v2_site_list_entry.py +++ b/graphiant_sdk/models/mana_v2_site_list_entry.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_route_tag_id import ManaV2RouteTagId from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SiteListEntry(BaseModel): """ ManaV2SiteListEntry """ # noqa: E501 - regular: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + regular: Optional[StrictInt] = None tag: Optional[ManaV2RouteTagId] = None __properties: ClassVar[List[str]] = ["regular", "tag"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_site_list_site_entry.py b/graphiant_sdk/models/mana_v2_site_list_site_entry.py index a8b9e8fd..7fda6234 100644 --- a/graphiant_sdk/models/mana_v2_site_list_site_entry.py +++ b/graphiant_sdk/models/mana_v2_site_list_site_entry.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.mana_v2_route_tag_id import ManaV2RouteTagId from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SiteListSiteEntry(BaseModel): """ ManaV2SiteListSiteEntry """ # noqa: E501 created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - edge_references: Optional[StrictInt] = Field(default=None, alias="edgeReferences", json_schema_extra={"examples": [123]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) + edge_references: Optional[StrictInt] = Field(default=None, alias="edgeReferences") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") tag: Optional[List[ManaV2RouteTagId]] = None __properties: ClassVar[List[str]] = ["createdAt", "edgeReferences", "siteName", "tag"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_site_to_site_i_psec.py b/graphiant_sdk/models/mana_v2_site_to_site_i_psec.py index a5dbaa29..fce6c2b1 100644 --- a/graphiant_sdk/models/mana_v2_site_to_site_i_psec.py +++ b/graphiant_sdk/models/mana_v2_site_to_site_i_psec.py @@ -24,35 +24,33 @@ from graphiant_sdk.models.mana_v2_site_to_site_i_psec_i_psec_static_routes import ManaV2SiteToSiteIPsecIPsecStaticRoutes from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SiteToSiteIPsec(BaseModel): """ ManaV2SiteToSiteIPsec """ # noqa: E501 bgp: Optional[ManaV2SiteToSiteIPsecIPsecBgpRoutes] = None - destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress", json_schema_extra={"examples": ["example string"]}) - ike_initiator: Optional[StrictBool] = Field(default=None, alias="ikeInitiator", json_schema_extra={"examples": [True]}) - ipsec_label: Optional[StrictStr] = Field(default=None, alias="ipsecLabel", json_schema_extra={"examples": ["ENUM_VALUE"]}) - lan: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - local_address_v4: Optional[StrictStr] = Field(default=None, alias="localAddressV4", json_schema_extra={"examples": ["example string"]}) - local_address_v6: Optional[StrictStr] = Field(default=None, alias="localAddressV6", json_schema_extra={"examples": ["example string"]}) - local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit", json_schema_extra={"examples": ["example string"]}) - local_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="localIkePeerIdentity", json_schema_extra={"examples": ["example string"]}) - mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - preshared_key: Optional[StrictStr] = Field(default=None, alias="presharedKey", json_schema_extra={"examples": ["example string"]}) - remote_address_v4: Optional[StrictStr] = Field(default=None, alias="remoteAddressV4", json_schema_extra={"examples": ["example string"]}) - remote_address_v6: Optional[StrictStr] = Field(default=None, alias="remoteAddressV6", json_schema_extra={"examples": ["example string"]}) - remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="remoteIkePeerIdentity", json_schema_extra={"examples": ["example string"]}) + destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress") + ike_initiator: Optional[StrictBool] = Field(default=None, alias="ikeInitiator") + ipsec_label: Optional[StrictStr] = Field(default=None, alias="ipsecLabel") + lan: Optional[StrictStr] = None + local_address_v4: Optional[StrictStr] = Field(default=None, alias="localAddressV4") + local_address_v6: Optional[StrictStr] = Field(default=None, alias="localAddressV6") + local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit") + local_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="localIkePeerIdentity") + mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + name: Optional[StrictStr] = None + preshared_key: Optional[StrictStr] = Field(default=None, alias="presharedKey") + remote_address_v4: Optional[StrictStr] = Field(default=None, alias="remoteAddressV4") + remote_address_v6: Optional[StrictStr] = Field(default=None, alias="remoteAddressV6") + remote_ike_peer_identity: Optional[StrictStr] = Field(default=None, alias="remoteIkePeerIdentity") static: Optional[ManaV2SiteToSiteIPsecIPsecStaticRoutes] = None - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss", json_schema_extra={"examples": [123]}) - vpn_profile: Optional[StrictStr] = Field(default=None, alias="vpnProfile", json_schema_extra={"examples": ["example string"]}) + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + vpn_profile: Optional[StrictStr] = Field(default=None, alias="vpnProfile") __properties: ClassVar[List[str]] = ["bgp", "destinationAddress", "ikeInitiator", "ipsecLabel", "lan", "localAddressV4", "localAddressV6", "localCircuit", "localIkePeerIdentity", "mtu", "name", "presharedKey", "remoteAddressV4", "remoteAddressV6", "remoteIkePeerIdentity", "static", "tcpMss", "vpnProfile"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -64,7 +62,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_site_to_site_i_psec_i_psec_bgp_routes.py b/graphiant_sdk/models/mana_v2_site_to_site_i_psec_i_psec_bgp_routes.py index ab440917..737fb286 100644 --- a/graphiant_sdk/models/mana_v2_site_to_site_i_psec_i_psec_bgp_routes.py +++ b/graphiant_sdk/models/mana_v2_site_to_site_i_psec_i_psec_bgp_routes.py @@ -23,23 +23,21 @@ from graphiant_sdk.models.mana_v2_bgp_neighbor_address_family import ManaV2BgpNeighborAddressFamily from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SiteToSiteIPsecIPsecBgpRoutes(BaseModel): """ ManaV2SiteToSiteIPsecIPsecBgpRoutes """ # noqa: E501 address_families: Optional[List[ManaV2BgpNeighborAddressFamily]] = Field(default=None, alias="addressFamilies") - hold_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="holdTimer", json_schema_extra={"examples": [123]}) - keepalive_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="keepaliveTimer", json_schema_extra={"examples": [123]}) - md5_password: Optional[StrictStr] = Field(default=None, alias="md5Password", json_schema_extra={"examples": ["example string"]}) - peer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="peerAsn", json_schema_extra={"examples": [123]}) - send_community: Optional[StrictBool] = Field(default=None, alias="sendCommunity", json_schema_extra={"examples": [True]}) + hold_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="holdTimer") + keepalive_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="keepaliveTimer") + md5_password: Optional[StrictStr] = Field(default=None, alias="md5Password") + peer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="peerAsn") + send_community: Optional[StrictBool] = Field(default=None, alias="sendCommunity") __properties: ClassVar[List[str]] = ["addressFamilies", "holdTimer", "keepaliveTimer", "md5Password", "peerAsn", "sendCommunity"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_site_to_site_i_psec_i_psec_static_routes.py b/graphiant_sdk/models/mana_v2_site_to_site_i_psec_i_psec_static_routes.py index 35f58b0a..e12510cd 100644 --- a/graphiant_sdk/models/mana_v2_site_to_site_i_psec_i_psec_static_routes.py +++ b/graphiant_sdk/models/mana_v2_site_to_site_i_psec_i_psec_static_routes.py @@ -21,7 +21,6 @@ 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 ManaV2SiteToSiteIPsecIPsecStaticRoutes(BaseModel): """ @@ -31,8 +30,7 @@ class ManaV2SiteToSiteIPsecIPsecStaticRoutes(BaseModel): __properties: ClassVar[List[str]] = ["destinationPrefix"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_sla_conformance.py b/graphiant_sdk/models/mana_v2_sla_conformance.py index 74734cdb..bdb87bd1 100644 --- a/graphiant_sdk/models/mana_v2_sla_conformance.py +++ b/graphiant_sdk/models/mana_v2_sla_conformance.py @@ -21,20 +21,18 @@ 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 ManaV2SlaConformance(BaseModel): """ ManaV2SlaConformance """ # noqa: E501 - dampening_factor: Optional[StrictInt] = Field(default=None, alias="dampeningFactor", json_schema_extra={"examples": [1234567891011]}) - duration: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - interval: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + dampening_factor: Optional[StrictInt] = Field(default=None, alias="dampeningFactor") + duration: Optional[StrictInt] = None + interval: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["dampeningFactor", "duration", "interval"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_sla_information.py b/graphiant_sdk/models/mana_v2_sla_information.py index 5b1cafb7..aafd9a53 100644 --- a/graphiant_sdk/models/mana_v2_sla_information.py +++ b/graphiant_sdk/models/mana_v2_sla_information.py @@ -21,20 +21,18 @@ 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 ManaV2SlaInformation(BaseModel): """ ManaV2SlaInformation """ # noqa: E501 - backup_circuit: Optional[StrictStr] = Field(default=None, description="Backup circuit for the SLA information", alias="backupCircuit", json_schema_extra={"examples": ["ENUM_VALUE"]}) - var_class: Optional[StrictStr] = Field(default=None, description="Class for the SLA information", alias="class", json_schema_extra={"examples": ["ENUM_VALUE"]}) - primary_circuit: Optional[StrictStr] = Field(default=None, description="Primary circuit for the SLA information", alias="primaryCircuit", json_schema_extra={"examples": ["ENUM_VALUE"]}) + backup_circuit: Optional[StrictStr] = Field(default=None, description="Backup circuit for the SLA information", alias="backupCircuit") + var_class: Optional[StrictStr] = Field(default=None, description="Class for the SLA information", alias="class") + primary_circuit: Optional[StrictStr] = Field(default=None, description="Primary circuit for the SLA information", alias="primaryCircuit") __properties: ClassVar[List[str]] = ["backupCircuit", "class", "primaryCircuit"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp.py b/graphiant_sdk/models/mana_v2_snmp.py index 19506591..72f7b258 100644 --- a/graphiant_sdk/models/mana_v2_snmp.py +++ b/graphiant_sdk/models/mana_v2_snmp.py @@ -28,46 +28,44 @@ from graphiant_sdk.models.mana_v2_snmp_vacm_group import ManaV2SnmpVacmGroup from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2Snmp(BaseModel): """ ManaV2Snmp """ # noqa: E501 communities: Optional[List[ManaV2SnmpCommunity]] = None - engine_enable_authen_traps: Optional[StrictBool] = Field(default=None, alias="engineEnableAuthenTraps", json_schema_extra={"examples": [True]}) - engine_enable_high_memory_traps: Optional[StrictBool] = Field(default=None, alias="engineEnableHighMemoryTraps", json_schema_extra={"examples": [True]}) - engine_enable_high_cpu_traps: Optional[StrictBool] = Field(default=None, alias="engineEnableHighCpuTraps", json_schema_extra={"examples": [True]}) - engine_enable_local_acess_v4: Optional[StrictBool] = Field(default=None, alias="engineEnableLocalAcessV4", json_schema_extra={"examples": [True]}) - engine_enable_local_acess_v6: Optional[StrictBool] = Field(default=None, alias="engineEnableLocalAcessV6", json_schema_extra={"examples": [True]}) - engine_enable_user_hints: Optional[StrictBool] = Field(default=None, alias="engineEnableUserHints", json_schema_extra={"examples": [True]}) - engine_enable_user_validation: Optional[StrictBool] = Field(default=None, alias="engineEnableUserValidation", json_schema_extra={"examples": [True]}) - engine_enabled: Optional[StrictBool] = Field(default=None, alias="engineEnabled", json_schema_extra={"examples": [True]}) + engine_enable_authen_traps: Optional[StrictBool] = Field(default=None, alias="engineEnableAuthenTraps") + engine_enable_high_memory_traps: Optional[StrictBool] = Field(default=None, alias="engineEnableHighMemoryTraps") + engine_enable_high_cpu_traps: Optional[StrictBool] = Field(default=None, alias="engineEnableHighCpuTraps") + engine_enable_local_acess_v4: Optional[StrictBool] = Field(default=None, alias="engineEnableLocalAcessV4") + engine_enable_local_acess_v6: Optional[StrictBool] = Field(default=None, alias="engineEnableLocalAcessV6") + engine_enable_user_hints: Optional[StrictBool] = Field(default=None, alias="engineEnableUserHints") + engine_enable_user_validation: Optional[StrictBool] = Field(default=None, alias="engineEnableUserValidation") + engine_enabled: Optional[StrictBool] = Field(default=None, alias="engineEnabled") engine_endpoints: Optional[List[ManaV2SnmpEngineEndpoint]] = Field(default=None, alias="engineEndpoints") - engine_id_admin_octets: Optional[StrictStr] = Field(default=None, alias="engineIdAdminOctets", json_schema_extra={"examples": ["example string"]}) - engine_id_admin_text: Optional[StrictStr] = Field(default=None, alias="engineIdAdminText", json_schema_extra={"examples": ["example string"]}) - engine_id_ipv4: Optional[StrictStr] = Field(default=None, alias="engineIdIpv4", json_schema_extra={"examples": ["example string"]}) - engine_id_ipv6: Optional[StrictStr] = Field(default=None, alias="engineIdIpv6", json_schema_extra={"examples": ["example string"]}) - engine_id_mac: Optional[StrictStr] = Field(default=None, alias="engineIdMac", json_schema_extra={"examples": ["example string"]}) - engine_id_raw: Optional[StrictStr] = Field(default=None, alias="engineIdRaw", json_schema_extra={"examples": ["example string"]}) - error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage", json_schema_extra={"examples": ["example string"]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + engine_id_admin_octets: Optional[StrictStr] = Field(default=None, alias="engineIdAdminOctets") + engine_id_admin_text: Optional[StrictStr] = Field(default=None, alias="engineIdAdminText") + engine_id_ipv4: Optional[StrictStr] = Field(default=None, alias="engineIdIpv4") + engine_id_ipv6: Optional[StrictStr] = Field(default=None, alias="engineIdIpv6") + engine_id_mac: Optional[StrictStr] = Field(default=None, alias="engineIdMac") + engine_id_raw: Optional[StrictStr] = Field(default=None, alias="engineIdRaw") + error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage") + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None notify_filter_profiles: Optional[List[ManaV2SnmpNotifyFilterProfile]] = Field(default=None, alias="notifyFilterProfiles") - snmp_version: Optional[StrictStr] = Field(default=None, alias="snmpVersion", json_schema_extra={"examples": ["ENUM_VALUE"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + snmp_version: Optional[StrictStr] = Field(default=None, alias="snmpVersion") + status: Optional[StrictStr] = None targets: Optional[List[ManaV2SnmpTarget]] = None usm_local_users: Optional[List[ManaV2SnmpUsmLocalUser]] = Field(default=None, alias="usmLocalUsers") usm_remote_users: Optional[List[ManaV2SnmpUsmRemoteUser]] = Field(default=None, alias="usmRemoteUsers") - v2c_enabled: Optional[StrictBool] = Field(default=None, alias="v2cEnabled", json_schema_extra={"examples": [True]}) - v3_enabled: Optional[StrictBool] = Field(default=None, alias="v3Enabled", json_schema_extra={"examples": [True]}) + v2c_enabled: Optional[StrictBool] = Field(default=None, alias="v2cEnabled") + v3_enabled: Optional[StrictBool] = Field(default=None, alias="v3Enabled") vacm_groups: Optional[List[ManaV2SnmpVacmGroup]] = Field(default=None, alias="vacmGroups") __properties: ClassVar[List[str]] = ["communities", "engineEnableAuthenTraps", "engineEnableHighMemoryTraps", "engineEnableHighCpuTraps", "engineEnableLocalAcessV4", "engineEnableLocalAcessV6", "engineEnableUserHints", "engineEnableUserValidation", "engineEnabled", "engineEndpoints", "engineIdAdminOctets", "engineIdAdminText", "engineIdIpv4", "engineIdIpv6", "engineIdMac", "engineIdRaw", "errorMessage", "globalId", "id", "name", "notifyFilterProfiles", "snmpVersion", "status", "targets", "usmLocalUsers", "usmRemoteUsers", "v2cEnabled", "v3Enabled", "vacmGroups"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -79,7 +77,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_community.py b/graphiant_sdk/models/mana_v2_snmp_community.py index 00f02c80..accba494 100644 --- a/graphiant_sdk/models/mana_v2_snmp_community.py +++ b/graphiant_sdk/models/mana_v2_snmp_community.py @@ -21,19 +21,17 @@ 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 ManaV2SnmpCommunity(BaseModel): """ ManaV2SnmpCommunity """ # noqa: E501 - community_string: Optional[StrictStr] = Field(default=None, alias="communityString", json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + community_string: Optional[StrictStr] = Field(default=None, alias="communityString") + id: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["communityString", "id"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_config.py b/graphiant_sdk/models/mana_v2_snmp_config.py index 29df2374..63c1701a 100644 --- a/graphiant_sdk/models/mana_v2_snmp_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_config.py @@ -29,45 +29,43 @@ from graphiant_sdk.models.mana_v2_nullable_vacm_group_value import ManaV2NullableVacmGroupValue from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SnmpConfig(BaseModel): """ ManaV2SnmpConfig """ # noqa: E501 communities: Optional[Dict[str, ManaV2NullableSnmpCommunityConfigValue]] = None - engine_authen_traps: Optional[StrictBool] = Field(default=None, alias="engineAuthenTraps", json_schema_extra={"examples": [True]}) - engine_enabled: Optional[StrictBool] = Field(default=None, alias="engineEnabled", json_schema_extra={"examples": [True]}) + engine_authen_traps: Optional[StrictBool] = Field(default=None, alias="engineAuthenTraps") + engine_enabled: Optional[StrictBool] = Field(default=None, alias="engineEnabled") engine_endpoints: Optional[Dict[str, ManaV2NullableSnmpEngineEndpointConfigValue]] = Field(default=None, alias="engineEndpoints") - engine_high_cpu_traps: Optional[StrictBool] = Field(default=None, alias="engineHighCpuTraps", json_schema_extra={"examples": [True]}) - engine_high_memory_traps: Optional[StrictBool] = Field(default=None, alias="engineHighMemoryTraps", json_schema_extra={"examples": [True]}) - engine_id_admin_octets: Optional[StrictStr] = Field(default=None, alias="engineIdAdminOctets", json_schema_extra={"examples": ["example string"]}) - engine_id_admin_text: Optional[StrictStr] = Field(default=None, alias="engineIdAdminText", json_schema_extra={"examples": ["example string"]}) - engine_id_ipv4: Optional[StrictStr] = Field(default=None, alias="engineIdIpv4", json_schema_extra={"examples": ["example string"]}) - engine_id_ipv6: Optional[StrictStr] = Field(default=None, alias="engineIdIpv6", json_schema_extra={"examples": ["example string"]}) - engine_id_mac: Optional[StrictStr] = Field(default=None, alias="engineIdMac", json_schema_extra={"examples": ["example string"]}) - engine_id_raw: Optional[StrictStr] = Field(default=None, alias="engineIdRaw", json_schema_extra={"examples": ["example string"]}) - engine_local_acess_v4: Optional[StrictBool] = Field(default=None, alias="engineLocalAcessV4", json_schema_extra={"examples": [True]}) - engine_local_acess_v6: Optional[StrictBool] = Field(default=None, alias="engineLocalAcessV6", json_schema_extra={"examples": [True]}) - engine_user_hints: Optional[StrictBool] = Field(default=None, alias="engineUserHints", json_schema_extra={"examples": [True]}) - engine_user_validation: Optional[StrictBool] = Field(default=None, alias="engineUserValidation", json_schema_extra={"examples": [True]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync", json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + engine_high_cpu_traps: Optional[StrictBool] = Field(default=None, alias="engineHighCpuTraps") + engine_high_memory_traps: Optional[StrictBool] = Field(default=None, alias="engineHighMemoryTraps") + engine_id_admin_octets: Optional[StrictStr] = Field(default=None, alias="engineIdAdminOctets") + engine_id_admin_text: Optional[StrictStr] = Field(default=None, alias="engineIdAdminText") + engine_id_ipv4: Optional[StrictStr] = Field(default=None, alias="engineIdIpv4") + engine_id_ipv6: Optional[StrictStr] = Field(default=None, alias="engineIdIpv6") + engine_id_mac: Optional[StrictStr] = Field(default=None, alias="engineIdMac") + engine_id_raw: Optional[StrictStr] = Field(default=None, alias="engineIdRaw") + engine_local_acess_v4: Optional[StrictBool] = Field(default=None, alias="engineLocalAcessV4") + engine_local_acess_v6: Optional[StrictBool] = Field(default=None, alias="engineLocalAcessV6") + engine_user_hints: Optional[StrictBool] = Field(default=None, alias="engineUserHints") + engine_user_validation: Optional[StrictBool] = Field(default=None, alias="engineUserValidation") + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync") + name: Optional[StrictStr] = None notify_filter_profiles: Optional[Dict[str, ManaV2NullableSnmpNotifyFilterProfileConfigValue]] = Field(default=None, alias="notifyFilterProfiles") - snmp_version: Optional[StrictStr] = Field(default=None, alias="snmpVersion", json_schema_extra={"examples": ["ENUM_VALUE"]}) + snmp_version: Optional[StrictStr] = Field(default=None, alias="snmpVersion") targets: Optional[Dict[str, ManaV2NullableSnmpTargetConfigValue]] = None usm_local_users: Optional[Dict[str, ManaV2NullableUsmLocalUserConfigValue]] = Field(default=None, alias="usmLocalUsers") usm_remote_users: Optional[Dict[str, ManaV2NullableUsmRemoteUserConfigValue]] = Field(default=None, alias="usmRemoteUsers") - v2c_enabled: Optional[StrictBool] = Field(default=None, alias="v2cEnabled", json_schema_extra={"examples": [True]}) - v3_enabled: Optional[StrictBool] = Field(default=None, alias="v3Enabled", json_schema_extra={"examples": [True]}) + v2c_enabled: Optional[StrictBool] = Field(default=None, alias="v2cEnabled") + v3_enabled: Optional[StrictBool] = Field(default=None, alias="v3Enabled") vacm_groups: Optional[Dict[str, ManaV2NullableVacmGroupValue]] = Field(default=None, alias="vacmGroups") vacm_views: Optional[Dict[str, ManaV2NullableSnmpVacmViewValue]] = Field(default=None, alias="vacmViews") __properties: ClassVar[List[str]] = ["communities", "engineAuthenTraps", "engineEnabled", "engineEndpoints", "engineHighCpuTraps", "engineHighMemoryTraps", "engineIdAdminOctets", "engineIdAdminText", "engineIdIpv4", "engineIdIpv6", "engineIdMac", "engineIdRaw", "engineLocalAcessV4", "engineLocalAcessV6", "engineUserHints", "engineUserValidation", "globalId", "isGlobalSync", "name", "notifyFilterProfiles", "snmpVersion", "targets", "usmLocalUsers", "usmRemoteUsers", "v2cEnabled", "v3Enabled", "vacmGroups", "vacmViews"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -79,7 +77,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_engine_endpoint.py b/graphiant_sdk/models/mana_v2_snmp_engine_endpoint.py index 63f0443e..4a00b2e8 100644 --- a/graphiant_sdk/models/mana_v2_snmp_engine_endpoint.py +++ b/graphiant_sdk/models/mana_v2_snmp_engine_endpoint.py @@ -21,24 +21,22 @@ 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 ManaV2SnmpEngineEndpoint(BaseModel): """ ManaV2SnmpEngineEndpoint """ # noqa: E501 addresses: Optional[List[StrictStr]] = None - auto_ipv4: Optional[StrictBool] = Field(default=None, alias="autoIpv4", json_schema_extra={"examples": [True]}) - auto_ipv6: Optional[StrictBool] = Field(default=None, alias="autoIpv6", json_schema_extra={"examples": [True]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + auto_ipv4: Optional[StrictBool] = Field(default=None, alias="autoIpv4") + auto_ipv6: Optional[StrictBool] = Field(default=None, alias="autoIpv6") + id: Optional[StrictInt] = None + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment") + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["addresses", "autoIpv4", "autoIpv6", "id", "interfaceName", "lanSegment", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_engine_endpoint_config.py b/graphiant_sdk/models/mana_v2_snmp_engine_endpoint_config.py index cfa5ed02..9c4847ca 100644 --- a/graphiant_sdk/models/mana_v2_snmp_engine_endpoint_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_engine_endpoint_config.py @@ -22,23 +22,21 @@ from graphiant_sdk.models.mana_v2_nullable_snmp_engine_endpoints_address import ManaV2NullableSnmpEngineEndpointsAddress from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SnmpEngineEndpointConfig(BaseModel): """ ManaV2SnmpEngineEndpointConfig """ # noqa: E501 addresses: Optional[Dict[str, ManaV2NullableSnmpEngineEndpointsAddress]] = None - auto_ipv4: Optional[StrictBool] = Field(default=None, alias="autoIpv4", json_schema_extra={"examples": [True]}) - auto_ipv6: Optional[StrictBool] = Field(default=None, alias="autoIpv6", json_schema_extra={"examples": [True]}) - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + auto_ipv4: Optional[StrictBool] = Field(default=None, alias="autoIpv4") + auto_ipv6: Optional[StrictBool] = Field(default=None, alias="autoIpv6") + interface: Optional[StrictStr] = None + lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment") + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["addresses", "autoIpv4", "autoIpv6", "interface", "lanSegment", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_notify_filter_profile.py b/graphiant_sdk/models/mana_v2_snmp_notify_filter_profile.py index 6eb66def..e42010e4 100644 --- a/graphiant_sdk/models/mana_v2_snmp_notify_filter_profile.py +++ b/graphiant_sdk/models/mana_v2_snmp_notify_filter_profile.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_notify_filter_profile_include import ManaV2NotifyFilterProfileInclude from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SnmpNotifyFilterProfile(BaseModel): """ ManaV2SnmpNotifyFilterProfile """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None include_exclude_list: Optional[List[ManaV2NotifyFilterProfileInclude]] = Field(default=None, alias="includeExcludeList") - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "includeExcludeList", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_notify_filter_profile_config.py b/graphiant_sdk/models/mana_v2_snmp_notify_filter_profile_config.py index 5b82562c..f1028222 100644 --- a/graphiant_sdk/models/mana_v2_snmp_notify_filter_profile_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_notify_filter_profile_config.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_notify_filter_profile_include_config import ManaV2NotifyFilterProfileIncludeConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SnmpNotifyFilterProfileConfig(BaseModel): """ ManaV2SnmpNotifyFilterProfileConfig """ # noqa: E501 include_exclude_list: Optional[Dict[str, ManaV2NotifyFilterProfileIncludeConfig]] = Field(default=None, alias="includeExcludeList") - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["includeExcludeList", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_target.py b/graphiant_sdk/models/mana_v2_snmp_target.py index 1f70cf5c..3bea0144 100644 --- a/graphiant_sdk/models/mana_v2_snmp_target.py +++ b/graphiant_sdk/models/mana_v2_snmp_target.py @@ -21,28 +21,26 @@ 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 ManaV2SnmpTarget(BaseModel): """ ManaV2SnmpTarget """ # noqa: E501 - community: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - notify_filter_profile: Optional[StrictStr] = Field(default=None, alias="notifyFilterProfile", json_schema_extra={"examples": ["example string"]}) - notify_type: Optional[StrictStr] = Field(default=None, alias="notifyType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp", json_schema_extra={"examples": ["example string"]}) - target_ip: Optional[StrictStr] = Field(default=None, alias="targetIp", json_schema_extra={"examples": ["example string"]}) - target_type: Optional[StrictStr] = Field(default=None, alias="targetType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - usm_security_level: Optional[StrictStr] = Field(default=None, alias="usmSecurityLevel", json_schema_extra={"examples": ["ENUM_VALUE"]}) - usm_user_name: Optional[StrictStr] = Field(default=None, alias="usmUserName", json_schema_extra={"examples": ["example string"]}) - vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName", json_schema_extra={"examples": ["example string"]}) + community: Optional[StrictStr] = None + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + notify_filter_profile: Optional[StrictStr] = Field(default=None, alias="notifyFilterProfile") + notify_type: Optional[StrictStr] = Field(default=None, alias="notifyType") + source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp") + target_ip: Optional[StrictStr] = Field(default=None, alias="targetIp") + target_type: Optional[StrictStr] = Field(default=None, alias="targetType") + usm_security_level: Optional[StrictStr] = Field(default=None, alias="usmSecurityLevel") + usm_user_name: Optional[StrictStr] = Field(default=None, alias="usmUserName") + vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName") __properties: ClassVar[List[str]] = ["community", "id", "name", "notifyFilterProfile", "notifyType", "sourceIp", "targetIp", "targetType", "usmSecurityLevel", "usmUserName", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_target_config.py b/graphiant_sdk/models/mana_v2_snmp_target_config.py index 56018ccd..0e009772 100644 --- a/graphiant_sdk/models/mana_v2_snmp_target_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_target_config.py @@ -21,27 +21,25 @@ 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 ManaV2SnmpTargetConfig(BaseModel): """ ManaV2SnmpTargetConfig """ # noqa: E501 - community: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - notify_filter_profile: Optional[StrictStr] = Field(default=None, alias="notifyFilterProfile", json_schema_extra={"examples": ["example string"]}) - notify_type: Optional[StrictStr] = Field(default=None, alias="notifyType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp", json_schema_extra={"examples": ["example string"]}) - target_ip: Optional[StrictStr] = Field(default=None, alias="targetIp", json_schema_extra={"examples": ["example string"]}) - target_type: Optional[StrictStr] = Field(default=None, alias="targetType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - usm_security_level: Optional[StrictStr] = Field(default=None, alias="usmSecurityLevel", json_schema_extra={"examples": ["ENUM_VALUE"]}) - usm_user_name: Optional[StrictStr] = Field(default=None, alias="usmUserName", json_schema_extra={"examples": ["example string"]}) + community: Optional[StrictStr] = None + lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment") + name: Optional[StrictStr] = None + notify_filter_profile: Optional[StrictStr] = Field(default=None, alias="notifyFilterProfile") + notify_type: Optional[StrictStr] = Field(default=None, alias="notifyType") + source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp") + target_ip: Optional[StrictStr] = Field(default=None, alias="targetIp") + target_type: Optional[StrictStr] = Field(default=None, alias="targetType") + usm_security_level: Optional[StrictStr] = Field(default=None, alias="usmSecurityLevel") + usm_user_name: Optional[StrictStr] = Field(default=None, alias="usmUserName") __properties: ClassVar[List[str]] = ["community", "lanSegment", "name", "notifyFilterProfile", "notifyType", "sourceIp", "targetIp", "targetType", "usmSecurityLevel", "usmUserName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_usm_local_user.py b/graphiant_sdk/models/mana_v2_snmp_usm_local_user.py index 30e1500a..3863292c 100644 --- a/graphiant_sdk/models/mana_v2_snmp_usm_local_user.py +++ b/graphiant_sdk/models/mana_v2_snmp_usm_local_user.py @@ -21,23 +21,21 @@ 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 ManaV2SnmpUsmLocalUser(BaseModel): """ ManaV2SnmpUsmLocalUser """ # noqa: E501 - auth_passphrase: Optional[StrictStr] = Field(default=None, alias="authPassphrase", json_schema_extra={"examples": ["example string"]}) - auth_protocol: Optional[StrictStr] = Field(default=None, alias="authProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - encryption_passphrase: Optional[StrictStr] = Field(default=None, alias="encryptionPassphrase", json_schema_extra={"examples": ["example string"]}) - encryption_protocol: Optional[StrictStr] = Field(default=None, alias="encryptionProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + auth_passphrase: Optional[StrictStr] = Field(default=None, alias="authPassphrase") + auth_protocol: Optional[StrictStr] = Field(default=None, alias="authProtocol") + encryption_passphrase: Optional[StrictStr] = Field(default=None, alias="encryptionPassphrase") + encryption_protocol: Optional[StrictStr] = Field(default=None, alias="encryptionProtocol") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["authPassphrase", "authProtocol", "encryptionPassphrase", "encryptionProtocol", "id", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_usm_local_user_config.py b/graphiant_sdk/models/mana_v2_snmp_usm_local_user_config.py index 4838746d..c8e83544 100644 --- a/graphiant_sdk/models/mana_v2_snmp_usm_local_user_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_usm_local_user_config.py @@ -21,22 +21,20 @@ 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 ManaV2SnmpUsmLocalUserConfig(BaseModel): """ ManaV2SnmpUsmLocalUserConfig """ # noqa: E501 - auth_passphrase: Optional[StrictStr] = Field(default=None, alias="authPassphrase", json_schema_extra={"examples": ["example string"]}) - auth_protocol: Optional[StrictStr] = Field(default=None, alias="authProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - encryption_passphrase: Optional[StrictStr] = Field(default=None, alias="encryptionPassphrase", json_schema_extra={"examples": ["example string"]}) - encryption_protocol: Optional[StrictStr] = Field(default=None, alias="encryptionProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + auth_passphrase: Optional[StrictStr] = Field(default=None, alias="authPassphrase") + auth_protocol: Optional[StrictStr] = Field(default=None, alias="authProtocol") + encryption_passphrase: Optional[StrictStr] = Field(default=None, alias="encryptionPassphrase") + encryption_protocol: Optional[StrictStr] = Field(default=None, alias="encryptionProtocol") + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["authPassphrase", "authProtocol", "encryptionPassphrase", "encryptionProtocol", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_usm_remote_user.py b/graphiant_sdk/models/mana_v2_snmp_usm_remote_user.py index b51ede2d..f2454b04 100644 --- a/graphiant_sdk/models/mana_v2_snmp_usm_remote_user.py +++ b/graphiant_sdk/models/mana_v2_snmp_usm_remote_user.py @@ -21,23 +21,21 @@ 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 ManaV2SnmpUsmRemoteUser(BaseModel): """ ManaV2SnmpUsmRemoteUser """ # noqa: E501 - auth_loc_key: Optional[StrictStr] = Field(default=None, alias="authLocKey", json_schema_extra={"examples": ["example string"]}) - auth_protocol: Optional[StrictStr] = Field(default=None, alias="authProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - encryption_loc_key: Optional[StrictStr] = Field(default=None, alias="encryptionLocKey", json_schema_extra={"examples": ["example string"]}) - encryption_protocol: Optional[StrictStr] = Field(default=None, alias="encryptionProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + auth_loc_key: Optional[StrictStr] = Field(default=None, alias="authLocKey") + auth_protocol: Optional[StrictStr] = Field(default=None, alias="authProtocol") + encryption_loc_key: Optional[StrictStr] = Field(default=None, alias="encryptionLocKey") + encryption_protocol: Optional[StrictStr] = Field(default=None, alias="encryptionProtocol") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["authLocKey", "authProtocol", "encryptionLocKey", "encryptionProtocol", "id", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_usm_remote_user_config.py b/graphiant_sdk/models/mana_v2_snmp_usm_remote_user_config.py index 17ef1463..f75b8776 100644 --- a/graphiant_sdk/models/mana_v2_snmp_usm_remote_user_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_usm_remote_user_config.py @@ -21,22 +21,20 @@ 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 ManaV2SnmpUsmRemoteUserConfig(BaseModel): """ ManaV2SnmpUsmRemoteUserConfig """ # noqa: E501 - auth_loc_key: Optional[StrictStr] = Field(default=None, alias="authLocKey", json_schema_extra={"examples": ["example string"]}) - auth_protocol: Optional[StrictStr] = Field(default=None, alias="authProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - encryption_loc_key: Optional[StrictStr] = Field(default=None, alias="encryptionLocKey", json_schema_extra={"examples": ["example string"]}) - encryption_protocol: Optional[StrictStr] = Field(default=None, alias="encryptionProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + auth_loc_key: Optional[StrictStr] = Field(default=None, alias="authLocKey") + auth_protocol: Optional[StrictStr] = Field(default=None, alias="authProtocol") + encryption_loc_key: Optional[StrictStr] = Field(default=None, alias="encryptionLocKey") + encryption_protocol: Optional[StrictStr] = Field(default=None, alias="encryptionProtocol") + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["authLocKey", "authProtocol", "encryptionLocKey", "encryptionProtocol", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_vacm_group.py b/graphiant_sdk/models/mana_v2_snmp_vacm_group.py index 76c8fb05..97afb580 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_group.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_group.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_snmp_vacm_view import ManaV2SnmpVacmView from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SnmpVacmGroup(BaseModel): """ @@ -32,14 +31,13 @@ class ManaV2SnmpVacmGroup(BaseModel): """ # noqa: E501 accesses: Optional[List[ManaV2SnmpVacmGroupAccess]] = None group_members: Optional[List[ManaV2SnmpVacmGroupMember]] = Field(default=None, alias="groupMembers") - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None views: Optional[List[ManaV2SnmpVacmView]] = None __properties: ClassVar[List[str]] = ["accesses", "groupMembers", "id", "name", "views"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_vacm_group_access.py b/graphiant_sdk/models/mana_v2_snmp_vacm_group_access.py index 8955196b..706cbb7e 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_group_access.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_group_access.py @@ -21,24 +21,22 @@ 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 ManaV2SnmpVacmGroupAccess(BaseModel): """ ManaV2SnmpVacmGroupAccess """ # noqa: E501 - context: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - group_context_match: Optional[StrictStr] = Field(default=None, alias="groupContextMatch", json_schema_extra={"examples": ["ENUM_VALUE"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - read_view: Optional[StrictStr] = Field(default=None, alias="readView", json_schema_extra={"examples": ["example string"]}) - security_level: Optional[StrictStr] = Field(default=None, alias="securityLevel", json_schema_extra={"examples": ["ENUM_VALUE"]}) - write_view: Optional[StrictStr] = Field(default=None, alias="writeView", json_schema_extra={"examples": ["example string"]}) + context: Optional[StrictStr] = None + group_context_match: Optional[StrictStr] = Field(default=None, alias="groupContextMatch") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + read_view: Optional[StrictStr] = Field(default=None, alias="readView") + security_level: Optional[StrictStr] = Field(default=None, alias="securityLevel") + write_view: Optional[StrictStr] = Field(default=None, alias="writeView") __properties: ClassVar[List[str]] = ["context", "groupContextMatch", "id", "name", "readView", "securityLevel", "writeView"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_vacm_group_access_config.py b/graphiant_sdk/models/mana_v2_snmp_vacm_group_access_config.py index 74cd9d17..41472e69 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_group_access_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_group_access_config.py @@ -21,24 +21,22 @@ 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 ManaV2SnmpVacmGroupAccessConfig(BaseModel): """ ManaV2SnmpVacmGroupAccessConfig """ # noqa: E501 - context: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - context_match: Optional[StrictStr] = Field(default=None, alias="contextMatch", json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - read_view: Optional[StrictStr] = Field(default=None, alias="readView", json_schema_extra={"examples": ["example string"]}) - security_level: Optional[StrictStr] = Field(default=None, alias="securityLevel", json_schema_extra={"examples": ["ENUM_VALUE"]}) - security_model: Optional[StrictStr] = Field(default=None, alias="securityModel", json_schema_extra={"examples": ["ENUM_VALUE"]}) - write_view: Optional[StrictStr] = Field(default=None, alias="writeView", json_schema_extra={"examples": ["example string"]}) + context: Optional[StrictStr] = None + context_match: Optional[StrictStr] = Field(default=None, alias="contextMatch") + name: Optional[StrictStr] = None + read_view: Optional[StrictStr] = Field(default=None, alias="readView") + security_level: Optional[StrictStr] = Field(default=None, alias="securityLevel") + security_model: Optional[StrictStr] = Field(default=None, alias="securityModel") + write_view: Optional[StrictStr] = Field(default=None, alias="writeView") __properties: ClassVar[List[str]] = ["context", "contextMatch", "name", "readView", "securityLevel", "securityModel", "writeView"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_vacm_group_member.py b/graphiant_sdk/models/mana_v2_snmp_vacm_group_member.py index f4c763cd..143f94c2 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_group_member.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_group_member.py @@ -21,22 +21,20 @@ 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 ManaV2SnmpVacmGroupMember(BaseModel): """ ManaV2SnmpVacmGroupMember """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - security_model: Optional[StrictStr] = Field(default=None, alias="securityModel", json_schema_extra={"examples": ["ENUM_VALUE"]}) - security_name: Optional[StrictStr] = Field(default=None, alias="securityName", json_schema_extra={"examples": ["example string"]}) - snmp_community: Optional[StrictStr] = Field(default=None, alias="snmpCommunity", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + id: Optional[StrictInt] = None + security_model: Optional[StrictStr] = Field(default=None, alias="securityModel") + security_name: Optional[StrictStr] = Field(default=None, alias="securityName") + snmp_community: Optional[StrictStr] = Field(default=None, alias="snmpCommunity") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "securityModel", "securityName", "snmpCommunity", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_vacm_group_member_config.py b/graphiant_sdk/models/mana_v2_snmp_vacm_group_member_config.py index a65bb646..7e2267a9 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_group_member_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_group_member_config.py @@ -21,21 +21,19 @@ 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 ManaV2SnmpVacmGroupMemberConfig(BaseModel): """ ManaV2SnmpVacmGroupMemberConfig """ # noqa: E501 - community: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - security_model: Optional[StrictStr] = Field(default=None, alias="securityModel", json_schema_extra={"examples": ["ENUM_VALUE"]}) - security_name: Optional[StrictStr] = Field(default=None, alias="securityName", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + community: Optional[StrictStr] = None + security_model: Optional[StrictStr] = Field(default=None, alias="securityModel") + security_name: Optional[StrictStr] = Field(default=None, alias="securityName") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["community", "securityModel", "securityName", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_vacm_view.py b/graphiant_sdk/models/mana_v2_snmp_vacm_view.py index 3e27bf07..59fa7c09 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_view.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_view.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_snmp_vacm_view_include import ManaV2SnmpVacmViewInclude from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SnmpVacmView(BaseModel): """ ManaV2SnmpVacmView """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None include_exclude: Optional[List[ManaV2SnmpVacmViewInclude]] = Field(default=None, alias="includeExclude") - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "includeExclude", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_vacm_view_config.py b/graphiant_sdk/models/mana_v2_snmp_vacm_view_config.py index abdf035e..fd0e22b5 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_view_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_view_config.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_snmp_vacm_view_include_config import ManaV2SnmpVacmViewIncludeConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SnmpVacmViewConfig(BaseModel): """ ManaV2SnmpVacmViewConfig """ # noqa: E501 include_exclude_list: Optional[Dict[str, ManaV2SnmpVacmViewIncludeConfig]] = Field(default=None, alias="includeExcludeList") - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["includeExcludeList", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_vacm_view_include.py b/graphiant_sdk/models/mana_v2_snmp_vacm_view_include.py index 008ec789..a20a7102 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_view_include.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_view_include.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictBool, 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 ManaV2SnmpVacmViewInclude(BaseModel): """ ManaV2SnmpVacmViewInclude """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - include: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + include: Optional[StrictBool] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "include", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_snmp_vacm_view_include_config.py b/graphiant_sdk/models/mana_v2_snmp_vacm_view_include_config.py index c4ee108a..cf99f8d5 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_view_include_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_view_include_config.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, StrictBool 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 ManaV2SnmpVacmViewIncludeConfig(BaseModel): """ ManaV2SnmpVacmViewIncludeConfig """ # noqa: E501 - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + enabled: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_static_dns_servers.py b/graphiant_sdk/models/mana_v2_static_dns_servers.py index c7b3346c..4a089193 100644 --- a/graphiant_sdk/models/mana_v2_static_dns_servers.py +++ b/graphiant_sdk/models/mana_v2_static_dns_servers.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_dnsip_address import ManaV2DnsipAddress from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2StaticDnsServers(BaseModel): """ @@ -35,8 +34,7 @@ class ManaV2StaticDnsServers(BaseModel): __properties: ClassVar[List[str]] = ["primaryIpv4Server", "primaryIpv6Server", "secondaryIpv4Server", "secondaryIpv6Server"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_static_route.py b/graphiant_sdk/models/mana_v2_static_route.py index c8481365..cf6c8853 100644 --- a/graphiant_sdk/models/mana_v2_static_route.py +++ b/graphiant_sdk/models/mana_v2_static_route.py @@ -23,23 +23,21 @@ from graphiant_sdk.models.mana_v2_static_route_nexthop import ManaV2StaticRouteNexthop from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2StaticRoute(BaseModel): """ ManaV2StaticRoute """ # noqa: E501 - administrative_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="administrativeDistance", json_schema_extra={"examples": [123]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + administrative_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="administrativeDistance") + description: Optional[StrictStr] = None + id: Optional[StrictInt] = None next_hop: Optional[ManaV2StaticRouteNexthop] = Field(default=None, alias="nextHop") next_hops: Optional[List[ManaV2StaticRouteNexthop]] = Field(default=None, alias="nextHops") - prefix: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + prefix: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["administrativeDistance", "description", "id", "nextHop", "nextHops", "prefix"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_static_route_config.py b/graphiant_sdk/models/mana_v2_static_route_config.py index 17c8c607..284bf49c 100644 --- a/graphiant_sdk/models/mana_v2_static_route_config.py +++ b/graphiant_sdk/models/mana_v2_static_route_config.py @@ -24,24 +24,22 @@ from graphiant_sdk.models.mana_v2_static_route_nexthop_config import ManaV2StaticRouteNexthopConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2StaticRouteConfig(BaseModel): """ ManaV2StaticRouteConfig """ # noqa: E501 - admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="adminDistance", json_schema_extra={"examples": [123]}) + admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="adminDistance") administrative_distance: Optional[ManaV2NullableAdministrativeDistance] = Field(default=None, alias="administrativeDistance") - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - destination_prefix: Optional[StrictStr] = Field(default=None, alias="destinationPrefix", json_schema_extra={"examples": ["example string"]}) - ip_version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ipVersion", json_schema_extra={"examples": [123]}) + description: Optional[StrictStr] = None + destination_prefix: Optional[StrictStr] = Field(default=None, alias="destinationPrefix") + ip_version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ipVersion") next_hop: Optional[ManaV2StaticRouteNexthopConfig] = Field(default=None, alias="nextHop") next_hops: Optional[List[ManaV2StaticRouteNexthopConfig]] = Field(default=None, alias="nextHops") __properties: ClassVar[List[str]] = ["adminDistance", "administrativeDistance", "description", "destinationPrefix", "ipVersion", "nextHop", "nextHops"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_static_route_nexthop.py b/graphiant_sdk/models/mana_v2_static_route_nexthop.py index 0e010d70..977b56c2 100644 --- a/graphiant_sdk/models/mana_v2_static_route_nexthop.py +++ b/graphiant_sdk/models/mana_v2_static_route_nexthop.py @@ -22,24 +22,22 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2StaticRouteNexthop(BaseModel): """ ManaV2StaticRouteNexthop """ # noqa: E501 - circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - next_hop_address: Optional[StrictStr] = Field(default=None, alias="nextHopAddress", json_schema_extra={"examples": ["example string"]}) - nexthop: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - outgoing_interface: Optional[StrictStr] = Field(default=None, alias="outgoingInterface", json_schema_extra={"examples": ["example string"]}) - third_party_ipsec_tunnel: Optional[StrictStr] = Field(default=None, alias="thirdPartyIpsecTunnel", json_schema_extra={"examples": ["example string"]}) + circuit: Optional[StrictStr] = None + id: Optional[StrictInt] = None + metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + next_hop_address: Optional[StrictStr] = Field(default=None, alias="nextHopAddress") + nexthop: Optional[StrictStr] = None + outgoing_interface: Optional[StrictStr] = Field(default=None, alias="outgoingInterface") + third_party_ipsec_tunnel: Optional[StrictStr] = Field(default=None, alias="thirdPartyIpsecTunnel") __properties: ClassVar[List[str]] = ["circuit", "id", "metric", "nextHopAddress", "nexthop", "outgoingInterface", "thirdPartyIpsecTunnel"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_static_route_nexthop_config.py b/graphiant_sdk/models/mana_v2_static_route_nexthop_config.py index 1ad9dd32..56fe9e01 100644 --- a/graphiant_sdk/models/mana_v2_static_route_nexthop_config.py +++ b/graphiant_sdk/models/mana_v2_static_route_nexthop_config.py @@ -21,22 +21,20 @@ 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 ManaV2StaticRouteNexthopConfig(BaseModel): """ ManaV2StaticRouteNexthopConfig """ # noqa: E501 - address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - next_hop_address: Optional[StrictStr] = Field(default=None, alias="nextHopAddress", json_schema_extra={"examples": ["example string"]}) - third_party_ipsec_tunnel: Optional[StrictStr] = Field(default=None, alias="thirdPartyIpsecTunnel", json_schema_extra={"examples": ["example string"]}) + address: Optional[StrictStr] = None + circuit: Optional[StrictStr] = None + interface: Optional[StrictStr] = None + next_hop_address: Optional[StrictStr] = Field(default=None, alias="nextHopAddress") + third_party_ipsec_tunnel: Optional[StrictStr] = Field(default=None, alias="thirdPartyIpsecTunnel") __properties: ClassVar[List[str]] = ["address", "circuit", "interface", "nextHopAddress", "thirdPartyIpsecTunnel"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_subnet.py b/graphiant_sdk/models/mana_v2_subnet.py index 72b16d18..eb995708 100644 --- a/graphiant_sdk/models/mana_v2_subnet.py +++ b/graphiant_sdk/models/mana_v2_subnet.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2Subnet(BaseModel): """ ManaV2Subnet """ # noqa: E501 - cidr: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + cidr: Optional[StrictStr] = None + id: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["cidr", "id"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_syslog_collector.py b/graphiant_sdk/models/mana_v2_syslog_collector.py index 7956f1e3..b3711fcd 100644 --- a/graphiant_sdk/models/mana_v2_syslog_collector.py +++ b/graphiant_sdk/models/mana_v2_syslog_collector.py @@ -22,30 +22,28 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SyslogCollector(BaseModel): """ ManaV2SyslogCollector """ # noqa: E501 - destination_host: Optional[StrictStr] = Field(default=None, alias="destinationHost", json_schema_extra={"examples": ["example string"]}) - destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": [123]}) - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage", json_schema_extra={"examples": ["example string"]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - severity: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - source_interface: Optional[StrictStr] = Field(default=None, alias="sourceInterface", json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - transport: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId", json_schema_extra={"examples": [1234567891011]}) - vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName", json_schema_extra={"examples": ["example string"]}) + destination_host: Optional[StrictStr] = Field(default=None, alias="destinationHost") + destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort") + enabled: Optional[StrictBool] = None + error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage") + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + severity: Optional[StrictStr] = None + source_interface: Optional[StrictStr] = Field(default=None, alias="sourceInterface") + status: Optional[StrictStr] = None + transport: Optional[StrictStr] = None + vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId") + vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName") __properties: ClassVar[List[str]] = ["destinationHost", "destinationPort", "enabled", "errorMessage", "globalId", "id", "name", "severity", "sourceInterface", "status", "transport", "vrfId", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_syslog_collector_config.py b/graphiant_sdk/models/mana_v2_syslog_collector_config.py index d9c0b0ab..4314b83b 100644 --- a/graphiant_sdk/models/mana_v2_syslog_collector_config.py +++ b/graphiant_sdk/models/mana_v2_syslog_collector_config.py @@ -22,27 +22,25 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2SyslogCollectorConfig(BaseModel): """ ManaV2SyslogCollectorConfig """ # noqa: E501 - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - host: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync", json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - severity: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - transport: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId", json_schema_extra={"examples": [1234567891011]}) + enabled: Optional[StrictBool] = None + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + host: Optional[StrictStr] = None + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync") + name: Optional[StrictStr] = None + port: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + severity: Optional[StrictStr] = None + transport: Optional[StrictStr] = None + vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId") __properties: ClassVar[List[str]] = ["enabled", "globalId", "host", "interfaceName", "isGlobalSync", "name", "port", "severity", "transport", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_time_period.py b/graphiant_sdk/models/mana_v2_time_period.py index 04d25930..2787db0c 100644 --- a/graphiant_sdk/models/mana_v2_time_period.py +++ b/graphiant_sdk/models/mana_v2_time_period.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, 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 ManaV2TimePeriod(BaseModel): """ ManaV2TimePeriod """ # noqa: E501 - month: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - year: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + month: Optional[StrictInt] = None + year: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["month", "year"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_action.py b/graphiant_sdk/models/mana_v2_traffic_policy_action.py index e5baa3da..fe4229c2 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_action.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_action.py @@ -21,21 +21,19 @@ 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 ManaV2TrafficPolicyAction(BaseModel): """ ManaV2TrafficPolicyAction """ # noqa: E501 - backup: Optional[StrictStr] = Field(default=None, description="Backup circuit for the traffic policy action", json_schema_extra={"examples": ["ENUM_VALUE"]}) - var_class: Optional[StrictStr] = Field(default=None, description="Class for the traffic policy action", alias="class", json_schema_extra={"examples": ["ENUM_VALUE"]}) - primary: Optional[StrictStr] = Field(default=None, description="Primary circuit for the traffic policy action", json_schema_extra={"examples": ["ENUM_VALUE"]}) - result: Optional[StrictStr] = Field(default=None, description="Result for the traffic policy action", json_schema_extra={"examples": ["ENUM_VALUE"]}) + backup: Optional[StrictStr] = Field(default=None, description="Backup circuit for the traffic policy action") + var_class: Optional[StrictStr] = Field(default=None, description="Class for the traffic policy action", alias="class") + primary: Optional[StrictStr] = Field(default=None, description="Primary circuit for the traffic policy action") + result: Optional[StrictStr] = Field(default=None, description="Result for the traffic policy action") __properties: ClassVar[List[str]] = ["backup", "class", "primary", "result"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_rule.py b/graphiant_sdk/models/mana_v2_traffic_policy_rule.py index 5332bad5..ea6b10bb 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_rule.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_rule.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_traffic_policy_action import ManaV2TrafficPolicyAction from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2TrafficPolicyRule(BaseModel): """ @@ -32,13 +31,12 @@ class ManaV2TrafficPolicyRule(BaseModel): """ # noqa: E501 action: Optional[ManaV2TrafficPolicyAction] = None match: Optional[ManaV2PolicyMatch] = None - policy_rule_index: Optional[StrictInt] = Field(default=None, alias="policyRuleIndex", json_schema_extra={"examples": [1234567891011]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + policy_rule_index: Optional[StrictInt] = Field(default=None, alias="policyRuleIndex") + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["action", "match", "policyRuleIndex", "seq"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_rule_row.py b/graphiant_sdk/models/mana_v2_traffic_policy_rule_row.py index f9943918..05e09d69 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_rule_row.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_rule_row.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_traffic_policy_rule import ManaV2TrafficPolicyRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2TrafficPolicyRuleRow(BaseModel): """ @@ -31,12 +30,11 @@ class ManaV2TrafficPolicyRuleRow(BaseModel): """ # noqa: E501 device: Optional[ManaV2SiteDeviceStub] = None traffic_policy_rule: Optional[ManaV2TrafficPolicyRule] = Field(default=None, alias="trafficPolicyRule") - vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName", json_schema_extra={"examples": ["example string"]}) + vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName") __properties: ClassVar[List[str]] = ["device", "trafficPolicyRule", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset.py b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset.py index 5e52f1b0..ce277261 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset.py @@ -23,25 +23,23 @@ from graphiant_sdk.models.mana_v2_traffic_policy_ruleset_rule import ManaV2TrafficPolicyRulesetRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2TrafficPolicyRuleset(BaseModel): """ ManaV2TrafficPolicyRuleset """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage", json_schema_extra={"examples": ["example string"]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + error_message: Optional[StrictStr] = Field(default=None, alias="errorMessage") + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + id: Optional[StrictInt] = None + index: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + name: Optional[StrictStr] = None rules: Optional[List[ManaV2TrafficPolicyRulesetRule]] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "errorMessage", "globalId", "id", "index", "name", "rules", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config.py b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config.py index 232f2c02..ff5b9386 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.mana_v2_traffic_policy_ruleset_config_nullable_rule import ManaV2TrafficPolicyRulesetConfigNullableRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2TrafficPolicyRulesetConfig(BaseModel): """ ManaV2TrafficPolicyRulesetConfig """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - global_id: Optional[StrictInt] = Field(default=None, alias="globalId", json_schema_extra={"examples": [1234567891011]}) - is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync", json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + global_id: Optional[StrictInt] = Field(default=None, alias="globalId") + is_global_sync: Optional[StrictBool] = Field(default=None, alias="isGlobalSync") + name: Optional[StrictStr] = None rules: Optional[Dict[str, ManaV2TrafficPolicyRulesetConfigNullableRule]] = None __properties: ClassVar[List[str]] = ["description", "globalId", "isGlobalSync", "name", "rules"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule.py b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule.py index b3f36a31..e5bb7007 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_traffic_policy_ruleset_config_nullable_rule_rule import ManaV2TrafficPolicyRulesetConfigNullableRuleRule from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2TrafficPolicyRulesetConfigNullableRule(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2TrafficPolicyRulesetConfigNullableRule(BaseModel): __properties: ClassVar[List[str]] = ["rule"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule_rule.py b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule_rule.py index 6b4349f9..c64cd91e 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule_rule.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule_rule.py @@ -24,22 +24,20 @@ from graphiant_sdk.models.mana_v2_traffic_policy_ruleset_config_nullable_rule_rule_action import ManaV2TrafficPolicyRulesetConfigNullableRuleRuleAction from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2TrafficPolicyRulesetConfigNullableRuleRule(BaseModel): """ ManaV2TrafficPolicyRulesetConfigNullableRuleRule """ # noqa: E501 action: Optional[ManaV2TrafficPolicyRulesetConfigNullableRuleRuleAction] = None - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None match: Optional[ManaV2ForwardingPolicyMatchConfig] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + name: Optional[StrictStr] = None + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["action", "description", "match", "name", "seq"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule_rule_action.py b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule_rule_action.py index 37b79318..35f086e2 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule_rule_action.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config_nullable_rule_rule_action.py @@ -25,7 +25,6 @@ from graphiant_sdk.models.mana_v2_nullable_set_sla_class_config import ManaV2NullableSetSlaClassConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2TrafficPolicyRulesetConfigNullableRuleRuleAction(BaseModel): """ @@ -33,8 +32,8 @@ class ManaV2TrafficPolicyRulesetConfigNullableRuleRuleAction(BaseModel): """ # noqa: E501 backup_circuit: Optional[ManaV2NullableSetCircuitConfig] = Field(default=None, alias="backupCircuit") backup_circuit_label: Optional[ManaV2NullableSetCircuitLabelConfig] = Field(default=None, alias="backupCircuitLabel") - egress: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - logging: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + egress: Optional[StrictStr] = None + logging: Optional[StrictBool] = None primary_circuit: Optional[ManaV2NullableSetCircuitConfig] = Field(default=None, alias="primaryCircuit") primary_circuit_label: Optional[ManaV2NullableSetCircuitLabelConfig] = Field(default=None, alias="primaryCircuitLabel") remark: Optional[ManaV2NullableSetDscpConfig] = None @@ -42,8 +41,7 @@ class ManaV2TrafficPolicyRulesetConfigNullableRuleRuleAction(BaseModel): __properties: ClassVar[List[str]] = ["backupCircuit", "backupCircuitLabel", "egress", "logging", "primaryCircuit", "primaryCircuitLabel", "remark", "setSlaClass"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,7 +53,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_rule.py b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_rule.py index dff4724e..f6a78aff 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_rule.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_rule.py @@ -24,24 +24,22 @@ from graphiant_sdk.models.mana_v2_traffic_policy_ruleset_rule_action import ManaV2TrafficPolicyRulesetRuleAction from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2TrafficPolicyRulesetRule(BaseModel): """ ManaV2TrafficPolicyRulesetRule """ # noqa: E501 action: Optional[ManaV2TrafficPolicyRulesetRuleAction] = None - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + description: Optional[StrictStr] = None + id: Optional[StrictInt] = None + index: Optional[Annotated[int, Field(strict=True, ge=0)]] = None match: Optional[ManaV2ForwardingPolicyMatch] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + name: Optional[StrictStr] = None + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None __properties: ClassVar[List[str]] = ["action", "description", "id", "index", "match", "name", "seq"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_rule_action.py b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_rule_action.py index 14b14ada..58f62947 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_rule_action.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_rule_action.py @@ -22,25 +22,23 @@ from graphiant_sdk.models.mana_v2_dscp import ManaV2Dscp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2TrafficPolicyRulesetRuleAction(BaseModel): """ ManaV2TrafficPolicyRulesetRuleAction """ # noqa: E501 - backup_circuit: Optional[StrictStr] = Field(default=None, alias="backupCircuit", json_schema_extra={"examples": ["example string"]}) - backup_circuit_label: Optional[StrictStr] = Field(default=None, alias="backupCircuitLabel", json_schema_extra={"examples": ["example string"]}) - egress: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - logging: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - primary_circuit: Optional[StrictStr] = Field(default=None, alias="primaryCircuit", json_schema_extra={"examples": ["example string"]}) - primary_circuit_label: Optional[StrictStr] = Field(default=None, alias="primaryCircuitLabel", json_schema_extra={"examples": ["example string"]}) + backup_circuit: Optional[StrictStr] = Field(default=None, alias="backupCircuit") + backup_circuit_label: Optional[StrictStr] = Field(default=None, alias="backupCircuitLabel") + egress: Optional[StrictStr] = None + logging: Optional[StrictBool] = None + primary_circuit: Optional[StrictStr] = Field(default=None, alias="primaryCircuit") + primary_circuit_label: Optional[StrictStr] = Field(default=None, alias="primaryCircuitLabel") remark: Optional[ManaV2Dscp] = None - sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass", json_schema_extra={"examples": ["ENUM_VALUE"]}) + sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass") __properties: ClassVar[List[str]] = ["backupCircuit", "backupCircuitLabel", "egress", "logging", "primaryCircuit", "primaryCircuitLabel", "remark", "slaClass"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_udp_flow_table.py b/graphiant_sdk/models/mana_v2_udp_flow_table.py index 570ebe81..c9aacb34 100644 --- a/graphiant_sdk/models/mana_v2_udp_flow_table.py +++ b/graphiant_sdk/models/mana_v2_udp_flow_table.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2UdpFlowTable(BaseModel): """ ManaV2UdpFlowTable """ # noqa: E501 - expiry: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - unidirectional_flow_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="unidirectionalFlowLimit", json_schema_extra={"examples": [123]}) + expiry: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + unidirectional_flow_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="unidirectionalFlowLimit") __properties: ClassVar[List[str]] = ["expiry", "unidirectionalFlowLimit"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_vacm_group_config.py b/graphiant_sdk/models/mana_v2_vacm_group_config.py index 417050c0..14e09f37 100644 --- a/graphiant_sdk/models/mana_v2_vacm_group_config.py +++ b/graphiant_sdk/models/mana_v2_vacm_group_config.py @@ -17,13 +17,12 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_nullable_snmp_vacm_group_access_value import ManaV2NullableSnmpVacmGroupAccessValue from graphiant_sdk.models.mana_v2_nullable_snmp_vacm_group_member_value import ManaV2NullableSnmpVacmGroupMemberValue from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2VacmGroupConfig(BaseModel): """ @@ -31,12 +30,11 @@ class ManaV2VacmGroupConfig(BaseModel): """ # noqa: E501 accesses: Optional[Dict[str, ManaV2NullableSnmpVacmGroupAccessValue]] = None members: Optional[Dict[str, ManaV2NullableSnmpVacmGroupMemberValue]] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["accesses", "members", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_vendor_detail.py b/graphiant_sdk/models/mana_v2_vendor_detail.py index 75021213..4e1597da 100644 --- a/graphiant_sdk/models/mana_v2_vendor_detail.py +++ b/graphiant_sdk/models/mana_v2_vendor_detail.py @@ -21,19 +21,17 @@ 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 ManaV2VendorDetail(BaseModel): """ ManaV2VendorDetail """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - neighbor_count: Optional[StrictInt] = Field(default=None, alias="neighborCount", json_schema_extra={"examples": [1234567891011]}) + name: Optional[StrictStr] = None + neighbor_count: Optional[StrictInt] = Field(default=None, alias="neighborCount") __properties: ClassVar[List[str]] = ["name", "neighborCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_version_metadata.py b/graphiant_sdk/models/mana_v2_version_metadata.py index 93541b3e..64e827cc 100644 --- a/graphiant_sdk/models/mana_v2_version_metadata.py +++ b/graphiant_sdk/models/mana_v2_version_metadata.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 ManaV2VersionMetadata(BaseModel): """ ManaV2VersionMetadata """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - version: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + version: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["id", "name", "version"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_vrf.py b/graphiant_sdk/models/mana_v2_vrf.py index 60be167c..2aebd8b9 100644 --- a/graphiant_sdk/models/mana_v2_vrf.py +++ b/graphiant_sdk/models/mana_v2_vrf.py @@ -32,7 +32,6 @@ from graphiant_sdk.models.mana_v2_syslog_collector import ManaV2SyslogCollector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2Vrf(BaseModel): """ @@ -42,28 +41,27 @@ class ManaV2Vrf(BaseModel): bgp_multipath: Optional[ManaV2BgpMultipath] = Field(default=None, alias="bgpMultipath") bgp_neighbors: Optional[List[ManaV2BgpNeighbor]] = Field(default=None, alias="bgpNeighbors") bgp_redistributions: Optional[ManaV2BgpRedistribute] = Field(default=None, alias="bgpRedistributions") - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None dhcp_subnets: Optional[List[ManaV2DhcpServerPool]] = Field(default=None, alias="dhcpSubnets") - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - function: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + function: Optional[StrictStr] = None + id: Optional[StrictInt] = None ipfix_exporters: Optional[List[ManaV2IpfixExporter]] = Field(default=None, alias="ipfixExporters") - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - nat_ruleset: Optional[StrictStr] = Field(default=None, alias="natRuleset", json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None + nat_ruleset: Optional[StrictStr] = Field(default=None, alias="natRuleset") networks: Optional[List[StrictStr]] = None ospfv2_process: Optional[ManaV2OspFv2Process] = Field(default=None, alias="ospfv2Process") ospfv3_process: Optional[ManaV2OspFv3Process] = Field(default=None, alias="ospfv3Process") overlay_filters: Optional[ManaV2OverlayFilters] = Field(default=None, alias="overlayFilters") - routable: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - route_distinguisher: Optional[StrictStr] = Field(default=None, alias="routeDistinguisher", json_schema_extra={"examples": ["example string"]}) + routable: Optional[StrictBool] = None + route_distinguisher: Optional[StrictStr] = Field(default=None, alias="routeDistinguisher") static_routes: Optional[List[ManaV2StaticRoute]] = Field(default=None, alias="staticRoutes") syslog_targets: Optional[List[ManaV2SyslogCollector]] = Field(default=None, alias="syslogTargets") - traffic_ruleset: Optional[StrictStr] = Field(default=None, alias="trafficRuleset", json_schema_extra={"examples": ["example string"]}) + traffic_ruleset: Optional[StrictStr] = Field(default=None, alias="trafficRuleset") __properties: ClassVar[List[str]] = ["bgpAggregations", "bgpMultipath", "bgpNeighbors", "bgpRedistributions", "description", "dhcpSubnets", "enterpriseId", "function", "id", "ipfixExporters", "name", "natRuleset", "networks", "ospfv2Process", "ospfv3Process", "overlayFilters", "routable", "routeDistinguisher", "staticRoutes", "syslogTargets", "trafficRuleset"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -75,7 +73,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_vrf_config.py b/graphiant_sdk/models/mana_v2_vrf_config.py index 57c79b4d..3ca6167a 100644 --- a/graphiant_sdk/models/mana_v2_vrf_config.py +++ b/graphiant_sdk/models/mana_v2_vrf_config.py @@ -33,7 +33,6 @@ from graphiant_sdk.models.mana_v2_overlay_filter_config import ManaV2OverlayFilterConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2VrfConfig(BaseModel): """ @@ -56,8 +55,7 @@ class ManaV2VrfConfig(BaseModel): __properties: ClassVar[List[str]] = ["bgpAggregations", "bgpNeighbors", "bgpRedistribution", "dhcpSubnets", "ebgpMultipath", "ipfixExporters", "natRuleset", "networks", "ospfv2", "ospfv3", "overlayFilters", "staticRoutes", "syslogTargets", "trafficRuleset"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -69,7 +67,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_vrrp_group.py b/graphiant_sdk/models/mana_v2_vrrp_group.py index 9bd42799..591afc59 100644 --- a/graphiant_sdk/models/mana_v2_vrrp_group.py +++ b/graphiant_sdk/models/mana_v2_vrrp_group.py @@ -23,31 +23,29 @@ from graphiant_sdk.models.mana_v2_vrrp_group_member import ManaV2VRRPGroupMember from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2VrrpGroup(BaseModel): """ ManaV2VrrpGroup """ # noqa: E501 - accept_mode: Optional[StrictBool] = Field(default=None, alias="acceptMode", json_schema_extra={"examples": [True]}) - allow_inter_operability: Optional[StrictBool] = Field(default=None, alias="allowInterOperability", json_schema_extra={"examples": [True]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - effective_priority: Optional[StrictInt] = Field(default=None, alias="effectivePriority", json_schema_extra={"examples": [123]}) - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + accept_mode: Optional[StrictBool] = Field(default=None, alias="acceptMode") + allow_inter_operability: Optional[StrictBool] = Field(default=None, alias="allowInterOperability") + description: Optional[StrictStr] = None + effective_priority: Optional[StrictInt] = Field(default=None, alias="effectivePriority") + enabled: Optional[StrictBool] = None group_members: Optional[List[ManaV2VRRPGroupMember]] = Field(default=None, alias="groupMembers") - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - preempt: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - priority: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + preempt: Optional[StrictBool] = None + priority: Optional[StrictInt] = None + state: Optional[StrictStr] = None tracked_interfaces: Optional[List[ManaV2VRRPGroupInterfacePriorityDecrement]] = Field(default=None, alias="trackedInterfaces") - virtual_ip_address: Optional[StrictStr] = Field(default=None, alias="virtualIpAddress", json_schema_extra={"examples": ["example string"]}) - virtual_mac_address: Optional[StrictStr] = Field(default=None, alias="virtualMacAddress", json_schema_extra={"examples": ["example string"]}) + virtual_ip_address: Optional[StrictStr] = Field(default=None, alias="virtualIpAddress") + virtual_mac_address: Optional[StrictStr] = Field(default=None, alias="virtualMacAddress") __properties: ClassVar[List[str]] = ["acceptMode", "allowInterOperability", "description", "effectivePriority", "enabled", "groupMembers", "id", "name", "preempt", "priority", "state", "trackedInterfaces", "virtualIpAddress", "virtualMacAddress"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,7 +57,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_vrrp_group_config.py b/graphiant_sdk/models/mana_v2_vrrp_group_config.py index 0400f086..b346a324 100644 --- a/graphiant_sdk/models/mana_v2_vrrp_group_config.py +++ b/graphiant_sdk/models/mana_v2_vrrp_group_config.py @@ -23,26 +23,24 @@ from graphiant_sdk.models.mana_v2_nullable_interface_priority_decrement import ManaV2NullableInterfacePriorityDecrement from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2VrrpGroupConfig(BaseModel): """ ManaV2VrrpGroupConfig """ # noqa: E501 - accept_mode: Optional[StrictBool] = Field(default=None, alias="acceptMode", json_schema_extra={"examples": [True]}) - allow_inter_operability: Optional[StrictBool] = Field(default=None, alias="allowInterOperability", json_schema_extra={"examples": [True]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - preempt: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - priority: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + accept_mode: Optional[StrictBool] = Field(default=None, alias="acceptMode") + allow_inter_operability: Optional[StrictBool] = Field(default=None, alias="allowInterOperability") + description: Optional[StrictStr] = None + enabled: Optional[StrictBool] = None + preempt: Optional[StrictBool] = None + priority: Optional[Annotated[int, Field(strict=True, ge=0)]] = None tracked_interfaces: Optional[List[ManaV2NullableInterfacePriorityDecrement]] = Field(default=None, alias="trackedInterfaces") - virtual_ip: Optional[StrictStr] = Field(default=None, alias="virtualIp", json_schema_extra={"examples": ["example string"]}) - virtual_router_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="virtualRouterId", json_schema_extra={"examples": [123]}) + virtual_ip: Optional[StrictStr] = Field(default=None, alias="virtualIp") + virtual_router_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="virtualRouterId") __properties: ClassVar[List[str]] = ["acceptMode", "allowInterOperability", "description", "enabled", "preempt", "priority", "trackedInterfaces", "virtualIp", "virtualRouterId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_vrrp_group_interface_priority_decrement.py b/graphiant_sdk/models/mana_v2_vrrp_group_interface_priority_decrement.py index add00351..9b196125 100644 --- a/graphiant_sdk/models/mana_v2_vrrp_group_interface_priority_decrement.py +++ b/graphiant_sdk/models/mana_v2_vrrp_group_interface_priority_decrement.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2VRRPGroupInterfacePriorityDecrement(BaseModel): """ ManaV2VRRPGroupInterfacePriorityDecrement """ # noqa: E501 - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - priority_decrement: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="priorityDecrement", json_schema_extra={"examples": [123]}) + interface: Optional[StrictStr] = None + priority_decrement: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="priorityDecrement") __properties: ClassVar[List[str]] = ["interface", "priorityDecrement"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_vrrp_group_member.py b/graphiant_sdk/models/mana_v2_vrrp_group_member.py index bfbc6547..daad8bfb 100644 --- a/graphiant_sdk/models/mana_v2_vrrp_group_member.py +++ b/graphiant_sdk/models/mana_v2_vrrp_group_member.py @@ -21,26 +21,24 @@ 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 ManaV2VRRPGroupMember(BaseModel): """ ManaV2VRRPGroupMember """ # noqa: E501 - circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - effective_priority: Optional[StrictInt] = Field(default=None, alias="effectivePriority", json_schema_extra={"examples": [123]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - lan: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - local_ip_address: Optional[StrictStr] = Field(default=None, alias="localIpAddress", json_schema_extra={"examples": ["example string"]}) - priority: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + circuit: Optional[StrictStr] = None + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + effective_priority: Optional[StrictInt] = Field(default=None, alias="effectivePriority") + hostname: Optional[StrictStr] = None + interface: Optional[StrictStr] = None + lan: Optional[StrictStr] = None + local_ip_address: Optional[StrictStr] = Field(default=None, alias="localIpAddress") + priority: Optional[StrictInt] = None + state: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["circuit", "deviceId", "effectivePriority", "hostname", "interface", "lan", "localIpAddress", "priority", "state"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_zero_trust_consumption_summary.py b/graphiant_sdk/models/mana_v2_zero_trust_consumption_summary.py new file mode 100644 index 00000000..be411b66 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_zero_trust_consumption_summary.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 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class ManaV2ZeroTrustConsumptionSummary(BaseModel): + """ + ManaV2ZeroTrustConsumptionSummary + """ # noqa: E501 + user_agent_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Number of devices that have been installed with the zero trust agent", alias="userAgentCredits") + __properties: ClassVar[List[str]] = ["userAgentCredits"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ZeroTrustConsumptionSummary 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 ManaV2ZeroTrustConsumptionSummary from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userAgentCredits": obj.get("userAgentCredits") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_zone.py b/graphiant_sdk/models/mana_v2_zone.py index a84cc00f..d259c558 100644 --- a/graphiant_sdk/models/mana_v2_zone.py +++ b/graphiant_sdk/models/mana_v2_zone.py @@ -21,20 +21,18 @@ 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 ManaV2Zone(BaseModel): """ ManaV2Zone """ # noqa: E501 - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["enterpriseId", "id", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_zone_firewall_config.py b/graphiant_sdk/models/mana_v2_zone_firewall_config.py index bef150c3..dbcc69d2 100644 --- a/graphiant_sdk/models/mana_v2_zone_firewall_config.py +++ b/graphiant_sdk/models/mana_v2_zone_firewall_config.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_zone_firewall_udp_policy_config import ManaV2ZoneFirewallUdpPolicyConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ZoneFirewallConfig(BaseModel): """ @@ -34,8 +33,7 @@ class ManaV2ZoneFirewallConfig(BaseModel): __properties: ClassVar[List[str]] = ["ip", "udp"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_zone_firewall_ip_policy_config.py b/graphiant_sdk/models/mana_v2_zone_firewall_ip_policy_config.py index 2aecedab..212a8288 100644 --- a/graphiant_sdk/models/mana_v2_zone_firewall_ip_policy_config.py +++ b/graphiant_sdk/models/mana_v2_zone_firewall_ip_policy_config.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_nullable_session_limit import ManaV2NullableSessionLimit from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ZoneFirewallIpPolicyConfig(BaseModel): """ ManaV2ZoneFirewallIpPolicyConfig """ # noqa: E501 - block_land_attacks: Optional[StrictBool] = Field(default=None, alias="blockLandAttacks", json_schema_extra={"examples": [True]}) + block_land_attacks: Optional[StrictBool] = Field(default=None, alias="blockLandAttacks") session_limit: Optional[ManaV2NullableSessionLimit] = Field(default=None, alias="sessionLimit") - urpf: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + urpf: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["blockLandAttacks", "sessionLimit", "urpf"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_zone_firewall_policy.py b/graphiant_sdk/models/mana_v2_zone_firewall_policy.py index cb35d602..7dddd1e9 100644 --- a/graphiant_sdk/models/mana_v2_zone_firewall_policy.py +++ b/graphiant_sdk/models/mana_v2_zone_firewall_policy.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_udp_flow_table import ManaV2UdpFlowTable from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ZoneFirewallPolicy(BaseModel): """ @@ -31,12 +30,11 @@ class ManaV2ZoneFirewallPolicy(BaseModel): """ # noqa: E501 ip: Optional[ManaV2IpFirewallPolicy] = None udp: Optional[ManaV2UdpFlowTable] = None - zone_name: Optional[StrictStr] = Field(default=None, alias="zoneName", json_schema_extra={"examples": ["example string"]}) + zone_name: Optional[StrictStr] = Field(default=None, alias="zoneName") __properties: ClassVar[List[str]] = ["ip", "udp", "zoneName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2_zone_firewall_udp_policy_config.py b/graphiant_sdk/models/mana_v2_zone_firewall_udp_policy_config.py index 16e7a961..7d883ecd 100644 --- a/graphiant_sdk/models/mana_v2_zone_firewall_udp_policy_config.py +++ b/graphiant_sdk/models/mana_v2_zone_firewall_udp_policy_config.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_nullable_session_limit import ManaV2NullableSessionLimit from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2ZoneFirewallUdpPolicyConfig(BaseModel): """ @@ -32,8 +31,7 @@ class ManaV2ZoneFirewallUdpPolicyConfig(BaseModel): __properties: ClassVar[List[str]] = ["unidirectionalFlowLimit"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2device_snapshot_row.py b/graphiant_sdk/models/mana_v2device_snapshot_row.py index bb23a300..1045083d 100644 --- a/graphiant_sdk/models/mana_v2device_snapshot_row.py +++ b/graphiant_sdk/models/mana_v2device_snapshot_row.py @@ -24,24 +24,22 @@ from graphiant_sdk.models.mana_v2_device_snapshot import ManaV2DeviceSnapshot from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2deviceSnapshotRow(BaseModel): """ ManaV2deviceSnapshotRow """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - region: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - site: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - snapshot_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="snapshotCount", json_schema_extra={"examples": [123]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + hostname: Optional[StrictStr] = None + region: Optional[StrictStr] = None + site: Optional[StrictStr] = None + snapshot_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="snapshotCount") snapshots: Optional[List[ManaV2DeviceSnapshot]] = None uptime: Optional[GoogleProtobufDuration] = None __properties: ClassVar[List[str]] = ["deviceId", "hostname", "region", "site", "snapshotCount", "snapshots", "uptime"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2interface_config_type.py b/graphiant_sdk/models/mana_v2interface_config_type.py index f031df96..82ad6ec4 100644 --- a/graphiant_sdk/models/mana_v2interface_config_type.py +++ b/graphiant_sdk/models/mana_v2interface_config_type.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_interface_wan_config import ManaV2InterfaceWanConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2interfaceConfigType(BaseModel): """ @@ -39,8 +38,7 @@ class ManaV2interfaceConfigType(BaseModel): __properties: ClassVar[List[str]] = ["coreNeighbor", "coreToCoreTunnel", "default", "gatewayNeighbor", "wan", "wanManagement"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/mana_v2topology_device.py b/graphiant_sdk/models/mana_v2topology_device.py index 6d848dd8..b392581c 100644 --- a/graphiant_sdk/models/mana_v2topology_device.py +++ b/graphiant_sdk/models/mana_v2topology_device.py @@ -23,31 +23,29 @@ from graphiant_sdk.models.google_protobuf_duration import GoogleProtobufDuration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class ManaV2topologyDevice(BaseModel): """ ManaV2topologyDevice """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - location: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode", json_schema_extra={"examples": [True]}) - management_ip: Optional[StrictStr] = Field(default=None, alias="managementIp", json_schema_extra={"examples": ["example string"]}) - model: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - serial_number: Optional[StrictStr] = Field(default=None, alias="serialNumber", json_schema_extra={"examples": ["example string"]}) - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) - software_version: Optional[StrictStr] = Field(default=None, alias="softwareVersion", json_schema_extra={"examples": ["example string"]}) - staging_mode: Optional[StrictBool] = Field(default=None, alias="stagingMode", json_schema_extra={"examples": [True]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + hostname: Optional[StrictStr] = None + location: Optional[StrictStr] = None + maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode") + management_ip: Optional[StrictStr] = Field(default=None, alias="managementIp") + model: Optional[StrictStr] = None + role: Optional[StrictStr] = None + serial_number: Optional[StrictStr] = Field(default=None, alias="serialNumber") + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") + software_version: Optional[StrictStr] = Field(default=None, alias="softwareVersion") + staging_mode: Optional[StrictBool] = Field(default=None, alias="stagingMode") uptime: Optional[GoogleProtobufDuration] = None - vrrp_interface: Optional[StrictStr] = Field(default=None, alias="vrrpInterface", json_schema_extra={"examples": ["example string"]}) - vrrp_state: Optional[StrictStr] = Field(default=None, alias="vrrpState", json_schema_extra={"examples": ["ENUM_VALUE"]}) + vrrp_interface: Optional[StrictStr] = Field(default=None, alias="vrrpInterface") + vrrp_state: Optional[StrictStr] = Field(default=None, alias="vrrpState") __properties: ClassVar[List[str]] = ["deviceId", "hostname", "location", "maintenanceMode", "managementIp", "model", "role", "serialNumber", "siteId", "softwareVersion", "stagingMode", "uptime", "vrrpInterface", "vrrpState"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,7 +57,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/onboarding_cloud_init_configuration.py b/graphiant_sdk/models/onboarding_cloud_init_configuration.py index de4f49f0..77a67705 100644 --- a/graphiant_sdk/models/onboarding_cloud_init_configuration.py +++ b/graphiant_sdk/models/onboarding_cloud_init_configuration.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.onboarding_interface import OnboardingInterface from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class OnboardingCloudInitConfiguration(BaseModel): """ OnboardingCloudInitConfiguration """ # noqa: E501 - device_type: Optional[StrictStr] = Field(default=None, alias="deviceType", json_schema_extra={"examples": ["example string"]}) - dns_servers: Optional[StrictStr] = Field(default=None, alias="dnsServers", json_schema_extra={"examples": ["example string"]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + device_type: Optional[StrictStr] = Field(default=None, alias="deviceType") + dns_servers: Optional[StrictStr] = Field(default=None, alias="dnsServers") + hostname: Optional[StrictStr] = None interfaces: Optional[List[OnboardingInterface]] = None - local_web_password: Optional[StrictStr] = Field(default=None, alias="localWebPassword", json_schema_extra={"examples": ["example string"]}) + local_web_password: Optional[StrictStr] = Field(default=None, alias="localWebPassword") __properties: ClassVar[List[str]] = ["deviceType", "dnsServers", "hostname", "interfaces", "localWebPassword"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/onboarding_cloud_init_token.py b/graphiant_sdk/models/onboarding_cloud_init_token.py index 52b861cd..47c504e3 100644 --- a/graphiant_sdk/models/onboarding_cloud_init_token.py +++ b/graphiant_sdk/models/onboarding_cloud_init_token.py @@ -23,23 +23,21 @@ from graphiant_sdk.models.onboarding_cloud_init_token_token import OnboardingCloudInitTokenToken from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class OnboardingCloudInitToken(BaseModel): """ OnboardingCloudInitToken """ # noqa: E501 cloudinit_config: Optional[OnboardingCloudInitConfiguration] = Field(default=None, alias="cloudinitConfig") - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - device_serial: Optional[StrictStr] = Field(default=None, alias="deviceSerial", json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_serial: Optional[StrictStr] = Field(default=None, alias="deviceSerial") + name: Optional[StrictStr] = None + role: Optional[StrictStr] = None token: Optional[OnboardingCloudInitTokenToken] = None __properties: ClassVar[List[str]] = ["cloudinitConfig", "deviceId", "deviceSerial", "name", "role", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/onboarding_cloud_init_token_token.py b/graphiant_sdk/models/onboarding_cloud_init_token_token.py index 93cc7eae..52a4da3b 100644 --- a/graphiant_sdk/models/onboarding_cloud_init_token_token.py +++ b/graphiant_sdk/models/onboarding_cloud_init_token_token.py @@ -22,7 +22,6 @@ 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 OnboardingCloudInitTokenToken(BaseModel): """ @@ -30,12 +29,11 @@ class OnboardingCloudInitTokenToken(BaseModel): """ # noqa: E501 created_by_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdByTs") expiry_by_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="expiryByTs") - token: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + token: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["createdByTs", "expiryByTs", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/onboarding_hardware_inventory.py b/graphiant_sdk/models/onboarding_hardware_inventory.py index b062828c..4463d708 100644 --- a/graphiant_sdk/models/onboarding_hardware_inventory.py +++ b/graphiant_sdk/models/onboarding_hardware_inventory.py @@ -22,7 +22,6 @@ 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 OnboardingHardwareInventory(BaseModel): """ @@ -30,25 +29,24 @@ class OnboardingHardwareInventory(BaseModel): """ # noqa: E501 assigned_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="assignedOn") created_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdOn") - device_model: Optional[StrictStr] = Field(default=None, alias="deviceModel", json_schema_extra={"examples": ["example string"]}) - device_serial: Optional[StrictStr] = Field(default=None, alias="deviceSerial", json_schema_extra={"examples": ["example string"]}) - ek_cert: Optional[StrictStr] = Field(default=None, alias="ekCert", json_schema_extra={"examples": ["example string"]}) - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - enterprise_name: Optional[StrictStr] = Field(default=None, alias="enterpriseName", json_schema_extra={"examples": ["example string"]}) - gek_pub: Optional[StrictStr] = Field(default=None, alias="gekPub", json_schema_extra={"examples": ["example string"]}) - is_core: Optional[StrictBool] = Field(default=None, alias="isCore", json_schema_extra={"examples": [True]}) - is_new: Optional[StrictBool] = Field(default=None, alias="isNew", json_schema_extra={"examples": [True]}) - is_requested: Optional[StrictBool] = Field(default=None, alias="isRequested", json_schema_extra={"examples": [True]}) - parent_enterprise_id: Optional[StrictInt] = Field(default=None, alias="parentEnterpriseId", json_schema_extra={"examples": [1234567891011]}) - parent_enterprise_name: Optional[StrictStr] = Field(default=None, alias="parentEnterpriseName", json_schema_extra={"examples": ["example string"]}) - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - use_oauth: Optional[StrictBool] = Field(default=None, alias="useOauth", json_schema_extra={"examples": [True]}) - uuid: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + device_model: Optional[StrictStr] = Field(default=None, alias="deviceModel") + device_serial: Optional[StrictStr] = Field(default=None, alias="deviceSerial") + ek_cert: Optional[StrictStr] = Field(default=None, alias="ekCert") + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + enterprise_name: Optional[StrictStr] = Field(default=None, alias="enterpriseName") + gek_pub: Optional[StrictStr] = Field(default=None, alias="gekPub") + is_core: Optional[StrictBool] = Field(default=None, alias="isCore") + is_new: Optional[StrictBool] = Field(default=None, alias="isNew") + is_requested: Optional[StrictBool] = Field(default=None, alias="isRequested") + parent_enterprise_id: Optional[StrictInt] = Field(default=None, alias="parentEnterpriseId") + parent_enterprise_name: Optional[StrictStr] = Field(default=None, alias="parentEnterpriseName") + role: Optional[StrictStr] = None + use_oauth: Optional[StrictBool] = Field(default=None, alias="useOauth") + uuid: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["assignedOn", "createdOn", "deviceModel", "deviceSerial", "ekCert", "enterpriseId", "enterpriseName", "gekPub", "isCore", "isNew", "isRequested", "parentEnterpriseId", "parentEnterpriseName", "role", "useOauth", "uuid"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,7 +58,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/onboarding_interface.py b/graphiant_sdk/models/onboarding_interface.py index 839d2b60..4ed2fbf5 100644 --- a/graphiant_sdk/models/onboarding_interface.py +++ b/graphiant_sdk/models/onboarding_interface.py @@ -17,12 +17,11 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.onboarding_ip import OnboardingIp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class OnboardingInterface(BaseModel): """ @@ -30,13 +29,12 @@ class OnboardingInterface(BaseModel): """ # noqa: E501 ipv4: Optional[OnboardingIp] = None ipv6: Optional[OnboardingIp] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["ipv4", "ipv6", "name", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/onboarding_ip.py b/graphiant_sdk/models/onboarding_ip.py index ac96b2fb..1f1a3d03 100644 --- a/graphiant_sdk/models/onboarding_ip.py +++ b/graphiant_sdk/models/onboarding_ip.py @@ -21,20 +21,18 @@ 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 OnboardingIp(BaseModel): """ OnboardingIp """ # noqa: E501 - gateway_addr: Optional[StrictStr] = Field(default=None, alias="gatewayAddr", json_schema_extra={"examples": ["example string"]}) - ip_addr: Optional[StrictStr] = Field(default=None, alias="ipAddr", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + gateway_addr: Optional[StrictStr] = Field(default=None, alias="gatewayAddr") + ip_addr: Optional[StrictStr] = Field(default=None, alias="ipAddr") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["gatewayAddr", "ipAddr", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/onboarding_onboarding_summary.py b/graphiant_sdk/models/onboarding_onboarding_summary.py index 79fb7600..0c7b9611 100644 --- a/graphiant_sdk/models/onboarding_onboarding_summary.py +++ b/graphiant_sdk/models/onboarding_onboarding_summary.py @@ -23,24 +23,22 @@ 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 OnboardingOnboardingSummary(BaseModel): """ OnboardingOnboardingSummary """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) - discovered_location: Optional[StrictStr] = Field(default=None, alias="discoveredLocation", json_schema_extra={"examples": ["example string"]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + discovered_location: Optional[StrictStr] = Field(default=None, alias="discoveredLocation") first_appeared_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="firstAppearedOn") - ip_detected: Optional[StrictStr] = Field(default=None, alias="ipDetected", json_schema_extra={"examples": ["example string"]}) - is_new: Optional[StrictBool] = Field(default=None, alias="isNew", json_schema_extra={"examples": [True]}) - state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + ip_detected: Optional[StrictStr] = Field(default=None, alias="ipDetected") + is_new: Optional[StrictBool] = Field(default=None, alias="isNew") + state: Optional[StrictStr] = None + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceId", "discoveredLocation", "firstAppearedOn", "ipDetected", "isNew", "state", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/pokedex_device_history_info.py b/graphiant_sdk/models/pokedex_device_history_info.py index 6ad052c2..1730ad38 100644 --- a/graphiant_sdk/models/pokedex_device_history_info.py +++ b/graphiant_sdk/models/pokedex_device_history_info.py @@ -23,23 +23,21 @@ 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 PokedexDeviceHistoryInfo(BaseModel): """ PokedexDeviceHistoryInfo """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) - enterprise_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [12345678910]}) - event: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + enterprise_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="enterpriseId") + event: Optional[StrictStr] = None event_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="eventTime") - ipaddress: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - tt_identity: Optional[StrictStr] = Field(default=None, alias="ttIdentity", json_schema_extra={"examples": ["example string"]}) + ipaddress: Optional[StrictStr] = None + tt_identity: Optional[StrictStr] = Field(default=None, alias="ttIdentity") __properties: ClassVar[List[str]] = ["deviceId", "enterpriseId", "event", "eventTime", "ipaddress", "ttIdentity"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/pokedex_device_mapping_info.py b/graphiant_sdk/models/pokedex_device_mapping_info.py index d140e3ab..6124510f 100644 --- a/graphiant_sdk/models/pokedex_device_mapping_info.py +++ b/graphiant_sdk/models/pokedex_device_mapping_info.py @@ -23,23 +23,21 @@ 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 PokedexDeviceMappingInfo(BaseModel): """ PokedexDeviceMappingInfo """ # noqa: E501 connect_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="connectTime") - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) - enterprise_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [12345678910]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - ipaddress: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - tt_identity: Optional[StrictStr] = Field(default=None, alias="ttIdentity", json_schema_extra={"examples": ["example string"]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + enterprise_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="enterpriseId") + hostname: Optional[StrictStr] = None + ipaddress: Optional[StrictStr] = None + tt_identity: Optional[StrictStr] = Field(default=None, alias="ttIdentity") __properties: ClassVar[List[str]] = ["connectTime", "deviceId", "enterpriseId", "hostname", "ipaddress", "ttIdentity"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_afi_route_count.py b/graphiant_sdk/models/routing_afi_route_count.py index 90a360c8..9d18d452 100644 --- a/graphiant_sdk/models/routing_afi_route_count.py +++ b/graphiant_sdk/models/routing_afi_route_count.py @@ -21,19 +21,17 @@ 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 RoutingAfiRouteCount(BaseModel): """ RoutingAfiRouteCount """ # noqa: E501 - ipv4: Optional[StrictInt] = Field(default=None, description="IPv4 route count", json_schema_extra={"examples": [32]}) - ipv6: Optional[StrictInt] = Field(default=None, description="IPv6 route count", json_schema_extra={"examples": [6532]}) + ipv4: Optional[StrictInt] = Field(default=None, description="IPv4 route count") + ipv6: Optional[StrictInt] = Field(default=None, description="IPv6 route count") __properties: ClassVar[List[str]] = ["ipv4", "ipv6"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_arp_entry.py b/graphiant_sdk/models/routing_arp_entry.py index f54f8cd2..399d8635 100644 --- a/graphiant_sdk/models/routing_arp_entry.py +++ b/graphiant_sdk/models/routing_arp_entry.py @@ -21,21 +21,19 @@ 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 RoutingArpEntry(BaseModel): """ RoutingArpEntry """ # noqa: E501 - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - ipv4_address: Optional[StrictStr] = Field(default=None, alias="ipv4Address", json_schema_extra={"examples": ["example string"]}) - mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress", json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, description="Circuit or VRF name", json_schema_extra={"examples": ["example string"]}) + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + ipv4_address: Optional[StrictStr] = Field(default=None, alias="ipv4Address") + mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress") + name: Optional[StrictStr] = Field(default=None, description="Circuit or VRF name") __properties: ClassVar[List[str]] = ["interfaceName", "ipv4Address", "macAddress", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospf_interface.py b/graphiant_sdk/models/routing_ospf_interface.py index 36990347..881b51e2 100644 --- a/graphiant_sdk/models/routing_ospf_interface.py +++ b/graphiant_sdk/models/routing_ospf_interface.py @@ -21,27 +21,25 @@ 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 RoutingOspfInterface(BaseModel): """ RoutingOspfInterface """ # noqa: E501 - bdr_ip_addr: Optional[StrictStr] = Field(default=None, description="Router IP Address (required)", alias="bdrIpAddr", json_schema_extra={"examples": ["131.34.23.11"]}) - bdr_router_id: Optional[StrictStr] = Field(default=None, description="BDR Router ID (required)", alias="bdrRouterId", json_schema_extra={"examples": ["1.1.1.1"]}) - dr_ip_addr: Optional[StrictStr] = Field(default=None, description="Router IP Address (required)", alias="drIpAddr", json_schema_extra={"examples": ["131.34.23.11"]}) - dr_router_id: Optional[StrictStr] = Field(default=None, description="Router ID (required)", alias="drRouterId", json_schema_extra={"examples": ["1.1.1.1"]}) - hello_interval: Optional[StrictStr] = Field(default=None, alias="helloInterval", json_schema_extra={"examples": ["example string"]}) - hello_timer: Optional[StrictStr] = Field(default=None, description="Timer in seconds (required)", alias="helloTimer", json_schema_extra={"examples": ["50"]}) - name: Optional[StrictStr] = Field(default=None, description="Interface name (required)", json_schema_extra={"examples": ["ethernet1/0"]}) + bdr_ip_addr: Optional[StrictStr] = Field(default=None, description="Router IP Address (required)", alias="bdrIpAddr") + bdr_router_id: Optional[StrictStr] = Field(default=None, description="BDR Router ID (required)", alias="bdrRouterId") + dr_ip_addr: Optional[StrictStr] = Field(default=None, description="Router IP Address (required)", alias="drIpAddr") + dr_router_id: Optional[StrictStr] = Field(default=None, description="Router ID (required)", alias="drRouterId") + hello_interval: Optional[StrictStr] = Field(default=None, alias="helloInterval") + hello_timer: Optional[StrictStr] = Field(default=None, description="Timer in seconds (required)", alias="helloTimer") + name: Optional[StrictStr] = Field(default=None, description="Interface name (required)") neighbors: Optional[List[StrictStr]] = None - state: Optional[StrictStr] = Field(default=None, description="interface state (required)", json_schema_extra={"examples": ["Loopback"]}) - wait_timer: Optional[StrictStr] = Field(default=None, description="Timer in seconds (required)", alias="waitTimer", json_schema_extra={"examples": ["50"]}) + state: Optional[StrictStr] = Field(default=None, description="interface state (required)") + wait_timer: Optional[StrictStr] = Field(default=None, description="Timer in seconds (required)", alias="waitTimer") __properties: ClassVar[List[str]] = ["bdrIpAddr", "bdrRouterId", "drIpAddr", "drRouterId", "helloInterval", "helloTimer", "name", "neighbors", "state", "waitTimer"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospf_nbr.py b/graphiant_sdk/models/routing_ospf_nbr.py index 31c1d1b7..6d7a934b 100644 --- a/graphiant_sdk/models/routing_ospf_nbr.py +++ b/graphiant_sdk/models/routing_ospf_nbr.py @@ -23,23 +23,21 @@ 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 RoutingOspfNbr(BaseModel): """ RoutingOspfNbr """ # noqa: E501 - address: Optional[StrictStr] = Field(default=None, description="v4 or v6 Address (required)", json_schema_extra={"examples": ["1.1.1.1"]}) - cost: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="cost (required)", json_schema_extra={"examples": [230]}) - dead_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Dead Timer (required)", alias="deadTimer", json_schema_extra={"examples": [40]}) + address: Optional[StrictStr] = Field(default=None, description="v4 or v6 Address (required)") + cost: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="cost (required)") + dead_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Dead Timer (required)", alias="deadTimer") last_state_change: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastStateChange") - router_id: Optional[StrictStr] = Field(default=None, description="Router ID (required)", alias="routerId", json_schema_extra={"examples": ["1.1.1.1"]}) - state: Optional[StrictStr] = Field(default=None, description="interface state (required)", json_schema_extra={"examples": ["up or down"]}) + router_id: Optional[StrictStr] = Field(default=None, description="Router ID (required)", alias="routerId") + state: Optional[StrictStr] = Field(default=None, description="interface state (required)") __properties: ClassVar[List[str]] = ["address", "cost", "deadTimer", "lastStateChange", "routerId", "state"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospf_network_lsa.py b/graphiant_sdk/models/routing_ospf_network_lsa.py index 3eeec952..3862b03a 100644 --- a/graphiant_sdk/models/routing_ospf_network_lsa.py +++ b/graphiant_sdk/models/routing_ospf_network_lsa.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class RoutingOspfNetworkLsa(BaseModel): """ RoutingOspfNetworkLsa """ # noqa: E501 attached_routers: Optional[List[StrictStr]] = Field(default=None, alias="attachedRouters") - network_mask: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="networkMask", json_schema_extra={"examples": [123]}) + network_mask: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="networkMask") __properties: ClassVar[List[str]] = ["attachedRouters", "networkMask"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospf_next_hop.py b/graphiant_sdk/models/routing_ospf_next_hop.py index 2ef06649..f662adb4 100644 --- a/graphiant_sdk/models/routing_ospf_next_hop.py +++ b/graphiant_sdk/models/routing_ospf_next_hop.py @@ -23,23 +23,21 @@ 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 RoutingOspfNextHop(BaseModel): """ RoutingOspfNextHop """ # noqa: E501 - egress_interface: Optional[StrictStr] = Field(default=None, description="Interface name (required)", alias="egressInterface", json_schema_extra={"examples": ["ATTInterface"]}) + egress_interface: Optional[StrictStr] = Field(default=None, description="Interface name (required)", alias="egressInterface") last_modified: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastModified") - metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="value > 0 (required)", json_schema_extra={"examples": [120]}) - next_hop: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 Nexthop (required)", alias="nextHop", json_schema_extra={"examples": ["10.1.1.1"]}) - tag: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="admin assigned number (required)", json_schema_extra={"examples": [12312]}) - type: Optional[StrictStr] = Field(default=None, description="route type (required)", json_schema_extra={"examples": ["internal or external"]}) + metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="value > 0 (required)") + next_hop: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 Nexthop (required)", alias="nextHop") + tag: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="admin assigned number (required)") + type: Optional[StrictStr] = Field(default=None, description="route type (required)") __properties: ClassVar[List[str]] = ["egressInterface", "lastModified", "metric", "nextHop", "tag", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospf_route.py b/graphiant_sdk/models/routing_ospf_route.py index af77885c..e508b102 100644 --- a/graphiant_sdk/models/routing_ospf_route.py +++ b/graphiant_sdk/models/routing_ospf_route.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.routing_ospf_next_hop import RoutingOspfNextHop from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class RoutingOspfRoute(BaseModel): """ RoutingOspfRoute """ # noqa: E501 - ip_prefix: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 Prefix (required)", alias="ipPrefix", json_schema_extra={"examples": ["131.1.0.0/16"]}) + ip_prefix: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 Prefix (required)", alias="ipPrefix") path: Optional[List[RoutingOspfNextHop]] = None __properties: ClassVar[List[str]] = ["ipPrefix", "path"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospf_router_lsa.py b/graphiant_sdk/models/routing_ospf_router_lsa.py index a738fe54..04822661 100644 --- a/graphiant_sdk/models/routing_ospf_router_lsa.py +++ b/graphiant_sdk/models/routing_ospf_router_lsa.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.routing_ospf_router_lsa_link import RoutingOspfRouterLsaLink from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class RoutingOspfRouterLsa(BaseModel): """ @@ -32,8 +31,7 @@ class RoutingOspfRouterLsa(BaseModel): __properties: ClassVar[List[str]] = ["links"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospf_router_lsa_link.py b/graphiant_sdk/models/routing_ospf_router_lsa_link.py index e61f0432..285d66df 100644 --- a/graphiant_sdk/models/routing_ospf_router_lsa_link.py +++ b/graphiant_sdk/models/routing_ospf_router_lsa_link.py @@ -23,22 +23,20 @@ from graphiant_sdk.models.routing_ospflsa_tos_metric import RoutingOspflsaTosMetric from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class RoutingOspfRouterLsaLink(BaseModel): """ RoutingOspfRouterLsaLink """ # noqa: E501 - link_data: Optional[StrictStr] = Field(default=None, alias="linkData", json_schema_extra={"examples": ["example string"]}) - link_id: Optional[StrictStr] = Field(default=None, alias="linkId", json_schema_extra={"examples": ["example string"]}) - link_type: Optional[StrictStr] = Field(default=None, alias="linkType", json_schema_extra={"examples": ["example string"]}) - metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + link_data: Optional[StrictStr] = Field(default=None, alias="linkData") + link_id: Optional[StrictStr] = Field(default=None, alias="linkId") + link_type: Optional[StrictStr] = Field(default=None, alias="linkType") + metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = None tos_metric: Optional[RoutingOspflsaTosMetric] = Field(default=None, alias="tosMetric") __properties: ClassVar[List[str]] = ["linkData", "linkId", "linkType", "metric", "tosMetric"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospf_statistics.py b/graphiant_sdk/models/routing_ospf_statistics.py index eb539098..936d2951 100644 --- a/graphiant_sdk/models/routing_ospf_statistics.py +++ b/graphiant_sdk/models/routing_ospf_statistics.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class RoutingOspfStatistics(BaseModel): """ RoutingOspfStatistics """ # noqa: E501 - discontinuity_time: Optional[StrictStr] = Field(default=None, alias="discontinuityTime", json_schema_extra={"examples": ["example string"]}) - route_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="routeCount", json_schema_extra={"examples": [123]}) + discontinuity_time: Optional[StrictStr] = Field(default=None, alias="discontinuityTime") + route_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="routeCount") __properties: ClassVar[List[str]] = ["discontinuityTime", "routeCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospf_summary_lsa.py b/graphiant_sdk/models/routing_ospf_summary_lsa.py index 353b3c85..353cdb86 100644 --- a/graphiant_sdk/models/routing_ospf_summary_lsa.py +++ b/graphiant_sdk/models/routing_ospf_summary_lsa.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.routing_ospflsa_tos_metric import RoutingOspflsaTosMetric from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class RoutingOspfSummaryLsa(BaseModel): """ RoutingOspfSummaryLsa """ # noqa: E501 - network_mask: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="networkMask", json_schema_extra={"examples": [123]}) + network_mask: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="networkMask") tos_metric: Optional[RoutingOspflsaTosMetric] = Field(default=None, alias="tosMetric") __properties: ClassVar[List[str]] = ["networkMask", "tosMetric"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospfas_external_lsa.py b/graphiant_sdk/models/routing_ospfas_external_lsa.py index 5c73b0f1..3b881da4 100644 --- a/graphiant_sdk/models/routing_ospfas_external_lsa.py +++ b/graphiant_sdk/models/routing_ospfas_external_lsa.py @@ -23,23 +23,21 @@ from graphiant_sdk.models.routing_ospflsa_tos_metric import RoutingOspflsaTosMetric from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class RoutingOspfasExternalLsa(BaseModel): """ RoutingOspfasExternalLsa """ # noqa: E501 - forwarding_address: Optional[StrictStr] = Field(default=None, alias="forwardingAddress", json_schema_extra={"examples": ["example string"]}) - metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - metric_type: Optional[StrictStr] = Field(default=None, alias="metricType", json_schema_extra={"examples": ["example string"]}) - network_mask: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="networkMask", json_schema_extra={"examples": [123]}) - tag: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + forwarding_address: Optional[StrictStr] = Field(default=None, alias="forwardingAddress") + metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + metric_type: Optional[StrictStr] = Field(default=None, alias="metricType") + network_mask: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="networkMask") + tag: Optional[Annotated[int, Field(strict=True, ge=0)]] = None tos_metric: Optional[RoutingOspflsaTosMetric] = Field(default=None, alias="tosMetric") __properties: ClassVar[List[str]] = ["forwardingAddress", "metric", "metricType", "networkMask", "tag", "tosMetric"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospflsa.py b/graphiant_sdk/models/routing_ospflsa.py index 97dac5dd..194e5661 100644 --- a/graphiant_sdk/models/routing_ospflsa.py +++ b/graphiant_sdk/models/routing_ospflsa.py @@ -26,28 +26,26 @@ from graphiant_sdk.models.routing_ospfas_external_lsa import RoutingOspfasExternalLsa from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class RoutingOspflsa(BaseModel): """ RoutingOspflsa """ # noqa: E501 - advertising_router: Optional[StrictStr] = Field(default=None, description="IP address (required)", alias="advertisingRouter", json_schema_extra={"examples": ["172.121.12.34"]}) - age: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="How old is the LSA (required)", json_schema_extra={"examples": [3242342]}) + advertising_router: Optional[StrictStr] = Field(default=None, description="IP address (required)", alias="advertisingRouter") + age: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="How old is the LSA (required)") asexternal_lsa: Optional[RoutingOspfasExternalLsa] = Field(default=None, alias="asexternalLsa") - checksum: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="LSA Checksum (required)", json_schema_extra={"examples": [2343232]}) - length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="LSA length (required)", json_schema_extra={"examples": [123132]}) - link_id: Optional[StrictStr] = Field(default=None, description="IP address of link on peer (required)", alias="linkId", json_schema_extra={"examples": ["143.12.1.5"]}) + checksum: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="LSA Checksum (required)") + length: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="LSA length (required)") + link_id: Optional[StrictStr] = Field(default=None, description="IP address of link on peer (required)", alias="linkId") network_lsa: Optional[RoutingOspfNetworkLsa] = Field(default=None, alias="networkLsa") router_lsa: Optional[RoutingOspfRouterLsa] = Field(default=None, alias="routerLsa") - sequence_number: Optional[StrictStr] = Field(default=None, description="LSA sequence number (required)", alias="sequenceNumber", json_schema_extra={"examples": ["0x80000001"]}) + sequence_number: Optional[StrictStr] = Field(default=None, description="LSA sequence number (required)", alias="sequenceNumber") summary_lsa: Optional[RoutingOspfSummaryLsa] = Field(default=None, alias="summaryLsa") - type: Optional[StrictStr] = Field(default=None, description="Type of LSA (required)", json_schema_extra={"examples": ["Router"]}) + type: Optional[StrictStr] = Field(default=None, description="Type of LSA (required)") __properties: ClassVar[List[str]] = ["advertisingRouter", "age", "asexternalLsa", "checksum", "length", "linkId", "networkLsa", "routerLsa", "sequenceNumber", "summaryLsa", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,7 +57,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_ospflsa_tos_metric.py b/graphiant_sdk/models/routing_ospflsa_tos_metric.py index 18565856..9cce8205 100644 --- a/graphiant_sdk/models/routing_ospflsa_tos_metric.py +++ b/graphiant_sdk/models/routing_ospflsa_tos_metric.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class RoutingOspflsaTosMetric(BaseModel): """ RoutingOspflsaTosMetric """ # noqa: E501 - tos: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - tos_metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tosMetric", json_schema_extra={"examples": [123]}) + tos: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + tos_metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tosMetric") __properties: ClassVar[List[str]] = ["tos", "tosMetric"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_prefix_filter.py b/graphiant_sdk/models/routing_prefix_filter.py index 84e8dc55..b5577669 100644 --- a/graphiant_sdk/models/routing_prefix_filter.py +++ b/graphiant_sdk/models/routing_prefix_filter.py @@ -21,25 +21,23 @@ 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 RoutingPrefixFilter(BaseModel): """ RoutingPrefixFilter """ # noqa: E501 as_path: Optional[List[StrictStr]] = Field(default=None, alias="asPath") - ext_community: Optional[StrictStr] = Field(default=None, alias="extCommunity", json_schema_extra={"examples": ["example string"]}) - interface_name: Optional[StrictStr] = Field(default=None, description="Interface name", alias="interfaceName", json_schema_extra={"examples": ["ethernet1/0"]}) - next_hop: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 Nexthop", alias="nextHop", json_schema_extra={"examples": ["10.1.1.1"]}) - prefix: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - rd: Optional[StrictStr] = Field(default=None, description="Route RD. Must for BGPAddrFamilyVpnIpv4Unicast/BGPAddrFamilyVpnIpv6Unicast", json_schema_extra={"examples": ["10:1231"]}) - src_proto: Optional[StrictStr] = Field(default=None, alias="srcProto", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, description="route type", json_schema_extra={"examples": ["internal or external"]}) + ext_community: Optional[StrictStr] = Field(default=None, alias="extCommunity") + interface_name: Optional[StrictStr] = Field(default=None, description="Interface name", alias="interfaceName") + next_hop: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 Nexthop", alias="nextHop") + prefix: Optional[StrictStr] = None + rd: Optional[StrictStr] = Field(default=None, description="Route RD. Must for BGPAddrFamilyVpnIpv4Unicast/BGPAddrFamilyVpnIpv6Unicast") + src_proto: Optional[StrictStr] = Field(default=None, alias="srcProto") + type: Optional[StrictStr] = Field(default=None, description="route type") __properties: ClassVar[List[str]] = ["asPath", "extCommunity", "interfaceName", "nextHop", "prefix", "rd", "srcProto", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routing_vrrp_entry.py b/graphiant_sdk/models/routing_vrrp_entry.py index 71183b8c..70924fa4 100644 --- a/graphiant_sdk/models/routing_vrrp_entry.py +++ b/graphiant_sdk/models/routing_vrrp_entry.py @@ -22,28 +22,26 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class RoutingVrrpEntry(BaseModel): """ RoutingVrrpEntry """ # noqa: E501 - address_family: Optional[StrictStr] = Field(default=None, description="type of IP address", alias="addressFamily", json_schema_extra={"examples": ["IPv4 or IPv6"]}) - advertisement_rcvd: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="advertisementRcvd", json_schema_extra={"examples": [12345678910]}) - advertisement_sent: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="advertisementSent", json_schema_extra={"examples": [12345678910]}) - effective_priority: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="effectivePriority", json_schema_extra={"examples": [123]}) - group_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="groupId", json_schema_extra={"examples": [123]}) - is_owner: Optional[StrictBool] = Field(default=None, alias="isOwner", json_schema_extra={"examples": [True]}) - master_transition: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="masterTransition", json_schema_extra={"examples": [123]}) - new_master_reason: Optional[StrictStr] = Field(default=None, alias="newMasterReason", json_schema_extra={"examples": ["UNSET = 0"]}) - priority_zero_pkts_rcvd: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="priorityZeroPktsRcvd", json_schema_extra={"examples": [12345678910]}) - priority_zero_pkts_sent: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="priorityZeroPktsSent", json_schema_extra={"examples": [12345678910]}) - state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["UNSET = 0"]}) + address_family: Optional[StrictStr] = Field(default=None, description="type of IP address", alias="addressFamily") + advertisement_rcvd: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="advertisementRcvd") + advertisement_sent: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="advertisementSent") + effective_priority: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="effectivePriority") + group_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="groupId") + is_owner: Optional[StrictBool] = Field(default=None, alias="isOwner") + master_transition: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="masterTransition") + new_master_reason: Optional[StrictStr] = Field(default=None, alias="newMasterReason") + priority_zero_pkts_rcvd: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="priorityZeroPktsRcvd") + priority_zero_pkts_sent: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="priorityZeroPktsSent") + state: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["addressFamily", "advertisementRcvd", "advertisementSent", "effectivePriority", "groupId", "isOwner", "masterTransition", "newMasterReason", "priorityZeroPktsRcvd", "priorityZeroPktsSent", "state"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,7 +53,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routingbgp_counter.py b/graphiant_sdk/models/routingbgp_counter.py index 04fd8770..9242d280 100644 --- a/graphiant_sdk/models/routingbgp_counter.py +++ b/graphiant_sdk/models/routingbgp_counter.py @@ -22,23 +22,21 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class RoutingbgpCounter(BaseModel): """ RoutingbgpCounter """ # noqa: E501 - graceful_restart: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="gracefulRestart", json_schema_extra={"examples": [123]}) - local_as_number: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localAsNumber", json_schema_extra={"examples": [123]}) - local_ip_address: Optional[StrictStr] = Field(default=None, alias="localIpAddress", json_schema_extra={"examples": ["example string"]}) - local_router_id: Optional[StrictStr] = Field(default=None, alias="localRouterId", json_schema_extra={"examples": ["example string"]}) - peer_router_id: Optional[StrictStr] = Field(default=None, alias="peerRouterId", json_schema_extra={"examples": ["example string"]}) - up_time: Optional[StrictStr] = Field(default=None, alias="upTime", json_schema_extra={"examples": ["example string"]}) + graceful_restart: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="gracefulRestart") + local_as_number: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localAsNumber") + local_ip_address: Optional[StrictStr] = Field(default=None, alias="localIpAddress") + local_router_id: Optional[StrictStr] = Field(default=None, alias="localRouterId") + peer_router_id: Optional[StrictStr] = Field(default=None, alias="peerRouterId") + up_time: Optional[StrictStr] = Field(default=None, alias="upTime") __properties: ClassVar[List[str]] = ["gracefulRestart", "localAsNumber", "localIpAddress", "localRouterId", "peerRouterId", "upTime"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/routingprefix.py b/graphiant_sdk/models/routingprefix.py index 1aa9d9c4..d2397f86 100644 --- a/graphiant_sdk/models/routingprefix.py +++ b/graphiant_sdk/models/routingprefix.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class Routingprefix(BaseModel): """ Routingprefix """ # noqa: E501 - afi_safi_name: Optional[StrictStr] = Field(default=None, alias="afiSafiName", json_schema_extra={"examples": ["example string"]}) - prefix_rcvd: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="prefixRcvd", json_schema_extra={"examples": [123]}) - prefix_sent: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="prefixSent", json_schema_extra={"examples": [123]}) + afi_safi_name: Optional[StrictStr] = Field(default=None, alias="afiSafiName") + prefix_rcvd: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="prefixRcvd") + prefix_sent: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="prefixSent") __properties: ClassVar[List[str]] = ["afiSafiName", "prefixRcvd", "prefixSent"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/search_edge_summary.py b/graphiant_sdk/models/search_edge_summary.py index 3bb1ef82..40047fc7 100644 --- a/graphiant_sdk/models/search_edge_summary.py +++ b/graphiant_sdk/models/search_edge_summary.py @@ -25,48 +25,46 @@ from graphiant_sdk.models.upgrade_upgrade_summary import UpgradeUpgradeSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class SearchEdgeSummary(BaseModel): """ SearchEdgeSummary """ # noqa: E501 assigned_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="assignedOn") - canary_mode: Optional[StrictStr] = Field(default=None, alias="canaryMode", json_schema_extra={"examples": ["ENUM_VALUE"]}) + canary_mode: Optional[StrictStr] = Field(default=None, alias="canaryMode") connected_regions: Optional[List[StrictStr]] = Field(default=None, alias="connectedRegions") - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - discovered_location: Optional[StrictStr] = Field(default=None, alias="discoveredLocation", json_schema_extra={"examples": ["example string"]}) - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - enterprise_name: Optional[StrictStr] = Field(default=None, alias="enterpriseName", json_schema_extra={"examples": ["example string"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + discovered_location: Optional[StrictStr] = Field(default=None, alias="discoveredLocation") + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + enterprise_name: Optional[StrictStr] = Field(default=None, alias="enterpriseName") first_appeared_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="firstAppearedOn") - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - ip_detected: Optional[StrictStr] = Field(default=None, alias="ipDetected", json_schema_extra={"examples": ["example string"]}) - is_hardware: Optional[StrictBool] = Field(default=None, alias="isHardware", json_schema_extra={"examples": [True]}) - is_new: Optional[StrictBool] = Field(default=None, alias="isNew", json_schema_extra={"examples": [True]}) - is_requested: Optional[StrictBool] = Field(default=None, alias="isRequested", json_schema_extra={"examples": [True]}) - is_requested_status: Optional[StrictStr] = Field(default=None, alias="isRequestedStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + hostname: Optional[StrictStr] = None + ip_detected: Optional[StrictStr] = Field(default=None, alias="ipDetected") + is_hardware: Optional[StrictBool] = Field(default=None, alias="isHardware") + is_new: Optional[StrictBool] = Field(default=None, alias="isNew") + is_requested: Optional[StrictBool] = Field(default=None, alias="isRequested") + is_requested_status: Optional[StrictStr] = Field(default=None, alias="isRequestedStatus") last_booted_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastBootedAt") location: Optional[ManaV2Location] = None - model: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - override_region: Optional[StrictStr] = Field(default=None, alias="overrideRegion", json_schema_extra={"examples": ["example string"]}) - parent_enterprise_name: Optional[StrictStr] = Field(default=None, alias="parentEnterpriseName", json_schema_extra={"examples": ["example string"]}) - portal_status: Optional[StrictStr] = Field(default=None, alias="portalStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - region: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - serial_num: Optional[StrictStr] = Field(default=None, alias="serialNum", json_schema_extra={"examples": ["example string"]}) - site: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) - stale: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - sw_name: Optional[StrictStr] = Field(default=None, alias="swName", json_schema_extra={"examples": ["example string"]}) - sw_version: Optional[StrictStr] = Field(default=None, alias="swVersion", json_schema_extra={"examples": ["example string"]}) - tt_conn_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ttConnCount", json_schema_extra={"examples": [123]}) + model: Optional[StrictStr] = None + override_region: Optional[StrictStr] = Field(default=None, alias="overrideRegion") + parent_enterprise_name: Optional[StrictStr] = Field(default=None, alias="parentEnterpriseName") + portal_status: Optional[StrictStr] = Field(default=None, alias="portalStatus") + region: Optional[StrictStr] = None + role: Optional[StrictStr] = None + serial_num: Optional[StrictStr] = Field(default=None, alias="serialNum") + site: Optional[StrictStr] = None + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + stale: Optional[StrictBool] = None + status: Optional[StrictStr] = None + sw_name: Optional[StrictStr] = Field(default=None, alias="swName") + sw_version: Optional[StrictStr] = Field(default=None, alias="swVersion") + tt_conn_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ttConnCount") upgrade_summary: Optional[UpgradeUpgradeSummary] = Field(default=None, alias="upgradeSummary") __properties: ClassVar[List[str]] = ["assignedOn", "canaryMode", "connectedRegions", "deviceId", "discoveredLocation", "enterpriseId", "enterpriseName", "firstAppearedOn", "hostname", "ipDetected", "isHardware", "isNew", "isRequested", "isRequestedStatus", "lastBootedAt", "location", "model", "overrideRegion", "parentEnterpriseName", "portalStatus", "region", "role", "serialNum", "site", "siteId", "stale", "status", "swName", "swVersion", "ttConnCount", "upgradeSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -78,7 +76,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/search_search_filter.py b/graphiant_sdk/models/search_search_filter.py index 402cb07d..c7672566 100644 --- a/graphiant_sdk/models/search_search_filter.py +++ b/graphiant_sdk/models/search_search_filter.py @@ -21,20 +21,18 @@ 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 SearchSearchFilter(BaseModel): """ SearchSearchFilter """ # noqa: E501 - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) - status: StrictStr = Field(description="Status of the device, valid values are staging, active, inactive (required)", json_schema_extra={"examples": ["active"]}) + role: Optional[StrictStr] = None + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + status: StrictStr = Field(description="Status of the device, valid values are staging, active, inactive (required)") __properties: ClassVar[List[str]] = ["role", "siteName", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/search_search_result.py b/graphiant_sdk/models/search_search_result.py index cc91a76a..6b0d8bdd 100644 --- a/graphiant_sdk/models/search_search_result.py +++ b/graphiant_sdk/models/search_search_result.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class SearchSearchResult(BaseModel): """ SearchSearchResult """ # noqa: E501 - context: Optional[StrictStr] = Field(default=None, description="A search context from the SearchContext enum (required)", json_schema_extra={"examples": ["1"]}) - id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="A search context from the SearchContext enum (required)", json_schema_extra={"examples": [1234]}) - result: Optional[StrictStr] = Field(default=None, description="A search result (required)", json_schema_extra={"examples": ["example string"]}) + context: Optional[StrictStr] = Field(default=None, description="A search context from the SearchContext enum (required)") + id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="A search context from the SearchContext enum (required)") + result: Optional[StrictStr] = Field(default=None, description="A search result (required)") __properties: ClassVar[List[str]] = ["context", "id", "result"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_backbonehealth_control_plane.py b/graphiant_sdk/models/statsmon_backbonehealth_control_plane.py index e94315a2..92189572 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_control_plane.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_control_plane.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_backbonehealth_transition_series import StatsmonBackbonehealthTransitionSeries from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBackbonehealthControlPlane(BaseModel): """ @@ -30,12 +29,11 @@ class StatsmonBackbonehealthControlPlane(BaseModel): """ # noqa: E501 control_transitions: Optional[StatsmonBackbonehealthTransitionSeries] = Field(default=None, alias="controlTransitions") management_transitions: Optional[StatsmonBackbonehealthTransitionSeries] = Field(default=None, alias="managementTransitions") - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["controlTransitions", "managementTransitions", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_backbonehealth_data_plane.py b/graphiant_sdk/models/statsmon_backbonehealth_data_plane.py index f71d69cc..bf99dde5 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_data_plane.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_data_plane.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_session_sla import StatsmonTroubleshootingSessionSla from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBackbonehealthDataPlane(BaseModel): """ @@ -31,12 +30,11 @@ class StatsmonBackbonehealthDataPlane(BaseModel): """ # noqa: E501 down_transitions: Optional[List[StatsmonBackbonehealthTransitions]] = Field(default=None, alias="downTransitions") session_slas: Optional[List[StatsmonTroubleshootingSessionSla]] = Field(default=None, alias="sessionSlas") - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["downTransitions", "sessionSlas", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response.py b/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response.py index dbada98b..05cf5236 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_backbonehealth_get_qoe_matrix_response_qoe_session_summary import StatsmonBackbonehealthGetQOEMatrixResponseQoeSessionSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBackbonehealthGetQoeMatrixResponse(BaseModel): """ @@ -34,8 +33,7 @@ class StatsmonBackbonehealthGetQoeMatrixResponse(BaseModel): __properties: ClassVar[List[str]] = ["devices", "qoeMatrix"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_devices_summary.py b/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_devices_summary.py index c5408193..7fbe7d85 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_devices_summary.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_devices_summary.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.statsmon_troubleshooting_region import StatsmonTroubleshootingRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBackbonehealthGetQOEMatrixResponseDevicesSummary(BaseModel): """ StatsmonBackbonehealthGetQOEMatrixResponseDevicesSummary """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") region: Optional[StatsmonTroubleshootingRegion] = None __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "region"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_qoe_session_summary.py b/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_qoe_session_summary.py index 99c498a9..3a3bc01c 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_qoe_session_summary.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_qoe_session_summary.py @@ -23,23 +23,21 @@ from graphiant_sdk.models.statsmon_troubleshooting_region import StatsmonTroubleshootingRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBackbonehealthGetQOEMatrixResponseQoeSessionSummary(BaseModel): """ StatsmonBackbonehealthGetQOEMatrixResponseQoeSessionSummary """ # noqa: E501 box: Optional[List[StatsmonBackbonehealthGetQOEMatrixResponseQoeSessionSummaryQoeSessionBox]] = None - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") device_region: Optional[StatsmonTroubleshootingRegion] = Field(default=None, alias="deviceRegion") - peer_device_id: Optional[StrictInt] = Field(default=None, alias="peerDeviceId", json_schema_extra={"examples": [1234567891011]}) + peer_device_id: Optional[StrictInt] = Field(default=None, alias="peerDeviceId") peer_device_region: Optional[StatsmonTroubleshootingRegion] = Field(default=None, alias="peerDeviceRegion") - session_name: Optional[StrictStr] = Field(default=None, alias="sessionName", json_schema_extra={"examples": ["example string"]}) + session_name: Optional[StrictStr] = Field(default=None, alias="sessionName") __properties: ClassVar[List[str]] = ["box", "deviceId", "deviceRegion", "peerDeviceId", "peerDeviceRegion", "sessionName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_qoe_session_summary_qoe_session_box.py b/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_qoe_session_summary_qoe_session_box.py index 0666e7d0..afceeeff 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_qoe_session_summary_qoe_session_box.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_get_qoe_matrix_response_qoe_session_summary_qoe_session_box.py @@ -22,24 +22,22 @@ 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 StatsmonBackbonehealthGetQOEMatrixResponseQoeSessionSummaryQoeSessionBox(BaseModel): """ StatsmonBackbonehealthGetQOEMatrixResponseQoeSessionSummaryQoeSessionBox """ # noqa: E501 - delay_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="delayValue", json_schema_extra={"examples": [123.45]}) + delay_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="delayValue") end_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="endTime") - jitter_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="jitterValue", json_schema_extra={"examples": [123.45]}) - loss_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="lossValue", json_schema_extra={"examples": [123.45]}) + jitter_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="jitterValue") + loss_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="lossValue") start_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTime") - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [123.45]}) + status: Optional[StrictStr] = None + value: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["delayValue", "endTime", "jitterValue", "lossValue", "startTime", "status", "value"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_backbonehealth_system_plane.py b/graphiant_sdk/models/statsmon_backbonehealth_system_plane.py index 68a30c20..df603fb1 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_system_plane.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_system_plane.py @@ -26,7 +26,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_system_stat import StatsmonTroubleshootingSystemStat from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBackbonehealthSystemPlane(BaseModel): """ @@ -39,13 +38,12 @@ class StatsmonBackbonehealthSystemPlane(BaseModel): maintenance_windows: Optional[List[StatsmonTroubleshootingMaintenanceWindow]] = Field(default=None, alias="maintenanceWindows") memory: Optional[List[StatsmonTroubleshootingSystemStat]] = None overheating: Optional[List[StatsmonTroubleshootingOverheating]] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None temperature_series: Optional[List[StatsmonTroubleshootingSystemStat]] = Field(default=None, alias="temperatureSeries") __properties: ClassVar[List[str]] = ["cpu", "crashes", "disk", "lastCrash", "maintenanceWindows", "memory", "overheating", "status", "temperatureSeries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_backbonehealth_transition_series.py b/graphiant_sdk/models/statsmon_backbonehealth_transition_series.py index 2c4f9858..0908b5c7 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_transition_series.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_transition_series.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_backbonehealth_transitions import StatsmonBackbonehealthTransitions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBackbonehealthTransitionSeries(BaseModel): """ @@ -32,8 +31,7 @@ class StatsmonBackbonehealthTransitionSeries(BaseModel): __properties: ClassVar[List[str]] = ["transitions"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_backbonehealth_transitions.py b/graphiant_sdk/models/statsmon_backbonehealth_transitions.py index 4966ddda..c46ce93c 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_transitions.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_transitions.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.statsmon_troubleshooting_system_stat import StatsmonTroubleshootingSystemStat from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBackbonehealthTransitions(BaseModel): """ StatsmonBackbonehealthTransitions """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None transitions: Optional[List[StatsmonTroubleshootingSystemStat]] = None __properties: ClassVar[List[str]] = ["name", "transitions"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_enterprise_details.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_enterprise_details.py index 6e043696..01568550 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_enterprise_details.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_enterprise_details.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_site import StatsmonBandwidthtrackerBwUsageBySite from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageByEnterpriseDetails(BaseModel): """ @@ -35,8 +34,7 @@ class StatsmonBandwidthtrackerBwUsageByEnterpriseDetails(BaseModel): __properties: ClassVar[List[str]] = ["bwusageRegion", "bwusageSite", "bwusageSiteGateway"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_enterprise_summary.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_enterprise_summary.py index 279fb6bb..30a89ff0 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_enterprise_summary.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_enterprise_summary.py @@ -25,7 +25,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_top_regions import StatsmonBandwidthtrackerBwUsageByTopRegions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageByEnterpriseSummary(BaseModel): """ @@ -34,16 +33,15 @@ class StatsmonBandwidthtrackerBwUsageByEnterpriseSummary(BaseModel): bwusage_role_summary: Optional[List[StatsmonBandwidthtrackerBwUsageByRoleSummary]] = Field(default=None, alias="bwusageRoleSummary") bwusage_top_regions: Optional[List[StatsmonBandwidthtrackerBwUsageByTopRegions]] = Field(default=None, alias="bwusageTopRegions") min_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="minTime") - percent_changed: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="percentChanged", json_schema_extra={"examples": [123.45]}) - provider_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="providerCount", json_schema_extra={"examples": [12345678910]}) - region_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionCount", json_schema_extra={"examples": [12345678910]}) - site_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteCount", json_schema_extra={"examples": [12345678910]}) - usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps", json_schema_extra={"examples": [123.45]}) + percent_changed: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="percentChanged") + provider_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="providerCount") + region_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionCount") + site_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteCount") + usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps") __properties: ClassVar[List[str]] = ["bwusageRoleSummary", "bwusageTopRegions", "minTime", "percentChanged", "providerCount", "regionCount", "siteCount", "usageKbps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,7 +53,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region.py index 363b6348..07cc8b81 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region.py @@ -22,21 +22,19 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageByRegion(BaseModel): """ StatsmonBandwidthtrackerBwUsageByRegion """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) - region_name: Optional[StrictStr] = Field(default=None, alias="regionName", json_schema_extra={"examples": ["example string"]}) - site_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteCount", json_schema_extra={"examples": [12345678910]}) - usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps", json_schema_extra={"examples": [123.45]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + region_name: Optional[StrictStr] = Field(default=None, alias="regionName") + site_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteCount") + usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps") __properties: ClassVar[List[str]] = ["regionId", "regionName", "siteCount", "usageKbps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region_edge_details.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region_edge_details.py index f5b5b8ef..bc5f02ed 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region_edge_details.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region_edge_details.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_site import StatsmonBandwidthtrackerBwUsageBySite from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageByRegionEdgeDetails(BaseModel): """ @@ -32,8 +31,7 @@ class StatsmonBandwidthtrackerBwUsageByRegionEdgeDetails(BaseModel): __properties: ClassVar[List[str]] = ["bwuageSites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region_edge_summary.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region_edge_summary.py index 763e2b1c..d76795a8 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region_edge_summary.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region_edge_summary.py @@ -23,22 +23,20 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_top_sites import StatsmonBandwidthtrackerBwUsageByTopSites from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageByRegionEdgeSummary(BaseModel): """ StatsmonBandwidthtrackerBwUsageByRegionEdgeSummary """ # noqa: E501 bwusage_top_sites: Optional[List[StatsmonBandwidthtrackerBwUsageByTopSites]] = Field(default=None, alias="bwusageTopSites") - edgeusage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="edgeusageKbps", json_schema_extra={"examples": [123.45]}) - percent_changed: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="percentChanged", json_schema_extra={"examples": [123.45]}) - site_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteCount", json_schema_extra={"examples": [12345678910]}) - totusage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totusageKbps", json_schema_extra={"examples": [123.45]}) + edgeusage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="edgeusageKbps") + percent_changed: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="percentChanged") + site_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteCount") + totusage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="totusageKbps") __properties: ClassVar[List[str]] = ["bwusageTopSites", "edgeusageKbps", "percentChanged", "siteCount", "totusageKbps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_role_summary.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_role_summary.py index 3b0cb508..0504bc72 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_role_summary.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_role_summary.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageByRoleSummary(BaseModel): """ StatsmonBandwidthtrackerBwUsageByRoleSummary """ # noqa: E501 - role_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="roleId", json_schema_extra={"examples": [12345678910]}) - role_name: Optional[StrictStr] = Field(default=None, alias="roleName", json_schema_extra={"examples": ["example string"]}) - usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps", json_schema_extra={"examples": [123.45]}) + role_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="roleId") + role_name: Optional[StrictStr] = Field(default=None, alias="roleName") + usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps") __properties: ClassVar[List[str]] = ["roleId", "roleName", "usageKbps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site.py index 213ed62e..6c2fe4bb 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site.py @@ -22,23 +22,21 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageBySite(BaseModel): """ StatsmonBandwidthtrackerBwUsageBySite """ # noqa: E501 - edge_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="edgeCount", json_schema_extra={"examples": [12345678910]}) - location_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="locationId", json_schema_extra={"examples": [12345678910]}) - location_name: Optional[StrictStr] = Field(default=None, alias="locationName", json_schema_extra={"examples": ["example string"]}) - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) - usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps", json_schema_extra={"examples": [123.45]}) + edge_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="edgeCount") + location_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="locationId") + location_name: Optional[StrictStr] = Field(default=None, alias="locationName") + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps") __properties: ClassVar[List[str]] = ["edgeCount", "locationId", "locationName", "siteId", "siteName", "usageKbps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_details.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_details.py index c398bac8..85cf92d1 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_details.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_details.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_site_provider import StatsmonBandwidthtrackerBwUsageBySiteProvider from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageBySiteDetails(BaseModel): """ @@ -34,8 +33,7 @@ class StatsmonBandwidthtrackerBwUsageBySiteDetails(BaseModel): __properties: ClassVar[List[str]] = ["bwuageEdgeProvider", "bwuageProvider"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_edge_provider.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_edge_provider.py index 8164f564..3362c5cd 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_edge_provider.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_edge_provider.py @@ -22,22 +22,20 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageBySiteEdgeProvider(BaseModel): """ StatsmonBandwidthtrackerBwUsageBySiteEdgeProvider """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) - provider_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="providerId", json_schema_extra={"examples": [12345678910]}) - provider_name: Optional[StrictStr] = Field(default=None, alias="providerName", json_schema_extra={"examples": ["example string"]}) - usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps", json_schema_extra={"examples": [123.45]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + provider_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="providerId") + provider_name: Optional[StrictStr] = Field(default=None, alias="providerName") + usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps") __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "providerId", "providerName", "usageKbps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_provider.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_provider.py index 95e3ef5f..fba9f40e 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_provider.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_provider.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageBySiteProvider(BaseModel): """ StatsmonBandwidthtrackerBwUsageBySiteProvider """ # noqa: E501 - provider_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="providerId", json_schema_extra={"examples": [12345678910]}) - provider_name: Optional[StrictStr] = Field(default=None, alias="providerName", json_schema_extra={"examples": ["example string"]}) - usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps", json_schema_extra={"examples": [123.45]}) + provider_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="providerId") + provider_name: Optional[StrictStr] = Field(default=None, alias="providerName") + usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps") __properties: ClassVar[List[str]] = ["providerId", "providerName", "usageKbps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_summary.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_summary.py index ed69e123..3c35ab06 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_summary.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site_summary.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_region import StatsmonBandwidthtrackerBwUsageByRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageBySiteSummary(BaseModel): """ StatsmonBandwidthtrackerBwUsageBySiteSummary """ # noqa: E501 bwuage_region: Optional[List[StatsmonBandwidthtrackerBwUsageByRegion]] = Field(default=None, alias="bwuageRegion") - edge_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="edgeCount", json_schema_extra={"examples": [12345678910]}) - provider_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="providerCount", json_schema_extra={"examples": [12345678910]}) - usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps", json_schema_extra={"examples": [123.45]}) + edge_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="edgeCount") + provider_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="providerCount") + usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps") __properties: ClassVar[List[str]] = ["bwuageRegion", "edgeCount", "providerCount", "usageKbps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_top_regions.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_top_regions.py index 5e0f22d1..4d5e1f4f 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_top_regions.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_top_regions.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_role_summary import StatsmonBandwidthtrackerBwUsageByRoleSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageByTopRegions(BaseModel): """ StatsmonBandwidthtrackerBwUsageByTopRegions """ # noqa: E501 bwusage_role_summary: Optional[List[StatsmonBandwidthtrackerBwUsageByRoleSummary]] = Field(default=None, alias="bwusageRoleSummary") - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) - region_name: Optional[StrictStr] = Field(default=None, alias="regionName", json_schema_extra={"examples": ["example string"]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + region_name: Optional[StrictStr] = Field(default=None, alias="regionName") __properties: ClassVar[List[str]] = ["bwusageRoleSummary", "regionId", "regionName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_top_sites.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_top_sites.py index becce45f..ad12eb62 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_top_sites.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_top_sites.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageByTopSites(BaseModel): """ StatsmonBandwidthtrackerBwUsageByTopSites """ # noqa: E501 - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) - usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps", json_schema_extra={"examples": [123.45]}) + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps") __properties: ClassVar[List[str]] = ["siteId", "siteName", "usageKbps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart.py index 87262d26..f7886d8c 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_chart_value import StatsmonBandwidthtrackerBwUsageChartValue from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageChart(BaseModel): """ StatsmonBandwidthtrackerBwUsageChart """ # noqa: E501 bwusage_chart: Optional[List[StatsmonBandwidthtrackerBwUsageChartValue]] = Field(default=None, alias="bwusageChart") - percentile_usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="percentileUsageKbps", json_schema_extra={"examples": [123.45]}) + percentile_usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="percentileUsageKbps") __properties: ClassVar[List[str]] = ["bwusageChart", "percentileUsageKbps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart_value.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart_value.py index 333150d6..239e29d0 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart_value.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart_value.py @@ -23,21 +23,19 @@ 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 StatsmonBandwidthtrackerBwUsageChartValue(BaseModel): """ StatsmonBandwidthtrackerBwUsageChartValue """ # noqa: E501 - avg_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="avgValue", json_schema_extra={"examples": [123.45]}) - duration: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [12345678910]}) - max_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="maxValue", json_schema_extra={"examples": [123.45]}) + avg_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="avgValue") + duration: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + max_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="maxValue") start_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTime") __properties: ClassVar[List[str]] = ["avgValue", "duration", "maxValue", "startTime"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_csv_details.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_csv_details.py index 2d40d0a1..16ea537c 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_csv_details.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_csv_details.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_csv_record import StatsmonBandwidthtrackerBwUsageCsvRecord from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageCsvDetails(BaseModel): """ @@ -32,8 +31,7 @@ class StatsmonBandwidthtrackerBwUsageCsvDetails(BaseModel): __properties: ClassVar[List[str]] = ["bwusageCsvRecord"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_csv_record.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_csv_record.py index e24c4875..04e967e3 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_csv_record.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_csv_record.py @@ -22,24 +22,22 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonBandwidthtrackerBwUsageCsvRecord(BaseModel): """ StatsmonBandwidthtrackerBwUsageCsvRecord """ # noqa: E501 - cloud_provider_name: Optional[StrictStr] = Field(default=None, alias="cloudProviderName", json_schema_extra={"examples": ["example string"]}) - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) - enterprise_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [12345678910]}) - region_name: Optional[StrictStr] = Field(default=None, alias="regionName", json_schema_extra={"examples": ["example string"]}) - service_type: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="serviceType", json_schema_extra={"examples": [12345678910]}) - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) - usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps", json_schema_extra={"examples": [123.45]}) + cloud_provider_name: Optional[StrictStr] = Field(default=None, alias="cloudProviderName") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + enterprise_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="enterpriseId") + region_name: Optional[StrictStr] = Field(default=None, alias="regionName") + service_type: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="serviceType") + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") + usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="usageKbps") __properties: ClassVar[List[str]] = ["cloudProviderName", "deviceId", "enterpriseId", "regionName", "serviceType", "siteId", "usageKbps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_time_window.py b/graphiant_sdk/models/statsmon_bandwidthtracker_time_window.py index 7c99cb26..822b1559 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_time_window.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_time_window.py @@ -23,20 +23,18 @@ 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 StatsmonBandwidthtrackerTimeWindow(BaseModel): """ StatsmonBandwidthtrackerTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") __properties: ClassVar[List[str]] = ["bucketSizeSec", "oldTs", "recentTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_circuit_incidents.py b/graphiant_sdk/models/statsmon_circuit_incidents.py index a99d07b9..16e65ac9 100644 --- a/graphiant_sdk/models/statsmon_circuit_incidents.py +++ b/graphiant_sdk/models/statsmon_circuit_incidents.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonCircuitIncidents(BaseModel): """ StatsmonCircuitIncidents """ # noqa: E501 - num_fair_incidents: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numFairIncidents", json_schema_extra={"examples": [123]}) - num_poor_incidents: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numPoorIncidents", json_schema_extra={"examples": [123]}) + num_fair_incidents: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numFairIncidents") + num_poor_incidents: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numPoorIncidents") __properties: ClassVar[List[str]] = ["numFairIncidents", "numPoorIncidents"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_circuits_incidents.py b/graphiant_sdk/models/statsmon_circuits_incidents.py index 004da142..f3989df0 100644 --- a/graphiant_sdk/models/statsmon_circuits_incidents.py +++ b/graphiant_sdk/models/statsmon_circuits_incidents.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.statsmon_circuits_incidents_data import StatsmonCircuitsIncidentsData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonCircuitsIncidents(BaseModel): """ StatsmonCircuitsIncidents """ # noqa: E501 data: Optional[List[StatsmonCircuitsIncidentsData]] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["data", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_circuits_incidents_data.py b/graphiant_sdk/models/statsmon_circuits_incidents_data.py index 20b85eaf..0246511d 100644 --- a/graphiant_sdk/models/statsmon_circuits_incidents_data.py +++ b/graphiant_sdk/models/statsmon_circuits_incidents_data.py @@ -23,22 +23,20 @@ from graphiant_sdk.models.statsmon_circuit_incidents import StatsmonCircuitIncidents from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonCircuitsIncidentsData(BaseModel): """ StatsmonCircuitsIncidentsData """ # noqa: E501 dl_incidents: Optional[StatsmonCircuitIncidents] = Field(default=None, alias="dlIncidents") - overall_status: Optional[StrictStr] = Field(default=None, description="Overall circuit status based on num of poor/fair incidents.", alias="overallStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + overall_status: Optional[StrictStr] = Field(default=None, description="Overall circuit status based on num of poor/fair incidents.", alias="overallStatus") total_incidents: Optional[StatsmonCircuitIncidents] = Field(default=None, alias="totalIncidents") ts: Optional[GoogleProtobufTimestamp] = None ul_incidents: Optional[StatsmonCircuitIncidents] = Field(default=None, alias="ulIncidents") __properties: ClassVar[List[str]] = ["dlIncidents", "overallStatus", "totalIncidents", "ts", "ulIncidents"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_extranet_edge_status.py b/graphiant_sdk/models/statsmon_extranet_edge_status.py index 33d1ae17..c26cabb5 100644 --- a/graphiant_sdk/models/statsmon_extranet_edge_status.py +++ b/graphiant_sdk/models/statsmon_extranet_edge_status.py @@ -22,23 +22,21 @@ 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 StatsmonExtranetEdgeStatus(BaseModel): """ StatsmonExtranetEdgeStatus """ # noqa: E501 created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - disconnected_reason: Optional[StrictStr] = Field(default=None, description="the reason for the edge being disconnected", alias="disconnectedReason", json_schema_extra={"examples": ["No route to the server"]}) - hostname: Optional[StrictStr] = Field(default=None, description="the hostname of the edge", json_schema_extra={"examples": ["edge1"]}) - id: Optional[StrictInt] = Field(default=None, description="the id of the edge/device", json_schema_extra={"examples": [30000000001]}) - site_name: Optional[StrictStr] = Field(default=None, description="the name of the site", alias="siteName", json_schema_extra={"examples": ["site1"]}) - status: Optional[StrictStr] = Field(default=None, description="the health status of the edge (Healthy, Impaired, Down)", json_schema_extra={"examples": ["Healthy"]}) + disconnected_reason: Optional[StrictStr] = Field(default=None, description="the reason for the edge being disconnected", alias="disconnectedReason") + hostname: Optional[StrictStr] = Field(default=None, description="the hostname of the edge") + id: Optional[StrictInt] = Field(default=None, description="the id of the edge/device") + site_name: Optional[StrictStr] = Field(default=None, description="the name of the site", alias="siteName") + status: Optional[StrictStr] = Field(default=None, description="the health status of the edge (Healthy, Impaired, Down)") __properties: ClassVar[List[str]] = ["createdAt", "disconnectedReason", "hostname", "id", "siteName", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_extranet_prefix_health.py b/graphiant_sdk/models/statsmon_extranet_prefix_health.py index f21aaa8c..506aa5a5 100644 --- a/graphiant_sdk/models/statsmon_extranet_prefix_health.py +++ b/graphiant_sdk/models/statsmon_extranet_prefix_health.py @@ -21,19 +21,17 @@ 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 StatsmonExtranetPrefixHealth(BaseModel): """ StatsmonExtranetPrefixHealth """ # noqa: E501 - health: Optional[StrictStr] = Field(default=None, description="the health status of the prefix (Healthy, Impaired, Down)", json_schema_extra={"examples": ["Impaired"]}) + health: Optional[StrictStr] = Field(default=None, description="the health status of the prefix (Healthy, Impaired, Down)") missing_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="missingPrefixes") __properties: ClassVar[List[str]] = ["health", "missingPrefixes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_extranet_server_status.py b/graphiant_sdk/models/statsmon_extranet_server_status.py index bd10c7dd..9b932610 100644 --- a/graphiant_sdk/models/statsmon_extranet_server_status.py +++ b/graphiant_sdk/models/statsmon_extranet_server_status.py @@ -21,19 +21,17 @@ 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 StatsmonExtranetServerStatus(BaseModel): """ StatsmonExtranetServerStatus """ # noqa: E501 - address: Optional[StrictStr] = Field(default=None, description="the IP address of the server", json_schema_extra={"examples": ["192.168.1.1"]}) - status: Optional[StrictStr] = Field(default=None, description="the health status of the server (Healthy, Impaired, Down)", json_schema_extra={"examples": ["Healthy"]}) + address: Optional[StrictStr] = Field(default=None, description="the IP address of the server") + status: Optional[StrictStr] = Field(default=None, description="the health status of the server (Healthy, Impaired, Down)") __properties: ClassVar[List[str]] = ["address", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_extranet_service_health.py b/graphiant_sdk/models/statsmon_extranet_service_health.py index 479667f6..eaff3ede 100644 --- a/graphiant_sdk/models/statsmon_extranet_service_health.py +++ b/graphiant_sdk/models/statsmon_extranet_service_health.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.statsmon_extranet_prefix_health import StatsmonExtranetPrefixHealth from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonExtranetServiceHealth(BaseModel): """ StatsmonExtranetServiceHealth """ # noqa: E501 - customer_name: Optional[StrictStr] = Field(default=None, description="the name of the customer", alias="customerName", json_schema_extra={"examples": ["Customer 1"]}) + customer_name: Optional[StrictStr] = Field(default=None, description="the name of the customer", alias="customerName") customer_prefix_health: Optional[StatsmonExtranetPrefixHealth] = Field(default=None, alias="customerPrefixHealth") - overall_health: Optional[StrictStr] = Field(default=None, description="the overall connectivity status of the service (Healthy, Impaired, Down)", alias="overallHealth", json_schema_extra={"examples": ["Impaired"]}) + overall_health: Optional[StrictStr] = Field(default=None, description="the overall connectivity status of the service (Healthy, Impaired, Down)", alias="overallHealth") producer_prefix_health: Optional[StatsmonExtranetPrefixHealth] = Field(default=None, alias="producerPrefixHealth") __properties: ClassVar[List[str]] = ["customerName", "customerPrefixHealth", "overallHealth", "producerPrefixHealth"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_extranet_site_status.py b/graphiant_sdk/models/statsmon_extranet_site_status.py index abb4ef51..45169dc5 100644 --- a/graphiant_sdk/models/statsmon_extranet_site_status.py +++ b/graphiant_sdk/models/statsmon_extranet_site_status.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.statsmon_extranet_server_status import StatsmonExtranetServerStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonExtranetSiteStatus(BaseModel): """ StatsmonExtranetSiteStatus """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, description="the id of the site", json_schema_extra={"examples": [1]}) - name: Optional[StrictStr] = Field(default=None, description="the name of the site", json_schema_extra={"examples": ["site1"]}) - status: Optional[StrictStr] = Field(default=None, description="the status of the site (Healthy, Impaired, Down)", json_schema_extra={"examples": ["Healthy"]}) + id: Optional[StrictInt] = Field(default=None, description="the id of the site") + name: Optional[StrictStr] = Field(default=None, description="the name of the site") + status: Optional[StrictStr] = Field(default=None, description="the status of the site (Healthy, Impaired, Down)") statuses: Optional[List[StatsmonExtranetServerStatus]] = None __properties: ClassVar[List[str]] = ["id", "name", "status", "statuses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_time_window.py b/graphiant_sdk/models/statsmon_time_window.py index 8196db2f..087bdbb0 100644 --- a/graphiant_sdk/models/statsmon_time_window.py +++ b/graphiant_sdk/models/statsmon_time_window.py @@ -23,20 +23,18 @@ 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 StatsmonTimeWindow(BaseModel): """ StatsmonTimeWindow """ # noqa: E501 - bucket_size_sec: Annotated[int, Field(strict=True, ge=0)] = Field(description="the size of the time window in seconds (required)", alias="bucketSizeSec", json_schema_extra={"examples": [300]}) + bucket_size_sec: Annotated[int, Field(strict=True, ge=0)] = Field(description="the size of the time window in seconds (required)", alias="bucketSizeSec") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") __properties: ClassVar[List[str]] = ["bucketSizeSec", "oldTs", "recentTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_circuit_filter.py b/graphiant_sdk/models/statsmon_troubleshooting_circuit_filter.py index c325dc8b..ed1ee3f9 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_circuit_filter.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_circuit_filter.py @@ -21,18 +21,16 @@ 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 StatsmonTroubleshootingCircuitFilter(BaseModel): """ StatsmonTroubleshootingCircuitFilter """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") __properties: ClassVar[List[str]] = ["circuitName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_control_plane.py b/graphiant_sdk/models/statsmon_troubleshooting_control_plane.py index 7829a4d2..7c2946d1 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_control_plane.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_control_plane.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_transitions import StatsmonTroubleshootingTransitions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonTroubleshootingControlPlane(BaseModel): """ @@ -30,12 +29,11 @@ class StatsmonTroubleshootingControlPlane(BaseModel): """ # noqa: E501 control_transitions: Optional[List[StatsmonTroubleshootingTransitions]] = Field(default=None, alias="controlTransitions") management_transitions: Optional[List[StatsmonTroubleshootingTransitions]] = Field(default=None, alias="managementTransitions") - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["controlTransitions", "managementTransitions", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_crash.py b/graphiant_sdk/models/statsmon_troubleshooting_crash.py index 86d07d68..fa95b08a 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_crash.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_crash.py @@ -22,7 +22,6 @@ 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 StatsmonTroubleshootingCrash(BaseModel): """ @@ -32,8 +31,7 @@ class StatsmonTroubleshootingCrash(BaseModel): __properties: ClassVar[List[str]] = ["time"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_data_plane.py b/graphiant_sdk/models/statsmon_troubleshooting_data_plane.py index b408c188..c94a502c 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_data_plane.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_data_plane.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_transitions import StatsmonTroubleshootingTransitions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonTroubleshootingDataPlane(BaseModel): """ @@ -31,12 +30,11 @@ class StatsmonTroubleshootingDataPlane(BaseModel): """ # noqa: E501 down_transitions: Optional[List[StatsmonTroubleshootingTransitions]] = Field(default=None, alias="downTransitions") session_slas: Optional[List[StatsmonTroubleshootingSessionSla]] = Field(default=None, alias="sessionSlas") - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["downTransitions", "sessionSlas", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_device_filter.py b/graphiant_sdk/models/statsmon_troubleshooting_device_filter.py index 79fded46..df2340c1 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_device_filter.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_device_filter.py @@ -21,19 +21,17 @@ 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 StatsmonTroubleshootingDeviceFilter(BaseModel): """ StatsmonTroubleshootingDeviceFilter """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") __properties: ClassVar[List[str]] = ["deviceId", "deviceName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_edge_status.py b/graphiant_sdk/models/statsmon_troubleshooting_edge_status.py index 27fdba3a..3ec490de 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_edge_status.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_edge_status.py @@ -21,20 +21,18 @@ 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 StatsmonTroubleshootingEdgeStatus(BaseModel): """ StatsmonTroubleshootingEdgeStatus """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) - device_status: Optional[StrictStr] = Field(default=None, alias="deviceStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + device_status: Optional[StrictStr] = Field(default=None, alias="deviceStatus") __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "deviceStatus"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_filter.py b/graphiant_sdk/models/statsmon_troubleshooting_filter.py index e3dc3a96..e670aabe 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_filter.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_filter.py @@ -21,7 +21,6 @@ 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 StatsmonTroubleshootingFilter(BaseModel): """ @@ -35,8 +34,7 @@ class StatsmonTroubleshootingFilter(BaseModel): __properties: ClassVar[List[str]] = ["circuitNames", "deviceIds", "lanSegments", "regionIds", "siteIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_issue.py b/graphiant_sdk/models/statsmon_troubleshooting_issue.py index ba5a9acc..b17f3327 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_issue.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_issue.py @@ -22,30 +22,28 @@ 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 StatsmonTroubleshootingIssue(BaseModel): """ StatsmonTroubleshootingIssue """ # noqa: E501 - alert_id: Optional[StrictStr] = Field(default=None, alias="alertId", json_schema_extra={"examples": ["example string"]}) - allow_listed: Optional[StrictBool] = Field(default=None, alias="allowListed", json_schema_extra={"examples": [True]}) - component: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + alert_id: Optional[StrictStr] = Field(default=None, alias="alertId") + allow_listed: Optional[StrictBool] = Field(default=None, alias="allowListed") + component: Optional[StrictStr] = None end_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="endTime") - entity: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - issue: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - mute_listed: Optional[StrictBool] = Field(default=None, alias="muteListed", json_schema_extra={"examples": [True]}) - notification_created: Optional[StrictBool] = Field(default=None, alias="notificationCreated", json_schema_extra={"examples": [True]}) - plane: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - reason: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - severity: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + entity: Optional[StrictStr] = None + issue: Optional[StrictStr] = None + mute_listed: Optional[StrictBool] = Field(default=None, alias="muteListed") + notification_created: Optional[StrictBool] = Field(default=None, alias="notificationCreated") + plane: Optional[StrictStr] = None + reason: Optional[StrictStr] = None + severity: Optional[StrictStr] = None start_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTime") - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["alertId", "allowListed", "component", "endTime", "entity", "issue", "muteListed", "notificationCreated", "plane", "reason", "severity", "startTime", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_lan_segment_filter.py b/graphiant_sdk/models/statsmon_troubleshooting_lan_segment_filter.py index 860f6d39..d48dad51 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_lan_segment_filter.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_lan_segment_filter.py @@ -21,18 +21,16 @@ 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 StatsmonTroubleshootingLanSegmentFilter(BaseModel): """ StatsmonTroubleshootingLanSegmentFilter """ # noqa: E501 - lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": ["example string"]}) + lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment") __properties: ClassVar[List[str]] = ["lanSegment"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_last_crash.py b/graphiant_sdk/models/statsmon_troubleshooting_last_crash.py index e0b12c4f..a5f522b7 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_last_crash.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_last_crash.py @@ -22,20 +22,18 @@ 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 StatsmonTroubleshootingLastCrash(BaseModel): """ StatsmonTroubleshootingLastCrash """ # noqa: E501 - crash_details: Optional[StrictStr] = Field(default=None, alias="crashDetails", json_schema_extra={"examples": ["example string"]}) - reason: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + crash_details: Optional[StrictStr] = Field(default=None, alias="crashDetails") + reason: Optional[StrictStr] = None up_since_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="upSinceTs") __properties: ClassVar[List[str]] = ["crashDetails", "reason", "upSinceTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_maintenance_window.py b/graphiant_sdk/models/statsmon_troubleshooting_maintenance_window.py index 718fa500..d1240ab1 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_maintenance_window.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_maintenance_window.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_time_window import StatsmonTroubleshootingTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonTroubleshootingMaintenanceWindow(BaseModel): """ @@ -32,8 +31,7 @@ class StatsmonTroubleshootingMaintenanceWindow(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_overheating.py b/graphiant_sdk/models/statsmon_troubleshooting_overheating.py index b9d8210c..35e96826 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_overheating.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_overheating.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_time_window import StatsmonTroubleshootingTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonTroubleshootingOverheating(BaseModel): """ @@ -32,8 +31,7 @@ class StatsmonTroubleshootingOverheating(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_region.py b/graphiant_sdk/models/statsmon_troubleshooting_region.py index 5143876a..b0953630 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_region.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_region.py @@ -21,19 +21,17 @@ 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 StatsmonTroubleshootingRegion(BaseModel): """ StatsmonTroubleshootingRegion """ # noqa: E501 - region_id: Optional[StrictInt] = Field(default=None, alias="regionId", json_schema_extra={"examples": [123]}) - region_name: Optional[StrictStr] = Field(default=None, alias="regionName", json_schema_extra={"examples": ["example string"]}) + region_id: Optional[StrictInt] = Field(default=None, alias="regionId") + region_name: Optional[StrictStr] = Field(default=None, alias="regionName") __properties: ClassVar[List[str]] = ["regionId", "regionName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_region_filter.py b/graphiant_sdk/models/statsmon_troubleshooting_region_filter.py index 610cf871..00cf14a4 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_region_filter.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_region_filter.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_region import StatsmonTroubleshootingRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonTroubleshootingRegionFilter(BaseModel): """ @@ -32,8 +31,7 @@ class StatsmonTroubleshootingRegionFilter(BaseModel): __properties: ClassVar[List[str]] = ["region"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_session_sla.py b/graphiant_sdk/models/statsmon_troubleshooting_session_sla.py index 447cac34..a7071334 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_session_sla.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_session_sla.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.statsmon_troubleshooting_sla_value import StatsmonTroubleshootingSlaValue from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonTroubleshootingSessionSla(BaseModel): """ StatsmonTroubleshootingSessionSla """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None values: Optional[List[StatsmonTroubleshootingSlaValue]] = None __properties: ClassVar[List[str]] = ["name", "values"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_site_filter.py b/graphiant_sdk/models/statsmon_troubleshooting_site_filter.py index dd32fc91..645fb390 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_site_filter.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_site_filter.py @@ -21,19 +21,17 @@ 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 StatsmonTroubleshootingSiteFilter(BaseModel): """ StatsmonTroubleshootingSiteFilter """ # noqa: E501 - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") __properties: ClassVar[List[str]] = ["siteId", "siteName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_sla_value.py b/graphiant_sdk/models/statsmon_troubleshooting_sla_value.py index 2ddd9802..d8dcf53a 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_sla_value.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_sla_value.py @@ -22,23 +22,21 @@ 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 StatsmonTroubleshootingSlaValue(BaseModel): """ StatsmonTroubleshootingSlaValue """ # noqa: E501 - delay_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="delayValue", json_schema_extra={"examples": [123.45]}) - jitter_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="jitterValue", json_schema_extra={"examples": [123.45]}) - loss_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="lossValue", json_schema_extra={"examples": [123.45]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + delay_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="delayValue") + jitter_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="jitterValue") + loss_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="lossValue") + status: Optional[StrictStr] = None time: Optional[GoogleProtobufTimestamp] = None - value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [123.45]}) + value: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["delayValue", "jitterValue", "lossValue", "status", "time", "value"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_system_plane.py b/graphiant_sdk/models/statsmon_troubleshooting_system_plane.py index e85abb6d..e144f626 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_system_plane.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_system_plane.py @@ -26,7 +26,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_system_stat import StatsmonTroubleshootingSystemStat from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonTroubleshootingSystemPlane(BaseModel): """ @@ -38,14 +37,13 @@ class StatsmonTroubleshootingSystemPlane(BaseModel): last_crash: Optional[StatsmonTroubleshootingLastCrash] = Field(default=None, alias="lastCrash") maintenance_windows: Optional[List[StatsmonTroubleshootingMaintenanceWindow]] = Field(default=None, alias="maintenanceWindows") memory: Optional[List[StatsmonTroubleshootingSystemStat]] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None temperature: Optional[List[StatsmonTroubleshootingOverheating]] = None temperature_series: Optional[List[StatsmonTroubleshootingSystemStat]] = Field(default=None, alias="temperatureSeries") __properties: ClassVar[List[str]] = ["cpu", "crashes", "disk", "lastCrash", "maintenanceWindows", "memory", "status", "temperature", "temperatureSeries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_system_stat.py b/graphiant_sdk/models/statsmon_troubleshooting_system_stat.py index eff4e084..91dce72e 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_system_stat.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_system_stat.py @@ -22,21 +22,19 @@ 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 StatsmonTroubleshootingSystemStat(BaseModel): """ StatsmonTroubleshootingSystemStat """ # noqa: E501 - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - peer_name: Optional[StrictStr] = Field(default=None, alias="peerName", json_schema_extra={"examples": ["example string"]}) + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + peer_name: Optional[StrictStr] = Field(default=None, alias="peerName") time: Optional[GoogleProtobufTimestamp] = None - value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [123.45]}) + value: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["interfaceName", "peerName", "time", "value"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_time_window.py b/graphiant_sdk/models/statsmon_troubleshooting_time_window.py index 4d093962..f74d8ac0 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_time_window.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_time_window.py @@ -23,20 +23,18 @@ 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 StatsmonTroubleshootingTimeWindow(BaseModel): """ StatsmonTroubleshootingTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") __properties: ClassVar[List[str]] = ["bucketSizeSec", "oldTs", "recentTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_troubleshooting_transitions.py b/graphiant_sdk/models/statsmon_troubleshooting_transitions.py index a19f0581..94b9da47 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_transitions.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_transitions.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.statsmon_troubleshooting_system_stat import StatsmonTroubleshootingSystemStat from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonTroubleshootingTransitions(BaseModel): """ StatsmonTroubleshootingTransitions """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None transitions: Optional[List[StatsmonTroubleshootingSystemStat]] = None __properties: ClassVar[List[str]] = ["name", "transitions"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_bfd_stats_selector.py b/graphiant_sdk/models/statsmon_v2_bfd_stats_selector.py index 9d6bfe8f..a3da23b6 100644 --- a/graphiant_sdk/models/statsmon_v2_bfd_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_bfd_stats_selector.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2BfdStatsSelector(BaseModel): """ StatsmonV2BfdStatsSelector """ # noqa: E501 - if_index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ifIndex", json_schema_extra={"examples": [123]}) - peer_address: Optional[StrictStr] = Field(default=None, alias="peerAddress", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + if_index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="ifIndex") + peer_address: Optional[StrictStr] = Field(default=None, alias="peerAddress") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["ifIndex", "peerAddress", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_bgp_stats_selector.py b/graphiant_sdk/models/statsmon_v2_bgp_stats_selector.py index 2fcad107..5030b6b2 100644 --- a/graphiant_sdk/models/statsmon_v2_bgp_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_bgp_stats_selector.py @@ -21,20 +21,18 @@ 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 StatsmonV2BgpStatsSelector(BaseModel): """ StatsmonV2BgpStatsSelector """ # noqa: E501 - peer_address: Optional[StrictStr] = Field(default=None, alias="peerAddress", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - vrf: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + peer_address: Optional[StrictStr] = Field(default=None, alias="peerAddress") + type: Optional[StrictStr] = None + vrf: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["peerAddress", "type", "vrf"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_circuit_bandwidth_stats_selector.py b/graphiant_sdk/models/statsmon_v2_circuit_bandwidth_stats_selector.py index a8ca4de0..6d7f3434 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_bandwidth_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_bandwidth_stats_selector.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2CircuitBandwidthStatsSelector(BaseModel): """ StatsmonV2CircuitBandwidthStatsSelector """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") __properties: ClassVar[List[str]] = ["circuitName", "deviceId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_circuit_incidents.py b/graphiant_sdk/models/statsmon_v2_circuit_incidents.py index 463a87fd..c08fdd45 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_incidents.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_incidents.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_v2_circuit_incidents_data import StatsmonV2CircuitIncidentsData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2CircuitIncidents(BaseModel): """ @@ -32,8 +31,7 @@ class StatsmonV2CircuitIncidents(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_circuit_incidents_data.py b/graphiant_sdk/models/statsmon_v2_circuit_incidents_data.py index 0cbacf96..dc412d75 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_incidents_data.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_incidents_data.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_circuit_incidents_selector import StatsmonV2CircuitIncidentsSelector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2CircuitIncidentsData(BaseModel): """ @@ -34,8 +33,7 @@ class StatsmonV2CircuitIncidentsData(BaseModel): __properties: ClassVar[List[str]] = ["samples", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_circuit_incidents_data_sample.py b/graphiant_sdk/models/statsmon_v2_circuit_incidents_data_sample.py index 412d0bf7..72025ef4 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_incidents_data_sample.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_incidents_data_sample.py @@ -23,22 +23,20 @@ from graphiant_sdk.models.statsmon_v2_circuit_incidents_data_sample_incidents import StatsmonV2CircuitIncidentsDataSampleIncidents from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2CircuitIncidentsDataSample(BaseModel): """ StatsmonV2CircuitIncidentsDataSample """ # noqa: E501 dl_incidents: Optional[StatsmonV2CircuitIncidentsDataSampleIncidents] = Field(default=None, alias="dlIncidents") - overall_status: Optional[StrictStr] = Field(default=None, description="Overall circuit status based on num of poor/fair incidents.", alias="overallStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + overall_status: Optional[StrictStr] = Field(default=None, description="Overall circuit status based on num of poor/fair incidents.", alias="overallStatus") total_incidents: Optional[StatsmonV2CircuitIncidentsDataSampleIncidents] = Field(default=None, alias="totalIncidents") ts: Optional[GoogleProtobufTimestamp] = None ul_incidents: Optional[StatsmonV2CircuitIncidentsDataSampleIncidents] = Field(default=None, alias="ulIncidents") __properties: ClassVar[List[str]] = ["dlIncidents", "overallStatus", "totalIncidents", "ts", "ulIncidents"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_circuit_incidents_data_sample_incidents.py b/graphiant_sdk/models/statsmon_v2_circuit_incidents_data_sample_incidents.py index 8ce487f2..dcb866b9 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_incidents_data_sample_incidents.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_incidents_data_sample_incidents.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2CircuitIncidentsDataSampleIncidents(BaseModel): """ StatsmonV2CircuitIncidentsDataSampleIncidents """ # noqa: E501 - num_fair_incidents: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numFairIncidents", json_schema_extra={"examples": [123]}) - num_poor_incidents: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numPoorIncidents", json_schema_extra={"examples": [123]}) + num_fair_incidents: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numFairIncidents") + num_poor_incidents: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numPoorIncidents") __properties: ClassVar[List[str]] = ["numFairIncidents", "numPoorIncidents"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_circuit_incidents_selector.py b/graphiant_sdk/models/statsmon_v2_circuit_incidents_selector.py index baa3fb5c..56be82dd 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_incidents_selector.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_incidents_selector.py @@ -21,18 +21,16 @@ 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 StatsmonV2CircuitIncidentsSelector(BaseModel): """ StatsmonV2CircuitIncidentsSelector """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") __properties: ClassVar[List[str]] = ["circuitName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_circuit_summary.py b/graphiant_sdk/models/statsmon_v2_circuit_summary.py index 57122fe6..98f4ce16 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_summary.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_summary.py @@ -22,42 +22,40 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2CircuitSummary(BaseModel): """ StatsmonV2CircuitSummary """ # noqa: E501 - average_delay: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Average delay for this circuit in this time duration", alias="averageDelay", json_schema_extra={"examples": [12.34]}) - average_jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Average jitter for this circuit in this time duration", alias="averageJitter", json_schema_extra={"examples": [12.34]}) - average_link_down_speed_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageLinkDownSpeedKbps", json_schema_extra={"examples": [12.34]}) - average_link_up_speed_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageLinkUpSpeedKbps", json_schema_extra={"examples": [12.34]}) - average_loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Average loss for this circuit in this time duration", alias="averageLoss", json_schema_extra={"examples": [12.34]}) - avg_mos: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Graphiant avg score/QoE based on mos for the time duration", alias="avgMos", json_schema_extra={"examples": [12.34]}) - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) - config_link_down_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="configLinkDownSpeedMbps", json_schema_extra={"examples": [123]}) - config_link_up_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="configLinkUpSpeedMbps", json_schema_extra={"examples": [123]}) - connection_status: Optional[StrictStr] = Field(default=None, alias="connectionStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - current_link_down_speed_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="currentLinkDownSpeedKbps", json_schema_extra={"examples": [12.34]}) - current_link_up_speed_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="currentLinkUpSpeedKbps", json_schema_extra={"examples": [12.34]}) - delay: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Delay in nano seconds", json_schema_extra={"examples": [12345678910]}) - jitter: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Jitter in nano seconds", json_schema_extra={"examples": [12345678910]}) - last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort", json_schema_extra={"examples": [True]}) - loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Loss in percentage", json_schema_extra={"examples": [12.34]}) - max_delay: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Max delay for this circuit in this time duration", alias="maxDelay", json_schema_extra={"examples": [12.34]}) - max_jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Max jitter for this circuit in this time duration", alias="maxJitter", json_schema_extra={"examples": [12.34]}) - max_loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Max loss for this circuit in this time duration", alias="maxLoss", json_schema_extra={"examples": [12.34]}) - max_mos: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Graphiant max score/QoE based on mos for the time duration", alias="maxMos", json_schema_extra={"examples": [12.34]}) - min_delay: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Min delay for this circuit in this time duration", alias="minDelay", json_schema_extra={"examples": [12.34]}) - min_jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Min jitter for this circuit in this time duration", alias="minJitter", json_schema_extra={"examples": [12.34]}) - min_loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Min loss for this circuit in this time duration", alias="minLoss", json_schema_extra={"examples": [12.34]}) - min_mos: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Graphiant min score/QoE based on mos for the time duration", alias="minMos", json_schema_extra={"examples": [12.34]}) - mos: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Graphiant score/QoE based on mos", json_schema_extra={"examples": [12.34]}) + average_delay: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Average delay for this circuit in this time duration", alias="averageDelay") + average_jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Average jitter for this circuit in this time duration", alias="averageJitter") + average_link_down_speed_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageLinkDownSpeedKbps") + average_link_up_speed_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageLinkUpSpeedKbps") + average_loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Average loss for this circuit in this time duration", alias="averageLoss") + avg_mos: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Graphiant avg score/QoE based on mos for the time duration", alias="avgMos") + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + config_link_down_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="configLinkDownSpeedMbps") + config_link_up_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="configLinkUpSpeedMbps") + connection_status: Optional[StrictStr] = Field(default=None, alias="connectionStatus") + current_link_down_speed_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="currentLinkDownSpeedKbps") + current_link_up_speed_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="currentLinkUpSpeedKbps") + delay: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Delay in nano seconds") + jitter: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Jitter in nano seconds") + last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort") + loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Loss in percentage") + max_delay: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Max delay for this circuit in this time duration", alias="maxDelay") + max_jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Max jitter for this circuit in this time duration", alias="maxJitter") + max_loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Max loss for this circuit in this time duration", alias="maxLoss") + max_mos: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Graphiant max score/QoE based on mos for the time duration", alias="maxMos") + min_delay: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Min delay for this circuit in this time duration", alias="minDelay") + min_jitter: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Min jitter for this circuit in this time duration", alias="minJitter") + min_loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Min loss for this circuit in this time duration", alias="minLoss") + min_mos: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Graphiant min score/QoE based on mos for the time duration", alias="minMos") + mos: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Graphiant score/QoE based on mos") __properties: ClassVar[List[str]] = ["averageDelay", "averageJitter", "averageLinkDownSpeedKbps", "averageLinkUpSpeedKbps", "averageLoss", "avgMos", "circuitName", "configLinkDownSpeedMbps", "configLinkUpSpeedMbps", "connectionStatus", "currentLinkDownSpeedKbps", "currentLinkUpSpeedKbps", "delay", "jitter", "lastResort", "loss", "maxDelay", "maxJitter", "maxLoss", "maxMos", "minDelay", "minJitter", "minLoss", "minMos", "mos"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -69,7 +67,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_circuit_utilization_selector.py b/graphiant_sdk/models/statsmon_v2_circuit_utilization_selector.py index bf3c14fb..6734ff31 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_utilization_selector.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_utilization_selector.py @@ -21,18 +21,16 @@ 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 StatsmonV2CircuitUtilizationSelector(BaseModel): """ StatsmonV2CircuitUtilizationSelector """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") __properties: ClassVar[List[str]] = ["circuitName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_connection.py b/graphiant_sdk/models/statsmon_v2_connection.py index 1eac8450..8862d021 100644 --- a/graphiant_sdk/models/statsmon_v2_connection.py +++ b/graphiant_sdk/models/statsmon_v2_connection.py @@ -22,27 +22,25 @@ 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 StatsmonV2Connection(BaseModel): """ StatsmonV2Connection """ # noqa: E501 - active: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - circuit_carrier: Optional[StrictStr] = Field(default=None, alias="circuitCarrier", json_schema_extra={"examples": ["example string"]}) - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) - destination_ip: Optional[StrictStr] = Field(default=None, alias="destinationIp", json_schema_extra={"examples": ["example string"]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + active: Optional[StrictBool] = None + circuit_carrier: Optional[StrictStr] = Field(default=None, alias="circuitCarrier") + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + destination_ip: Optional[StrictStr] = Field(default=None, alias="destinationIp") + hostname: Optional[StrictStr] = None last_established_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastEstablishedTime") - last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort", json_schema_extra={"examples": [True]}) - quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp", json_schema_extra={"examples": ["example string"]}) - source_public_ip: Optional[StrictStr] = Field(default=None, alias="sourcePublicIp", json_schema_extra={"examples": ["example string"]}) + last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort") + quality: Optional[StrictStr] = None + source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp") + source_public_ip: Optional[StrictStr] = Field(default=None, alias="sourcePublicIp") __properties: ClassVar[List[str]] = ["active", "circuitCarrier", "circuitName", "destinationIp", "hostname", "lastEstablishedTime", "lastResort", "quality", "sourceIp", "sourcePublicIp"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_device_segments.py b/graphiant_sdk/models/statsmon_v2_device_segments.py index 3bf4189e..c0711e62 100644 --- a/graphiant_sdk/models/statsmon_v2_device_segments.py +++ b/graphiant_sdk/models/statsmon_v2_device_segments.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.statsmon_v2_vrf_routes import StatsmonV2VrfRoutes from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2DeviceSegments(BaseModel): """ StatsmonV2DeviceSegments """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") vrf_routes: Optional[List[StatsmonV2VrfRoutes]] = Field(default=None, alias="vrfRoutes") __properties: ClassVar[List[str]] = ["deviceId", "vrfRoutes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_edge.py b/graphiant_sdk/models/statsmon_v2_edge.py index cffb41eb..6f90ddc0 100644 --- a/graphiant_sdk/models/statsmon_v2_edge.py +++ b/graphiant_sdk/models/statsmon_v2_edge.py @@ -24,23 +24,21 @@ from graphiant_sdk.models.statsmon_v2_edgeedge_circuit_info import StatsmonV2EdgeedgeCircuitInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2Edge(BaseModel): """ StatsmonV2Edge """ # noqa: E501 - a: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - b: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + a: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + b: Optional[Annotated[int, Field(strict=True, ge=0)]] = None circuits_info: Optional[List[StatsmonV2EdgeedgeCircuitInfo]] = Field(default=None, alias="circuitsInfo") connections: Optional[List[StatsmonV2Connection]] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + name: Optional[StrictStr] = None + quality: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["a", "b", "circuitsInfo", "connections", "name", "quality"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_edgeedge_circuit_info.py b/graphiant_sdk/models/statsmon_v2_edgeedge_circuit_info.py index 7c9b31b3..39c8a8b7 100644 --- a/graphiant_sdk/models/statsmon_v2_edgeedge_circuit_info.py +++ b/graphiant_sdk/models/statsmon_v2_edgeedge_circuit_info.py @@ -22,27 +22,25 @@ 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 StatsmonV2EdgeedgeCircuitInfo(BaseModel): """ StatsmonV2EdgeedgeCircuitInfo """ # noqa: E501 - circuit_carrier: Optional[StrictStr] = Field(default=None, alias="circuitCarrier", json_schema_extra={"examples": ["example string"]}) - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) - device_hostname: Optional[StrictStr] = Field(default=None, alias="deviceHostname", json_schema_extra={"examples": ["example string"]}) - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - label: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - last_resort_circuit: Optional[StrictBool] = Field(default=None, alias="lastResortCircuit", json_schema_extra={"examples": [True]}) - quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp", json_schema_extra={"examples": ["example string"]}) - source_public_ip: Optional[StrictStr] = Field(default=None, alias="sourcePublicIp", json_schema_extra={"examples": ["example string"]}) + circuit_carrier: Optional[StrictStr] = Field(default=None, alias="circuitCarrier") + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + device_hostname: Optional[StrictStr] = Field(default=None, alias="deviceHostname") + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + label: Optional[StrictStr] = None + last_resort_circuit: Optional[StrictBool] = Field(default=None, alias="lastResortCircuit") + quality: Optional[StrictStr] = None + source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp") + source_public_ip: Optional[StrictStr] = Field(default=None, alias="sourcePublicIp") uptime: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["circuitCarrier", "circuitName", "deviceHostname", "interfaceName", "label", "lastResortCircuit", "quality", "sourceIp", "sourcePublicIp", "uptime"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_interface_stats_selector.py b/graphiant_sdk/models/statsmon_v2_interface_stats_selector.py index ede66d24..90ea35b5 100644 --- a/graphiant_sdk/models/statsmon_v2_interface_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_interface_stats_selector.py @@ -21,19 +21,17 @@ 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 StatsmonV2InterfaceStatsSelector(BaseModel): """ StatsmonV2InterfaceStatsSelector """ # noqa: E501 - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["interfaceName", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_ip_sec_stats_selector.py b/graphiant_sdk/models/statsmon_v2_ip_sec_stats_selector.py index c098ae2c..1c17c081 100644 --- a/graphiant_sdk/models/statsmon_v2_ip_sec_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_ip_sec_stats_selector.py @@ -21,19 +21,17 @@ 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 StatsmonV2IpSecStatsSelector(BaseModel): """ StatsmonV2IpSecStatsSelector """ # noqa: E501 - peer_gdi: Optional[StrictStr] = Field(default=None, alias="peerGdi", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + peer_gdi: Optional[StrictStr] = Field(default=None, alias="peerGdi") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["peerGdi", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_node.py b/graphiant_sdk/models/statsmon_v2_node.py index 41217d75..340af3d5 100644 --- a/graphiant_sdk/models/statsmon_v2_node.py +++ b/graphiant_sdk/models/statsmon_v2_node.py @@ -25,7 +25,6 @@ from graphiant_sdk.models.statsmon_v2_node_device_info import StatsmonV2NodeDeviceInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2Node(BaseModel): """ @@ -33,17 +32,16 @@ class StatsmonV2Node(BaseModel): """ # noqa: E501 circuit_info: Optional[List[StatsmonV2NodeCircuitInfo]] = Field(default=None, alias="circuitInfo") connections: Optional[List[StatsmonV2NodeConnection]] = None - id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + name: Optional[StrictStr] = None node_info: Optional[StatsmonV2NodeDeviceInfo] = Field(default=None, alias="nodeInfo") - preferred_region_name: Optional[StrictStr] = Field(default=None, alias="preferredRegionName", json_schema_extra={"examples": ["example string"]}) - quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + preferred_region_name: Optional[StrictStr] = Field(default=None, alias="preferredRegionName") + quality: Optional[StrictStr] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["circuitInfo", "connections", "id", "name", "nodeInfo", "preferredRegionName", "quality", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,7 +53,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_node_circuit_info.py b/graphiant_sdk/models/statsmon_v2_node_circuit_info.py index ab109908..299048d8 100644 --- a/graphiant_sdk/models/statsmon_v2_node_circuit_info.py +++ b/graphiant_sdk/models/statsmon_v2_node_circuit_info.py @@ -22,33 +22,31 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2NodeCircuitInfo(BaseModel): """ StatsmonV2NodeCircuitInfo """ # noqa: E501 - average_downlink_utilization: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageDownlinkUtilization", json_schema_extra={"examples": [123.45]}) - average_uplink_utilization: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageUplinkUtilization", json_schema_extra={"examples": [123.45]}) - circuit_carrier: Optional[StrictStr] = Field(default=None, alias="circuitCarrier", json_schema_extra={"examples": ["example string"]}) - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) - connected_region_name: Optional[StrictStr] = Field(default=None, alias="connectedRegionName", json_schema_extra={"examples": ["example string"]}) - current_downlink_utilization: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="currentDownlinkUtilization", json_schema_extra={"examples": [123.45]}) - current_uplink_utilization: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="currentUplinkUtilization", json_schema_extra={"examples": [123.45]}) - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - jitter: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [12345678910]}) - label: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort", json_schema_extra={"examples": [True]}) - latency: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [12345678910]}) - loss: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - qoe: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + average_downlink_utilization: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageDownlinkUtilization") + average_uplink_utilization: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageUplinkUtilization") + circuit_carrier: Optional[StrictStr] = Field(default=None, alias="circuitCarrier") + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + connected_region_name: Optional[StrictStr] = Field(default=None, alias="connectedRegionName") + current_downlink_utilization: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="currentDownlinkUtilization") + current_uplink_utilization: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="currentUplinkUtilization") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + jitter: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + label: Optional[StrictStr] = None + last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort") + latency: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + loss: Optional[Union[StrictFloat, StrictInt]] = None + qoe: Optional[Union[StrictFloat, StrictInt]] = None + quality: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["averageDownlinkUtilization", "averageUplinkUtilization", "circuitCarrier", "circuitName", "connectedRegionName", "currentDownlinkUtilization", "currentUplinkUtilization", "deviceId", "interfaceName", "jitter", "label", "lastResort", "latency", "loss", "qoe", "quality"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,7 +58,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_node_connection.py b/graphiant_sdk/models/statsmon_v2_node_connection.py index 2d32b450..7351ecb6 100644 --- a/graphiant_sdk/models/statsmon_v2_node_connection.py +++ b/graphiant_sdk/models/statsmon_v2_node_connection.py @@ -22,27 +22,25 @@ 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 StatsmonV2NodeConnection(BaseModel): """ StatsmonV2NodeConnection """ # noqa: E501 - active: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - circuit_carrier: Optional[StrictStr] = Field(default=None, alias="circuitCarrier", json_schema_extra={"examples": ["example string"]}) - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) - destination_ip: Optional[StrictStr] = Field(default=None, alias="destinationIp", json_schema_extra={"examples": ["example string"]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + active: Optional[StrictBool] = None + circuit_carrier: Optional[StrictStr] = Field(default=None, alias="circuitCarrier") + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + destination_ip: Optional[StrictStr] = Field(default=None, alias="destinationIp") + hostname: Optional[StrictStr] = None last_established_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastEstablishedTime") - last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort", json_schema_extra={"examples": [True]}) - quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp", json_schema_extra={"examples": ["example string"]}) - source_public_ip: Optional[StrictStr] = Field(default=None, alias="sourcePublicIp", json_schema_extra={"examples": ["example string"]}) + last_resort: Optional[StrictBool] = Field(default=None, alias="lastResort") + quality: Optional[StrictStr] = None + source_ip: Optional[StrictStr] = Field(default=None, alias="sourceIp") + source_public_ip: Optional[StrictStr] = Field(default=None, alias="sourcePublicIp") __properties: ClassVar[List[str]] = ["active", "circuitCarrier", "circuitName", "destinationIp", "hostname", "lastEstablishedTime", "lastResort", "quality", "sourceIp", "sourcePublicIp"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_node_device_info.py b/graphiant_sdk/models/statsmon_v2_node_device_info.py index b7c20be2..2ad11889 100644 --- a/graphiant_sdk/models/statsmon_v2_node_device_info.py +++ b/graphiant_sdk/models/statsmon_v2_node_device_info.py @@ -22,33 +22,31 @@ from graphiant_sdk.models.google_protobuf_duration import GoogleProtobufDuration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2NodeDeviceInfo(BaseModel): """ StatsmonV2NodeDeviceInfo """ # noqa: E501 - control_quality: Optional[StrictStr] = Field(default=None, alias="controlQuality", json_schema_extra={"examples": ["ENUM_VALUE"]}) - cpu: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - data_quality: Optional[StrictStr] = Field(default=None, alias="dataQuality", json_schema_extra={"examples": ["ENUM_VALUE"]}) - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - location: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode", json_schema_extra={"examples": [True]}) - memory: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) - mgmt_ip: Optional[StrictStr] = Field(default=None, alias="mgmtIp", json_schema_extra={"examples": ["example string"]}) - model: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - portal_quality: Optional[StrictStr] = Field(default=None, alias="portalQuality", json_schema_extra={"examples": ["ENUM_VALUE"]}) - serial_number: Optional[StrictStr] = Field(default=None, alias="serialNumber", json_schema_extra={"examples": ["example string"]}) - software_version: Optional[StrictStr] = Field(default=None, alias="softwareVersion", json_schema_extra={"examples": ["example string"]}) - staging_mode: Optional[StrictBool] = Field(default=None, alias="stagingMode", json_schema_extra={"examples": [True]}) - temperature: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [12.34]}) + control_quality: Optional[StrictStr] = Field(default=None, alias="controlQuality") + cpu: Optional[Union[StrictFloat, StrictInt]] = None + data_quality: Optional[StrictStr] = Field(default=None, alias="dataQuality") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + hostname: Optional[StrictStr] = None + location: Optional[StrictStr] = None + maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode") + memory: Optional[Union[StrictFloat, StrictInt]] = None + mgmt_ip: Optional[StrictStr] = Field(default=None, alias="mgmtIp") + model: Optional[StrictStr] = None + portal_quality: Optional[StrictStr] = Field(default=None, alias="portalQuality") + serial_number: Optional[StrictStr] = Field(default=None, alias="serialNumber") + software_version: Optional[StrictStr] = Field(default=None, alias="softwareVersion") + staging_mode: Optional[StrictBool] = Field(default=None, alias="stagingMode") + temperature: Optional[Union[StrictFloat, StrictInt]] = None uptime: Optional[GoogleProtobufDuration] = None __properties: ClassVar[List[str]] = ["controlQuality", "cpu", "dataQuality", "deviceId", "hostname", "location", "maintenanceMode", "memory", "mgmtIp", "model", "portalQuality", "serialNumber", "softwareVersion", "stagingMode", "temperature", "uptime"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,7 +58,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_policy_stats_selector.py b/graphiant_sdk/models/statsmon_v2_policy_stats_selector.py index 50ba7334..937a6d59 100644 --- a/graphiant_sdk/models/statsmon_v2_policy_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_policy_stats_selector.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2PolicyStatsSelector(BaseModel): """ StatsmonV2PolicyStatsSelector """ # noqa: E501 - index: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + index: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["index", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_queue_instant_stats_selector.py b/graphiant_sdk/models/statsmon_v2_queue_instant_stats_selector.py index 229a99a4..54d20465 100644 --- a/graphiant_sdk/models/statsmon_v2_queue_instant_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_queue_instant_stats_selector.py @@ -21,20 +21,18 @@ 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 StatsmonV2QueueInstantStatsSelector(BaseModel): """ StatsmonV2QueueInstantStatsSelector """ # noqa: E501 - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass", json_schema_extra={"examples": ["ENUM_VALUE"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["interfaceName", "slaClass", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_queue_utilization.py b/graphiant_sdk/models/statsmon_v2_queue_utilization.py index 806bacfe..ba4e15bf 100644 --- a/graphiant_sdk/models/statsmon_v2_queue_utilization.py +++ b/graphiant_sdk/models/statsmon_v2_queue_utilization.py @@ -22,23 +22,21 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2QueueUtilization(BaseModel): """ StatsmonV2QueueUtilization """ # noqa: E501 - allocated_pct: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="allocatedPct", json_schema_extra={"examples": [123]}) - default_queue: Optional[StrictBool] = Field(default=None, alias="defaultQueue", json_schema_extra={"examples": [True]}) - excess_weight: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="excessWeight", json_schema_extra={"examples": [123]}) - sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass", json_schema_extra={"examples": ["ENUM_VALUE"]}) - utilization_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="utilizationKbps", json_schema_extra={"examples": [12.34]}) - utilization_pct: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="utilizationPct", json_schema_extra={"examples": [12.34]}) + allocated_pct: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="allocatedPct") + default_queue: Optional[StrictBool] = Field(default=None, alias="defaultQueue") + excess_weight: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="excessWeight") + sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass") + utilization_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="utilizationKbps") + utilization_pct: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="utilizationPct") __properties: ClassVar[List[str]] = ["allocatedPct", "defaultQueue", "excessWeight", "slaClass", "utilizationKbps", "utilizationPct"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_stats_sample.py b/graphiant_sdk/models/statsmon_v2_stats_sample.py index 1654190a..61d1374c 100644 --- a/graphiant_sdk/models/statsmon_v2_stats_sample.py +++ b/graphiant_sdk/models/statsmon_v2_stats_sample.py @@ -17,25 +17,23 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union 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 StatsmonV2StatsSample(BaseModel): """ StatsmonV2StatsSample """ # noqa: E501 - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None ts: Optional[GoogleProtobufTimestamp] = None - value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [123.45]}) + value: Optional[Union[StrictFloat, StrictInt]] = None __properties: ClassVar[List[str]] = ["status", "ts", "value"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_system_stats_selector.py b/graphiant_sdk/models/statsmon_v2_system_stats_selector.py index d82003db..4f0677f2 100644 --- a/graphiant_sdk/models/statsmon_v2_system_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_system_stats_selector.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 StatsmonV2SystemStatsSelector(BaseModel): """ StatsmonV2SystemStatsSelector """ # noqa: E501 - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_time_window.py b/graphiant_sdk/models/statsmon_v2_time_window.py index 8c27e34c..de8f354e 100644 --- a/graphiant_sdk/models/statsmon_v2_time_window.py +++ b/graphiant_sdk/models/statsmon_v2_time_window.py @@ -23,20 +23,18 @@ 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 StatsmonV2TimeWindow(BaseModel): """ StatsmonV2TimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") __properties: ClassVar[List[str]] = ["bucketSizeSec", "oldTs", "recentTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_twamp_stats_selector.py b/graphiant_sdk/models/statsmon_v2_twamp_stats_selector.py index 9538bf64..a8172e65 100644 --- a/graphiant_sdk/models/statsmon_v2_twamp_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_twamp_stats_selector.py @@ -22,21 +22,19 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2TwampStatsSelector(BaseModel): """ StatsmonV2TwampStatsSelector """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["circuitName", "deviceId", "interfaceName", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_twamp_visual_selector.py b/graphiant_sdk/models/statsmon_v2_twamp_visual_selector.py index ed7476a5..c4b23aca 100644 --- a/graphiant_sdk/models/statsmon_v2_twamp_visual_selector.py +++ b/graphiant_sdk/models/statsmon_v2_twamp_visual_selector.py @@ -21,20 +21,18 @@ 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 StatsmonV2TwampVisualSelector(BaseModel): """ StatsmonV2TwampVisualSelector """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) - core_location: Optional[StrictStr] = Field(default=None, alias="coreLocation", json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + core_location: Optional[StrictStr] = Field(default=None, alias="coreLocation") + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["circuitName", "coreLocation", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_vrf_route.py b/graphiant_sdk/models/statsmon_v2_vrf_route.py index 9c4f3839..1e09a70a 100644 --- a/graphiant_sdk/models/statsmon_v2_vrf_route.py +++ b/graphiant_sdk/models/statsmon_v2_vrf_route.py @@ -21,21 +21,19 @@ 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 StatsmonV2VrfRoute(BaseModel): """ StatsmonV2VrfRoute """ # noqa: E501 - ipv4_routes: Optional[StrictInt] = Field(default=None, alias="ipv4Routes", json_schema_extra={"examples": [1234567891011]}) - ipv6_routes: Optional[StrictInt] = Field(default=None, alias="ipv6Routes", json_schema_extra={"examples": [1234567891011]}) - total_routes: Optional[StrictInt] = Field(default=None, alias="totalRoutes", json_schema_extra={"examples": [1234567891011]}) - vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName", json_schema_extra={"examples": ["example string"]}) + ipv4_routes: Optional[StrictInt] = Field(default=None, alias="ipv4Routes") + ipv6_routes: Optional[StrictInt] = Field(default=None, alias="ipv6Routes") + total_routes: Optional[StrictInt] = Field(default=None, alias="totalRoutes") + vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName") __properties: ClassVar[List[str]] = ["ipv4Routes", "ipv6Routes", "totalRoutes", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/statsmon_v2_vrf_routes.py b/graphiant_sdk/models/statsmon_v2_vrf_routes.py index efa4d35d..9bc2bada 100644 --- a/graphiant_sdk/models/statsmon_v2_vrf_routes.py +++ b/graphiant_sdk/models/statsmon_v2_vrf_routes.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_vrf_route import StatsmonV2VrfRoute from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class StatsmonV2VrfRoutes(BaseModel): """ @@ -34,8 +33,7 @@ class StatsmonV2VrfRoutes(BaseModel): __properties: ClassVar[List[str]] = ["ts", "vrfRoute"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/syslogmon_histogram.py b/graphiant_sdk/models/syslogmon_histogram.py index fc91a5f3..90525177 100644 --- a/graphiant_sdk/models/syslogmon_histogram.py +++ b/graphiant_sdk/models/syslogmon_histogram.py @@ -23,19 +23,17 @@ 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 SyslogmonHistogram(BaseModel): """ SyslogmonHistogram """ # noqa: E501 - count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) + count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["count", "ts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/syslogmon_log.py b/graphiant_sdk/models/syslogmon_log.py index 76300512..3708ace6 100644 --- a/graphiant_sdk/models/syslogmon_log.py +++ b/graphiant_sdk/models/syslogmon_log.py @@ -23,23 +23,21 @@ 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 SyslogmonLog(BaseModel): """ SyslogmonLog """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) - facility: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - level: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - message: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + facility: Optional[StrictStr] = None + hostname: Optional[StrictStr] = None + level: Optional[StrictStr] = None + message: Optional[StrictStr] = None ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["deviceId", "facility", "hostname", "level", "message", "ts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/syslogmon_syslogs_selector.py b/graphiant_sdk/models/syslogmon_syslogs_selector.py index d483f8f9..89875904 100644 --- a/graphiant_sdk/models/syslogmon_syslogs_selector.py +++ b/graphiant_sdk/models/syslogmon_syslogs_selector.py @@ -21,19 +21,17 @@ 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 SyslogmonSyslogsSelector(BaseModel): """ SyslogmonSyslogsSelector """ # noqa: E501 - var_field: Optional[StrictStr] = Field(default=None, alias="field", json_schema_extra={"examples": ["ENUM_VALUE"]}) + var_field: Optional[StrictStr] = Field(default=None, alias="field") values: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["field", "values"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_gcs_release_category.py b/graphiant_sdk/models/upgrade_gcs_release_category.py index 60fd740a..ddcc343d 100644 --- a/graphiant_sdk/models/upgrade_gcs_release_category.py +++ b/graphiant_sdk/models/upgrade_gcs_release_category.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 UpgradeGcsReleaseCategory(BaseModel): """ UpgradeGcsReleaseCategory """ # noqa: E501 - content: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - title: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + content: Optional[StrictStr] = None + title: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["content", "title"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_gcs_release_details.py b/graphiant_sdk/models/upgrade_gcs_release_details.py index 819609e7..a7bc9bfb 100644 --- a/graphiant_sdk/models/upgrade_gcs_release_details.py +++ b/graphiant_sdk/models/upgrade_gcs_release_details.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.upgrade_gcs_release_category import UpgradeGcsReleaseCategory from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class UpgradeGcsReleaseDetails(BaseModel): """ UpgradeGcsReleaseDetails """ # noqa: E501 category: Optional[List[UpgradeGcsReleaseCategory]] = None - major: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + major: Optional[StrictBool] = None release_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="releaseTs") __properties: ClassVar[List[str]] = ["category", "major", "releaseTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_inventory_key.py b/graphiant_sdk/models/upgrade_inventory_key.py index 58be1f49..349930a9 100644 --- a/graphiant_sdk/models/upgrade_inventory_key.py +++ b/graphiant_sdk/models/upgrade_inventory_key.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class UpgradeInventoryKey(BaseModel): """ UpgradeInventoryKey """ # noqa: E501 - model: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - version: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + model: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + version: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["model", "version"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_monthly_recurrence.py b/graphiant_sdk/models/upgrade_monthly_recurrence.py index 7d6030c0..04422083 100644 --- a/graphiant_sdk/models/upgrade_monthly_recurrence.py +++ b/graphiant_sdk/models/upgrade_monthly_recurrence.py @@ -22,20 +22,18 @@ 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", json_schema_extra={"examples": [15]}) - ordinal: Optional[StrictStr] = Field(default=None, description="For nth-weekday-of-month style recurrence; use together with weekday, or use date instead.", json_schema_extra={"examples": ["Second"]}) - weekday: Optional[StrictStr] = Field(default=None, description="Weekday paired with ordinal for monthly nth-weekday recurrence; optional if date is set.", json_schema_extra={"examples": ["Tuesday"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_recurring_schedule.py b/graphiant_sdk/models/upgrade_recurring_schedule.py index 1694ae74..aef2d1e6 100644 --- a/graphiant_sdk/models/upgrade_recurring_schedule.py +++ b/graphiant_sdk/models/upgrade_recurring_schedule.py @@ -25,7 +25,6 @@ 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): """ @@ -38,8 +37,7 @@ class UpgradeRecurringSchedule(BaseModel): __properties: ClassVar[List[str]] = ["monthly", "startsAtTs", "weekly", "yearly"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_release_summary.py b/graphiant_sdk/models/upgrade_release_summary.py index 43a26216..c852998b 100644 --- a/graphiant_sdk/models/upgrade_release_summary.py +++ b/graphiant_sdk/models/upgrade_release_summary.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.upgrade_inventory_key import UpgradeInventoryKey from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class UpgradeReleaseSummary(BaseModel): """ @@ -31,14 +30,13 @@ class UpgradeReleaseSummary(BaseModel): """ # noqa: E501 eos_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="eosTs") key: Optional[UpgradeInventoryKey] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - release: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + name: Optional[StrictStr] = None + release: Optional[StrictStr] = None release_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="releaseTs") __properties: ClassVar[List[str]] = ["eosTs", "key", "name", "release", "releaseTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_rollout.py b/graphiant_sdk/models/upgrade_rollout.py index 9936cb87..85057043 100644 --- a/graphiant_sdk/models/upgrade_rollout.py +++ b/graphiant_sdk/models/upgrade_rollout.py @@ -17,31 +17,30 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr 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", json_schema_extra={"examples": [True]}) - id: Optional[StrictInt] = Field(default=None, description="Server-assigned rollout identifier.", json_schema_extra={"examples": [42]}) + 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", json_schema_extra={"examples": [3]}) + 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"] + status: Optional[StrictStr] = Field(default=None, description="Status of the upgrade rollout group") + __properties: ClassVar[List[str]] = ["devices", "hasFailed", "id", "lastRunTs", "nextRunTs", "numDevices", "rolloutConfig", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -112,7 +112,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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 + "rolloutConfig": UpgradeRolloutConfig.from_dict(obj["rolloutConfig"]) if obj.get("rolloutConfig") is not None else None, + "status": obj.get("status") }) return _obj diff --git a/graphiant_sdk/models/upgrade_rollout_config.py b/graphiant_sdk/models/upgrade_rollout_config.py index 9a410ba3..98b725f5 100644 --- a/graphiant_sdk/models/upgrade_rollout_config.py +++ b/graphiant_sdk/models/upgrade_rollout_config.py @@ -22,23 +22,21 @@ 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)", json_schema_extra={"examples": ["InstallActivate"]}) - description: Optional[StrictStr] = Field(default=None, description="Optional longer description of the rollout.", json_schema_extra={"examples": ["Upgrade branch sites to release 25.4"]}) + 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)", json_schema_extra={"examples": ["Q2 edge upgrade"]}) - release: StrictStr = Field(description="Target software release for devices in this rollout. (required)", json_schema_extra={"examples": ["Recommended"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_rollout_device.py b/graphiant_sdk/models/upgrade_rollout_device.py index cb5ec26c..daa3a016 100644 --- a/graphiant_sdk/models/upgrade_rollout_device.py +++ b/graphiant_sdk/models/upgrade_rollout_device.py @@ -21,19 +21,17 @@ 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", json_schema_extra={"examples": [1001]}) - hostname: Optional[StrictStr] = Field(default=None, description="Device hostname for display.", json_schema_extra={"examples": ["edge-site-01"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_running_sw_version.py b/graphiant_sdk/models/upgrade_running_sw_version.py index 4da0cd80..3bccd495 100644 --- a/graphiant_sdk/models/upgrade_running_sw_version.py +++ b/graphiant_sdk/models/upgrade_running_sw_version.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.upgrade_sw_version import UpgradeSwVersion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class UpgradeRunningSwVersion(BaseModel): """ UpgradeRunningSwVersion """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") version: Optional[UpgradeSwVersion] = None __properties: ClassVar[List[str]] = ["deviceId", "version"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_schedule.py b/graphiant_sdk/models/upgrade_schedule.py index 3b6be42f..6f571613 100644 --- a/graphiant_sdk/models/upgrade_schedule.py +++ b/graphiant_sdk/models/upgrade_schedule.py @@ -24,24 +24,22 @@ from graphiant_sdk.models.upgrade_sw_version import UpgradeSwVersion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class UpgradeSchedule(BaseModel): """ UpgradeSchedule """ # noqa: E501 - action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - download_progress: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="downloadProgress", json_schema_extra={"examples": [123]}) - failure_reason: Optional[StrictStr] = Field(default=None, alias="failureReason", json_schema_extra={"examples": ["example string"]}) - state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + action: Optional[StrictStr] = None + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + download_progress: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="downloadProgress") + failure_reason: Optional[StrictStr] = Field(default=None, alias="failureReason") + state: Optional[StrictStr] = None ts: Optional[GoogleProtobufTimestamp] = None version: Optional[UpgradeSwVersion] = None __properties: ClassVar[List[str]] = ["action", "deviceId", "downloadProgress", "failureReason", "state", "ts", "version"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_sw_version.py b/graphiant_sdk/models/upgrade_sw_version.py index 2f96224d..6edffd00 100644 --- a/graphiant_sdk/models/upgrade_sw_version.py +++ b/graphiant_sdk/models/upgrade_sw_version.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 UpgradeSwVersion(BaseModel): """ UpgradeSwVersion """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - release: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - version: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None + release: Optional[StrictStr] = None + version: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["name", "release", "version"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_upgrade_canary_profile.py b/graphiant_sdk/models/upgrade_upgrade_canary_profile.py index f5e92b28..fa2824c3 100644 --- a/graphiant_sdk/models/upgrade_upgrade_canary_profile.py +++ b/graphiant_sdk/models/upgrade_upgrade_canary_profile.py @@ -17,26 +17,24 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.upgrade_upgrade_occurrence import UpgradeUpgradeOccurrence from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class UpgradeUpgradeCanaryProfile(BaseModel): """ UpgradeUpgradeCanaryProfile """ # noqa: E501 - action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + action: Optional[StrictStr] = None + name: Optional[StrictStr] = None occurrence: Optional[UpgradeUpgradeOccurrence] = None - release: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + release: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["action", "name", "occurrence", "release"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_upgrade_occurrence.py b/graphiant_sdk/models/upgrade_upgrade_occurrence.py index d3697314..57ac4d91 100644 --- a/graphiant_sdk/models/upgrade_upgrade_occurrence.py +++ b/graphiant_sdk/models/upgrade_upgrade_occurrence.py @@ -21,23 +21,21 @@ 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 UpgradeUpgradeOccurrence(BaseModel): """ UpgradeUpgradeOccurrence """ # noqa: E501 - day_of_week: Optional[StrictStr] = Field(default=None, alias="dayOfWeek", json_schema_extra={"examples": ["ENUM_VALUE"]}) - hour: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - minute: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - occurrence_in_month: Optional[StrictInt] = Field(default=None, alias="occurrenceInMonth", json_schema_extra={"examples": [123]}) - ordinal: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - weekday: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + day_of_week: Optional[StrictStr] = Field(default=None, alias="dayOfWeek") + hour: Optional[StrictInt] = None + minute: Optional[StrictInt] = None + occurrence_in_month: Optional[StrictInt] = Field(default=None, alias="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, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_upgrade_summary.py b/graphiant_sdk/models/upgrade_upgrade_summary.py index 7e539a87..5d30402e 100644 --- a/graphiant_sdk/models/upgrade_upgrade_summary.py +++ b/graphiant_sdk/models/upgrade_upgrade_summary.py @@ -24,28 +24,26 @@ from graphiant_sdk.models.upgrade_sw_version import UpgradeSwVersion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class UpgradeUpgradeSummary(BaseModel): """ UpgradeUpgradeSummary """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - end_of_life: Optional[StrictBool] = Field(default=None, alias="endOfLife", json_schema_extra={"examples": [True]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + end_of_life: Optional[StrictBool] = Field(default=None, alias="endOfLife") last_discovered_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastDiscoveredTs") 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", json_schema_extra={"examples": [1234567891011]}) - rollout_name: Optional[StrictStr] = Field(default=None, alias="rolloutName", json_schema_extra={"examples": ["example string"]}) + 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] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceId", "endOfLife", "lastDiscoveredTs", "lastRunningVersion", "lastUpgradeTs", "readyForActivationVersion", "rolloutId", "rolloutName", "runningVersion", "schedule", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_weekly_recurrence.py b/graphiant_sdk/models/upgrade_weekly_recurrence.py index 0e20522b..5d967ccd 100644 --- a/graphiant_sdk/models/upgrade_weekly_recurrence.py +++ b/graphiant_sdk/models/upgrade_weekly_recurrence.py @@ -22,19 +22,17 @@ 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)", json_schema_extra={"examples": [2]}) - weekday: StrictStr = Field(description="Day of week for the weekly recurrence. (required)", json_schema_extra={"examples": ["Monday"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/upgrade_yearly_recurrence.py b/graphiant_sdk/models/upgrade_yearly_recurrence.py index 684e006d..7d990f1d 100644 --- a/graphiant_sdk/models/upgrade_yearly_recurrence.py +++ b/graphiant_sdk/models/upgrade_yearly_recurrence.py @@ -22,21 +22,19 @@ 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", json_schema_extra={"examples": [1]}) - month: Annotated[int, Field(strict=True, ge=0)] = Field(description="Month of year (1–12) for yearly recurrence. (required)", json_schema_extra={"examples": [3]}) - ordinal: Optional[StrictStr] = Field(default=None, description="For nth-weekday-in-month yearly recurrence; use with weekday, or use month + date.", json_schema_extra={"examples": ["First"]}) - weekday: Optional[StrictStr] = Field(default=None, description="Weekday paired with ordinal for yearly recurrence.", json_schema_extra={"examples": ["Wednesday"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_account_email_patch_request.py b/graphiant_sdk/models/v1_account_email_patch_request.py index 6bf97e3f..6d13855f 100644 --- a/graphiant_sdk/models/v1_account_email_patch_request.py +++ b/graphiant_sdk/models/v1_account_email_patch_request.py @@ -21,18 +21,16 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AccountEmailPatchRequest(BaseModel): """ V1AccountEmailPatchRequest """ # noqa: E501 - email: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) + email: StrictStr = Field(description=" (required)") __properties: ClassVar[List[str]] = ["email"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_account_info_patch_request.py b/graphiant_sdk/models/v1_account_info_patch_request.py index 470c68f3..498d0a9c 100644 --- a/graphiant_sdk/models/v1_account_info_patch_request.py +++ b/graphiant_sdk/models/v1_account_info_patch_request.py @@ -21,20 +21,18 @@ 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 V1AccountInfoPatchRequest(BaseModel): """ V1AccountInfoPatchRequest """ # noqa: E501 - first_name: Optional[StrictStr] = Field(default=None, alias="firstName", json_schema_extra={"examples": ["example string"]}) - last_name: Optional[StrictStr] = Field(default=None, alias="lastName", json_schema_extra={"examples": ["example string"]}) - time_zone: Optional[StrictStr] = Field(default=None, alias="timeZone", json_schema_extra={"examples": ["example string"]}) + first_name: Optional[StrictStr] = Field(default=None, alias="firstName") + last_name: Optional[StrictStr] = Field(default=None, alias="lastName") + time_zone: Optional[StrictStr] = Field(default=None, alias="timeZone") __properties: ClassVar[List[str]] = ["firstName", "lastName", "timeZone"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_account_mfa_confirmation_post_request.py b/graphiant_sdk/models/v1_account_mfa_confirmation_post_request.py index 0ab22a9a..75acbb1b 100644 --- a/graphiant_sdk/models/v1_account_mfa_confirmation_post_request.py +++ b/graphiant_sdk/models/v1_account_mfa_confirmation_post_request.py @@ -21,21 +21,19 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AccountMfaConfirmationPostRequest(BaseModel): """ V1AccountMfaConfirmationPostRequest """ # noqa: E501 - code: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) - confirmed: StrictBool = Field(description=" (required)", json_schema_extra={"examples": [True]}) - id: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) - type: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) + code: StrictStr = Field(description=" (required)") + confirmed: StrictBool = Field(description=" (required)") + id: StrictStr = Field(description=" (required)") + type: StrictStr = Field(description=" (required)") __properties: ClassVar[List[str]] = ["code", "confirmed", "id", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_account_mfa_confirmation_post_response.py b/graphiant_sdk/models/v1_account_mfa_confirmation_post_response.py index f43202ae..a2b79d38 100644 --- a/graphiant_sdk/models/v1_account_mfa_confirmation_post_response.py +++ b/graphiant_sdk/models/v1_account_mfa_confirmation_post_response.py @@ -21,7 +21,6 @@ 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 V1AccountMfaConfirmationPostResponse(BaseModel): """ @@ -31,8 +30,7 @@ class V1AccountMfaConfirmationPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["affectedUsers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_account_mfa_get_response.py b/graphiant_sdk/models/v1_account_mfa_get_response.py index 519350ab..27f12968 100644 --- a/graphiant_sdk/models/v1_account_mfa_get_response.py +++ b/graphiant_sdk/models/v1_account_mfa_get_response.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 V1AccountMfaGetResponse(BaseModel): """ V1AccountMfaGetResponse """ # noqa: E501 - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_account_mfa_put_request.py b/graphiant_sdk/models/v1_account_mfa_put_request.py index b9876ae9..00ff73aa 100644 --- a/graphiant_sdk/models/v1_account_mfa_put_request.py +++ b/graphiant_sdk/models/v1_account_mfa_put_request.py @@ -21,19 +21,17 @@ 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 V1AccountMfaPutRequest(BaseModel): """ V1AccountMfaPutRequest """ # noqa: E501 - phone_number: Optional[StrictStr] = Field(default=None, alias="phoneNumber", json_schema_extra={"examples": ["example string"]}) - type: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) + phone_number: Optional[StrictStr] = Field(default=None, alias="phoneNumber") + type: StrictStr = Field(description=" (required)") __properties: ClassVar[List[str]] = ["phoneNumber", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_account_mfa_put_response.py b/graphiant_sdk/models/v1_account_mfa_put_response.py index a25fb341..c3d98d5a 100644 --- a/graphiant_sdk/models/v1_account_mfa_put_response.py +++ b/graphiant_sdk/models/v1_account_mfa_put_response.py @@ -21,21 +21,19 @@ 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 V1AccountMfaPutResponse(BaseModel): """ V1AccountMfaPutResponse """ # noqa: E501 - confirmed: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - qr_code: Optional[StrictStr] = Field(default=None, alias="qrCode", json_schema_extra={"examples": ["example string"]}) - shared_secret: Optional[StrictStr] = Field(default=None, alias="sharedSecret", json_schema_extra={"examples": ["example string"]}) + confirmed: Optional[StrictBool] = None + id: Optional[StrictStr] = None + qr_code: Optional[StrictStr] = Field(default=None, alias="qrCode") + shared_secret: Optional[StrictStr] = Field(default=None, alias="sharedSecret") __properties: ClassVar[List[str]] = ["confirmed", "id", "qrCode", "sharedSecret"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_account_password_patch_request.py b/graphiant_sdk/models/v1_account_password_patch_request.py index f57e68ad..4dae2a29 100644 --- a/graphiant_sdk/models/v1_account_password_patch_request.py +++ b/graphiant_sdk/models/v1_account_password_patch_request.py @@ -21,19 +21,17 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AccountPasswordPatchRequest(BaseModel): """ V1AccountPasswordPatchRequest """ # noqa: E501 - old_password: StrictStr = Field(description=" (required)", alias="oldPassword", json_schema_extra={"examples": ["example string"]}) - password: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) + old_password: StrictStr = Field(description=" (required)", alias="oldPassword") + password: StrictStr = Field(description=" (required)") __properties: ClassVar[List[str]] = ["oldPassword", "password"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_activity_logs_post_request.py b/graphiant_sdk/models/v1_activity_logs_post_request.py index 2d31bd05..42f51a28 100644 --- a/graphiant_sdk/models/v1_activity_logs_post_request.py +++ b/graphiant_sdk/models/v1_activity_logs_post_request.py @@ -25,14 +25,13 @@ 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 V1ActivityLogsPostRequest(BaseModel): """ V1ActivityLogsPostRequest """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) - num_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numLogs", json_schema_extra={"examples": [123]}) + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") + num_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numLogs") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") selector: Optional[AuditmonActivityLogsSelector] = None @@ -40,8 +39,7 @@ class V1ActivityLogsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["cursorRef", "numLogs", "oldTs", "recentTs", "selector", "selectorV2"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_activity_logs_post_response.py b/graphiant_sdk/models/v1_activity_logs_post_response.py index 658f9125..783d137f 100644 --- a/graphiant_sdk/models/v1_activity_logs_post_response.py +++ b/graphiant_sdk/models/v1_activity_logs_post_response.py @@ -24,22 +24,20 @@ from graphiant_sdk.models.v1_activity_logs_post_response_activity_items import V1ActivityLogsPostResponseActivityItems from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ActivityLogsPostResponse(BaseModel): """ V1ActivityLogsPostResponse """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") details: Optional[List[AuditmonActivityDetails]] = None filter_entities: Optional[Dict[str, V1ActivityLogsPostResponseActivityItems]] = Field(default=None, alias="filterEntities") filter_job_types: Optional[List[StrictStr]] = Field(default=None, alias="filterJobTypes") - total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs", json_schema_extra={"examples": [12345678910]}) + total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs") __properties: ClassVar[List[str]] = ["cursorRef", "details", "filterEntities", "filterJobTypes", "totalLogs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_activity_logs_post_response_activity_items.py b/graphiant_sdk/models/v1_activity_logs_post_response_activity_items.py index d115c603..44fafeab 100644 --- a/graphiant_sdk/models/v1_activity_logs_post_response_activity_items.py +++ b/graphiant_sdk/models/v1_activity_logs_post_response_activity_items.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.audit_activity_item import AuditActivityItem from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ActivityLogsPostResponseActivityItems(BaseModel): """ @@ -32,8 +31,7 @@ class V1ActivityLogsPostResponseActivityItems(BaseModel): __properties: ClassVar[List[str]] = ["items"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_apps_app_summary_post_request.py b/graphiant_sdk/models/v1_apps_app_summary_post_request.py index edf27d03..a0fd5a67 100644 --- a/graphiant_sdk/models/v1_apps_app_summary_post_request.py +++ b/graphiant_sdk/models/v1_apps_app_summary_post_request.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.ipfix_time_window import IpfixTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AppsAppSummaryPostRequest(BaseModel): """ V1AppsAppSummaryPostRequest """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - is_dia: Optional[StrictBool] = Field(default=None, alias="isDia", json_schema_extra={"examples": [True]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + is_dia: Optional[StrictBool] = Field(default=None, alias="isDia") time_window: Optional[IpfixTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "isDia", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_apps_app_summary_post_response.py b/graphiant_sdk/models/v1_apps_app_summary_post_response.py index a4638a5b..ae59bed4 100644 --- a/graphiant_sdk/models/v1_apps_app_summary_post_response.py +++ b/graphiant_sdk/models/v1_apps_app_summary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.ipfix_app_state_summary_count import IpfixAppStateSummaryCount from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AppsAppSummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1AppsAppSummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["appSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_apps_bandwidth_post_request.py b/graphiant_sdk/models/v1_apps_bandwidth_post_request.py index 84f9c897..4d8efdf6 100644 --- a/graphiant_sdk/models/v1_apps_bandwidth_post_request.py +++ b/graphiant_sdk/models/v1_apps_bandwidth_post_request.py @@ -23,24 +23,22 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AppsBandwidthPostRequest(BaseModel): """ V1AppsBandwidthPostRequest """ # noqa: E501 - app_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appId", json_schema_extra={"examples": [123]}) - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - dl_circuit_name: Optional[StrictStr] = Field(default=None, alias="dlCircuitName", json_schema_extra={"examples": ["example string"]}) - is_dia: Optional[StrictBool] = Field(default=None, alias="isDia", json_schema_extra={"examples": [True]}) - sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass", json_schema_extra={"examples": ["ENUM_VALUE"]}) + app_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appId") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + dl_circuit_name: Optional[StrictStr] = Field(default=None, alias="dlCircuitName") + is_dia: Optional[StrictBool] = Field(default=None, alias="isDia") + sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass") time_window: Optional[StatsmonTimeWindow] = Field(default=None, alias="timeWindow") - ul_circuit_name: Optional[StrictStr] = Field(default=None, alias="ulCircuitName", json_schema_extra={"examples": ["example string"]}) + ul_circuit_name: Optional[StrictStr] = Field(default=None, alias="ulCircuitName") __properties: ClassVar[List[str]] = ["appId", "deviceId", "dlCircuitName", "isDia", "slaClass", "timeWindow", "ulCircuitName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_apps_bandwidth_post_response.py b/graphiant_sdk/models/v1_apps_bandwidth_post_response.py index 6a411c4c..ffe5118d 100644 --- a/graphiant_sdk/models/v1_apps_bandwidth_post_response.py +++ b/graphiant_sdk/models/v1_apps_bandwidth_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.ipfix_app_bandwidth_stats import IpfixAppBandwidthStats from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AppsBandwidthPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1AppsBandwidthPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["stats"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_apps_device_device_id_top_post_request.py b/graphiant_sdk/models/v1_apps_device_device_id_top_post_request.py index e70864ba..d6b004d3 100644 --- a/graphiant_sdk/models/v1_apps_device_device_id_top_post_request.py +++ b/graphiant_sdk/models/v1_apps_device_device_id_top_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.ipfix_time_window import IpfixTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AppsDeviceDeviceIdTopPostRequest(BaseModel): """ V1AppsDeviceDeviceIdTopPostRequest """ # noqa: E501 - num_apps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The maximum number of apps to return (100 if left empty)", alias="numApps", json_schema_extra={"examples": [22]}) + num_apps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The maximum number of apps to return (100 if left empty)", alias="numApps") time_window: Optional[IpfixTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["numApps", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_apps_device_device_id_top_post_response.py b/graphiant_sdk/models/v1_apps_device_device_id_top_post_response.py index af85483f..afdf4753 100644 --- a/graphiant_sdk/models/v1_apps_device_device_id_top_post_response.py +++ b/graphiant_sdk/models/v1_apps_device_device_id_top_post_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.ipfix_app_utilization_summary import IpfixAppUtilizationSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AppsDeviceDeviceIdTopPostResponse(BaseModel): """ V1AppsDeviceDeviceIdTopPostResponse """ # noqa: E501 apps_utilization: Optional[List[IpfixAppUtilizationSummary]] = Field(default=None, alias="appsUtilization") - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount", json_schema_extra={"examples": [1234567891011]}) + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") __properties: ClassVar[List[str]] = ["appsUtilization", "totalCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_apps_site_site_id_top_post_request.py b/graphiant_sdk/models/v1_apps_site_site_id_top_post_request.py index 4d525e99..3f5cb534 100644 --- a/graphiant_sdk/models/v1_apps_site_site_id_top_post_request.py +++ b/graphiant_sdk/models/v1_apps_site_site_id_top_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.ipfix_time_window import IpfixTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AppsSiteSiteIdTopPostRequest(BaseModel): """ V1AppsSiteSiteIdTopPostRequest """ # noqa: E501 - num_apps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The maximum number of apps to return (100 if left empty)", alias="numApps", json_schema_extra={"examples": [22]}) + num_apps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The maximum number of apps to return (100 if left empty)", alias="numApps") time_window: Optional[IpfixTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["numApps", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_apps_site_site_id_top_post_response.py b/graphiant_sdk/models/v1_apps_site_site_id_top_post_response.py index 597832d3..60d5db1b 100644 --- a/graphiant_sdk/models/v1_apps_site_site_id_top_post_response.py +++ b/graphiant_sdk/models/v1_apps_site_site_id_top_post_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.ipfix_app_utilization_summary import IpfixAppUtilizationSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AppsSiteSiteIdTopPostResponse(BaseModel): """ V1AppsSiteSiteIdTopPostResponse """ # noqa: E501 apps_utilization: Optional[List[IpfixAppUtilizationSummary]] = Field(default=None, alias="appsUtilization") - total_count: Optional[StrictInt] = Field(default=None, alias="totalCount", json_schema_extra={"examples": [1234567891011]}) + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount") __properties: ClassVar[List[str]] = ["appsUtilization", "totalCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_apps_visualization_post_request.py b/graphiant_sdk/models/v1_apps_visualization_post_request.py index ada3387a..374e468c 100644 --- a/graphiant_sdk/models/v1_apps_visualization_post_request.py +++ b/graphiant_sdk/models/v1_apps_visualization_post_request.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AppsVisualizationPostRequest(BaseModel): """ V1AppsVisualizationPostRequest """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, description="Circuit name is specified if circuit apps utilization data is desired.", alias="circuitName", json_schema_extra={"examples": ["example string"]}) - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - is_dia: Optional[StrictBool] = Field(default=None, alias="isDia", json_schema_extra={"examples": [True]}) - sla_class: Optional[StrictStr] = Field(default=None, description="SLA class is specified if queue apps utilization data is desired. Circuit name must be provided.", alias="slaClass", json_schema_extra={"examples": ["ENUM_VALUE"]}) + circuit_name: Optional[StrictStr] = Field(default=None, description="Circuit name is specified if circuit apps utilization data is desired.", alias="circuitName") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + is_dia: Optional[StrictBool] = Field(default=None, alias="isDia") + sla_class: Optional[StrictStr] = Field(default=None, description="SLA class is specified if queue apps utilization data is desired. Circuit name must be provided.", alias="slaClass") time_window: Optional[StatsmonTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["circuitName", "deviceId", "isDia", "slaClass", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_apps_visualization_post_response.py b/graphiant_sdk/models/v1_apps_visualization_post_response.py index 2552aceb..65f0c808 100644 --- a/graphiant_sdk/models/v1_apps_visualization_post_response.py +++ b/graphiant_sdk/models/v1_apps_visualization_post_response.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.ipfix_app_visualization import IpfixAppVisualization from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AppsVisualizationPostResponse(BaseModel): """ V1AppsVisualizationPostResponse """ # noqa: E501 app_health: Optional[Dict[str, Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, alias="appHealth") - apps_on_device_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appsOnDeviceCount", json_schema_extra={"examples": [123]}) + apps_on_device_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appsOnDeviceCount") apps_visualization: Optional[List[IpfixAppVisualization]] = Field(default=None, alias="appsVisualization") - average_qoe: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageQoe", json_schema_extra={"examples": [123.45]}) + average_qoe: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageQoe") __properties: ClassVar[List[str]] = ["appHealth", "appsOnDeviceCount", "appsVisualization", "averageQoe"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_audit_logs_post_request.py b/graphiant_sdk/models/v1_audit_logs_post_request.py index 250d7358..975cb848 100644 --- a/graphiant_sdk/models/v1_audit_logs_post_request.py +++ b/graphiant_sdk/models/v1_audit_logs_post_request.py @@ -24,23 +24,21 @@ 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 V1AuditLogsPostRequest(BaseModel): """ V1AuditLogsPostRequest """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) - histogram_bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="histogramBucketSizeSec", json_schema_extra={"examples": [123]}) - num_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numLogs", json_schema_extra={"examples": [123]}) + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") + histogram_bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="histogramBucketSizeSec") + num_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numLogs") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") selectors: Optional[List[AuditmonSelector]] = None __properties: ClassVar[List[str]] = ["cursorRef", "histogramBucketSizeSec", "numLogs", "oldTs", "recentTs", "selectors"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_audit_logs_post_response.py b/graphiant_sdk/models/v1_audit_logs_post_response.py index c5846aab..59a689e3 100644 --- a/graphiant_sdk/models/v1_audit_logs_post_response.py +++ b/graphiant_sdk/models/v1_audit_logs_post_response.py @@ -24,21 +24,19 @@ from graphiant_sdk.models.auditmon_histogram import AuditmonHistogram from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AuditLogsPostResponse(BaseModel): """ V1AuditLogsPostResponse """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") histogram: Optional[List[AuditmonHistogram]] = None logs: Optional[List[AuditAuditEntry]] = None - total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs", json_schema_extra={"examples": [12345678910]}) + total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs") __properties: ClassVar[List[str]] = ["cursorRef", "histogram", "logs", "totalLogs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_error_post_response.py b/graphiant_sdk/models/v1_auth_error_post_response.py index 31c15e02..01a88407 100644 --- a/graphiant_sdk/models/v1_auth_error_post_response.py +++ b/graphiant_sdk/models/v1_auth_error_post_response.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from pydantic import BaseModel, ConfigDict, StrictBool, 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 V1AuthErrorPostResponse(BaseModel): """ V1AuthErrorPostResponse """ # noqa: E501 - auth: StrictBool = Field(json_schema_extra={"examples": [False]}) + auth: StrictBool token: Optional[StrictStr] - error: StrictStr = Field(json_schema_extra={"examples": ["email not provided"]}) + error: StrictStr __properties: ClassVar[List[str]] = ["auth", "token", "error"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_gcs_post_request.py b/graphiant_sdk/models/v1_auth_gcs_post_request.py index ff9a961f..b04a1d6a 100644 --- a/graphiant_sdk/models/v1_auth_gcs_post_request.py +++ b/graphiant_sdk/models/v1_auth_gcs_post_request.py @@ -21,19 +21,17 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AuthGcsPostRequest(BaseModel): """ V1AuthGcsPostRequest """ # noqa: E501 - gcs_name: StrictStr = Field(alias="gcsName", json_schema_extra={"examples": ["my-gcs-instance"]}) - api_key: StrictStr = Field(alias="apiKey", json_schema_extra={"examples": ["api-key-12345"]}) + gcs_name: StrictStr = Field(alias="gcsName") + api_key: StrictStr = Field(alias="apiKey") __properties: ClassVar[List[str]] = ["gcsName", "apiKey"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_get_response.py b/graphiant_sdk/models/v1_auth_get_response.py index ed1838ca..0ae787bc 100644 --- a/graphiant_sdk/models/v1_auth_get_response.py +++ b/graphiant_sdk/models/v1_auth_get_response.py @@ -21,21 +21,19 @@ 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 V1AuthGetResponse(BaseModel): """ V1AuthGetResponse """ # noqa: E501 - cert: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - entry_point: Optional[StrictStr] = Field(default=None, alias="entryPoint", json_schema_extra={"examples": ["example string"]}) - iam_type: Optional[StrictStr] = Field(default=None, alias="iamType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - issuer: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + cert: Optional[StrictStr] = None + entry_point: Optional[StrictStr] = Field(default=None, alias="entryPoint") + iam_type: Optional[StrictStr] = Field(default=None, alias="iamType") + issuer: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["cert", "entryPoint", "iamType", "issuer"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_login_callback_post500_response.py b/graphiant_sdk/models/v1_auth_login_callback_post500_response.py index f41d95f0..c9bc9a56 100644 --- a/graphiant_sdk/models/v1_auth_login_callback_post500_response.py +++ b/graphiant_sdk/models/v1_auth_login_callback_post500_response.py @@ -21,7 +21,6 @@ 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 V1AuthLoginCallbackPost500Response(BaseModel): """ @@ -31,8 +30,7 @@ class V1AuthLoginCallbackPost500Response(BaseModel): __properties: ClassVar[List[str]] = ["error"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_login_post_request.py b/graphiant_sdk/models/v1_auth_login_post_request.py index c171d96c..3bf67aee 100644 --- a/graphiant_sdk/models/v1_auth_login_post_request.py +++ b/graphiant_sdk/models/v1_auth_login_post_request.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AuthLoginPostRequest(BaseModel): """ V1AuthLoginPostRequest """ # noqa: E501 - username: StrictStr = Field(json_schema_extra={"examples": ["user@example.com"]}) - password: StrictStr = Field(json_schema_extra={"examples": ["password123"]}) + username: StrictStr + password: StrictStr __properties: ClassVar[List[str]] = ["username", "password"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_login_post_response.py b/graphiant_sdk/models/v1_auth_login_post_response.py index 8c1e1972..174091b2 100644 --- a/graphiant_sdk/models/v1_auth_login_post_response.py +++ b/graphiant_sdk/models/v1_auth_login_post_response.py @@ -21,19 +21,18 @@ 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 V1AuthLoginPostResponse(BaseModel): """ V1AuthLoginPostResponse """ # noqa: E501 - auth: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - token: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["gr-auth-12345678-1234-1234-1234-123456789012-87654321-4321-4321-4321-210987654321"]}) - account_type: Optional[StrictStr] = Field(default=None, alias="accountType", json_schema_extra={"examples": ["enterprise"]}) - email: Optional[StrictStr] = Field(default=None, description="User email address (returned for MFA users)", json_schema_extra={"examples": ["user@example.com"]}) - mfa_type: Optional[StrictStr] = Field(default=None, description="MFA type (returned for MFA users)", alias="mfaType", json_schema_extra={"examples": ["TOTP"]}) - state_token: Optional[StrictStr] = Field(default=None, description="State token for MFA verification (returned for MFA users)", alias="stateToken", json_schema_extra={"examples": ["state-token-12345"]}) - status: Optional[StrictStr] = Field(default=None, description="Authentication status (returned for MFA users)", json_schema_extra={"examples": ["AwaitingMfa"]}) + auth: Optional[StrictBool] = None + token: Optional[StrictStr] = None + account_type: Optional[StrictStr] = Field(default=None, alias="accountType") + email: Optional[StrictStr] = Field(default=None, description="User email address (returned for MFA users)") + mfa_type: Optional[StrictStr] = Field(default=None, description="MFA type (returned for MFA users)", alias="mfaType") + state_token: Optional[StrictStr] = Field(default=None, description="State token for MFA verification (returned for MFA users)", alias="stateToken") + status: Optional[StrictStr] = Field(default=None, description="Authentication status (returned for MFA users)") __properties: ClassVar[List[str]] = ["auth", "token", "accountType", "email", "mfaType", "stateToken", "status"] @field_validator('account_type') @@ -47,8 +46,7 @@ def account_type_validate_enum(cls, value): return value model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,7 +58,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_login_pre_get_response.py b/graphiant_sdk/models/v1_auth_login_pre_get_response.py index b0571626..8d24f481 100644 --- a/graphiant_sdk/models/v1_auth_login_pre_get_response.py +++ b/graphiant_sdk/models/v1_auth_login_pre_get_response.py @@ -21,17 +21,16 @@ 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 V1AuthLoginPreGetResponse(BaseModel): """ V1AuthLoginPreGetResponse """ # noqa: E501 - method: StrictStr = Field(description="Authentication method to use", json_schema_extra={"examples": ["PASSWORD"]}) - email: StrictStr = Field(description="User email address", json_schema_extra={"examples": ["user@example.com"]}) - iam: Optional[StrictStr] = Field(default=None, description="Identity provider name (Azure/Okta)", json_schema_extra={"examples": ["Azure"]}) - relay_state: Optional[StrictStr] = Field(default=None, description="State to relay after authentication", alias="relayState", json_schema_extra={"examples": ["information-to-relay"]}) - entry_point: Optional[StrictStr] = Field(default=None, description="SSO entry point URL", alias="entryPoint", json_schema_extra={"examples": ["https://saml.example.com/sso"]}) + method: StrictStr = Field(description="Authentication method to use") + email: StrictStr = Field(description="User email address") + iam: Optional[StrictStr] = Field(default=None, description="Identity provider name (Azure/Okta)") + relay_state: Optional[StrictStr] = Field(default=None, description="State to relay after authentication", alias="relayState") + entry_point: Optional[StrictStr] = Field(default=None, description="SSO entry point URL", alias="entryPoint") __properties: ClassVar[List[str]] = ["method", "email", "iam", "relayState", "entryPoint"] @field_validator('method') @@ -42,8 +41,7 @@ def method_validate_enum(cls, value): return value model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,7 +53,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_login_saml_get401_response.py b/graphiant_sdk/models/v1_auth_login_saml_get401_response.py index 6f733ed9..dadc50cf 100644 --- a/graphiant_sdk/models/v1_auth_login_saml_get401_response.py +++ b/graphiant_sdk/models/v1_auth_login_saml_get401_response.py @@ -21,7 +21,6 @@ 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 V1AuthLoginSamlGet401Response(BaseModel): """ @@ -31,8 +30,7 @@ class V1AuthLoginSamlGet401Response(BaseModel): __properties: ClassVar[List[str]] = ["error"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_login_saml_get500_response.py b/graphiant_sdk/models/v1_auth_login_saml_get500_response.py index 2c951b67..ee2b52c4 100644 --- a/graphiant_sdk/models/v1_auth_login_saml_get500_response.py +++ b/graphiant_sdk/models/v1_auth_login_saml_get500_response.py @@ -21,7 +21,6 @@ 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 V1AuthLoginSamlGet500Response(BaseModel): """ @@ -31,8 +30,7 @@ class V1AuthLoginSamlGet500Response(BaseModel): __properties: ClassVar[List[str]] = ["error"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_login_temp_post_request.py b/graphiant_sdk/models/v1_auth_login_temp_post_request.py index fcf65804..d0e79c7c 100644 --- a/graphiant_sdk/models/v1_auth_login_temp_post_request.py +++ b/graphiant_sdk/models/v1_auth_login_temp_post_request.py @@ -21,20 +21,18 @@ from typing import Any, ClassVar, Dict, List, Union from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AuthLoginTempPostRequest(BaseModel): """ V1AuthLoginTempPostRequest """ # noqa: E501 - email: StrictStr = Field(json_schema_extra={"examples": ["user@example.com"]}) - temp_password: StrictStr = Field(alias="tempPassword", json_schema_extra={"examples": ["temp123456"]}) - match_id: Union[StrictFloat, StrictInt] = Field(alias="matchId", json_schema_extra={"examples": [12345]}) + email: StrictStr + temp_password: StrictStr = Field(alias="tempPassword") + match_id: Union[StrictFloat, StrictInt] = Field(alias="matchId") __properties: ClassVar[List[str]] = ["email", "tempPassword", "matchId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_mfa_patch_request.py b/graphiant_sdk/models/v1_auth_mfa_patch_request.py index 97a456f0..555225c9 100644 --- a/graphiant_sdk/models/v1_auth_mfa_patch_request.py +++ b/graphiant_sdk/models/v1_auth_mfa_patch_request.py @@ -21,7 +21,6 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AuthMfaPatchRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1AuthMfaPatchRequest(BaseModel): __properties: ClassVar[List[str]] = ["allowedMfaTypes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_mfa_post500_response.py b/graphiant_sdk/models/v1_auth_mfa_post500_response.py index 2be123b7..f1682722 100644 --- a/graphiant_sdk/models/v1_auth_mfa_post500_response.py +++ b/graphiant_sdk/models/v1_auth_mfa_post500_response.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 V1AuthMfaPost500Response(BaseModel): """ V1AuthMfaPost500Response """ # noqa: E501 - error: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["Internal error"]}) + error: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["error"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_mfa_post_request.py b/graphiant_sdk/models/v1_auth_mfa_post_request.py index 553bea59..02ca2d3b 100644 --- a/graphiant_sdk/models/v1_auth_mfa_post_request.py +++ b/graphiant_sdk/models/v1_auth_mfa_post_request.py @@ -21,21 +21,19 @@ 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 V1AuthMfaPostRequest(BaseModel): """ V1AuthMfaPostRequest """ # noqa: E501 - email: StrictStr = Field(json_schema_extra={"examples": ["user@example.com"]}) - mfa_type: StrictStr = Field(alias="mfaType", json_schema_extra={"examples": ["TOTP"]}) - code: StrictStr = Field(json_schema_extra={"examples": ["123456"]}) - state_token: Optional[StrictStr] = Field(default=None, alias="stateToken", json_schema_extra={"examples": ["state-token-12345"]}) + email: StrictStr + mfa_type: StrictStr = Field(alias="mfaType") + code: StrictStr + state_token: Optional[StrictStr] = Field(default=None, alias="stateToken") __properties: ClassVar[List[str]] = ["email", "mfaType", "code", "stateToken"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_mfa_types_get_response.py b/graphiant_sdk/models/v1_auth_mfa_types_get_response.py index 3cb2944d..3bdf196b 100644 --- a/graphiant_sdk/models/v1_auth_mfa_types_get_response.py +++ b/graphiant_sdk/models/v1_auth_mfa_types_get_response.py @@ -21,7 +21,6 @@ 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 V1AuthMfaTypesGetResponse(BaseModel): """ @@ -31,8 +30,7 @@ class V1AuthMfaTypesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["allowedMfaTypes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_mfa_types_put_request.py b/graphiant_sdk/models/v1_auth_mfa_types_put_request.py index 711126b5..f7c2edcc 100644 --- a/graphiant_sdk/models/v1_auth_mfa_types_put_request.py +++ b/graphiant_sdk/models/v1_auth_mfa_types_put_request.py @@ -21,7 +21,6 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AuthMfaTypesPutRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1AuthMfaTypesPutRequest(BaseModel): __properties: ClassVar[List[str]] = ["allowedMfaTypes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_patch_request.py b/graphiant_sdk/models/v1_auth_patch_request.py index 632bfc43..b0d991f2 100644 --- a/graphiant_sdk/models/v1_auth_patch_request.py +++ b/graphiant_sdk/models/v1_auth_patch_request.py @@ -21,21 +21,19 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AuthPatchRequest(BaseModel): """ V1AuthPatchRequest """ # noqa: E501 - cert: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) - entry_point: StrictStr = Field(description=" (required)", alias="entryPoint", json_schema_extra={"examples": ["example string"]}) - iam_type: StrictStr = Field(description=" (required)", alias="iamType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - issuer: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) + cert: StrictStr = Field(description=" (required)") + entry_point: StrictStr = Field(description=" (required)", alias="entryPoint") + iam_type: StrictStr = Field(description=" (required)", alias="iamType") + issuer: StrictStr = Field(description=" (required)") __properties: ClassVar[List[str]] = ["cert", "entryPoint", "iamType", "issuer"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_put_request.py b/graphiant_sdk/models/v1_auth_put_request.py index dffde94e..f6af541b 100644 --- a/graphiant_sdk/models/v1_auth_put_request.py +++ b/graphiant_sdk/models/v1_auth_put_request.py @@ -21,21 +21,19 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AuthPutRequest(BaseModel): """ V1AuthPutRequest """ # noqa: E501 - cert: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) - entry_point: StrictStr = Field(description=" (required)", alias="entryPoint", json_schema_extra={"examples": ["example string"]}) - iam_type: StrictStr = Field(description=" (required)", alias="iamType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - issuer: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) + cert: StrictStr = Field(description=" (required)") + entry_point: StrictStr = Field(description=" (required)", alias="entryPoint") + iam_type: StrictStr = Field(description=" (required)", alias="iamType") + issuer: StrictStr = Field(description=" (required)") __properties: ClassVar[List[str]] = ["cert", "entryPoint", "iamType", "issuer"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_refresh_get403_response.py b/graphiant_sdk/models/v1_auth_refresh_get403_response.py index a83ec4aa..3587cf29 100644 --- a/graphiant_sdk/models/v1_auth_refresh_get403_response.py +++ b/graphiant_sdk/models/v1_auth_refresh_get403_response.py @@ -21,7 +21,6 @@ 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 V1AuthRefreshGet403Response(BaseModel): """ @@ -31,8 +30,7 @@ class V1AuthRefreshGet403Response(BaseModel): __properties: ClassVar[List[str]] = ["error"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_refresh_get422_response.py b/graphiant_sdk/models/v1_auth_refresh_get422_response.py index af33ba01..6469bc53 100644 --- a/graphiant_sdk/models/v1_auth_refresh_get422_response.py +++ b/graphiant_sdk/models/v1_auth_refresh_get422_response.py @@ -21,7 +21,6 @@ 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 V1AuthRefreshGet422Response(BaseModel): """ @@ -31,8 +30,7 @@ class V1AuthRefreshGet422Response(BaseModel): __properties: ClassVar[List[str]] = ["error"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_refresh_get_entry_point_response.py b/graphiant_sdk/models/v1_auth_refresh_get_entry_point_response.py index 6d2fc260..c48d25fe 100644 --- a/graphiant_sdk/models/v1_auth_refresh_get_entry_point_response.py +++ b/graphiant_sdk/models/v1_auth_refresh_get_entry_point_response.py @@ -21,18 +21,16 @@ 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 V1AuthRefreshGetEntryPointResponse(BaseModel): """ V1AuthRefreshGetEntryPointResponse """ # noqa: E501 - entry_point: Optional[StrictStr] = Field(default=None, alias="entryPoint", json_schema_extra={"examples": ["https://saml.example.com/sso"]}) + entry_point: Optional[StrictStr] = Field(default=None, alias="entryPoint") __properties: ClassVar[List[str]] = ["entryPoint"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_session_get403_response.py b/graphiant_sdk/models/v1_auth_session_get403_response.py index 6a9139fc..7b6627aa 100644 --- a/graphiant_sdk/models/v1_auth_session_get403_response.py +++ b/graphiant_sdk/models/v1_auth_session_get403_response.py @@ -21,7 +21,6 @@ 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 V1AuthSessionGet403Response(BaseModel): """ @@ -31,8 +30,7 @@ class V1AuthSessionGet403Response(BaseModel): __properties: ClassVar[List[str]] = ["error"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_session_get422_response.py b/graphiant_sdk/models/v1_auth_session_get422_response.py index 8e12561e..974f7f6d 100644 --- a/graphiant_sdk/models/v1_auth_session_get422_response.py +++ b/graphiant_sdk/models/v1_auth_session_get422_response.py @@ -21,7 +21,6 @@ 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 V1AuthSessionGet422Response(BaseModel): """ @@ -31,8 +30,7 @@ class V1AuthSessionGet422Response(BaseModel): __properties: ClassVar[List[str]] = ["error"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_auth_user_get_response.py b/graphiant_sdk/models/v1_auth_user_get_response.py index f955080e..b7e6ff8e 100644 --- a/graphiant_sdk/models/v1_auth_user_get_response.py +++ b/graphiant_sdk/models/v1_auth_user_get_response.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.auth_permissions import AuthPermissions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1AuthUserGetResponse(BaseModel): """ V1AuthUserGetResponse """ # noqa: E501 - user_id: StrictStr = Field(description="User identifier", alias="userId", json_schema_extra={"examples": ["user-12345"]}) - enterprise_id: StrictInt = Field(description="Enterprise identifier", alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) + user_id: StrictStr = Field(description="User identifier", alias="userId") + enterprise_id: StrictInt = Field(description="Enterprise identifier", alias="enterpriseId") permissions: AuthPermissions - time_zone: StrictStr = Field(description="User timezone", alias="timeZone", json_schema_extra={"examples": ["America/New_York"]}) + time_zone: StrictStr = Field(description="User timezone", alias="timeZone") __properties: ClassVar[List[str]] = ["userId", "enterpriseId", "permissions", "timeZone"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_device_device_id_post_request.py b/graphiant_sdk/models/v1_backbone_health_device_device_id_post_request.py index 594684ee..540b253e 100644 --- a/graphiant_sdk/models/v1_backbone_health_device_device_id_post_request.py +++ b/graphiant_sdk/models/v1_backbone_health_device_device_id_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_time_window import StatsmonTroubleshootingTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthDeviceDeviceIdPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1BackboneHealthDeviceDeviceIdPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_device_device_id_post_response.py b/graphiant_sdk/models/v1_backbone_health_device_device_id_post_response.py index 9c22cd77..8bfcc658 100644 --- a/graphiant_sdk/models/v1_backbone_health_device_device_id_post_response.py +++ b/graphiant_sdk/models/v1_backbone_health_device_device_id_post_response.py @@ -28,7 +28,6 @@ from graphiant_sdk.models.upgrade_sw_version import UpgradeSwVersion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthDeviceDeviceIdPostResponse(BaseModel): """ @@ -38,17 +37,16 @@ class V1BackboneHealthDeviceDeviceIdPostResponse(BaseModel): data_plane: Optional[StatsmonBackbonehealthDataPlane] = Field(default=None, alias="dataPlane") issues: Optional[List[StatsmonTroubleshootingIssue]] = None qoe_matrix: Optional[StatsmonBackbonehealthGetQoeMatrixResponse] = Field(default=None, alias="qoeMatrix") - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - sw_version: Optional[StrictStr] = Field(default=None, alias="swVersion", json_schema_extra={"examples": ["example string"]}) + role: Optional[StrictStr] = None + status: Optional[StrictStr] = None + sw_version: Optional[StrictStr] = Field(default=None, alias="swVersion") sw_version_v2: Optional[UpgradeSwVersion] = Field(default=None, alias="swVersionV2") system_plane: Optional[StatsmonBackbonehealthSystemPlane] = Field(default=None, alias="systemPlane") up_since_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="upSinceTs") __properties: ClassVar[List[str]] = ["controlPlane", "dataPlane", "issues", "qoeMatrix", "role", "status", "swVersion", "swVersionV2", "systemPlane", "upSinceTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,7 +58,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response.py b/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response.py index 5a8fc628..13cb4eba 100644 --- a/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response.py +++ b/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.v1_backbone_health_et_wan_matrix_get_response_region_status import V1BackboneHealthEtWanMatrixGetResponseRegionStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthEtWanMatrixGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1BackboneHealthEtWanMatrixGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["deviceEtwanSummary", "regionSlaStatus"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response_device_et_wan_summary.py b/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response_device_et_wan_summary.py index 7b2ff250..4f8377ba 100644 --- a/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response_device_et_wan_summary.py +++ b/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response_device_et_wan_summary.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.statsmon_troubleshooting_region import StatsmonTroubleshootingRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthEtWanMatrixGetResponseDeviceEtWanSummary(BaseModel): """ V1BackboneHealthEtWanMatrixGetResponseDeviceEtWanSummary """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) - provider: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + provider: Optional[StrictStr] = None region: Optional[StatsmonTroubleshootingRegion] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "provider", "region", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response_region_status.py b/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response_region_status.py index cdb35e76..5f8287bf 100644 --- a/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response_region_status.py +++ b/graphiant_sdk/models/v1_backbone_health_et_wan_matrix_get_response_region_status.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.statsmon_troubleshooting_region import StatsmonTroubleshootingRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthEtWanMatrixGetResponseRegionStatus(BaseModel): """ V1BackboneHealthEtWanMatrixGetResponseRegionStatus """ # noqa: E501 region: Optional[StatsmonTroubleshootingRegion] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["region", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response.py b/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response.py index c5c89ac4..c04d9bb0 100644 --- a/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response.py +++ b/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.v1_backbone_health_etet_sla_matrix_get_response_sla_summary import V1BackboneHealthEtetSlaMatrixGetResponseSlaSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthEtetSlaMatrixGetResponse(BaseModel): """ @@ -36,8 +35,7 @@ class V1BackboneHealthEtetSlaMatrixGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["devices", "regionStatus", "slaMatrix"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_devices_summary.py b/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_devices_summary.py index 34b0bfa9..16380e7b 100644 --- a/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_devices_summary.py +++ b/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_devices_summary.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.statsmon_troubleshooting_region import StatsmonTroubleshootingRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthEtetSlaMatrixGetResponseDevicesSummary(BaseModel): """ V1BackboneHealthEtetSlaMatrixGetResponseDevicesSummary """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") region: Optional[StatsmonTroubleshootingRegion] = None __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "region"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_region_status.py b/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_region_status.py index 4890caa7..334cc51f 100644 --- a/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_region_status.py +++ b/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_region_status.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_region import StatsmonTroubleshootingRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthEtetSlaMatrixGetResponseRegionStatus(BaseModel): """ @@ -30,12 +29,11 @@ class V1BackboneHealthEtetSlaMatrixGetResponseRegionStatus(BaseModel): """ # noqa: E501 peer_region: Optional[StatsmonTroubleshootingRegion] = Field(default=None, alias="peerRegion") region: Optional[StatsmonTroubleshootingRegion] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["peerRegion", "region", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_sla_summary.py b/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_sla_summary.py index f03d816a..9a281018 100644 --- a/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_sla_summary.py +++ b/graphiant_sdk/models/v1_backbone_health_etet_sla_matrix_get_response_sla_summary.py @@ -22,31 +22,29 @@ from graphiant_sdk.models.statsmon_troubleshooting_region import StatsmonTroubleshootingRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthEtetSlaMatrixGetResponseSlaSummary(BaseModel): """ V1BackboneHealthEtetSlaMatrixGetResponseSlaSummary """ # noqa: E501 - delay_status: Optional[StrictStr] = Field(default=None, alias="delayStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - delay_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="delayValue", json_schema_extra={"examples": [12.34]}) - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) - jitter_status: Optional[StrictStr] = Field(default=None, alias="jitterStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - jitter_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="jitterValue", json_schema_extra={"examples": [12.34]}) - loss_status: Optional[StrictStr] = Field(default=None, alias="lossStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - loss_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="lossValue", json_schema_extra={"examples": [12.34]}) - mos_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="mosValue", json_schema_extra={"examples": [12.34]}) - peer_device_id: Optional[StrictInt] = Field(default=None, alias="peerDeviceId", json_schema_extra={"examples": [1234567891011]}) - peer_device_name: Optional[StrictStr] = Field(default=None, alias="peerDeviceName", json_schema_extra={"examples": ["example string"]}) + delay_status: Optional[StrictStr] = Field(default=None, alias="delayStatus") + delay_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="delayValue") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + jitter_status: Optional[StrictStr] = Field(default=None, alias="jitterStatus") + jitter_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="jitterValue") + loss_status: Optional[StrictStr] = Field(default=None, alias="lossStatus") + loss_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="lossValue") + mos_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="mosValue") + peer_device_id: Optional[StrictInt] = Field(default=None, alias="peerDeviceId") + peer_device_name: Optional[StrictStr] = Field(default=None, alias="peerDeviceName") peer_region: Optional[StatsmonTroubleshootingRegion] = Field(default=None, alias="peerRegion") region: Optional[StatsmonTroubleshootingRegion] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["delayStatus", "delayValue", "deviceId", "deviceName", "jitterStatus", "jitterValue", "lossStatus", "lossValue", "mosValue", "peerDeviceId", "peerDeviceName", "peerRegion", "region", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -58,7 +56,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_filter_get_response.py b/graphiant_sdk/models/v1_backbone_health_filter_get_response.py index 29d81406..bce08707 100644 --- a/graphiant_sdk/models/v1_backbone_health_filter_get_response.py +++ b/graphiant_sdk/models/v1_backbone_health_filter_get_response.py @@ -26,7 +26,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_site_filter import StatsmonTroubleshootingSiteFilter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthFilterGetResponse(BaseModel): """ @@ -40,8 +39,7 @@ class V1BackboneHealthFilterGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["circuits", "devices", "lanSegments", "regions", "sites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_overview_post_request.py b/graphiant_sdk/models/v1_backbone_health_overview_post_request.py index 7a37cbab..2ae3cb8d 100644 --- a/graphiant_sdk/models/v1_backbone_health_overview_post_request.py +++ b/graphiant_sdk/models/v1_backbone_health_overview_post_request.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.v1_backbone_health_overview_post_request_dimensions import V1BackboneHealthOverviewPostRequestDimensions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthOverviewPostRequest(BaseModel): """ @@ -34,8 +33,7 @@ class V1BackboneHealthOverviewPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["dimensions", "filter"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_overview_post_request_dimensions.py b/graphiant_sdk/models/v1_backbone_health_overview_post_request_dimensions.py index ca75d363..1c9ab6e1 100644 --- a/graphiant_sdk/models/v1_backbone_health_overview_post_request_dimensions.py +++ b/graphiant_sdk/models/v1_backbone_health_overview_post_request_dimensions.py @@ -21,31 +21,29 @@ 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 V1BackboneHealthOverviewPostRequestDimensions(BaseModel): """ V1BackboneHealthOverviewPostRequestDimensions """ # noqa: E501 - certificate_expiry: Optional[StrictBool] = Field(default=None, alias="certificateExpiry", json_schema_extra={"examples": [True]}) - core_connectivity: Optional[StrictBool] = Field(default=None, alias="coreConnectivity", json_schema_extra={"examples": [True]}) - core_core_sla_performance: Optional[StrictBool] = Field(default=None, alias="coreCoreSlaPerformance", json_schema_extra={"examples": [True]}) - core_wan_performance: Optional[StrictBool] = Field(default=None, alias="coreWanPerformance", json_schema_extra={"examples": [True]}) - cpu: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - crashes: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - credit_expiry: Optional[StrictBool] = Field(default=None, alias="creditExpiry", json_schema_extra={"examples": [True]}) - disk: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - fan_speed: Optional[StrictBool] = Field(default=None, alias="fanSpeed", json_schema_extra={"examples": [True]}) - license_expiry: Optional[StrictBool] = Field(default=None, alias="licenseExpiry", json_schema_extra={"examples": [True]}) - memory: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - odp_connectivity: Optional[StrictBool] = Field(default=None, alias="odpConnectivity", json_schema_extra={"examples": [True]}) - t2_connectivity: Optional[StrictBool] = Field(default=None, alias="t2Connectivity", json_schema_extra={"examples": [True]}) - temperature: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + certificate_expiry: Optional[StrictBool] = Field(default=None, alias="certificateExpiry") + core_connectivity: Optional[StrictBool] = Field(default=None, alias="coreConnectivity") + core_core_sla_performance: Optional[StrictBool] = Field(default=None, alias="coreCoreSlaPerformance") + core_wan_performance: Optional[StrictBool] = Field(default=None, alias="coreWanPerformance") + cpu: Optional[StrictBool] = None + crashes: Optional[StrictBool] = None + credit_expiry: Optional[StrictBool] = Field(default=None, alias="creditExpiry") + disk: Optional[StrictBool] = None + fan_speed: Optional[StrictBool] = Field(default=None, alias="fanSpeed") + license_expiry: Optional[StrictBool] = Field(default=None, alias="licenseExpiry") + memory: Optional[StrictBool] = None + odp_connectivity: Optional[StrictBool] = Field(default=None, alias="odpConnectivity") + t2_connectivity: Optional[StrictBool] = Field(default=None, alias="t2Connectivity") + temperature: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["certificateExpiry", "coreConnectivity", "coreCoreSlaPerformance", "coreWanPerformance", "cpu", "crashes", "creditExpiry", "disk", "fanSpeed", "licenseExpiry", "memory", "odpConnectivity", "t2Connectivity", "temperature"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_overview_post_response.py b/graphiant_sdk/models/v1_backbone_health_overview_post_response.py index fda1b28f..5cb65ab0 100644 --- a/graphiant_sdk/models/v1_backbone_health_overview_post_response.py +++ b/graphiant_sdk/models/v1_backbone_health_overview_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_backbone_health_overview_post_response_device_summary import V1BackboneHealthOverviewPostResponseDeviceSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthOverviewPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BackboneHealthOverviewPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["devices"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_overview_post_response_device_summary.py b/graphiant_sdk/models/v1_backbone_health_overview_post_response_device_summary.py index 9486e56f..890d885e 100644 --- a/graphiant_sdk/models/v1_backbone_health_overview_post_response_device_summary.py +++ b/graphiant_sdk/models/v1_backbone_health_overview_post_response_device_summary.py @@ -22,26 +22,24 @@ from graphiant_sdk.models.statsmon_troubleshooting_region import StatsmonTroubleshootingRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthOverviewPostResponseDeviceSummary(BaseModel): """ V1BackboneHealthOverviewPostResponseDeviceSummary """ # noqa: E501 - control_status: Optional[StrictStr] = Field(default=None, alias="controlStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - data_status: Optional[StrictStr] = Field(default=None, alias="dataStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) - device_role: Optional[StrictStr] = Field(default=None, alias="deviceRole", json_schema_extra={"examples": ["ENUM_VALUE"]}) - overall_status: Optional[StrictStr] = Field(default=None, alias="overallStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + control_status: Optional[StrictStr] = Field(default=None, alias="controlStatus") + data_status: Optional[StrictStr] = Field(default=None, alias="dataStatus") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + device_role: Optional[StrictStr] = Field(default=None, alias="deviceRole") + overall_status: Optional[StrictStr] = Field(default=None, alias="overallStatus") region: Optional[StatsmonTroubleshootingRegion] = None - selected_status: Optional[StrictStr] = Field(default=None, alias="selectedStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - system_status: Optional[StrictStr] = Field(default=None, alias="systemStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + selected_status: Optional[StrictStr] = Field(default=None, alias="selectedStatus") + system_status: Optional[StrictStr] = Field(default=None, alias="systemStatus") __properties: ClassVar[List[str]] = ["controlStatus", "dataStatus", "deviceId", "deviceName", "deviceRole", "overallStatus", "region", "selectedStatus", "systemStatus"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_request.py b/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_request.py index f2627dc7..6f23add5 100644 --- a/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_request.py +++ b/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_filter import StatsmonTroubleshootingFilter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthTopDevicesByAlertsPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1BackboneHealthTopDevicesByAlertsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["filter"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response.py b/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response.py index 29590157..0b1d9281 100644 --- a/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response.py +++ b/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_backbone_health_top_devices_by_alerts_post_response_device_counts import V1BackboneHealthTopDevicesByAlertsPostResponseDeviceCounts from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthTopDevicesByAlertsPostResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1BackboneHealthTopDevicesByAlertsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["controlPlane", "dataPlane", "systemPlane"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response_device_counts.py b/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response_device_counts.py index 48367332..49e0e338 100644 --- a/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response_device_counts.py +++ b/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response_device_counts.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_backbone_health_top_devices_by_alerts_post_response_device_counts_device_count import V1BackboneHealthTopDevicesByAlertsPostResponseDeviceCountsDeviceCount from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BackboneHealthTopDevicesByAlertsPostResponseDeviceCounts(BaseModel): """ @@ -32,8 +31,7 @@ class V1BackboneHealthTopDevicesByAlertsPostResponseDeviceCounts(BaseModel): __properties: ClassVar[List[str]] = ["deviceCounts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response_device_counts_device_count.py b/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response_device_counts_device_count.py index e3033a21..6cab33dd 100644 --- a/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response_device_counts_device_count.py +++ b/graphiant_sdk/models/v1_backbone_health_top_devices_by_alerts_post_response_device_counts_device_count.py @@ -21,19 +21,17 @@ 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 V1BackboneHealthTopDevicesByAlertsPostResponseDeviceCountsDeviceCount(BaseModel): """ V1BackboneHealthTopDevicesByAlertsPostResponseDeviceCountsDeviceCount """ # noqa: E501 - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName", json_schema_extra={"examples": ["example string"]}) - num_alerts: Optional[StrictInt] = Field(default=None, alias="numAlerts", json_schema_extra={"examples": [123]}) + device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + num_alerts: Optional[StrictInt] = Field(default=None, alias="numAlerts") __properties: ClassVar[List[str]] = ["deviceName", "numAlerts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_enterprise_csv_post_request.py b/graphiant_sdk/models/v1_bwtracker_enterprise_csv_post_request.py index 897acd65..c1b2f305 100644 --- a/graphiant_sdk/models/v1_bwtracker_enterprise_csv_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_enterprise_csv_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerEnterpriseCsvPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerEnterpriseCsvPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_enterprise_csv_post_response.py b/graphiant_sdk/models/v1_bwtracker_enterprise_csv_post_response.py index a6c0b826..48855d34 100644 --- a/graphiant_sdk/models/v1_bwtracker_enterprise_csv_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_enterprise_csv_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_csv_details import StatsmonBandwidthtrackerBwUsageCsvDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerEnterpriseCsvPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerEnterpriseCsvPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageCsvDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_enterprise_details_post_request.py b/graphiant_sdk/models/v1_bwtracker_enterprise_details_post_request.py index dcf6bcd9..c295da03 100644 --- a/graphiant_sdk/models/v1_bwtracker_enterprise_details_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_enterprise_details_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerEnterpriseDetailsPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerEnterpriseDetailsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_enterprise_details_post_response.py b/graphiant_sdk/models/v1_bwtracker_enterprise_details_post_response.py index e33fba22..bd28cc58 100644 --- a/graphiant_sdk/models/v1_bwtracker_enterprise_details_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_enterprise_details_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_enterprise_details import StatsmonBandwidthtrackerBwUsageByEnterpriseDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerEnterpriseDetailsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerEnterpriseDetailsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_enterprise_summary_post_request.py b/graphiant_sdk/models/v1_bwtracker_enterprise_summary_post_request.py index fa149188..982bfb72 100644 --- a/graphiant_sdk/models/v1_bwtracker_enterprise_summary_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_enterprise_summary_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerEnterpriseSummaryPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerEnterpriseSummaryPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_enterprise_summary_post_response.py b/graphiant_sdk/models/v1_bwtracker_enterprise_summary_post_response.py index 73eafe1f..f64ead5c 100644 --- a/graphiant_sdk/models/v1_bwtracker_enterprise_summary_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_enterprise_summary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_enterprise_summary import StatsmonBandwidthtrackerBwUsageByEnterpriseSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerEnterpriseSummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerEnterpriseSummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_edge_chart_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_edge_chart_post_request.py index 7db3b38b..39eade69 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_edge_chart_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_edge_chart_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionEdgeChartPostRequest(BaseModel): """ V1BwtrackerRegionEdgeChartPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_edge_chart_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_edge_chart_post_response.py index 2a6849b6..12fcdbc6 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_edge_chart_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_edge_chart_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_chart import StatsmonBandwidthtrackerBwUsageChart from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionEdgeChartPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionEdgeChartPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageChart"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_edge_csv_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_edge_csv_post_request.py index 2ec8c8f8..41e4cd4a 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_edge_csv_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_edge_csv_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionEdgeCsvPostRequest(BaseModel): """ V1BwtrackerRegionEdgeCsvPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_edge_csv_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_edge_csv_post_response.py index 12dafc24..2e53df28 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_edge_csv_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_edge_csv_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_csv_details import StatsmonBandwidthtrackerBwUsageCsvDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionEdgeCsvPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionEdgeCsvPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageCsvDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_edge_details_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_edge_details_post_request.py index d6d708ae..68a7bc99 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_edge_details_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_edge_details_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionEdgeDetailsPostRequest(BaseModel): """ V1BwtrackerRegionEdgeDetailsPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_edge_details_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_edge_details_post_response.py index ab0d8cb1..2235ab48 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_edge_details_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_edge_details_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_region_edge_details import StatsmonBandwidthtrackerBwUsageByRegionEdgeDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionEdgeDetailsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionEdgeDetailsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_edge_summary_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_edge_summary_post_request.py index 63c217d4..21aa2907 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_edge_summary_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_edge_summary_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionEdgeSummaryPostRequest(BaseModel): """ V1BwtrackerRegionEdgeSummaryPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_edge_summary_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_edge_summary_post_response.py index d1146df5..90deee40 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_edge_summary_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_edge_summary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_region_edge_summary import StatsmonBandwidthtrackerBwUsageByRegionEdgeSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionEdgeSummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionEdgeSummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_gateway_chart_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_gateway_chart_post_request.py index 184b750f..09ccbde7 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_gateway_chart_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_gateway_chart_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionGatewayChartPostRequest(BaseModel): """ V1BwtrackerRegionGatewayChartPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_gateway_chart_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_gateway_chart_post_response.py index 5a5529e0..a4e46b3a 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_gateway_chart_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_gateway_chart_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_chart import StatsmonBandwidthtrackerBwUsageChart from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionGatewayChartPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionGatewayChartPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageChart"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_gateway_csv_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_gateway_csv_post_request.py index 1137e577..7d744cdf 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_gateway_csv_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_gateway_csv_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionGatewayCsvPostRequest(BaseModel): """ V1BwtrackerRegionGatewayCsvPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_gateway_csv_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_gateway_csv_post_response.py index bb94352b..a7c4e014 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_gateway_csv_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_gateway_csv_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_csv_details import StatsmonBandwidthtrackerBwUsageCsvDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionGatewayCsvPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionGatewayCsvPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageCsvDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_gateway_details_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_gateway_details_post_request.py index 13ec3960..214151e8 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_gateway_details_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_gateway_details_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionGatewayDetailsPostRequest(BaseModel): """ V1BwtrackerRegionGatewayDetailsPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_gateway_details_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_gateway_details_post_response.py index 87508ab7..12381ca8 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_gateway_details_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_gateway_details_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_region_edge_details import StatsmonBandwidthtrackerBwUsageByRegionEdgeDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionGatewayDetailsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionGatewayDetailsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_gateway_summary_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_gateway_summary_post_request.py index 8bd141ac..6095bfed 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_gateway_summary_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_gateway_summary_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionGatewaySummaryPostRequest(BaseModel): """ V1BwtrackerRegionGatewaySummaryPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_gateway_summary_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_gateway_summary_post_response.py index 2cabbdfc..be6aafb1 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_gateway_summary_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_gateway_summary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_region_edge_summary import StatsmonBandwidthtrackerBwUsageByRegionEdgeSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionGatewaySummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionGatewaySummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_chart_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_site_chart_post_request.py index 693c6b14..097ef819 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_chart_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_chart_post_request.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteChartPostRequest(BaseModel): """ V1BwtrackerRegionSiteChartPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_chart_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_site_chart_post_response.py index 3e266df8..8af4323b 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_chart_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_chart_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_chart import StatsmonBandwidthtrackerBwUsageChart from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteChartPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionSiteChartPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageChart"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_details_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_site_details_post_request.py index cabeed70..b7721c96 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_details_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_details_post_request.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteDetailsPostRequest(BaseModel): """ V1BwtrackerRegionSiteDetailsPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_details_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_site_details_post_response.py index e32fe200..f378d91c 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_details_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_details_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_site_details import StatsmonBandwidthtrackerBwUsageBySiteDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteDetailsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionSiteDetailsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_chart_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_chart_post_request.py index 2903f732..eb907bf3 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_chart_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_chart_post_request.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteGatewayChartPostRequest(BaseModel): """ V1BwtrackerRegionSiteGatewayChartPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_chart_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_chart_post_response.py index e604ec4f..d3aa90d3 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_chart_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_chart_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_chart import StatsmonBandwidthtrackerBwUsageChart from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteGatewayChartPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionSiteGatewayChartPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageChart"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_details_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_details_post_request.py index 4133aa81..243862f7 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_details_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_details_post_request.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteGatewayDetailsPostRequest(BaseModel): """ V1BwtrackerRegionSiteGatewayDetailsPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_details_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_details_post_response.py index fbf1fbca..fe4c022f 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_details_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_details_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_site_details import StatsmonBandwidthtrackerBwUsageBySiteDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteGatewayDetailsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionSiteGatewayDetailsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post_request.py index 0fb700f8..f3e9fd96 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post_request.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteGatewaySummaryPostRequest(BaseModel): """ V1BwtrackerRegionSiteGatewaySummaryPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post_response.py index 0f5a30ea..81478a01 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_gateway_summary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_site_summary import StatsmonBandwidthtrackerBwUsageBySiteSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteGatewaySummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionSiteGatewaySummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_summary_post_request.py b/graphiant_sdk/models/v1_bwtracker_region_site_summary_post_request.py index c772d022..65835b9f 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_summary_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_summary_post_request.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteSummaryPostRequest(BaseModel): """ V1BwtrackerRegionSiteSummaryPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_region_site_summary_post_response.py b/graphiant_sdk/models/v1_bwtracker_region_site_summary_post_response.py index 8fd0ae73..7178cdb3 100644 --- a/graphiant_sdk/models/v1_bwtracker_region_site_summary_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_region_site_summary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_by_site_summary import StatsmonBandwidthtrackerBwUsageBySiteSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerRegionSiteSummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerRegionSiteSummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_site_csv_post_request.py b/graphiant_sdk/models/v1_bwtracker_site_csv_post_request.py index 6aec3f18..96e3f86e 100644 --- a/graphiant_sdk/models/v1_bwtracker_site_csv_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_site_csv_post_request.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerSiteCsvPostRequest(BaseModel): """ V1BwtrackerSiteCsvPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_site_csv_post_response.py b/graphiant_sdk/models/v1_bwtracker_site_csv_post_response.py index 0ba38e23..28f7b979 100644 --- a/graphiant_sdk/models/v1_bwtracker_site_csv_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_site_csv_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_csv_details import StatsmonBandwidthtrackerBwUsageCsvDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerSiteCsvPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerSiteCsvPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageCsvDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_site_gateway_csv_post_request.py b/graphiant_sdk/models/v1_bwtracker_site_gateway_csv_post_request.py index 7f06e991..486d029e 100644 --- a/graphiant_sdk/models/v1_bwtracker_site_gateway_csv_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_site_gateway_csv_post_request.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_time_window import StatsmonBandwidthtrackerTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerSiteGatewayCsvPostRequest(BaseModel): """ V1BwtrackerSiteGatewayCsvPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) - site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId", json_schema_extra={"examples": [12345678910]}) + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + site_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="siteId") time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_bwtracker_site_gateway_csv_post_response.py b/graphiant_sdk/models/v1_bwtracker_site_gateway_csv_post_response.py index 7f5dd1c6..6929feaf 100644 --- a/graphiant_sdk/models/v1_bwtracker_site_gateway_csv_post_response.py +++ b/graphiant_sdk/models/v1_bwtracker_site_gateway_csv_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_bandwidthtracker_bw_usage_csv_details import StatsmonBandwidthtrackerBwUsageCsvDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1BwtrackerSiteGatewayCsvPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1BwtrackerSiteGatewayCsvPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bwusageCsvDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_applications_bucket_app_name_get_response.py b/graphiant_sdk/models/v1_data_assurance_assurances_applications_bucket_app_name_get_response.py index 42eb1182..c3688071 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_applications_bucket_app_name_get_response.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_applications_bucket_app_name_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_data_assurance_assurances_applications_bucket_app_name_get_response_assurance import V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponseAssurance from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["assurances"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_applications_bucket_app_name_get_response_assurance.py b/graphiant_sdk/models/v1_data_assurance_assurances_applications_bucket_app_name_get_response_assurance.py index 838e9224..13dd1799 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_applications_bucket_app_name_get_response_assurance.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_applications_bucket_app_name_get_response_assurance.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_assurance_config import ManaV2AssuranceConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponseAssurance(BaseModel): """ V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponseAssurance """ # noqa: E501 configs: Optional[ManaV2AssuranceConfig] = None - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["configs", "id"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response.py b/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response.py index 684c6785..978b9652 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_data_assurance_assurances_global_get_response_row import V1DataAssuranceAssurancesGlobalGetResponseRow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DataAssuranceAssurancesGlobalGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DataAssuranceAssurancesGlobalGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["rows"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row.py b/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row.py index c38e2372..46626579 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row.py @@ -25,25 +25,23 @@ from graphiant_sdk.models.v1_data_assurance_assurances_global_get_response_row_site_entry import V1DataAssuranceAssurancesGlobalGetResponseRowSiteEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DataAssuranceAssurancesGlobalGetResponseRow(BaseModel): """ V1DataAssuranceAssurancesGlobalGetResponseRow """ # noqa: E501 apps: Optional[List[V1DataAssuranceAssurancesGlobalGetResponseRowAppEntry]] = None - assurance_id: Optional[StrictInt] = Field(default=None, alias="assuranceId", json_schema_extra={"examples": [1234567891011]}) - assurance_name: Optional[StrictStr] = Field(default=None, alias="assuranceName", json_schema_extra={"examples": ["example string"]}) + assurance_id: Optional[StrictInt] = Field(default=None, alias="assuranceId") + assurance_name: Optional[StrictStr] = Field(default=None, alias="assuranceName") created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - flex_algo: Optional[StrictStr] = Field(default=None, alias="flexAlgo", json_schema_extra={"examples": ["example string"]}) + flex_algo: Optional[StrictStr] = Field(default=None, alias="flexAlgo") lans: Optional[List[V1DataAssuranceAssurancesGlobalGetResponseRowLanEntry]] = None sites: Optional[List[V1DataAssuranceAssurancesGlobalGetResponseRowSiteEntry]] = None updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["apps", "assuranceId", "assuranceName", "createdAt", "flexAlgo", "lans", "sites", "updatedAt"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,7 +53,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_app_entry.py b/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_app_entry.py index a415bfba..5cbd12f3 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_app_entry.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_app_entry.py @@ -21,18 +21,16 @@ 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 V1DataAssuranceAssurancesGlobalGetResponseRowAppEntry(BaseModel): """ V1DataAssuranceAssurancesGlobalGetResponseRowAppEntry """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") __properties: ClassVar[List[str]] = ["appName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_lan_entry.py b/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_lan_entry.py index 9246110c..a67b979e 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_lan_entry.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_lan_entry.py @@ -21,18 +21,16 @@ 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 V1DataAssuranceAssurancesGlobalGetResponseRowLanEntry(BaseModel): """ V1DataAssuranceAssurancesGlobalGetResponseRowLanEntry """ # noqa: E501 - lan_name: Optional[StrictStr] = Field(default=None, alias="lanName", json_schema_extra={"examples": ["example string"]}) + lan_name: Optional[StrictStr] = Field(default=None, alias="lanName") __properties: ClassVar[List[str]] = ["lanName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_site_entry.py b/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_site_entry.py index a9b63d9d..5e73b75e 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_site_entry.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_global_get_response_row_site_entry.py @@ -21,18 +21,16 @@ 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 V1DataAssuranceAssurancesGlobalGetResponseRowSiteEntry(BaseModel): """ V1DataAssuranceAssurancesGlobalGetResponseRowSiteEntry """ # noqa: E501 - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") __properties: ClassVar[List[str]] = ["siteName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_global_id_get_response.py b/graphiant_sdk/models/v1_data_assurance_assurances_global_id_get_response.py index b85dc375..817586c5 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_global_id_get_response.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_global_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_assurance_config import ManaV2AssuranceConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DataAssuranceAssurancesGlobalIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DataAssuranceAssurancesGlobalIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_global_id_put_request.py b/graphiant_sdk/models/v1_data_assurance_assurances_global_id_put_request.py index 7459fc70..fe82ecd4 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_global_id_put_request.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_global_id_put_request.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_assurance_config import ManaV2AssuranceConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DataAssuranceAssurancesGlobalIdPutRequest(BaseModel): """ V1DataAssuranceAssurancesGlobalIdPutRequest """ # noqa: E501 - app_removal_reason: Optional[StrictStr] = Field(default=None, alias="appRemovalReason", json_schema_extra={"examples": ["example string"]}) + app_removal_reason: Optional[StrictStr] = Field(default=None, alias="appRemovalReason") config: Optional[ManaV2AssuranceConfig] = None __properties: ClassVar[List[str]] = ["appRemovalReason", "config"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_global_id_put_response.py b/graphiant_sdk/models/v1_data_assurance_assurances_global_id_put_response.py index 33534d25..a36cebc2 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_global_id_put_response.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_global_id_put_response.py @@ -21,7 +21,6 @@ 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 V1DataAssuranceAssurancesGlobalIdPutResponse(BaseModel): """ @@ -31,8 +30,7 @@ class V1DataAssuranceAssurancesGlobalIdPutResponse(BaseModel): __properties: ClassVar[List[str]] = ["unsyncedDeviceNames"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_global_post_request.py b/graphiant_sdk/models/v1_data_assurance_assurances_global_post_request.py index 25b7cc02..eb06cae7 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_global_post_request.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_global_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_assurance_config import ManaV2AssuranceConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DataAssuranceAssurancesGlobalPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1DataAssuranceAssurancesGlobalPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_assurances_global_post_response.py b/graphiant_sdk/models/v1_data_assurance_assurances_global_post_response.py index f598bffa..442d8df1 100644 --- a/graphiant_sdk/models/v1_data_assurance_assurances_global_post_response.py +++ b/graphiant_sdk/models/v1_data_assurance_assurances_global_post_response.py @@ -21,19 +21,17 @@ 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 V1DataAssuranceAssurancesGlobalPostResponse(BaseModel): """ V1DataAssuranceAssurancesGlobalPostResponse """ # noqa: E501 - assurance_id: Optional[StrictInt] = Field(default=None, alias="assuranceId", json_schema_extra={"examples": [1234567891011]}) + assurance_id: Optional[StrictInt] = Field(default=None, alias="assuranceId") unsynced_device_names: Optional[List[StrictStr]] = Field(default=None, alias="unsyncedDeviceNames") __properties: ClassVar[List[str]] = ["assuranceId", "unsyncedDeviceNames"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_flex_algos_get_response.py b/graphiant_sdk/models/v1_data_assurance_flex_algos_get_response.py index 43039c1d..c7a82abf 100644 --- a/graphiant_sdk/models/v1_data_assurance_flex_algos_get_response.py +++ b/graphiant_sdk/models/v1_data_assurance_flex_algos_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_data_assurance_flex_algos_get_response_entry import V1DataAssuranceFlexAlgosGetResponseEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DataAssuranceFlexAlgosGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DataAssuranceFlexAlgosGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["entries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_data_assurance_flex_algos_get_response_entry.py b/graphiant_sdk/models/v1_data_assurance_flex_algos_get_response_entry.py index ba406220..eda33558 100644 --- a/graphiant_sdk/models/v1_data_assurance_flex_algos_get_response_entry.py +++ b/graphiant_sdk/models/v1_data_assurance_flex_algos_get_response_entry.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 V1DataAssuranceFlexAlgosGetResponseEntry(BaseModel): """ V1DataAssuranceFlexAlgosGetResponseEntry """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "id", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_bgp_nbrid_get_response.py b/graphiant_sdk/models/v1_device_routing_bgp_nbrid_get_response.py index ea7e4ac2..6ec5b5ed 100644 --- a/graphiant_sdk/models/v1_device_routing_bgp_nbrid_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_bgp_nbrid_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.common_page_info import CommonPageInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingBgpNbridGetResponse(BaseModel): """ @@ -30,12 +29,11 @@ class V1DeviceRoutingBgpNbridGetResponse(BaseModel): """ # noqa: E501 nbrs: Optional[List[StrictStr]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["nbrs", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_bgp_nbrs_counters_get_response.py b/graphiant_sdk/models/v1_device_routing_bgp_nbrs_counters_get_response.py index f3119302..798d4c2e 100644 --- a/graphiant_sdk/models/v1_device_routing_bgp_nbrs_counters_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_bgp_nbrs_counters_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.routingbgp_counter import RoutingbgpCounter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingBgpNbrsCountersGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DeviceRoutingBgpNbrsCountersGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["counters"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_bgp_nbrs_details_get_response.py b/graphiant_sdk/models/v1_device_routing_bgp_nbrs_details_get_response.py index 36552a0a..38421253 100644 --- a/graphiant_sdk/models/v1_device_routing_bgp_nbrs_details_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_bgp_nbrs_details_get_response.py @@ -21,20 +21,18 @@ 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 V1DeviceRoutingBgpNbrsDetailsGetResponse(BaseModel): """ V1DeviceRoutingBgpNbrsDetailsGetResponse """ # noqa: E501 - ebgp_multi_hop_ttl: Optional[StrictInt] = Field(default=None, alias="ebgpMultiHopTtl", json_schema_extra={"examples": [123]}) - hold_timer: Optional[StrictInt] = Field(default=None, alias="holdTimer", json_schema_extra={"examples": [123]}) - keep_alive_timer: Optional[StrictInt] = Field(default=None, alias="keepAliveTimer", json_schema_extra={"examples": [123]}) + ebgp_multi_hop_ttl: Optional[StrictInt] = Field(default=None, alias="ebgpMultiHopTtl") + hold_timer: Optional[StrictInt] = Field(default=None, alias="holdTimer") + keep_alive_timer: Optional[StrictInt] = Field(default=None, alias="keepAliveTimer") __properties: ClassVar[List[str]] = ["ebgpMultiHopTtl", "holdTimer", "keepAliveTimer"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_bgp_nbrs_per_afi_prefix_get_response.py b/graphiant_sdk/models/v1_device_routing_bgp_nbrs_per_afi_prefix_get_response.py index 475547e9..1811a140 100644 --- a/graphiant_sdk/models/v1_device_routing_bgp_nbrs_per_afi_prefix_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_bgp_nbrs_per_afi_prefix_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.routingprefix import Routingprefix from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["prefixes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_odp_nbrid_get_response.py b/graphiant_sdk/models/v1_device_routing_odp_nbrid_get_response.py index a8a18be6..9dbd800e 100644 --- a/graphiant_sdk/models/v1_device_routing_odp_nbrid_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_odp_nbrid_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.common_page_info import CommonPageInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOdpNbridGetResponse(BaseModel): """ @@ -30,12 +29,11 @@ class V1DeviceRoutingOdpNbridGetResponse(BaseModel): """ # noqa: E501 nbrs: Optional[List[StrictStr]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["nbrs", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv2_area_interface_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv2_area_interface_get_response.py index e157800d..7858ea5d 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv2_area_interface_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv2_area_interface_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.routing_ospf_interface import RoutingOspfInterface from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv2AreaInterfaceGetResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V1DeviceRoutingOspfv2AreaInterfaceGetResponse(BaseModel): """ # noqa: E501 interfaces: Optional[List[RoutingOspfInterface]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["interfaces", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv2_area_interface_nbrid_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv2_area_interface_nbrid_get_response.py index 1b5202a6..f87ce3b8 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv2_area_interface_nbrid_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv2_area_interface_nbrid_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.common_page_info import CommonPageInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse(BaseModel): """ @@ -30,12 +29,11 @@ class V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse(BaseModel): """ # noqa: E501 nbrs: Optional[List[StrictStr]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["nbrs", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv2_area_lsdb_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv2_area_lsdb_get_response.py index de3c74fc..9d9be0db 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv2_area_lsdb_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv2_area_lsdb_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.routing_ospflsa import RoutingOspflsa from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv2AreaLsdbGetResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V1DeviceRoutingOspfv2AreaLsdbGetResponse(BaseModel): """ # noqa: E501 lsas: Optional[List[RoutingOspflsa]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["lsas", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv2_area_nbr_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv2_area_nbr_get_response.py index e182ca6d..7d6e9ccd 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv2_area_nbr_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv2_area_nbr_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.routing_ospf_nbr import RoutingOspfNbr from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv2AreaNbrGetResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V1DeviceRoutingOspfv2AreaNbrGetResponse(BaseModel): """ # noqa: E501 nbrs: Optional[List[RoutingOspfNbr]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["nbrs", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv2_areaid_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv2_areaid_get_response.py index c871c8dc..6bd443d9 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv2_areaid_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv2_areaid_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.common_page_info import CommonPageInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv2AreaidGetResponse(BaseModel): """ @@ -30,12 +29,11 @@ class V1DeviceRoutingOspfv2AreaidGetResponse(BaseModel): """ # noqa: E501 areas: Optional[List[StrictStr]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["areas", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv2_lsdb_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv2_lsdb_get_response.py index 99eaed24..1c42f841 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv2_lsdb_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv2_lsdb_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.routing_ospflsa import RoutingOspflsa from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv2LsdbGetResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V1DeviceRoutingOspfv2LsdbGetResponse(BaseModel): """ # noqa: E501 lsas: Optional[List[RoutingOspflsa]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["lsas", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv2_rib_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv2_rib_get_response.py index 203b8361..0eae5f26 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv2_rib_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv2_rib_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.routing_ospf_route import RoutingOspfRoute from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv2RibGetResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V1DeviceRoutingOspfv2RibGetResponse(BaseModel): """ # noqa: E501 page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") routes: Optional[List[RoutingOspfRoute]] = None - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["pageInfo", "routes", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv2_statistics_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv2_statistics_get_response.py index b0d3dbaa..9fac2dd2 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv2_statistics_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv2_statistics_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.routing_ospf_statistics import RoutingOspfStatistics from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv2StatisticsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DeviceRoutingOspfv2StatisticsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["statistics"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv3_area_interface_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv3_area_interface_get_response.py index c8feb3c3..5c5b1fbb 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv3_area_interface_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv3_area_interface_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.routing_ospf_interface import RoutingOspfInterface from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv3AreaInterfaceGetResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V1DeviceRoutingOspfv3AreaInterfaceGetResponse(BaseModel): """ # noqa: E501 interfaces: Optional[List[RoutingOspfInterface]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["interfaces", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv3_area_lsdb_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv3_area_lsdb_get_response.py index fdd6c94b..1a1b261a 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv3_area_lsdb_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv3_area_lsdb_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.routing_ospflsa import RoutingOspflsa from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv3AreaLsdbGetResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V1DeviceRoutingOspfv3AreaLsdbGetResponse(BaseModel): """ # noqa: E501 lsas: Optional[List[RoutingOspflsa]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["lsas", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv3_area_nbr_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv3_area_nbr_get_response.py index 3caa5260..a93e9180 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv3_area_nbr_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv3_area_nbr_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.routing_ospf_nbr import RoutingOspfNbr from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv3AreaNbrGetResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V1DeviceRoutingOspfv3AreaNbrGetResponse(BaseModel): """ # noqa: E501 nbrs: Optional[List[RoutingOspfNbr]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["nbrs", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv3_areaid_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv3_areaid_get_response.py index 9891f328..fc736c91 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv3_areaid_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv3_areaid_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.common_page_info import CommonPageInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv3AreaidGetResponse(BaseModel): """ @@ -30,12 +29,11 @@ class V1DeviceRoutingOspfv3AreaidGetResponse(BaseModel): """ # noqa: E501 areas: Optional[List[StrictStr]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["areas", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv3_lsdb_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv3_lsdb_get_response.py index d499f5ef..0c063bd2 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv3_lsdb_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv3_lsdb_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.routing_ospflsa import RoutingOspflsa from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv3LsdbGetResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V1DeviceRoutingOspfv3LsdbGetResponse(BaseModel): """ # noqa: E501 lsas: Optional[List[RoutingOspflsa]] = None page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["lsas", "pageInfo", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv3_rib_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv3_rib_get_response.py index f930b0a4..805e1ea6 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv3_rib_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv3_rib_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.routing_ospf_route import RoutingOspfRoute from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv3RibGetResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V1DeviceRoutingOspfv3RibGetResponse(BaseModel): """ # noqa: E501 page_info: Optional[CommonPageInfo] = Field(default=None, alias="pageInfo") routes: Optional[List[RoutingOspfRoute]] = None - token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.", json_schema_extra={"examples": ["xxxxxxxxx"]}) + token: Optional[StrictStr] = Field(default=None, description="Reference to the resultset being queried, this should be sent by the service as part of a previous request and so can be opaque to the client.") __properties: ClassVar[List[str]] = ["pageInfo", "routes", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_ospfv3_statistics_get_response.py b/graphiant_sdk/models/v1_device_routing_ospfv3_statistics_get_response.py index 577e373e..48dd9fb0 100644 --- a/graphiant_sdk/models/v1_device_routing_ospfv3_statistics_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_ospfv3_statistics_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.routing_ospf_statistics import RoutingOspfStatistics from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingOspfv3StatisticsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DeviceRoutingOspfv3StatisticsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["statistics"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_rib_route_count_post_response.py b/graphiant_sdk/models/v1_device_routing_rib_route_count_post_response.py index 23c7bdec..2c37da0d 100644 --- a/graphiant_sdk/models/v1_device_routing_rib_route_count_post_response.py +++ b/graphiant_sdk/models/v1_device_routing_rib_route_count_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_device_routing_rib_route_count_post_response_route_count import V1DeviceRoutingRibRouteCountPostResponseRouteCount from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingRibRouteCountPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DeviceRoutingRibRouteCountPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["counts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_rib_route_count_post_response_route_count.py b/graphiant_sdk/models/v1_device_routing_rib_route_count_post_response_route_count.py index c026ad5c..483482f2 100644 --- a/graphiant_sdk/models/v1_device_routing_rib_route_count_post_response_route_count.py +++ b/graphiant_sdk/models/v1_device_routing_rib_route_count_post_response_route_count.py @@ -21,19 +21,17 @@ 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 V1DeviceRoutingRibRouteCountPostResponseRouteCount(BaseModel): """ V1DeviceRoutingRibRouteCountPostResponseRouteCount """ # noqa: E501 - route_count: Optional[StrictInt] = Field(default=None, description="Total installed route count in a vrf (required)", alias="routeCount", json_schema_extra={"examples": [1234]}) - vrf_name: Optional[StrictStr] = Field(default=None, description="Valid configured VRF name (required)", alias="vrfName", json_schema_extra={"examples": ["management"]}) + route_count: Optional[StrictInt] = Field(default=None, description="Total installed route count in a vrf (required)", alias="routeCount") + vrf_name: Optional[StrictStr] = Field(default=None, description="Valid configured VRF name (required)", alias="vrfName") __properties: ClassVar[List[str]] = ["routeCount", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_vrf_bgp_eibgp_route_count_get_response.py b/graphiant_sdk/models/v1_device_routing_vrf_bgp_eibgp_route_count_get_response.py index 1238ec94..8b73957d 100644 --- a/graphiant_sdk/models/v1_device_routing_vrf_bgp_eibgp_route_count_get_response.py +++ b/graphiant_sdk/models/v1_device_routing_vrf_bgp_eibgp_route_count_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.routing_afi_route_count import RoutingAfiRouteCount from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse(BaseModel): """ @@ -36,8 +35,7 @@ class V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["ebgpRouteCount", "graphiantRouteCount", "ibgpRouteCount", "localSourcedRouteCount", "totalRouteCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_request.py b/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_request.py index 4097295c..08672f86 100644 --- a/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_request.py +++ b/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_request.py @@ -21,19 +21,17 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingVrfBgpRouteCountPostRequest(BaseModel): """ V1DeviceRoutingVrfBgpRouteCountPostRequest """ # noqa: E501 - device_id: StrictInt = Field(description="Valid configured device ID > 0 (required)", alias="deviceId", json_schema_extra={"examples": [1000000]}) + device_id: StrictInt = Field(description="Valid configured device ID > 0 (required)", alias="deviceId") vrf_name: List[StrictStr] = Field(alias="vrfName") __properties: ClassVar[List[str]] = ["deviceId", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_response.py b/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_response.py index d10f045a..78982a94 100644 --- a/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_response.py +++ b/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_device_routing_vrf_bgp_route_count_post_response_route_count import V1DeviceRoutingVrfBgpRouteCountPostResponseRouteCount from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceRoutingVrfBgpRouteCountPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DeviceRoutingVrfBgpRouteCountPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["counts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_response_route_count.py b/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_response_route_count.py index 434f787d..aa0d3b6a 100644 --- a/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_response_route_count.py +++ b/graphiant_sdk/models/v1_device_routing_vrf_bgp_route_count_post_response_route_count.py @@ -21,19 +21,17 @@ 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 V1DeviceRoutingVrfBgpRouteCountPostResponseRouteCount(BaseModel): """ V1DeviceRoutingVrfBgpRouteCountPostResponseRouteCount """ # noqa: E501 - route_count: Optional[StrictInt] = Field(default=None, description="total route count in a vrf (required)", alias="routeCount", json_schema_extra={"examples": [1234]}) - vrf_name: Optional[StrictStr] = Field(default=None, description="Valid configured VRF name (required)", alias="vrfName", json_schema_extra={"examples": ["management"]}) + route_count: Optional[StrictInt] = Field(default=None, description="total route count in a vrf (required)", alias="routeCount") + vrf_name: Optional[StrictStr] = Field(default=None, description="Valid configured VRF name (required)", alias="vrfName") __properties: ClassVar[List[str]] = ["routeCount", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_snapshot_device_id_get_response.py b/graphiant_sdk/models/v1_device_snapshot_device_id_get_response.py index 34764bbf..99c527c7 100644 --- a/graphiant_sdk/models/v1_device_snapshot_device_id_get_response.py +++ b/graphiant_sdk/models/v1_device_snapshot_device_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_device_snapshot import ManaV2DeviceSnapshot from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceSnapshotDeviceIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DeviceSnapshotDeviceIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["snapshots"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_snapshot_get_response.py b/graphiant_sdk/models/v1_device_snapshot_get_response.py index f71cbe3d..7805e5e1 100644 --- a/graphiant_sdk/models/v1_device_snapshot_get_response.py +++ b/graphiant_sdk/models/v1_device_snapshot_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_device_snapshot import ManaV2DeviceSnapshot from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceSnapshotGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1DeviceSnapshotGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["firstSnapshot", "secondSnapshot", "thirdSnapshot"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_snapshot_post_request.py b/graphiant_sdk/models/v1_device_snapshot_post_request.py index 535e1464..2dcfa966 100644 --- a/graphiant_sdk/models/v1_device_snapshot_post_request.py +++ b/graphiant_sdk/models/v1_device_snapshot_post_request.py @@ -21,21 +21,19 @@ 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 V1DeviceSnapshotPostRequest(BaseModel): """ V1DeviceSnapshotPostRequest """ # noqa: E501 - category: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - golden: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + category: Optional[StrictStr] = None + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + golden: Optional[StrictBool] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["category", "deviceId", "golden", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_snapshot_put_request.py b/graphiant_sdk/models/v1_device_snapshot_put_request.py index 9a3bb8fe..73e86297 100644 --- a/graphiant_sdk/models/v1_device_snapshot_put_request.py +++ b/graphiant_sdk/models/v1_device_snapshot_put_request.py @@ -21,20 +21,18 @@ 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 V1DeviceSnapshotPutRequest(BaseModel): """ V1DeviceSnapshotPutRequest """ # noqa: E501 - golden: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - snapshot_id: Optional[StrictInt] = Field(default=None, alias="snapshotId", json_schema_extra={"examples": [1234567891011]}) + golden: Optional[StrictBool] = None + name: Optional[StrictStr] = None + snapshot_id: Optional[StrictInt] = Field(default=None, alias="snapshotId") __properties: ClassVar[List[str]] = ["golden", "name", "snapshotId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_status_history_post_request.py b/graphiant_sdk/models/v1_device_status_history_post_request.py index ae5b0893..400fa817 100644 --- a/graphiant_sdk/models/v1_device_status_history_post_request.py +++ b/graphiant_sdk/models/v1_device_status_history_post_request.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceStatusHistoryPostRequest(BaseModel): """ V1DeviceStatusHistoryPostRequest """ # noqa: E501 device_ids: Optional[List[Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, alias="deviceIds") - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + role: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceIds", "role"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_status_history_post_response.py b/graphiant_sdk/models/v1_device_status_history_post_response.py index c96747bd..95159509 100644 --- a/graphiant_sdk/models/v1_device_status_history_post_response.py +++ b/graphiant_sdk/models/v1_device_status_history_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.pokedex_device_history_info import PokedexDeviceHistoryInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceStatusHistoryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DeviceStatusHistoryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["mappings"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_status_post_request.py b/graphiant_sdk/models/v1_device_status_post_request.py index a7a95988..0eb08a65 100644 --- a/graphiant_sdk/models/v1_device_status_post_request.py +++ b/graphiant_sdk/models/v1_device_status_post_request.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceStatusPostRequest(BaseModel): """ V1DeviceStatusPostRequest """ # noqa: E501 device_ids: Optional[List[Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, alias="deviceIds") - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + role: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceIds", "role"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_device_status_post_response.py b/graphiant_sdk/models/v1_device_status_post_response.py index f9868ce1..6cdd7190 100644 --- a/graphiant_sdk/models/v1_device_status_post_response.py +++ b/graphiant_sdk/models/v1_device_status_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.pokedex_device_mapping_info import PokedexDeviceMappingInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DeviceStatusPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DeviceStatusPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["mappings"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_bringup_post_request.py b/graphiant_sdk/models/v1_devices_bringup_post_request.py index 4a231ccc..ce2378e0 100644 --- a/graphiant_sdk/models/v1_devices_bringup_post_request.py +++ b/graphiant_sdk/models/v1_devices_bringup_post_request.py @@ -22,7 +22,6 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesBringupPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesBringupPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["deviceIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_bringup_post_response.py b/graphiant_sdk/models/v1_devices_bringup_post_response.py index 47fe1945..7b887f96 100644 --- a/graphiant_sdk/models/v1_devices_bringup_post_response.py +++ b/graphiant_sdk/models/v1_devices_bringup_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.onboarding_onboarding_summary import OnboardingOnboardingSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesBringupPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesBringupPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["summaries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_bringup_put_request.py b/graphiant_sdk/models/v1_devices_bringup_put_request.py index 81695d33..d0de78cc 100644 --- a/graphiant_sdk/models/v1_devices_bringup_put_request.py +++ b/graphiant_sdk/models/v1_devices_bringup_put_request.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesBringupPutRequest(BaseModel): """ V1DevicesBringupPutRequest """ # noqa: E501 device_ids: Optional[List[Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, alias="deviceIds") - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceIds", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_bringup_token_post_request.py b/graphiant_sdk/models/v1_devices_bringup_token_post_request.py index 8f92cf19..fe85944e 100644 --- a/graphiant_sdk/models/v1_devices_bringup_token_post_request.py +++ b/graphiant_sdk/models/v1_devices_bringup_token_post_request.py @@ -22,20 +22,18 @@ 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 V1DevicesBringupTokenPostRequest(BaseModel): """ V1DevicesBringupTokenPostRequest """ # noqa: E501 - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + role: Optional[StrictStr] = None valid_till_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="validTillTs") - validity_sec: Optional[StrictInt] = Field(default=None, alias="validitySec", json_schema_extra={"examples": [1234567891011]}) + validity_sec: Optional[StrictInt] = Field(default=None, alias="validitySec") __properties: ClassVar[List[str]] = ["role", "validTillTs", "validitySec"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_bringup_token_post_response.py b/graphiant_sdk/models/v1_devices_bringup_token_post_response.py index 76b4c9f4..183230d4 100644 --- a/graphiant_sdk/models/v1_devices_bringup_token_post_response.py +++ b/graphiant_sdk/models/v1_devices_bringup_token_post_response.py @@ -22,19 +22,17 @@ 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 V1DevicesBringupTokenPostResponse(BaseModel): """ V1DevicesBringupTokenPostResponse """ # noqa: E501 - access_token: Optional[StrictStr] = Field(default=None, alias="accessToken", json_schema_extra={"examples": ["example string"]}) + access_token: Optional[StrictStr] = Field(default=None, alias="accessToken") valid_till_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="validTillTs") __properties: ClassVar[List[str]] = ["accessToken", "validTillTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_arp_get_response.py b/graphiant_sdk/models/v1_devices_device_id_arp_get_response.py index 05ace5dc..5f14e8dc 100644 --- a/graphiant_sdk/models/v1_devices_device_id_arp_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_arp_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.routing_arp_entry import RoutingArpEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdArpGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesDeviceIdArpGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["arpEntry"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_candidate_circuits_get_response.py b/graphiant_sdk/models/v1_devices_device_id_candidate_circuits_get_response.py index 66d8c42e..231806b7 100644 --- a/graphiant_sdk/models/v1_devices_device_id_candidate_circuits_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_candidate_circuits_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_devices_device_id_candidate_circuits_get_response_circuit_info import V1DevicesDeviceIdCandidateCircuitsGetResponseCircuitInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdCandidateCircuitsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesDeviceIdCandidateCircuitsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["circuits"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_candidate_circuits_get_response_circuit_info.py b/graphiant_sdk/models/v1_devices_device_id_candidate_circuits_get_response_circuit_info.py index 23337b07..ff0f1055 100644 --- a/graphiant_sdk/models/v1_devices_device_id_candidate_circuits_get_response_circuit_info.py +++ b/graphiant_sdk/models/v1_devices_device_id_candidate_circuits_get_response_circuit_info.py @@ -21,21 +21,19 @@ 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 V1DevicesDeviceIdCandidateCircuitsGetResponseCircuitInfo(BaseModel): """ V1DevicesDeviceIdCandidateCircuitsGetResponseCircuitInfo """ # noqa: E501 - circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - loopback_interface: Optional[StrictStr] = Field(default=None, alias="loopbackInterface", json_schema_extra={"examples": ["example string"]}) - vrf: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + circuit: Optional[StrictStr] = None + interface: Optional[StrictStr] = None + loopback_interface: Optional[StrictStr] = Field(default=None, alias="loopbackInterface") + vrf: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["circuit", "interface", "loopbackInterface", "vrf"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_circuits_vrf_associations_get_response.py b/graphiant_sdk/models/v1_devices_device_id_circuits_vrf_associations_get_response.py index c6e98753..9bf95c62 100644 --- a/graphiant_sdk/models/v1_devices_device_id_circuits_vrf_associations_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_circuits_vrf_associations_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_devices_device_id_circuits_vrf_associations_get_response_vrf_associations import V1DevicesDeviceIdCircuitsVrfAssociationsGetResponseVrfAssociations from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["vrfAssociations"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_circuits_vrf_associations_get_response_vrf_associations.py b/graphiant_sdk/models/v1_devices_device_id_circuits_vrf_associations_get_response_vrf_associations.py index d1a12ab2..ce33b562 100644 --- a/graphiant_sdk/models/v1_devices_device_id_circuits_vrf_associations_get_response_vrf_associations.py +++ b/graphiant_sdk/models/v1_devices_device_id_circuits_vrf_associations_get_response_vrf_associations.py @@ -21,20 +21,18 @@ 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 V1DevicesDeviceIdCircuitsVrfAssociationsGetResponseVrfAssociations(BaseModel): """ V1DevicesDeviceIdCircuitsVrfAssociationsGetResponseVrfAssociations """ # noqa: E501 - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName", json_schema_extra={"examples": ["example string"]}) - loopback_interface_name: Optional[StrictStr] = Field(default=None, alias="loopbackInterfaceName", json_schema_extra={"examples": ["example string"]}) - vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName", json_schema_extra={"examples": ["example string"]}) + interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + loopback_interface_name: Optional[StrictStr] = Field(default=None, alias="loopbackInterfaceName") + vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName") __properties: ClassVar[List[str]] = ["interfaceName", "loopbackInterfaceName", "vrfName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_config_put_request.py b/graphiant_sdk/models/v1_devices_device_id_config_put_request.py index fbaca6be..1b1d22e3 100644 --- a/graphiant_sdk/models/v1_devices_device_id_config_put_request.py +++ b/graphiant_sdk/models/v1_devices_device_id_config_put_request.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.mana_v2_edge_device_config import ManaV2EdgeDeviceConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdConfigPutRequest(BaseModel): """ @@ -32,15 +31,14 @@ class V1DevicesDeviceIdConfigPutRequest(BaseModel): """ # noqa: E501 configuration_metadata: Optional[ManaV2ConfigurationMetadata] = Field(default=None, alias="configurationMetadata") core: Optional[ManaV2CoreDeviceConfig] = None - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None edge: Optional[ManaV2EdgeDeviceConfig] = None - local_web_server_password: Optional[StrictStr] = Field(default=None, alias="localWebServerPassword", json_schema_extra={"examples": ["example string"]}) - replace: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + local_web_server_password: Optional[StrictStr] = Field(default=None, alias="localWebServerPassword") + replace: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["configurationMetadata", "core", "description", "edge", "localWebServerPassword", "replace"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_config_put_response.py b/graphiant_sdk/models/v1_devices_device_id_config_put_response.py index d4572570..f30ea685 100644 --- a/graphiant_sdk/models/v1_devices_device_id_config_put_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_config_put_response.py @@ -21,19 +21,17 @@ 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 V1DevicesDeviceIdConfigPutResponse(BaseModel): """ V1DevicesDeviceIdConfigPutResponse """ # noqa: E501 - job_id: Optional[StrictInt] = Field(default=None, alias="jobId", json_schema_extra={"examples": [1234567891011]}) - workflow_id: Optional[StrictStr] = Field(default=None, alias="workflowId", json_schema_extra={"examples": ["example string"]}) + job_id: Optional[StrictInt] = Field(default=None, alias="jobId") + workflow_id: Optional[StrictStr] = Field(default=None, alias="workflowId") __properties: ClassVar[List[str]] = ["jobId", "workflowId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_connectivity_get_response.py b/graphiant_sdk/models/v1_devices_device_id_connectivity_get_response.py index 6eca7746..c1cf4868 100644 --- a/graphiant_sdk/models/v1_devices_device_id_connectivity_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_connectivity_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_connectivity_graph_node import ManaV2ConnectivityGraphNode from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdConnectivityGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1DevicesDeviceIdConnectivityGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["edges", "nodes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_controller_peers_put_request.py b/graphiant_sdk/models/v1_devices_device_id_controller_peers_put_request.py index 697bb523..fc8f6728 100644 --- a/graphiant_sdk/models/v1_devices_device_id_controller_peers_put_request.py +++ b/graphiant_sdk/models/v1_devices_device_id_controller_peers_put_request.py @@ -21,19 +21,17 @@ 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 V1DevicesDeviceIdControllerPeersPutRequest(BaseModel): """ V1DevicesDeviceIdControllerPeersPutRequest """ # noqa: E501 - action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - controller_device_id: Optional[StrictInt] = Field(default=None, alias="controllerDeviceId", json_schema_extra={"examples": [1234567891011]}) + action: Optional[StrictStr] = None + controller_device_id: Optional[StrictInt] = Field(default=None, alias="controllerDeviceId") __properties: ClassVar[List[str]] = ["action", "controllerDeviceId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_dhcp_server_leases_get_response.py b/graphiant_sdk/models/v1_devices_device_id_dhcp_server_leases_get_response.py index 3c7f2e9b..e76b1c70 100644 --- a/graphiant_sdk/models/v1_devices_device_id_dhcp_server_leases_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_dhcp_server_leases_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_dhcp_server_pool import ManaV2DhcpServerPool from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdDhcpServerLeasesGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesDeviceIdDhcpServerLeasesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["pools"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_draft_get_response.py b/graphiant_sdk/models/v1_devices_device_id_draft_get_response.py index 1dcb8348..466cec35 100644 --- a/graphiant_sdk/models/v1_devices_device_id_draft_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_draft_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_mana_configuration import ManaV2ManaConfiguration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdDraftGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesDeviceIdDraftGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["draft"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_draft_post_request.py b/graphiant_sdk/models/v1_devices_device_id_draft_post_request.py index 5e2fea76..fff7dfca 100644 --- a/graphiant_sdk/models/v1_devices_device_id_draft_post_request.py +++ b/graphiant_sdk/models/v1_devices_device_id_draft_post_request.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_device import ManaV2Device from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdDraftPostRequest(BaseModel): """ V1DevicesDeviceIdDraftPostRequest """ # noqa: E501 - base_version: Optional[StrictInt] = Field(default=None, alias="baseVersion", json_schema_extra={"examples": [123]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + base_version: Optional[StrictInt] = Field(default=None, alias="baseVersion") + description: Optional[StrictStr] = None draft: Optional[ManaV2Device] = None __properties: ClassVar[List[str]] = ["baseVersion", "description", "draft"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_draft_post_response.py b/graphiant_sdk/models/v1_devices_device_id_draft_post_response.py index b4df8ccc..32834639 100644 --- a/graphiant_sdk/models/v1_devices_device_id_draft_post_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_draft_post_response.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, 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 V1DevicesDeviceIdDraftPostResponse(BaseModel): """ V1DevicesDeviceIdDraftPostResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + id: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_get_response.py b/graphiant_sdk/models/v1_devices_device_id_get_response.py index fdba26ac..2a443596 100644 --- a/graphiant_sdk/models/v1_devices_device_id_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_device import ManaV2Device from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesDeviceIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["device"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_interfaces_get_response.py b/graphiant_sdk/models/v1_devices_device_id_interfaces_get_response.py index 083a4b49..ef9f2f68 100644 --- a/graphiant_sdk/models/v1_devices_device_id_interfaces_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_interfaces_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_interface import ManaV2Interface from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdInterfacesGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1DevicesDeviceIdInterfacesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["interfaces", "pageInfo"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_jobs_job_id_get_response.py b/graphiant_sdk/models/v1_devices_device_id_jobs_job_id_get_response.py index 0d06335e..a5e74096 100644 --- a/graphiant_sdk/models/v1_devices_device_id_jobs_job_id_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_jobs_job_id_get_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.config_worker_job_status import ConfigWorkerJobStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdJobsJobIdGetResponse(BaseModel): """ V1DevicesDeviceIdJobsJobIdGetResponse """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") job_status: Optional[ConfigWorkerJobStatus] = Field(default=None, alias="jobStatus") __properties: ClassVar[List[str]] = ["deviceId", "jobStatus"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_ospfv2_default_originate_get_response.py b/graphiant_sdk/models/v1_devices_device_id_ospfv2_default_originate_get_response.py index b36d5e5b..461fe07e 100644 --- a/graphiant_sdk/models/v1_devices_device_id_ospfv2_default_originate_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_ospfv2_default_originate_get_response.py @@ -21,7 +21,6 @@ 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 V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse(BaseModel): """ @@ -31,8 +30,7 @@ class V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["defaultOriginates"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_ospfv3_default_originate_get_response.py b/graphiant_sdk/models/v1_devices_device_id_ospfv3_default_originate_get_response.py index e18b4984..8f71121d 100644 --- a/graphiant_sdk/models/v1_devices_device_id_ospfv3_default_originate_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_ospfv3_default_originate_get_response.py @@ -21,7 +21,6 @@ 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 V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse(BaseModel): """ @@ -31,8 +30,7 @@ class V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["defaultOriginates"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_policy_applications_get_response.py b/graphiant_sdk/models/v1_devices_device_id_policy_applications_get_response.py index 5020ea89..5ccb3c2a 100644 --- a/graphiant_sdk/models/v1_devices_device_id_policy_applications_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_policy_applications_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.v1_devices_device_id_policy_applications_get_response_application import V1DevicesDeviceIdPolicyApplicationsGetResponseApplication from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdPolicyApplicationsGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1DevicesDeviceIdPolicyApplicationsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["applications", "pageInfo"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_policy_applications_get_response_application.py b/graphiant_sdk/models/v1_devices_device_id_policy_applications_get_response_application.py index 41d6bf96..a2f50e21 100644 --- a/graphiant_sdk/models/v1_devices_device_id_policy_applications_get_response_application.py +++ b/graphiant_sdk/models/v1_devices_device_id_policy_applications_get_response_application.py @@ -21,21 +21,19 @@ 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 V1DevicesDeviceIdPolicyApplicationsGetResponseApplication(BaseModel): """ V1DevicesDeviceIdPolicyApplicationsGetResponseApplication """ # noqa: E501 - app_id: Optional[StrictInt] = Field(default=None, alias="appId", json_schema_extra={"examples": [1234567891011]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - kind: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + app_id: Optional[StrictInt] = Field(default=None, alias="appId") + description: Optional[StrictStr] = None + kind: Optional[StrictStr] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["appId", "description", "kind", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_policy_zonepairs_get_response.py b/graphiant_sdk/models/v1_devices_device_id_policy_zonepairs_get_response.py index 36aea33c..b8920520 100644 --- a/graphiant_sdk/models/v1_devices_device_id_policy_zonepairs_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_policy_zonepairs_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_firewall_zone_pair import ManaV2FirewallZonePair from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdPolicyZonepairsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesDeviceIdPolicyZonepairsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["zonePairs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_slice_peers_get_response.py b/graphiant_sdk/models/v1_devices_device_id_slice_peers_get_response.py index 0e7d0102..4d5291bf 100644 --- a/graphiant_sdk/models/v1_devices_device_id_slice_peers_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_slice_peers_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_network_slice import ManaV2NetworkSlice from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdSlicePeersGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesDeviceIdSlicePeersGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["slices"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_twamp_core_get_response.py b/graphiant_sdk/models/v1_devices_device_id_twamp_core_get_response.py index 5e83b8fb..995a6d7b 100644 --- a/graphiant_sdk/models/v1_devices_device_id_twamp_core_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_twamp_core_get_response.py @@ -21,7 +21,6 @@ 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 V1DevicesDeviceIdTwampCoreGetResponse(BaseModel): """ @@ -31,8 +30,7 @@ class V1DevicesDeviceIdTwampCoreGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["links"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_versions_get_response.py b/graphiant_sdk/models/v1_devices_device_id_versions_get_response.py index 44011874..2fe738d4 100644 --- a/graphiant_sdk/models/v1_devices_device_id_versions_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_versions_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_version_metadata import ManaV2VersionMetadata from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdVersionsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesDeviceIdVersionsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["versions"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_versions_version_get_response.py b/graphiant_sdk/models/v1_devices_device_id_versions_version_get_response.py index 6499b55c..a6a7dd77 100644 --- a/graphiant_sdk/models/v1_devices_device_id_versions_version_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_versions_version_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_mana_configuration import ManaV2ManaConfiguration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdVersionsVersionGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesDeviceIdVersionsVersionGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_vrf_protocols_get_response.py b/graphiant_sdk/models/v1_devices_device_id_vrf_protocols_get_response.py index 8452ff9e..40c44bf5 100644 --- a/graphiant_sdk/models/v1_devices_device_id_vrf_protocols_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_vrf_protocols_get_response.py @@ -17,27 +17,25 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, StrictBool 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 V1DevicesDeviceIdVrfProtocolsGetResponse(BaseModel): """ V1DevicesDeviceIdVrfProtocolsGetResponse """ # noqa: E501 - bgp: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - connected: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - graphiant: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - ospfv2: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - ospfv3: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - static: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + bgp: Optional[StrictBool] = None + connected: Optional[StrictBool] = None + graphiant: Optional[StrictBool] = None + ospfv2: Optional[StrictBool] = None + ospfv3: Optional[StrictBool] = None + static: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["bgp", "connected", "graphiant", "ospfv2", "ospfv3", "static"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_device_id_vrrp_get_response.py b/graphiant_sdk/models/v1_devices_device_id_vrrp_get_response.py index 847dc801..324418bf 100644 --- a/graphiant_sdk/models/v1_devices_device_id_vrrp_get_response.py +++ b/graphiant_sdk/models/v1_devices_device_id_vrrp_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.routing_vrrp_entry import RoutingVrrpEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesDeviceIdVrrpGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesDeviceIdVrrpGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["vrrpEntry"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_get_response.py b/graphiant_sdk/models/v1_devices_get_response.py index 0b8324fb..aa1ee45f 100644 --- a/graphiant_sdk/models/v1_devices_get_response.py +++ b/graphiant_sdk/models/v1_devices_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_device import ManaV2Device from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1DevicesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["devices", "pageInfo"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_inventory_approve_return_post_request.py b/graphiant_sdk/models/v1_devices_inventory_approve_return_post_request.py index d02c6782..289ea28f 100644 --- a/graphiant_sdk/models/v1_devices_inventory_approve_return_post_request.py +++ b/graphiant_sdk/models/v1_devices_inventory_approve_return_post_request.py @@ -21,7 +21,6 @@ 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 V1DevicesInventoryApproveReturnPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1DevicesInventoryApproveReturnPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["deviceSerials"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_inventory_clear_return_post_request.py b/graphiant_sdk/models/v1_devices_inventory_clear_return_post_request.py index c19cbc0c..45caf809 100644 --- a/graphiant_sdk/models/v1_devices_inventory_clear_return_post_request.py +++ b/graphiant_sdk/models/v1_devices_inventory_clear_return_post_request.py @@ -21,7 +21,6 @@ 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 V1DevicesInventoryClearReturnPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1DevicesInventoryClearReturnPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["deviceSerials"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_inventory_enterprise_put_request.py b/graphiant_sdk/models/v1_devices_inventory_enterprise_put_request.py index c5a6b1ec..489a882c 100644 --- a/graphiant_sdk/models/v1_devices_inventory_enterprise_put_request.py +++ b/graphiant_sdk/models/v1_devices_inventory_enterprise_put_request.py @@ -21,19 +21,17 @@ 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 V1DevicesInventoryEnterprisePutRequest(BaseModel): """ V1DevicesInventoryEnterprisePutRequest """ # noqa: E501 device_serials: Optional[List[StrictStr]] = Field(default=None, alias="deviceSerials") - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") __properties: ClassVar[List[str]] = ["deviceSerials", "enterpriseId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_inventory_get_response.py b/graphiant_sdk/models/v1_devices_inventory_get_response.py index 9c1f38a5..dcf3c930 100644 --- a/graphiant_sdk/models/v1_devices_inventory_get_response.py +++ b/graphiant_sdk/models/v1_devices_inventory_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.onboarding_hardware_inventory import OnboardingHardwareInventory from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesInventoryGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1DevicesInventoryGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["inventory", "pageInfo"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_inventory_post_request.py b/graphiant_sdk/models/v1_devices_inventory_post_request.py index d2166f39..f521554c 100644 --- a/graphiant_sdk/models/v1_devices_inventory_post_request.py +++ b/graphiant_sdk/models/v1_devices_inventory_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.onboarding_hardware_inventory import OnboardingHardwareInventory from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesInventoryPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesInventoryPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["hardwareInventoryList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_inventory_post_response.py b/graphiant_sdk/models/v1_devices_inventory_post_response.py index 9d6d4704..c4bb5e35 100644 --- a/graphiant_sdk/models/v1_devices_inventory_post_response.py +++ b/graphiant_sdk/models/v1_devices_inventory_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_devices_inventory_post_response_data import V1DevicesInventoryPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesInventoryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesInventoryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_inventory_post_response_data.py b/graphiant_sdk/models/v1_devices_inventory_post_response_data.py index 0cb4aff5..69d27e29 100644 --- a/graphiant_sdk/models/v1_devices_inventory_post_response_data.py +++ b/graphiant_sdk/models/v1_devices_inventory_post_response_data.py @@ -21,19 +21,17 @@ 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 V1DevicesInventoryPostResponseData(BaseModel): """ V1DevicesInventoryPostResponseData """ # noqa: E501 - device_serial: Optional[StrictStr] = Field(default=None, alias="deviceSerial", json_schema_extra={"examples": ["example string"]}) - uuid: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + device_serial: Optional[StrictStr] = Field(default=None, alias="deviceSerial") + uuid: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceSerial", "uuid"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_inventory_request_return_post_request.py b/graphiant_sdk/models/v1_devices_inventory_request_return_post_request.py index be9396f1..6a73e49e 100644 --- a/graphiant_sdk/models/v1_devices_inventory_request_return_post_request.py +++ b/graphiant_sdk/models/v1_devices_inventory_request_return_post_request.py @@ -21,7 +21,6 @@ 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 V1DevicesInventoryRequestReturnPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1DevicesInventoryRequestReturnPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["deviceSerials"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_oauth_authorization_get_response.py b/graphiant_sdk/models/v1_devices_oauth_authorization_get_response.py index b5533710..36af6cd0 100644 --- a/graphiant_sdk/models/v1_devices_oauth_authorization_get_response.py +++ b/graphiant_sdk/models/v1_devices_oauth_authorization_get_response.py @@ -21,18 +21,16 @@ 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 V1DevicesOauthAuthorizationGetResponse(BaseModel): """ V1DevicesOauthAuthorizationGetResponse """ # noqa: E501 - auth_code: Optional[StrictStr] = Field(default=None, description="OAuth authorization code", json_schema_extra={"examples": ["auth-code-12345"]}) + auth_code: Optional[StrictStr] = Field(default=None, description="OAuth authorization code") __properties: ClassVar[List[str]] = ["auth_code"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_oauth_post_request.py b/graphiant_sdk/models/v1_devices_oauth_post_request.py index 9edd57bd..800885f9 100644 --- a/graphiant_sdk/models/v1_devices_oauth_post_request.py +++ b/graphiant_sdk/models/v1_devices_oauth_post_request.py @@ -21,18 +21,17 @@ 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 V1DevicesOauthPostRequest(BaseModel): """ V1DevicesOauthPostRequest """ # noqa: E501 - grant_type: StrictStr = Field(description="OAuth grant type", json_schema_extra={"examples": ["client_credentials"]}) - scope: StrictStr = Field(description="OAuth scope containing device type, UUID, and hostname", json_schema_extra={"examples": ["type=zt-cpe uuid=device-uuid-123 hostname=device.example.com"]}) - state: Optional[StrictStr] = Field(default=None, description="OAuth state parameter", json_schema_extra={"examples": ["state-12345"]}) - code_verify: Optional[StrictStr] = Field(default=None, description="OAuth code verifier", json_schema_extra={"examples": ["code-verify-12345"]}) - pt: Optional[StrictStr] = Field(default=None, description="Platform type", json_schema_extra={"examples": ["hardware"]}) - bm: Optional[StrictStr] = Field(default=None, description="Boot mode", json_schema_extra={"examples": ["p"]}) + grant_type: StrictStr = Field(description="OAuth grant type") + scope: StrictStr = Field(description="OAuth scope containing device type, UUID, and hostname") + state: Optional[StrictStr] = Field(default=None, description="OAuth state parameter") + code_verify: Optional[StrictStr] = Field(default=None, description="OAuth code verifier") + pt: Optional[StrictStr] = Field(default=None, description="Platform type") + bm: Optional[StrictStr] = Field(default=None, description="Boot mode") __properties: ClassVar[List[str]] = ["grant_type", "scope", "state", "code_verify", "pt", "bm"] @field_validator('grant_type') @@ -43,8 +42,7 @@ def grant_type_validate_enum(cls, value): return value model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_oauth_post_response.py b/graphiant_sdk/models/v1_devices_oauth_post_response.py index 0399a738..ac3bfafe 100644 --- a/graphiant_sdk/models/v1_devices_oauth_post_response.py +++ b/graphiant_sdk/models/v1_devices_oauth_post_response.py @@ -21,20 +21,18 @@ 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 V1DevicesOauthPostResponse(BaseModel): """ V1DevicesOauthPostResponse """ # noqa: E501 - access_token: Optional[StrictStr] = Field(default=None, description="OAuth access token", json_schema_extra={"examples": ["access-token-12345"]}) - expires_in: Optional[StrictInt] = Field(default=None, description="Token expiration time in seconds", json_schema_extra={"examples": [3600]}) - token_type: Optional[StrictStr] = Field(default=None, description="Token type", json_schema_extra={"examples": ["Bearer"]}) + access_token: Optional[StrictStr] = Field(default=None, description="OAuth access token") + expires_in: Optional[StrictInt] = Field(default=None, description="Token expiration time in seconds") + token_type: Optional[StrictStr] = Field(default=None, description="Token type") __properties: ClassVar[List[str]] = ["access_token", "expires_in", "token_type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_rma_post_request.py b/graphiant_sdk/models/v1_devices_rma_post_request.py index 316a026c..3fbb9798 100644 --- a/graphiant_sdk/models/v1_devices_rma_post_request.py +++ b/graphiant_sdk/models/v1_devices_rma_post_request.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesRmaPostRequest(BaseModel): """ V1DevicesRmaPostRequest """ # noqa: E501 - current_device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="currentDeviceId", json_schema_extra={"examples": [12345678910]}) - new_device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="newDeviceId", json_schema_extra={"examples": [12345678910]}) + current_device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="currentDeviceId") + new_device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="newDeviceId") __properties: ClassVar[List[str]] = ["currentDeviceId", "newDeviceId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_routing_vrf_protocol_route_count_get_response.py b/graphiant_sdk/models/v1_devices_routing_vrf_protocol_route_count_get_response.py index b76d701a..922b0a74 100644 --- a/graphiant_sdk/models/v1_devices_routing_vrf_protocol_route_count_get_response.py +++ b/graphiant_sdk/models/v1_devices_routing_vrf_protocol_route_count_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_devices_routing_vrf_protocol_route_count_get_response_protocol_count import V1DevicesRoutingVrfProtocolRouteCountGetResponseProtocolCount from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesRoutingVrfProtocolRouteCountGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesRoutingVrfProtocolRouteCountGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["counts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_routing_vrf_protocol_route_count_get_response_protocol_count.py b/graphiant_sdk/models/v1_devices_routing_vrf_protocol_route_count_get_response_protocol_count.py index 47e357b9..4f36e2b2 100644 --- a/graphiant_sdk/models/v1_devices_routing_vrf_protocol_route_count_get_response_protocol_count.py +++ b/graphiant_sdk/models/v1_devices_routing_vrf_protocol_route_count_get_response_protocol_count.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.routing_afi_route_count import RoutingAfiRouteCount from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesRoutingVrfProtocolRouteCountGetResponseProtocolCount(BaseModel): """ V1DevicesRoutingVrfProtocolRouteCountGetResponseProtocolCount """ # noqa: E501 - protocol: Optional[StrictStr] = Field(default=None, description="Configured protocol (required)", json_schema_extra={"examples": ["OSPF"]}) + protocol: Optional[StrictStr] = Field(default=None, description="Configured protocol (required)") route_count: Optional[RoutingAfiRouteCount] = Field(default=None, alias="routeCount") __properties: ClassVar[List[str]] = ["protocol", "routeCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_running_version_post_request.py b/graphiant_sdk/models/v1_devices_running_version_post_request.py index 98edc340..345b9334 100644 --- a/graphiant_sdk/models/v1_devices_running_version_post_request.py +++ b/graphiant_sdk/models/v1_devices_running_version_post_request.py @@ -21,7 +21,6 @@ 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 V1DevicesRunningVersionPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1DevicesRunningVersionPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["deviceIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_running_version_post_response.py b/graphiant_sdk/models/v1_devices_running_version_post_response.py index d7a9fe1d..d0079444 100644 --- a/graphiant_sdk/models/v1_devices_running_version_post_response.py +++ b/graphiant_sdk/models/v1_devices_running_version_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.upgrade_running_sw_version import UpgradeRunningSwVersion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesRunningVersionPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesRunningVersionPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["versions"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_session_status_post_request.py b/graphiant_sdk/models/v1_devices_session_status_post_request.py index 709bf88f..25f287a1 100644 --- a/graphiant_sdk/models/v1_devices_session_status_post_request.py +++ b/graphiant_sdk/models/v1_devices_session_status_post_request.py @@ -21,7 +21,6 @@ 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 V1DevicesSessionStatusPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1DevicesSessionStatusPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["deviceIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_session_status_post_response.py b/graphiant_sdk/models/v1_devices_session_status_post_response.py index 298b117e..a9df099f 100644 --- a/graphiant_sdk/models/v1_devices_session_status_post_response.py +++ b/graphiant_sdk/models/v1_devices_session_status_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_devices_session_status_post_response_data import V1DevicesSessionStatusPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesSessionStatusPostResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1DevicesSessionStatusPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bgpSessionDataMap", "bgpSessionMap", "bgpSessionStates"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_session_status_post_response_data.py b/graphiant_sdk/models/v1_devices_session_status_post_response_data.py index d7ab2707..e0a3c9fd 100644 --- a/graphiant_sdk/models/v1_devices_session_status_post_response_data.py +++ b/graphiant_sdk/models/v1_devices_session_status_post_response_data.py @@ -21,21 +21,19 @@ 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 V1DevicesSessionStatusPostResponseData(BaseModel): """ V1DevicesSessionStatusPostResponseData """ # noqa: E501 - core_bgp_neighbors_count: Optional[StrictInt] = Field(default=None, alias="coreBgpNeighborsCount", json_schema_extra={"examples": [123]}) - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - odp_bgp_neighbors_count: Optional[StrictInt] = Field(default=None, alias="odpBgpNeighborsCount", json_schema_extra={"examples": [123]}) - wan_interfaces_count: Optional[StrictInt] = Field(default=None, alias="wanInterfacesCount", json_schema_extra={"examples": [123]}) + core_bgp_neighbors_count: Optional[StrictInt] = Field(default=None, alias="coreBgpNeighborsCount") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + odp_bgp_neighbors_count: Optional[StrictInt] = Field(default=None, alias="odpBgpNeighborsCount") + wan_interfaces_count: Optional[StrictInt] = Field(default=None, alias="wanInterfacesCount") __properties: ClassVar[List[str]] = ["coreBgpNeighborsCount", "deviceId", "odpBgpNeighborsCount", "wanInterfacesCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_summary_get_response.py b/graphiant_sdk/models/v1_devices_summary_get_response.py index cc28ed81..306a37b7 100644 --- a/graphiant_sdk/models/v1_devices_summary_get_response.py +++ b/graphiant_sdk/models/v1_devices_summary_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_devices_summary_get_response_site_summary import V1DevicesSummaryGetResponseSiteSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesSummaryGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DevicesSummaryGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["sites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_summary_get_response_site_summary.py b/graphiant_sdk/models/v1_devices_summary_get_response_site_summary.py index 49c99f9f..7aa8af2d 100644 --- a/graphiant_sdk/models/v1_devices_summary_get_response_site_summary.py +++ b/graphiant_sdk/models/v1_devices_summary_get_response_site_summary.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.v1_devices_summary_get_response_site_summary_device_summary import V1DevicesSummaryGetResponseSiteSummaryDeviceSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesSummaryGetResponseSiteSummary(BaseModel): """ V1DevicesSummaryGetResponseSiteSummary """ # noqa: E501 devices: Optional[List[V1DevicesSummaryGetResponseSiteSummaryDeviceSummary]] = None - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") __properties: ClassVar[List[str]] = ["devices", "siteId", "siteName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_summary_get_response_site_summary_device_summary.py b/graphiant_sdk/models/v1_devices_summary_get_response_site_summary_device_summary.py index 41ead911..c967b50e 100644 --- a/graphiant_sdk/models/v1_devices_summary_get_response_site_summary_device_summary.py +++ b/graphiant_sdk/models/v1_devices_summary_get_response_site_summary_device_summary.py @@ -22,25 +22,23 @@ from graphiant_sdk.models.mana_v2_region import ManaV2Region from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesSummaryGetResponseSiteSummaryDeviceSummary(BaseModel): """ V1DevicesSummaryGetResponseSiteSummaryDeviceSummary """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - is_virtual: Optional[StrictBool] = Field(default=None, alias="isVirtual", json_schema_extra={"examples": [True]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + is_virtual: Optional[StrictBool] = Field(default=None, alias="isVirtual") + name: Optional[StrictStr] = None override_region: Optional[ManaV2Region] = Field(default=None, alias="overrideRegion") - platform_name: Optional[StrictStr] = Field(default=None, alias="platformName", json_schema_extra={"examples": ["example string"]}) + platform_name: Optional[StrictStr] = Field(default=None, alias="platformName") region: Optional[ManaV2Region] = None - role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + role: Optional[StrictStr] = None + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "isVirtual", "name", "overrideRegion", "platformName", "region", "role", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_upgrade_cancel_put_request.py b/graphiant_sdk/models/v1_devices_upgrade_cancel_put_request.py index 94f13e95..7cfec086 100644 --- a/graphiant_sdk/models/v1_devices_upgrade_cancel_put_request.py +++ b/graphiant_sdk/models/v1_devices_upgrade_cancel_put_request.py @@ -21,7 +21,6 @@ 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 V1DevicesUpgradeCancelPutRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1DevicesUpgradeCancelPutRequest(BaseModel): __properties: ClassVar[List[str]] = ["deviceIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_upgrade_schedule_put_request.py b/graphiant_sdk/models/v1_devices_upgrade_schedule_put_request.py index a49017b9..b1b73e68 100644 --- a/graphiant_sdk/models/v1_devices_upgrade_schedule_put_request.py +++ b/graphiant_sdk/models/v1_devices_upgrade_schedule_put_request.py @@ -24,13 +24,12 @@ from graphiant_sdk.models.v1_devices_upgrade_schedule_put_request_device_version import V1DevicesUpgradeSchedulePutRequestDeviceVersion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesUpgradeSchedulePutRequest(BaseModel): """ V1DevicesUpgradeSchedulePutRequest """ # noqa: E501 - action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + action: Optional[StrictStr] = None device_ids: Optional[List[StrictInt]] = Field(default=None, alias="deviceIds") device_versions: Optional[List[V1DevicesUpgradeSchedulePutRequestDeviceVersion]] = Field(default=None, alias="deviceVersions") ts: Optional[GoogleProtobufTimestamp] = None @@ -38,8 +37,7 @@ class V1DevicesUpgradeSchedulePutRequest(BaseModel): __properties: ClassVar[List[str]] = ["action", "deviceIds", "deviceVersions", "ts", "version"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_devices_upgrade_schedule_put_request_device_version.py b/graphiant_sdk/models/v1_devices_upgrade_schedule_put_request_device_version.py index f912f9bc..1828ecaa 100644 --- a/graphiant_sdk/models/v1_devices_upgrade_schedule_put_request_device_version.py +++ b/graphiant_sdk/models/v1_devices_upgrade_schedule_put_request_device_version.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.upgrade_sw_version import UpgradeSwVersion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DevicesUpgradeSchedulePutRequestDeviceVersion(BaseModel): """ V1DevicesUpgradeSchedulePutRequestDeviceVersion """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") version: Optional[UpgradeSwVersion] = None __properties: ClassVar[List[str]] = ["deviceId", "version"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_archive_create_device_id_post_request.py b/graphiant_sdk/models/v1_diagnostic_archive_create_device_id_post_request.py index 358f56c2..0cdc2b07 100644 --- a/graphiant_sdk/models/v1_diagnostic_archive_create_device_id_post_request.py +++ b/graphiant_sdk/models/v1_diagnostic_archive_create_device_id_post_request.py @@ -21,18 +21,16 @@ 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 V1DiagnosticArchiveCreateDeviceIdPostRequest(BaseModel): """ V1DiagnosticArchiveCreateDeviceIdPostRequest """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="Description of the requested archive", json_schema_extra={"examples": ["archive requested to debug tenant A problem in device B"]}) + description: Optional[StrictStr] = Field(default=None, description="Description of the requested archive") __properties: ClassVar[List[str]] = ["description"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_archive_create_device_id_post_response.py b/graphiant_sdk/models/v1_diagnostic_archive_create_device_id_post_response.py index e294189a..e76c90e8 100644 --- a/graphiant_sdk/models/v1_diagnostic_archive_create_device_id_post_response.py +++ b/graphiant_sdk/models/v1_diagnostic_archive_create_device_id_post_response.py @@ -21,18 +21,16 @@ 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 V1DiagnosticArchiveCreateDeviceIdPostResponse(BaseModel): """ V1DiagnosticArchiveCreateDeviceIdPostResponse """ # noqa: E501 - archive_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific archive", alias="archiveId", json_schema_extra={"examples": [1000000]}) + archive_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific archive", alias="archiveId") __properties: ClassVar[List[str]] = ["archiveId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_archive_edit_archive_id_put_request.py b/graphiant_sdk/models/v1_diagnostic_archive_edit_archive_id_put_request.py index 7aa82d38..0474136c 100644 --- a/graphiant_sdk/models/v1_diagnostic_archive_edit_archive_id_put_request.py +++ b/graphiant_sdk/models/v1_diagnostic_archive_edit_archive_id_put_request.py @@ -21,18 +21,16 @@ 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 V1DiagnosticArchiveEditArchiveIdPutRequest(BaseModel): """ V1DiagnosticArchiveEditArchiveIdPutRequest """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="Description of the requested archive", json_schema_extra={"examples": ["archive requested to debug tenant A problem in device B"]}) + description: Optional[StrictStr] = Field(default=None, description="Description of the requested archive") __properties: ClassVar[List[str]] = ["description"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_archives_device_id_get_response.py b/graphiant_sdk/models/v1_diagnostic_archives_device_id_get_response.py index ed594264..be6f8eaf 100644 --- a/graphiant_sdk/models/v1_diagnostic_archives_device_id_get_response.py +++ b/graphiant_sdk/models/v1_diagnostic_archives_device_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.diagnostic_tools_archive import DiagnosticToolsArchive from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticArchivesDeviceIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DiagnosticArchivesDeviceIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["archives"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_bgp_reset_device_id_put_request.py b/graphiant_sdk/models/v1_diagnostic_bgp_reset_device_id_put_request.py index 8088ecf0..bb1935c8 100644 --- a/graphiant_sdk/models/v1_diagnostic_bgp_reset_device_id_put_request.py +++ b/graphiant_sdk/models/v1_diagnostic_bgp_reset_device_id_put_request.py @@ -21,21 +21,19 @@ 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 V1DiagnosticBgpResetDeviceIdPutRequest(BaseModel): """ V1DiagnosticBgpResetDeviceIdPutRequest """ # noqa: E501 - hard: Optional[StrictBool] = Field(default=None, description="BGP process restarts if set to true. if false, BGP route is only relearned", json_schema_extra={"examples": [True]}) - lan_segment: Optional[StrictStr] = Field(default=None, description="The segment over which this route is learned", alias="lanSegment", json_schema_extra={"examples": ["isp"]}) - local_interface: Optional[StrictStr] = Field(default=None, description="The local interface over which this route is learned", alias="localInterface", json_schema_extra={"examples": ["GigabitEthernet0/0/1"]}) - neighbor: Optional[StrictStr] = Field(default=None, description="The neighbor to reset", json_schema_extra={"examples": ["1.1.1.1"]}) + hard: Optional[StrictBool] = Field(default=None, description="BGP process restarts if set to true. if false, BGP route is only relearned") + lan_segment: Optional[StrictStr] = Field(default=None, description="The segment over which this route is learned", alias="lanSegment") + local_interface: Optional[StrictStr] = Field(default=None, description="The local interface over which this route is learned", alias="localInterface") + neighbor: Optional[StrictStr] = Field(default=None, description="The neighbor to reset") __properties: ClassVar[List[str]] = ["hard", "lanSegment", "localInterface", "neighbor"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_clear_arp_device_id_put_request.py b/graphiant_sdk/models/v1_diagnostic_clear_arp_device_id_put_request.py index 7b231531..65a45fb2 100644 --- a/graphiant_sdk/models/v1_diagnostic_clear_arp_device_id_put_request.py +++ b/graphiant_sdk/models/v1_diagnostic_clear_arp_device_id_put_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.diagnostic_tools_arp_entry import DiagnosticToolsArpEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticClearArpDeviceIdPutRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1DiagnosticClearArpDeviceIdPutRequest(BaseModel): __properties: ClassVar[List[str]] = ["entry"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_gnmi_ping_get_response.py b/graphiant_sdk/models/v1_diagnostic_gnmi_ping_get_response.py index 6495daf4..639927d8 100644 --- a/graphiant_sdk/models/v1_diagnostic_gnmi_ping_get_response.py +++ b/graphiant_sdk/models/v1_diagnostic_gnmi_ping_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_diagnostic_gnmi_ping_get_response_result import V1DiagnosticGnmiPingGetResponseResult from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticGnmiPingGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DiagnosticGnmiPingGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["results"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_gnmi_ping_get_response_result.py b/graphiant_sdk/models/v1_diagnostic_gnmi_ping_get_response_result.py index 3d0e86c7..dec060b8 100644 --- a/graphiant_sdk/models/v1_diagnostic_gnmi_ping_get_response_result.py +++ b/graphiant_sdk/models/v1_diagnostic_gnmi_ping_get_response_result.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.google_protobuf_duration import GoogleProtobufDuration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticGnmiPingGetResponseResult(BaseModel): """ V1DiagnosticGnmiPingGetResponseResult """ # noqa: E501 - address: Optional[StrictStr] = Field(default=None, description="Address of the device on which the test was performed", json_schema_extra={"examples": ["12001:0db8:85a3:0000:0000:8a2e:0370:7334"]}) - error: Optional[StrictStr] = Field(default=None, description="If error is empty, the ping is success", json_schema_extra={"examples": ["device offline"]}) + address: Optional[StrictStr] = Field(default=None, description="Address of the device on which the test was performed") + error: Optional[StrictStr] = Field(default=None, description="If error is empty, the ping is success") rtt: Optional[GoogleProtobufDuration] = None - tt_device_id: Optional[StrictInt] = Field(default=None, alias="ttDeviceId", json_schema_extra={"examples": [1234567891011]}) + tt_device_id: Optional[StrictInt] = Field(default=None, alias="ttDeviceId") __properties: ClassVar[List[str]] = ["address", "error", "rtt", "ttDeviceId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_interface_reset_device_id_put_request.py b/graphiant_sdk/models/v1_diagnostic_interface_reset_device_id_put_request.py index cd81a247..242e5fe8 100644 --- a/graphiant_sdk/models/v1_diagnostic_interface_reset_device_id_put_request.py +++ b/graphiant_sdk/models/v1_diagnostic_interface_reset_device_id_put_request.py @@ -21,18 +21,16 @@ 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 V1DiagnosticInterfaceResetDeviceIdPutRequest(BaseModel): """ V1DiagnosticInterfaceResetDeviceIdPutRequest """ # noqa: E501 - interface: Optional[StrictStr] = Field(default=None, description="interface name", json_schema_extra={"examples": ["GigabitEthernet0/2"]}) + interface: Optional[StrictStr] = Field(default=None, description="interface name") __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_otp_device_id_get_response.py b/graphiant_sdk/models/v1_diagnostic_otp_device_id_get_response.py index 546843b0..a2c278bf 100644 --- a/graphiant_sdk/models/v1_diagnostic_otp_device_id_get_response.py +++ b/graphiant_sdk/models/v1_diagnostic_otp_device_id_get_response.py @@ -21,18 +21,16 @@ 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 V1DiagnosticOtpDeviceIdGetResponse(BaseModel): """ V1DiagnosticOtpDeviceIdGetResponse """ # noqa: E501 - pass_code: Optional[StrictStr] = Field(default=None, description="six digit one-time passcode to access the device", alias="passCode", json_schema_extra={"examples": ["123456"]}) + pass_code: Optional[StrictStr] = Field(default=None, description="six digit one-time passcode to access the device", alias="passCode") __properties: ClassVar[List[str]] = ["passCode"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_packetcapture_pcap_id_get_response.py b/graphiant_sdk/models/v1_diagnostic_packetcapture_pcap_id_get_response.py index b5f50f88..6d24e832 100644 --- a/graphiant_sdk/models/v1_diagnostic_packetcapture_pcap_id_get_response.py +++ b/graphiant_sdk/models/v1_diagnostic_packetcapture_pcap_id_get_response.py @@ -22,22 +22,20 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticPacketcapturePcapIdGetResponse(BaseModel): """ V1DiagnosticPacketcapturePcapIdGetResponse """ # noqa: E501 - failure_reason: Optional[StrictStr] = Field(default=None, description="Error message if the packet capture generation/upload failed", alias="failureReason", json_schema_extra={"examples": ["failed to access the cloud"]}) - file_name: Optional[StrictStr] = Field(default=None, description="The PCap file name.", alias="fileName", json_schema_extra={"examples": ["12000.tar.zst.gpg"]}) - status: Optional[StrictStr] = Field(default=None, description="The status of the requested packet capture", json_schema_extra={"examples": ["Uploaded"]}) - upload_progress: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="upload progress in percentage", alias="uploadProgress", json_schema_extra={"examples": [60]}) - url: Optional[StrictStr] = Field(default=None, description="The URL to download this packet capture.", json_schema_extra={"examples": ["graphiant.com/pcaps/134"]}) + failure_reason: Optional[StrictStr] = Field(default=None, description="Error message if the packet capture generation/upload failed", alias="failureReason") + file_name: Optional[StrictStr] = Field(default=None, description="The PCap file name.", alias="fileName") + status: Optional[StrictStr] = Field(default=None, description="The status of the requested packet capture") + upload_progress: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="upload progress in percentage", alias="uploadProgress") + url: Optional[StrictStr] = Field(default=None, description="The URL to download this packet capture.") __properties: ClassVar[List[str]] = ["failureReason", "fileName", "status", "uploadProgress", "url"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_request.py b/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_request.py index fa13752a..1caefb5c 100644 --- a/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_request.py +++ b/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_request.py @@ -24,22 +24,20 @@ from graphiant_sdk.models.diagnostic_tools_target_type import DiagnosticToolsTargetType from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticPacketcaptureStartPostRequest(BaseModel): """ V1DiagnosticPacketcaptureStartPostRequest """ # noqa: E501 - device_id: StrictInt = Field(description="Unique identifier for a specific device (required)", alias="deviceId", json_schema_extra={"examples": [30000000555]}) - duration: Annotated[int, Field(strict=True, ge=0)] = Field(description="Packet capture duration. Accepted values are 30, 60, 180 (required)", json_schema_extra={"examples": [30]}) + device_id: StrictInt = Field(description="Unique identifier for a specific device (required)", alias="deviceId") + duration: Annotated[int, Field(strict=True, ge=0)] = Field(description="Packet capture duration. Accepted values are 30, 60, 180 (required)") filter: Optional[DiagnosticToolsPCapFilter] = None - max_packet_counter: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Packet capture limit.", alias="maxPacketCounter", json_schema_extra={"examples": [300]}) + max_packet_counter: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Packet capture limit.", alias="maxPacketCounter") target: DiagnosticToolsTargetType __properties: ClassVar[List[str]] = ["deviceId", "duration", "filter", "maxPacketCounter", "target"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_response.py b/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_response.py index 43474b2e..1ea3a7a2 100644 --- a/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_response.py +++ b/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_response.py @@ -21,18 +21,16 @@ 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 V1DiagnosticPacketcaptureStartPostResponse(BaseModel): """ V1DiagnosticPacketcaptureStartPostResponse """ # noqa: E501 - pcap_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific packet capture", alias="pcapId", json_schema_extra={"examples": [1000000]}) + pcap_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific packet capture", alias="pcapId") __properties: ClassVar[List[str]] = ["pcapId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_packetcapture_stop_post_request.py b/graphiant_sdk/models/v1_diagnostic_packetcapture_stop_post_request.py index 9958516d..349f9c72 100644 --- a/graphiant_sdk/models/v1_diagnostic_packetcapture_stop_post_request.py +++ b/graphiant_sdk/models/v1_diagnostic_packetcapture_stop_post_request.py @@ -21,18 +21,16 @@ 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 V1DiagnosticPacketcaptureStopPostRequest(BaseModel): """ V1DiagnosticPacketcaptureStopPostRequest """ # noqa: E501 - pcap_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific packet capture", alias="pcapId", json_schema_extra={"examples": [1000000]}) + pcap_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific packet capture", alias="pcapId") __properties: ClassVar[List[str]] = ["pcapId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_ping_post_request.py b/graphiant_sdk/models/v1_diagnostic_ping_post_request.py index fc960c77..c082f7d9 100644 --- a/graphiant_sdk/models/v1_diagnostic_ping_post_request.py +++ b/graphiant_sdk/models/v1_diagnostic_ping_post_request.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.diagnostic_tools_diagnostic_params import DiagnosticToolsDiagnosticParams from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticPingPostRequest(BaseModel): """ V1DiagnosticPingPostRequest """ # noqa: E501 - device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Valid Provisioned device ID (required)", alias="deviceId", json_schema_extra={"examples": [10000000]}) + device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Valid Provisioned device ID (required)", alias="deviceId") params: Optional[DiagnosticToolsDiagnosticParams] = None - token: Optional[StrictStr] = Field(default=None, description="Identifier which was received in initial response", json_schema_extra={"examples": ["example string"]}) - transport_type: StrictStr = Field(description="ICMP or TCP (required)", alias="transportType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + token: Optional[StrictStr] = Field(default=None, description="Identifier which was received in initial response") + transport_type: StrictStr = Field(description="ICMP or TCP (required)", alias="transportType") __properties: ClassVar[List[str]] = ["deviceId", "params", "token", "transportType"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_ping_post_response.py b/graphiant_sdk/models/v1_diagnostic_ping_post_response.py index fc0d3efc..6dc983e6 100644 --- a/graphiant_sdk/models/v1_diagnostic_ping_post_response.py +++ b/graphiant_sdk/models/v1_diagnostic_ping_post_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.diagnostic_tools_diagnostic_result import DiagnosticToolsDiagnosticResult from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticPingPostResponse(BaseModel): """ V1DiagnosticPingPostResponse """ # noqa: E501 result: Optional[DiagnosticToolsDiagnosticResult] = None - token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup (required)", json_schema_extra={"examples": ["example string"]}) + token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup (required)") __properties: ClassVar[List[str]] = ["result", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_reboot_device_id_put_request.py b/graphiant_sdk/models/v1_diagnostic_reboot_device_id_put_request.py index 479bda23..879cbf2f 100644 --- a/graphiant_sdk/models/v1_diagnostic_reboot_device_id_put_request.py +++ b/graphiant_sdk/models/v1_diagnostic_reboot_device_id_put_request.py @@ -21,18 +21,16 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticRebootDeviceIdPutRequest(BaseModel): """ V1DiagnosticRebootDeviceIdPutRequest """ # noqa: E501 - reason: StrictStr = Field(description="Reason for reboot (required)", json_schema_extra={"examples": ["User requested reboot"]}) + reason: StrictStr = Field(description="Reason for reboot (required)") __properties: ClassVar[List[str]] = ["reason"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_reset_ipsec_session_device_id_put_request.py b/graphiant_sdk/models/v1_diagnostic_reset_ipsec_session_device_id_put_request.py index 1429fab2..d9203bad 100644 --- a/graphiant_sdk/models/v1_diagnostic_reset_ipsec_session_device_id_put_request.py +++ b/graphiant_sdk/models/v1_diagnostic_reset_ipsec_session_device_id_put_request.py @@ -21,21 +21,19 @@ 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 V1DiagnosticResetIpsecSessionDeviceIdPutRequest(BaseModel): """ V1DiagnosticResetIpsecSessionDeviceIdPutRequest """ # noqa: E501 - all3_rd_party: Optional[StrictBool] = Field(default=None, description="All 3rd Party IPSec sessions", alias="all3RdParty", json_schema_extra={"examples": [True]}) - all_controllers: Optional[StrictBool] = Field(default=None, description="All Graphiant controllers IPSec sessions", alias="allControllers", json_schema_extra={"examples": [True]}) - all_e2_e: Optional[StrictBool] = Field(default=None, description="All Edge to Edge sessions", alias="allE2E", json_schema_extra={"examples": [True]}) + all3_rd_party: Optional[StrictBool] = Field(default=None, description="All 3rd Party IPSec sessions", alias="all3RdParty") + all_controllers: Optional[StrictBool] = Field(default=None, description="All Graphiant controllers IPSec sessions", alias="allControllers") + all_e2_e: Optional[StrictBool] = Field(default=None, description="All Edge to Edge sessions", alias="allE2E") vrf: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["all3RdParty", "allControllers", "allE2E", "vrf"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_speedtest_post_request.py b/graphiant_sdk/models/v1_diagnostic_speedtest_post_request.py index e7aa2553..e4fad1e8 100644 --- a/graphiant_sdk/models/v1_diagnostic_speedtest_post_request.py +++ b/graphiant_sdk/models/v1_diagnostic_speedtest_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.diagnostic_tools_speedtest_params import DiagnosticToolsSpeedtestParams from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticSpeedtestPostRequest(BaseModel): """ V1DiagnosticSpeedtestPostRequest """ # noqa: E501 - device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Unique identifier for a specific device (required)", alias="deviceId", json_schema_extra={"examples": [30000000555]}) + device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Unique identifier for a specific device (required)", alias="deviceId") params: Optional[DiagnosticToolsSpeedtestParams] = None __properties: ClassVar[List[str]] = ["deviceId", "params"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_speedtest_post_response.py b/graphiant_sdk/models/v1_diagnostic_speedtest_post_response.py index 01c7165f..2d74ebc1 100644 --- a/graphiant_sdk/models/v1_diagnostic_speedtest_post_response.py +++ b/graphiant_sdk/models/v1_diagnostic_speedtest_post_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.diagnostic_tools_speedtest_result import DiagnosticToolsSpeedtestResult from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticSpeedtestPostResponse(BaseModel): """ V1DiagnosticSpeedtestPostResponse """ # noqa: E501 result: Optional[DiagnosticToolsSpeedtestResult] = None - token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup (required)", json_schema_extra={"examples": ["example string"]}) + token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup (required)") __properties: ClassVar[List[str]] = ["result", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_speedtest_providers_get_response.py b/graphiant_sdk/models/v1_diagnostic_speedtest_providers_get_response.py index 6486db7b..b941b524 100644 --- a/graphiant_sdk/models/v1_diagnostic_speedtest_providers_get_response.py +++ b/graphiant_sdk/models/v1_diagnostic_speedtest_providers_get_response.py @@ -21,7 +21,6 @@ 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 V1DiagnosticSpeedtestProvidersGetResponse(BaseModel): """ @@ -31,8 +30,7 @@ class V1DiagnosticSpeedtestProvidersGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["provider"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_request.py b/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_request.py index 0c09cac6..959f81b6 100644 --- a/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_request.py +++ b/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_request.py @@ -22,19 +22,17 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticSpeedtestReportPutRequest(BaseModel): """ V1DiagnosticSpeedtestReportPutRequest """ # noqa: E501 - device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Unique identifier for a specific device (required)", alias="deviceId", json_schema_extra={"examples": [30000000555]}) - history_length: Annotated[int, Field(strict=True, ge=0)] = Field(description="Number of most recent speedtest records to return for a specific device (required)", alias="historyLength", json_schema_extra={"examples": [5]}) + device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Unique identifier for a specific device (required)", alias="deviceId") + history_length: Annotated[int, Field(strict=True, ge=0)] = Field(description="Number of most recent speedtest records to return for a specific device (required)", alias="historyLength") __properties: ClassVar[List[str]] = ["deviceId", "historyLength"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_response.py b/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_response.py index cd76ac62..60f86805 100644 --- a/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_response.py +++ b/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_response.py @@ -21,19 +21,17 @@ 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 V1DiagnosticSpeedtestReportPutResponse(BaseModel): """ V1DiagnosticSpeedtestReportPutResponse """ # noqa: E501 - report: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, description="The generated report", json_schema_extra={"examples": ["WzM3LDgwLDY4LDcwLDQ1LDQ5LDQ2LDUyLDEwLDM3LDIxMSwyMzUsMjMzLDIyNSwxMCw0OSwzMiw0OCwzMiwxMTEsOTgsMTA2LDEwLDYwLDYwLDQ3LDY3LDExNCwxMDEsOTcsMTE2LDExMSwxMTQsMzIsNDAsNjcsMTA0LDExNCwxMTEsMTA5LDEwNSwxMTcsMTA5LDQxLDEwLDQ3LDgwLDExNCwxMTEsMTAwLDExNyw5OSwxMDEsMTE0LDMyLDQwLDgzLDEwNywxMDUsOTcsNDcsODAsNjgsNzAsMzIsMTA5LDU3LDU2LDQxLDEwLDQ3LDY3LDExNCwxMDEsOTcsMTE2LDEwNSwxMTEsMTEwLDY4LDk3LDExNiwxMDEsMzIsNDAsNjgsNTgsNTAsNDgsNTAsNTAsNDgsNTQsNDgsNTcsNDgsNTQsNTIsNDksNTAsNTUsNDMsNDgsNDgsMzksNDgsNDgsMzksNDEsMTAsNDcsNzcsMTExLDEwMCw2OCw5NywxMTYsMTAxLDMyLDQwLDY4LDU4LDUwLDQ4LDUwLDUwLDQ4LDU0LDQ4LDU3LDQ4LDU0LDUyLDQ5LDUwLDU1LDQzLDQ4LDQ4LDM5LDQ4LDQ4XQ=="]}) - report_id: Optional[StrictInt] = Field(default=None, description="8 bytes (base32 encoded) identifier for the report", alias="reportId", json_schema_extra={"examples": [10]}) + report: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, description="The generated report") + report_id: Optional[StrictInt] = Field(default=None, description="8 bytes (base32 encoded) identifier for the report", alias="reportId") __properties: ClassVar[List[str]] = ["report", "reportId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_speedtest_servers_get_response.py b/graphiant_sdk/models/v1_diagnostic_speedtest_servers_get_response.py index b883c5e1..d6fa86bf 100644 --- a/graphiant_sdk/models/v1_diagnostic_speedtest_servers_get_response.py +++ b/graphiant_sdk/models/v1_diagnostic_speedtest_servers_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.diagnostic_tools_speedtest_server import DiagnosticToolsSpeedtestServer from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticSpeedtestServersGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1DiagnosticSpeedtestServersGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["server"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_traceroute_post_request.py b/graphiant_sdk/models/v1_diagnostic_traceroute_post_request.py index d61fa4f0..f11412a8 100644 --- a/graphiant_sdk/models/v1_diagnostic_traceroute_post_request.py +++ b/graphiant_sdk/models/v1_diagnostic_traceroute_post_request.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.diagnostic_tools_diagnostic_params import DiagnosticToolsDiagnosticParams from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticTraceroutePostRequest(BaseModel): """ V1DiagnosticTraceroutePostRequest """ # noqa: E501 - device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Valid Provisioned device ID (required)", alias="deviceId", json_schema_extra={"examples": [10000000]}) + device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Valid Provisioned device ID (required)", alias="deviceId") params: Optional[DiagnosticToolsDiagnosticParams] = None - token: Optional[StrictStr] = Field(default=None, description="Identifier which was received in initial response", json_schema_extra={"examples": ["example string"]}) - transport_type: StrictStr = Field(description="ICMP or TCP (required)", alias="transportType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + token: Optional[StrictStr] = Field(default=None, description="Identifier which was received in initial response") + transport_type: StrictStr = Field(description="ICMP or TCP (required)", alias="transportType") __properties: ClassVar[List[str]] = ["deviceId", "params", "token", "transportType"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_diagnostic_traceroute_post_response.py b/graphiant_sdk/models/v1_diagnostic_traceroute_post_response.py index 2c912e30..cdba2896 100644 --- a/graphiant_sdk/models/v1_diagnostic_traceroute_post_response.py +++ b/graphiant_sdk/models/v1_diagnostic_traceroute_post_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.diagnostic_tools_diagnostic_result import DiagnosticToolsDiagnosticResult from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1DiagnosticTraceroutePostResponse(BaseModel): """ V1DiagnosticTraceroutePostResponse """ # noqa: E501 result: Optional[DiagnosticToolsDiagnosticResult] = None - token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup (required)", json_schema_extra={"examples": ["example string"]}) + token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup (required)") __properties: ClassVar[List[str]] = ["result", "token"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_edges_hardware_assigned_get_response.py b/graphiant_sdk/models/v1_edges_hardware_assigned_get_response.py index 736aac8b..f8542018 100644 --- a/graphiant_sdk/models/v1_edges_hardware_assigned_get_response.py +++ b/graphiant_sdk/models/v1_edges_hardware_assigned_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.search_edge_summary import SearchEdgeSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EdgesHardwareAssignedGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1EdgesHardwareAssignedGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["edgesSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_edges_hardware_unassigned_get_response.py b/graphiant_sdk/models/v1_edges_hardware_unassigned_get_response.py index 97b41ced..f4a5530f 100644 --- a/graphiant_sdk/models/v1_edges_hardware_unassigned_get_response.py +++ b/graphiant_sdk/models/v1_edges_hardware_unassigned_get_response.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.onboarding_hardware_inventory import OnboardingHardwareInventory from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EdgesHardwareUnassignedGetResponse(BaseModel): """ V1EdgesHardwareUnassignedGetResponse """ # noqa: E501 inventory: Optional[List[OnboardingHardwareInventory]] = None - is_new_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="isNewCount", json_schema_extra={"examples": [123]}) + is_new_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="isNewCount") __properties: ClassVar[List[str]] = ["inventory", "isNewCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_edges_summary_get_response.py b/graphiant_sdk/models/v1_edges_summary_get_response.py index ecd11384..7c83922e 100644 --- a/graphiant_sdk/models/v1_edges_summary_get_response.py +++ b/graphiant_sdk/models/v1_edges_summary_get_response.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.search_edge_summary import SearchEdgeSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EdgesSummaryGetResponse(BaseModel): """ V1EdgesSummaryGetResponse """ # noqa: E501 edges_summary: Optional[List[SearchEdgeSummary]] = Field(default=None, alias="edgesSummary") - is_new_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="isNewCount", json_schema_extra={"examples": [123]}) + is_new_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="isNewCount") __properties: ClassVar[List[str]] = ["edgesSummary", "isNewCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_edges_summary_post_request.py b/graphiant_sdk/models/v1_edges_summary_post_request.py index cdd77c5e..13ee23cd 100644 --- a/graphiant_sdk/models/v1_edges_summary_post_request.py +++ b/graphiant_sdk/models/v1_edges_summary_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_edges_summary_post_request_filter import V1EdgesSummaryPostRequestFilter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EdgesSummaryPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1EdgesSummaryPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["filter"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_edges_summary_post_request_filter.py b/graphiant_sdk/models/v1_edges_summary_post_request_filter.py index 3cab979a..ead400ef 100644 --- a/graphiant_sdk/models/v1_edges_summary_post_request_filter.py +++ b/graphiant_sdk/models/v1_edges_summary_post_request_filter.py @@ -21,7 +21,6 @@ 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 V1EdgesSummaryPostRequestFilter(BaseModel): """ @@ -33,8 +32,7 @@ class V1EdgesSummaryPostRequestFilter(BaseModel): __properties: ClassVar[List[str]] = ["deviceIds", "roles", "statuses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_edges_summary_post_response.py b/graphiant_sdk/models/v1_edges_summary_post_response.py index 7e975d4a..8e5f069e 100644 --- a/graphiant_sdk/models/v1_edges_summary_post_response.py +++ b/graphiant_sdk/models/v1_edges_summary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.search_edge_summary import SearchEdgeSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EdgesSummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1EdgesSummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["edgesSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_enterprise_allocation_get_response.py b/graphiant_sdk/models/v1_enterprise_allocation_get_response.py index 341d4624..ede7eb85 100644 --- a/graphiant_sdk/models/v1_enterprise_allocation_get_response.py +++ b/graphiant_sdk/models/v1_enterprise_allocation_get_response.py @@ -22,9 +22,9 @@ from graphiant_sdk.models.mana_v2_allocation_conversion_holder import ManaV2AllocationConversionHolder from graphiant_sdk.models.mana_v2_bandwidth_consumption_summary import ManaV2BandwidthConsumptionSummary from graphiant_sdk.models.mana_v2_regional_allocation import ManaV2RegionalAllocation +from graphiant_sdk.models.mana_v2_zero_trust_consumption_summary import ManaV2ZeroTrustConsumptionSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EnterpriseAllocationGetResponse(BaseModel): """ @@ -33,11 +33,11 @@ class V1EnterpriseAllocationGetResponse(BaseModel): consumption_summary: Optional[ManaV2BandwidthConsumptionSummary] = Field(default=None, alias="consumptionSummary") conversion_holders: Optional[Dict[str, ManaV2AllocationConversionHolder]] = Field(default=None, alias="conversionHolders") regional_allocations: Optional[List[ManaV2RegionalAllocation]] = Field(default=None, alias="regionalAllocations") - __properties: ClassVar[List[str]] = ["consumptionSummary", "conversionHolders", "regionalAllocations"] + zero_trust_summary: Optional[ManaV2ZeroTrustConsumptionSummary] = Field(default=None, alias="zeroTrustSummary") + __properties: ClassVar[List[str]] = ["consumptionSummary", "conversionHolders", "regionalAllocations", "zeroTrustSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -91,6 +92,9 @@ def to_dict(self) -> Dict[str, Any]: if _item_regional_allocations: _items.append(_item_regional_allocations.to_dict()) _dict['regionalAllocations'] = _items + # override the default output from pydantic by calling `to_dict()` of zero_trust_summary + if self.zero_trust_summary: + _dict['zeroTrustSummary'] = self.zero_trust_summary.to_dict() return _dict @classmethod @@ -110,7 +114,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: ) if obj.get("conversionHolders") is not None else None, - "regionalAllocations": [ManaV2RegionalAllocation.from_dict(_item) for _item in obj["regionalAllocations"]] if obj.get("regionalAllocations") is not None else None + "regionalAllocations": [ManaV2RegionalAllocation.from_dict(_item) for _item in obj["regionalAllocations"]] if obj.get("regionalAllocations") is not None else None, + "zeroTrustSummary": ManaV2ZeroTrustConsumptionSummary.from_dict(obj["zeroTrustSummary"]) if obj.get("zeroTrustSummary") is not None else None }) return _obj diff --git a/graphiant_sdk/models/v1_enterprise_configuration_get_response.py b/graphiant_sdk/models/v1_enterprise_configuration_get_response.py index ae05eb3a..1cb1bebc 100644 --- a/graphiant_sdk/models/v1_enterprise_configuration_get_response.py +++ b/graphiant_sdk/models/v1_enterprise_configuration_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_enterprise_configuration import ManaV2EnterpriseConfiguration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EnterpriseConfigurationGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1EnterpriseConfigurationGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["configuration"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_enterprise_configuration_put_request.py b/graphiant_sdk/models/v1_enterprise_configuration_put_request.py index 7eb5ce66..13084455 100644 --- a/graphiant_sdk/models/v1_enterprise_configuration_put_request.py +++ b/graphiant_sdk/models/v1_enterprise_configuration_put_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_enterprise_configuration import ManaV2EnterpriseConfiguration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EnterpriseConfigurationPutRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1EnterpriseConfigurationPutRequest(BaseModel): __properties: ClassVar[List[str]] = ["configuration"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_enterprise_contract_put_request.py b/graphiant_sdk/models/v1_enterprise_contract_put_request.py index c49f5a45..1dcd02eb 100644 --- a/graphiant_sdk/models/v1_enterprise_contract_put_request.py +++ b/graphiant_sdk/models/v1_enterprise_contract_put_request.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_time_period import ManaV2TimePeriod from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EnterpriseContractPutRequest(BaseModel): """ V1EnterpriseContractPutRequest """ # noqa: E501 - contracted_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount of credits billed for a contract term or per month when no expiration is provided. For an MSP tenant, this is the total credits in the MSP billing pool (from which credits are allocated to managed enterprises).", alias="contractedCredits", json_schema_extra={"examples": [12.34]}) + contracted_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Amount of credits billed for a contract term or per month when no expiration is provided. For an MSP tenant, this is the total credits in the MSP billing pool (from which credits are allocated to managed enterprises).", alias="contractedCredits") expiration_date: Optional[ManaV2TimePeriod] = Field(default=None, alias="expirationDate") __properties: ClassVar[List[str]] = ["contractedCredits", "expirationDate"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_enterprise_snapshot_get_response.py b/graphiant_sdk/models/v1_enterprise_snapshot_get_response.py index d26623df..54daa5f0 100644 --- a/graphiant_sdk/models/v1_enterprise_snapshot_get_response.py +++ b/graphiant_sdk/models/v1_enterprise_snapshot_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2device_snapshot_row import ManaV2deviceSnapshotRow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EnterpriseSnapshotGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1EnterpriseSnapshotGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["deviceSnapshotRecords", "deviceSnapshotMap"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_enterprises_enterprise_id_admin_get_response.py b/graphiant_sdk/models/v1_enterprises_enterprise_id_admin_get_response.py index 23961365..0bcb8210 100644 --- a/graphiant_sdk/models/v1_enterprises_enterprise_id_admin_get_response.py +++ b/graphiant_sdk/models/v1_enterprises_enterprise_id_admin_get_response.py @@ -21,18 +21,16 @@ 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 V1EnterprisesEnterpriseIdAdminGetResponse(BaseModel): """ V1EnterprisesEnterpriseIdAdminGetResponse """ # noqa: E501 - admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail", json_schema_extra={"examples": ["example string"]}) + admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail") __properties: ClassVar[List[str]] = ["adminEmail"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_enterprises_enterprise_id_device_status_get_response.py b/graphiant_sdk/models/v1_enterprises_enterprise_id_device_status_get_response.py index 72a2879c..c2c18ebf 100644 --- a/graphiant_sdk/models/v1_enterprises_enterprise_id_device_status_get_response.py +++ b/graphiant_sdk/models/v1_enterprises_enterprise_id_device_status_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.pokedex_device_mapping_info import PokedexDeviceMappingInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EnterprisesEnterpriseIdDeviceStatusGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1EnterprisesEnterpriseIdDeviceStatusGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["mappings"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_enterprises_get_response.py b/graphiant_sdk/models/v1_enterprises_get_response.py index 27931612..c83d3026 100644 --- a/graphiant_sdk/models/v1_enterprises_get_response.py +++ b/graphiant_sdk/models/v1_enterprises_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.iam_enterprise import IamEnterprise from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EnterprisesGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1EnterprisesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["enterprises"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_enterprises_managed_get_response.py b/graphiant_sdk/models/v1_enterprises_managed_get_response.py index 3073e003..3fc710dd 100644 --- a/graphiant_sdk/models/v1_enterprises_managed_get_response.py +++ b/graphiant_sdk/models/v1_enterprises_managed_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.iam_enterprise import IamEnterprise from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EnterprisesManagedGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1EnterprisesManagedGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["counts", "enterprises"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_enterprises_patch_request.py b/graphiant_sdk/models/v1_enterprises_patch_request.py index 2dd97bf3..bdf6587e 100644 --- a/graphiant_sdk/models/v1_enterprises_patch_request.py +++ b/graphiant_sdk/models/v1_enterprises_patch_request.py @@ -23,31 +23,29 @@ from graphiant_sdk.models.v1_enterprises_patch_request_token_expiry import V1EnterprisesPatchRequestTokenExpiry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EnterprisesPatchRequest(BaseModel): """ V1EnterprisesPatchRequest """ # noqa: E501 - admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail", json_schema_extra={"examples": ["example string"]}) - cloud_provider: Optional[StrictStr] = Field(default=None, alias="cloudProvider", json_schema_extra={"examples": ["ENUM_VALUE"]}) - company_name: Optional[StrictStr] = Field(default=None, alias="companyName", json_schema_extra={"examples": ["example string"]}) - credit_limit: Optional[StrictInt] = Field(default=None, alias="creditLimit", json_schema_extra={"examples": [123]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail") + cloud_provider: Optional[StrictStr] = Field(default=None, alias="cloudProvider") + company_name: Optional[StrictStr] = Field(default=None, alias="companyName") + credit_limit: Optional[StrictInt] = Field(default=None, alias="creditLimit") + description: Optional[StrictStr] = None enterprise_contract: Optional[CommonBillingContract] = Field(default=None, alias="enterpriseContract") - enterprise_id: StrictInt = Field(description=" (required)", alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - impersonation_enabled: Optional[StrictBool] = Field(default=None, alias="impersonationEnabled", json_schema_extra={"examples": [True]}) - logo: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - marketplace_id: Optional[StrictStr] = Field(default=None, alias="marketplaceId", json_schema_extra={"examples": ["example string"]}) - portal_banner: Optional[StrictStr] = Field(default=None, alias="portalBanner", json_schema_extra={"examples": ["example string"]}) - proxy_tenant_id: Optional[StrictInt] = Field(default=None, alias="proxyTenantId", json_schema_extra={"examples": [1234567891011]}) - small_logo: Optional[StrictStr] = Field(default=None, alias="smallLogo", json_schema_extra={"examples": ["example string"]}) + enterprise_id: StrictInt = Field(description=" (required)", alias="enterpriseId") + impersonation_enabled: Optional[StrictBool] = Field(default=None, alias="impersonationEnabled") + logo: Optional[StrictStr] = None + marketplace_id: Optional[StrictStr] = Field(default=None, alias="marketplaceId") + portal_banner: Optional[StrictStr] = Field(default=None, alias="portalBanner") + proxy_tenant_id: Optional[StrictInt] = Field(default=None, alias="proxyTenantId") + small_logo: Optional[StrictStr] = Field(default=None, alias="smallLogo") token_expiry: Optional[V1EnterprisesPatchRequestTokenExpiry] = Field(default=None, alias="tokenExpiry") __properties: ClassVar[List[str]] = ["adminEmail", "cloudProvider", "companyName", "creditLimit", "description", "enterpriseContract", "enterpriseId", "impersonationEnabled", "logo", "marketplaceId", "portalBanner", "proxyTenantId", "smallLogo", "tokenExpiry"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,7 +57,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_enterprises_patch_request_token_expiry.py b/graphiant_sdk/models/v1_enterprises_patch_request_token_expiry.py index 72df357e..993caa6b 100644 --- a/graphiant_sdk/models/v1_enterprises_patch_request_token_expiry.py +++ b/graphiant_sdk/models/v1_enterprises_patch_request_token_expiry.py @@ -21,19 +21,17 @@ 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 V1EnterprisesPatchRequestTokenExpiry(BaseModel): """ V1EnterprisesPatchRequestTokenExpiry """ # noqa: E501 - length: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) - time_unit: Optional[StrictStr] = Field(default=None, alias="timeUnit", json_schema_extra={"examples": ["ENUM_VALUE"]}) + length: Optional[StrictInt] = None + time_unit: Optional[StrictStr] = Field(default=None, alias="timeUnit") __properties: ClassVar[List[str]] = ["length", "timeUnit"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_enterprises_put_request.py b/graphiant_sdk/models/v1_enterprises_put_request.py index 209753a7..af6836f2 100644 --- a/graphiant_sdk/models/v1_enterprises_put_request.py +++ b/graphiant_sdk/models/v1_enterprises_put_request.py @@ -22,30 +22,28 @@ from graphiant_sdk.models.common_billing_contract import CommonBillingContract from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1EnterprisesPutRequest(BaseModel): """ V1EnterprisesPutRequest """ # noqa: E501 - account_type: StrictStr = Field(description=" (required)", alias="accountType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail", json_schema_extra={"examples": ["example string"]}) - admin_first_name: Optional[StrictStr] = Field(default=None, alias="adminFirstName", json_schema_extra={"examples": ["example string"]}) - admin_last_name: Optional[StrictStr] = Field(default=None, alias="adminLastName", json_schema_extra={"examples": ["example string"]}) - admin_time_zone: Optional[StrictStr] = Field(default=None, alias="adminTimeZone", json_schema_extra={"examples": ["example string"]}) - cloud_provider: Optional[StrictStr] = Field(default=None, alias="cloudProvider", json_schema_extra={"examples": ["ENUM_VALUE"]}) - company_name: StrictStr = Field(description=" (required)", alias="companyName", json_schema_extra={"examples": ["example string"]}) - credit_limit: Optional[StrictInt] = Field(default=None, alias="creditLimit", json_schema_extra={"examples": [123]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + account_type: StrictStr = Field(description=" (required)", alias="accountType") + admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail") + admin_first_name: Optional[StrictStr] = Field(default=None, alias="adminFirstName") + admin_last_name: Optional[StrictStr] = Field(default=None, alias="adminLastName") + admin_time_zone: Optional[StrictStr] = Field(default=None, alias="adminTimeZone") + cloud_provider: Optional[StrictStr] = Field(default=None, alias="cloudProvider") + company_name: StrictStr = Field(description=" (required)", alias="companyName") + credit_limit: Optional[StrictInt] = Field(default=None, alias="creditLimit") + description: Optional[StrictStr] = None enterprise_contract: CommonBillingContract = Field(alias="enterpriseContract") - logo: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - marketplace_id: Optional[StrictStr] = Field(default=None, alias="marketplaceId", json_schema_extra={"examples": ["example string"]}) - small_logo: Optional[StrictStr] = Field(default=None, alias="smallLogo", json_schema_extra={"examples": ["example string"]}) + logo: Optional[StrictStr] = None + marketplace_id: Optional[StrictStr] = Field(default=None, alias="marketplaceId") + small_logo: Optional[StrictStr] = Field(default=None, alias="smallLogo") __properties: ClassVar[List[str]] = ["accountType", "adminEmail", "adminFirstName", "adminLastName", "adminTimeZone", "cloudProvider", "companyName", "creditLimit", "description", "enterpriseContract", "logo", "marketplaceId", "smallLogo"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -57,7 +55,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_consumers_customer_id_get_response.py b/graphiant_sdk/models/v1_extranet_b2b_consumers_customer_id_get_response.py new file mode 100644 index 00000000..8ba348ae --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_consumers_customer_id_get_response.py @@ -0,0 +1,136 @@ +# 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.mana_v2_b2b_extranet_match_consumer_details import ManaV2B2bExtranetMatchConsumerDetails +from graphiant_sdk.models.mana_v2_extranet_service_consumer_policy import ManaV2ExtranetServiceConsumerPolicy +from graphiant_sdk.models.mana_v2_global_object_service_summaries import ManaV2GlobalObjectServiceSummaries +from graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config import ManaV2GuestConsumerSiteToSiteVpnConfig +from graphiant_sdk.models.v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config import V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bConsumersCustomerIdGetResponse(BaseModel): + """ + V1ExtranetB2bConsumersCustomerIdGetResponse + """ # noqa: E501 + global_object_device_summaries: Optional[Dict[str, ManaV2GlobalObjectServiceSummaries]] = Field(default=None, alias="globalObjectDeviceSummaries") + id: Optional[StrictInt] = None + ipsec_tunnel_config: Optional[List[V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig]] = Field(default=None, alias="ipsecTunnelConfig") + match_details: Optional[ManaV2B2bExtranetMatchConsumerDetails] = Field(default=None, alias="matchDetails") + match_id: Optional[StrictInt] = Field(default=None, alias="matchId") + peer_type: Optional[StrictStr] = Field(default=None, alias="peerType") + policy: Optional[ManaV2ExtranetServiceConsumerPolicy] = None + site_to_site_vpn: Optional[ManaV2GuestConsumerSiteToSiteVpnConfig] = Field(default=None, alias="siteToSiteVpn") + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["globalObjectDeviceSummaries", "id", "ipsecTunnelConfig", "matchDetails", "matchId", "peerType", "policy", "siteToSiteVpn", "status"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersCustomerIdGetResponse 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 value in global_object_device_summaries (dict) + _field_dict = {} + if self.global_object_device_summaries: + for _key_global_object_device_summaries in self.global_object_device_summaries: + if self.global_object_device_summaries[_key_global_object_device_summaries]: + _field_dict[_key_global_object_device_summaries] = self.global_object_device_summaries[_key_global_object_device_summaries].to_dict() + _dict['globalObjectDeviceSummaries'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each item in ipsec_tunnel_config (list) + _items = [] + if self.ipsec_tunnel_config: + for _item_ipsec_tunnel_config in self.ipsec_tunnel_config: + if _item_ipsec_tunnel_config: + _items.append(_item_ipsec_tunnel_config.to_dict()) + _dict['ipsecTunnelConfig'] = _items + # override the default output from pydantic by calling `to_dict()` of match_details + if self.match_details: + _dict['matchDetails'] = self.match_details.to_dict() + # override the default output from pydantic by calling `to_dict()` of policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + # override the default output from pydantic by calling `to_dict()` of site_to_site_vpn + if self.site_to_site_vpn: + _dict['siteToSiteVpn'] = self.site_to_site_vpn.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersCustomerIdGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "globalObjectDeviceSummaries": dict( + (_k, ManaV2GlobalObjectServiceSummaries.from_dict(_v)) + for _k, _v in obj["globalObjectDeviceSummaries"].items() + ) + if obj.get("globalObjectDeviceSummaries") is not None + else None, + "id": obj.get("id"), + "ipsecTunnelConfig": [V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig.from_dict(_item) for _item in obj["ipsecTunnelConfig"]] if obj.get("ipsecTunnelConfig") is not None else None, + "matchDetails": ManaV2B2bExtranetMatchConsumerDetails.from_dict(obj["matchDetails"]) if obj.get("matchDetails") is not None else None, + "matchId": obj.get("matchId"), + "peerType": obj.get("peerType"), + "policy": ManaV2ExtranetServiceConsumerPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None, + "siteToSiteVpn": ManaV2GuestConsumerSiteToSiteVpnConfig.from_dict(obj["siteToSiteVpn"]) if obj.get("siteToSiteVpn") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config.py b/graphiant_sdk/models/v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config.py new file mode 100644 index 00000000..4b1e50c4 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config.py @@ -0,0 +1,150 @@ +# 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 typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig(BaseModel): + """ + V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig + """ # noqa: E501 + bgp_graphiant_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpGraphiantAsn") + bgp_local_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpLocalAsn") + bgp_neighbor_hold_time: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpNeighborHoldTime") + bgp_neighbor_ipv4: Optional[StrictStr] = Field(default=None, alias="bgpNeighborIpv4") + bgp_neighbor_ipv6: Optional[StrictStr] = Field(default=None, alias="bgpNeighborIpv6") + dpd_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdInterval") + dpd_retries: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdRetries") + graphiant_destination_ip: Optional[StrictStr] = Field(default=None, alias="graphiantDestinationIp") + graphiant_ike_id: Optional[StrictStr] = Field(default=None, alias="graphiantIkeId") + graphiant_outer_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="graphiantOuterTunnelIp") + graphiant_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="graphiantTunnelIp") + graphiant_tunnel_ipv6: Optional[StrictStr] = Field(default=None, alias="graphiantTunnelIpv6") + ike_authentication_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeAuthenticationAlgorithm") + ike_authentication_method: Optional[StrictStr] = Field(default=None, alias="ikeAuthenticationMethod") + ike_dh_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeDhAlgorithm") + ike_encryption_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeEncryptionAlgorithm") + ike_lifetime: Optional[StrictStr] = Field(default=None, alias="ikeLifetime") + ike_preshared_key: Optional[StrictStr] = Field(default=None, alias="ikePresharedKey") + ike_version: Optional[StrictInt] = Field(default=None, alias="ikeVersion") + ipsec_authentication_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecAuthenticationAlgorithm") + ipsec_encryption_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecEncryptionAlgorithm") + ipsec_extended_sequence_number: Optional[StrictBool] = Field(default=None, alias="ipsecExtendedSequenceNumber") + ipsec_lifetime: Optional[StrictStr] = Field(default=None, alias="ipsecLifetime") + ipsec_mode: Optional[StrictStr] = Field(default=None, alias="ipsecMode") + ipsec_pfs_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecPfsAlgorithm") + ipsec_protocol: Optional[StrictStr] = Field(default=None, alias="ipsecProtocol") + local_ike_id: Optional[StrictStr] = Field(default=None, alias="localIkeId") + local_outer_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="localOuterTunnelIp") + local_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="localTunnelIp") + local_tunnel_ipv6: Optional[StrictStr] = Field(default=None, alias="localTunnelIpv6") + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + tunnel_mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tunnelMtu") + __properties: ClassVar[List[str]] = ["bgpGraphiantAsn", "bgpLocalAsn", "bgpNeighborHoldTime", "bgpNeighborIpv4", "bgpNeighborIpv6", "dpdInterval", "dpdRetries", "graphiantDestinationIp", "graphiantIkeId", "graphiantOuterTunnelIp", "graphiantTunnelIp", "graphiantTunnelIpv6", "ikeAuthenticationAlgorithm", "ikeAuthenticationMethod", "ikeDhAlgorithm", "ikeEncryptionAlgorithm", "ikeLifetime", "ikePresharedKey", "ikeVersion", "ipsecAuthenticationAlgorithm", "ipsecEncryptionAlgorithm", "ipsecExtendedSequenceNumber", "ipsecLifetime", "ipsecMode", "ipsecPfsAlgorithm", "ipsecProtocol", "localIkeId", "localOuterTunnelIp", "localTunnelIp", "localTunnelIpv6", "tcpMss", "tunnelMtu"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig 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 V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bgpGraphiantAsn": obj.get("bgpGraphiantAsn"), + "bgpLocalAsn": obj.get("bgpLocalAsn"), + "bgpNeighborHoldTime": obj.get("bgpNeighborHoldTime"), + "bgpNeighborIpv4": obj.get("bgpNeighborIpv4"), + "bgpNeighborIpv6": obj.get("bgpNeighborIpv6"), + "dpdInterval": obj.get("dpdInterval"), + "dpdRetries": obj.get("dpdRetries"), + "graphiantDestinationIp": obj.get("graphiantDestinationIp"), + "graphiantIkeId": obj.get("graphiantIkeId"), + "graphiantOuterTunnelIp": obj.get("graphiantOuterTunnelIp"), + "graphiantTunnelIp": obj.get("graphiantTunnelIp"), + "graphiantTunnelIpv6": obj.get("graphiantTunnelIpv6"), + "ikeAuthenticationAlgorithm": obj.get("ikeAuthenticationAlgorithm"), + "ikeAuthenticationMethod": obj.get("ikeAuthenticationMethod"), + "ikeDhAlgorithm": obj.get("ikeDhAlgorithm"), + "ikeEncryptionAlgorithm": obj.get("ikeEncryptionAlgorithm"), + "ikeLifetime": obj.get("ikeLifetime"), + "ikePresharedKey": obj.get("ikePresharedKey"), + "ikeVersion": obj.get("ikeVersion"), + "ipsecAuthenticationAlgorithm": obj.get("ipsecAuthenticationAlgorithm"), + "ipsecEncryptionAlgorithm": obj.get("ipsecEncryptionAlgorithm"), + "ipsecExtendedSequenceNumber": obj.get("ipsecExtendedSequenceNumber"), + "ipsecLifetime": obj.get("ipsecLifetime"), + "ipsecMode": obj.get("ipsecMode"), + "ipsecPfsAlgorithm": obj.get("ipsecPfsAlgorithm"), + "ipsecProtocol": obj.get("ipsecProtocol"), + "localIkeId": obj.get("localIkeId"), + "localOuterTunnelIp": obj.get("localOuterTunnelIp"), + "localTunnelIp": obj.get("localTunnelIp"), + "localTunnelIpv6": obj.get("localTunnelIpv6"), + "tcpMss": obj.get("tcpMss"), + "tunnelMtu": obj.get("tunnelMtu") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_consumers_id_device_status_get_response.py b/graphiant_sdk/models/v1_extranet_b2b_consumers_id_device_status_get_response.py new file mode 100644 index 00000000..b375afef --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_consumers_id_device_status_get_response.py @@ -0,0 +1,97 @@ +# 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 graphiant_sdk.models.mana_v2_b2b_extranet_status_summary import ManaV2B2bExtranetStatusSummary +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bConsumersIdDeviceStatusGetResponse(BaseModel): + """ + V1ExtranetB2bConsumersIdDeviceStatusGetResponse + """ # noqa: E501 + service_status: Optional[StrictStr] = Field(default=None, alias="serviceStatus") + summary: Optional[List[ManaV2B2bExtranetStatusSummary]] = None + __properties: ClassVar[List[str]] = ["serviceStatus", "summary"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersIdDeviceStatusGetResponse 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 summary (list) + _items = [] + if self.summary: + for _item_summary in self.summary: + if _item_summary: + _items.append(_item_summary.to_dict()) + _dict['summary'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersIdDeviceStatusGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "serviceStatus": obj.get("serviceStatus"), + "summary": [ManaV2B2bExtranetStatusSummary.from_dict(_item) for _item in obj["summary"]] if obj.get("summary") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_consumers_id_prefixes_put_request.py b/graphiant_sdk/models/v1_extranet_b2b_consumers_id_prefixes_put_request.py new file mode 100644 index 00000000..19139b72 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_consumers_id_prefixes_put_request.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_nat_translation_mode import ManaV2ExtranetNatTranslationMode +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bConsumersIdPrefixesPutRequest(BaseModel): + """ + V1ExtranetB2bConsumersIdPrefixesPutRequest + """ # noqa: E501 + nat_translation_mode: Optional[ManaV2ExtranetNatTranslationMode] = Field(default=None, alias="natTranslationMode") + __properties: ClassVar[List[str]] = ["natTranslationMode"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersIdPrefixesPutRequest 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 nat_translation_mode + if self.nat_translation_mode: + _dict['natTranslationMode'] = self.nat_translation_mode.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersIdPrefixesPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "natTranslationMode": ManaV2ExtranetNatTranslationMode.from_dict(obj["natTranslationMode"]) if obj.get("natTranslationMode") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_consumers_id_prefixes_put_response.py b/graphiant_sdk/models/v1_extranet_b2b_consumers_id_prefixes_put_response.py new file mode 100644 index 00000000..fb8973a3 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_consumers_id_prefixes_put_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 + + +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 + +class V1ExtranetB2bConsumersIdPrefixesPutResponse(BaseModel): + """ + V1ExtranetB2bConsumersIdPrefixesPutResponse + """ # noqa: E501 + consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId") + __properties: ClassVar[List[str]] = ["consumerActivityId"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersIdPrefixesPutResponse 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 V1ExtranetB2bConsumersIdPrefixesPutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerActivityId": obj.get("consumerActivityId") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_consumers_id_put_request.py b/graphiant_sdk/models/v1_extranet_b2b_consumers_id_put_request.py new file mode 100644 index 00000000..4e4b33c2 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_consumers_id_put_request.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_consumer_policy import ManaV2ExtranetServiceConsumerPolicy +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bConsumersIdPutRequest(BaseModel): + """ + V1ExtranetB2bConsumersIdPutRequest + """ # noqa: E501 + policy: Optional[ManaV2ExtranetServiceConsumerPolicy] = None + __properties: ClassVar[List[str]] = ["policy"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersIdPutRequest 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersIdPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": ManaV2ExtranetServiceConsumerPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_consumers_id_put_response.py b/graphiant_sdk/models/v1_extranet_b2b_consumers_id_put_response.py new file mode 100644 index 00000000..ae023013 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_consumers_id_put_response.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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_consumer_policy import ManaV2ExtranetServiceConsumerPolicy +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bConsumersIdPutResponse(BaseModel): + """ + V1ExtranetB2bConsumersIdPutResponse + """ # noqa: E501 + id: Optional[StrictInt] = None + policy: Optional[ManaV2ExtranetServiceConsumerPolicy] = None + __properties: ClassVar[List[str]] = ["id", "policy"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersIdPutResponse 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bConsumersIdPutResponse 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"), + "policy": ManaV2ExtranetServiceConsumerPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_customers_id_delete_response.py b/graphiant_sdk/models/v1_extranet_b2b_customers_id_delete_response.py new file mode 100644 index 00000000..dcab09dd --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_customers_id_delete_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 + + +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 + +class V1ExtranetB2bCustomersIdDeleteResponse(BaseModel): + """ + V1ExtranetB2bCustomersIdDeleteResponse + """ # noqa: E501 + activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") + consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId") + __properties: ClassVar[List[str]] = ["activityId", "consumerActivityId"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersIdDeleteResponse 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 V1ExtranetB2bCustomersIdDeleteResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "activityId": obj.get("activityId"), + "consumerActivityId": obj.get("consumerActivityId") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_customers_id_details_get_response.py b/graphiant_sdk/models/v1_extranet_b2b_customers_id_details_get_response.py new file mode 100644 index 00000000..7d7d66b3 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_customers_id_details_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, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bCustomersIdDetailsGetResponse(BaseModel): + """ + V1ExtranetB2bCustomersIdDetailsGetResponse + """ # noqa: E501 + admin_emails: Optional[List[StrictStr]] = Field(default=None, alias="adminEmails") + name: Optional[StrictStr] = None + num_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSites") + status: Optional[StrictStr] = None + type: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["adminEmails", "name", "numSites", "status", "type"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersIdDetailsGetResponse 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 V1ExtranetB2bCustomersIdDetailsGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adminEmails": obj.get("adminEmails"), + "name": obj.get("name"), + "numSites": obj.get("numSites"), + "status": obj.get("status"), + "type": obj.get("type") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_customers_id_matches_summary_get_response.py b/graphiant_sdk/models/v1_extranet_b2b_customers_id_matches_summary_get_response.py new file mode 100644 index 00000000..58680e91 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_customers_id_matches_summary_get_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_customer_match_summary import ManaV2ExtranetServiceCustomerMatchSummary +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bCustomersIdMatchesSummaryGetResponse(BaseModel): + """ + V1ExtranetB2bCustomersIdMatchesSummaryGetResponse + """ # noqa: E501 + matches: Optional[List[ManaV2ExtranetServiceCustomerMatchSummary]] = None + __properties: ClassVar[List[str]] = ["matches"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersIdMatchesSummaryGetResponse 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 matches (list) + _items = [] + if self.matches: + for _item_matches in self.matches: + if _item_matches: + _items.append(_item_matches.to_dict()) + _dict['matches'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersIdMatchesSummaryGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "matches": [ManaV2ExtranetServiceCustomerMatchSummary.from_dict(_item) for _item in obj["matches"]] if obj.get("matches") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_customers_id_put_request.py b/graphiant_sdk/models/v1_extranet_b2b_customers_id_put_request.py new file mode 100644 index 00000000..c4d92d1b --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_customers_id_put_request.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_customer_invite import ManaV2ExtranetServiceCustomerInvite +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bCustomersIdPutRequest(BaseModel): + """ + V1ExtranetB2bCustomersIdPutRequest + """ # noqa: E501 + invite: Optional[ManaV2ExtranetServiceCustomerInvite] = None + __properties: ClassVar[List[str]] = ["invite"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersIdPutRequest 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 invite + if self.invite: + _dict['invite'] = self.invite.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersIdPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "invite": ManaV2ExtranetServiceCustomerInvite.from_dict(obj["invite"]) if obj.get("invite") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_customers_id_put_response.py b/graphiant_sdk/models/v1_extranet_b2b_customers_id_put_response.py new file mode 100644 index 00000000..1773bde5 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_customers_id_put_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_customer_invite import ManaV2ExtranetServiceCustomerInvite +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bCustomersIdPutResponse(BaseModel): + """ + V1ExtranetB2bCustomersIdPutResponse + """ # noqa: E501 + invite: Optional[ManaV2ExtranetServiceCustomerInvite] = None + __properties: ClassVar[List[str]] = ["invite"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersIdPutResponse 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 invite + if self.invite: + _dict['invite'] = self.invite.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersIdPutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "invite": ManaV2ExtranetServiceCustomerInvite.from_dict(obj["invite"]) if obj.get("invite") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_customers_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_customers_post_request.py new file mode 100644 index 00000000..83fde499 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_customers_post_request.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 +from graphiant_sdk.models.mana_v2_extranet_service_customer_invite import ManaV2ExtranetServiceCustomerInvite +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bCustomersPostRequest(BaseModel): + """ + V1ExtranetB2bCustomersPostRequest + """ # noqa: E501 + invite: ManaV2ExtranetServiceCustomerInvite + name: StrictStr = Field(description="Partner display name (required)") + type: StrictStr = Field(description="Graphiant peer vs guest (non-Graphiant) partner (required)") + __properties: ClassVar[List[str]] = ["invite", "name", "type"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersPostRequest 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 invite + if self.invite: + _dict['invite'] = self.invite.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "invite": ManaV2ExtranetServiceCustomerInvite.from_dict(obj["invite"]) if obj.get("invite") is not None else None, + "name": obj.get("name"), + "type": obj.get("type") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_customers_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_customers_post_response.py new file mode 100644 index 00000000..7a536a9c --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_customers_post_response.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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_customer_invite import ManaV2ExtranetServiceCustomerInvite +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bCustomersPostResponse(BaseModel): + """ + V1ExtranetB2bCustomersPostResponse + """ # noqa: E501 + id: Optional[StrictInt] = None + invite: Optional[ManaV2ExtranetServiceCustomerInvite] = None + __properties: ClassVar[List[str]] = ["id", "invite"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersPostResponse 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 invite + if self.invite: + _dict['invite'] = self.invite.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersPostResponse 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"), + "invite": ManaV2ExtranetServiceCustomerInvite.from_dict(obj["invite"]) if obj.get("invite") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_customers_summary_get_response.py b/graphiant_sdk/models/v1_extranet_b2b_customers_summary_get_response.py new file mode 100644 index 00000000..04d18096 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_customers_summary_get_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_customer_summary import ManaV2ExtranetServiceCustomerSummary +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bCustomersSummaryGetResponse(BaseModel): + """ + V1ExtranetB2bCustomersSummaryGetResponse + """ # noqa: E501 + customers: Optional[List[ManaV2ExtranetServiceCustomerSummary]] = None + __properties: ClassVar[List[str]] = ["customers"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersSummaryGetResponse 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 customers (list) + _items = [] + if self.customers: + for _item_customers in self.customers: + if _item_customers: + _items.append(_item_customers.to_dict()) + _dict['customers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bCustomersSummaryGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customers": [ManaV2ExtranetServiceCustomerSummary.from_dict(_item) for _item in obj["customers"]] if obj.get("customers") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_customers_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_matches_customers_post_request.py new file mode 100644 index 00000000..e49f078b --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_customers_post_request.py @@ -0,0 +1,97 @@ +# 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 graphiant_sdk.models.mana_v2_extranet_service_producer_customer import ManaV2ExtranetServiceProducerCustomer +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesCustomersPostRequest(BaseModel): + """ + V1ExtranetB2bMatchesCustomersPostRequest + """ # noqa: E501 + customers: Optional[List[ManaV2ExtranetServiceProducerCustomer]] = None + service_id: Optional[StrictInt] = Field(default=None, alias="serviceId") + __properties: ClassVar[List[str]] = ["customers", "serviceId"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesCustomersPostRequest 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 customers (list) + _items = [] + if self.customers: + for _item_customers in self.customers: + if _item_customers: + _items.append(_item_customers.to_dict()) + _dict['customers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesCustomersPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customers": [ManaV2ExtranetServiceProducerCustomer.from_dict(_item) for _item in obj["customers"]] if obj.get("customers") is not None else None, + "serviceId": obj.get("serviceId") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_customers_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_matches_customers_post_response.py new file mode 100644 index 00000000..3f3e144d --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_customers_post_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_producer_customer import ManaV2ExtranetServiceProducerCustomer +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesCustomersPostResponse(BaseModel): + """ + V1ExtranetB2bMatchesCustomersPostResponse + """ # noqa: E501 + customers: Optional[List[ManaV2ExtranetServiceProducerCustomer]] = None + __properties: ClassVar[List[str]] = ["customers"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesCustomersPostResponse 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 customers (list) + _items = [] + if self.customers: + for _item_customers in self.customers: + if _item_customers: + _items.append(_item_customers.to_dict()) + _dict['customers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesCustomersPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customers": [ManaV2ExtranetServiceProducerCustomer.from_dict(_item) for _item in obj["customers"]] if obj.get("customers") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_check_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_check_post_request.py new file mode 100644 index 00000000..aa2dc2a9 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_check_post_request.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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_consumer_policy import ManaV2ExtranetServiceConsumerPolicy +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest(BaseModel): + """ + V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest + """ # noqa: E501 + policy: Optional[ManaV2ExtranetServiceConsumerPolicy] = None + service_id: Optional[StrictInt] = Field(default=None, description="Producer service id being consumed", alias="serviceId") + __properties: ClassVar[List[str]] = ["policy", "serviceId"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": ManaV2ExtranetServiceConsumerPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None, + "serviceId": obj.get("serviceId") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_check_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_check_post_response.py new file mode 100644 index 00000000..1bdbac7d --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_check_post_response.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_consumer_policy import ManaV2ExtranetServiceConsumerPolicy +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse(BaseModel): + """ + V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse + """ # noqa: E501 + consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId") + id: Optional[StrictInt] = None + policy: Optional[ManaV2ExtranetServiceConsumerPolicy] = None + __properties: ClassVar[List[str]] = ["consumerActivityId", "id", "policy"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerActivityId": obj.get("consumerActivityId"), + "id": obj.get("id"), + "policy": ManaV2ExtranetServiceConsumerPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_post_request.py new file mode 100644 index 00000000..86c55925 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_post_request.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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_consumer_policy import ManaV2ExtranetServiceConsumerPolicy +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesMatchIdConsumerPostRequest(BaseModel): + """ + V1ExtranetB2bMatchesMatchIdConsumerPostRequest + """ # noqa: E501 + policy: Optional[ManaV2ExtranetServiceConsumerPolicy] = None + service_id: Optional[StrictInt] = Field(default=None, description="Producer service id being consumed", alias="serviceId") + __properties: ClassVar[List[str]] = ["policy", "serviceId"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdConsumerPostRequest 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdConsumerPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": ManaV2ExtranetServiceConsumerPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None, + "serviceId": obj.get("serviceId") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_post_response.py new file mode 100644 index 00000000..33225bea --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_consumer_post_response.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_consumer_policy import ManaV2ExtranetServiceConsumerPolicy +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesMatchIdConsumerPostResponse(BaseModel): + """ + V1ExtranetB2bMatchesMatchIdConsumerPostResponse + """ # noqa: E501 + consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId") + id: Optional[StrictInt] = None + policy: Optional[ManaV2ExtranetServiceConsumerPolicy] = None + __properties: ClassVar[List[str]] = ["consumerActivityId", "id", "policy"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdConsumerPostResponse 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdConsumerPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerActivityId": obj.get("consumerActivityId"), + "id": obj.get("id"), + "policy": ManaV2ExtranetServiceConsumerPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_delete_response.py b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_delete_response.py new file mode 100644 index 00000000..f0fbc639 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_delete_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 + + +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 + +class V1ExtranetB2bMatchesMatchIdDeleteResponse(BaseModel): + """ + V1ExtranetB2bMatchesMatchIdDeleteResponse + """ # noqa: E501 + activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") + consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId") + __properties: ClassVar[List[str]] = ["activityId", "consumerActivityId"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdDeleteResponse 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 V1ExtranetB2bMatchesMatchIdDeleteResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "activityId": obj.get("activityId"), + "consumerActivityId": obj.get("consumerActivityId") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_details_get_response.py b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_details_get_response.py new file mode 100644 index 00000000..b3d0c4f7 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_details_get_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_b2b_extranet_match_consumer_details import ManaV2B2bExtranetMatchConsumerDetails +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesMatchIdDetailsGetResponse(BaseModel): + """ + V1ExtranetB2bMatchesMatchIdDetailsGetResponse + """ # noqa: E501 + details: Optional[List[ManaV2B2bExtranetMatchConsumerDetails]] = None + __properties: ClassVar[List[str]] = ["details"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdDetailsGetResponse 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 details (list) + _items = [] + if self.details: + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) + _dict['details'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdDetailsGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "details": [ManaV2B2bExtranetMatchConsumerDetails.from_dict(_item) for _item in obj["details"]] if obj.get("details") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_get_response.py b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_get_response.py new file mode 100644 index 00000000..d0fdf3c0 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_get_response.py @@ -0,0 +1,99 @@ +# 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.mana_v2_b2b_extranet_match import ManaV2B2bExtranetMatch +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesMatchIdGetResponse(BaseModel): + """ + V1ExtranetB2bMatchesMatchIdGetResponse + """ # noqa: E501 + customer_name: Optional[StrictStr] = Field(default=None, alias="customerName") + match: Optional[ManaV2B2bExtranetMatch] = None + match_id: Optional[StrictInt] = Field(default=None, alias="matchId") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["customerName", "match", "matchId", "serviceName", "status"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdGetResponse 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 match + if self.match: + _dict['match'] = self.match.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customerName": obj.get("customerName"), + "match": ManaV2B2bExtranetMatch.from_dict(obj["match"]) if obj.get("match") is not None else None, + "matchId": obj.get("matchId"), + "serviceName": obj.get("serviceName"), + "status": obj.get("status") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_put_request.py b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_put_request.py new file mode 100644 index 00000000..4c0b2c3a --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_put_request.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_b2b_extranet_match import ManaV2B2bExtranetMatch +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesMatchIdPutRequest(BaseModel): + """ + V1ExtranetB2bMatchesMatchIdPutRequest + """ # noqa: E501 + match: Optional[ManaV2B2bExtranetMatch] = None + __properties: ClassVar[List[str]] = ["match"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdPutRequest 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 match + if self.match: + _dict['match'] = self.match.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "match": ManaV2B2bExtranetMatch.from_dict(obj["match"]) if obj.get("match") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_put_response.py b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_put_response.py new file mode 100644 index 00000000..1b30b57d --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_put_response.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 graphiant_sdk.models.mana_v2_b2b_extranet_match import ManaV2B2bExtranetMatch +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesMatchIdPutResponse(BaseModel): + """ + V1ExtranetB2bMatchesMatchIdPutResponse + """ # noqa: E501 + activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") + match: Optional[ManaV2B2bExtranetMatch] = None + __properties: ClassVar[List[str]] = ["activityId", "match"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdPutResponse 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 match + if self.match: + _dict['match'] = self.match.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdPutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "activityId": obj.get("activityId"), + "match": ManaV2B2bExtranetMatch.from_dict(obj["match"]) if obj.get("match") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_status_put_request.py b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_status_put_request.py new file mode 100644 index 00000000..c1d4546a --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_status_put_request.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 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesMatchIdStatusPutRequest(BaseModel): + """ + V1ExtranetB2bMatchesMatchIdStatusPutRequest + """ # noqa: E501 + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["status"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdStatusPutRequest 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 V1ExtranetB2bMatchesMatchIdStatusPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_status_put_response.py b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_status_put_response.py new file mode 100644 index 00000000..632a5eac --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_match_id_status_put_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 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesMatchIdStatusPutResponse(BaseModel): + """ + V1ExtranetB2bMatchesMatchIdStatusPutResponse + """ # noqa: E501 + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["status"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesMatchIdStatusPutResponse 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 V1ExtranetB2bMatchesMatchIdStatusPutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_pause_put_request.py b/graphiant_sdk/models/v1_extranet_b2b_matches_pause_put_request.py new file mode 100644 index 00000000..968a47ce --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_pause_put_request.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 + + +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 + +class V1ExtranetB2bMatchesPausePutRequest(BaseModel): + """ + V1ExtranetB2bMatchesPausePutRequest + """ # noqa: E501 + customer_id: Optional[StrictInt] = Field(default=None, alias="customerId") + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["customerId", "status"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesPausePutRequest 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 V1ExtranetB2bMatchesPausePutRequest 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"), + "status": obj.get("status") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_pause_put_response.py b/graphiant_sdk/models/v1_extranet_b2b_matches_pause_put_response.py new file mode 100644 index 00000000..2fa5d213 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_pause_put_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 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesPausePutResponse(BaseModel): + """ + V1ExtranetB2bMatchesPausePutResponse + """ # noqa: E501 + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["status"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesPausePutResponse 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 V1ExtranetB2bMatchesPausePutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_matches_post_request.py new file mode 100644 index 00000000..36edf5b4 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_post_request.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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_b2b_extranet_match import ManaV2B2bExtranetMatch +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesPostRequest(BaseModel): + """ + V1ExtranetB2bMatchesPostRequest + """ # noqa: E501 + customer_id: Optional[StrictInt] = Field(default=None, alias="customerId") + match: Optional[ManaV2B2bExtranetMatch] = None + __properties: ClassVar[List[str]] = ["customerId", "match"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesPostRequest 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 match + if self.match: + _dict['match'] = self.match.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesPostRequest 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"), + "match": ManaV2B2bExtranetMatch.from_dict(obj["match"]) if obj.get("match") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_matches_post_response.py new file mode 100644 index 00000000..7f81078b --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_post_response.py @@ -0,0 +1,97 @@ +# 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 graphiant_sdk.models.mana_v2_b2b_extranet_match import ManaV2B2bExtranetMatch +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesPostResponse(BaseModel): + """ + V1ExtranetB2bMatchesPostResponse + """ # noqa: E501 + match_id: Optional[StrictInt] = Field(default=None, alias="matchId") + matches: Optional[List[ManaV2B2bExtranetMatch]] = None + __properties: ClassVar[List[str]] = ["matchId", "matches"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesPostResponse 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 matches (list) + _items = [] + if self.matches: + for _item_matches in self.matches: + if _item_matches: + _items.append(_item_matches.to_dict()) + _dict['matches'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "matchId": obj.get("matchId"), + "matches": [ManaV2B2bExtranetMatch.from_dict(_item) for _item in obj["matches"]] if obj.get("matches") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_review_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_matches_review_post_request.py new file mode 100644 index 00000000..6ca0f453 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_review_post_request.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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_b2b_extranet_match import ManaV2B2bExtranetMatch +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesReviewPostRequest(BaseModel): + """ + V1ExtranetB2bMatchesReviewPostRequest + """ # noqa: E501 + customer_id: Optional[StrictInt] = Field(default=None, alias="customerId") + match: Optional[ManaV2B2bExtranetMatch] = None + __properties: ClassVar[List[str]] = ["customerId", "match"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesReviewPostRequest 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 match + if self.match: + _dict['match'] = self.match.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesReviewPostRequest 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"), + "match": ManaV2B2bExtranetMatch.from_dict(obj["match"]) if obj.get("match") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_matches_review_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_matches_review_post_response.py new file mode 100644 index 00000000..d74329ca --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_matches_review_post_response.py @@ -0,0 +1,97 @@ +# 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 graphiant_sdk.models.mana_v2_b2b_extranet_match import ManaV2B2bExtranetMatch +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bMatchesReviewPostResponse(BaseModel): + """ + V1ExtranetB2bMatchesReviewPostResponse + """ # noqa: E501 + match_id: Optional[StrictInt] = Field(default=None, alias="matchId") + matches: Optional[List[ManaV2B2bExtranetMatch]] = None + __properties: ClassVar[List[str]] = ["matchId", "matches"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesReviewPostResponse 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 matches (list) + _items = [] + if self.matches: + for _item_matches in self.matches: + if _item_matches: + _items.append(_item_matches.to_dict()) + _dict['matches'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bMatchesReviewPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "matchId": obj.get("matchId"), + "matches": [ManaV2B2bExtranetMatch.from_dict(_item) for _item in obj["matches"]] if obj.get("matches") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request.py index 29d84f16..a20f9c62 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request.py @@ -22,25 +22,23 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest(BaseModel): """ V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest """ # noqa: E501 - id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, or service_id for the producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) - service_id: Optional[StrictInt] = Field(default=None, alias="serviceId", json_schema_extra={"examples": [1234567891011]}) - site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site (id of the site)", alias="siteId", json_schema_extra={"examples": [1]}) - subscription_name: Optional[StrictStr] = Field(default=None, description="Optional subscription name for filter", alias="subscriptionName", json_schema_extra={"examples": ["example string"]}) + id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, or service_id for the producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") + service_id: Optional[StrictInt] = Field(default=None, alias="serviceId") + site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site (id of the site)", alias="siteId") + subscription_name: Optional[StrictStr] = Field(default=None, description="Optional subscription name for filter", alias="subscriptionName") time_window: StatsmonTimeWindow = Field(alias="timeWindow") - vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific lan segment (id of the lan segment)", alias="vrfId", json_schema_extra={"examples": [1]}) + vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific lan segment (id of the lan segment)", alias="vrfId") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "serviceId", "siteId", "subscriptionName", "timeWindow", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_response.py index d83053e7..3c923612 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_response.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_response.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.ipfix_stats import IpfixStats from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse(BaseModel): """ V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse """ # noqa: E501 - bw_allocation: Optional[StrictInt] = Field(default=None, description="the bandwidth allocation for the entity in kbps", alias="bwAllocation", json_schema_extra={"examples": [1000000]}) + bw_allocation: Optional[StrictInt] = Field(default=None, description="the bandwidth allocation for the entity in kbps", alias="bwAllocation") dl_stats: Optional[List[IpfixStats]] = Field(default=None, alias="dlStats") ul_stats: Optional[List[IpfixStats]] = Field(default=None, alias="ulStats") __properties: ClassVar[List[str]] = ["bwAllocation", "dlStats", "ulStats"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request.py index e793cbf5..55bd2c6c 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest(BaseModel): """ V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest """ # noqa: E501 - id: StrictInt = Field(description="the id of a producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) + id: StrictInt = Field(description="the id of a producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_response.py index b36de739..716045fe 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_response.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_response.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.ipfix_entity_usage import IpfixEntityUsage from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse(BaseModel): """ V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse """ # noqa: E501 top_consumers: Optional[List[IpfixEntityUsage]] = Field(default=None, alias="topConsumers") - total_customers: Optional[StrictInt] = Field(default=None, description="total number of customers", alias="totalCustomers", json_schema_extra={"examples": [10]}) - total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage", json_schema_extra={"examples": [1000000]}) + total_customers: Optional[StrictInt] = Field(default=None, description="total number of customers", alias="totalCustomers") + total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage") __properties: ClassVar[List[str]] = ["topConsumers", "totalCustomers", "totalUsage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request.py index dabd3fc2..9b182c3a 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request.py @@ -22,25 +22,23 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest(BaseModel): """ V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest """ # noqa: E501 - customer_name: Optional[StrictStr] = Field(default=None, description="a filter to get usage for a specific customer", alias="customerName", json_schema_extra={"examples": ["Customer 1"]}) - flipped_view: StrictBool = Field(description="whether to view the data from the consumer's perspective (true) or the provider's perspective (false) (required)", alias="flippedView", json_schema_extra={"examples": [True]}) - id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) - site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site", alias="siteId", json_schema_extra={"examples": [1]}) + customer_name: Optional[StrictStr] = Field(default=None, description="a filter to get usage for a specific customer", alias="customerName") + flipped_view: StrictBool = Field(description="whether to view the data from the consumer's perspective (true) or the provider's perspective (false) (required)", alias="flippedView") + id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") + site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site", alias="siteId") time_window: StatsmonTimeWindow = Field(alias="timeWindow") - vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId", json_schema_extra={"examples": [1]}) + vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId") __properties: ClassVar[List[str]] = ["customerName", "flippedView", "id", "isB2B", "isProvider", "siteId", "timeWindow", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_response.py index 719b1e41..4ca80cba 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_response.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.ipfix_connection_map import IpfixConnectionMap from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse(BaseM first_level: Optional[List[IpfixConnectionMap]] = Field(default=None, alias="firstLevel") second_level: Optional[List[IpfixConnectionMap]] = Field(default=None, alias="secondLevel") third_level: Optional[List[IpfixConnectionMap]] = Field(default=None, alias="thirdLevel") - total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage", json_schema_extra={"examples": [1000000]}) + total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage") __properties: ClassVar[List[str]] = ["firstLevel", "secondLevel", "thirdLevel", "totalUsage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request.py index b611d641..5303790d 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest(BaseModel): """ V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest """ # noqa: E501 - id: StrictInt = Field(description="service id (required)", json_schema_extra={"examples": [1]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) + id: StrictInt = Field(description="service id (required)") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isProvider", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_response.py index 78919322..d1e8e83a 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_response.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_response.py @@ -21,7 +21,6 @@ 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 V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse(BaseModel): """ @@ -31,8 +30,7 @@ class V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse(BaseM __properties: ClassVar[List[str]] = ["customerName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_health_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_health_post_request.py index 02564d4d..e8497f6d 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_health_post_request.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_health_post_request.py @@ -21,19 +21,17 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest(BaseModel): """ V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest """ # noqa: E501 - id: StrictInt = Field(description="the id of the service (required)", json_schema_extra={"examples": [1]}) - is_provider: StrictBool = Field(description="whether the entity is a provider/producer or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) + id: StrictInt = Field(description="the id of the service (required)") + is_provider: StrictBool = Field(description="whether the entity is a provider/producer or consumer (required)", alias="isProvider") __properties: ClassVar[List[str]] = ["id", "isProvider"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_health_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_health_post_response.py index c5e34624..9d1a8cda 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_health_post_response.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_health_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_extranet_service_health import StatsmonExtranetServiceHealth from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["serviceHealth"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request.py index 99ddc48a..e953db22 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request.py @@ -22,24 +22,22 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest(BaseModel): """ V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest """ # noqa: E501 - id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) - site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site", alias="siteId", json_schema_extra={"examples": [1]}) - subscription_name: Optional[StrictStr] = Field(default=None, description="Optional subscription name for filter", alias="subscriptionName", json_schema_extra={"examples": ["example string"]}) + id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") + site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site", alias="siteId") + subscription_name: Optional[StrictStr] = Field(default=None, description="Optional subscription name for filter", alias="subscriptionName") time_window: StatsmonTimeWindow = Field(alias="timeWindow") - vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId", json_schema_extra={"examples": [1]}) + vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "siteId", "subscriptionName", "timeWindow", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_response.py index b02f1bb6..f875ea86 100644 --- a/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_response.py +++ b/graphiant_sdk/models/v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.ipfix_stats import IpfixStats from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse(BaseModel): """ @@ -33,8 +32,7 @@ class V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRespons __properties: ClassVar[List[str]] = ["dlAggStats", "ulAggStats"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_b2b_producer_id_customers_get_response.py b/graphiant_sdk/models/v1_extranet_b2b_producer_id_customers_get_response.py new file mode 100644 index 00000000..2a5a1476 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_producer_id_customers_get_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_producer_customer import ManaV2ExtranetServiceProducerCustomer +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bProducerIdCustomersGetResponse(BaseModel): + """ + V1ExtranetB2bProducerIdCustomersGetResponse + """ # noqa: E501 + customers: Optional[List[ManaV2ExtranetServiceProducerCustomer]] = None + __properties: ClassVar[List[str]] = ["customers"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdCustomersGetResponse 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 customers (list) + _items = [] + if self.customers: + for _item_customers in self.customers: + if _item_customers: + _items.append(_item_customers.to_dict()) + _dict['customers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdCustomersGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "customers": [ManaV2ExtranetServiceProducerCustomer.from_dict(_item) for _item in obj["customers"]] if obj.get("customers") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_producer_id_device_status_get_response.py b/graphiant_sdk/models/v1_extranet_b2b_producer_id_device_status_get_response.py new file mode 100644 index 00000000..1c8fae1c --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_producer_id_device_status_get_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_b2b_extranet_status_summary import ManaV2B2bExtranetStatusSummary +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bProducerIdDeviceStatusGetResponse(BaseModel): + """ + V1ExtranetB2bProducerIdDeviceStatusGetResponse + """ # noqa: E501 + summary: Optional[List[ManaV2B2bExtranetStatusSummary]] = None + __properties: ClassVar[List[str]] = ["summary"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdDeviceStatusGetResponse 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 summary (list) + _items = [] + if self.summary: + for _item_summary in self.summary: + if _item_summary: + _items.append(_item_summary.to_dict()) + _dict['summary'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdDeviceStatusGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "summary": [ManaV2B2bExtranetStatusSummary.from_dict(_item) for _item in obj["summary"]] if obj.get("summary") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_producer_id_get_response.py b/graphiant_sdk/models/v1_extranet_b2b_producer_id_get_response.py new file mode 100644 index 00000000..60a3dc0a --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_producer_id_get_response.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_policy_response import ManaV2ExtranetServicePolicyResponse +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bProducerIdGetResponse(BaseModel): + """ + V1ExtranetB2bProducerIdGetResponse + """ # noqa: E501 + id: Optional[StrictInt] = None + policy: Optional[ManaV2ExtranetServicePolicyResponse] = None + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "policy", "status"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdGetResponse 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdGetResponse 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"), + "policy": ManaV2ExtranetServicePolicyResponse.from_dict(obj["policy"]) if obj.get("policy") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_producer_id_put_request.py b/graphiant_sdk/models/v1_extranet_b2b_producer_id_put_request.py new file mode 100644 index 00000000..68939381 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_producer_id_put_request.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_producer_policy import ManaV2ExtranetServiceProducerPolicy +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bProducerIdPutRequest(BaseModel): + """ + V1ExtranetB2bProducerIdPutRequest + """ # noqa: E501 + policy: Optional[ManaV2ExtranetServiceProducerPolicy] = None + __properties: ClassVar[List[str]] = ["policy"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdPutRequest 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": ManaV2ExtranetServiceProducerPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_producer_id_put_response.py b/graphiant_sdk/models/v1_extranet_b2b_producer_id_put_response.py new file mode 100644 index 00000000..b1a43a88 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_producer_id_put_response.py @@ -0,0 +1,97 @@ +# 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.mana_v2_extranet_service_policy_response import ManaV2ExtranetServicePolicyResponse +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bProducerIdPutResponse(BaseModel): + """ + V1ExtranetB2bProducerIdPutResponse + """ # noqa: E501 + activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") + consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId") + id: Optional[StrictInt] = None + policy: Optional[ManaV2ExtranetServicePolicyResponse] = None + __properties: ClassVar[List[str]] = ["activityId", "consumerActivityId", "id", "policy"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdPutResponse 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdPutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "activityId": obj.get("activityId"), + "consumerActivityId": obj.get("consumerActivityId"), + "id": obj.get("id"), + "policy": ManaV2ExtranetServicePolicyResponse.from_dict(obj["policy"]) if obj.get("policy") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_producer_id_status_put_request.py b/graphiant_sdk/models/v1_extranet_b2b_producer_id_status_put_request.py new file mode 100644 index 00000000..fc02cf46 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_producer_id_status_put_request.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 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bProducerIdStatusPutRequest(BaseModel): + """ + V1ExtranetB2bProducerIdStatusPutRequest + """ # noqa: E501 + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["status"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdStatusPutRequest 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 V1ExtranetB2bProducerIdStatusPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_producer_id_status_put_response.py b/graphiant_sdk/models/v1_extranet_b2b_producer_id_status_put_response.py new file mode 100644 index 00000000..89cd6660 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_producer_id_status_put_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 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bProducerIdStatusPutResponse(BaseModel): + """ + V1ExtranetB2bProducerIdStatusPutResponse + """ # noqa: E501 + status: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["status"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerIdStatusPutResponse 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 V1ExtranetB2bProducerIdStatusPutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_producer_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_producer_post_request.py new file mode 100644 index 00000000..693305bc --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_producer_post_request.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 +from graphiant_sdk.models.mana_v2_extranet_service_producer_policy import ManaV2ExtranetServiceProducerPolicy +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bProducerPostRequest(BaseModel): + """ + V1ExtranetB2bProducerPostRequest + """ # noqa: E501 + policy: ManaV2ExtranetServiceProducerPolicy + service_name: StrictStr = Field(description=" (required)", alias="serviceName") + service_type: StrictStr = Field(description="Branded extranet service type (peering_service, client_to_server, …) (required)", alias="serviceType") + __properties: ClassVar[List[str]] = ["policy", "serviceName", "serviceType"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerPostRequest 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": ManaV2ExtranetServiceProducerPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None, + "serviceName": obj.get("serviceName"), + "serviceType": obj.get("serviceType") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_producer_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_producer_post_response.py new file mode 100644 index 00000000..371e13b2 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_producer_post_response.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_policy_response import ManaV2ExtranetServicePolicyResponse +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bProducerPostResponse(BaseModel): + """ + V1ExtranetB2bProducerPostResponse + """ # noqa: E501 + activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") + id: Optional[StrictInt] = None + policy: Optional[ManaV2ExtranetServicePolicyResponse] = None + __properties: ClassVar[List[str]] = ["activityId", "id", "policy"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerPostResponse 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "activityId": obj.get("activityId"), + "id": obj.get("id"), + "policy": ManaV2ExtranetServicePolicyResponse.from_dict(obj["policy"]) if obj.get("policy") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_producer_review_post_request.py b/graphiant_sdk/models/v1_extranet_b2b_producer_review_post_request.py new file mode 100644 index 00000000..8528acb5 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_producer_review_post_request.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 +from graphiant_sdk.models.mana_v2_extranet_service_producer_policy import ManaV2ExtranetServiceProducerPolicy +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bProducerReviewPostRequest(BaseModel): + """ + V1ExtranetB2bProducerReviewPostRequest + """ # noqa: E501 + policy: ManaV2ExtranetServiceProducerPolicy + service_name: StrictStr = Field(description=" (required)", alias="serviceName") + service_type: StrictStr = Field(description="Branded extranet service type (peering_service, client_to_server, …) (required)", alias="serviceType") + __properties: ClassVar[List[str]] = ["policy", "serviceName", "serviceType"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerReviewPostRequest 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerReviewPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": ManaV2ExtranetServiceProducerPolicy.from_dict(obj["policy"]) if obj.get("policy") is not None else None, + "serviceName": obj.get("serviceName"), + "serviceType": obj.get("serviceType") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_producer_review_post_response.py b/graphiant_sdk/models/v1_extranet_b2b_producer_review_post_response.py new file mode 100644 index 00000000..473c060b --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_producer_review_post_response.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, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_policy_response import ManaV2ExtranetServicePolicyResponse +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bProducerReviewPostResponse(BaseModel): + """ + V1ExtranetB2bProducerReviewPostResponse + """ # noqa: E501 + activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") + id: Optional[StrictInt] = None + policy: Optional[ManaV2ExtranetServicePolicyResponse] = None + __properties: ClassVar[List[str]] = ["activityId", "id", "policy"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerReviewPostResponse 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 policy + if self.policy: + _dict['policy'] = self.policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bProducerReviewPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "activityId": obj.get("activityId"), + "id": obj.get("id"), + "policy": ManaV2ExtranetServicePolicyResponse.from_dict(obj["policy"]) if obj.get("policy") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_b2b_services_summary_get_response.py b/graphiant_sdk/models/v1_extranet_b2b_services_summary_get_response.py new file mode 100644 index 00000000..1c034208 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_b2b_services_summary_get_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_extranet_service_summary import ManaV2ExtranetServiceSummary +from typing import Optional, Set +from typing_extensions import Self + +class V1ExtranetB2bServicesSummaryGetResponse(BaseModel): + """ + V1ExtranetB2bServicesSummaryGetResponse + """ # noqa: E501 + services: Optional[List[ManaV2ExtranetServiceSummary]] = None + __properties: ClassVar[List[str]] = ["services"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetB2bServicesSummaryGetResponse 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 services (list) + _items = [] + if self.services: + for _item_services in self.services: + if _item_services: + _items.append(_item_services.to_dict()) + _dict['services'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetB2bServicesSummaryGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "services": [ManaV2ExtranetServiceSummary.from_dict(_item) for _item in obj["services"]] if obj.get("services") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_sites_usage_top_post_request.py b/graphiant_sdk/models/v1_extranet_sites_usage_top_post_request.py index 01598c6c..bd905ecb 100644 --- a/graphiant_sdk/models/v1_extranet_sites_usage_top_post_request.py +++ b/graphiant_sdk/models/v1_extranet_sites_usage_top_post_request.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetSitesUsageTopPostRequest(BaseModel): """ V1ExtranetSitesUsageTopPostRequest """ # noqa: E501 - id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) - service_id: Optional[StrictInt] = Field(default=None, alias="serviceId", json_schema_extra={"examples": [1234567891011]}) + id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") + service_id: Optional[StrictInt] = Field(default=None, alias="serviceId") time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "serviceId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_sites_usage_top_post_response.py b/graphiant_sdk/models/v1_extranet_sites_usage_top_post_response.py index 5aa18a4a..db563d80 100644 --- a/graphiant_sdk/models/v1_extranet_sites_usage_top_post_response.py +++ b/graphiant_sdk/models/v1_extranet_sites_usage_top_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_extranet_sites_usage_top_post_response_site_usage import V1ExtranetSitesUsageTopPostResponseSiteUsage from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetSitesUsageTopPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetSitesUsageTopPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["topSites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranet_sites_usage_top_post_response_site_usage.py b/graphiant_sdk/models/v1_extranet_sites_usage_top_post_response_site_usage.py index 03605020..74d0e612 100644 --- a/graphiant_sdk/models/v1_extranet_sites_usage_top_post_response_site_usage.py +++ b/graphiant_sdk/models/v1_extranet_sites_usage_top_post_response_site_usage.py @@ -21,20 +21,18 @@ 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 V1ExtranetSitesUsageTopPostResponseSiteUsage(BaseModel): """ V1ExtranetSitesUsageTopPostResponseSiteUsage """ # noqa: E501 - site_id: Optional[StrictInt] = Field(default=None, description="the id of the site", alias="siteId", json_schema_extra={"examples": [1]}) - site_name: Optional[StrictStr] = Field(default=None, description="the name of the site", alias="siteName", json_schema_extra={"examples": ["Site 1"]}) - usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="usage/consumption of the service on the site in kilo bytes", json_schema_extra={"examples": [1000000]}) + site_id: Optional[StrictInt] = Field(default=None, description="the id of the site", alias="siteId") + site_name: Optional[StrictStr] = Field(default=None, description="the name of the site", alias="siteName") + usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="usage/consumption of the service on the site in kilo bytes") __properties: ClassVar[List[str]] = ["siteId", "siteName", "usage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_consumer_device_status_id_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_consumer_device_status_id_get_response.py index 19798a9a..7ee54190 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_consumer_device_status_id_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_consumer_device_status_id_get_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_status_summary import ManaV2B2bExtranetStatusSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bConsumerDeviceStatusIdGetResponse(BaseModel): """ V1ExtranetsB2bConsumerDeviceStatusIdGetResponse """ # noqa: E501 - service_status: Optional[StrictStr] = Field(default=None, alias="serviceStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + service_status: Optional[StrictStr] = Field(default=None, alias="serviceStatus") summary: Optional[List[ManaV2B2bExtranetStatusSummary]] = None __properties: ClassVar[List[str]] = ["serviceStatus", "summary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_consumer_id_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_consumer_id_get_response.py index bc23e3e2..6083c1b0 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_consumer_id_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_consumer_id_get_response.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.mana_v2_extranet_consumer_lan_segment_policy_response import ManaV2ExtranetConsumerLanSegmentPolicyResponse from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bConsumerIdGetResponse(BaseModel): """ V1ExtranetsB2bConsumerIdGetResponse """ # noqa: E501 - consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId", json_schema_extra={"examples": [1234567891011]}) + consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId") policy: Optional[List[ManaV2ExtranetConsumerLanSegmentPolicyResponse]] = None - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") site_information: Optional[List[ManaV2B2bSiteInformation]] = Field(default=None, alias="siteInformation") __properties: ClassVar[List[str]] = ["consumerId", "policy", "serviceName", "siteInformation"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_consumer_post_request.py b/graphiant_sdk/models/v1_extranets_b2b_consumer_post_request.py index c16385ec..60fdc100 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_consumer_post_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_consumer_post_request.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.mana_v2_extranet_consumer_lan_segment_policy import ManaV2ExtranetConsumerLanSegmentPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bConsumerPostRequest(BaseModel): """ V1ExtranetsB2bConsumerPostRequest """ # noqa: E501 policy: Optional[List[ManaV2ExtranetConsumerLanSegmentPolicy]] = None - provider_enterprise_id: Optional[StrictInt] = Field(default=None, alias="providerEnterpriseId", json_schema_extra={"examples": [1234567891011]}) - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) + provider_enterprise_id: Optional[StrictInt] = Field(default=None, alias="providerEnterpriseId") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") site_information: Optional[List[ManaV2B2bSiteInformation]] = Field(default=None, alias="siteInformation") __properties: ClassVar[List[str]] = ["policy", "providerEnterpriseId", "serviceName", "siteInformation"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_consumer_post_response.py b/graphiant_sdk/models/v1_extranets_b2b_consumer_post_response.py index 2519a1ca..399fbb1e 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_consumer_post_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_consumer_post_response.py @@ -24,21 +24,19 @@ from graphiant_sdk.models.mana_v2_extranet_consumer_lan_segment_policy_response import ManaV2ExtranetConsumerLanSegmentPolicyResponse from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bConsumerPostResponse(BaseModel): """ V1ExtranetsB2bConsumerPostResponse """ # noqa: E501 device: Optional[List[ManaV2ConsumerDeviceInformation]] = None - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None policy: Optional[List[ManaV2ExtranetConsumerLanSegmentPolicyResponse]] = None site_information: Optional[List[ManaV2B2bSiteInformation]] = Field(default=None, alias="siteInformation") __properties: ClassVar[List[str]] = ["device", "id", "policy", "siteInformation"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_consumer_summary_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_consumer_summary_get_response.py index beb4fcb3..6b3de828 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_consumer_summary_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_consumer_summary_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_consumers_summary import ManaV2B2bExtranetConsumersSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bConsumerSummaryGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bConsumerSummaryGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["summary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_customer_info_id_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_customer_info_id_get_response.py index 6ea1818a..5d8a5a28 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_customer_info_id_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_customer_info_id_get_response.py @@ -21,21 +21,19 @@ 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 V1ExtranetsB2bCustomerInfoIdGetResponse(BaseModel): """ V1ExtranetsB2bCustomerInfoIdGetResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - provider_enterprise_id: Optional[StrictInt] = Field(default=None, alias="providerEnterpriseId", json_schema_extra={"examples": [1234567891011]}) - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + id: Optional[StrictInt] = None + provider_enterprise_id: Optional[StrictInt] = Field(default=None, alias="providerEnterpriseId") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "providerEnterpriseId", "serviceName", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_general_customers_summary_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_general_customers_summary_get_response.py index 0d5111d3..71ac94b5 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_general_customers_summary_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_general_customers_summary_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_customer_services_summary import ManaV2B2bExtranetCustomerServicesSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bGeneralCustomersSummaryGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bGeneralCustomersSummaryGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["customers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_general_services_summary_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_general_services_summary_get_response.py index 2d044353..ea559eb4 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_general_services_summary_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_general_services_summary_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_application import ManaV2B2bExtranetApplication from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bGeneralServicesSummaryGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bGeneralServicesSummaryGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["info"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_id_customer_post_request.py b/graphiant_sdk/models/v1_extranets_b2b_id_customer_post_request.py index 2b34ae00..0fa9c287 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_id_customer_post_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_id_customer_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_application_invite import ManaV2B2bExtranetApplicationInvite from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bIdCustomerPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bIdCustomerPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["invites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_id_customer_post_response.py b/graphiant_sdk/models/v1_extranets_b2b_id_customer_post_response.py index 5e9eea73..3a5b6e17 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_id_customer_post_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_id_customer_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_application_invite_response import ManaV2B2bExtranetApplicationInviteResponse from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bIdCustomerPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bIdCustomerPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["responses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_id_customer_summary_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_id_customer_summary_get_response.py index 91005b2e..47845e13 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_id_customer_summary_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_id_customer_summary_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_application_customer_summary import ManaV2B2bApplicationCustomerSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bIdCustomerSummaryGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bIdCustomerSummaryGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["customers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_id_producer_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_id_producer_get_response.py index 41629781..2e8f0474 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_id_producer_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_id_producer_get_response.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_b2b_extranet_policy_response import ManaV2B2bExtranetPolicyResponse from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bIdProducerGetResponse(BaseModel): """ V1ExtranetsB2bIdProducerGetResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None policy: Optional[ManaV2B2bExtranetPolicyResponse] = None __properties: ClassVar[List[str]] = ["id", "policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_id_put_request.py b/graphiant_sdk/models/v1_extranets_b2b_id_put_request.py index 741f4710..02f1c7d7 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_id_put_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_id_put_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_producer_policy import ManaV2B2bExtranetProducerPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bIdPutRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bIdPutRequest(BaseModel): __properties: ClassVar[List[str]] = ["policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_id_put_response.py b/graphiant_sdk/models/v1_extranets_b2b_id_put_response.py index ea3fc8e4..ba813821 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_id_put_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_id_put_response.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_b2b_extranet_policy_response import ManaV2B2bExtranetPolicyResponse from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bIdPutResponse(BaseModel): """ V1ExtranetsB2bIdPutResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None policy: Optional[ManaV2B2bExtranetPolicyResponse] = None __properties: ClassVar[List[str]] = ["id", "policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_response.py index cf1848e8..274a6547 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_response.py @@ -27,29 +27,27 @@ from graphiant_sdk.models.v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_response_ipsec_vpn_tunnel_config import V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponseIpsecVpnTunnelConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse(BaseModel): """ V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse """ # noqa: E501 - consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId", json_schema_extra={"examples": [1234567891011]}) - consumer_name: Optional[StrictStr] = Field(default=None, alias="consumerName", json_schema_extra={"examples": ["example string"]}) + consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId") + consumer_name: Optional[StrictStr] = Field(default=None, alias="consumerName") emails: Optional[List[StrictStr]] = None global_object_device_summaries: Optional[Dict[str, ManaV2GlobalObjectServiceSummaries]] = Field(default=None, alias="globalObjectDeviceSummaries") global_object_summaries: Optional[Dict[str, ManaV2GlobalObjectServiceSummaries]] = Field(default=None, alias="globalObjectSummaries") ipsec_tunnel_config: Optional[List[V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponseIpsecVpnTunnelConfig]] = Field(default=None, alias="ipsecTunnelConfig") match_details: Optional[ManaV2B2bExtranetServiceCustomerMatchDetails] = Field(default=None, alias="matchDetails") - peer_type: Optional[StrictStr] = Field(default=None, alias="peerType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + peer_type: Optional[StrictStr] = Field(default=None, alias="peerType") policy: Optional[List[ManaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy]] = None site_information: Optional[List[ManaV2B2bSiteInformation]] = Field(default=None, alias="siteInformation") site_to_site_vpn: Optional[ManaV2GuestConsumerSiteToSiteVpnConfig] = Field(default=None, alias="siteToSiteVpn") - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["consumerId", "consumerName", "emails", "globalObjectDeviceSummaries", "globalObjectSummaries", "ipsecTunnelConfig", "matchDetails", "peerType", "policy", "siteInformation", "siteToSiteVpn", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -61,7 +59,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_response_ipsec_vpn_tunnel_config.py b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_response_ipsec_vpn_tunnel_config.py index 187d7d4a..24acb814 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_response_ipsec_vpn_tunnel_config.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_customer_id_consumer_details_get_response_ipsec_vpn_tunnel_config.py @@ -22,49 +22,47 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponseIpsecVpnTunnelConfig(BaseModel): """ V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponseIpsecVpnTunnelConfig """ # noqa: E501 - bgp_graphiant_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpGraphiantAsn", json_schema_extra={"examples": [123]}) - bgp_local_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpLocalAsn", json_schema_extra={"examples": [123]}) - bgp_neighbor_hold_time: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpNeighborHoldTime", json_schema_extra={"examples": [123]}) - bgp_neighbor_ipv4: Optional[StrictStr] = Field(default=None, alias="bgpNeighborIpv4", json_schema_extra={"examples": ["example string"]}) - bgp_neighbor_ipv6: Optional[StrictStr] = Field(default=None, alias="bgpNeighborIpv6", json_schema_extra={"examples": ["example string"]}) - dpd_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdInterval", json_schema_extra={"examples": [123]}) - dpd_retries: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdRetries", json_schema_extra={"examples": [123]}) - graphiant_destination_ip: Optional[StrictStr] = Field(default=None, alias="graphiantDestinationIp", json_schema_extra={"examples": ["example string"]}) - graphiant_ike_id: Optional[StrictStr] = Field(default=None, alias="graphiantIkeId", json_schema_extra={"examples": ["example string"]}) - graphiant_outer_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="graphiantOuterTunnelIp", json_schema_extra={"examples": ["example string"]}) - graphiant_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="graphiantTunnelIp", json_schema_extra={"examples": ["example string"]}) - graphiant_tunnel_ipv6: Optional[StrictStr] = Field(default=None, alias="graphiantTunnelIpv6", json_schema_extra={"examples": ["example string"]}) - ike_authentication_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeAuthenticationAlgorithm", json_schema_extra={"examples": ["example string"]}) - ike_authentication_method: Optional[StrictStr] = Field(default=None, alias="ikeAuthenticationMethod", json_schema_extra={"examples": ["example string"]}) - ike_dh_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeDhAlgorithm", json_schema_extra={"examples": ["example string"]}) - ike_encryption_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeEncryptionAlgorithm", json_schema_extra={"examples": ["example string"]}) - ike_lifetime: Optional[StrictStr] = Field(default=None, alias="ikeLifetime", json_schema_extra={"examples": ["example string"]}) - ike_preshared_key: Optional[StrictStr] = Field(default=None, alias="ikePresharedKey", json_schema_extra={"examples": ["example string"]}) - ike_version: Optional[StrictInt] = Field(default=None, alias="ikeVersion", json_schema_extra={"examples": [123]}) - ipsec_authentication_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecAuthenticationAlgorithm", json_schema_extra={"examples": ["example string"]}) - ipsec_encryption_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecEncryptionAlgorithm", json_schema_extra={"examples": ["example string"]}) - ipsec_extended_sequence_number: Optional[StrictBool] = Field(default=None, alias="ipsecExtendedSequenceNumber", json_schema_extra={"examples": [True]}) - ipsec_lifetime: Optional[StrictStr] = Field(default=None, alias="ipsecLifetime", json_schema_extra={"examples": ["example string"]}) - ipsec_mode: Optional[StrictStr] = Field(default=None, alias="ipsecMode", json_schema_extra={"examples": ["example string"]}) - ipsec_pfs_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecPfsAlgorithm", json_schema_extra={"examples": ["example string"]}) - ipsec_protocol: Optional[StrictStr] = Field(default=None, alias="ipsecProtocol", json_schema_extra={"examples": ["example string"]}) - local_ike_id: Optional[StrictStr] = Field(default=None, alias="localIkeId", json_schema_extra={"examples": ["example string"]}) - local_outer_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="localOuterTunnelIp", json_schema_extra={"examples": ["example string"]}) - local_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="localTunnelIp", json_schema_extra={"examples": ["example string"]}) - local_tunnel_ipv6: Optional[StrictStr] = Field(default=None, alias="localTunnelIpv6", json_schema_extra={"examples": ["example string"]}) - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss", json_schema_extra={"examples": [123]}) - tunnel_mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tunnelMtu", json_schema_extra={"examples": [123]}) + bgp_graphiant_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpGraphiantAsn") + bgp_local_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpLocalAsn") + bgp_neighbor_hold_time: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpNeighborHoldTime") + bgp_neighbor_ipv4: Optional[StrictStr] = Field(default=None, alias="bgpNeighborIpv4") + bgp_neighbor_ipv6: Optional[StrictStr] = Field(default=None, alias="bgpNeighborIpv6") + dpd_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdInterval") + dpd_retries: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdRetries") + graphiant_destination_ip: Optional[StrictStr] = Field(default=None, alias="graphiantDestinationIp") + graphiant_ike_id: Optional[StrictStr] = Field(default=None, alias="graphiantIkeId") + graphiant_outer_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="graphiantOuterTunnelIp") + graphiant_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="graphiantTunnelIp") + graphiant_tunnel_ipv6: Optional[StrictStr] = Field(default=None, alias="graphiantTunnelIpv6") + ike_authentication_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeAuthenticationAlgorithm") + ike_authentication_method: Optional[StrictStr] = Field(default=None, alias="ikeAuthenticationMethod") + ike_dh_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeDhAlgorithm") + ike_encryption_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeEncryptionAlgorithm") + ike_lifetime: Optional[StrictStr] = Field(default=None, alias="ikeLifetime") + ike_preshared_key: Optional[StrictStr] = Field(default=None, alias="ikePresharedKey") + ike_version: Optional[StrictInt] = Field(default=None, alias="ikeVersion") + ipsec_authentication_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecAuthenticationAlgorithm") + ipsec_encryption_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecEncryptionAlgorithm") + ipsec_extended_sequence_number: Optional[StrictBool] = Field(default=None, alias="ipsecExtendedSequenceNumber") + ipsec_lifetime: Optional[StrictStr] = Field(default=None, alias="ipsecLifetime") + ipsec_mode: Optional[StrictStr] = Field(default=None, alias="ipsecMode") + ipsec_pfs_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecPfsAlgorithm") + ipsec_protocol: Optional[StrictStr] = Field(default=None, alias="ipsecProtocol") + local_ike_id: Optional[StrictStr] = Field(default=None, alias="localIkeId") + local_outer_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="localOuterTunnelIp") + local_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="localTunnelIp") + local_tunnel_ipv6: Optional[StrictStr] = Field(default=None, alias="localTunnelIpv6") + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + tunnel_mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tunnelMtu") __properties: ClassVar[List[str]] = ["bgpGraphiantAsn", "bgpLocalAsn", "bgpNeighborHoldTime", "bgpNeighborIpv4", "bgpNeighborIpv6", "dpdInterval", "dpdRetries", "graphiantDestinationIp", "graphiantIkeId", "graphiantOuterTunnelIp", "graphiantTunnelIp", "graphiantTunnelIpv6", "ikeAuthenticationAlgorithm", "ikeAuthenticationMethod", "ikeDhAlgorithm", "ikeEncryptionAlgorithm", "ikeLifetime", "ikePresharedKey", "ikeVersion", "ipsecAuthenticationAlgorithm", "ipsecEncryptionAlgorithm", "ipsecExtendedSequenceNumber", "ipsecLifetime", "ipsecMode", "ipsecPfsAlgorithm", "ipsecProtocol", "localIkeId", "localOuterTunnelIp", "localTunnelIp", "localTunnelIpv6", "tcpMss", "tunnelMtu"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -76,7 +74,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_prefixes_put_request.py b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_prefixes_put_request.py index 5f8139fa..1cf5af12 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_prefixes_put_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_prefixes_put_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_nat import ManaV2B2bNat from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bPeeringConsumerIdPrefixesPutRequest(BaseModel): __properties: ClassVar[List[str]] = ["servicePrefixes"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_prefixes_put_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_prefixes_put_response.py index cb1822be..3556c5bc 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_prefixes_put_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_id_prefixes_put_response.py @@ -21,18 +21,16 @@ 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 V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse(BaseModel): """ V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse """ # noqa: E501 - consumer_activiy_id: Optional[StrictStr] = Field(default=None, alias="consumerActiviyId", json_schema_extra={"examples": ["example string"]}) + consumer_activiy_id: Optional[StrictStr] = Field(default=None, alias="consumerActiviyId") __properties: ClassVar[List[str]] = ["consumerActiviyId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_match_details_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_match_details_get_response.py index 8a5d7cb7..481af6af 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_match_details_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_match_details_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_service_customer_match_details import ManaV2B2bExtranetServiceCustomerMatchDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bPeeringConsumerMatchIdMatchDetailsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["details"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request.py b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request.py index 0bf84a11..0e066b26 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_request.py @@ -26,15 +26,14 @@ from graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config import ManaV2GuestConsumerSiteToSiteVpnConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringConsumerMatchIdPostRequest(BaseModel): """ V1ExtranetsB2bPeeringConsumerMatchIdPostRequest """ # noqa: E501 - customer_id: Optional[StrictInt] = Field(default=None, alias="customerId", json_schema_extra={"examples": [1234567891011]}) + customer_id: Optional[StrictInt] = Field(default=None, alias="customerId") global_object_ops: Optional[Dict[str, ManaV2GlobalObjectServiceOps]] = Field(default=None, alias="globalObjectOps") - id: StrictInt = Field(description="ID of the service which is being consumed by the customer (required)", json_schema_extra={"examples": [1234567891011]}) + id: StrictInt = Field(description="ID of the service which is being consumed by the customer (required)") nat: List[ManaV2B2bNat] policy: List[ManaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy] site_information: List[ManaV2B2bSiteInformation] = Field(alias="siteInformation") @@ -42,8 +41,7 @@ class V1ExtranetsB2bPeeringConsumerMatchIdPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["customerId", "globalObjectOps", "id", "nat", "policy", "siteInformation", "siteToSiteVpn"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,7 +53,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_response.py index 04f30e46..5f68f443 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_consumer_match_id_post_response.py @@ -23,22 +23,20 @@ from graphiant_sdk.models.mana_v2_b2b_site_information import ManaV2B2bSiteInformation from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringConsumerMatchIdPostResponse(BaseModel): """ V1ExtranetsB2bPeeringConsumerMatchIdPostResponse """ # noqa: E501 - consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId", json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": [1234567891011]}) + consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId") + id: Optional[StrictInt] = None + lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment") nat: Optional[List[ManaV2B2bNat]] = None site_information: Optional[List[ManaV2B2bSiteInformation]] = Field(default=None, alias="siteInformation") __properties: ClassVar[List[str]] = ["consumerActivityId", "id", "lanSegment", "nat", "siteInformation"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_delete_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_delete_response.py index 811c85d0..f8962cec 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_delete_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_delete_response.py @@ -21,19 +21,17 @@ 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 V1ExtranetsB2bPeeringCustomerIdDeleteResponse(BaseModel): """ V1ExtranetsB2bPeeringCustomerIdDeleteResponse """ # noqa: E501 - activity_id: Optional[StrictStr] = Field(default=None, alias="activityId", json_schema_extra={"examples": ["example string"]}) - consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId", json_schema_extra={"examples": ["example string"]}) + activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") + consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId") __properties: ClassVar[List[str]] = ["activityId", "consumerActivityId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_get_response.py index a043b108..41fb39aa 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_customer_id_get_response.py @@ -22,22 +22,20 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringCustomerIdGetResponse(BaseModel): """ V1ExtranetsB2bPeeringCustomerIdGetResponse """ # noqa: E501 - customer_name: Optional[StrictStr] = Field(default=None, alias="customerName", json_schema_extra={"examples": ["example string"]}) + customer_name: Optional[StrictStr] = Field(default=None, alias="customerName") emails: Optional[List[StrictStr]] = None - num_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSites", json_schema_extra={"examples": [123]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + num_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSites") + status: Optional[StrictStr] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["customerName", "emails", "numSites", "status", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_request.py b/graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_request.py index 1ba1056b..173510e9 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_request.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_peering_service_customer_invite import ManaV2B2bExtranetPeeringServiceCustomerInvite from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringCustomerPostRequest(BaseModel): """ V1ExtranetsB2bPeeringCustomerPostRequest """ # noqa: E501 invite: ManaV2B2bExtranetPeeringServiceCustomerInvite - name: StrictStr = Field(description="Name of the peering service customer (required)", json_schema_extra={"examples": ["example string"]}) - type: StrictStr = Field(description="Type of the peerings servicecustomer whether it is a graphiant or non-graphiant (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) + name: StrictStr = Field(description="Name of the peering service customer (required)") + type: StrictStr = Field(description="Type of the peerings servicecustomer whether it is a graphiant or non-graphiant (required)") __properties: ClassVar[List[str]] = ["invite", "name", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_response.py index 902e3949..f2cfeedd 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_customer_post_response.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_b2b_extranet_peering_service_customer_invite import ManaV2B2bExtranetPeeringServiceCustomerInvite from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringCustomerPostResponse(BaseModel): """ V1ExtranetsB2bPeeringCustomerPostResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None response: Optional[ManaV2B2bExtranetPeeringServiceCustomerInvite] = None __properties: ClassVar[List[str]] = ["id", "response"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_id_delete_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_id_delete_response.py index 14c6db9b..3c4ac2bc 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_id_delete_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_id_delete_response.py @@ -21,19 +21,17 @@ 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 V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse(BaseModel): """ V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse """ # noqa: E501 - activity_id: Optional[StrictStr] = Field(default=None, description="activity id for the delete operation (required)", alias="activityId", json_schema_extra={"examples": ["example string"]}) - consumer_activity_id: Optional[StrictStr] = Field(default=None, description="activity id for the consumer delete operation (required)", alias="consumerActivityId", json_schema_extra={"examples": ["example string"]}) + activity_id: Optional[StrictStr] = Field(default=None, description="activity id for the delete operation (required)", alias="activityId") + consumer_activity_id: Optional[StrictStr] = Field(default=None, description="activity id for the consumer delete operation (required)", alias="consumerActivityId") __properties: ClassVar[List[str]] = ["activityId", "consumerActivityId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_id_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_id_get_response.py index 8f5425ae..95786f5e 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_id_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_id_get_response.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_match_service_to_customer import ManaV2B2bExtranetMatchServiceToCustomer from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse(BaseModel): """ V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse """ # noqa: E501 - customer_name: Optional[StrictStr] = Field(default=None, alias="customerName", json_schema_extra={"examples": ["example string"]}) + customer_name: Optional[StrictStr] = Field(default=None, alias="customerName") match_details: Optional[ManaV2B2bExtranetMatchServiceToCustomer] = Field(default=None, alias="matchDetails") - match_id: Optional[StrictInt] = Field(default=None, alias="matchId", json_schema_extra={"examples": [1234567891011]}) - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + match_id: Optional[StrictInt] = Field(default=None, alias="matchId") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["customerName", "matchDetails", "matchId", "serviceName", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request.py b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request.py index 563b464a..9b3a7e02 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_request.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_match_service_to_customer import ManaV2B2bExtranetMatchServiceToCustomer from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest(BaseModel): """ V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest """ # noqa: E501 - id: StrictInt = Field(description="ID of the customer (required)", json_schema_extra={"examples": [1234567891011]}) + id: StrictInt = Field(description="ID of the customer (required)") service: ManaV2B2bExtranetMatchServiceToCustomer __properties: ClassVar[List[str]] = ["id", "service"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_response.py index d4c068d9..94eea843 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_post_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_match_service_to_customer import ManaV2B2bExtranetMatchServiceToCustomer from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse(BaseModel): """ V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse """ # noqa: E501 - match_id: Optional[StrictInt] = Field(default=None, alias="matchId", json_schema_extra={"examples": [1234567891011]}) + match_id: Optional[StrictInt] = Field(default=None, alias="matchId") service: Optional[List[ManaV2B2bExtranetMatchServiceToCustomer]] = None __properties: ClassVar[List[str]] = ["matchId", "service"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request.py b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request.py index 2476d4b5..e4374d6d 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_service_status_put_request.py @@ -21,19 +21,17 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest(BaseModel): """ V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest """ # noqa: E501 - id: StrictInt = Field(description="match ID for the customer's service subscription (required)", json_schema_extra={"examples": [1234567891011]}) - status: StrictStr = Field(description="Customer’s service status: Paused or Active (required)", json_schema_extra={"examples": ["B2B_PEERING_SERVICE_STATUS_PAUSED"]}) + id: StrictInt = Field(description="match ID for the customer's service subscription (required)") + status: StrictStr = Field(description="Customer’s service status: Paused or Active (required)") __properties: ClassVar[List[str]] = ["id", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_service_status_put_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_service_status_put_response.py index c2242879..7e5d4306 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_service_status_put_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_match_service_to_customer_service_status_put_response.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse(BaseModel): """ V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse """ # noqa: E501 - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_match_services_summary_id_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_match_services_summary_id_get_response.py index d6a30b9d..707dba21 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_match_services_summary_id_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_match_services_summary_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_customer_match_services_summary import ManaV2B2bExtranetCustomerMatchServicesSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bPeeringMatchServicesSummaryIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["services"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_get_response.py index 10d18d33..78ef4e8d 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_get_response.py @@ -17,25 +17,23 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_b2b_extranet_peering_service_policy_response import ManaV2B2bExtranetPeeringServicePolicyResponse from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringProducerIdGetResponse(BaseModel): """ V1ExtranetsB2bPeeringProducerIdGetResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None policy: Optional[ManaV2B2bExtranetPeeringServicePolicyResponse] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "policy", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_response.py index 2c822684..a712093e 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_producer_id_matching_customers_summary_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_customer_match_info import ManaV2CustomerMatchInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bPeeringProducerIdMatchingCustomersSummaryGetResponse(BaseMod __properties: ClassVar[List[str]] = ["info"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_request.py b/graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_request.py index 9aba0196..4d9a8de1 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_request.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_peering_service_producer_policy import ManaV2B2bExtranetPeeringServiceProducerPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringProducerPostRequest(BaseModel): """ V1ExtranetsB2bPeeringProducerPostRequest """ # noqa: E501 policy: ManaV2B2bExtranetPeeringServiceProducerPolicy - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) - type: StrictStr = Field(description="Type of the service whether it is application or peering (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + type: StrictStr = Field(description="Type of the service whether it is application or peering (required)") __properties: ClassVar[List[str]] = ["policy", "serviceName", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_response.py b/graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_response.py index c0395cac..28206455 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_peering_producer_post_response.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_peering_service_policy_response import ManaV2B2bExtranetPeeringServicePolicyResponse from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPeeringProducerPostResponse(BaseModel): """ V1ExtranetsB2bPeeringProducerPostResponse """ # noqa: E501 - activity_id: Optional[StrictStr] = Field(default=None, alias="activityId", json_schema_extra={"examples": ["example string"]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") + id: Optional[StrictInt] = None policy: Optional[ManaV2B2bExtranetPeeringServicePolicyResponse] = None __properties: ClassVar[List[str]] = ["activityId", "id", "policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_post_request.py b/graphiant_sdk/models/v1_extranets_b2b_post_request.py index f7797a04..e448fcac 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_post_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_post_request.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_producer_policy import ManaV2B2bExtranetProducerPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPostRequest(BaseModel): """ V1ExtranetsB2bPostRequest """ # noqa: E501 policy: ManaV2B2bExtranetProducerPolicy - service_name: StrictStr = Field(description="Name of the service (required)", alias="serviceName", json_schema_extra={"examples": ["example string"]}) - type: StrictStr = Field(description="Type of the service whether it is application or peering (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) + service_name: StrictStr = Field(description="Name of the service (required)", alias="serviceName") + type: StrictStr = Field(description="Type of the service whether it is application or peering (required)") __properties: ClassVar[List[str]] = ["policy", "serviceName", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_post_response.py b/graphiant_sdk/models/v1_extranets_b2b_post_response.py index 556a6051..a7c65fb3 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_post_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_post_response.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_b2b_extranet_policy_response import ManaV2B2bExtranetPolicyResponse from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bPostResponse(BaseModel): """ V1ExtranetsB2bPostResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None policy: Optional[ManaV2B2bExtranetPolicyResponse] = None __properties: ClassVar[List[str]] = ["id", "policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_producer_device_status_id_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_producer_device_status_id_get_response.py index 3eb656f6..ece80101 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_producer_device_status_id_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_producer_device_status_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_status_summary import ManaV2B2bExtranetStatusSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bProducerDeviceStatusIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bProducerDeviceStatusIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["summary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_b2b_producers_summary_get_response.py b/graphiant_sdk/models/v1_extranets_b2b_producers_summary_get_response.py index 563922cc..e9114e14 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_producers_summary_get_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_producers_summary_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_b2b_extranet_application import ManaV2B2bExtranetApplication from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsB2bProducersSummaryGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsB2bProducersSummaryGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["info"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_get_response.py b/graphiant_sdk/models/v1_extranets_get_response.py index 755af1bc..d820e00a 100644 --- a/graphiant_sdk/models/v1_extranets_get_response.py +++ b/graphiant_sdk/models/v1_extranets_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_extranet_policy import ManaV2ExtranetPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1ExtranetsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["pageInfo", "policies"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_id_apply_post_request.py b/graphiant_sdk/models/v1_extranets_id_apply_post_request.py index bc81c288..4b1bad3f 100644 --- a/graphiant_sdk/models/v1_extranets_id_apply_post_request.py +++ b/graphiant_sdk/models/v1_extranets_id_apply_post_request.py @@ -21,7 +21,6 @@ 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 V1ExtranetsIdApplyPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1ExtranetsIdApplyPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["targetDevices"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_id_apply_post_response.py b/graphiant_sdk/models/v1_extranets_id_apply_post_response.py index 11cc261e..62da5c40 100644 --- a/graphiant_sdk/models/v1_extranets_id_apply_post_response.py +++ b/graphiant_sdk/models/v1_extranets_id_apply_post_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_extranet_device_status import ManaV2ExtranetDeviceStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsIdApplyPostResponse(BaseModel): """ V1ExtranetsIdApplyPostResponse """ # noqa: E501 devices: Optional[List[ManaV2ExtranetDeviceStatus]] = None - job_id: Optional[StrictInt] = Field(default=None, alias="jobId", json_schema_extra={"examples": [1234567891011]}) + job_id: Optional[StrictInt] = Field(default=None, alias="jobId") __properties: ClassVar[List[str]] = ["devices", "jobId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_id_delete_response.py b/graphiant_sdk/models/v1_extranets_id_delete_response.py index 5a92b031..fa575c82 100644 --- a/graphiant_sdk/models/v1_extranets_id_delete_response.py +++ b/graphiant_sdk/models/v1_extranets_id_delete_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_extranet_device_status import ManaV2ExtranetDeviceStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsIdDeleteResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsIdDeleteResponse(BaseModel): __properties: ClassVar[List[str]] = ["devices"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_id_get_response.py b/graphiant_sdk/models/v1_extranets_id_get_response.py index 96c25219..fb3fabd0 100644 --- a/graphiant_sdk/models/v1_extranets_id_get_response.py +++ b/graphiant_sdk/models/v1_extranets_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_extranet_policy import ManaV2ExtranetPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_id_put_request.py b/graphiant_sdk/models/v1_extranets_id_put_request.py index c1e387a6..0ae0ba0d 100644 --- a/graphiant_sdk/models/v1_extranets_id_put_request.py +++ b/graphiant_sdk/models/v1_extranets_id_put_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_extranet_policy_input import ManaV2ExtranetPolicyInput from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsIdPutRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsIdPutRequest(BaseModel): __properties: ClassVar[List[str]] = ["policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_id_put_response.py b/graphiant_sdk/models/v1_extranets_id_put_response.py index caabf1f6..913f853a 100644 --- a/graphiant_sdk/models/v1_extranets_id_put_response.py +++ b/graphiant_sdk/models/v1_extranets_id_put_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_extranet_policy import ManaV2ExtranetPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsIdPutResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsIdPutResponse(BaseModel): __properties: ClassVar[List[str]] = ["policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_id_status_get_response.py b/graphiant_sdk/models/v1_extranets_id_status_get_response.py index a3df936d..8e2334c7 100644 --- a/graphiant_sdk/models/v1_extranets_id_status_get_response.py +++ b/graphiant_sdk/models/v1_extranets_id_status_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_extranet_device_status import ManaV2ExtranetDeviceStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsIdStatusGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsIdStatusGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["devices"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_monitoring_lan_segments_get_response.py b/graphiant_sdk/models/v1_extranets_monitoring_lan_segments_get_response.py index 8f0767db..8a916fef 100644 --- a/graphiant_sdk/models/v1_extranets_monitoring_lan_segments_get_response.py +++ b/graphiant_sdk/models/v1_extranets_monitoring_lan_segments_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_extranets_monitoring_lan_segments_get_response_vrf import V1ExtranetsMonitoringLanSegmentsGetResponseVrf from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsMonitoringLanSegmentsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsMonitoringLanSegmentsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["vrfs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_monitoring_lan_segments_get_response_vrf.py b/graphiant_sdk/models/v1_extranets_monitoring_lan_segments_get_response_vrf.py index fdddb33e..28ae8411 100644 --- a/graphiant_sdk/models/v1_extranets_monitoring_lan_segments_get_response_vrf.py +++ b/graphiant_sdk/models/v1_extranets_monitoring_lan_segments_get_response_vrf.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 V1ExtranetsMonitoringLanSegmentsGetResponseVrf(BaseModel): """ V1ExtranetsMonitoringLanSegmentsGetResponseVrf """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_monitoring_nat_usage_get_response.py b/graphiant_sdk/models/v1_extranets_monitoring_nat_usage_get_response.py index 94d1afab..0cd6a749 100644 --- a/graphiant_sdk/models/v1_extranets_monitoring_nat_usage_get_response.py +++ b/graphiant_sdk/models/v1_extranets_monitoring_nat_usage_get_response.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.v1_extranets_monitoring_nat_usage_get_response_allocation import V1ExtranetsMonitoringNatUsageGetResponseAllocation from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsMonitoringNatUsageGetResponse(BaseModel): """ V1ExtranetsMonitoringNatUsageGetResponse """ # noqa: E501 - allocated_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="allocatedCount", json_schema_extra={"examples": [123]}) + allocated_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="allocatedCount") allocations: Optional[List[V1ExtranetsMonitoringNatUsageGetResponseAllocation]] = None - usage_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="usageCount", json_schema_extra={"examples": [123]}) + usage_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="usageCount") __properties: ClassVar[List[str]] = ["allocatedCount", "allocations", "usageCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_monitoring_nat_usage_get_response_allocation.py b/graphiant_sdk/models/v1_extranets_monitoring_nat_usage_get_response_allocation.py index ff55e6ae..86cdba99 100644 --- a/graphiant_sdk/models/v1_extranets_monitoring_nat_usage_get_response_allocation.py +++ b/graphiant_sdk/models/v1_extranets_monitoring_nat_usage_get_response_allocation.py @@ -21,22 +21,20 @@ 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 V1ExtranetsMonitoringNatUsageGetResponseAllocation(BaseModel): """ V1ExtranetsMonitoringNatUsageGetResponseAllocation """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - ip_address: Optional[StrictStr] = Field(default=None, alias="ipAddress", json_schema_extra={"examples": ["example string"]}) - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + hostname: Optional[StrictStr] = None + ip_address: Optional[StrictStr] = Field(default=None, alias="ipAddress") + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") __properties: ClassVar[List[str]] = ["deviceId", "hostname", "ipAddress", "siteId", "siteName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_monitoring_traffic_security_policy_post_request.py b/graphiant_sdk/models/v1_extranets_monitoring_traffic_security_policy_post_request.py index d16b9948..52f1f6ea 100644 --- a/graphiant_sdk/models/v1_extranets_monitoring_traffic_security_policy_post_request.py +++ b/graphiant_sdk/models/v1_extranets_monitoring_traffic_security_policy_post_request.py @@ -21,19 +21,17 @@ 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 V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest(BaseModel): """ V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - is_provider: Optional[StrictBool] = Field(default=None, alias="isProvider", json_schema_extra={"examples": [True]}) + id: Optional[StrictInt] = None + is_provider: Optional[StrictBool] = Field(default=None, alias="isProvider") __properties: ClassVar[List[str]] = ["id", "isProvider"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_monitoring_traffic_security_policy_post_response.py b/graphiant_sdk/models/v1_extranets_monitoring_traffic_security_policy_post_response.py index c85667ad..e6ef8fed 100644 --- a/graphiant_sdk/models/v1_extranets_monitoring_traffic_security_policy_post_response.py +++ b/graphiant_sdk/models/v1_extranets_monitoring_traffic_security_policy_post_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_traffic_policy_rule_row import ManaV2TrafficPolicyRuleRow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1ExtranetsMonitoringTrafficSecurityPolicyPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["securityRules", "trafficRules"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_post_request.py b/graphiant_sdk/models/v1_extranets_post_request.py index 60f514d5..112b25c8 100644 --- a/graphiant_sdk/models/v1_extranets_post_request.py +++ b/graphiant_sdk/models/v1_extranets_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_extranet_policy_input import ManaV2ExtranetPolicyInput from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_post_response.py b/graphiant_sdk/models/v1_extranets_post_response.py index 0f2736cb..88460c41 100644 --- a/graphiant_sdk/models/v1_extranets_post_response.py +++ b/graphiant_sdk/models/v1_extranets_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_extranet_policy import ManaV2ExtranetPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["policy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_resolve_policy_target_post_request.py b/graphiant_sdk/models/v1_extranets_resolve_policy_target_post_request.py index 826c3759..9daf4a38 100644 --- a/graphiant_sdk/models/v1_extranets_resolve_policy_target_post_request.py +++ b/graphiant_sdk/models/v1_extranets_resolve_policy_target_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_policy_target_input import ManaV2PolicyTargetInput from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsResolvePolicyTargetPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsResolvePolicyTargetPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["policyTarget"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_resolve_policy_target_post_response.py b/graphiant_sdk/models/v1_extranets_resolve_policy_target_post_response.py index 26dc017a..4d41e570 100644 --- a/graphiant_sdk/models/v1_extranets_resolve_policy_target_post_response.py +++ b/graphiant_sdk/models/v1_extranets_resolve_policy_target_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_device import ManaV2Device from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsResolvePolicyTargetPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsResolvePolicyTargetPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["devices"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_source_segments_post_request.py b/graphiant_sdk/models/v1_extranets_source_segments_post_request.py index 5649a3af..2e012ada 100644 --- a/graphiant_sdk/models/v1_extranets_source_segments_post_request.py +++ b/graphiant_sdk/models/v1_extranets_source_segments_post_request.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_policy_target_input import ManaV2PolicyTargetInput from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsSourceSegmentsPostRequest(BaseModel): """ V1ExtranetsSourceSegmentsPostRequest """ # noqa: E501 - filter: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + filter: Optional[StrictStr] = None target: Optional[ManaV2PolicyTargetInput] = None __properties: ClassVar[List[str]] = ["filter", "target"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_extranets_source_segments_post_response.py b/graphiant_sdk/models/v1_extranets_source_segments_post_response.py index 1c815b75..27d34d5f 100644 --- a/graphiant_sdk/models/v1_extranets_source_segments_post_response.py +++ b/graphiant_sdk/models/v1_extranets_source_segments_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_vrf import ManaV2Vrf from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ExtranetsSourceSegmentsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1ExtranetsSourceSegmentsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["vrfs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_flows_flow_table_post_request.py b/graphiant_sdk/models/v1_flows_flow_table_post_request.py index 3654d288..cc474311 100644 --- a/graphiant_sdk/models/v1_flows_flow_table_post_request.py +++ b/graphiant_sdk/models/v1_flows_flow_table_post_request.py @@ -25,25 +25,23 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1FlowsFlowTablePostRequest(BaseModel): """ V1FlowsFlowTablePostRequest """ # noqa: E501 - app_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="the app ID in the question from overall visuals view", alias="appId", json_schema_extra={"examples": [123]}) - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) + app_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="the app ID in the question from overall visuals view", alias="appId") + app_name: Optional[StrictStr] = Field(default=None, alias="appName") cursor_ref: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="cursorRef") - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - is_dia: Optional[StrictBool] = Field(default=None, alias="isDia", json_schema_extra={"examples": [True]}) - num_flow_records: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Number of app flow records requested by UI.", alias="numFlowRecords", json_schema_extra={"examples": [123]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + is_dia: Optional[StrictBool] = Field(default=None, alias="isDia") + num_flow_records: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Number of app flow records requested by UI.", alias="numFlowRecords") selector: Optional[IpfixAppFlowTableSelector] = None time_window: Optional[StatsmonTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["appId", "appName", "cursorRef", "deviceId", "isDia", "numFlowRecords", "selector", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -55,7 +53,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_flows_flow_table_post_response.py b/graphiant_sdk/models/v1_flows_flow_table_post_response.py index 3e22208a..562d3406 100644 --- a/graphiant_sdk/models/v1_flows_flow_table_post_response.py +++ b/graphiant_sdk/models/v1_flows_flow_table_post_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.ipfix_app_flow_table import IpfixAppFlowTable from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1FlowsFlowTablePostResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1FlowsFlowTablePostResponse(BaseModel): __properties: ClassVar[List[str]] = ["cursorRef", "flowTable"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_flows_topology_post_request.py b/graphiant_sdk/models/v1_flows_topology_post_request.py index 62e4dfe8..8d97636d 100644 --- a/graphiant_sdk/models/v1_flows_topology_post_request.py +++ b/graphiant_sdk/models/v1_flows_topology_post_request.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1FlowsTopologyPostRequest(BaseModel): """ V1FlowsTopologyPostRequest """ # noqa: E501 app_selector: Optional[IpfixAppTopologySelector] = Field(default=None, alias="appSelector") - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") time_window: Optional[StatsmonTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["appSelector", "deviceId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_flows_topology_post_response.py b/graphiant_sdk/models/v1_flows_topology_post_response.py index 097fe0fa..73caa291 100644 --- a/graphiant_sdk/models/v1_flows_topology_post_response.py +++ b/graphiant_sdk/models/v1_flows_topology_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.ipfix_network_topology import IpfixNetworkTopology from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1FlowsTopologyPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1FlowsTopologyPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["networkTopology"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_gateways_guest_consumer_match_id_get_response.py b/graphiant_sdk/models/v1_gateways_guest_consumer_match_id_get_response.py index 0e3f22f6..5b3d81d4 100644 --- a/graphiant_sdk/models/v1_gateways_guest_consumer_match_id_get_response.py +++ b/graphiant_sdk/models/v1_gateways_guest_consumer_match_id_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.v1_gateways_guest_consumer_match_id_get_response_ipsec_vpn_tunnel_config import V1GatewaysGuestConsumerMatchIdGetResponseIpsecVpnTunnelConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GatewaysGuestConsumerMatchIdGetResponse(BaseModel): """ @@ -35,8 +34,7 @@ class V1GatewaysGuestConsumerMatchIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["destinationPrefixes", "ipsecTunnelConfig", "siteToSiteVpn"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_gateways_guest_consumer_match_id_get_response_ipsec_vpn_tunnel_config.py b/graphiant_sdk/models/v1_gateways_guest_consumer_match_id_get_response_ipsec_vpn_tunnel_config.py index f61fbb82..328d6114 100644 --- a/graphiant_sdk/models/v1_gateways_guest_consumer_match_id_get_response_ipsec_vpn_tunnel_config.py +++ b/graphiant_sdk/models/v1_gateways_guest_consumer_match_id_get_response_ipsec_vpn_tunnel_config.py @@ -22,49 +22,47 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GatewaysGuestConsumerMatchIdGetResponseIpsecVpnTunnelConfig(BaseModel): """ V1GatewaysGuestConsumerMatchIdGetResponseIpsecVpnTunnelConfig """ # noqa: E501 - bgp_graphiant_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpGraphiantAsn", json_schema_extra={"examples": [123]}) - bgp_local_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpLocalAsn", json_schema_extra={"examples": [123]}) - bgp_neighbor_hold_time: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpNeighborHoldTime", json_schema_extra={"examples": [123]}) - bgp_neighbor_ipv4: Optional[StrictStr] = Field(default=None, alias="bgpNeighborIpv4", json_schema_extra={"examples": ["example string"]}) - bgp_neighbor_ipv6: Optional[StrictStr] = Field(default=None, alias="bgpNeighborIpv6", json_schema_extra={"examples": ["example string"]}) - dpd_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdInterval", json_schema_extra={"examples": [123]}) - dpd_retries: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdRetries", json_schema_extra={"examples": [123]}) - graphiant_destination_ip: Optional[StrictStr] = Field(default=None, alias="graphiantDestinationIp", json_schema_extra={"examples": ["example string"]}) - graphiant_ike_id: Optional[StrictStr] = Field(default=None, alias="graphiantIkeId", json_schema_extra={"examples": ["example string"]}) - graphiant_outer_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="graphiantOuterTunnelIp", json_schema_extra={"examples": ["example string"]}) - graphiant_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="graphiantTunnelIp", json_schema_extra={"examples": ["example string"]}) - graphiant_tunnel_ipv6: Optional[StrictStr] = Field(default=None, alias="graphiantTunnelIpv6", json_schema_extra={"examples": ["example string"]}) - ike_authentication_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeAuthenticationAlgorithm", json_schema_extra={"examples": ["example string"]}) - ike_authentication_method: Optional[StrictStr] = Field(default=None, alias="ikeAuthenticationMethod", json_schema_extra={"examples": ["example string"]}) - ike_dh_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeDhAlgorithm", json_schema_extra={"examples": ["example string"]}) - ike_encryption_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeEncryptionAlgorithm", json_schema_extra={"examples": ["example string"]}) - ike_lifetime: Optional[StrictStr] = Field(default=None, alias="ikeLifetime", json_schema_extra={"examples": ["example string"]}) - ike_preshared_key: Optional[StrictStr] = Field(default=None, alias="ikePresharedKey", json_schema_extra={"examples": ["example string"]}) - ike_version: Optional[StrictInt] = Field(default=None, alias="ikeVersion", json_schema_extra={"examples": [123]}) - ipsec_authentication_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecAuthenticationAlgorithm", json_schema_extra={"examples": ["example string"]}) - ipsec_encryption_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecEncryptionAlgorithm", json_schema_extra={"examples": ["example string"]}) - ipsec_extended_sequence_number: Optional[StrictBool] = Field(default=None, alias="ipsecExtendedSequenceNumber", json_schema_extra={"examples": [True]}) - ipsec_lifetime: Optional[StrictStr] = Field(default=None, alias="ipsecLifetime", json_schema_extra={"examples": ["example string"]}) - ipsec_mode: Optional[StrictStr] = Field(default=None, alias="ipsecMode", json_schema_extra={"examples": ["example string"]}) - ipsec_pfs_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecPfsAlgorithm", json_schema_extra={"examples": ["example string"]}) - ipsec_protocol: Optional[StrictStr] = Field(default=None, alias="ipsecProtocol", json_schema_extra={"examples": ["example string"]}) - local_ike_id: Optional[StrictStr] = Field(default=None, alias="localIkeId", json_schema_extra={"examples": ["example string"]}) - local_outer_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="localOuterTunnelIp", json_schema_extra={"examples": ["example string"]}) - local_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="localTunnelIp", json_schema_extra={"examples": ["example string"]}) - local_tunnel_ipv6: Optional[StrictStr] = Field(default=None, alias="localTunnelIpv6", json_schema_extra={"examples": ["example string"]}) - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss", json_schema_extra={"examples": [123]}) - tunnel_mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tunnelMtu", json_schema_extra={"examples": [123]}) + bgp_graphiant_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpGraphiantAsn") + bgp_local_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpLocalAsn") + bgp_neighbor_hold_time: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bgpNeighborHoldTime") + bgp_neighbor_ipv4: Optional[StrictStr] = Field(default=None, alias="bgpNeighborIpv4") + bgp_neighbor_ipv6: Optional[StrictStr] = Field(default=None, alias="bgpNeighborIpv6") + dpd_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdInterval") + dpd_retries: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="dpdRetries") + graphiant_destination_ip: Optional[StrictStr] = Field(default=None, alias="graphiantDestinationIp") + graphiant_ike_id: Optional[StrictStr] = Field(default=None, alias="graphiantIkeId") + graphiant_outer_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="graphiantOuterTunnelIp") + graphiant_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="graphiantTunnelIp") + graphiant_tunnel_ipv6: Optional[StrictStr] = Field(default=None, alias="graphiantTunnelIpv6") + ike_authentication_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeAuthenticationAlgorithm") + ike_authentication_method: Optional[StrictStr] = Field(default=None, alias="ikeAuthenticationMethod") + ike_dh_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeDhAlgorithm") + ike_encryption_algorithm: Optional[StrictStr] = Field(default=None, alias="ikeEncryptionAlgorithm") + ike_lifetime: Optional[StrictStr] = Field(default=None, alias="ikeLifetime") + ike_preshared_key: Optional[StrictStr] = Field(default=None, alias="ikePresharedKey") + ike_version: Optional[StrictInt] = Field(default=None, alias="ikeVersion") + ipsec_authentication_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecAuthenticationAlgorithm") + ipsec_encryption_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecEncryptionAlgorithm") + ipsec_extended_sequence_number: Optional[StrictBool] = Field(default=None, alias="ipsecExtendedSequenceNumber") + ipsec_lifetime: Optional[StrictStr] = Field(default=None, alias="ipsecLifetime") + ipsec_mode: Optional[StrictStr] = Field(default=None, alias="ipsecMode") + ipsec_pfs_algorithm: Optional[StrictStr] = Field(default=None, alias="ipsecPfsAlgorithm") + ipsec_protocol: Optional[StrictStr] = Field(default=None, alias="ipsecProtocol") + local_ike_id: Optional[StrictStr] = Field(default=None, alias="localIkeId") + local_outer_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="localOuterTunnelIp") + local_tunnel_ip: Optional[StrictStr] = Field(default=None, alias="localTunnelIp") + local_tunnel_ipv6: Optional[StrictStr] = Field(default=None, alias="localTunnelIpv6") + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + tunnel_mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tunnelMtu") __properties: ClassVar[List[str]] = ["bgpGraphiantAsn", "bgpLocalAsn", "bgpNeighborHoldTime", "bgpNeighborIpv4", "bgpNeighborIpv6", "dpdInterval", "dpdRetries", "graphiantDestinationIp", "graphiantIkeId", "graphiantOuterTunnelIp", "graphiantTunnelIp", "graphiantTunnelIpv6", "ikeAuthenticationAlgorithm", "ikeAuthenticationMethod", "ikeDhAlgorithm", "ikeEncryptionAlgorithm", "ikeLifetime", "ikePresharedKey", "ikeVersion", "ipsecAuthenticationAlgorithm", "ipsecEncryptionAlgorithm", "ipsecExtendedSequenceNumber", "ipsecLifetime", "ipsecMode", "ipsecPfsAlgorithm", "ipsecProtocol", "localIkeId", "localOuterTunnelIp", "localTunnelIp", "localTunnelIpv6", "tcpMss", "tunnelMtu"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -76,7 +74,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_gateways_id_details_get_response.py b/graphiant_sdk/models/v1_gateways_id_details_get_response.py index 96ce41e9..cad171de 100644 --- a/graphiant_sdk/models/v1_gateways_id_details_get_response.py +++ b/graphiant_sdk/models/v1_gateways_id_details_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_gateway_details import ManaV2GatewayDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GatewaysIdDetailsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GatewaysIdDetailsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["details"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_response.py b/graphiant_sdk/models/v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_response.py index 13cbe7e2..ba5af51f 100644 --- a/graphiant_sdk/models/v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_response.py +++ b/graphiant_sdk/models/v1_gateways_ipsec_regions_region_id_vrfs_vrf_id_inside_subnet_get_response.py @@ -21,19 +21,17 @@ 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 V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse(BaseModel): """ V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse """ # noqa: E501 - ipv4_subnet: Optional[StrictStr] = Field(default=None, alias="ipv4Subnet", json_schema_extra={"examples": ["example string"]}) - ipv6_subnet: Optional[StrictStr] = Field(default=None, alias="ipv6Subnet", json_schema_extra={"examples": ["example string"]}) + ipv4_subnet: Optional[StrictStr] = Field(default=None, alias="ipv4Subnet") + ipv6_subnet: Optional[StrictStr] = Field(default=None, alias="ipv6Subnet") __properties: ClassVar[List[str]] = ["ipv4Subnet", "ipv6Subnet"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_gateways_post_request.py b/graphiant_sdk/models/v1_gateways_post_request.py index 88fa592b..ee2489a8 100644 --- a/graphiant_sdk/models/v1_gateways_post_request.py +++ b/graphiant_sdk/models/v1_gateways_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_gateway_details import ManaV2GatewayDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GatewaysPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1GatewaysPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["details"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_gateways_post_response.py b/graphiant_sdk/models/v1_gateways_post_response.py index 534489eb..4b7c8329 100644 --- a/graphiant_sdk/models/v1_gateways_post_response.py +++ b/graphiant_sdk/models/v1_gateways_post_response.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 V1GatewaysPostResponse(BaseModel): """ V1GatewaysPostResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + id: Optional[StrictInt] = None + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_gateways_put_request.py b/graphiant_sdk/models/v1_gateways_put_request.py index 7169103a..b71c7087 100644 --- a/graphiant_sdk/models/v1_gateways_put_request.py +++ b/graphiant_sdk/models/v1_gateways_put_request.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, StrictInt from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_gateway_details import ManaV2GatewayDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GatewaysPutRequest(BaseModel): """ V1GatewaysPutRequest """ # noqa: E501 details: Optional[ManaV2GatewayDetails] = None - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["details", "id"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_gateways_reference_consumer_get_response.py b/graphiant_sdk/models/v1_gateways_reference_consumer_get_response.py index f99dee88..8d613418 100644 --- a/graphiant_sdk/models/v1_gateways_reference_consumer_get_response.py +++ b/graphiant_sdk/models/v1_gateways_reference_consumer_get_response.py @@ -20,20 +20,20 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_i_psec_gateway_details import ManaV2IPsecGatewayDetails +from graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config import ManaV2IPsecGatewayPeersConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GatewaysReferenceConsumerGetResponse(BaseModel): """ V1GatewaysReferenceConsumerGetResponse """ # noqa: E501 ipsec_gateway_details: Optional[ManaV2IPsecGatewayDetails] = Field(default=None, alias="ipsecGatewayDetails") - __properties: ClassVar[List[str]] = ["ipsecGatewayDetails"] + ipsec_gateway_peers: Optional[ManaV2IPsecGatewayPeersConfig] = Field(default=None, alias="ipsecGatewayPeers") + __properties: ClassVar[List[str]] = ["ipsecGatewayDetails", "ipsecGatewayPeers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -73,6 +74,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of ipsec_gateway_details if self.ipsec_gateway_details: _dict['ipsecGatewayDetails'] = self.ipsec_gateway_details.to_dict() + # override the default output from pydantic by calling `to_dict()` of ipsec_gateway_peers + if self.ipsec_gateway_peers: + _dict['ipsecGatewayPeers'] = self.ipsec_gateway_peers.to_dict() return _dict @classmethod @@ -85,7 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "ipsecGatewayDetails": ManaV2IPsecGatewayDetails.from_dict(obj["ipsecGatewayDetails"]) if obj.get("ipsecGatewayDetails") is not None else None + "ipsecGatewayDetails": ManaV2IPsecGatewayDetails.from_dict(obj["ipsecGatewayDetails"]) if obj.get("ipsecGatewayDetails") is not None else None, + "ipsecGatewayPeers": ManaV2IPsecGatewayPeersConfig.from_dict(obj["ipsecGatewayPeers"]) if obj.get("ipsecGatewayPeers") is not None else None }) return _obj diff --git a/graphiant_sdk/models/v1_gateways_regions_get_response.py b/graphiant_sdk/models/v1_gateways_regions_get_response.py index 9c059750..d48828d3 100644 --- a/graphiant_sdk/models/v1_gateways_regions_get_response.py +++ b/graphiant_sdk/models/v1_gateways_regions_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_region import ManaV2Region from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GatewaysRegionsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GatewaysRegionsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["regions"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_gateways_status_post_request.py b/graphiant_sdk/models/v1_gateways_status_post_request.py index 8fd39427..efe29adc 100644 --- a/graphiant_sdk/models/v1_gateways_status_post_request.py +++ b/graphiant_sdk/models/v1_gateways_status_post_request.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.v1_gateways_status_post_request_device_info import V1GatewaysStatusPostRequestDeviceInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GatewaysStatusPostRequest(BaseModel): """ V1GatewaysStatusPostRequest """ # noqa: E501 device_info: Optional[List[V1GatewaysStatusPostRequestDeviceInfo]] = Field(default=None, alias="deviceInfo") - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - support_status: Optional[StrictStr] = Field(default=None, alias="supportStatus", json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + status: Optional[StrictStr] = None + support_status: Optional[StrictStr] = Field(default=None, alias="supportStatus") __properties: ClassVar[List[str]] = ["deviceInfo", "id", "status", "supportStatus"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_gateways_status_post_request_device_info.py b/graphiant_sdk/models/v1_gateways_status_post_request_device_info.py index 20a38efb..966d129b 100644 --- a/graphiant_sdk/models/v1_gateways_status_post_request_device_info.py +++ b/graphiant_sdk/models/v1_gateways_status_post_request_device_info.py @@ -21,19 +21,17 @@ 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 V1GatewaysStatusPostRequestDeviceInfo(BaseModel): """ V1GatewaysStatusPostRequestDeviceInfo """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - interface_id: Optional[StrictInt] = Field(default=None, alias="interfaceId", json_schema_extra={"examples": [1234567891011]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + interface_id: Optional[StrictInt] = Field(default=None, alias="interfaceId") __properties: ClassVar[List[str]] = ["deviceId", "interfaceId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_gateways_summary_get_response.py b/graphiant_sdk/models/v1_gateways_summary_get_response.py index fec2ece6..b8ea547c 100644 --- a/graphiant_sdk/models/v1_gateways_summary_get_response.py +++ b/graphiant_sdk/models/v1_gateways_summary_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_gateway_summary import ManaV2GatewaySummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GatewaysSummaryGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GatewaysSummaryGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["summaries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_app_list_options_get_response.py b/graphiant_sdk/models/v1_global_apps_app_list_options_get_response.py index 72338436..4a081fdb 100644 --- a/graphiant_sdk/models/v1_global_apps_app_list_options_get_response.py +++ b/graphiant_sdk/models/v1_global_apps_app_list_options_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_app import ManaV2App from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsAppListOptionsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsAppListOptionsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["apps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_details_apps_get_response.py b/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_details_apps_get_response.py index 3720458c..8a303f4b 100644 --- a/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_details_apps_get_response.py +++ b/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_details_apps_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_app import ManaV2App from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsAppListsAppListIdDetailsAppsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["apps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_get_response.py b/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_get_response.py index aa2e193c..a641bca4 100644 --- a/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_get_response.py +++ b/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_app_list_config import ManaV2AppListConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsAppListsAppListIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsAppListsAppListIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["appListConfig"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_put_request.py b/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_put_request.py index 788f3a39..d8639d85 100644 --- a/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_put_request.py +++ b/graphiant_sdk/models/v1_global_apps_app_lists_app_list_id_put_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_app_list_config import ManaV2AppListConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsAppListsAppListIdPutRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsAppListsAppListIdPutRequest(BaseModel): __properties: ClassVar[List[str]] = ["appListConfig"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_app_lists_get_response.py b/graphiant_sdk/models/v1_global_apps_app_lists_get_response.py index c4586eeb..a13ae6c9 100644 --- a/graphiant_sdk/models/v1_global_apps_app_lists_get_response.py +++ b/graphiant_sdk/models/v1_global_apps_app_lists_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_global_apps_app_lists_get_response_entry import V1GlobalAppsAppListsGetResponseEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsAppListsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsAppListsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["entries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_app_lists_get_response_entry.py b/graphiant_sdk/models/v1_global_apps_app_lists_get_response_entry.py index ea4f5762..f05ba06f 100644 --- a/graphiant_sdk/models/v1_global_apps_app_lists_get_response_entry.py +++ b/graphiant_sdk/models/v1_global_apps_app_lists_get_response_entry.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_app import ManaV2App from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsAppListsGetResponseEntry(BaseModel): """ V1GlobalAppsAppListsGetResponseEntry """ # noqa: E501 - app_count: Optional[StrictInt] = Field(default=None, alias="appCount", json_schema_extra={"examples": [123]}) + app_count: Optional[StrictInt] = Field(default=None, alias="appCount") app_list: Optional[ManaV2App] = Field(default=None, alias="appList") - policy_reference_count: Optional[StrictInt] = Field(default=None, alias="policyReferenceCount", json_schema_extra={"examples": [123]}) + policy_reference_count: Optional[StrictInt] = Field(default=None, alias="policyReferenceCount") __properties: ClassVar[List[str]] = ["appCount", "appList", "policyReferenceCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_app_lists_post_request.py b/graphiant_sdk/models/v1_global_apps_app_lists_post_request.py index 5cbb51a0..79441fcd 100644 --- a/graphiant_sdk/models/v1_global_apps_app_lists_post_request.py +++ b/graphiant_sdk/models/v1_global_apps_app_lists_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_app_list_config import ManaV2AppListConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsAppListsPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsAppListsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["appListConfig"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_app_lists_post_response.py b/graphiant_sdk/models/v1_global_apps_app_lists_post_response.py index 90cc25cc..4fc40a78 100644 --- a/graphiant_sdk/models/v1_global_apps_app_lists_post_response.py +++ b/graphiant_sdk/models/v1_global_apps_app_lists_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_app_identifier import ManaV2AppIdentifier from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsAppListsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsAppListsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["appIdentifier"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_categories_category_id_apps_get_response.py b/graphiant_sdk/models/v1_global_apps_categories_category_id_apps_get_response.py index 93eb8ae3..c767aa53 100644 --- a/graphiant_sdk/models/v1_global_apps_categories_category_id_apps_get_response.py +++ b/graphiant_sdk/models/v1_global_apps_categories_category_id_apps_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_app import ManaV2App from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsCategoriesCategoryIdAppsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsCategoriesCategoryIdAppsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["apps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_categories_get_response.py b/graphiant_sdk/models/v1_global_apps_categories_get_response.py index 0677cc67..da082a85 100644 --- a/graphiant_sdk/models/v1_global_apps_categories_get_response.py +++ b/graphiant_sdk/models/v1_global_apps_categories_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_global_apps_categories_get_response_entry import V1GlobalAppsCategoriesGetResponseEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsCategoriesGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsCategoriesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["entries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_categories_get_response_entry.py b/graphiant_sdk/models/v1_global_apps_categories_get_response_entry.py index 9745b3a4..ac51af86 100644 --- a/graphiant_sdk/models/v1_global_apps_categories_get_response_entry.py +++ b/graphiant_sdk/models/v1_global_apps_categories_get_response_entry.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_app import ManaV2App from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsCategoriesGetResponseEntry(BaseModel): """ V1GlobalAppsCategoriesGetResponseEntry """ # noqa: E501 - app_count: Optional[StrictInt] = Field(default=None, alias="appCount", json_schema_extra={"examples": [123]}) + app_count: Optional[StrictInt] = Field(default=None, alias="appCount") category: Optional[ManaV2App] = None __properties: ClassVar[List[str]] = ["appCount", "category"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_custom_app_id_details_app_lists_get_response.py b/graphiant_sdk/models/v1_global_apps_custom_app_id_details_app_lists_get_response.py index 439e11b1..2ec0d470 100644 --- a/graphiant_sdk/models/v1_global_apps_custom_app_id_details_app_lists_get_response.py +++ b/graphiant_sdk/models/v1_global_apps_custom_app_id_details_app_lists_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_app import ManaV2App from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsCustomAppIdDetailsAppListsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsCustomAppIdDetailsAppListsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["appLists"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_custom_app_id_get_response.py b/graphiant_sdk/models/v1_global_apps_custom_app_id_get_response.py index ef6f86c3..fa243dcc 100644 --- a/graphiant_sdk/models/v1_global_apps_custom_app_id_get_response.py +++ b/graphiant_sdk/models/v1_global_apps_custom_app_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_global_app_config import ManaV2GlobalAppConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsCustomAppIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsCustomAppIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["appConfig"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_custom_app_id_put_request.py b/graphiant_sdk/models/v1_global_apps_custom_app_id_put_request.py index 7f34ba47..aca05b6b 100644 --- a/graphiant_sdk/models/v1_global_apps_custom_app_id_put_request.py +++ b/graphiant_sdk/models/v1_global_apps_custom_app_id_put_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_global_app_config import ManaV2GlobalAppConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsCustomAppIdPutRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsCustomAppIdPutRequest(BaseModel): __properties: ClassVar[List[str]] = ["appConfig"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_custom_get_response.py b/graphiant_sdk/models/v1_global_apps_custom_get_response.py index 2ebdca37..86e69b0a 100644 --- a/graphiant_sdk/models/v1_global_apps_custom_get_response.py +++ b/graphiant_sdk/models/v1_global_apps_custom_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_global_apps_custom_get_response_entry import V1GlobalAppsCustomGetResponseEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsCustomGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsCustomGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["entries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_custom_get_response_entry.py b/graphiant_sdk/models/v1_global_apps_custom_get_response_entry.py index 7ee4360e..58fe49e8 100644 --- a/graphiant_sdk/models/v1_global_apps_custom_get_response_entry.py +++ b/graphiant_sdk/models/v1_global_apps_custom_get_response_entry.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_global_app_config import ManaV2GlobalAppConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsCustomGetResponseEntry(BaseModel): """ @@ -31,13 +30,12 @@ class V1GlobalAppsCustomGetResponseEntry(BaseModel): """ # noqa: E501 app: Optional[ManaV2App] = None app_config: Optional[ManaV2GlobalAppConfig] = Field(default=None, alias="appConfig") - app_list_reference_count: Optional[StrictInt] = Field(default=None, alias="appListReferenceCount", json_schema_extra={"examples": [123]}) - policy_reference_count: Optional[StrictInt] = Field(default=None, alias="policyReferenceCount", json_schema_extra={"examples": [123]}) + app_list_reference_count: Optional[StrictInt] = Field(default=None, alias="appListReferenceCount") + policy_reference_count: Optional[StrictInt] = Field(default=None, alias="policyReferenceCount") __properties: ClassVar[List[str]] = ["app", "appConfig", "appListReferenceCount", "policyReferenceCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_custom_post_request.py b/graphiant_sdk/models/v1_global_apps_custom_post_request.py index 6b12e712..714daa4c 100644 --- a/graphiant_sdk/models/v1_global_apps_custom_post_request.py +++ b/graphiant_sdk/models/v1_global_apps_custom_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_global_app_config import ManaV2GlobalAppConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsCustomPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsCustomPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["appConfig"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_custom_post_response.py b/graphiant_sdk/models/v1_global_apps_custom_post_response.py index 34c04d2e..dcabb2e5 100644 --- a/graphiant_sdk/models/v1_global_apps_custom_post_response.py +++ b/graphiant_sdk/models/v1_global_apps_custom_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_app_identifier import ManaV2AppIdentifier from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsCustomPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsCustomPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["appIdentifier"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_graphiant_get_response.py b/graphiant_sdk/models/v1_global_apps_graphiant_get_response.py index 959a7ead..d58edc92 100644 --- a/graphiant_sdk/models/v1_global_apps_graphiant_get_response.py +++ b/graphiant_sdk/models/v1_global_apps_graphiant_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_global_apps_graphiant_get_response_entry import V1GlobalAppsGraphiantGetResponseEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsGraphiantGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAppsGraphiantGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["entries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_apps_graphiant_get_response_entry.py b/graphiant_sdk/models/v1_global_apps_graphiant_get_response_entry.py index 117445a0..27d2db8d 100644 --- a/graphiant_sdk/models/v1_global_apps_graphiant_get_response_entry.py +++ b/graphiant_sdk/models/v1_global_apps_graphiant_get_response_entry.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_app import ManaV2App from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAppsGraphiantGetResponseEntry(BaseModel): """ V1GlobalAppsGraphiantGetResponseEntry """ # noqa: E501 app: Optional[ManaV2App] = None - app_list_reference_count: Optional[StrictInt] = Field(default=None, alias="appListReferenceCount", json_schema_extra={"examples": [123]}) - policy_reference_count: Optional[StrictInt] = Field(default=None, alias="policyReferenceCount", json_schema_extra={"examples": [123]}) + app_list_reference_count: Optional[StrictInt] = Field(default=None, alias="appListReferenceCount") + policy_reference_count: Optional[StrictInt] = Field(default=None, alias="policyReferenceCount") __properties: ClassVar[List[str]] = ["app", "appListReferenceCount", "policyReferenceCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_attached_edges_post_request.py b/graphiant_sdk/models/v1_global_attached_edges_post_request.py index 9c90d9c6..bfdf413b 100644 --- a/graphiant_sdk/models/v1_global_attached_edges_post_request.py +++ b/graphiant_sdk/models/v1_global_attached_edges_post_request.py @@ -21,7 +21,6 @@ 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 V1GlobalAttachedEdgesPostRequest(BaseModel): """ @@ -37,8 +36,7 @@ class V1GlobalAttachedEdgesPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["ipfixExportedIds", "ntpIds", "prefixSetIds", "routingPolicyIds", "snmpIds", "syslogServerIds", "trafficPolicyIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_attached_edges_post_response.py b/graphiant_sdk/models/v1_global_attached_edges_post_response.py index 4879fc0b..58bcfef2 100644 --- a/graphiant_sdk/models/v1_global_attached_edges_post_response.py +++ b/graphiant_sdk/models/v1_global_attached_edges_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_global_object_device_status import ManaV2GlobalObjectDeviceStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalAttachedEdgesPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalAttachedEdgesPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["statuses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_config_patch_request.py b/graphiant_sdk/models/v1_global_config_patch_request.py index af840771..18f29702 100644 --- a/graphiant_sdk/models/v1_global_config_patch_request.py +++ b/graphiant_sdk/models/v1_global_config_patch_request.py @@ -30,7 +30,6 @@ from graphiant_sdk.models.mana_v2_nullable_syslog_collector_config import ManaV2NullableSyslogCollectorConfig from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalConfigPatchRequest(BaseModel): """ @@ -48,8 +47,7 @@ class V1GlobalConfigPatchRequest(BaseModel): __properties: ClassVar[List[str]] = ["globalPrefixSets", "ipfixExporters", "ntps", "prefixSets", "routingPolicies", "snmps", "syslogServers", "trafficPolicies", "vpnProfiles"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -61,7 +59,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_config_patch_response.py b/graphiant_sdk/models/v1_global_config_patch_response.py index 3d8b0a06..24cc1753 100644 --- a/graphiant_sdk/models/v1_global_config_patch_response.py +++ b/graphiant_sdk/models/v1_global_config_patch_response.py @@ -21,7 +21,6 @@ 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 V1GlobalConfigPatchResponse(BaseModel): """ @@ -33,15 +32,14 @@ class V1GlobalConfigPatchResponse(BaseModel): prefix_sets: Optional[Dict[str, StrictInt]] = Field(default=None, alias="prefixSets") routing_policies: Optional[Dict[str, StrictInt]] = Field(default=None, alias="routingPolicies") snmps: Optional[Dict[str, StrictInt]] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + status: Optional[StrictStr] = None syslog_servers: Optional[Dict[str, StrictInt]] = Field(default=None, alias="syslogServers") traffic_policies: Optional[Dict[str, StrictInt]] = Field(default=None, alias="trafficPolicies") vpn_profiles: Optional[Dict[str, StrictInt]] = Field(default=None, alias="vpnProfiles") __properties: ClassVar[List[str]] = ["globalPrefixSets", "ipfixExporters", "ntps", "prefixSets", "routingPolicies", "snmps", "status", "syslogServers", "trafficPolicies", "vpnProfiles"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_content_filters_get_response.py b/graphiant_sdk/models/v1_global_content_filters_get_response.py index 6959dc21..ed555047 100644 --- a/graphiant_sdk/models/v1_global_content_filters_get_response.py +++ b/graphiant_sdk/models/v1_global_content_filters_get_response.py @@ -22,7 +22,6 @@ 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): """ @@ -32,8 +31,7 @@ class V1GlobalContentFiltersGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["rows"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: 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 index 1fcea86b..c7d61177 100644 --- a/graphiant_sdk/models/v1_global_content_filters_get_response_row.py +++ b/graphiant_sdk/models/v1_global_content_filters_get_response_row.py @@ -25,15 +25,14 @@ 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", json_schema_extra={"examples": [1234567891011]}) - global_content_filter_name: Optional[StrictStr] = Field(default=None, description="Given name of this global content filter.", alias="globalContentFilterName", json_schema_extra={"examples": ["example string"]}) + 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 @@ -41,8 +40,7 @@ class V1GlobalContentFiltersGetResponseRow(BaseModel): __properties: ClassVar[List[str]] = ["createdAt", "globalContentFilterId", "globalContentFilterName", "lans", "rules", "sites", "updatedAt"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: 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 index db929189..c0e49278 100644 --- 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 @@ -21,18 +21,16 @@ 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", json_schema_extra={"examples": ["example string"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: 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 index d4ff20e9..ba2fae5b 100644 --- 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 @@ -21,19 +21,17 @@ 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", json_schema_extra={"examples": ["example string"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: 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 index 67dda698..41f2a994 100644 --- 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 @@ -21,18 +21,16 @@ 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", json_schema_extra={"examples": ["example string"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: 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 index 750dd0fd..41d392f9 100644 --- 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 @@ -22,7 +22,6 @@ 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): """ @@ -32,8 +31,7 @@ class V1GlobalContentFiltersGlobalContentFilterIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: 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 index dd10c2aa..5c72f12b 100644 --- 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 @@ -22,7 +22,6 @@ 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): """ @@ -32,8 +31,7 @@ class V1GlobalContentFiltersGlobalContentFilterIdPutRequest(BaseModel): __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_content_filters_post_request.py b/graphiant_sdk/models/v1_global_content_filters_post_request.py index 7b9bded1..1806a751 100644 --- a/graphiant_sdk/models/v1_global_content_filters_post_request.py +++ b/graphiant_sdk/models/v1_global_content_filters_post_request.py @@ -22,7 +22,6 @@ 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): """ @@ -32,8 +31,7 @@ class V1GlobalContentFiltersPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["config"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_content_filters_post_response.py b/graphiant_sdk/models/v1_global_content_filters_post_response.py index bd330406..4836f999 100644 --- a/graphiant_sdk/models/v1_global_content_filters_post_response.py +++ b/graphiant_sdk/models/v1_global_content_filters_post_response.py @@ -21,18 +21,16 @@ 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", json_schema_extra={"examples": [1234567891011]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_device_status_get_response.py b/graphiant_sdk/models/v1_global_device_status_get_response.py index d0919137..5211140c 100644 --- a/graphiant_sdk/models/v1_global_device_status_get_response.py +++ b/graphiant_sdk/models/v1_global_device_status_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_global_object_device_status import ManaV2GlobalObjectDeviceStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalDeviceStatusGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalDeviceStatusGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["statuses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_domain_categories_get_response.py b/graphiant_sdk/models/v1_global_domain_categories_get_response.py index f34d9cd0..79df2b2a 100644 --- a/graphiant_sdk/models/v1_global_domain_categories_get_response.py +++ b/graphiant_sdk/models/v1_global_domain_categories_get_response.py @@ -22,7 +22,6 @@ 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): """ @@ -32,8 +31,7 @@ class V1GlobalDomainCategoriesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["domainCategories"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ipfix_device_get_response.py b/graphiant_sdk/models/v1_global_ipfix_device_get_response.py index 18d05410..90c31ebf 100644 --- a/graphiant_sdk/models/v1_global_ipfix_device_get_response.py +++ b/graphiant_sdk/models/v1_global_ipfix_device_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ipfix_exporter import ManaV2IpfixExporter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalIpfixDeviceGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalIpfixDeviceGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["exporters"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ipfix_post_request.py b/graphiant_sdk/models/v1_global_ipfix_post_request.py index 6fd3c915..57390ecb 100644 --- a/graphiant_sdk/models/v1_global_ipfix_post_request.py +++ b/graphiant_sdk/models/v1_global_ipfix_post_request.py @@ -21,7 +21,6 @@ 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 V1GlobalIpfixPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1GlobalIpfixPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["ids"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ipfix_post_response.py b/graphiant_sdk/models/v1_global_ipfix_post_response.py index bb433f4a..1beac7b1 100644 --- a/graphiant_sdk/models/v1_global_ipfix_post_response.py +++ b/graphiant_sdk/models/v1_global_ipfix_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ipfix_exporter import ManaV2IpfixExporter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalIpfixPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalIpfixPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["exporters"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ipfix_site_get_response.py b/graphiant_sdk/models/v1_global_ipfix_site_get_response.py index e31c7592..29ef2a21 100644 --- a/graphiant_sdk/models/v1_global_ipfix_site_get_response.py +++ b/graphiant_sdk/models/v1_global_ipfix_site_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ipfix_exporter import ManaV2IpfixExporter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalIpfixSiteGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalIpfixSiteGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["exporters"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ipsec_profile_get_response.py b/graphiant_sdk/models/v1_global_ipsec_profile_get_response.py index c5468968..1820160a 100644 --- a/graphiant_sdk/models/v1_global_ipsec_profile_get_response.py +++ b/graphiant_sdk/models/v1_global_ipsec_profile_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_global_ipsec_profile_get_response_i_psec_profile_count import V1GlobalIpsecProfileGetResponseIPsecProfileCount from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalIpsecProfileGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalIpsecProfileGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["ipsecProfiles"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ipsec_profile_get_response_i_psec_profile_count.py b/graphiant_sdk/models/v1_global_ipsec_profile_get_response_i_psec_profile_count.py index 1c4f7cc7..2ac9f549 100644 --- a/graphiant_sdk/models/v1_global_ipsec_profile_get_response_i_psec_profile_count.py +++ b/graphiant_sdk/models/v1_global_ipsec_profile_get_response_i_psec_profile_count.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalIpsecProfileGetResponseIPsecProfileCount(BaseModel): """ V1GlobalIpsecProfileGetResponseIPsecProfileCount """ # noqa: E501 - count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - ipsec_profile_name: Optional[StrictStr] = Field(default=None, alias="ipsecProfileName", json_schema_extra={"examples": ["example string"]}) + count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + id: Optional[StrictInt] = None + ipsec_profile_name: Optional[StrictStr] = Field(default=None, alias="ipsecProfileName") __properties: ClassVar[List[str]] = ["count", "id", "ipsecProfileName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ipsec_profile_id_get_response.py b/graphiant_sdk/models/v1_global_ipsec_profile_id_get_response.py index fb4197d7..ea81f5f4 100644 --- a/graphiant_sdk/models/v1_global_ipsec_profile_id_get_response.py +++ b/graphiant_sdk/models/v1_global_ipsec_profile_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_i_psec_profile import ManaV2IPsecProfile from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalIpsecProfileIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalIpsecProfileIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["ipsecProfile"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_response.py b/graphiant_sdk/models/v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_response.py index 4bedc15c..3189828f 100644 --- a/graphiant_sdk/models/v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_response.py +++ b/graphiant_sdk/models/v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_response_site_to_site_vpn import V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponseSiteToSiteVpn from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["siteToSiteVpn"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_response_site_to_site_vpn.py b/graphiant_sdk/models/v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_response_site_to_site_vpn.py index 787e0a01..a3300b29 100644 --- a/graphiant_sdk/models/v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_response_site_to_site_vpn.py +++ b/graphiant_sdk/models/v1_global_ipsec_profile_vpn_profile_id_site_to_site_get_response_site_to_site_vpn.py @@ -22,21 +22,19 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponseSiteToSiteVpn(BaseModel): """ V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponseSiteToSiteVpn """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + type: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceId", "id", "name", "type"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_lan_segments_get_response.py b/graphiant_sdk/models/v1_global_lan_segments_get_response.py index 6e9e3b3b..74fdf875 100644 --- a/graphiant_sdk/models/v1_global_lan_segments_get_response.py +++ b/graphiant_sdk/models/v1_global_lan_segments_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_global_lan_segments_get_response_entry import V1GlobalLanSegmentsGetResponseEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalLanSegmentsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalLanSegmentsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["entries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_lan_segments_get_response_entry.py b/graphiant_sdk/models/v1_global_lan_segments_get_response_entry.py index d2e1690a..da179b8d 100644 --- a/graphiant_sdk/models/v1_global_lan_segments_get_response_entry.py +++ b/graphiant_sdk/models/v1_global_lan_segments_get_response_entry.py @@ -22,24 +22,22 @@ 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 V1GlobalLanSegmentsGetResponseEntry(BaseModel): """ V1GlobalLanSegmentsGetResponseEntry """ # noqa: E501 - associated_interfaces: Optional[StrictInt] = Field(default=None, alias="associatedInterfaces", json_schema_extra={"examples": [123]}) + associated_interfaces: Optional[StrictInt] = Field(default=None, alias="associatedInterfaces") created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - edge_references: Optional[StrictInt] = Field(default=None, alias="edgeReferences", json_schema_extra={"examples": [123]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - site_list_references: Optional[StrictInt] = Field(default=None, alias="siteListReferences", json_schema_extra={"examples": [123]}) + description: Optional[StrictStr] = None + edge_references: Optional[StrictInt] = Field(default=None, alias="edgeReferences") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + site_list_references: Optional[StrictInt] = Field(default=None, alias="siteListReferences") __properties: ClassVar[List[str]] = ["associatedInterfaces", "createdAt", "description", "edgeReferences", "id", "name", "siteListReferences"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_lan_segments_post_request.py b/graphiant_sdk/models/v1_global_lan_segments_post_request.py index f3ebbd14..e4e14cdd 100644 --- a/graphiant_sdk/models/v1_global_lan_segments_post_request.py +++ b/graphiant_sdk/models/v1_global_lan_segments_post_request.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 V1GlobalLanSegmentsPostRequest(BaseModel): """ V1GlobalLanSegmentsPostRequest """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_lan_segments_post_response.py b/graphiant_sdk/models/v1_global_lan_segments_post_response.py index e0fc0eb3..8db011ab 100644 --- a/graphiant_sdk/models/v1_global_lan_segments_post_response.py +++ b/graphiant_sdk/models/v1_global_lan_segments_post_response.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 V1GlobalLanSegmentsPostResponse(BaseModel): """ V1GlobalLanSegmentsPostResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_lan_segments_vrf_id_devices_get_response.py b/graphiant_sdk/models/v1_global_lan_segments_vrf_id_devices_get_response.py index 3885a75a..abb53ae2 100644 --- a/graphiant_sdk/models/v1_global_lan_segments_vrf_id_devices_get_response.py +++ b/graphiant_sdk/models/v1_global_lan_segments_vrf_id_devices_get_response.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.v1_global_lan_segments_vrf_id_devices_get_response_entry import V1GlobalLanSegmentsVrfIdDevicesGetResponseEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalLanSegmentsVrfIdDevicesGetResponse(BaseModel): """ V1GlobalLanSegmentsVrfIdDevicesGetResponse """ # noqa: E501 entries: Optional[List[V1GlobalLanSegmentsVrfIdDevicesGetResponseEntry]] = None - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["entries", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_lan_segments_vrf_id_devices_get_response_entry.py b/graphiant_sdk/models/v1_global_lan_segments_vrf_id_devices_get_response_entry.py index 3c6b4b9d..40f66aec 100644 --- a/graphiant_sdk/models/v1_global_lan_segments_vrf_id_devices_get_response_entry.py +++ b/graphiant_sdk/models/v1_global_lan_segments_vrf_id_devices_get_response_entry.py @@ -21,22 +21,20 @@ 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 V1GlobalLanSegmentsVrfIdDevicesGetResponseEntry(BaseModel): """ V1GlobalLanSegmentsVrfIdDevicesGetResponseEntry """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - host_name: Optional[StrictStr] = Field(default=None, alias="hostName", json_schema_extra={"examples": ["example string"]}) - num_interfaces: Optional[StrictInt] = Field(default=None, alias="numInterfaces", json_schema_extra={"examples": [123]}) - site: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - status: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + host_name: Optional[StrictStr] = Field(default=None, alias="hostName") + num_interfaces: Optional[StrictInt] = Field(default=None, alias="numInterfaces") + site: Optional[StrictInt] = None + status: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["deviceId", "hostName", "numInterfaces", "site", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ntps_device_get_response.py b/graphiant_sdk/models/v1_global_ntps_device_get_response.py index 09ab2f5f..b8ab0565 100644 --- a/graphiant_sdk/models/v1_global_ntps_device_get_response.py +++ b/graphiant_sdk/models/v1_global_ntps_device_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ntp import ManaV2Ntp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalNtpsDeviceGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalNtpsDeviceGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["ntps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ntps_post_request.py b/graphiant_sdk/models/v1_global_ntps_post_request.py index b75d4cef..f051806f 100644 --- a/graphiant_sdk/models/v1_global_ntps_post_request.py +++ b/graphiant_sdk/models/v1_global_ntps_post_request.py @@ -21,7 +21,6 @@ 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 V1GlobalNtpsPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1GlobalNtpsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["ids"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ntps_post_response.py b/graphiant_sdk/models/v1_global_ntps_post_response.py index 04a64709..bbb0ae35 100644 --- a/graphiant_sdk/models/v1_global_ntps_post_response.py +++ b/graphiant_sdk/models/v1_global_ntps_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ntp import ManaV2Ntp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalNtpsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalNtpsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["ntps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_ntps_site_get_response.py b/graphiant_sdk/models/v1_global_ntps_site_get_response.py index 3a75d0fe..d1f6a9cb 100644 --- a/graphiant_sdk/models/v1_global_ntps_site_get_response.py +++ b/graphiant_sdk/models/v1_global_ntps_site_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_ntp import ManaV2Ntp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalNtpsSiteGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalNtpsSiteGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["ntps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_prefix_sets_post_request.py b/graphiant_sdk/models/v1_global_prefix_sets_post_request.py index 7507dedd..9cfece21 100644 --- a/graphiant_sdk/models/v1_global_prefix_sets_post_request.py +++ b/graphiant_sdk/models/v1_global_prefix_sets_post_request.py @@ -21,7 +21,6 @@ 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 V1GlobalPrefixSetsPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1GlobalPrefixSetsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["ids"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_prefix_sets_post_response.py b/graphiant_sdk/models/v1_global_prefix_sets_post_response.py index c0d351ee..f9e224ed 100644 --- a/graphiant_sdk/models/v1_global_prefix_sets_post_response.py +++ b/graphiant_sdk/models/v1_global_prefix_sets_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_prefix_set import ManaV2PrefixSet from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalPrefixSetsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalPrefixSetsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["prefixSets"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_routing_policies_post_request.py b/graphiant_sdk/models/v1_global_routing_policies_post_request.py index 38868d67..11c94051 100644 --- a/graphiant_sdk/models/v1_global_routing_policies_post_request.py +++ b/graphiant_sdk/models/v1_global_routing_policies_post_request.py @@ -21,7 +21,6 @@ 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 V1GlobalRoutingPoliciesPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1GlobalRoutingPoliciesPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["ids"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_routing_policies_post_response.py b/graphiant_sdk/models/v1_global_routing_policies_post_response.py index 5d6dab68..03dd8f11 100644 --- a/graphiant_sdk/models/v1_global_routing_policies_post_response.py +++ b/graphiant_sdk/models/v1_global_routing_policies_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_routing_policy import ManaV2RoutingPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalRoutingPoliciesPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalRoutingPoliciesPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["routingPolicies"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_site_lists_get_response.py b/graphiant_sdk/models/v1_global_site_lists_get_response.py index 7d34d0fa..c1061836 100644 --- a/graphiant_sdk/models/v1_global_site_lists_get_response.py +++ b/graphiant_sdk/models/v1_global_site_lists_get_response.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.v1_global_site_lists_get_response_entry import V1GlobalSiteListsGetResponseEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSiteListsGetResponse(BaseModel): """ V1GlobalSiteListsGetResponse """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None entries: Optional[List[V1GlobalSiteListsGetResponseEntry]] = None __properties: ClassVar[List[str]] = ["description", "entries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_site_lists_get_response_entry.py b/graphiant_sdk/models/v1_global_site_lists_get_response_entry.py index 6847c49e..6ad3daff 100644 --- a/graphiant_sdk/models/v1_global_site_lists_get_response_entry.py +++ b/graphiant_sdk/models/v1_global_site_lists_get_response_entry.py @@ -22,24 +22,22 @@ 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 V1GlobalSiteListsGetResponseEntry(BaseModel): """ V1GlobalSiteListsGetResponseEntry """ # noqa: E501 created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - edge_references: Optional[StrictInt] = Field(default=None, alias="edgeReferences", json_schema_extra={"examples": [123]}) - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - policy_references: Optional[StrictInt] = Field(default=None, alias="policyReferences", json_schema_extra={"examples": [123]}) - site_list_references: Optional[StrictInt] = Field(default=None, alias="siteListReferences", json_schema_extra={"examples": [123]}) + description: Optional[StrictStr] = None + edge_references: Optional[StrictInt] = Field(default=None, alias="edgeReferences") + id: Optional[StrictInt] = None + name: Optional[StrictStr] = None + policy_references: Optional[StrictInt] = Field(default=None, alias="policyReferences") + site_list_references: Optional[StrictInt] = Field(default=None, alias="siteListReferences") __properties: ClassVar[List[str]] = ["createdAt", "description", "edgeReferences", "id", "name", "policyReferences", "siteListReferences"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_site_lists_id_get_response.py b/graphiant_sdk/models/v1_global_site_lists_id_get_response.py index 8a33d7d1..638e14bc 100644 --- a/graphiant_sdk/models/v1_global_site_lists_id_get_response.py +++ b/graphiant_sdk/models/v1_global_site_lists_id_get_response.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_site_list_entry import ManaV2SiteListEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSiteListsIdGetResponse(BaseModel): """ V1GlobalSiteListsIdGetResponse """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None entries: Optional[List[ManaV2SiteListEntry]] = None __properties: ClassVar[List[str]] = ["description", "entries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_site_lists_id_put_request.py b/graphiant_sdk/models/v1_global_site_lists_id_put_request.py index 9789752c..a21294d9 100644 --- a/graphiant_sdk/models/v1_global_site_lists_id_put_request.py +++ b/graphiant_sdk/models/v1_global_site_lists_id_put_request.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_site_list_entry import ManaV2SiteListEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSiteListsIdPutRequest(BaseModel): """ V1GlobalSiteListsIdPutRequest """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None entries: Optional[List[ManaV2SiteListEntry]] = None __properties: ClassVar[List[str]] = ["description", "entries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_site_lists_id_put_response.py b/graphiant_sdk/models/v1_global_site_lists_id_put_response.py index b22ec9ef..a6e1afbb 100644 --- a/graphiant_sdk/models/v1_global_site_lists_id_put_response.py +++ b/graphiant_sdk/models/v1_global_site_lists_id_put_response.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 V1GlobalSiteListsIdPutResponse(BaseModel): """ V1GlobalSiteListsIdPutResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_site_lists_id_sites_get_response.py b/graphiant_sdk/models/v1_global_site_lists_id_sites_get_response.py index 44df5608..517f265d 100644 --- a/graphiant_sdk/models/v1_global_site_lists_id_sites_get_response.py +++ b/graphiant_sdk/models/v1_global_site_lists_id_sites_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_site_list_site_entry import ManaV2SiteListSiteEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSiteListsIdSitesGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalSiteListsIdSitesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["entries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_site_lists_post_request.py b/graphiant_sdk/models/v1_global_site_lists_post_request.py index ce73024b..5cb4aae7 100644 --- a/graphiant_sdk/models/v1_global_site_lists_post_request.py +++ b/graphiant_sdk/models/v1_global_site_lists_post_request.py @@ -17,25 +17,23 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_site_list_entry import ManaV2SiteListEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSiteListsPostRequest(BaseModel): """ V1GlobalSiteListsPostRequest """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + description: Optional[StrictStr] = None entries: Optional[List[ManaV2SiteListEntry]] = None - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["description", "entries", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_site_lists_post_response.py b/graphiant_sdk/models/v1_global_site_lists_post_response.py index 9e933bb8..178b9768 100644 --- a/graphiant_sdk/models/v1_global_site_lists_post_response.py +++ b/graphiant_sdk/models/v1_global_site_lists_post_response.py @@ -17,23 +17,21 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, 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 V1GlobalSiteListsPostResponse(BaseModel): """ V1GlobalSiteListsPostResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = None + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["id", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_site_status_get_response.py b/graphiant_sdk/models/v1_global_site_status_get_response.py index 37e005d1..d32fafda 100644 --- a/graphiant_sdk/models/v1_global_site_status_get_response.py +++ b/graphiant_sdk/models/v1_global_site_status_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_global_object_device_status import ManaV2GlobalObjectDeviceStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSiteStatusGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalSiteStatusGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["statuses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_snmps_device_get_response.py b/graphiant_sdk/models/v1_global_snmps_device_get_response.py index f709d6fc..ca2d02a9 100644 --- a/graphiant_sdk/models/v1_global_snmps_device_get_response.py +++ b/graphiant_sdk/models/v1_global_snmps_device_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp import ManaV2Snmp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSnmpsDeviceGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalSnmpsDeviceGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["snmps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_snmps_post_request.py b/graphiant_sdk/models/v1_global_snmps_post_request.py index 95135591..f10f16dd 100644 --- a/graphiant_sdk/models/v1_global_snmps_post_request.py +++ b/graphiant_sdk/models/v1_global_snmps_post_request.py @@ -21,7 +21,6 @@ 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 V1GlobalSnmpsPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1GlobalSnmpsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["ids"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_snmps_post_response.py b/graphiant_sdk/models/v1_global_snmps_post_response.py index 509bb20d..6f8c3fce 100644 --- a/graphiant_sdk/models/v1_global_snmps_post_response.py +++ b/graphiant_sdk/models/v1_global_snmps_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp import ManaV2Snmp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSnmpsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalSnmpsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["snmps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_snmps_site_get_response.py b/graphiant_sdk/models/v1_global_snmps_site_get_response.py index 7301552b..fe0f06d6 100644 --- a/graphiant_sdk/models/v1_global_snmps_site_get_response.py +++ b/graphiant_sdk/models/v1_global_snmps_site_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_snmp import ManaV2Snmp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSnmpsSiteGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalSnmpsSiteGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["snmps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_summary_post_request.py b/graphiant_sdk/models/v1_global_summary_post_request.py index 5aa25b61..ff92f321 100644 --- a/graphiant_sdk/models/v1_global_summary_post_request.py +++ b/graphiant_sdk/models/v1_global_summary_post_request.py @@ -21,24 +21,22 @@ 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 V1GlobalSummaryPostRequest(BaseModel): """ V1GlobalSummaryPostRequest """ # noqa: E501 - ipfix_exported_type: Optional[StrictBool] = Field(default=None, alias="ipfixExportedType", json_schema_extra={"examples": [True]}) - ntp_type: Optional[StrictBool] = Field(default=None, alias="ntpType", json_schema_extra={"examples": [True]}) - prefix_set_type: Optional[StrictBool] = Field(default=None, alias="prefixSetType", json_schema_extra={"examples": [True]}) - routing_policy_type: Optional[StrictBool] = Field(default=None, alias="routingPolicyType", json_schema_extra={"examples": [True]}) - snmp_type: Optional[StrictBool] = Field(default=None, alias="snmpType", json_schema_extra={"examples": [True]}) - syslog_server_type: Optional[StrictBool] = Field(default=None, alias="syslogServerType", json_schema_extra={"examples": [True]}) - traffic_policy_type: Optional[StrictBool] = Field(default=None, alias="trafficPolicyType", json_schema_extra={"examples": [True]}) + ipfix_exported_type: Optional[StrictBool] = Field(default=None, alias="ipfixExportedType") + ntp_type: Optional[StrictBool] = Field(default=None, alias="ntpType") + prefix_set_type: Optional[StrictBool] = Field(default=None, alias="prefixSetType") + routing_policy_type: Optional[StrictBool] = Field(default=None, alias="routingPolicyType") + snmp_type: Optional[StrictBool] = Field(default=None, alias="snmpType") + syslog_server_type: Optional[StrictBool] = Field(default=None, alias="syslogServerType") + traffic_policy_type: Optional[StrictBool] = Field(default=None, alias="trafficPolicyType") __properties: ClassVar[List[str]] = ["ipfixExportedType", "ntpType", "prefixSetType", "routingPolicyType", "snmpType", "syslogServerType", "trafficPolicyType"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_summary_post_response.py b/graphiant_sdk/models/v1_global_summary_post_response.py index 9943ff71..2a4d7acd 100644 --- a/graphiant_sdk/models/v1_global_summary_post_response.py +++ b/graphiant_sdk/models/v1_global_summary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_global_object_summary import ManaV2GlobalObjectSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalSummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["summaries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_sync_post_request.py b/graphiant_sdk/models/v1_global_sync_post_request.py index 8915a11c..167853d9 100644 --- a/graphiant_sdk/models/v1_global_sync_post_request.py +++ b/graphiant_sdk/models/v1_global_sync_post_request.py @@ -21,25 +21,23 @@ 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 V1GlobalSyncPostRequest(BaseModel): """ V1GlobalSyncPostRequest """ # noqa: E501 device_ids: Optional[List[StrictInt]] = Field(default=None, alias="deviceIds") - ipfix_exported_id: Optional[StrictInt] = Field(default=None, alias="ipfixExportedId", json_schema_extra={"examples": [1234567891011]}) - ntp_id: Optional[StrictInt] = Field(default=None, alias="ntpId", json_schema_extra={"examples": [1234567891011]}) - prefix_set_id: Optional[StrictInt] = Field(default=None, alias="prefixSetId", json_schema_extra={"examples": [1234567891011]}) - routing_policy_id: Optional[StrictInt] = Field(default=None, alias="routingPolicyId", json_schema_extra={"examples": [1234567891011]}) - snmp_id: Optional[StrictInt] = Field(default=None, alias="snmpId", json_schema_extra={"examples": [1234567891011]}) - syslog_server_id: Optional[StrictInt] = Field(default=None, alias="syslogServerId", json_schema_extra={"examples": [1234567891011]}) - traffic_policy_id: Optional[StrictInt] = Field(default=None, alias="trafficPolicyId", json_schema_extra={"examples": [1234567891011]}) + ipfix_exported_id: Optional[StrictInt] = Field(default=None, alias="ipfixExportedId") + ntp_id: Optional[StrictInt] = Field(default=None, alias="ntpId") + prefix_set_id: Optional[StrictInt] = Field(default=None, alias="prefixSetId") + routing_policy_id: Optional[StrictInt] = Field(default=None, alias="routingPolicyId") + snmp_id: Optional[StrictInt] = Field(default=None, alias="snmpId") + syslog_server_id: Optional[StrictInt] = Field(default=None, alias="syslogServerId") + traffic_policy_id: Optional[StrictInt] = Field(default=None, alias="trafficPolicyId") __properties: ClassVar[List[str]] = ["deviceIds", "ipfixExportedId", "ntpId", "prefixSetId", "routingPolicyId", "snmpId", "syslogServerId", "trafficPolicyId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_syslogs_device_get_response.py b/graphiant_sdk/models/v1_global_syslogs_device_get_response.py index 009cd992..458264b6 100644 --- a/graphiant_sdk/models/v1_global_syslogs_device_get_response.py +++ b/graphiant_sdk/models/v1_global_syslogs_device_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_syslog_collector import ManaV2SyslogCollector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSyslogsDeviceGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalSyslogsDeviceGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["collectors"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_syslogs_post_request.py b/graphiant_sdk/models/v1_global_syslogs_post_request.py index 554f6644..6199d0aa 100644 --- a/graphiant_sdk/models/v1_global_syslogs_post_request.py +++ b/graphiant_sdk/models/v1_global_syslogs_post_request.py @@ -21,7 +21,6 @@ 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 V1GlobalSyslogsPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1GlobalSyslogsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["ids"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_syslogs_post_response.py b/graphiant_sdk/models/v1_global_syslogs_post_response.py index 387e15a8..dfa3bd79 100644 --- a/graphiant_sdk/models/v1_global_syslogs_post_response.py +++ b/graphiant_sdk/models/v1_global_syslogs_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_syslog_collector import ManaV2SyslogCollector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSyslogsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalSyslogsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["collectors"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_syslogs_site_get_response.py b/graphiant_sdk/models/v1_global_syslogs_site_get_response.py index 9d7f126d..f86cfbf8 100644 --- a/graphiant_sdk/models/v1_global_syslogs_site_get_response.py +++ b/graphiant_sdk/models/v1_global_syslogs_site_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_syslog_collector import ManaV2SyslogCollector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalSyslogsSiteGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalSyslogsSiteGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["collectors"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_traffic_policies_post_request.py b/graphiant_sdk/models/v1_global_traffic_policies_post_request.py index 46ab2a29..617ce037 100644 --- a/graphiant_sdk/models/v1_global_traffic_policies_post_request.py +++ b/graphiant_sdk/models/v1_global_traffic_policies_post_request.py @@ -21,7 +21,6 @@ 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 V1GlobalTrafficPoliciesPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1GlobalTrafficPoliciesPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["ids"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_global_traffic_policies_post_response.py b/graphiant_sdk/models/v1_global_traffic_policies_post_response.py index 89de9aad..569e595a 100644 --- a/graphiant_sdk/models/v1_global_traffic_policies_post_response.py +++ b/graphiant_sdk/models/v1_global_traffic_policies_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_forwarding_policy import ManaV2ForwardingPolicy from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GlobalTrafficPoliciesPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GlobalTrafficPoliciesPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["trafficPolicy"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_groups_enterprises_get_response.py b/graphiant_sdk/models/v1_groups_enterprises_get_response.py index 37f192c0..7ae18e33 100644 --- a/graphiant_sdk/models/v1_groups_enterprises_get_response.py +++ b/graphiant_sdk/models/v1_groups_enterprises_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.iam_group import IamGroup from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GroupsEnterprisesGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GroupsEnterprisesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["groups"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_groups_get_response.py b/graphiant_sdk/models/v1_groups_get_response.py index 102a5874..498351ec 100644 --- a/graphiant_sdk/models/v1_groups_get_response.py +++ b/graphiant_sdk/models/v1_groups_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.iam_group import IamGroup from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GroupsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GroupsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["groups"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_groups_id_enterprises_post_request.py b/graphiant_sdk/models/v1_groups_id_enterprises_post_request.py index 202bb525..a63f43c6 100644 --- a/graphiant_sdk/models/v1_groups_id_enterprises_post_request.py +++ b/graphiant_sdk/models/v1_groups_id_enterprises_post_request.py @@ -21,7 +21,6 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GroupsIdEnterprisesPostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1GroupsIdEnterprisesPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["enterpriseIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_groups_id_members_delete_post_request.py b/graphiant_sdk/models/v1_groups_id_members_delete_post_request.py index 998577b8..de40acfe 100644 --- a/graphiant_sdk/models/v1_groups_id_members_delete_post_request.py +++ b/graphiant_sdk/models/v1_groups_id_members_delete_post_request.py @@ -21,7 +21,6 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GroupsIdMembersDeletePostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1GroupsIdMembersDeletePostRequest(BaseModel): __properties: ClassVar[List[str]] = ["memberIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_groups_id_members_get_response.py b/graphiant_sdk/models/v1_groups_id_members_get_response.py index 469ea0a3..36ef2c59 100644 --- a/graphiant_sdk/models/v1_groups_id_members_get_response.py +++ b/graphiant_sdk/models/v1_groups_id_members_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.common_user import CommonUser from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GroupsIdMembersGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GroupsIdMembersGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["users"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_groups_id_members_post_request.py b/graphiant_sdk/models/v1_groups_id_members_post_request.py index 6a96a88d..dd21171c 100644 --- a/graphiant_sdk/models/v1_groups_id_members_post_request.py +++ b/graphiant_sdk/models/v1_groups_id_members_post_request.py @@ -21,19 +21,17 @@ 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 V1GroupsIdMembersPostRequest(BaseModel): """ V1GroupsIdMembersPostRequest """ # noqa: E501 member_ids: List[StrictStr] = Field(alias="memberIds") - replace_existing: Optional[StrictBool] = Field(default=None, alias="replaceExisting", json_schema_extra={"examples": [True]}) + replace_existing: Optional[StrictBool] = Field(default=None, alias="replaceExisting") __properties: ClassVar[List[str]] = ["memberIds", "replaceExisting"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_groups_id_patch_request.py b/graphiant_sdk/models/v1_groups_id_patch_request.py index 616421c2..23aff28a 100644 --- a/graphiant_sdk/models/v1_groups_id_patch_request.py +++ b/graphiant_sdk/models/v1_groups_id_patch_request.py @@ -22,23 +22,21 @@ from graphiant_sdk.models.common_permissions import CommonPermissions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GroupsIdPatchRequest(BaseModel): """ V1GroupsIdPatchRequest """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - display_name: Optional[StrictStr] = Field(default=None, alias="displayName", json_schema_extra={"examples": ["example string"]}) - group_type: Optional[StrictStr] = Field(default=None, alias="groupType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + description: Optional[StrictStr] = None + display_name: Optional[StrictStr] = Field(default=None, alias="displayName") + group_type: Optional[StrictStr] = Field(default=None, alias="groupType") permissions: Optional[CommonPermissions] = None - time_window_end: Optional[StrictInt] = Field(default=None, alias="timeWindowEnd", json_schema_extra={"examples": [1234567891011]}) - time_window_start: Optional[StrictInt] = Field(default=None, alias="timeWindowStart", json_schema_extra={"examples": [1234567891011]}) + time_window_end: Optional[StrictInt] = Field(default=None, alias="timeWindowEnd") + time_window_start: Optional[StrictInt] = Field(default=None, alias="timeWindowStart") __properties: ClassVar[List[str]] = ["description", "displayName", "groupType", "permissions", "timeWindowEnd", "timeWindowStart"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_groups_put_request.py b/graphiant_sdk/models/v1_groups_put_request.py index 068e8ffa..430fc208 100644 --- a/graphiant_sdk/models/v1_groups_put_request.py +++ b/graphiant_sdk/models/v1_groups_put_request.py @@ -22,25 +22,23 @@ from graphiant_sdk.models.common_permissions import CommonPermissions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GroupsPutRequest(BaseModel): """ V1GroupsPutRequest """ # noqa: E501 - description: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) - group_id: Optional[StrictStr] = Field(default=None, description="Only supply if enterprise uses an idp", alias="groupId", json_schema_extra={"examples": ["example string"]}) - group_type: Optional[StrictStr] = Field(default=None, alias="groupType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - manages_enterprises: Optional[StrictBool] = Field(default=None, alias="managesEnterprises", json_schema_extra={"examples": [True]}) - name: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) + description: StrictStr = Field(description=" (required)") + group_id: Optional[StrictStr] = Field(default=None, description="Only supply if enterprise uses an idp", alias="groupId") + group_type: Optional[StrictStr] = Field(default=None, alias="groupType") + manages_enterprises: Optional[StrictBool] = Field(default=None, alias="managesEnterprises") + name: StrictStr = Field(description=" (required)") permissions: Optional[CommonPermissions] = None - time_window_end: Optional[StrictInt] = Field(default=None, alias="timeWindowEnd", json_schema_extra={"examples": [1234567891011]}) - time_window_start: Optional[StrictInt] = Field(default=None, alias="timeWindowStart", json_schema_extra={"examples": [1234567891011]}) + time_window_end: Optional[StrictInt] = Field(default=None, alias="timeWindowEnd") + time_window_start: Optional[StrictInt] = Field(default=None, alias="timeWindowStart") __properties: ClassVar[List[str]] = ["description", "groupId", "groupType", "managesEnterprises", "name", "permissions", "timeWindowEnd", "timeWindowStart"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_groups_root_get_response.py b/graphiant_sdk/models/v1_groups_root_get_response.py index df99d21f..af090a56 100644 --- a/graphiant_sdk/models/v1_groups_root_get_response.py +++ b/graphiant_sdk/models/v1_groups_root_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.iam_group import IamGroup from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1GroupsRootGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1GroupsRootGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["groups"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_invitation_email_post_request.py b/graphiant_sdk/models/v1_invitation_email_post_request.py index 5b113e76..143e9299 100644 --- a/graphiant_sdk/models/v1_invitation_email_post_request.py +++ b/graphiant_sdk/models/v1_invitation_email_post_request.py @@ -21,24 +21,23 @@ 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 V1InvitationEmailPostRequest(BaseModel): """ V1InvitationEmailPostRequest """ # noqa: E501 - admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail", json_schema_extra={"examples": ["example string"]}) - customer_id: Optional[StrictInt] = Field(default=None, alias="customerId", json_schema_extra={"examples": [1234567891011]}) - customer_name: StrictStr = Field(description=" (required)", alias="customerName", json_schema_extra={"examples": ["example string"]}) - is_graphiant: Optional[StrictBool] = Field(default=None, alias="isGraphiant", json_schema_extra={"examples": [True]}) - match_id: StrictInt = Field(description=" (required)", alias="matchId", json_schema_extra={"examples": [1234567891011]}) - service_id: StrictInt = Field(description=" (required)", alias="serviceId", json_schema_extra={"examples": [1234567891011]}) - service_name: StrictStr = Field(description=" (required)", alias="serviceName", json_schema_extra={"examples": ["example string"]}) - __properties: ClassVar[List[str]] = ["adminEmail", "customerId", "customerName", "isGraphiant", "matchId", "serviceId", "serviceName"] + admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail") + customer_id: Optional[StrictInt] = Field(default=None, alias="customerId") + customer_name: StrictStr = Field(description=" (required)", alias="customerName") + is_graphiant: Optional[StrictBool] = Field(default=None, alias="isGraphiant") + match_id: StrictInt = Field(description=" (required)", alias="matchId") + service_id: StrictInt = Field(description=" (required)", alias="serviceId") + service_name: StrictStr = Field(description=" (required)", alias="serviceName") + service_type: Optional[StrictStr] = Field(default=None, description="Extranet service type URL segment (e.g. peering_service, client_to_server)", alias="serviceType") + __properties: ClassVar[List[str]] = ["adminEmail", "customerId", "customerName", "isGraphiant", "matchId", "serviceId", "serviceName", "serviceType"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: @@ -93,7 +93,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isGraphiant": obj.get("isGraphiant"), "matchId": obj.get("matchId"), "serviceId": obj.get("serviceId"), - "serviceName": obj.get("serviceName") + "serviceName": obj.get("serviceName"), + "serviceType": obj.get("serviceType") }) return _obj diff --git a/graphiant_sdk/models/v1_lan_segments_get_response.py b/graphiant_sdk/models/v1_lan_segments_get_response.py index 36af794b..eb5b69c0 100644 --- a/graphiant_sdk/models/v1_lan_segments_get_response.py +++ b/graphiant_sdk/models/v1_lan_segments_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_vrf import ManaV2Vrf from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1LanSegmentsGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1LanSegmentsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["pageInfo", "segments"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_lan_segments_interfaces_public_get_response.py b/graphiant_sdk/models/v1_lan_segments_interfaces_public_get_response.py new file mode 100644 index 00000000..1c6002de --- /dev/null +++ b/graphiant_sdk/models/v1_lan_segments_interfaces_public_get_response.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 + + +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_lan_segment_public_interfaces_lists import ManaV2LanSegmentPublicInterfacesLists +from typing import Optional, Set +from typing_extensions import Self + +class V1LanSegmentsInterfacesPublicGetResponse(BaseModel): + """ + V1LanSegmentsInterfacesPublicGetResponse + """ # noqa: E501 + lan_segment_ids: Optional[Dict[str, ManaV2LanSegmentPublicInterfacesLists]] = Field(default=None, alias="lanSegmentIds") + __properties: ClassVar[List[str]] = ["lanSegmentIds"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1LanSegmentsInterfacesPublicGetResponse 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 value in lan_segment_ids (dict) + _field_dict = {} + if self.lan_segment_ids: + for _key_lan_segment_ids in self.lan_segment_ids: + if self.lan_segment_ids[_key_lan_segment_ids]: + _field_dict[_key_lan_segment_ids] = self.lan_segment_ids[_key_lan_segment_ids].to_dict() + _dict['lanSegmentIds'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1LanSegmentsInterfacesPublicGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "lanSegmentIds": dict( + (_k, ManaV2LanSegmentPublicInterfacesLists.from_dict(_v)) + for _k, _v in obj["lanSegmentIds"].items() + ) + if obj.get("lanSegmentIds") is not None + else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_lldp_interface_id_neighbors_get_response.py b/graphiant_sdk/models/v1_lldp_interface_id_neighbors_get_response.py index f61f1633..c5481489 100644 --- a/graphiant_sdk/models/v1_lldp_interface_id_neighbors_get_response.py +++ b/graphiant_sdk/models/v1_lldp_interface_id_neighbors_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_lldp_neighbor import ManaV2LldpNeighbor from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1LldpInterfaceIdNeighborsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1LldpInterfaceIdNeighborsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["neighbors"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_lldp_interface_id_summary_get_response.py b/graphiant_sdk/models/v1_lldp_interface_id_summary_get_response.py index cd6ee47f..3ea17325 100644 --- a/graphiant_sdk/models/v1_lldp_interface_id_summary_get_response.py +++ b/graphiant_sdk/models/v1_lldp_interface_id_summary_get_response.py @@ -21,19 +21,17 @@ 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 V1LldpInterfaceIdSummaryGetResponse(BaseModel): """ V1LldpInterfaceIdSummaryGetResponse """ # noqa: E501 - num_neighbors: Optional[StrictInt] = Field(default=None, alias="numNeighbors", json_schema_extra={"examples": [1234567891011]}) - num_vendors: Optional[StrictInt] = Field(default=None, alias="numVendors", json_schema_extra={"examples": [1234567891011]}) + num_neighbors: Optional[StrictInt] = Field(default=None, alias="numNeighbors") + num_vendors: Optional[StrictInt] = Field(default=None, alias="numVendors") __properties: ClassVar[List[str]] = ["numNeighbors", "numVendors"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_lldp_interface_id_vendors_get_response.py b/graphiant_sdk/models/v1_lldp_interface_id_vendors_get_response.py index 1443892c..1565631b 100644 --- a/graphiant_sdk/models/v1_lldp_interface_id_vendors_get_response.py +++ b/graphiant_sdk/models/v1_lldp_interface_id_vendors_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_vendor_detail import ManaV2VendorDetail from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1LldpInterfaceIdVendorsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1LldpInterfaceIdVendorsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["vendors"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_logs_post_request.py b/graphiant_sdk/models/v1_logs_post_request.py index b97f2cf2..1bf9ad6b 100644 --- a/graphiant_sdk/models/v1_logs_post_request.py +++ b/graphiant_sdk/models/v1_logs_post_request.py @@ -24,25 +24,23 @@ from graphiant_sdk.models.syslogmon_syslogs_selector import SyslogmonSyslogsSelector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1LogsPostRequest(BaseModel): """ V1LogsPostRequest """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) - customer_view: Optional[StrictBool] = Field(default=None, alias="customerView", json_schema_extra={"examples": [True]}) + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") + customer_view: Optional[StrictBool] = Field(default=None, alias="customerView") device_ids: Optional[List[Annotated[int, Field(strict=True, ge=0)]]] = Field(default=None, alias="deviceIds") - histogram_bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="histogramBucketSizeSec", json_schema_extra={"examples": [123]}) - num_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numLogs", json_schema_extra={"examples": [123]}) + histogram_bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="histogramBucketSizeSec") + num_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numLogs") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") selectors: Optional[List[SyslogmonSyslogsSelector]] = None __properties: ClassVar[List[str]] = ["cursorRef", "customerView", "deviceIds", "histogramBucketSizeSec", "numLogs", "oldTs", "recentTs", "selectors"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_logs_post_response.py b/graphiant_sdk/models/v1_logs_post_response.py index 0e404dc9..3e73547b 100644 --- a/graphiant_sdk/models/v1_logs_post_response.py +++ b/graphiant_sdk/models/v1_logs_post_response.py @@ -24,21 +24,19 @@ from graphiant_sdk.models.syslogmon_log import SyslogmonLog from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1LogsPostResponse(BaseModel): """ V1LogsPostResponse """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") histogram: Optional[List[SyslogmonHistogram]] = None logs: Optional[List[SyslogmonLog]] = None - total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs", json_schema_extra={"examples": [12345678910]}) + total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs") __properties: ClassVar[List[str]] = ["cursorRef", "histogram", "logs", "totalLogs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_msp_managed_enterprise_contract_info_get_response.py b/graphiant_sdk/models/v1_msp_managed_enterprise_contract_info_get_response.py index 56d10528..5a5bea38 100644 --- a/graphiant_sdk/models/v1_msp_managed_enterprise_contract_info_get_response.py +++ b/graphiant_sdk/models/v1_msp_managed_enterprise_contract_info_get_response.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.mana_v2_managed_enterprise_contract_info import ManaV2ManagedEnterpriseContractInfo from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1MspManagedEnterpriseContractInfoGetResponse(BaseModel): """ V1MspManagedEnterpriseContractInfoGetResponse """ # noqa: E501 enterprises: Optional[List[ManaV2ManagedEnterpriseContractInfo]] = None - msp_consumed_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All credits consumed by the MSP over the entirety of its contracts", alias="mspConsumedCredits", json_schema_extra={"examples": [12.34]}) + msp_consumed_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="All credits consumed by the MSP over the entirety of its contracts", alias="mspConsumedCredits") msp_contract: Optional[CommonBillingContract] = Field(default=None, alias="mspContract") __properties: ClassVar[List[str]] = ["enterprises", "mspConsumedCredits", "mspContract"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_nat_entries_device_id_get_response.py b/graphiant_sdk/models/v1_nat_entries_device_id_get_response.py index 6435db63..85c7f436 100644 --- a/graphiant_sdk/models/v1_nat_entries_device_id_get_response.py +++ b/graphiant_sdk/models/v1_nat_entries_device_id_get_response.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.ipfix_nat_entry import IpfixNatEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1NatEntriesDeviceIdGetResponse(BaseModel): """ @@ -36,8 +35,7 @@ class V1NatEntriesDeviceIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["natEntries", "pageInfo", "ts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_nat_utilization_device_id_get_response.py b/graphiant_sdk/models/v1_nat_utilization_device_id_get_response.py index 0455692d..be3a3a19 100644 --- a/graphiant_sdk/models/v1_nat_utilization_device_id_get_response.py +++ b/graphiant_sdk/models/v1_nat_utilization_device_id_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.ipfix_nat_usage import IpfixNatUsage from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1NatUtilizationDeviceIdGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1NatUtilizationDeviceIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["natUsage", "ts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_onboarding_cloudinit_get_response.py b/graphiant_sdk/models/v1_onboarding_cloudinit_get_response.py index dfc9e241..21645660 100644 --- a/graphiant_sdk/models/v1_onboarding_cloudinit_get_response.py +++ b/graphiant_sdk/models/v1_onboarding_cloudinit_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.onboarding_cloud_init_token import OnboardingCloudInitToken from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1OnboardingCloudinitGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1OnboardingCloudinitGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["cloudinitTokens"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_onboarding_cloudinit_post_request.py b/graphiant_sdk/models/v1_onboarding_cloudinit_post_request.py index a0e2dabd..f0dfa063 100644 --- a/graphiant_sdk/models/v1_onboarding_cloudinit_post_request.py +++ b/graphiant_sdk/models/v1_onboarding_cloudinit_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.onboarding_cloud_init_token import OnboardingCloudInitToken from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1OnboardingCloudinitPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1OnboardingCloudinitPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["cloudinitTokens"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_policy_applications_get_response.py b/graphiant_sdk/models/v1_policy_applications_get_response.py index 0b2c369a..6ed51ea6 100644 --- a/graphiant_sdk/models/v1_policy_applications_get_response.py +++ b/graphiant_sdk/models/v1_policy_applications_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.v1_policy_applications_get_response_application import V1PolicyApplicationsGetResponseApplication from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1PolicyApplicationsGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1PolicyApplicationsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["applications", "pageInfo"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_policy_applications_get_response_application.py b/graphiant_sdk/models/v1_policy_applications_get_response_application.py index 6a5d76d9..4758a063 100644 --- a/graphiant_sdk/models/v1_policy_applications_get_response_application.py +++ b/graphiant_sdk/models/v1_policy_applications_get_response_application.py @@ -21,21 +21,19 @@ 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 V1PolicyApplicationsGetResponseApplication(BaseModel): """ V1PolicyApplicationsGetResponseApplication """ # noqa: E501 - app_id: Optional[StrictInt] = Field(default=None, alias="appId", json_schema_extra={"examples": [1234567891011]}) - description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - kind: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + app_id: Optional[StrictInt] = Field(default=None, alias="appId") + description: Optional[StrictStr] = None + kind: Optional[StrictStr] = None + name: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["appId", "description", "kind", "name"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_policy_route_tag_sets_id_delete_response.py b/graphiant_sdk/models/v1_policy_route_tag_sets_id_delete_response.py index 230f56c5..906b3102 100644 --- a/graphiant_sdk/models/v1_policy_route_tag_sets_id_delete_response.py +++ b/graphiant_sdk/models/v1_policy_route_tag_sets_id_delete_response.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, 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 V1PolicyRouteTagSetsIdDeleteResponse(BaseModel): """ V1PolicyRouteTagSetsIdDeleteResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_policy_route_tag_sets_post_request.py b/graphiant_sdk/models/v1_policy_route_tag_sets_post_request.py index 2219dee2..9e2a8e0c 100644 --- a/graphiant_sdk/models/v1_policy_route_tag_sets_post_request.py +++ b/graphiant_sdk/models/v1_policy_route_tag_sets_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_route_tag import ManaV2RouteTag from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1PolicyRouteTagSetsPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1PolicyRouteTagSetsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["tag"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_policy_route_tag_sets_post_response.py b/graphiant_sdk/models/v1_policy_route_tag_sets_post_response.py index a2d5d52b..47780442 100644 --- a/graphiant_sdk/models/v1_policy_route_tag_sets_post_response.py +++ b/graphiant_sdk/models/v1_policy_route_tag_sets_post_response.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, 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 V1PolicyRouteTagSetsPostResponse(BaseModel): """ V1PolicyRouteTagSetsPostResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_policy_route_tag_sets_tag_detail_get_response.py b/graphiant_sdk/models/v1_policy_route_tag_sets_tag_detail_get_response.py index 6ffb4212..65f45311 100644 --- a/graphiant_sdk/models/v1_policy_route_tag_sets_tag_detail_get_response.py +++ b/graphiant_sdk/models/v1_policy_route_tag_sets_tag_detail_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_route_tag_device import ManaV2RouteTagDevice from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1PolicyRouteTagSetsTagDetailGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1PolicyRouteTagSetsTagDetailGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["devices"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_policy_route_tag_sets_tags_get_response.py b/graphiant_sdk/models/v1_policy_route_tag_sets_tags_get_response.py index 53e663a4..9b3b62d5 100644 --- a/graphiant_sdk/models/v1_policy_route_tag_sets_tags_get_response.py +++ b/graphiant_sdk/models/v1_policy_route_tag_sets_tags_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_route_tag_element import ManaV2RouteTagElement from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1PolicyRouteTagSetsTagsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1PolicyRouteTagSetsTagsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["tags"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_policy_route_tag_sets_tags_summary_get_response.py b/graphiant_sdk/models/v1_policy_route_tag_sets_tags_summary_get_response.py index 6faa7ec3..ea136300 100644 --- a/graphiant_sdk/models/v1_policy_route_tag_sets_tags_summary_get_response.py +++ b/graphiant_sdk/models/v1_policy_route_tag_sets_tags_summary_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_route_tag_summary import ManaV2RouteTagSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1PolicyRouteTagSetsTagsSummaryGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1PolicyRouteTagSetsTagsSummaryGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["tags"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_presharedkey_get_response.py b/graphiant_sdk/models/v1_presharedkey_get_response.py index ba21e682..94914e8d 100644 --- a/graphiant_sdk/models/v1_presharedkey_get_response.py +++ b/graphiant_sdk/models/v1_presharedkey_get_response.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, 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 V1PresharedkeyGetResponse(BaseModel): """ V1PresharedkeyGetResponse """ # noqa: E501 - presharedkey: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + presharedkey: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["presharedkey"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_pvif_id_details_get_response.py b/graphiant_sdk/models/v1_pvif_id_details_get_response.py new file mode 100644 index 00000000..403eecbe --- /dev/null +++ b/graphiant_sdk/models/v1_pvif_id_details_get_response.py @@ -0,0 +1,141 @@ +# 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_bgp_neighbor import ManaV2BgpNeighbor +from graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices import ManaV2PublicVifGatewayConsumerLanDevices +from graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy import ManaV2PublicVifGatewayNatPrefixStrategy +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation +from typing import Optional, Set +from typing_extensions import Self + +class V1PvifIdDetailsGetResponse(BaseModel): + """ + V1PvifIdDetailsGetResponse + """ # noqa: E501 + advertise_all_sites: Optional[StrictBool] = Field(default=None, description="True when consumer scope is all symmetric sites (snapshotted on create and update); false when advertisement lists explicit sites or site lists", alias="advertiseAllSites") + advertisement: Optional[ManaV2SiteInformation] = None + consumer_lan_segments: Optional[Dict[str, ManaV2PublicVifGatewayConsumerLanDevices]] = Field(default=None, alias="consumerLanSegments") + covering_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="coveringPrefixes") + gateway_bgp_neighbors: Optional[Dict[str, ManaV2BgpNeighbor]] = Field(default=None, alias="gatewayBgpNeighbors") + id: Optional[StrictInt] = Field(default=None, description="Producer service id") + lan_segment_id: Optional[StrictInt] = Field(default=None, description="Producer LAN segment (VRF) id", alias="lanSegmentId") + nat_prefix_strategy: Optional[ManaV2PublicVifGatewayNatPrefixStrategy] = Field(default=None, alias="natPrefixStrategy") + region_id: Optional[StrictInt] = Field(default=None, description="Graphiant region for gateway appliances", alias="regionId") + service_name: Optional[StrictStr] = Field(default=None, description="Service display name", alias="serviceName") + storage_provider: Optional[StrictStr] = Field(default=None, description="Storage provider for gateway appliances", alias="storageProvider") + __properties: ClassVar[List[str]] = ["advertiseAllSites", "advertisement", "consumerLanSegments", "coveringPrefixes", "gatewayBgpNeighbors", "id", "lanSegmentId", "natPrefixStrategy", "regionId", "serviceName", "storageProvider"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PvifIdDetailsGetResponse 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 advertisement + if self.advertisement: + _dict['advertisement'] = self.advertisement.to_dict() + # override the default output from pydantic by calling `to_dict()` of each value in consumer_lan_segments (dict) + _field_dict = {} + if self.consumer_lan_segments: + for _key_consumer_lan_segments in self.consumer_lan_segments: + if self.consumer_lan_segments[_key_consumer_lan_segments]: + _field_dict[_key_consumer_lan_segments] = self.consumer_lan_segments[_key_consumer_lan_segments].to_dict() + _dict['consumerLanSegments'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in gateway_bgp_neighbors (dict) + _field_dict = {} + if self.gateway_bgp_neighbors: + for _key_gateway_bgp_neighbors in self.gateway_bgp_neighbors: + if self.gateway_bgp_neighbors[_key_gateway_bgp_neighbors]: + _field_dict[_key_gateway_bgp_neighbors] = self.gateway_bgp_neighbors[_key_gateway_bgp_neighbors].to_dict() + _dict['gatewayBgpNeighbors'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of nat_prefix_strategy + if self.nat_prefix_strategy: + _dict['natPrefixStrategy'] = self.nat_prefix_strategy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PvifIdDetailsGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "advertiseAllSites": obj.get("advertiseAllSites"), + "advertisement": ManaV2SiteInformation.from_dict(obj["advertisement"]) if obj.get("advertisement") is not None else None, + "consumerLanSegments": dict( + (_k, ManaV2PublicVifGatewayConsumerLanDevices.from_dict(_v)) + for _k, _v in obj["consumerLanSegments"].items() + ) + if obj.get("consumerLanSegments") is not None + else None, + "coveringPrefixes": obj.get("coveringPrefixes"), + "gatewayBgpNeighbors": dict( + (_k, ManaV2BgpNeighbor.from_dict(_v)) + for _k, _v in obj["gatewayBgpNeighbors"].items() + ) + if obj.get("gatewayBgpNeighbors") is not None + else None, + "id": obj.get("id"), + "lanSegmentId": obj.get("lanSegmentId"), + "natPrefixStrategy": ManaV2PublicVifGatewayNatPrefixStrategy.from_dict(obj["natPrefixStrategy"]) if obj.get("natPrefixStrategy") is not None else None, + "regionId": obj.get("regionId"), + "serviceName": obj.get("serviceName"), + "storageProvider": obj.get("storageProvider") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_pvif_id_put_request.py b/graphiant_sdk/models/v1_pvif_id_put_request.py new file mode 100644 index 00000000..9a96c9e2 --- /dev/null +++ b/graphiant_sdk/models/v1_pvif_id_put_request.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 +from typing import Any, ClassVar, Dict, List +from graphiant_sdk.models.mana_v2_public_vif_gateway_write_request import ManaV2PublicVifGatewayWriteRequest +from typing import Optional, Set +from typing_extensions import Self + +class V1PvifIdPutRequest(BaseModel): + """ + V1PvifIdPutRequest + """ # noqa: E501 + configuration: ManaV2PublicVifGatewayWriteRequest + __properties: ClassVar[List[str]] = ["configuration"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PvifIdPutRequest 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 configuration + if self.configuration: + _dict['configuration'] = self.configuration.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PvifIdPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "configuration": ManaV2PublicVifGatewayWriteRequest.from_dict(obj["configuration"]) if obj.get("configuration") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_pvif_id_put_response.py b/graphiant_sdk/models/v1_pvif_id_put_response.py new file mode 100644 index 00000000..88510080 --- /dev/null +++ b/graphiant_sdk/models/v1_pvif_id_put_response.py @@ -0,0 +1,141 @@ +# 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_bgp_neighbor import ManaV2BgpNeighbor +from graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices import ManaV2PublicVifGatewayConsumerLanDevices +from graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy import ManaV2PublicVifGatewayNatPrefixStrategy +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation +from typing import Optional, Set +from typing_extensions import Self + +class V1PvifIdPutResponse(BaseModel): + """ + V1PvifIdPutResponse + """ # noqa: E501 + advertise_all_sites: Optional[StrictBool] = Field(default=None, description="True when consumer scope is all symmetric sites (snapshotted on create and update); false when advertisement lists explicit sites or site lists", alias="advertiseAllSites") + advertisement: Optional[ManaV2SiteInformation] = None + consumer_lan_segments: Optional[Dict[str, ManaV2PublicVifGatewayConsumerLanDevices]] = Field(default=None, alias="consumerLanSegments") + covering_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="coveringPrefixes") + gateway_bgp_neighbors: Optional[Dict[str, ManaV2BgpNeighbor]] = Field(default=None, alias="gatewayBgpNeighbors") + id: Optional[StrictInt] = Field(default=None, description="Producer service id") + lan_segment_id: Optional[StrictInt] = Field(default=None, description="Producer LAN segment (VRF) id", alias="lanSegmentId") + nat_prefix_strategy: Optional[ManaV2PublicVifGatewayNatPrefixStrategy] = Field(default=None, alias="natPrefixStrategy") + region_id: Optional[StrictInt] = Field(default=None, description="Graphiant region for gateway appliances", alias="regionId") + service_name: Optional[StrictStr] = Field(default=None, description="Service display name", alias="serviceName") + storage_provider: Optional[StrictStr] = Field(default=None, description="Storage provider for gateway appliances", alias="storageProvider") + __properties: ClassVar[List[str]] = ["advertiseAllSites", "advertisement", "consumerLanSegments", "coveringPrefixes", "gatewayBgpNeighbors", "id", "lanSegmentId", "natPrefixStrategy", "regionId", "serviceName", "storageProvider"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PvifIdPutResponse 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 advertisement + if self.advertisement: + _dict['advertisement'] = self.advertisement.to_dict() + # override the default output from pydantic by calling `to_dict()` of each value in consumer_lan_segments (dict) + _field_dict = {} + if self.consumer_lan_segments: + for _key_consumer_lan_segments in self.consumer_lan_segments: + if self.consumer_lan_segments[_key_consumer_lan_segments]: + _field_dict[_key_consumer_lan_segments] = self.consumer_lan_segments[_key_consumer_lan_segments].to_dict() + _dict['consumerLanSegments'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in gateway_bgp_neighbors (dict) + _field_dict = {} + if self.gateway_bgp_neighbors: + for _key_gateway_bgp_neighbors in self.gateway_bgp_neighbors: + if self.gateway_bgp_neighbors[_key_gateway_bgp_neighbors]: + _field_dict[_key_gateway_bgp_neighbors] = self.gateway_bgp_neighbors[_key_gateway_bgp_neighbors].to_dict() + _dict['gatewayBgpNeighbors'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of nat_prefix_strategy + if self.nat_prefix_strategy: + _dict['natPrefixStrategy'] = self.nat_prefix_strategy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PvifIdPutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "advertiseAllSites": obj.get("advertiseAllSites"), + "advertisement": ManaV2SiteInformation.from_dict(obj["advertisement"]) if obj.get("advertisement") is not None else None, + "consumerLanSegments": dict( + (_k, ManaV2PublicVifGatewayConsumerLanDevices.from_dict(_v)) + for _k, _v in obj["consumerLanSegments"].items() + ) + if obj.get("consumerLanSegments") is not None + else None, + "coveringPrefixes": obj.get("coveringPrefixes"), + "gatewayBgpNeighbors": dict( + (_k, ManaV2BgpNeighbor.from_dict(_v)) + for _k, _v in obj["gatewayBgpNeighbors"].items() + ) + if obj.get("gatewayBgpNeighbors") is not None + else None, + "id": obj.get("id"), + "lanSegmentId": obj.get("lanSegmentId"), + "natPrefixStrategy": ManaV2PublicVifGatewayNatPrefixStrategy.from_dict(obj["natPrefixStrategy"]) if obj.get("natPrefixStrategy") is not None else None, + "regionId": obj.get("regionId"), + "serviceName": obj.get("serviceName"), + "storageProvider": obj.get("storageProvider") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_pvif_post_request.py b/graphiant_sdk/models/v1_pvif_post_request.py new file mode 100644 index 00000000..b661a374 --- /dev/null +++ b/graphiant_sdk/models/v1_pvif_post_request.py @@ -0,0 +1,137 @@ +# 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.mana_v2_bgp_neighbor_config import ManaV2BgpNeighborConfig +from graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices import ManaV2PublicVifGatewayConsumerLanDevices +from graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy import ManaV2PublicVifGatewayNatPrefixStrategy +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation +from typing import Optional, Set +from typing_extensions import Self + +class V1PvifPostRequest(BaseModel): + """ + V1PvifPostRequest + """ # noqa: E501 + advertisement: Optional[ManaV2SiteInformation] = None + consumer_lan_segments: Dict[str, ManaV2PublicVifGatewayConsumerLanDevices] = Field(alias="consumerLanSegments") + covering_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="coveringPrefixes") + gateway_bgp_neighbors: Dict[str, ManaV2BgpNeighborConfig] = Field(alias="gatewayBgpNeighbors") + lan_segment_id: StrictInt = Field(description="Producer LAN segment (VRF) on gateway appliances (required)", alias="lanSegmentId") + nat_prefix_strategy: ManaV2PublicVifGatewayNatPrefixStrategy = Field(alias="natPrefixStrategy") + region_id: StrictInt = Field(description="Graphiant region for gateway appliances (required)", alias="regionId") + service_name: StrictStr = Field(description="Service display name (required)", alias="serviceName") + storage_provider: StrictStr = Field(description="Storage provider; each gateway appliance must match region and provider (required)", alias="storageProvider") + __properties: ClassVar[List[str]] = ["advertisement", "consumerLanSegments", "coveringPrefixes", "gatewayBgpNeighbors", "lanSegmentId", "natPrefixStrategy", "regionId", "serviceName", "storageProvider"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PvifPostRequest 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 advertisement + if self.advertisement: + _dict['advertisement'] = self.advertisement.to_dict() + # override the default output from pydantic by calling `to_dict()` of each value in consumer_lan_segments (dict) + _field_dict = {} + if self.consumer_lan_segments: + for _key_consumer_lan_segments in self.consumer_lan_segments: + if self.consumer_lan_segments[_key_consumer_lan_segments]: + _field_dict[_key_consumer_lan_segments] = self.consumer_lan_segments[_key_consumer_lan_segments].to_dict() + _dict['consumerLanSegments'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in gateway_bgp_neighbors (dict) + _field_dict = {} + if self.gateway_bgp_neighbors: + for _key_gateway_bgp_neighbors in self.gateway_bgp_neighbors: + if self.gateway_bgp_neighbors[_key_gateway_bgp_neighbors]: + _field_dict[_key_gateway_bgp_neighbors] = self.gateway_bgp_neighbors[_key_gateway_bgp_neighbors].to_dict() + _dict['gatewayBgpNeighbors'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of nat_prefix_strategy + if self.nat_prefix_strategy: + _dict['natPrefixStrategy'] = self.nat_prefix_strategy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PvifPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "advertisement": ManaV2SiteInformation.from_dict(obj["advertisement"]) if obj.get("advertisement") is not None else None, + "consumerLanSegments": dict( + (_k, ManaV2PublicVifGatewayConsumerLanDevices.from_dict(_v)) + for _k, _v in obj["consumerLanSegments"].items() + ) + if obj.get("consumerLanSegments") is not None + else None, + "coveringPrefixes": obj.get("coveringPrefixes"), + "gatewayBgpNeighbors": dict( + (_k, ManaV2BgpNeighborConfig.from_dict(_v)) + for _k, _v in obj["gatewayBgpNeighbors"].items() + ) + if obj.get("gatewayBgpNeighbors") is not None + else None, + "lanSegmentId": obj.get("lanSegmentId"), + "natPrefixStrategy": ManaV2PublicVifGatewayNatPrefixStrategy.from_dict(obj["natPrefixStrategy"]) if obj.get("natPrefixStrategy") is not None else None, + "regionId": obj.get("regionId"), + "serviceName": obj.get("serviceName"), + "storageProvider": obj.get("storageProvider") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_pvif_post_response.py b/graphiant_sdk/models/v1_pvif_post_response.py new file mode 100644 index 00000000..8f631d70 --- /dev/null +++ b/graphiant_sdk/models/v1_pvif_post_response.py @@ -0,0 +1,141 @@ +# 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_bgp_neighbor import ManaV2BgpNeighbor +from graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices import ManaV2PublicVifGatewayConsumerLanDevices +from graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy import ManaV2PublicVifGatewayNatPrefixStrategy +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation +from typing import Optional, Set +from typing_extensions import Self + +class V1PvifPostResponse(BaseModel): + """ + V1PvifPostResponse + """ # noqa: E501 + advertise_all_sites: Optional[StrictBool] = Field(default=None, description="True when consumer scope is all symmetric sites (snapshotted on create and update); false when advertisement lists explicit sites or site lists", alias="advertiseAllSites") + advertisement: Optional[ManaV2SiteInformation] = None + consumer_lan_segments: Optional[Dict[str, ManaV2PublicVifGatewayConsumerLanDevices]] = Field(default=None, alias="consumerLanSegments") + covering_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="coveringPrefixes") + gateway_bgp_neighbors: Optional[Dict[str, ManaV2BgpNeighbor]] = Field(default=None, alias="gatewayBgpNeighbors") + id: Optional[StrictInt] = Field(default=None, description="Producer service id") + lan_segment_id: Optional[StrictInt] = Field(default=None, description="Producer LAN segment (VRF) id", alias="lanSegmentId") + nat_prefix_strategy: Optional[ManaV2PublicVifGatewayNatPrefixStrategy] = Field(default=None, alias="natPrefixStrategy") + region_id: Optional[StrictInt] = Field(default=None, description="Graphiant region for gateway appliances", alias="regionId") + service_name: Optional[StrictStr] = Field(default=None, description="Service display name", alias="serviceName") + storage_provider: Optional[StrictStr] = Field(default=None, description="Storage provider for gateway appliances", alias="storageProvider") + __properties: ClassVar[List[str]] = ["advertiseAllSites", "advertisement", "consumerLanSegments", "coveringPrefixes", "gatewayBgpNeighbors", "id", "lanSegmentId", "natPrefixStrategy", "regionId", "serviceName", "storageProvider"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PvifPostResponse 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 advertisement + if self.advertisement: + _dict['advertisement'] = self.advertisement.to_dict() + # override the default output from pydantic by calling `to_dict()` of each value in consumer_lan_segments (dict) + _field_dict = {} + if self.consumer_lan_segments: + for _key_consumer_lan_segments in self.consumer_lan_segments: + if self.consumer_lan_segments[_key_consumer_lan_segments]: + _field_dict[_key_consumer_lan_segments] = self.consumer_lan_segments[_key_consumer_lan_segments].to_dict() + _dict['consumerLanSegments'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in gateway_bgp_neighbors (dict) + _field_dict = {} + if self.gateway_bgp_neighbors: + for _key_gateway_bgp_neighbors in self.gateway_bgp_neighbors: + if self.gateway_bgp_neighbors[_key_gateway_bgp_neighbors]: + _field_dict[_key_gateway_bgp_neighbors] = self.gateway_bgp_neighbors[_key_gateway_bgp_neighbors].to_dict() + _dict['gatewayBgpNeighbors'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of nat_prefix_strategy + if self.nat_prefix_strategy: + _dict['natPrefixStrategy'] = self.nat_prefix_strategy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PvifPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "advertiseAllSites": obj.get("advertiseAllSites"), + "advertisement": ManaV2SiteInformation.from_dict(obj["advertisement"]) if obj.get("advertisement") is not None else None, + "consumerLanSegments": dict( + (_k, ManaV2PublicVifGatewayConsumerLanDevices.from_dict(_v)) + for _k, _v in obj["consumerLanSegments"].items() + ) + if obj.get("consumerLanSegments") is not None + else None, + "coveringPrefixes": obj.get("coveringPrefixes"), + "gatewayBgpNeighbors": dict( + (_k, ManaV2BgpNeighbor.from_dict(_v)) + for _k, _v in obj["gatewayBgpNeighbors"].items() + ) + if obj.get("gatewayBgpNeighbors") is not None + else None, + "id": obj.get("id"), + "lanSegmentId": obj.get("lanSegmentId"), + "natPrefixStrategy": ManaV2PublicVifGatewayNatPrefixStrategy.from_dict(obj["natPrefixStrategy"]) if obj.get("natPrefixStrategy") is not None else None, + "regionId": obj.get("regionId"), + "serviceName": obj.get("serviceName"), + "storageProvider": obj.get("storageProvider") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_pvif_summary_get_response.py b/graphiant_sdk/models/v1_pvif_summary_get_response.py new file mode 100644 index 00000000..10a0ffaf --- /dev/null +++ b/graphiant_sdk/models/v1_pvif_summary_get_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_public_vif_summary import ManaV2PublicVifSummary +from typing import Optional, Set +from typing_extensions import Self + +class V1PvifSummaryGetResponse(BaseModel): + """ + V1PvifSummaryGetResponse + """ # noqa: E501 + summary: Optional[List[ManaV2PublicVifSummary]] = None + __properties: ClassVar[List[str]] = ["summary"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1PvifSummaryGetResponse 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 summary (list) + _items = [] + if self.summary: + for _item_summary in self.summary: + if _item_summary: + _items.append(_item_summary.to_dict()) + _dict['summary'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1PvifSummaryGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "summary": [ManaV2PublicVifSummary.from_dict(_item) for _item in obj["summary"]] if obj.get("summary") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_qos_circuit_profiles_get_response.py b/graphiant_sdk/models/v1_qos_circuit_profiles_get_response.py index 3ca19451..2a353bf0 100644 --- a/graphiant_sdk/models/v1_qos_circuit_profiles_get_response.py +++ b/graphiant_sdk/models/v1_qos_circuit_profiles_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_qo_s_profile import ManaV2QoSProfile from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1QosCircuitProfilesGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1QosCircuitProfilesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["profiles"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_regions_get_response.py b/graphiant_sdk/models/v1_regions_get_response.py index c297d5ad..281e4fa8 100644 --- a/graphiant_sdk/models/v1_regions_get_response.py +++ b/graphiant_sdk/models/v1_regions_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_region import ManaV2Region from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1RegionsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1RegionsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["regions"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_regions_region_id_gateways_get_response.py b/graphiant_sdk/models/v1_regions_region_id_gateways_get_response.py new file mode 100644 index 00000000..353096dd --- /dev/null +++ b/graphiant_sdk/models/v1_regions_region_id_gateways_get_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.v1_regions_region_id_gateways_get_response_gateway import V1RegionsRegionIdGatewaysGetResponseGateway +from typing import Optional, Set +from typing_extensions import Self + +class V1RegionsRegionIdGatewaysGetResponse(BaseModel): + """ + V1RegionsRegionIdGatewaysGetResponse + """ # noqa: E501 + gateways: Optional[List[V1RegionsRegionIdGatewaysGetResponseGateway]] = None + __properties: ClassVar[List[str]] = ["gateways"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1RegionsRegionIdGatewaysGetResponse 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 gateways (list) + _items = [] + if self.gateways: + for _item_gateways in self.gateways: + if _item_gateways: + _items.append(_item_gateways.to_dict()) + _dict['gateways'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1RegionsRegionIdGatewaysGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "gateways": [V1RegionsRegionIdGatewaysGetResponseGateway.from_dict(_item) for _item in obj["gateways"]] if obj.get("gateways") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_regions_region_id_gateways_get_response_gateway.py b/graphiant_sdk/models/v1_regions_region_id_gateways_get_response_gateway.py new file mode 100644 index 00000000..194cbf28 --- /dev/null +++ b/graphiant_sdk/models/v1_regions_region_id_gateways_get_response_gateway.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 + + +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 + +class V1RegionsRegionIdGatewaysGetResponseGateway(BaseModel): + """ + V1RegionsRegionIdGatewaysGetResponseGateway + """ # noqa: E501 + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + hostname: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["deviceId", "hostname"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1RegionsRegionIdGatewaysGetResponseGateway 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 V1RegionsRegionIdGatewaysGetResponseGateway 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/v1_search_get_response.py b/graphiant_sdk/models/v1_search_get_response.py index 4c9e76f1..e69b1aba 100644 --- a/graphiant_sdk/models/v1_search_get_response.py +++ b/graphiant_sdk/models/v1_search_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.search_search_result import SearchSearchResult from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SearchGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1SearchGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["results"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_site_details_sitelists_post_request.py b/graphiant_sdk/models/v1_site_details_sitelists_post_request.py index b5c4c348..f6ce7cad 100644 --- a/graphiant_sdk/models/v1_site_details_sitelists_post_request.py +++ b/graphiant_sdk/models/v1_site_details_sitelists_post_request.py @@ -21,18 +21,16 @@ 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 V1SiteDetailsSitelistsPostRequest(BaseModel): """ V1SiteDetailsSitelistsPostRequest """ # noqa: E501 - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") __properties: ClassVar[List[str]] = ["siteId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_site_details_sitelists_post_response.py b/graphiant_sdk/models/v1_site_details_sitelists_post_response.py index bdca16c0..58f2c23f 100644 --- a/graphiant_sdk/models/v1_site_details_sitelists_post_response.py +++ b/graphiant_sdk/models/v1_site_details_sitelists_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_site_list import ManaV2SiteList from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SiteDetailsSitelistsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1SiteDetailsSitelistsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["siteLists"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_site_id_details_interfaces_get_response.py b/graphiant_sdk/models/v1_site_id_details_interfaces_get_response.py index 3da7b5d5..b40dddab 100644 --- a/graphiant_sdk/models/v1_site_id_details_interfaces_get_response.py +++ b/graphiant_sdk/models/v1_site_id_details_interfaces_get_response.py @@ -21,7 +21,6 @@ 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 V1SiteIdDetailsInterfacesGetResponse(BaseModel): """ @@ -31,8 +30,7 @@ class V1SiteIdDetailsInterfacesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["interfaces"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_sites_details_get_response.py b/graphiant_sdk/models/v1_sites_details_get_response.py index 02b4268c..e544c5dc 100644 --- a/graphiant_sdk/models/v1_sites_details_get_response.py +++ b/graphiant_sdk/models/v1_sites_details_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_site import ManaV2Site from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SitesDetailsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1SitesDetailsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["sites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_sites_get_response.py b/graphiant_sdk/models/v1_sites_get_response.py index d822b76b..e19f7067 100644 --- a/graphiant_sdk/models/v1_sites_get_response.py +++ b/graphiant_sdk/models/v1_sites_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_site import ManaV2Site from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SitesGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1SitesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["pageInfo", "sites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_sites_map_details_get_response.py b/graphiant_sdk/models/v1_sites_map_details_get_response.py index 6e3c448e..0ca41a88 100644 --- a/graphiant_sdk/models/v1_sites_map_details_get_response.py +++ b/graphiant_sdk/models/v1_sites_map_details_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_lan_segment_sites_map import ManaV2LanSegmentSitesMap from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SitesMapDetailsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1SitesMapDetailsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["lanSegmentIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_sites_post_request.py b/graphiant_sdk/models/v1_sites_post_request.py index 0ea4db49..6e6e21e2 100644 --- a/graphiant_sdk/models/v1_sites_post_request.py +++ b/graphiant_sdk/models/v1_sites_post_request.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.mana_v2_new_site import ManaV2NewSite from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SitesPostRequest(BaseModel): """ V1SitesPostRequest """ # noqa: E501 - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") site: Optional[ManaV2NewSite] = None __properties: ClassVar[List[str]] = ["enterpriseId", "site"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_sites_post_response.py b/graphiant_sdk/models/v1_sites_post_response.py index c78eef34..187f0df9 100644 --- a/graphiant_sdk/models/v1_sites_post_response.py +++ b/graphiant_sdk/models/v1_sites_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_site import ManaV2Site from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SitesPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1SitesPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["site"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_sites_site_id_circuits_get_response.py b/graphiant_sdk/models/v1_sites_site_id_circuits_get_response.py index bba975b1..d33a65a4 100644 --- a/graphiant_sdk/models/v1_sites_site_id_circuits_get_response.py +++ b/graphiant_sdk/models/v1_sites_site_id_circuits_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_sites_site_id_circuits_get_response_data import V1SitesSiteIdCircuitsGetResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SitesSiteIdCircuitsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1SitesSiteIdCircuitsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_sites_site_id_circuits_get_response_data.py b/graphiant_sdk/models/v1_sites_site_id_circuits_get_response_data.py index 373660e6..a8d21e54 100644 --- a/graphiant_sdk/models/v1_sites_site_id_circuits_get_response_data.py +++ b/graphiant_sdk/models/v1_sites_site_id_circuits_get_response_data.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.mana_v2_circuit import ManaV2Circuit from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SitesSiteIdCircuitsGetResponseData(BaseModel): """ V1SitesSiteIdCircuitsGetResponseData """ # noqa: E501 circuits: Optional[List[ManaV2Circuit]] = None - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") __properties: ClassVar[List[str]] = ["circuits", "deviceId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_sites_site_id_devices_get_response.py b/graphiant_sdk/models/v1_sites_site_id_devices_get_response.py index 9dcfd9a3..b65db885 100644 --- a/graphiant_sdk/models/v1_sites_site_id_devices_get_response.py +++ b/graphiant_sdk/models/v1_sites_site_id_devices_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2topology_device import ManaV2topologyDevice from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SitesSiteIdDevicesGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1SitesSiteIdDevicesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["device"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_sites_site_id_post_request.py b/graphiant_sdk/models/v1_sites_site_id_post_request.py index 134a315e..a8c759a1 100644 --- a/graphiant_sdk/models/v1_sites_site_id_post_request.py +++ b/graphiant_sdk/models/v1_sites_site_id_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_new_site import ManaV2NewSite from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SitesSiteIdPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1SitesSiteIdPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["site"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_sites_site_id_post_response.py b/graphiant_sdk/models/v1_sites_site_id_post_response.py index f7761df5..f118c784 100644 --- a/graphiant_sdk/models/v1_sites_site_id_post_response.py +++ b/graphiant_sdk/models/v1_sites_site_id_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_site import ManaV2Site from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SitesSiteIdPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1SitesSiteIdPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["site"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_auto_upgrade_default_get_response.py b/graphiant_sdk/models/v1_software_auto_upgrade_default_get_response.py index 064d3d62..c08dbb91 100644 --- a/graphiant_sdk/models/v1_software_auto_upgrade_default_get_response.py +++ b/graphiant_sdk/models/v1_software_auto_upgrade_default_get_response.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.upgrade_upgrade_canary_profile import UpgradeUpgradeCanaryProfile from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SoftwareAutoUpgradeDefaultGetResponse(BaseModel): """ V1SoftwareAutoUpgradeDefaultGetResponse """ # noqa: E501 profile: Optional[UpgradeUpgradeCanaryProfile] = None - release: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + release: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["profile", "release"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_auto_upgrade_default_put_request.py b/graphiant_sdk/models/v1_software_auto_upgrade_default_put_request.py index 8446ee68..9f1eae55 100644 --- a/graphiant_sdk/models/v1_software_auto_upgrade_default_put_request.py +++ b/graphiant_sdk/models/v1_software_auto_upgrade_default_put_request.py @@ -17,24 +17,22 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.upgrade_upgrade_canary_profile import UpgradeUpgradeCanaryProfile from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SoftwareAutoUpgradeDefaultPutRequest(BaseModel): """ V1SoftwareAutoUpgradeDefaultPutRequest """ # noqa: E501 profile: Optional[UpgradeUpgradeCanaryProfile] = None - release: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + release: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["profile", "release"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_gcsrelease_upload_notes_post_request.py b/graphiant_sdk/models/v1_software_gcsrelease_upload_notes_post_request.py index 93b30ed5..bdbbe81c 100644 --- a/graphiant_sdk/models/v1_software_gcsrelease_upload_notes_post_request.py +++ b/graphiant_sdk/models/v1_software_gcsrelease_upload_notes_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.upgrade_gcs_release_details import UpgradeGcsReleaseDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SoftwareGcsreleaseUploadNotesPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1SoftwareGcsreleaseUploadNotesPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["details"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_releases_download_get_response.py b/graphiant_sdk/models/v1_software_releases_download_get_response.py index e310a8e0..169c7650 100644 --- a/graphiant_sdk/models/v1_software_releases_download_get_response.py +++ b/graphiant_sdk/models/v1_software_releases_download_get_response.py @@ -21,18 +21,16 @@ 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 V1SoftwareReleasesDownloadGetResponse(BaseModel): """ V1SoftwareReleasesDownloadGetResponse """ # noqa: E501 - image_link: Optional[StrictStr] = Field(default=None, alias="imageLink", json_schema_extra={"examples": ["example string"]}) + image_link: Optional[StrictStr] = Field(default=None, alias="imageLink") __properties: ClassVar[List[str]] = ["imageLink"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_releases_summary_get_response.py b/graphiant_sdk/models/v1_software_releases_summary_get_response.py index 2d616273..16ea651d 100644 --- a/graphiant_sdk/models/v1_software_releases_summary_get_response.py +++ b/graphiant_sdk/models/v1_software_releases_summary_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.upgrade_release_summary import UpgradeReleaseSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SoftwareReleasesSummaryGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1SoftwareReleasesSummaryGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["summaries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_rollouts_get_response.py b/graphiant_sdk/models/v1_software_rollouts_get_response.py index 9e7ab3ba..fda85f53 100644 --- a/graphiant_sdk/models/v1_software_rollouts_get_response.py +++ b/graphiant_sdk/models/v1_software_rollouts_get_response.py @@ -22,7 +22,6 @@ 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): """ @@ -32,8 +31,7 @@ class V1SoftwareRolloutsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["rollouts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_rollouts_id_get_response.py b/graphiant_sdk/models/v1_software_rollouts_id_get_response.py index 9c066185..a4940036 100644 --- a/graphiant_sdk/models/v1_software_rollouts_id_get_response.py +++ b/graphiant_sdk/models/v1_software_rollouts_id_get_response.py @@ -22,7 +22,6 @@ 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): """ @@ -32,8 +31,7 @@ class V1SoftwareRolloutsIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["rollout"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_rollouts_post_request.py b/graphiant_sdk/models/v1_software_rollouts_post_request.py index 4616be55..c13f9a81 100644 --- a/graphiant_sdk/models/v1_software_rollouts_post_request.py +++ b/graphiant_sdk/models/v1_software_rollouts_post_request.py @@ -22,7 +22,6 @@ 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): """ @@ -32,8 +31,7 @@ class V1SoftwareRolloutsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["rolloutConfig"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_rollouts_post_response.py b/graphiant_sdk/models/v1_software_rollouts_post_response.py index bb239628..e3998d4a 100644 --- a/graphiant_sdk/models/v1_software_rollouts_post_response.py +++ b/graphiant_sdk/models/v1_software_rollouts_post_response.py @@ -21,18 +21,16 @@ 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)", json_schema_extra={"examples": [42]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_rollouts_put_request.py b/graphiant_sdk/models/v1_software_rollouts_put_request.py index 046a515c..33df7fca 100644 --- a/graphiant_sdk/models/v1_software_rollouts_put_request.py +++ b/graphiant_sdk/models/v1_software_rollouts_put_request.py @@ -22,19 +22,17 @@ 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)", json_schema_extra={"examples": [42]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_rollouts_schedule_post_request.py b/graphiant_sdk/models/v1_software_rollouts_schedule_post_request.py index 9a7b3a4b..bd1a231f 100644 --- a/graphiant_sdk/models/v1_software_rollouts_schedule_post_request.py +++ b/graphiant_sdk/models/v1_software_rollouts_schedule_post_request.py @@ -22,20 +22,18 @@ 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", json_schema_extra={"examples": [True]}) - id: StrictInt = Field(description="Rollout identifier to schedule. (required)", json_schema_extra={"examples": [42]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_running_details_get_response.py b/graphiant_sdk/models/v1_software_running_details_get_response.py index d307c267..86f5b104 100644 --- a/graphiant_sdk/models/v1_software_running_details_get_response.py +++ b/graphiant_sdk/models/v1_software_running_details_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_software_running_details_get_response_device import V1SoftwareRunningDetailsGetResponseDevice from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SoftwareRunningDetailsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1SoftwareRunningDetailsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["devices"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_running_details_get_response_device.py b/graphiant_sdk/models/v1_software_running_details_get_response_device.py index 9fa3a17a..bf165dbe 100644 --- a/graphiant_sdk/models/v1_software_running_details_get_response_device.py +++ b/graphiant_sdk/models/v1_software_running_details_get_response_device.py @@ -21,21 +21,19 @@ 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 V1SoftwareRunningDetailsGetResponseDevice(BaseModel): """ V1SoftwareRunningDetailsGetResponseDevice """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - enterprise_name: Optional[StrictStr] = Field(default=None, alias="enterpriseName", json_schema_extra={"examples": ["example string"]}) - hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + enterprise_name: Optional[StrictStr] = Field(default=None, alias="enterpriseName") + hostname: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["deviceId", "enterpriseId", "enterpriseName", "hostname"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_running_summary_get_response.py b/graphiant_sdk/models/v1_software_running_summary_get_response.py index 6d38848c..3617cb55 100644 --- a/graphiant_sdk/models/v1_software_running_summary_get_response.py +++ b/graphiant_sdk/models/v1_software_running_summary_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_software_running_summary_get_response_version_summary import V1SoftwareRunningSummaryGetResponseVersionSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SoftwareRunningSummaryGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1SoftwareRunningSummaryGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["versions"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_software_running_summary_get_response_version_summary.py b/graphiant_sdk/models/v1_software_running_summary_get_response_version_summary.py index 659af3b9..504b176c 100644 --- a/graphiant_sdk/models/v1_software_running_summary_get_response_version_summary.py +++ b/graphiant_sdk/models/v1_software_running_summary_get_response_version_summary.py @@ -22,20 +22,18 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1SoftwareRunningSummaryGetResponseVersionSummary(BaseModel): """ V1SoftwareRunningSummaryGetResponseVersionSummary """ # noqa: E501 - count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) - name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - version: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + name: Optional[StrictStr] = None + version: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["count", "name", "version"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_talkers_device_device_id_top_post_request.py b/graphiant_sdk/models/v1_talkers_device_device_id_top_post_request.py index c546dfba..ce704fd3 100644 --- a/graphiant_sdk/models/v1_talkers_device_device_id_top_post_request.py +++ b/graphiant_sdk/models/v1_talkers_device_device_id_top_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.ipfix_time_window import IpfixTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TalkersDeviceDeviceIdTopPostRequest(BaseModel): """ V1TalkersDeviceDeviceIdTopPostRequest """ # noqa: E501 - num_clients: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The maximum number of client usage info to be returned (10 if left empty)", alias="numClients", json_schema_extra={"examples": [10]}) + num_clients: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The maximum number of client usage info to be returned (10 if left empty)", alias="numClients") time_window: Optional[IpfixTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["numClients", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_talkers_device_device_id_top_post_response.py b/graphiant_sdk/models/v1_talkers_device_device_id_top_post_response.py index 44d8371d..79a32e66 100644 --- a/graphiant_sdk/models/v1_talkers_device_device_id_top_post_response.py +++ b/graphiant_sdk/models/v1_talkers_device_device_id_top_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.ipfix_client_usage_summary import IpfixClientUsageSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TalkersDeviceDeviceIdTopPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1TalkersDeviceDeviceIdTopPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["appsUtilization"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_talkers_site_site_id_top_post_request.py b/graphiant_sdk/models/v1_talkers_site_site_id_top_post_request.py index 76dfa6c2..935aead2 100644 --- a/graphiant_sdk/models/v1_talkers_site_site_id_top_post_request.py +++ b/graphiant_sdk/models/v1_talkers_site_site_id_top_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.ipfix_time_window import IpfixTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TalkersSiteSiteIdTopPostRequest(BaseModel): """ V1TalkersSiteSiteIdTopPostRequest """ # noqa: E501 - num_clients: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The maximum number of apps to return (10 if left empty)", alias="numClients", json_schema_extra={"examples": [10]}) + num_clients: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="The maximum number of apps to return (10 if left empty)", alias="numClients") time_window: Optional[IpfixTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["numClients", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_talkers_site_site_id_top_post_response.py b/graphiant_sdk/models/v1_talkers_site_site_id_top_post_response.py index 2ef4adfd..2167c09f 100644 --- a/graphiant_sdk/models/v1_talkers_site_site_id_top_post_response.py +++ b/graphiant_sdk/models/v1_talkers_site_site_id_top_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.ipfix_client_usage_summary import IpfixClientUsageSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TalkersSiteSiteIdTopPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1TalkersSiteSiteIdTopPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["appsUtilization"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_temp_password_put_request.py b/graphiant_sdk/models/v1_temp_password_put_request.py index 3780dc17..948c0450 100644 --- a/graphiant_sdk/models/v1_temp_password_put_request.py +++ b/graphiant_sdk/models/v1_temp_password_put_request.py @@ -21,21 +21,19 @@ 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 V1TempPasswordPutRequest(BaseModel): """ V1TempPasswordPutRequest """ # noqa: E501 - customer_name: Optional[StrictStr] = Field(default=None, alias="customerName", json_schema_extra={"examples": ["example string"]}) + customer_name: Optional[StrictStr] = Field(default=None, alias="customerName") emails: List[StrictStr] - match_id: Optional[StrictInt] = Field(default=None, alias="matchId", json_schema_extra={"examples": [1234567891011]}) - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) + match_id: Optional[StrictInt] = Field(default=None, alias="matchId") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") __properties: ClassVar[List[str]] = ["customerName", "emails", "matchId", "serviceName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_device_device_id_post_request.py b/graphiant_sdk/models/v1_troubleshooting_device_device_id_post_request.py index ef6246e4..5f73dfe2 100644 --- a/graphiant_sdk/models/v1_troubleshooting_device_device_id_post_request.py +++ b/graphiant_sdk/models/v1_troubleshooting_device_device_id_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_time_window import StatsmonTroubleshootingTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TroubleshootingDeviceDeviceIdPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1TroubleshootingDeviceDeviceIdPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_device_device_id_post_response.py b/graphiant_sdk/models/v1_troubleshooting_device_device_id_post_response.py index 9420cc67..dea2a466 100644 --- a/graphiant_sdk/models/v1_troubleshooting_device_device_id_post_response.py +++ b/graphiant_sdk/models/v1_troubleshooting_device_device_id_post_response.py @@ -27,28 +27,26 @@ from graphiant_sdk.models.upgrade_sw_version import UpgradeSwVersion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TroubleshootingDeviceDeviceIdPostResponse(BaseModel): """ V1TroubleshootingDeviceDeviceIdPostResponse """ # noqa: E501 - maintenance_mode: Optional[StrictBool] = Field(default=None, alias="MaintenanceMode", json_schema_extra={"examples": [True]}) - colr_active: Optional[StrictBool] = Field(default=None, alias="colrActive", json_schema_extra={"examples": [True]}) + maintenance_mode: Optional[StrictBool] = Field(default=None, alias="MaintenanceMode") + colr_active: Optional[StrictBool] = Field(default=None, alias="colrActive") control_plane: Optional[StatsmonTroubleshootingControlPlane] = Field(default=None, alias="controlPlane") data_plane: Optional[StatsmonTroubleshootingDataPlane] = Field(default=None, alias="dataPlane") issues: Optional[List[StatsmonTroubleshootingIssue]] = None - lifecycle_status: Optional[StrictStr] = Field(default=None, alias="lifecycleStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) - sw_version: Optional[StrictStr] = Field(default=None, alias="swVersion", json_schema_extra={"examples": ["example string"]}) + lifecycle_status: Optional[StrictStr] = Field(default=None, alias="lifecycleStatus") + status: Optional[StrictStr] = None + sw_version: Optional[StrictStr] = Field(default=None, alias="swVersion") sw_version_v2: Optional[UpgradeSwVersion] = Field(default=None, alias="swVersionV2") system_plane: Optional[StatsmonTroubleshootingSystemPlane] = Field(default=None, alias="systemPlane") up_since_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="upSinceTs") __properties: ClassVar[List[str]] = ["MaintenanceMode", "colrActive", "controlPlane", "dataPlane", "issues", "lifecycleStatus", "status", "swVersion", "swVersionV2", "systemPlane", "upSinceTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -60,7 +58,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_enterprise_post_request.py b/graphiant_sdk/models/v1_troubleshooting_enterprise_post_request.py index 6e8741be..ab648f0d 100644 --- a/graphiant_sdk/models/v1_troubleshooting_enterprise_post_request.py +++ b/graphiant_sdk/models/v1_troubleshooting_enterprise_post_request.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.v1_troubleshooting_enterprise_post_request_dimensions import V1TroubleshootingEnterprisePostRequestDimensions from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TroubleshootingEnterprisePostRequest(BaseModel): """ @@ -34,8 +33,7 @@ class V1TroubleshootingEnterprisePostRequest(BaseModel): __properties: ClassVar[List[str]] = ["dimensions", "filter"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_enterprise_post_request_dimensions.py b/graphiant_sdk/models/v1_troubleshooting_enterprise_post_request_dimensions.py index 0185db15..8f1f07c9 100644 --- a/graphiant_sdk/models/v1_troubleshooting_enterprise_post_request_dimensions.py +++ b/graphiant_sdk/models/v1_troubleshooting_enterprise_post_request_dimensions.py @@ -21,33 +21,31 @@ 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 V1TroubleshootingEnterprisePostRequestDimensions(BaseModel): """ V1TroubleshootingEnterprisePostRequestDimensions """ # noqa: E501 - certificate_expiry: Optional[StrictBool] = Field(default=None, alias="certificateExpiry", json_schema_extra={"examples": [True]}) - core_connectivity: Optional[StrictBool] = Field(default=None, alias="coreConnectivity", json_schema_extra={"examples": [True]}) - core_transitions: Optional[StrictBool] = Field(default=None, alias="coreTransitions", json_schema_extra={"examples": [True]}) - cpu: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - crashes: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - credit_expiry: Optional[StrictBool] = Field(default=None, alias="creditExpiry", json_schema_extra={"examples": [True]}) - disk: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - fan_speed: Optional[StrictBool] = Field(default=None, alias="fanSpeed", json_schema_extra={"examples": [True]}) - license_expiry: Optional[StrictBool] = Field(default=None, alias="licenseExpiry", json_schema_extra={"examples": [True]}) - memory: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) - odp_connectivity: Optional[StrictBool] = Field(default=None, alias="odpConnectivity", json_schema_extra={"examples": [True]}) - odp_transitions: Optional[StrictBool] = Field(default=None, alias="odpTransitions", json_schema_extra={"examples": [True]}) - sla_performance: Optional[StrictBool] = Field(default=None, alias="slaPerformance", json_schema_extra={"examples": [True]}) - t2_connectivity: Optional[StrictBool] = Field(default=None, alias="t2Connectivity", json_schema_extra={"examples": [True]}) - t2_transitions: Optional[StrictBool] = Field(default=None, alias="t2Transitions", json_schema_extra={"examples": [True]}) - temperature: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + certificate_expiry: Optional[StrictBool] = Field(default=None, alias="certificateExpiry") + core_connectivity: Optional[StrictBool] = Field(default=None, alias="coreConnectivity") + core_transitions: Optional[StrictBool] = Field(default=None, alias="coreTransitions") + cpu: Optional[StrictBool] = None + crashes: Optional[StrictBool] = None + credit_expiry: Optional[StrictBool] = Field(default=None, alias="creditExpiry") + disk: Optional[StrictBool] = None + fan_speed: Optional[StrictBool] = Field(default=None, alias="fanSpeed") + license_expiry: Optional[StrictBool] = Field(default=None, alias="licenseExpiry") + memory: Optional[StrictBool] = None + odp_connectivity: Optional[StrictBool] = Field(default=None, alias="odpConnectivity") + odp_transitions: Optional[StrictBool] = Field(default=None, alias="odpTransitions") + sla_performance: Optional[StrictBool] = Field(default=None, alias="slaPerformance") + t2_connectivity: Optional[StrictBool] = Field(default=None, alias="t2Connectivity") + t2_transitions: Optional[StrictBool] = Field(default=None, alias="t2Transitions") + temperature: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["certificateExpiry", "coreConnectivity", "coreTransitions", "cpu", "crashes", "creditExpiry", "disk", "fanSpeed", "licenseExpiry", "memory", "odpConnectivity", "odpTransitions", "slaPerformance", "t2Connectivity", "t2Transitions", "temperature"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -59,7 +57,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_enterprise_post_response.py b/graphiant_sdk/models/v1_troubleshooting_enterprise_post_response.py index 307c11ee..5933a844 100644 --- a/graphiant_sdk/models/v1_troubleshooting_enterprise_post_response.py +++ b/graphiant_sdk/models/v1_troubleshooting_enterprise_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_troubleshooting_enterprise_post_response_site_summary import V1TroubleshootingEnterprisePostResponseSiteSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TroubleshootingEnterprisePostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1TroubleshootingEnterprisePostResponse(BaseModel): __properties: ClassVar[List[str]] = ["sites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_enterprise_post_response_site_summary.py b/graphiant_sdk/models/v1_troubleshooting_enterprise_post_response_site_summary.py index 2c991dc1..134dce0f 100644 --- a/graphiant_sdk/models/v1_troubleshooting_enterprise_post_response_site_summary.py +++ b/graphiant_sdk/models/v1_troubleshooting_enterprise_post_response_site_summary.py @@ -22,25 +22,23 @@ from graphiant_sdk.models.statsmon_troubleshooting_region import StatsmonTroubleshootingRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TroubleshootingEnterprisePostResponseSiteSummary(BaseModel): """ V1TroubleshootingEnterprisePostResponseSiteSummary """ # noqa: E501 - control_status: Optional[StrictStr] = Field(default=None, alias="controlStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - data_status: Optional[StrictStr] = Field(default=None, alias="dataStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - overall_status: Optional[StrictStr] = Field(default=None, alias="overallStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + control_status: Optional[StrictStr] = Field(default=None, alias="controlStatus") + data_status: Optional[StrictStr] = Field(default=None, alias="dataStatus") + overall_status: Optional[StrictStr] = Field(default=None, alias="overallStatus") region: Optional[StatsmonTroubleshootingRegion] = None - selected_status: Optional[StrictStr] = Field(default=None, alias="selectedStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) - system_status: Optional[StrictStr] = Field(default=None, alias="systemStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + selected_status: Optional[StrictStr] = Field(default=None, alias="selectedStatus") + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + system_status: Optional[StrictStr] = Field(default=None, alias="systemStatus") __properties: ClassVar[List[str]] = ["controlStatus", "dataStatus", "overallStatus", "region", "selectedStatus", "siteId", "siteName", "systemStatus"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_filter_get_response.py b/graphiant_sdk/models/v1_troubleshooting_filter_get_response.py index 286caf04..8e96840e 100644 --- a/graphiant_sdk/models/v1_troubleshooting_filter_get_response.py +++ b/graphiant_sdk/models/v1_troubleshooting_filter_get_response.py @@ -26,7 +26,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_site_filter import StatsmonTroubleshootingSiteFilter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TroubleshootingFilterGetResponse(BaseModel): """ @@ -40,8 +39,7 @@ class V1TroubleshootingFilterGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["circuits", "devices", "lanSegments", "regions", "sites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_site_connectivity_status_get_response.py b/graphiant_sdk/models/v1_troubleshooting_site_connectivity_status_get_response.py index 62aee146..1ab1a8f1 100644 --- a/graphiant_sdk/models/v1_troubleshooting_site_connectivity_status_get_response.py +++ b/graphiant_sdk/models/v1_troubleshooting_site_connectivity_status_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_troubleshooting_site_connectivity_status_get_response_site_status import V1TroubleshootingSiteConnectivityStatusGetResponseSiteStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TroubleshootingSiteConnectivityStatusGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1TroubleshootingSiteConnectivityStatusGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["connectivityStatus"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_site_connectivity_status_get_response_site_status.py b/graphiant_sdk/models/v1_troubleshooting_site_connectivity_status_get_response_site_status.py index 689fe240..dced6608 100644 --- a/graphiant_sdk/models/v1_troubleshooting_site_connectivity_status_get_response_site_status.py +++ b/graphiant_sdk/models/v1_troubleshooting_site_connectivity_status_get_response_site_status.py @@ -21,19 +21,17 @@ 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 V1TroubleshootingSiteConnectivityStatusGetResponseSiteStatus(BaseModel): """ V1TroubleshootingSiteConnectivityStatusGetResponseSiteStatus """ # noqa: E501 - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + status: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["siteId", "status"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_site_site_id_get_response.py b/graphiant_sdk/models/v1_troubleshooting_site_site_id_get_response.py index 3e356a8e..1b311ef8 100644 --- a/graphiant_sdk/models/v1_troubleshooting_site_site_id_get_response.py +++ b/graphiant_sdk/models/v1_troubleshooting_site_site_id_get_response.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.statsmon_troubleshooting_edge_status import StatsmonTroubleshootingEdgeStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TroubleshootingSiteSiteIdGetResponse(BaseModel): """ V1TroubleshootingSiteSiteIdGetResponse """ # noqa: E501 edge_statuses: Optional[List[StatsmonTroubleshootingEdgeStatus]] = Field(default=None, alias="edgeStatuses") - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) - site_status: Optional[StrictStr] = Field(default=None, alias="siteStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + site_status: Optional[StrictStr] = Field(default=None, alias="siteStatus") __properties: ClassVar[List[str]] = ["edgeStatuses", "siteName", "siteStatus"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_request.py b/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_request.py index 2d49721f..d629f51d 100644 --- a/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_request.py +++ b/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_troubleshooting_filter import StatsmonTroubleshootingFilter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TroubleshootingTopSitesByAlertsPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V1TroubleshootingTopSitesByAlertsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["filter"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response.py b/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response.py index 8a272090..f882f04a 100644 --- a/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response.py +++ b/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_troubleshooting_top_sites_by_alerts_post_response_site_counts import V1TroubleshootingTopSitesByAlertsPostResponseSiteCounts from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TroubleshootingTopSitesByAlertsPostResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1TroubleshootingTopSitesByAlertsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["controlPlane", "dataPlane", "systemPlane"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response_site_counts.py b/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response_site_counts.py index c5ad9476..cb373fe0 100644 --- a/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response_site_counts.py +++ b/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response_site_counts.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v1_troubleshooting_top_sites_by_alerts_post_response_site_counts_site_count import V1TroubleshootingTopSitesByAlertsPostResponseSiteCountsSiteCount from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1TroubleshootingTopSitesByAlertsPostResponseSiteCounts(BaseModel): """ @@ -32,8 +31,7 @@ class V1TroubleshootingTopSitesByAlertsPostResponseSiteCounts(BaseModel): __properties: ClassVar[List[str]] = ["siteCounts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response_site_counts_site_count.py b/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response_site_counts_site_count.py index 52a3db38..235c547a 100644 --- a/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response_site_counts_site_count.py +++ b/graphiant_sdk/models/v1_troubleshooting_top_sites_by_alerts_post_response_site_counts_site_count.py @@ -21,19 +21,17 @@ 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 V1TroubleshootingTopSitesByAlertsPostResponseSiteCountsSiteCount(BaseModel): """ V1TroubleshootingTopSitesByAlertsPostResponseSiteCountsSiteCount """ # noqa: E501 - num_alerts: Optional[StrictInt] = Field(default=None, alias="numAlerts", json_schema_extra={"examples": [123]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) + num_alerts: Optional[StrictInt] = Field(default=None, alias="numAlerts") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") __properties: ClassVar[List[str]] = ["numAlerts", "siteName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_users_email_password_patch_request.py b/graphiant_sdk/models/v1_users_email_password_patch_request.py index dd496857..ce482396 100644 --- a/graphiant_sdk/models/v1_users_email_password_patch_request.py +++ b/graphiant_sdk/models/v1_users_email_password_patch_request.py @@ -21,18 +21,16 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1UsersEmailPasswordPatchRequest(BaseModel): """ V1UsersEmailPasswordPatchRequest """ # noqa: E501 - password: StrictStr = Field(description="New password for the user", json_schema_extra={"examples": ["newPassword123"]}) + password: StrictStr = Field(description="New password for the user") __properties: ClassVar[List[str]] = ["password"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_users_get_response.py b/graphiant_sdk/models/v1_users_get_response.py index 1d46c745..1bd34764 100644 --- a/graphiant_sdk/models/v1_users_get_response.py +++ b/graphiant_sdk/models/v1_users_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.common_user import CommonUser from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1UsersGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1UsersGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["users"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_users_id_enterprises_get_response.py b/graphiant_sdk/models/v1_users_id_enterprises_get_response.py index e5cb3402..9f271bee 100644 --- a/graphiant_sdk/models/v1_users_id_enterprises_get_response.py +++ b/graphiant_sdk/models/v1_users_id_enterprises_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.iam_enterprise import IamEnterprise from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1UsersIdEnterprisesGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1UsersIdEnterprisesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["enterprises"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_users_id_groups_enterprises_get_response.py b/graphiant_sdk/models/v1_users_id_groups_enterprises_get_response.py index cee9ab91..18febf04 100644 --- a/graphiant_sdk/models/v1_users_id_groups_enterprises_get_response.py +++ b/graphiant_sdk/models/v1_users_id_groups_enterprises_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.iam_group import IamGroup from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1UsersIdGroupsEnterprisesGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1UsersIdGroupsEnterprisesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["groups"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_users_id_groups_get_response.py b/graphiant_sdk/models/v1_users_id_groups_get_response.py index 7f457027..137eb8d5 100644 --- a/graphiant_sdk/models/v1_users_id_groups_get_response.py +++ b/graphiant_sdk/models/v1_users_id_groups_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.iam_group import IamGroup from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1UsersIdGroupsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1UsersIdGroupsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["groups"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_users_id_groups_root_get_response.py b/graphiant_sdk/models/v1_users_id_groups_root_get_response.py index 67c36b41..25779689 100644 --- a/graphiant_sdk/models/v1_users_id_groups_root_get_response.py +++ b/graphiant_sdk/models/v1_users_id_groups_root_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.iam_group import IamGroup from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1UsersIdGroupsRootGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1UsersIdGroupsRootGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["groups"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_users_passwords_expire_post_request.py b/graphiant_sdk/models/v1_users_passwords_expire_post_request.py index 2e556041..0c5fe938 100644 --- a/graphiant_sdk/models/v1_users_passwords_expire_post_request.py +++ b/graphiant_sdk/models/v1_users_passwords_expire_post_request.py @@ -21,7 +21,6 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1UsersPasswordsExpirePostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V1UsersPasswordsExpirePostRequest(BaseModel): __properties: ClassVar[List[str]] = ["userIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_users_passwords_expire_post_response.py b/graphiant_sdk/models/v1_users_passwords_expire_post_response.py index 0ce9549a..cd770c92 100644 --- a/graphiant_sdk/models/v1_users_passwords_expire_post_response.py +++ b/graphiant_sdk/models/v1_users_passwords_expire_post_response.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.iam_failed_user import IamFailedUser from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1UsersPasswordsExpirePostResponse(BaseModel): """ V1UsersPasswordsExpirePostResponse """ # noqa: E501 - failed_count: Optional[StrictInt] = Field(default=None, alias="failedCount", json_schema_extra={"examples": [123]}) + failed_count: Optional[StrictInt] = Field(default=None, alias="failedCount") failed_users: Optional[List[IamFailedUser]] = Field(default=None, alias="failedUsers") - success_count: Optional[StrictInt] = Field(default=None, alias="successCount", json_schema_extra={"examples": [123]}) + success_count: Optional[StrictInt] = Field(default=None, alias="successCount") __properties: ClassVar[List[str]] = ["failedCount", "failedUsers", "successCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_users_put_request.py b/graphiant_sdk/models/v1_users_put_request.py index 7bdafc48..97da3a2f 100644 --- a/graphiant_sdk/models/v1_users_put_request.py +++ b/graphiant_sdk/models/v1_users_put_request.py @@ -21,22 +21,20 @@ 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 V1UsersPutRequest(BaseModel): """ V1UsersPutRequest """ # noqa: E501 - email: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) - first_name: StrictStr = Field(description=" (required)", alias="firstName", json_schema_extra={"examples": ["example string"]}) - group_id: Optional[StrictStr] = Field(default=None, alias="groupId", json_schema_extra={"examples": ["example string"]}) - last_name: StrictStr = Field(description=" (required)", alias="lastName", json_schema_extra={"examples": ["example string"]}) - time_zone: Optional[StrictStr] = Field(default=None, alias="timeZone", json_schema_extra={"examples": ["example string"]}) + email: StrictStr = Field(description=" (required)") + first_name: StrictStr = Field(description=" (required)", alias="firstName") + group_id: Optional[StrictStr] = Field(default=None, alias="groupId") + last_name: StrictStr = Field(description=" (required)", alias="lastName") + time_zone: Optional[StrictStr] = Field(default=None, alias="timeZone") __properties: ClassVar[List[str]] = ["email", "firstName", "groupId", "lastName", "timeZone"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_version_post_request.py b/graphiant_sdk/models/v1_version_post_request.py index fb7644c2..7e148747 100644 --- a/graphiant_sdk/models/v1_version_post_request.py +++ b/graphiant_sdk/models/v1_version_post_request.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.mana_v2_configuration_metadata import ManaV2ConfigurationMetadata from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1VersionPostRequest(BaseModel): """ V1VersionPostRequest """ # noqa: E501 configuration_metadata: Optional[ManaV2ConfigurationMetadata] = Field(default=None, alias="configurationMetadata") - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) - version: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + version: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["configurationMetadata", "deviceId", "version"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_version_post_response.py b/graphiant_sdk/models/v1_version_post_response.py index e5abb681..b6bdae00 100644 --- a/graphiant_sdk/models/v1_version_post_response.py +++ b/graphiant_sdk/models/v1_version_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_version_metadata import ManaV2VersionMetadata from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1VersionPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V1VersionPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["updatedVersion"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_zones_get_response.py b/graphiant_sdk/models/v1_zones_get_response.py index dcab4793..44195d84 100644 --- a/graphiant_sdk/models/v1_zones_get_response.py +++ b/graphiant_sdk/models/v1_zones_get_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.mana_v2_zone import ManaV2Zone from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V1ZonesGetResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V1ZonesGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["pageInfo", "zones"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_ztagent_agents_get_response.py b/graphiant_sdk/models/v1_ztagent_agents_get_response.py new file mode 100644 index 00000000..55bffe2d --- /dev/null +++ b/graphiant_sdk/models/v1_ztagent_agents_get_response.py @@ -0,0 +1,97 @@ +# 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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.conceal_agent import ConcealAgent +from typing import Optional, Set +from typing_extensions import Self + +class V1ZtagentAgentsGetResponse(BaseModel): + """ + V1ZtagentAgentsGetResponse + """ # noqa: E501 + agents: Optional[List[ConcealAgent]] = None + count: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["agents", "count"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ZtagentAgentsGetResponse 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 agents (list) + _items = [] + if self.agents: + for _item_agents in self.agents: + if _item_agents: + _items.append(_item_agents.to_dict()) + _dict['agents'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ZtagentAgentsGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "agents": [ConcealAgent.from_dict(_item) for _item in obj["agents"]] if obj.get("agents") is not None else None, + "count": obj.get("count") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_ztagent_bindings_get_response.py b/graphiant_sdk/models/v1_ztagent_bindings_get_response.py index 33390d77..0abb40db 100644 --- a/graphiant_sdk/models/v1_ztagent_bindings_get_response.py +++ b/graphiant_sdk/models/v1_ztagent_bindings_get_response.py @@ -21,20 +21,18 @@ 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", json_schema_extra={"examples": ["example string"]}) - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - site_id: Optional[StrictStr] = Field(default=None, alias="siteId", json_schema_extra={"examples": ["example string"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v1_ztagent_bindings_put_request.py b/graphiant_sdk/models/v1_ztagent_bindings_put_request.py index 67a7ce6e..0aa490d3 100644 --- a/graphiant_sdk/models/v1_ztagent_bindings_put_request.py +++ b/graphiant_sdk/models/v1_ztagent_bindings_put_request.py @@ -21,20 +21,18 @@ 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", json_schema_extra={"examples": ["example string"]}) - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) - site_id: Optional[StrictStr] = Field(default=None, alias="siteId", json_schema_extra={"examples": ["example string"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_ack_createupdate_post_request.py b/graphiant_sdk/models/v2_ack_createupdate_post_request.py index d130e7d2..088dfe89 100644 --- a/graphiant_sdk/models/v2_ack_createupdate_post_request.py +++ b/graphiant_sdk/models/v2_ack_createupdate_post_request.py @@ -21,19 +21,17 @@ 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 V2AckCreateupdatePostRequest(BaseModel): """ V2AckCreateupdatePostRequest """ # noqa: E501 alert_id_list: List[StrictStr] = Field(alias="alertIdList") - reason: Optional[StrictStr] = Field(default=None, description="Optional triage message in acknowledgement", json_schema_extra={"examples": ["example string"]}) + reason: Optional[StrictStr] = Field(default=None, description="Optional triage message in acknowledgement") __properties: ClassVar[List[str]] = ["alertIdList", "reason"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_aggregated_notification_enable_disable_post_request.py b/graphiant_sdk/models/v2_aggregated_notification_enable_disable_post_request.py index 2dd7c7f7..6f8ec0f3 100644 --- a/graphiant_sdk/models/v2_aggregated_notification_enable_disable_post_request.py +++ b/graphiant_sdk/models/v2_aggregated_notification_enable_disable_post_request.py @@ -21,18 +21,16 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AggregatedNotificationEnableDisablePostRequest(BaseModel): """ V2AggregatedNotificationEnableDisablePostRequest """ # noqa: E501 - enable: StrictBool = Field(description="Enable or disable aggregated notifications. True means enabled (required)", json_schema_extra={"examples": [True]}) + enable: StrictBool = Field(description="Enable or disable aggregated notifications. True means enabled (required)") __properties: ClassVar[List[str]] = ["enable"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_aggregated_notification_get_state_get_response.py b/graphiant_sdk/models/v2_aggregated_notification_get_state_get_response.py index c819fae5..3c18073e 100644 --- a/graphiant_sdk/models/v2_aggregated_notification_get_state_get_response.py +++ b/graphiant_sdk/models/v2_aggregated_notification_get_state_get_response.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, StrictBool 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 V2AggregatedNotificationGetStateGetResponse(BaseModel): """ V2AggregatedNotificationGetStateGetResponse """ # noqa: E501 - state: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + state: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["state"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_allowlist_by_enterprise_get_response.py b/graphiant_sdk/models/v2_allowlist_by_enterprise_get_response.py index 538ecc7f..70e33d07 100644 --- a/graphiant_sdk/models/v2_allowlist_by_enterprise_get_response.py +++ b/graphiant_sdk/models/v2_allowlist_by_enterprise_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_allow_alert_notifcation_list_record import AlertserviceAllowAlertNotifcationListRecord from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AllowlistByEnterpriseGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AllowlistByEnterpriseGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["records"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_allowlist_create_post_request.py b/graphiant_sdk/models/v2_allowlist_create_post_request.py index 62aeecc7..cdd4a79b 100644 --- a/graphiant_sdk/models/v2_allowlist_create_post_request.py +++ b/graphiant_sdk/models/v2_allowlist_create_post_request.py @@ -21,19 +21,17 @@ 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 V2AllowlistCreatePostRequest(BaseModel): """ V2AllowlistCreatePostRequest """ # noqa: E501 - alert_id: StrictStr = Field(description="Alert id of the alert to create allowlist/mutelist for (required)", alias="alertId", json_schema_extra={"examples": ["example string"]}) - note_text: Optional[StrictStr] = Field(default=None, description="Optional note", alias="noteText", json_schema_extra={"examples": ["example string"]}) + alert_id: StrictStr = Field(description="Alert id of the alert to create allowlist/mutelist for (required)", alias="alertId") + note_text: Optional[StrictStr] = Field(default=None, description="Optional note", alias="noteText") __properties: ClassVar[List[str]] = ["alertId", "noteText"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_allowlist_rule_id_get_response.py b/graphiant_sdk/models/v2_allowlist_rule_id_get_response.py index 325fa174..54d250fb 100644 --- a/graphiant_sdk/models/v2_allowlist_rule_id_get_response.py +++ b/graphiant_sdk/models/v2_allowlist_rule_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_allow_alert_notifcation_list_record import AlertserviceAllowAlertNotifcationListRecord from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AllowlistRuleIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AllowlistRuleIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["records"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assistant_add_to_conversation_post_request.py b/graphiant_sdk/models/v2_assistant_add_to_conversation_post_request.py index 05a61697..d1f4a92b 100644 --- a/graphiant_sdk/models/v2_assistant_add_to_conversation_post_request.py +++ b/graphiant_sdk/models/v2_assistant_add_to_conversation_post_request.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.assistant_assistant_question import AssistantAssistantQuestion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssistantAddToConversationPostRequest(BaseModel): """ V2AssistantAddToConversationPostRequest """ # noqa: E501 - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") question: Optional[AssistantAssistantQuestion] = None __properties: ClassVar[List[str]] = ["conversationId", "question"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assistant_add_to_conversation_post_response.py b/graphiant_sdk/models/v2_assistant_add_to_conversation_post_response.py index 3f2992b4..bedecc45 100644 --- a/graphiant_sdk/models/v2_assistant_add_to_conversation_post_response.py +++ b/graphiant_sdk/models/v2_assistant_add_to_conversation_post_response.py @@ -23,26 +23,24 @@ from graphiant_sdk.models.assistant_dataframe_dictionary import AssistantDataframeDictionary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssistantAddToConversationPostResponse(BaseModel): """ V2AssistantAddToConversationPostResponse """ # noqa: E501 - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") dataframe_dictionary: Optional[List[AssistantDataframeDictionary]] = Field(default=None, alias="dataframeDictionary") original_question: Optional[AssistantAssistantQuestion] = Field(default=None, alias="originalQuestion") - response_id: Optional[StrictStr] = Field(default=None, alias="responseId", json_schema_extra={"examples": ["example string"]}) - response_language: Optional[StrictStr] = Field(default=None, alias="responseLanguage", json_schema_extra={"examples": ["ENUM_VALUE"]}) - response_text: Optional[StrictStr] = Field(default=None, alias="responseText", json_schema_extra={"examples": ["example string"]}) - response_timestamp: Optional[StrictInt] = Field(default=None, alias="responseTimestamp", json_schema_extra={"examples": [1234567891011]}) - response_type: Optional[StrictStr] = Field(default=None, alias="responseType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - visualization_summary: Optional[StrictStr] = Field(default=None, alias="visualizationSummary", json_schema_extra={"examples": ["example string"]}) + response_id: Optional[StrictStr] = Field(default=None, alias="responseId") + response_language: Optional[StrictStr] = Field(default=None, alias="responseLanguage") + response_text: Optional[StrictStr] = Field(default=None, alias="responseText") + response_timestamp: Optional[StrictInt] = Field(default=None, alias="responseTimestamp") + response_type: Optional[StrictStr] = Field(default=None, alias="responseType") + visualization_summary: Optional[StrictStr] = Field(default=None, alias="visualizationSummary") __properties: ClassVar[List[str]] = ["conversationId", "dataframeDictionary", "originalQuestion", "responseId", "responseLanguage", "responseText", "responseTimestamp", "responseType", "visualizationSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assistant_conversation_context_history_post_request.py b/graphiant_sdk/models/v2_assistant_conversation_context_history_post_request.py index 0d476a6f..fb27be70 100644 --- a/graphiant_sdk/models/v2_assistant_conversation_context_history_post_request.py +++ b/graphiant_sdk/models/v2_assistant_conversation_context_history_post_request.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, StrictBool 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 V2AssistantConversationContextHistoryPostRequest(BaseModel): """ V2AssistantConversationContextHistoryPostRequest """ # noqa: E501 - enable: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + enable: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["enable"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assistant_conversation_interface_enable_disable_post_request.py b/graphiant_sdk/models/v2_assistant_conversation_interface_enable_disable_post_request.py index cdb386f6..7154205d 100644 --- a/graphiant_sdk/models/v2_assistant_conversation_interface_enable_disable_post_request.py +++ b/graphiant_sdk/models/v2_assistant_conversation_interface_enable_disable_post_request.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, StrictBool 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 V2AssistantConversationInterfaceEnableDisablePostRequest(BaseModel): """ V2AssistantConversationInterfaceEnableDisablePostRequest """ # noqa: E501 - enable: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + enable: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["enable"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assistant_conversation_interface_state_get_response.py b/graphiant_sdk/models/v2_assistant_conversation_interface_state_get_response.py index a9f39402..b76bf932 100644 --- a/graphiant_sdk/models/v2_assistant_conversation_interface_state_get_response.py +++ b/graphiant_sdk/models/v2_assistant_conversation_interface_state_get_response.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool +from pydantic import BaseModel, ConfigDict, StrictBool 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 V2AssistantConversationInterfaceStateGetResponse(BaseModel): """ V2AssistantConversationInterfaceStateGetResponse """ # noqa: E501 - enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) + enabled: Optional[StrictBool] = None __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assistant_get_conversation_details_post_request.py b/graphiant_sdk/models/v2_assistant_get_conversation_details_post_request.py index 18ddfc1e..6c0fdeeb 100644 --- a/graphiant_sdk/models/v2_assistant_get_conversation_details_post_request.py +++ b/graphiant_sdk/models/v2_assistant_get_conversation_details_post_request.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.assistant_time_window import AssistantTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssistantGetConversationDetailsPostRequest(BaseModel): """ V2AssistantGetConversationDetailsPostRequest """ # noqa: E501 - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") time_window: Optional[AssistantTimeWindow] = Field(default=None, alias="timeWindow") - user_id: Optional[StrictStr] = Field(default=None, alias="userId", json_schema_extra={"examples": ["example string"]}) + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["conversationId", "timeWindow", "userId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assistant_get_conversation_details_post_response.py b/graphiant_sdk/models/v2_assistant_get_conversation_details_post_response.py index f2b03286..84d119eb 100644 --- a/graphiant_sdk/models/v2_assistant_get_conversation_details_post_response.py +++ b/graphiant_sdk/models/v2_assistant_get_conversation_details_post_response.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.assistant_assistant_response import AssistantAssistantResponse from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssistantGetConversationDetailsPostResponse(BaseModel): """ V2AssistantGetConversationDetailsPostResponse """ # noqa: E501 - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") response_list: Optional[List[AssistantAssistantResponse]] = Field(default=None, alias="responseList") - user_id: Optional[StrictStr] = Field(default=None, alias="userId", json_schema_extra={"examples": ["example string"]}) + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["conversationId", "responseList", "userId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assistant_get_conversations_post_request.py b/graphiant_sdk/models/v2_assistant_get_conversations_post_request.py index 1ec3b9e7..ae9d8672 100644 --- a/graphiant_sdk/models/v2_assistant_get_conversations_post_request.py +++ b/graphiant_sdk/models/v2_assistant_get_conversations_post_request.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.assistant_time_window import AssistantTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssistantGetConversationsPostRequest(BaseModel): """ V2AssistantGetConversationsPostRequest """ # noqa: E501 time_window: Optional[AssistantTimeWindow] = Field(default=None, alias="timeWindow") - user_id: Optional[StrictStr] = Field(default=None, alias="userId", json_schema_extra={"examples": ["example string"]}) + user_id: Optional[StrictStr] = Field(default=None, alias="userId") __properties: ClassVar[List[str]] = ["timeWindow", "userId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assistant_get_conversations_post_response.py b/graphiant_sdk/models/v2_assistant_get_conversations_post_response.py index b8a260d1..60aa628d 100644 --- a/graphiant_sdk/models/v2_assistant_get_conversations_post_response.py +++ b/graphiant_sdk/models/v2_assistant_get_conversations_post_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.assistant_assistant_conversation import AssistantAssistantConversation from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssistantGetConversationsPostResponse(BaseModel): """ V2AssistantGetConversationsPostResponse """ # noqa: E501 conversation_list: Optional[List[AssistantAssistantConversation]] = Field(default=None, alias="conversationList") - enable_context_history: Optional[StrictBool] = Field(default=None, alias="enableContextHistory", json_schema_extra={"examples": [True]}) + enable_context_history: Optional[StrictBool] = Field(default=None, alias="enableContextHistory") __properties: ClassVar[List[str]] = ["conversationList", "enableContextHistory"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assistant_update_conversation_name_post_request.py b/graphiant_sdk/models/v2_assistant_update_conversation_name_post_request.py index bf785053..de6d4a18 100644 --- a/graphiant_sdk/models/v2_assistant_update_conversation_name_post_request.py +++ b/graphiant_sdk/models/v2_assistant_update_conversation_name_post_request.py @@ -21,19 +21,17 @@ 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 V2AssistantUpdateConversationNamePostRequest(BaseModel): """ V2AssistantUpdateConversationNamePostRequest """ # noqa: E501 - conversation_header: Optional[StrictStr] = Field(default=None, alias="conversationHeader", json_schema_extra={"examples": ["example string"]}) - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) + conversation_header: Optional[StrictStr] = Field(default=None, alias="conversationHeader") + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") __properties: ClassVar[List[str]] = ["conversationHeader", "conversationId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assistant_version_post_response.py b/graphiant_sdk/models/v2_assistant_version_post_response.py index 4db6de31..25e0efac 100644 --- a/graphiant_sdk/models/v2_assistant_version_post_response.py +++ b/graphiant_sdk/models/v2_assistant_version_post_response.py @@ -21,18 +21,16 @@ 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 V2AssistantVersionPostResponse(BaseModel): """ V2AssistantVersionPostResponse """ # noqa: E501 - version_id: Optional[StrictStr] = Field(default=None, alias="versionId", json_schema_extra={"examples": ["example string"]}) + version_id: Optional[StrictStr] = Field(default=None, alias="versionId") __properties: ClassVar[List[str]] = ["versionId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_ai_adoption_summary_post_request.py b/graphiant_sdk/models/v2_assurance_ai_adoption_summary_post_request.py new file mode 100644 index 00000000..b92ed745 --- /dev/null +++ b/graphiant_sdk/models/v2_assurance_ai_adoption_summary_post_request.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, StrictInt +from typing import Any, ClassVar, Dict, List +from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow +from typing import Optional, Set +from typing_extensions import Self + +class V2AssuranceAiAdoptionSummaryPostRequest(BaseModel): + """ + V2AssuranceAiAdoptionSummaryPostRequest + """ # noqa: E501 + time_window: AssuranceTimeWindow = Field(alias="timeWindow") + user_list_size: StrictInt = Field(description="list size of user list in where widget (required)", alias="userListSize") + __properties: ClassVar[List[str]] = ["timeWindow", "userListSize"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2AssuranceAiAdoptionSummaryPostRequest 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 time_window + if self.time_window: + _dict['timeWindow'] = self.time_window.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V2AssuranceAiAdoptionSummaryPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "timeWindow": AssuranceTimeWindow.from_dict(obj["timeWindow"]) if obj.get("timeWindow") is not None else None, + "userListSize": obj.get("userListSize") + }) + return _obj + + diff --git a/graphiant_sdk/models/v2_assurance_ai_adoption_summary_post_response.py b/graphiant_sdk/models/v2_assurance_ai_adoption_summary_post_response.py new file mode 100644 index 00000000..9a412132 --- /dev/null +++ b/graphiant_sdk/models/v2_assurance_ai_adoption_summary_post_response.py @@ -0,0 +1,109 @@ +# 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.assurance_top_level_kpi import AssuranceTopLevelKpi +from graphiant_sdk.models.assurance_what_widget import AssuranceWhatWidget +from graphiant_sdk.models.assurance_when_widget import AssuranceWhenWidget +from graphiant_sdk.models.assurance_where_widget import AssuranceWhereWidget +from typing import Optional, Set +from typing_extensions import Self + +class V2AssuranceAiAdoptionSummaryPostResponse(BaseModel): + """ + V2AssuranceAiAdoptionSummaryPostResponse + """ # noqa: E501 + top_level_kpi: Optional[AssuranceTopLevelKpi] = Field(default=None, alias="topLevelKpi") + what_widget: Optional[AssuranceWhatWidget] = Field(default=None, alias="whatWidget") + when_widget: Optional[AssuranceWhenWidget] = Field(default=None, alias="whenWidget") + where_widget: Optional[AssuranceWhereWidget] = Field(default=None, alias="whereWidget") + __properties: ClassVar[List[str]] = ["topLevelKpi", "whatWidget", "whenWidget", "whereWidget"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2AssuranceAiAdoptionSummaryPostResponse 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 top_level_kpi + if self.top_level_kpi: + _dict['topLevelKpi'] = self.top_level_kpi.to_dict() + # override the default output from pydantic by calling `to_dict()` of what_widget + if self.what_widget: + _dict['whatWidget'] = self.what_widget.to_dict() + # override the default output from pydantic by calling `to_dict()` of when_widget + if self.when_widget: + _dict['whenWidget'] = self.when_widget.to_dict() + # override the default output from pydantic by calling `to_dict()` of where_widget + if self.where_widget: + _dict['whereWidget'] = self.where_widget.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V2AssuranceAiAdoptionSummaryPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "topLevelKpi": AssuranceTopLevelKpi.from_dict(obj["topLevelKpi"]) if obj.get("topLevelKpi") is not None else None, + "whatWidget": AssuranceWhatWidget.from_dict(obj["whatWidget"]) if obj.get("whatWidget") is not None else None, + "whenWidget": AssuranceWhenWidget.from_dict(obj["whenWidget"]) if obj.get("whenWidget") is not None else None, + "whereWidget": AssuranceWhereWidget.from_dict(obj["whereWidget"]) if obj.get("whereWidget") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_request.py b/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_request.py index 064fc51d..93abe84b 100644 --- a/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_request.py +++ b/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_request.py @@ -22,23 +22,21 @@ from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceApplicationdetailsbynamePostRequest(BaseModel): """ V2AssuranceApplicationdetailsbynamePostRequest """ # noqa: E501 - app_id_key: Optional[StrictStr] = Field(default=None, alias="appIdKey", json_schema_extra={"examples": ["example string"]}) - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) - exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId", json_schema_extra={"examples": [1234567891011]}) - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId", json_schema_extra={"examples": [1234567891011]}) + app_id_key: Optional[StrictStr] = Field(default=None, alias="appIdKey") + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") + exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId") + flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["appIdKey", "appName", "bucketId", "exchangeServiceId", "flexAlgoId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_response.py b/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_response.py index fc14395b..1ee8895d 100644 --- a/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_response.py +++ b/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_response.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.assurance_app_name_record import AssuranceAppNameRecord from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceApplicationdetailsbynamePostResponse(BaseModel): """ @@ -34,8 +33,7 @@ class V2AssuranceApplicationdetailsbynamePostResponse(BaseModel): __properties: ClassVar[List[str]] = ["appIdRecord", "appNameRecord"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_applicationprofilesummary_post_request.py b/graphiant_sdk/models/v2_assurance_applicationprofilesummary_post_request.py index 6af98726..1e75659a 100644 --- a/graphiant_sdk/models/v2_assurance_applicationprofilesummary_post_request.py +++ b/graphiant_sdk/models/v2_assurance_applicationprofilesummary_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceApplicationprofilesummaryPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceApplicationprofilesummaryPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_applicationprofilesummary_post_response.py b/graphiant_sdk/models/v2_assurance_applicationprofilesummary_post_response.py index 084f2774..efbcaee6 100644 --- a/graphiant_sdk/models/v2_assurance_applicationprofilesummary_post_response.py +++ b/graphiant_sdk/models/v2_assurance_applicationprofilesummary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_application_profile_summary import AssuranceApplicationProfileSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceApplicationprofilesummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceApplicationprofilesummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["applicationProfileSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_bucket_app_servers_post_request.py b/graphiant_sdk/models/v2_assurance_bucket_app_servers_post_request.py index bbb2d136..d672994c 100644 --- a/graphiant_sdk/models/v2_assurance_bucket_app_servers_post_request.py +++ b/graphiant_sdk/models/v2_assurance_bucket_app_servers_post_request.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceBucketAppServersPostRequest(BaseModel): """ V2AssuranceBucketAppServersPostRequest """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) - exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId", json_schema_extra={"examples": [1234567891011]}) - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId", json_schema_extra={"examples": [1234567891011]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") + exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId") + flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["appName", "bucketId", "exchangeServiceId", "flexAlgoId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_bucket_app_servers_post_response.py b/graphiant_sdk/models/v2_assurance_bucket_app_servers_post_response.py index fdde2db2..ca48626a 100644 --- a/graphiant_sdk/models/v2_assurance_bucket_app_servers_post_response.py +++ b/graphiant_sdk/models/v2_assurance_bucket_app_servers_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_bucket_app_server import AssuranceBucketAppServer from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceBucketAppServersPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceBucketAppServersPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["appServers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_bucket_apps_post_request.py b/graphiant_sdk/models/v2_assurance_bucket_apps_post_request.py index b4d98112..c537faf5 100644 --- a/graphiant_sdk/models/v2_assurance_bucket_apps_post_request.py +++ b/graphiant_sdk/models/v2_assurance_bucket_apps_post_request.py @@ -22,22 +22,20 @@ from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceBucketAppsPostRequest(BaseModel): """ V2AssuranceBucketAppsPostRequest """ # noqa: E501 - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) - exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId", json_schema_extra={"examples": [1234567891011]}) - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId", json_schema_extra={"examples": [1234567891011]}) + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") + exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId") + flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") - unclassified_only: Optional[StrictBool] = Field(default=None, alias="unclassifiedOnly", json_schema_extra={"examples": [True]}) + unclassified_only: Optional[StrictBool] = Field(default=None, alias="unclassifiedOnly") __properties: ClassVar[List[str]] = ["bucketId", "exchangeServiceId", "flexAlgoId", "timeWindow", "unclassifiedOnly"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_bucket_apps_post_response.py b/graphiant_sdk/models/v2_assurance_bucket_apps_post_response.py index 1f2726f3..f9781006 100644 --- a/graphiant_sdk/models/v2_assurance_bucket_apps_post_response.py +++ b/graphiant_sdk/models/v2_assurance_bucket_apps_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_bucket_app import AssuranceBucketApp from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceBucketAppsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceBucketAppsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["apps"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_bucket_services_post_request.py b/graphiant_sdk/models/v2_assurance_bucket_services_post_request.py index 87e4524e..f8c502d8 100644 --- a/graphiant_sdk/models/v2_assurance_bucket_services_post_request.py +++ b/graphiant_sdk/models/v2_assurance_bucket_services_post_request.py @@ -21,18 +21,16 @@ 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 V2AssuranceBucketServicesPostRequest(BaseModel): """ V2AssuranceBucketServicesPostRequest """ # noqa: E501 - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") __properties: ClassVar[List[str]] = ["bucketId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_bucket_services_post_response.py b/graphiant_sdk/models/v2_assurance_bucket_services_post_response.py index 512e1dd1..55912ade 100644 --- a/graphiant_sdk/models/v2_assurance_bucket_services_post_response.py +++ b/graphiant_sdk/models/v2_assurance_bucket_services_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_exchange_service_identifier import AssuranceExchangeServiceIdentifier from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceBucketServicesPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceBucketServicesPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["services"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_bucket_topologies_post_request.py b/graphiant_sdk/models/v2_assurance_bucket_topologies_post_request.py index 74ef3bcc..63c492fb 100644 --- a/graphiant_sdk/models/v2_assurance_bucket_topologies_post_request.py +++ b/graphiant_sdk/models/v2_assurance_bucket_topologies_post_request.py @@ -21,18 +21,16 @@ 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 V2AssuranceBucketTopologiesPostRequest(BaseModel): """ V2AssuranceBucketTopologiesPostRequest """ # noqa: E501 - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") __properties: ClassVar[List[str]] = ["bucketId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_bucket_topologies_post_response.py b/graphiant_sdk/models/v2_assurance_bucket_topologies_post_response.py index 64de3c27..56e37e1f 100644 --- a/graphiant_sdk/models/v2_assurance_bucket_topologies_post_response.py +++ b/graphiant_sdk/models/v2_assurance_bucket_topologies_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_flex_algo_identifier import AssuranceFlexAlgoIdentifier from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceBucketTopologiesPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceBucketTopologiesPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["topologies"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_bucketdetails_post_request.py b/graphiant_sdk/models/v2_assurance_bucketdetails_post_request.py index 6937246e..1b1cad1f 100644 --- a/graphiant_sdk/models/v2_assurance_bucketdetails_post_request.py +++ b/graphiant_sdk/models/v2_assurance_bucketdetails_post_request.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceBucketdetailsPostRequest(BaseModel): """ V2AssuranceBucketdetailsPostRequest """ # noqa: E501 - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") - unclassified_only: Optional[StrictBool] = Field(default=None, alias="unclassifiedOnly", json_schema_extra={"examples": [True]}) + unclassified_only: Optional[StrictBool] = Field(default=None, alias="unclassifiedOnly") __properties: ClassVar[List[str]] = ["bucketId", "timeWindow", "unclassifiedOnly"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_bucketdetails_post_response.py b/graphiant_sdk/models/v2_assurance_bucketdetails_post_response.py index 22a6807c..bead92b9 100644 --- a/graphiant_sdk/models/v2_assurance_bucketdetails_post_response.py +++ b/graphiant_sdk/models/v2_assurance_bucketdetails_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_bucket_details import AssuranceBucketDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceBucketdetailsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceBucketdetailsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["bucketDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_create_ai_adoption_approve_entry_post_request.py b/graphiant_sdk/models/v2_assurance_create_ai_adoption_approve_entry_post_request.py new file mode 100644 index 00000000..0508d4aa --- /dev/null +++ b/graphiant_sdk/models/v2_assurance_create_ai_adoption_approve_entry_post_request.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 +from typing import Any, ClassVar, Dict, List +from graphiant_sdk.models.assurance_approved_app_entry_request import AssuranceApprovedAppEntryRequest +from typing import Optional, Set +from typing_extensions import Self + +class V2AssuranceCreateAiAdoptionApproveEntryPostRequest(BaseModel): + """ + V2AssuranceCreateAiAdoptionApproveEntryPostRequest + """ # noqa: E501 + approved_app_entry: AssuranceApprovedAppEntryRequest = Field(alias="approvedAppEntry") + __properties: ClassVar[List[str]] = ["approvedAppEntry"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2AssuranceCreateAiAdoptionApproveEntryPostRequest 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 approved_app_entry + if self.approved_app_entry: + _dict['approvedAppEntry'] = self.approved_app_entry.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V2AssuranceCreateAiAdoptionApproveEntryPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "approvedAppEntry": AssuranceApprovedAppEntryRequest.from_dict(obj["approvedAppEntry"]) if obj.get("approvedAppEntry") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v2_assurance_create_ai_adoption_approve_entry_post_response.py b/graphiant_sdk/models/v2_assurance_create_ai_adoption_approve_entry_post_response.py new file mode 100644 index 00000000..6857cc95 --- /dev/null +++ b/graphiant_sdk/models/v2_assurance_create_ai_adoption_approve_entry_post_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 + + +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 + +class V2AssuranceCreateAiAdoptionApproveEntryPostResponse(BaseModel): + """ + V2AssuranceCreateAiAdoptionApproveEntryPostResponse + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, description="identifier of the created approved app entry (required)") + __properties: ClassVar[List[str]] = ["id"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2AssuranceCreateAiAdoptionApproveEntryPostResponse 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 V2AssuranceCreateAiAdoptionApproveEntryPostResponse 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/v2_assurance_create_dnsproxy_entry_post_request.py b/graphiant_sdk/models/v2_assurance_create_dnsproxy_entry_post_request.py index 5ac837a3..879ea711 100644 --- a/graphiant_sdk/models/v2_assurance_create_dnsproxy_entry_post_request.py +++ b/graphiant_sdk/models/v2_assurance_create_dnsproxy_entry_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_dns_proxy_entry import AssuranceDnsProxyEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceCreateDnsproxyEntryPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceCreateDnsproxyEntryPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["dnsproxyEntry"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_create_dnsproxy_entry_post_response.py b/graphiant_sdk/models/v2_assurance_create_dnsproxy_entry_post_response.py index 16303ac5..eaf4d1a0 100644 --- a/graphiant_sdk/models/v2_assurance_create_dnsproxy_entry_post_response.py +++ b/graphiant_sdk/models/v2_assurance_create_dnsproxy_entry_post_response.py @@ -21,18 +21,16 @@ 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 V2AssuranceCreateDnsproxyEntryPostResponse(BaseModel): """ V2AssuranceCreateDnsproxyEntryPostResponse """ # noqa: E501 - dnsproxy_entry_id: Optional[StrictStr] = Field(default=None, description="dns proxy table entry id (required)", alias="dnsproxyEntryId", json_schema_extra={"examples": ["example string"]}) + dnsproxy_entry_id: Optional[StrictStr] = Field(default=None, description="dns proxy table entry id (required)", alias="dnsproxyEntryId") __properties: ClassVar[List[str]] = ["dnsproxyEntryId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_create_user_report_post_request.py b/graphiant_sdk/models/v2_assurance_create_user_report_post_request.py index 7139a854..13f3c318 100644 --- a/graphiant_sdk/models/v2_assurance_create_user_report_post_request.py +++ b/graphiant_sdk/models/v2_assurance_create_user_report_post_request.py @@ -21,24 +21,22 @@ 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 V2AssuranceCreateUserReportPostRequest(BaseModel): """ V2AssuranceCreateUserReportPostRequest """ # noqa: E501 - created_on: Optional[StrictInt] = Field(default=None, alias="createdOn", json_schema_extra={"examples": [1234567891011]}) + created_on: Optional[StrictInt] = Field(default=None, alias="createdOn") email_list: Optional[List[StrictStr]] = Field(default=None, alias="emailList") - pdf_content: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="pdfContent", json_schema_extra={"examples": ["WW5sMFpYTT0="]}) + pdf_content: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="pdfContent") raw_content: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="rawContent") - report_name: Optional[StrictStr] = Field(default=None, alias="reportName", json_schema_extra={"examples": ["example string"]}) - report_type: Optional[StrictStr] = Field(default=None, alias="reportType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - time_period: Optional[StrictStr] = Field(default=None, alias="timePeriod", json_schema_extra={"examples": ["ENUM_VALUE"]}) + report_name: Optional[StrictStr] = Field(default=None, alias="reportName") + report_type: Optional[StrictStr] = Field(default=None, alias="reportType") + time_period: Optional[StrictStr] = Field(default=None, alias="timePeriod") __properties: ClassVar[List[str]] = ["createdOn", "emailList", "pdfContent", "rawContent", "reportName", "reportType", "timePeriod"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_create_user_report_post_response.py b/graphiant_sdk/models/v2_assurance_create_user_report_post_response.py index f16f01e6..98328fb5 100644 --- a/graphiant_sdk/models/v2_assurance_create_user_report_post_response.py +++ b/graphiant_sdk/models/v2_assurance_create_user_report_post_response.py @@ -21,18 +21,16 @@ 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 V2AssuranceCreateUserReportPostResponse(BaseModel): """ V2AssuranceCreateUserReportPostResponse """ # noqa: E501 - report_id: Optional[StrictInt] = Field(default=None, alias="reportId", json_schema_extra={"examples": [1234567891011]}) + report_id: Optional[StrictInt] = Field(default=None, alias="reportId") __properties: ClassVar[List[str]] = ["reportId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_request.py b/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_request.py index 9670767f..fe8d926b 100644 --- a/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_request.py +++ b/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_request.py @@ -21,21 +21,19 @@ 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 V2AssuranceCreateclassifiedapplicationPostRequest(BaseModel): """ V2AssuranceCreateclassifiedapplicationPostRequest """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") ip_prefix_list: Optional[List[StrictStr]] = Field(default=None, alias="ipPrefixList") port_list: Optional[List[StrictStr]] = Field(default=None, alias="portList") protocol_list: Optional[List[StrictStr]] = Field(default=None, alias="protocolList") __properties: ClassVar[List[str]] = ["appName", "ipPrefixList", "portList", "protocolList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_response.py b/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_response.py index f4eea2dd..f978170f 100644 --- a/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_response.py +++ b/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_response.py @@ -21,18 +21,16 @@ 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 V2AssuranceCreateclassifiedapplicationPostResponse(BaseModel): """ V2AssuranceCreateclassifiedapplicationPostResponse """ # noqa: E501 - classification_entry_id: Optional[StrictStr] = Field(default=None, alias="classificationEntryId", json_schema_extra={"examples": ["example string"]}) + classification_entry_id: Optional[StrictStr] = Field(default=None, alias="classificationEntryId") __properties: ClassVar[List[str]] = ["classificationEntryId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_download_user_report_get_response.py b/graphiant_sdk/models/v2_assurance_download_user_report_get_response.py index 23a2c226..a984fa49 100644 --- a/graphiant_sdk/models/v2_assurance_download_user_report_get_response.py +++ b/graphiant_sdk/models/v2_assurance_download_user_report_get_response.py @@ -21,18 +21,16 @@ 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 V2AssuranceDownloadUserReportGetResponse(BaseModel): """ V2AssuranceDownloadUserReportGetResponse """ # noqa: E501 - pdf_content: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="pdfContent", json_schema_extra={"examples": ["WW5sMFpYTT0="]}) + pdf_content: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="pdfContent") __properties: ClassVar[List[str]] = ["pdfContent"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_enterprisesummary_post_request.py b/graphiant_sdk/models/v2_assurance_enterprisesummary_post_request.py index 706c2b40..1e481c26 100644 --- a/graphiant_sdk/models/v2_assurance_enterprisesummary_post_request.py +++ b/graphiant_sdk/models/v2_assurance_enterprisesummary_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceEnterprisesummaryPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceEnterprisesummaryPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_enterprisesummary_post_response.py b/graphiant_sdk/models/v2_assurance_enterprisesummary_post_response.py index 5280462f..cf239220 100644 --- a/graphiant_sdk/models/v2_assurance_enterprisesummary_post_response.py +++ b/graphiant_sdk/models/v2_assurance_enterprisesummary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_enterprise_summary import AssuranceEnterpriseSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceEnterprisesummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceEnterprisesummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["enterpriseSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_get_app_names_post_request.py b/graphiant_sdk/models/v2_assurance_get_app_names_post_request.py new file mode 100644 index 00000000..134dbf3e --- /dev/null +++ b/graphiant_sdk/models/v2_assurance_get_app_names_post_request.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 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class V2AssuranceGetAppNamesPostRequest(BaseModel): + """ + V2AssuranceGetAppNamesPostRequest + """ # noqa: E501 + tags: List[StrictStr] + __properties: ClassVar[List[str]] = ["tags"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2AssuranceGetAppNamesPostRequest 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 V2AssuranceGetAppNamesPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "tags": obj.get("tags") + }) + return _obj + + diff --git a/graphiant_sdk/models/v2_assurance_get_app_names_post_response.py b/graphiant_sdk/models/v2_assurance_get_app_names_post_response.py new file mode 100644 index 00000000..b3ca7b7b --- /dev/null +++ b/graphiant_sdk/models/v2_assurance_get_app_names_post_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 + + +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 + +class V2AssuranceGetAppNamesPostResponse(BaseModel): + """ + V2AssuranceGetAppNamesPostResponse + """ # noqa: E501 + app_names: Optional[List[StrictStr]] = Field(default=None, alias="appNames") + __properties: ClassVar[List[str]] = ["appNames"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2AssuranceGetAppNamesPostResponse 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 V2AssuranceGetAppNamesPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "appNames": obj.get("appNames") + }) + return _obj + + diff --git a/graphiant_sdk/models/v2_assurance_getclassifiedapplicationlist_get_response.py b/graphiant_sdk/models/v2_assurance_getclassifiedapplicationlist_get_response.py index a4a22157..74a8645e 100644 --- a/graphiant_sdk/models/v2_assurance_getclassifiedapplicationlist_get_response.py +++ b/graphiant_sdk/models/v2_assurance_getclassifiedapplicationlist_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_classified_application import AssuranceClassifiedApplication from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceGetclassifiedapplicationlistGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceGetclassifiedapplicationlistGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["classifiedApplicationList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_read_ai_adoption_approve_entries_get_response.py b/graphiant_sdk/models/v2_assurance_read_ai_adoption_approve_entries_get_response.py new file mode 100644 index 00000000..2f837983 --- /dev/null +++ b/graphiant_sdk/models/v2_assurance_read_ai_adoption_approve_entries_get_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.assurance_approved_app_entry import AssuranceApprovedAppEntry +from typing import Optional, Set +from typing_extensions import Self + +class V2AssuranceReadAiAdoptionApproveEntriesGetResponse(BaseModel): + """ + V2AssuranceReadAiAdoptionApproveEntriesGetResponse + """ # noqa: E501 + approved_app_list: Optional[List[AssuranceApprovedAppEntry]] = Field(default=None, alias="approvedAppList") + __properties: ClassVar[List[str]] = ["approvedAppList"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2AssuranceReadAiAdoptionApproveEntriesGetResponse 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 approved_app_list (list) + _items = [] + if self.approved_app_list: + for _item_approved_app_list in self.approved_app_list: + if _item_approved_app_list: + _items.append(_item_approved_app_list.to_dict()) + _dict['approvedAppList'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V2AssuranceReadAiAdoptionApproveEntriesGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "approvedAppList": [AssuranceApprovedAppEntry.from_dict(_item) for _item in obj["approvedAppList"]] if obj.get("approvedAppList") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v2_assurance_read_dnsproxy_list_get_response.py b/graphiant_sdk/models/v2_assurance_read_dnsproxy_list_get_response.py index c6459597..cd0fbb1b 100644 --- a/graphiant_sdk/models/v2_assurance_read_dnsproxy_list_get_response.py +++ b/graphiant_sdk/models/v2_assurance_read_dnsproxy_list_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_dns_proxy_entry import AssuranceDnsProxyEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceReadDnsproxyListGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceReadDnsproxyListGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["dnsproxyList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_read_user_report_list_get_response.py b/graphiant_sdk/models/v2_assurance_read_user_report_list_get_response.py index 0bf77563..5e4b28d0 100644 --- a/graphiant_sdk/models/v2_assurance_read_user_report_list_get_response.py +++ b/graphiant_sdk/models/v2_assurance_read_user_report_list_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_user_report import AssuranceUserReport from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceReadUserReportListGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceReadUserReportListGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["userReportList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_scoredetails_post_request.py b/graphiant_sdk/models/v2_assurance_scoredetails_post_request.py index 8ae18c19..49941ff5 100644 --- a/graphiant_sdk/models/v2_assurance_scoredetails_post_request.py +++ b/graphiant_sdk/models/v2_assurance_scoredetails_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceScoredetailsPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceScoredetailsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_scoredetails_post_response.py b/graphiant_sdk/models/v2_assurance_scoredetails_post_response.py index 5109fbbe..ee9ea1c2 100644 --- a/graphiant_sdk/models/v2_assurance_scoredetails_post_response.py +++ b/graphiant_sdk/models/v2_assurance_scoredetails_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_score_details import AssuranceScoreDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceScoredetailsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceScoredetailsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["scoreDetails"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_client_session_details_post_request.py b/graphiant_sdk/models/v2_assurance_topology_client_session_details_post_request.py index 20aafcce..d39ad101 100644 --- a/graphiant_sdk/models/v2_assurance_topology_client_session_details_post_request.py +++ b/graphiant_sdk/models/v2_assurance_topology_client_session_details_post_request.py @@ -21,18 +21,16 @@ 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 V2AssuranceTopologyClientSessionDetailsPostRequest(BaseModel): """ V2AssuranceTopologyClientSessionDetailsPostRequest """ # noqa: E501 - session_id: Optional[StrictStr] = Field(default=None, alias="sessionId", json_schema_extra={"examples": ["example string"]}) + session_id: Optional[StrictStr] = Field(default=None, alias="sessionId") __properties: ClassVar[List[str]] = ["sessionId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_client_session_details_post_response.py b/graphiant_sdk/models/v2_assurance_topology_client_session_details_post_response.py index 114c95fe..cabf3605 100644 --- a/graphiant_sdk/models/v2_assurance_topology_client_session_details_post_response.py +++ b/graphiant_sdk/models/v2_assurance_topology_client_session_details_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_client_session import AssuranceClientSession from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologyClientSessionDetailsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceTopologyClientSessionDetailsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["session"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_client_sessions_post_request.py b/graphiant_sdk/models/v2_assurance_topology_client_sessions_post_request.py index cd029546..21d9a5e5 100644 --- a/graphiant_sdk/models/v2_assurance_topology_client_sessions_post_request.py +++ b/graphiant_sdk/models/v2_assurance_topology_client_sessions_post_request.py @@ -23,26 +23,24 @@ from graphiant_sdk.models.assurance_topology_filter import AssuranceTopologyFilter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologyClientSessionsPostRequest(BaseModel): """ V2AssuranceTopologyClientSessionsPostRequest """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey", json_schema_extra={"examples": ["example string"]}) - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) - client_ip: Optional[StrictStr] = Field(default=None, alias="clientIp", json_schema_extra={"examples": ["example string"]}) - exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId", json_schema_extra={"examples": [1234567891011]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey") + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") + client_ip: Optional[StrictStr] = Field(default=None, alias="clientIp") + exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId") filter: Optional[AssuranceTopologyFilter] = None - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId", json_schema_extra={"examples": [1234567891011]}) - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) + flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "clientIp", "exchangeServiceId", "filter", "flexAlgoId", "siteId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -54,7 +52,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_client_sessions_post_response.py b/graphiant_sdk/models/v2_assurance_topology_client_sessions_post_response.py index 05c45283..242008d6 100644 --- a/graphiant_sdk/models/v2_assurance_topology_client_sessions_post_response.py +++ b/graphiant_sdk/models/v2_assurance_topology_client_sessions_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_client_session import AssuranceClientSession from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologyClientSessionsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceTopologyClientSessionsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["sessions"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_request.py b/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_request.py index d968a66b..0a39a5b3 100644 --- a/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_request.py +++ b/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_request.py @@ -23,25 +23,23 @@ from graphiant_sdk.models.assurance_topology_filter import AssuranceTopologyFilter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologyClientSummariesPostRequest(BaseModel): """ V2AssuranceTopologyClientSummariesPostRequest """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey", json_schema_extra={"examples": ["example string"]}) - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) - exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId", json_schema_extra={"examples": [1234567891011]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey") + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") + exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId") filter: Optional[AssuranceTopologyFilter] = None - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId", json_schema_extra={"examples": [1234567891011]}) - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) + flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "exchangeServiceId", "filter", "flexAlgoId", "siteId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -53,7 +51,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_response.py b/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_response.py index 3fa42d35..5bf1e45f 100644 --- a/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_response.py +++ b/graphiant_sdk/models/v2_assurance_topology_client_summaries_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_assurance_topology_client_summaries_post_response_summary import V2AssuranceTopologyClientSummariesPostResponseSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologyClientSummariesPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceTopologyClientSummariesPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["summaries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: 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 5a126659..f8f9b49d 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 @@ -21,26 +21,24 @@ 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 V2AssuranceTopologyClientSummariesPostResponseSummary(BaseModel): """ V2AssuranceTopologyClientSummariesPostResponseSummary """ # noqa: E501 - app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey", json_schema_extra={"examples": ["example string"]}) - client_ip: Optional[StrictStr] = Field(default=None, alias="clientIp", json_schema_extra={"examples": ["example string"]}) - client_username: Optional[StrictStr] = Field(default=None, alias="clientUsername", json_schema_extra={"examples": ["example string"]}) + 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", json_schema_extra={"examples": ["example string"]}) - server_port: Optional[StrictInt] = Field(default=None, alias="serverPort", json_schema_extra={"examples": [123]}) - server_site_enterprise_name: Optional[StrictStr] = Field(default=None, alias="serverSiteEnterpriseName", json_schema_extra={"examples": ["example string"]}) - server_site_name: Optional[StrictStr] = Field(default=None, alias="serverSiteName", json_schema_extra={"examples": ["example string"]}) - session_count: Optional[StrictInt] = Field(default=None, alias="sessionCount", json_schema_extra={"examples": [123]}) + server_ip: Optional[StrictStr] = Field(default=None, alias="serverIp") + server_port: Optional[StrictInt] = Field(default=None, alias="serverPort") + server_site_enterprise_name: Optional[StrictStr] = Field(default=None, alias="serverSiteEnterpriseName") + 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", "clientUsername", "lanSegments", "serverIp", "serverPort", "serverSiteEnterpriseName", "serverSiteName", "sessionCount"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_inventory_post_request.py b/graphiant_sdk/models/v2_assurance_topology_inventory_post_request.py index 38dbaa81..81b45b20 100644 --- a/graphiant_sdk/models/v2_assurance_topology_inventory_post_request.py +++ b/graphiant_sdk/models/v2_assurance_topology_inventory_post_request.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologyInventoryPostRequest(BaseModel): """ V2AssuranceTopologyInventoryPostRequest """ # noqa: E501 - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") - topology_type: Optional[StrictStr] = Field(default=None, alias="topologyType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + topology_type: Optional[StrictStr] = Field(default=None, alias="topologyType") __properties: ClassVar[List[str]] = ["bucketId", "timeWindow", "topologyType"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_inventory_post_response.py b/graphiant_sdk/models/v2_assurance_topology_inventory_post_response.py index ced59c02..462c90c7 100644 --- a/graphiant_sdk/models/v2_assurance_topology_inventory_post_response.py +++ b/graphiant_sdk/models/v2_assurance_topology_inventory_post_response.py @@ -24,7 +24,6 @@ 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 V2AssuranceTopologyInventoryPostResponse(BaseModel): """ @@ -38,8 +37,7 @@ class V2AssuranceTopologyInventoryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["appNames", "clientSites", "regions", "serverSites", "topologyChangeTs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_overview_post_request.py b/graphiant_sdk/models/v2_assurance_topology_overview_post_request.py index cbf6df84..b191d718 100644 --- a/graphiant_sdk/models/v2_assurance_topology_overview_post_request.py +++ b/graphiant_sdk/models/v2_assurance_topology_overview_post_request.py @@ -24,27 +24,25 @@ from graphiant_sdk.models.v2_assurance_topology_overview_post_request_topology_filter import V2AssuranceTopologyOverviewPostRequestTopologyFilter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologyOverviewPostRequest(BaseModel): """ V2AssuranceTopologyOverviewPostRequest """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey", json_schema_extra={"examples": ["example string"]}) - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) - exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId", json_schema_extra={"examples": [1234567891011]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey") + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") + exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId") filter: Optional[V2AssuranceTopologyOverviewPostRequestTopologyFilter] = None - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId", json_schema_extra={"examples": [1234567891011]}) + flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") slider_time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="sliderTimeWindow") time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") topology_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="topologyTs") - topology_type: Optional[StrictStr] = Field(default=None, alias="topologyType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + topology_type: Optional[StrictStr] = Field(default=None, alias="topologyType") __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "exchangeServiceId", "filter", "flexAlgoId", "sliderTimeWindow", "timeWindow", "topologyTs", "topologyType"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -56,7 +54,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_overview_post_request_topology_filter.py b/graphiant_sdk/models/v2_assurance_topology_overview_post_request_topology_filter.py index b18faa8a..17308b79 100644 --- a/graphiant_sdk/models/v2_assurance_topology_overview_post_request_topology_filter.py +++ b/graphiant_sdk/models/v2_assurance_topology_overview_post_request_topology_filter.py @@ -21,7 +21,6 @@ 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 V2AssuranceTopologyOverviewPostRequestTopologyFilter(BaseModel): """ @@ -33,8 +32,7 @@ class V2AssuranceTopologyOverviewPostRequestTopologyFilter(BaseModel): __properties: ClassVar[List[str]] = ["clientSiteIds", "regionIds", "serverSiteIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_overview_post_response.py b/graphiant_sdk/models/v2_assurance_topology_overview_post_response.py index 8806872b..0dfe7e67 100644 --- a/graphiant_sdk/models/v2_assurance_topology_overview_post_response.py +++ b/graphiant_sdk/models/v2_assurance_topology_overview_post_response.py @@ -24,22 +24,20 @@ from graphiant_sdk.models.v2_assurance_topology_overview_post_response_georegion import V2AssuranceTopologyOverviewPostResponseGeoregion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologyOverviewPostResponse(BaseModel): """ V2AssuranceTopologyOverviewPostResponse """ # noqa: E501 - num_applications: Optional[StrictInt] = Field(default=None, alias="numApplications", json_schema_extra={"examples": [123]}) - num_flows: Optional[StrictInt] = Field(default=None, alias="numFlows", json_schema_extra={"examples": [123]}) + num_applications: Optional[StrictInt] = Field(default=None, alias="numApplications") + num_flows: Optional[StrictInt] = Field(default=None, alias="numFlows") topology: Optional[AssuranceTopology] = None topology_change_ts: Optional[List[GoogleProtobufTimestamp]] = Field(default=None, alias="topologyChangeTs") traffic_regions: Optional[List[V2AssuranceTopologyOverviewPostResponseGeoregion]] = Field(default=None, alias="trafficRegions") __properties: ClassVar[List[str]] = ["numApplications", "numFlows", "topology", "topologyChangeTs", "trafficRegions"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_overview_post_response_georegion.py b/graphiant_sdk/models/v2_assurance_topology_overview_post_response_georegion.py index 752cbb21..c8876100 100644 --- a/graphiant_sdk/models/v2_assurance_topology_overview_post_response_georegion.py +++ b/graphiant_sdk/models/v2_assurance_topology_overview_post_response_georegion.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.assurance_region import AssuranceRegion from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologyOverviewPostResponseGeoregion(BaseModel): """ V2AssuranceTopologyOverviewPostResponseGeoregion """ # noqa: E501 - num_sites: Optional[StrictInt] = Field(default=None, alias="numSites", json_schema_extra={"examples": [123]}) + num_sites: Optional[StrictInt] = Field(default=None, alias="numSites") region: Optional[AssuranceRegion] = None __properties: ClassVar[List[str]] = ["numSites", "region"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_region_summary_post_request.py b/graphiant_sdk/models/v2_assurance_topology_region_summary_post_request.py index a838cb01..d571ede7 100644 --- a/graphiant_sdk/models/v2_assurance_topology_region_summary_post_request.py +++ b/graphiant_sdk/models/v2_assurance_topology_region_summary_post_request.py @@ -21,18 +21,16 @@ 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 V2AssuranceTopologyRegionSummaryPostRequest(BaseModel): """ V2AssuranceTopologyRegionSummaryPostRequest """ # noqa: E501 - region_id: Optional[StrictInt] = Field(default=None, alias="regionId", json_schema_extra={"examples": [123]}) + region_id: Optional[StrictInt] = Field(default=None, alias="regionId") __properties: ClassVar[List[str]] = ["regionId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_region_summary_post_response.py b/graphiant_sdk/models/v2_assurance_topology_region_summary_post_response.py index 3ec7e377..ea4371d8 100644 --- a/graphiant_sdk/models/v2_assurance_topology_region_summary_post_response.py +++ b/graphiant_sdk/models/v2_assurance_topology_region_summary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_assurance_topology_region_summary_post_response_site_entry import V2AssuranceTopologyRegionSummaryPostResponseSiteEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologyRegionSummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceTopologyRegionSummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["sites"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_region_summary_post_response_site_entry.py b/graphiant_sdk/models/v2_assurance_topology_region_summary_post_response_site_entry.py index 1a019715..d2950aab 100644 --- a/graphiant_sdk/models/v2_assurance_topology_region_summary_post_response_site_entry.py +++ b/graphiant_sdk/models/v2_assurance_topology_region_summary_post_response_site_entry.py @@ -21,24 +21,22 @@ 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 V2AssuranceTopologyRegionSummaryPostResponseSiteEntry(BaseModel): """ V2AssuranceTopologyRegionSummaryPostResponseSiteEntry """ # noqa: E501 - edge_count: Optional[StrictInt] = Field(default=None, alias="edgeCount", json_schema_extra={"examples": [123]}) + edge_count: Optional[StrictInt] = Field(default=None, alias="edgeCount") lan_segments: Optional[List[StrictStr]] = Field(default=None, alias="lanSegments") pop_names: Optional[List[StrictStr]] = Field(default=None, alias="popNames") - region_name: Optional[StrictStr] = Field(default=None, alias="regionName", json_schema_extra={"examples": ["example string"]}) - site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) - site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) + region_name: Optional[StrictStr] = Field(default=None, alias="regionName") + site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName") tags: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["edgeCount", "lanSegments", "popNames", "regionName", "siteId", "siteName", "tags"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_request.py b/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_request.py index c00fac28..a43957d2 100644 --- a/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_request.py +++ b/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_request.py @@ -23,24 +23,22 @@ from graphiant_sdk.models.assurance_topology_filter import AssuranceTopologyFilter from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologySiteSummariesPostRequest(BaseModel): """ V2AssuranceTopologySiteSummariesPostRequest """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) - app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey", json_schema_extra={"examples": ["example string"]}) - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) - exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId", json_schema_extra={"examples": [1234567891011]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") + app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey") + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") + exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId") filter: Optional[AssuranceTopologyFilter] = None - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId", json_schema_extra={"examples": [1234567891011]}) + flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "exchangeServiceId", "filter", "flexAlgoId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_response.py b/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_response.py index dccbf583..7cc214f4 100644 --- a/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_response.py +++ b/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_assurance_topology_site_summaries_post_response_summary import V2AssuranceTopologySiteSummariesPostResponseSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologySiteSummariesPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceTopologySiteSummariesPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["summaries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_response_summary.py b/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_response_summary.py index 2f776b20..97f56f36 100644 --- a/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_response_summary.py +++ b/graphiant_sdk/models/v2_assurance_topology_site_summaries_post_response_summary.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.assurance_site import AssuranceSite from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceTopologySiteSummariesPostResponseSummary(BaseModel): """ V2AssuranceTopologySiteSummariesPostResponseSummary """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) + app_name: Optional[StrictStr] = Field(default=None, alias="appName") lan_segments: Optional[List[StrictStr]] = Field(default=None, alias="lanSegments") - session_count: Optional[StrictInt] = Field(default=None, alias="sessionCount", json_schema_extra={"examples": [123]}) + session_count: Optional[StrictInt] = Field(default=None, alias="sessionCount") site: Optional[AssuranceSite] = None __properties: ClassVar[List[str]] = ["appName", "lanSegments", "sessionCount", "site"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_unclassifiedapplicationprofilesummary_post_request.py b/graphiant_sdk/models/v2_assurance_unclassifiedapplicationprofilesummary_post_request.py index 039995ef..c9e9a01e 100644 --- a/graphiant_sdk/models/v2_assurance_unclassifiedapplicationprofilesummary_post_request.py +++ b/graphiant_sdk/models/v2_assurance_unclassifiedapplicationprofilesummary_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_time_window import AssuranceTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceUnclassifiedapplicationprofilesummaryPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceUnclassifiedapplicationprofilesummaryPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_unclassifiedapplicationprofilesummary_post_response.py b/graphiant_sdk/models/v2_assurance_unclassifiedapplicationprofilesummary_post_response.py index 4c83c772..bed818ee 100644 --- a/graphiant_sdk/models/v2_assurance_unclassifiedapplicationprofilesummary_post_response.py +++ b/graphiant_sdk/models/v2_assurance_unclassifiedapplicationprofilesummary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_application_profile_summary import AssuranceApplicationProfileSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceUnclassifiedapplicationprofilesummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceUnclassifiedapplicationprofilesummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["applicationProfileSummary"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_update_ai_adoption_approve_entry_post_request.py b/graphiant_sdk/models/v2_assurance_update_ai_adoption_approve_entry_post_request.py new file mode 100644 index 00000000..3e871d5c --- /dev/null +++ b/graphiant_sdk/models/v2_assurance_update_ai_adoption_approve_entry_post_request.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 +from typing import Any, ClassVar, Dict, List +from graphiant_sdk.models.assurance_approved_app_entry_request import AssuranceApprovedAppEntryRequest +from typing import Optional, Set +from typing_extensions import Self + +class V2AssuranceUpdateAiAdoptionApproveEntryPostRequest(BaseModel): + """ + V2AssuranceUpdateAiAdoptionApproveEntryPostRequest + """ # noqa: E501 + approved_app_entry: AssuranceApprovedAppEntryRequest = Field(alias="approvedAppEntry") + __properties: ClassVar[List[str]] = ["approvedAppEntry"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V2AssuranceUpdateAiAdoptionApproveEntryPostRequest 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 approved_app_entry + if self.approved_app_entry: + _dict['approvedAppEntry'] = self.approved_app_entry.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V2AssuranceUpdateAiAdoptionApproveEntryPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "approvedAppEntry": AssuranceApprovedAppEntryRequest.from_dict(obj["approvedAppEntry"]) if obj.get("approvedAppEntry") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v2_assurance_update_dnsproxy_entry_post_request.py b/graphiant_sdk/models/v2_assurance_update_dnsproxy_entry_post_request.py index 08943ad2..52cf5ed0 100644 --- a/graphiant_sdk/models/v2_assurance_update_dnsproxy_entry_post_request.py +++ b/graphiant_sdk/models/v2_assurance_update_dnsproxy_entry_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_dns_proxy_entry import AssuranceDnsProxyEntry from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceUpdateDnsproxyEntryPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceUpdateDnsproxyEntryPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["dnsproxyEntry"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_assurance_updateclassifiedapplication_post_request.py b/graphiant_sdk/models/v2_assurance_updateclassifiedapplication_post_request.py index 5613fb1a..f760010e 100644 --- a/graphiant_sdk/models/v2_assurance_updateclassifiedapplication_post_request.py +++ b/graphiant_sdk/models/v2_assurance_updateclassifiedapplication_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.assurance_classified_application import AssuranceClassifiedApplication from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AssuranceUpdateclassifiedapplicationPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2AssuranceUpdateclassifiedapplicationPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["classifiedApplicationList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_audit_logs_post_request.py b/graphiant_sdk/models/v2_audit_logs_post_request.py index 517ceea9..e9f7d83d 100644 --- a/graphiant_sdk/models/v2_audit_logs_post_request.py +++ b/graphiant_sdk/models/v2_audit_logs_post_request.py @@ -24,22 +24,20 @@ 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 V2AuditLogsPostRequest(BaseModel): """ V2AuditLogsPostRequest """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) - num_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numLogs", json_schema_extra={"examples": [123]}) + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") + num_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numLogs") old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") selector: Optional[AuditmonAuditLogsV2Selector] = None __properties: ClassVar[List[str]] = ["cursorRef", "numLogs", "oldTs", "recentTs", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_audit_logs_post_response.py b/graphiant_sdk/models/v2_audit_logs_post_response.py index 9e937353..1ad64fb8 100644 --- a/graphiant_sdk/models/v2_audit_logs_post_response.py +++ b/graphiant_sdk/models/v2_audit_logs_post_response.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.auditmon_audit_log import AuditmonAuditLog from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2AuditLogsPostResponse(BaseModel): """ V2AuditLogsPostResponse """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") logs: Optional[List[AuditmonAuditLog]] = None - total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs", json_schema_extra={"examples": [12345678910]}) + total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs") __properties: ClassVar[List[str]] = ["cursorRef", "logs", "totalLogs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_childalertlist_post_request.py b/graphiant_sdk/models/v2_childalertlist_post_request.py index 29d07158..8b89a1b8 100644 --- a/graphiant_sdk/models/v2_childalertlist_post_request.py +++ b/graphiant_sdk/models/v2_childalertlist_post_request.py @@ -21,18 +21,16 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ChildalertlistPostRequest(BaseModel): """ V2ChildalertlistPostRequest """ # noqa: E501 - alert_id: StrictStr = Field(description="Alert id of the parent alert (required)", alias="alertId", json_schema_extra={"examples": ["example string"]}) + alert_id: StrictStr = Field(description="Alert id of the parent alert (required)", alias="alertId") __properties: ClassVar[List[str]] = ["alertId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_childalertlist_post_response.py b/graphiant_sdk/models/v2_childalertlist_post_response.py index 157d77d1..498aacf1 100644 --- a/graphiant_sdk/models/v2_childalertlist_post_response.py +++ b/graphiant_sdk/models/v2_childalertlist_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_alert_record import AlertserviceAlertRecord from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ChildalertlistPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2ChildalertlistPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["alertList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_device_device_id_lan_segments_post_request.py b/graphiant_sdk/models/v2_device_device_id_lan_segments_post_request.py index 3a828b98..8a980bdf 100644 --- a/graphiant_sdk/models/v2_device_device_id_lan_segments_post_request.py +++ b/graphiant_sdk/models/v2_device_device_id_lan_segments_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2DeviceDeviceIdLanSegmentsPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2DeviceDeviceIdLanSegmentsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_device_device_id_lan_segments_post_response.py b/graphiant_sdk/models/v2_device_device_id_lan_segments_post_response.py index 94f84a27..50cb5b70 100644 --- a/graphiant_sdk/models/v2_device_device_id_lan_segments_post_response.py +++ b/graphiant_sdk/models/v2_device_device_id_lan_segments_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_v2_device_segments import StatsmonV2DeviceSegments from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2DeviceDeviceIdLanSegmentsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2DeviceDeviceIdLanSegmentsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["deviceSegments"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_device_device_id_topology_post_request.py b/graphiant_sdk/models/v2_device_device_id_topology_post_request.py index db5d311b..14efcb1d 100644 --- a/graphiant_sdk/models/v2_device_device_id_topology_post_request.py +++ b/graphiant_sdk/models/v2_device_device_id_topology_post_request.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2DeviceDeviceIdTopologyPostRequest(BaseModel): """ @@ -31,12 +30,11 @@ class V2DeviceDeviceIdTopologyPostRequest(BaseModel): """ # noqa: E501 snapshot_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="snapshotTime") time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") - version: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + version: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["snapshotTime", "timeWindow", "version"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_device_device_id_topology_post_response.py b/graphiant_sdk/models/v2_device_device_id_topology_post_response.py index c22e40bb..2f4401ea 100644 --- a/graphiant_sdk/models/v2_device_device_id_topology_post_response.py +++ b/graphiant_sdk/models/v2_device_device_id_topology_post_response.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.v2_device_device_id_topology_post_response_snapshot import V2DeviceDeviceIdTopologyPostResponseSnapshot from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2DeviceDeviceIdTopologyPostResponse(BaseModel): """ @@ -36,8 +35,7 @@ class V2DeviceDeviceIdTopologyPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["edges", "nodes", "snapshots"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_device_device_id_topology_post_response_snapshot.py b/graphiant_sdk/models/v2_device_device_id_topology_post_response_snapshot.py index 32e010f5..73af99e2 100644 --- a/graphiant_sdk/models/v2_device_device_id_topology_post_response_snapshot.py +++ b/graphiant_sdk/models/v2_device_device_id_topology_post_response_snapshot.py @@ -22,19 +22,17 @@ 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 V2DeviceDeviceIdTopologyPostResponseSnapshot(BaseModel): """ V2DeviceDeviceIdTopologyPostResponseSnapshot """ # noqa: E501 - quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + quality: Optional[StrictStr] = None snapshot_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="snapshotTime") __properties: ClassVar[List[str]] = ["quality", "snapshotTime"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_consumers_usage_top_post_request.py b/graphiant_sdk/models/v2_extranet_consumers_usage_top_post_request.py index cc448027..b361bcb8 100644 --- a/graphiant_sdk/models/v2_extranet_consumers_usage_top_post_request.py +++ b/graphiant_sdk/models/v2_extranet_consumers_usage_top_post_request.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetConsumersUsageTopPostRequest(BaseModel): """ V2ExtranetConsumersUsageTopPostRequest """ # noqa: E501 - id: StrictInt = Field(description="the id of a producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) + id: StrictInt = Field(description="the id of a producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_consumers_usage_top_post_response.py b/graphiant_sdk/models/v2_extranet_consumers_usage_top_post_response.py index 2787ebf3..cc1d981c 100644 --- a/graphiant_sdk/models/v2_extranet_consumers_usage_top_post_response.py +++ b/graphiant_sdk/models/v2_extranet_consumers_usage_top_post_response.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.ipfix_entity_usage import IpfixEntityUsage from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetConsumersUsageTopPostResponse(BaseModel): """ V2ExtranetConsumersUsageTopPostResponse """ # noqa: E501 top_consumers: Optional[List[IpfixEntityUsage]] = Field(default=None, alias="topConsumers") - total_customers: Optional[StrictInt] = Field(default=None, description="total number of customers", alias="totalCustomers", json_schema_extra={"examples": [10]}) - total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage", json_schema_extra={"examples": [1000000]}) + total_customers: Optional[StrictInt] = Field(default=None, description="total number of customers", alias="totalCustomers") + total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage") __properties: ClassVar[List[str]] = ["topConsumers", "totalCustomers", "totalUsage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_lan_segments_usage_top_post_request.py b/graphiant_sdk/models/v2_extranet_lan_segments_usage_top_post_request.py index e9c27b08..238ec0bd 100644 --- a/graphiant_sdk/models/v2_extranet_lan_segments_usage_top_post_request.py +++ b/graphiant_sdk/models/v2_extranet_lan_segments_usage_top_post_request.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetLanSegmentsUsageTopPostRequest(BaseModel): """ V2ExtranetLanSegmentsUsageTopPostRequest """ # noqa: E501 - id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) + id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_lan_segments_usage_top_post_response.py b/graphiant_sdk/models/v2_extranet_lan_segments_usage_top_post_response.py index ea2c61ba..b3c69288 100644 --- a/graphiant_sdk/models/v2_extranet_lan_segments_usage_top_post_response.py +++ b/graphiant_sdk/models/v2_extranet_lan_segments_usage_top_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.ipfix_entity_usage import IpfixEntityUsage from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetLanSegmentsUsageTopPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2ExtranetLanSegmentsUsageTopPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["topVrfs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_service_overtime_consumption_post_request.py b/graphiant_sdk/models/v2_extranet_service_overtime_consumption_post_request.py index 0adcda49..b084c346 100644 --- a/graphiant_sdk/models/v2_extranet_service_overtime_consumption_post_request.py +++ b/graphiant_sdk/models/v2_extranet_service_overtime_consumption_post_request.py @@ -22,24 +22,22 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetServiceOvertimeConsumptionPostRequest(BaseModel): """ V2ExtranetServiceOvertimeConsumptionPostRequest """ # noqa: E501 - id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) - site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site", alias="siteId", json_schema_extra={"examples": [1]}) - subscription_name: Optional[StrictStr] = Field(default=None, description="Optional subscription name for filter", alias="subscriptionName", json_schema_extra={"examples": ["example string"]}) + id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") + site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site", alias="siteId") + subscription_name: Optional[StrictStr] = Field(default=None, description="Optional subscription name for filter", alias="subscriptionName") time_window: StatsmonTimeWindow = Field(alias="timeWindow") - vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId", json_schema_extra={"examples": [1]}) + vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "siteId", "subscriptionName", "timeWindow", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_service_overtime_consumption_post_response.py b/graphiant_sdk/models/v2_extranet_service_overtime_consumption_post_response.py index b0205ee2..c004c4db 100644 --- a/graphiant_sdk/models/v2_extranet_service_overtime_consumption_post_response.py +++ b/graphiant_sdk/models/v2_extranet_service_overtime_consumption_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.ipfix_stats import IpfixStats from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetServiceOvertimeConsumptionPostResponse(BaseModel): """ @@ -33,8 +32,7 @@ class V2ExtranetServiceOvertimeConsumptionPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["dlAggStats", "ulAggStats"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_sites_consumption_overview_post_request.py b/graphiant_sdk/models/v2_extranet_sites_consumption_overview_post_request.py index 6d7baa4a..2eef8325 100644 --- a/graphiant_sdk/models/v2_extranet_sites_consumption_overview_post_request.py +++ b/graphiant_sdk/models/v2_extranet_sites_consumption_overview_post_request.py @@ -22,25 +22,23 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetSitesConsumptionOverviewPostRequest(BaseModel): """ V2ExtranetSitesConsumptionOverviewPostRequest """ # noqa: E501 - customer_name: Optional[StrictStr] = Field(default=None, description="a filter to get usage for a specific customer", alias="customerName", json_schema_extra={"examples": ["Customer 1"]}) - flipped_view: StrictBool = Field(description="whether to view the data from the consumer's perspective (true) or the provider's perspective (false) (required)", alias="flippedView", json_schema_extra={"examples": [True]}) - id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) - site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site", alias="siteId", json_schema_extra={"examples": [1]}) + customer_name: Optional[StrictStr] = Field(default=None, description="a filter to get usage for a specific customer", alias="customerName") + flipped_view: StrictBool = Field(description="whether to view the data from the consumer's perspective (true) or the provider's perspective (false) (required)", alias="flippedView") + id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") + site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site", alias="siteId") time_window: StatsmonTimeWindow = Field(alias="timeWindow") - vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId", json_schema_extra={"examples": [1]}) + vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId") __properties: ClassVar[List[str]] = ["customerName", "flippedView", "id", "isB2B", "isProvider", "siteId", "timeWindow", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_sites_consumption_overview_post_response.py b/graphiant_sdk/models/v2_extranet_sites_consumption_overview_post_response.py index fb072231..a0b5b84a 100644 --- a/graphiant_sdk/models/v2_extranet_sites_consumption_overview_post_response.py +++ b/graphiant_sdk/models/v2_extranet_sites_consumption_overview_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.ipfix_connection_map import IpfixConnectionMap from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetSitesConsumptionOverviewPostResponse(BaseModel): """ @@ -31,12 +30,11 @@ class V2ExtranetSitesConsumptionOverviewPostResponse(BaseModel): lan_segments: Optional[List[IpfixConnectionMap]] = Field(default=None, alias="lanSegments") regions: Optional[List[IpfixConnectionMap]] = None sites: Optional[List[IpfixConnectionMap]] = None - total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage", json_schema_extra={"examples": [1000000]}) + total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage") __properties: ClassVar[List[str]] = ["lanSegments", "regions", "sites", "totalUsage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_sites_usage_post_request.py b/graphiant_sdk/models/v2_extranet_sites_usage_post_request.py index 61c4f105..c0ddc775 100644 --- a/graphiant_sdk/models/v2_extranet_sites_usage_post_request.py +++ b/graphiant_sdk/models/v2_extranet_sites_usage_post_request.py @@ -22,25 +22,23 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetSitesUsagePostRequest(BaseModel): """ V2ExtranetSitesUsagePostRequest """ # noqa: E501 - id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, or service_id for the producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) - service_id: Optional[StrictInt] = Field(default=None, alias="serviceId", json_schema_extra={"examples": [1234567891011]}) - site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site (id of the site)", alias="siteId", json_schema_extra={"examples": [1]}) - subscription_name: Optional[StrictStr] = Field(default=None, description="Optional subscription name for filter", alias="subscriptionName", json_schema_extra={"examples": ["example string"]}) + id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, or service_id for the producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") + service_id: Optional[StrictInt] = Field(default=None, alias="serviceId") + site_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific site (id of the site)", alias="siteId") + subscription_name: Optional[StrictStr] = Field(default=None, description="Optional subscription name for filter", alias="subscriptionName") time_window: StatsmonTimeWindow = Field(alias="timeWindow") - vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific lan segment (id of the lan segment)", alias="vrfId", json_schema_extra={"examples": [1]}) + vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific lan segment (id of the lan segment)", alias="vrfId") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "serviceId", "siteId", "subscriptionName", "timeWindow", "vrfId"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -52,7 +50,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_sites_usage_post_response.py b/graphiant_sdk/models/v2_extranet_sites_usage_post_response.py index d2df1ad3..e5cbe381 100644 --- a/graphiant_sdk/models/v2_extranet_sites_usage_post_response.py +++ b/graphiant_sdk/models/v2_extranet_sites_usage_post_response.py @@ -22,20 +22,18 @@ from graphiant_sdk.models.ipfix_stats import IpfixStats from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetSitesUsagePostResponse(BaseModel): """ V2ExtranetSitesUsagePostResponse """ # noqa: E501 - bw_allocation: Optional[StrictInt] = Field(default=None, description="the bandwidth allocation for the entity in kbps", alias="bwAllocation", json_schema_extra={"examples": [1000000]}) + bw_allocation: Optional[StrictInt] = Field(default=None, description="the bandwidth allocation for the entity in kbps", alias="bwAllocation") dl_stats: Optional[List[IpfixStats]] = Field(default=None, alias="dlStats") ul_stats: Optional[List[IpfixStats]] = Field(default=None, alias="ulStats") __properties: ClassVar[List[str]] = ["bwAllocation", "dlStats", "ulStats"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_total_usage_post_request.py b/graphiant_sdk/models/v2_extranet_total_usage_post_request.py index 76b405e8..7933ffa6 100644 --- a/graphiant_sdk/models/v2_extranet_total_usage_post_request.py +++ b/graphiant_sdk/models/v2_extranet_total_usage_post_request.py @@ -22,21 +22,19 @@ from graphiant_sdk.models.statsmon_time_window import StatsmonTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetTotalUsagePostRequest(BaseModel): """ V2ExtranetTotalUsagePostRequest """ # noqa: E501 - id: StrictInt = Field(description="the ID associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) + id: StrictInt = Field(description="the ID associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranet_total_usage_post_response.py b/graphiant_sdk/models/v2_extranet_total_usage_post_response.py index 752f9a7d..b28cda71 100644 --- a/graphiant_sdk/models/v2_extranet_total_usage_post_response.py +++ b/graphiant_sdk/models/v2_extranet_total_usage_post_response.py @@ -21,18 +21,16 @@ 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 V2ExtranetTotalUsagePostResponse(BaseModel): """ V2ExtranetTotalUsagePostResponse """ # noqa: E501 - usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", json_schema_extra={"examples": [1000000]}) + usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes") __properties: ClassVar[List[str]] = ["usage"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranets_monitoring_consumers_post_request.py b/graphiant_sdk/models/v2_extranets_monitoring_consumers_post_request.py index a0c32f17..79c0b7a6 100644 --- a/graphiant_sdk/models/v2_extranets_monitoring_consumers_post_request.py +++ b/graphiant_sdk/models/v2_extranets_monitoring_consumers_post_request.py @@ -17,22 +17,20 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt +from pydantic import BaseModel, ConfigDict, 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 V2ExtranetsMonitoringConsumersPostRequest(BaseModel): """ V2ExtranetsMonitoringConsumersPostRequest """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + id: Optional[StrictInt] = None __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_extranets_monitoring_consumers_post_response.py b/graphiant_sdk/models/v2_extranets_monitoring_consumers_post_response.py index 92ad9fce..fdf83b29 100644 --- a/graphiant_sdk/models/v2_extranets_monitoring_consumers_post_response.py +++ b/graphiant_sdk/models/v2_extranets_monitoring_consumers_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.mana_v2_consumer import ManaV2Consumer from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ExtranetsMonitoringConsumersPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2ExtranetsMonitoringConsumersPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["consumers"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_integration_getall_enterprise_id_get_response.py b/graphiant_sdk/models/v2_integration_getall_enterprise_id_get_response.py index 9610e856..0800c1a2 100644 --- a/graphiant_sdk/models/v2_integration_getall_enterprise_id_get_response.py +++ b/graphiant_sdk/models/v2_integration_getall_enterprise_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_integration import AlertserviceIntegration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2IntegrationGetallEnterpriseIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2IntegrationGetallEnterpriseIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["integrations"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_integration_integration_id_put_request.py b/graphiant_sdk/models/v2_integration_integration_id_put_request.py index c12ca25f..b98595c2 100644 --- a/graphiant_sdk/models/v2_integration_integration_id_put_request.py +++ b/graphiant_sdk/models/v2_integration_integration_id_put_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_update_integration_body import AlertserviceUpdateIntegrationBody from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2IntegrationIntegrationIdPutRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2IntegrationIntegrationIdPutRequest(BaseModel): __properties: ClassVar[List[str]] = ["integrationBody"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_integration_post_request.py b/graphiant_sdk/models/v2_integration_post_request.py index 6b0bea51..452202b1 100644 --- a/graphiant_sdk/models/v2_integration_post_request.py +++ b/graphiant_sdk/models/v2_integration_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_create_integration_body import AlertserviceCreateIntegrationBody from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2IntegrationPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2IntegrationPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["integrationBody"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_integration_post_response.py b/graphiant_sdk/models/v2_integration_post_response.py index f2678371..cddaa7d1 100644 --- a/graphiant_sdk/models/v2_integration_post_response.py +++ b/graphiant_sdk/models/v2_integration_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_integration import AlertserviceIntegration from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2IntegrationPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2IntegrationPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["integration"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_bfd_post_request.py b/graphiant_sdk/models/v2_monitoring_bfd_post_request.py index fa0b4679..53e3d5cc 100644 --- a/graphiant_sdk/models/v2_monitoring_bfd_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_bfd_post_request.py @@ -24,20 +24,18 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringBfdPostRequest(BaseModel): """ V2MonitoringBfdPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") selectors: Optional[List[StatsmonV2BfdStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_bfd_post_response.py b/graphiant_sdk/models/v2_monitoring_bfd_post_response.py index abefba76..204c6380 100644 --- a/graphiant_sdk/models/v2_monitoring_bfd_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_bfd_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_bfd_post_response_data import V2MonitoringBfdPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringBfdPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringBfdPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_bfd_post_response_data.py b/graphiant_sdk/models/v2_monitoring_bfd_post_response_data.py index 7a1a0823..658a4ecd 100644 --- a/graphiant_sdk/models/v2_monitoring_bfd_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_bfd_post_response_data.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_stats_sample import StatsmonV2StatsSample from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringBfdPostResponseData(BaseModel): """ @@ -34,8 +33,7 @@ class V2MonitoringBfdPostResponseData(BaseModel): __properties: ClassVar[List[str]] = ["samples", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_bgp_post_request.py b/graphiant_sdk/models/v2_monitoring_bgp_post_request.py index 25e9a34e..2d64af10 100644 --- a/graphiant_sdk/models/v2_monitoring_bgp_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_bgp_post_request.py @@ -24,20 +24,18 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringBgpPostRequest(BaseModel): """ V2MonitoringBgpPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") selectors: Optional[List[StatsmonV2BgpStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_bgp_post_response.py b/graphiant_sdk/models/v2_monitoring_bgp_post_response.py index ba383ebb..ff02ad4b 100644 --- a/graphiant_sdk/models/v2_monitoring_bgp_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_bgp_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_bgp_post_response_data import V2MonitoringBgpPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringBgpPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringBgpPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_bgp_post_response_data.py b/graphiant_sdk/models/v2_monitoring_bgp_post_response_data.py index a94f0d46..f4ad94ed 100644 --- a/graphiant_sdk/models/v2_monitoring_bgp_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_bgp_post_response_data.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_stats_sample import StatsmonV2StatsSample from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringBgpPostResponseData(BaseModel): """ @@ -34,8 +33,7 @@ class V2MonitoringBgpPostResponseData(BaseModel): __properties: ClassVar[List[str]] = ["samples", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_request.py b/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_request.py index ec79c8c7..6967b595 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_request.py @@ -24,20 +24,18 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringCircuitsBandwidthPostRequest(BaseModel): """ V2MonitoringCircuitsBandwidthPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") selectors: Optional[List[StatsmonV2CircuitBandwidthStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_response.py b/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_response.py index dd6c7684..d2f5fffb 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_circuits_bandwidth_post_response_data import V2MonitoringCircuitsBandwidthPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringCircuitsBandwidthPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringCircuitsBandwidthPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_response_data.py b/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_response_data.py index 51b576ad..f69c64cf 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_response_data.py @@ -24,22 +24,20 @@ from graphiant_sdk.models.statsmon_v2_stats_sample import StatsmonV2StatsSample from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringCircuitsBandwidthPostResponseData(BaseModel): """ V2MonitoringCircuitsBandwidthPostResponseData """ # noqa: E501 - carrier: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + carrier: Optional[StrictStr] = None + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") dl_bw_kbps_samples: Optional[List[StatsmonV2StatsSample]] = Field(default=None, alias="dlBwKbpsSamples") selector: Optional[StatsmonV2CircuitBandwidthStatsSelector] = None ul_bw_kbps_samples: Optional[List[StatsmonV2StatsSample]] = Field(default=None, alias="ulBwKbpsSamples") __properties: ClassVar[List[str]] = ["carrier", "deviceId", "dlBwKbpsSamples", "selector", "ulBwKbpsSamples"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_circuits_summary_post_request.py b/graphiant_sdk/models/v2_monitoring_circuits_summary_post_request.py index 4593f171..d237d301 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_summary_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_summary_post_request.py @@ -23,19 +23,17 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringCircuitsSummaryPostRequest(BaseModel): """ V2MonitoringCircuitsSummaryPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_circuits_summary_post_response.py b/graphiant_sdk/models/v2_monitoring_circuits_summary_post_response.py index 653360df..d97d71e5 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_summary_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_summary_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_v2_circuit_summary import StatsmonV2CircuitSummary from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringCircuitsSummaryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringCircuitsSummaryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["circuitSummaries"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_request.py b/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_request.py index 143a1843..fcf5c14f 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_request.py @@ -24,20 +24,18 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringCircuitsUtilizationPostRequest(BaseModel): """ V2MonitoringCircuitsUtilizationPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") selectors: Optional[List[StatsmonV2CircuitUtilizationSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_response.py b/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_response.py index 6a5cae3c..438eb68d 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_circuits_utilization_post_response_data import V2MonitoringCircuitsUtilizationPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringCircuitsUtilizationPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringCircuitsUtilizationPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_response_data.py b/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_response_data.py index fece62dc..8cd4c606 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_response_data.py @@ -24,20 +24,18 @@ from graphiant_sdk.models.statsmon_v2_queue_utilization import StatsmonV2QueueUtilization from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringCircuitsUtilizationPostResponseData(BaseModel): """ V2MonitoringCircuitsUtilizationPostResponseData """ # noqa: E501 - config_link_up_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="configLinkUpSpeedMbps", json_schema_extra={"examples": [123]}) + config_link_up_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="configLinkUpSpeedMbps") queue_utilization: Optional[List[StatsmonV2QueueUtilization]] = Field(default=None, alias="queueUtilization") selector: Optional[StatsmonV2CircuitUtilizationSelector] = None __properties: ClassVar[List[str]] = ["configLinkUpSpeedMbps", "queueUtilization", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_request.py b/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_request.py index 36fadf71..fecad5ea 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_request.py @@ -24,20 +24,18 @@ from graphiant_sdk.models.statsmon_v2_twamp_visual_selector import StatsmonV2TwampVisualSelector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringCircuitsVisualizationPostRequest(BaseModel): """ V2MonitoringCircuitsVisualizationPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") selectors: Optional[List[StatsmonV2TwampVisualSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_response.py b/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_response.py index c37ff8b6..df7815e1 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_response.py @@ -22,19 +22,17 @@ from graphiant_sdk.models.v2_monitoring_circuits_visualization_post_response_data import V2MonitoringCircuitsVisualizationPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringCircuitsVisualizationPostResponse(BaseModel): """ V2MonitoringCircuitsVisualizationPostResponse """ # noqa: E501 data: Optional[List[V2MonitoringCircuitsVisualizationPostResponseData]] = None - hostname: Optional[StrictStr] = Field(default=None, description="hostname of the device.", json_schema_extra={"examples": ["example string"]}) + hostname: Optional[StrictStr] = Field(default=None, description="hostname of the device.") __properties: ClassVar[List[str]] = ["data", "hostname"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_response_data.py b/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_response_data.py index c2158b24..8a965364 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_response_data.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_twamp_visual_selector import StatsmonV2TwampVisualSelector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringCircuitsVisualizationPostResponseData(BaseModel): """ @@ -34,8 +33,7 @@ class V2MonitoringCircuitsVisualizationPostResponseData(BaseModel): __properties: ClassVar[List[str]] = ["samples", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_extranet_edge_status_get_response.py b/graphiant_sdk/models/v2_monitoring_extranet_edge_status_get_response.py index 6fedc5bd..6bfdf3b5 100644 --- a/graphiant_sdk/models/v2_monitoring_extranet_edge_status_get_response.py +++ b/graphiant_sdk/models/v2_monitoring_extranet_edge_status_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_extranet_edge_status import StatsmonExtranetEdgeStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringExtranetEdgeStatusGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringExtranetEdgeStatusGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["edgeStatuses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_request.py b/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_request.py index bc8f47c4..a2063a1a 100644 --- a/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_request.py @@ -21,20 +21,18 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringExtranetLogDetailsPostRequest(BaseModel): """ V2MonitoringExtranetLogDetailsPostRequest """ # noqa: E501 - id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)", json_schema_extra={"examples": [1]}) - is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B", json_schema_extra={"examples": [True]}) - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider", json_schema_extra={"examples": [True]}) + id: StrictInt = Field(description="the id associated with an entity - consumer_id for consumer, and service_id for the producer/service (required)") + is_b2_b: StrictBool = Field(description="whether the entity is a b2b entity (true for b2b entity, false for local extranet entity) (required)", alias="isB2B") + is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_response.py b/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_response.py index a3da5ecf..c5cd2ae6 100644 --- a/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_extranet_log_details_post_response_log_details import V2MonitoringExtranetLogDetailsPostResponseLogDetails from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringExtranetLogDetailsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringExtranetLogDetailsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["logs"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_response_log_details.py b/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_response_log_details.py index 70255446..d22533c7 100644 --- a/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_response_log_details.py +++ b/graphiant_sdk/models/v2_monitoring_extranet_log_details_post_response_log_details.py @@ -22,22 +22,20 @@ 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 V2MonitoringExtranetLogDetailsPostResponseLogDetails(BaseModel): """ V2MonitoringExtranetLogDetailsPostResponseLogDetails """ # noqa: E501 - hostname: Optional[StrictStr] = Field(default=None, description="the hostname of the log", json_schema_extra={"examples": ["hostname1"]}) - reason: Optional[StrictStr] = Field(default=None, description="the reason for the log", json_schema_extra={"examples": ["Reason 1"]}) - server_address: Optional[StrictStr] = Field(default=None, description="the address of the server", alias="serverAddress", json_schema_extra={"examples": ["192.168.1.1"]}) - site_name: Optional[StrictStr] = Field(default=None, description="the name of the site", alias="siteName", json_schema_extra={"examples": ["site1"]}) + hostname: Optional[StrictStr] = Field(default=None, description="the hostname of the log") + reason: Optional[StrictStr] = Field(default=None, description="the reason for the log") + server_address: Optional[StrictStr] = Field(default=None, description="the address of the server", alias="serverAddress") + site_name: Optional[StrictStr] = Field(default=None, description="the name of the site", alias="siteName") ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["hostname", "reason", "serverAddress", "siteName", "ts"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_extranet_service_status_details_get_response.py b/graphiant_sdk/models/v2_monitoring_extranet_service_status_details_get_response.py index b22bd7ba..9ec02cc9 100644 --- a/graphiant_sdk/models/v2_monitoring_extranet_service_status_details_get_response.py +++ b/graphiant_sdk/models/v2_monitoring_extranet_service_status_details_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_extranet_site_status import StatsmonExtranetSiteStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringExtranetServiceStatusDetailsGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringExtranetServiceStatusDetailsGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["statuses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_extranet_service_status_get_response.py b/graphiant_sdk/models/v2_monitoring_extranet_service_status_get_response.py index 683da19e..e4140d6c 100644 --- a/graphiant_sdk/models/v2_monitoring_extranet_service_status_get_response.py +++ b/graphiant_sdk/models/v2_monitoring_extranet_service_status_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_extranet_server_status import StatsmonExtranetServerStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringExtranetServiceStatusGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringExtranetServiceStatusGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["statuses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_extranet_site_status_get_response.py b/graphiant_sdk/models/v2_monitoring_extranet_site_status_get_response.py index 2073cb89..52ca03e7 100644 --- a/graphiant_sdk/models/v2_monitoring_extranet_site_status_get_response.py +++ b/graphiant_sdk/models/v2_monitoring_extranet_site_status_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_extranet_site_status import StatsmonExtranetSiteStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringExtranetSiteStatusGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringExtranetSiteStatusGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["statuses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_extranet_status_details_get_response.py b/graphiant_sdk/models/v2_monitoring_extranet_status_details_get_response.py index c026d620..1b68e88a 100644 --- a/graphiant_sdk/models/v2_monitoring_extranet_status_details_get_response.py +++ b/graphiant_sdk/models/v2_monitoring_extranet_status_details_get_response.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.statsmon_extranet_site_status import StatsmonExtranetSiteStatus from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringExtranetStatusDetailsGetResponse(BaseModel): """ V2MonitoringExtranetStatusDetailsGetResponse """ # noqa: E501 edge_statuses: Optional[List[StatsmonExtranetEdgeStatus]] = Field(default=None, alias="edgeStatuses") - location: Optional[StrictStr] = Field(default=None, description="the location of the site", json_schema_extra={"examples": ["Location 1"]}) - region: Optional[StrictStr] = Field(default=None, description="the region of the site", json_schema_extra={"examples": ["Region 1"]}) + location: Optional[StrictStr] = Field(default=None, description="the location of the site") + region: Optional[StrictStr] = Field(default=None, description="the region of the site") site_status: Optional[StatsmonExtranetSiteStatus] = Field(default=None, alias="siteStatus") __properties: ClassVar[List[str]] = ["edgeStatuses", "location", "region", "siteStatus"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_ike_error_history_post_request.py b/graphiant_sdk/models/v2_monitoring_ike_error_history_post_request.py index 29b7e9c2..aa7a9b08 100644 --- a/graphiant_sdk/models/v2_monitoring_ike_error_history_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_ike_error_history_post_request.py @@ -23,20 +23,18 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringIkeErrorHistoryPostRequest(BaseModel): """ V2MonitoringIkeErrorHistoryPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") - tunnel_name: Optional[StrictStr] = Field(default=None, alias="tunnelName", json_schema_extra={"examples": ["example string"]}) + tunnel_name: Optional[StrictStr] = Field(default=None, alias="tunnelName") __properties: ClassVar[List[str]] = ["deviceId", "timeWindow", "tunnelName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_ike_error_history_post_response.py b/graphiant_sdk/models/v2_monitoring_ike_error_history_post_response.py index 39d9cd7b..e5744ce9 100644 --- a/graphiant_sdk/models/v2_monitoring_ike_error_history_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_ike_error_history_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_ike_error_history_post_response_data import V2MonitoringIkeErrorHistoryPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringIkeErrorHistoryPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringIkeErrorHistoryPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_ike_error_history_post_response_data.py b/graphiant_sdk/models/v2_monitoring_ike_error_history_post_response_data.py index 8cfbdba2..648afbd1 100644 --- a/graphiant_sdk/models/v2_monitoring_ike_error_history_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_ike_error_history_post_response_data.py @@ -22,23 +22,21 @@ 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 V2MonitoringIkeErrorHistoryPostResponseData(BaseModel): """ V2MonitoringIkeErrorHistoryPostResponseData """ # noqa: E501 - destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress", json_schema_extra={"examples": ["example string"]}) - destination_port: Optional[StrictStr] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": ["example string"]}) - error_type: Optional[StrictStr] = Field(default=None, alias="errorType", json_schema_extra={"examples": ["ENUM_VALUE"]}) - message: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + destination_address: Optional[StrictStr] = Field(default=None, alias="destinationAddress") + destination_port: Optional[StrictStr] = Field(default=None, alias="destinationPort") + error_type: Optional[StrictStr] = Field(default=None, alias="errorType") + message: Optional[StrictStr] = None timestamp: Optional[GoogleProtobufTimestamp] = None - tunnel_name: Optional[StrictStr] = Field(default=None, alias="tunnelName", json_schema_extra={"examples": ["example string"]}) + tunnel_name: Optional[StrictStr] = Field(default=None, alias="tunnelName") __properties: ClassVar[List[str]] = ["destinationAddress", "destinationPort", "errorType", "message", "timestamp", "tunnelName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_interface_post_request.py b/graphiant_sdk/models/v2_monitoring_interface_post_request.py index 024b60f4..7dde41c3 100644 --- a/graphiant_sdk/models/v2_monitoring_interface_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_interface_post_request.py @@ -24,20 +24,18 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringInterfacePostRequest(BaseModel): """ V2MonitoringInterfacePostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") selectors: Optional[List[StatsmonV2InterfaceStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_interface_post_response.py b/graphiant_sdk/models/v2_monitoring_interface_post_response.py index 70404fa3..4b0dfa5b 100644 --- a/graphiant_sdk/models/v2_monitoring_interface_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_interface_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_interface_post_response_data import V2MonitoringInterfacePostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringInterfacePostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringInterfacePostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_interface_post_response_data.py b/graphiant_sdk/models/v2_monitoring_interface_post_response_data.py index e9be1f96..fc0e7884 100644 --- a/graphiant_sdk/models/v2_monitoring_interface_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_interface_post_response_data.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_stats_sample import StatsmonV2StatsSample from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringInterfacePostResponseData(BaseModel): """ @@ -34,8 +33,7 @@ class V2MonitoringInterfacePostResponseData(BaseModel): __properties: ClassVar[List[str]] = ["samples", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_ipsec_post_request.py b/graphiant_sdk/models/v2_monitoring_ipsec_post_request.py index db5a593d..f23db5f2 100644 --- a/graphiant_sdk/models/v2_monitoring_ipsec_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_ipsec_post_request.py @@ -24,20 +24,18 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringIpsecPostRequest(BaseModel): """ V2MonitoringIpsecPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") selectors: Optional[List[StatsmonV2IpSecStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_ipsec_post_response.py b/graphiant_sdk/models/v2_monitoring_ipsec_post_response.py index 19fc294e..134ab12e 100644 --- a/graphiant_sdk/models/v2_monitoring_ipsec_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_ipsec_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_ipsec_post_response_data import V2MonitoringIpsecPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringIpsecPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringIpsecPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_ipsec_post_response_data.py b/graphiant_sdk/models/v2_monitoring_ipsec_post_response_data.py index 80815b0b..b66140fb 100644 --- a/graphiant_sdk/models/v2_monitoring_ipsec_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_ipsec_post_response_data.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_stats_sample import StatsmonV2StatsSample from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringIpsecPostResponseData(BaseModel): """ @@ -34,8 +33,7 @@ class V2MonitoringIpsecPostResponseData(BaseModel): __properties: ClassVar[List[str]] = ["samples", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: 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 index f36c3452..fa41f2a0 100644 --- 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 @@ -22,7 +22,6 @@ 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): """ @@ -32,8 +31,7 @@ class V2MonitoringMacsecDeviceIdStatusGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["macsecStatuses"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: 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 index b8ae2247..ea8d06ae 100644 --- 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 @@ -21,19 +21,17 @@ 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", json_schema_extra={"examples": ["example string"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + 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, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_policy_post_request.py b/graphiant_sdk/models/v2_monitoring_policy_post_request.py index bdafc7c6..d7962104 100644 --- a/graphiant_sdk/models/v2_monitoring_policy_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_policy_post_request.py @@ -24,20 +24,18 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringPolicyPostRequest(BaseModel): """ V2MonitoringPolicyPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") selectors: Optional[List[StatsmonV2PolicyStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_policy_post_response.py b/graphiant_sdk/models/v2_monitoring_policy_post_response.py index 99e0edd5..22079a28 100644 --- a/graphiant_sdk/models/v2_monitoring_policy_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_policy_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_policy_post_response_data import V2MonitoringPolicyPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringPolicyPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringPolicyPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_policy_post_response_data.py b/graphiant_sdk/models/v2_monitoring_policy_post_response_data.py index b4b21b83..3b9012a8 100644 --- a/graphiant_sdk/models/v2_monitoring_policy_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_policy_post_response_data.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_stats_sample import StatsmonV2StatsSample from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringPolicyPostResponseData(BaseModel): """ @@ -34,8 +33,7 @@ class V2MonitoringPolicyPostResponseData(BaseModel): __properties: ClassVar[List[str]] = ["samples", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_queue_instant_post_request.py b/graphiant_sdk/models/v2_monitoring_queue_instant_post_request.py index 85f41244..5ccb0e7a 100644 --- a/graphiant_sdk/models/v2_monitoring_queue_instant_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_queue_instant_post_request.py @@ -24,22 +24,20 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringQueueInstantPostRequest(BaseModel): """ V2MonitoringQueueInstantPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) - is_delta: Optional[StrictBool] = Field(default=None, alias="isDelta", json_schema_extra={"examples": [True]}) - is_total: Optional[StrictBool] = Field(default=None, alias="isTotal", json_schema_extra={"examples": [True]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + is_delta: Optional[StrictBool] = Field(default=None, alias="isDelta") + is_total: Optional[StrictBool] = Field(default=None, alias="isTotal") selectors: Optional[List[StatsmonV2QueueInstantStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "isDelta", "isTotal", "selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -51,7 +49,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_queue_instant_post_response.py b/graphiant_sdk/models/v2_monitoring_queue_instant_post_response.py index 6d93ecd3..77e7fc9b 100644 --- a/graphiant_sdk/models/v2_monitoring_queue_instant_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_queue_instant_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_queue_instant_post_response_data import V2MonitoringQueueInstantPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringQueueInstantPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringQueueInstantPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_queue_instant_post_response_data.py b/graphiant_sdk/models/v2_monitoring_queue_instant_post_response_data.py index 301280ab..158be24c 100644 --- a/graphiant_sdk/models/v2_monitoring_queue_instant_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_queue_instant_post_response_data.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_stats_sample import StatsmonV2StatsSample from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringQueueInstantPostResponseData(BaseModel): """ @@ -34,8 +33,7 @@ class V2MonitoringQueueInstantPostResponseData(BaseModel): __properties: ClassVar[List[str]] = ["samples", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_request.py b/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_request.py index 09a813e8..cd9a22c8 100644 --- a/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_request.py @@ -22,7 +22,6 @@ from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSegmentRouteCountsPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringSegmentRouteCountsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["deviceIds"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_response.py b/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_response.py index d637b111..efea65bc 100644 --- a/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_segment_route_counts_post_response_data import V2MonitoringSegmentRouteCountsPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSegmentRouteCountsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringSegmentRouteCountsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_response_data.py b/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_response_data.py index 4b963e79..68b809a3 100644 --- a/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_segment_route_counts_post_response_data.py @@ -23,21 +23,19 @@ from graphiant_sdk.models.statsmon_v2_stats_sample import StatsmonV2StatsSample from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSegmentRouteCountsPostResponseData(BaseModel): """ V2MonitoringSegmentRouteCountsPostResponseData """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") ipv4_route_count: Optional[StatsmonV2StatsSample] = Field(default=None, alias="ipv4RouteCount") ipv6_route_count: Optional[StatsmonV2StatsSample] = Field(default=None, alias="ipv6RouteCount") - segment_name: Optional[StrictStr] = Field(default=None, alias="segmentName", json_schema_extra={"examples": ["example string"]}) + segment_name: Optional[StrictStr] = Field(default=None, alias="segmentName") __properties: ClassVar[List[str]] = ["deviceId", "ipv4RouteCount", "ipv6RouteCount", "segmentName"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_request.py b/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_request.py index 93629f82..4426f5a9 100644 --- a/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_request.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSiteCircuitsBandwidthSiteIdPostRequest(BaseModel): """ @@ -34,8 +33,7 @@ class V2MonitoringSiteCircuitsBandwidthSiteIdPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_response.py b/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_response.py index 8d5e2a09..db63f706 100644 --- a/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_site_circuits_bandwidth_site_id_post_response_data import V2MonitoringSiteCircuitsBandwidthSiteIdPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSiteCircuitsBandwidthSiteIdPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringSiteCircuitsBandwidthSiteIdPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_response_data.py b/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_response_data.py index ead6965e..a152c918 100644 --- a/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_site_circuits_bandwidth_site_id_post_response_data.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_stats_sample import StatsmonV2StatsSample from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSiteCircuitsBandwidthSiteIdPostResponseData(BaseModel): """ @@ -35,8 +34,7 @@ class V2MonitoringSiteCircuitsBandwidthSiteIdPostResponseData(BaseModel): __properties: ClassVar[List[str]] = ["dlBwKbpsSamples", "selector", "ulBwKbpsSamples"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -48,7 +46,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_request.py b/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_request.py index 5a10ea36..27931c1d 100644 --- a/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_request.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_twamp_stats_selector import StatsmonV2TwampStatsSelector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSiteTwampSiteIdPostRequest(BaseModel): """ @@ -34,8 +33,7 @@ class V2MonitoringSiteTwampSiteIdPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_response.py b/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_response.py index 9ffbf421..52c5e9de 100644 --- a/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_site_twamp_site_id_post_response_data import V2MonitoringSiteTwampSiteIdPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSiteTwampSiteIdPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringSiteTwampSiteIdPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_response_data.py b/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_response_data.py index 0a365012..f2de9501 100644 --- a/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_site_twamp_site_id_post_response_data.py @@ -24,21 +24,19 @@ from graphiant_sdk.models.statsmon_v2_twamp_stats_selector import StatsmonV2TwampStatsSelector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSiteTwampSiteIdPostResponseData(BaseModel): """ V2MonitoringSiteTwampSiteIdPostResponseData """ # noqa: E501 - carrier: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + carrier: Optional[StrictStr] = None + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") samples: Optional[List[StatsmonV2StatsSample]] = None selector: Optional[StatsmonV2TwampStatsSelector] = None __properties: ClassVar[List[str]] = ["carrier", "deviceId", "samples", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -50,7 +48,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_system_post_request.py b/graphiant_sdk/models/v2_monitoring_system_post_request.py index 3870d926..0daf3a39 100644 --- a/graphiant_sdk/models/v2_monitoring_system_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_system_post_request.py @@ -24,20 +24,18 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSystemPostRequest(BaseModel): """ V2MonitoringSystemPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") selectors: Optional[List[StatsmonV2SystemStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_system_post_response.py b/graphiant_sdk/models/v2_monitoring_system_post_response.py index e9aeb3d6..f1ae8351 100644 --- a/graphiant_sdk/models/v2_monitoring_system_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_system_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_system_post_response_data import V2MonitoringSystemPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSystemPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringSystemPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_system_post_response_data.py b/graphiant_sdk/models/v2_monitoring_system_post_response_data.py index a484cdb8..10b19d87 100644 --- a/graphiant_sdk/models/v2_monitoring_system_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_system_post_response_data.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_system_stats_selector import StatsmonV2SystemStatsSelector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringSystemPostResponseData(BaseModel): """ @@ -34,8 +33,7 @@ class V2MonitoringSystemPostResponseData(BaseModel): __properties: ClassVar[List[str]] = ["samples", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_twamp_post_request.py b/graphiant_sdk/models/v2_monitoring_twamp_post_request.py index cfc5cf54..2c2e8355 100644 --- a/graphiant_sdk/models/v2_monitoring_twamp_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_twamp_post_request.py @@ -24,20 +24,18 @@ from graphiant_sdk.models.statsmon_v2_twamp_stats_selector import StatsmonV2TwampStatsSelector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringTwampPostRequest(BaseModel): """ V2MonitoringTwampPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") selectors: Optional[List[StatsmonV2TwampStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_twamp_post_response.py b/graphiant_sdk/models/v2_monitoring_twamp_post_response.py index 655aa360..0349eb6f 100644 --- a/graphiant_sdk/models/v2_monitoring_twamp_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_twamp_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.v2_monitoring_twamp_post_response_data import V2MonitoringTwampPostResponseData from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringTwampPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2MonitoringTwampPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["data"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_monitoring_twamp_post_response_data.py b/graphiant_sdk/models/v2_monitoring_twamp_post_response_data.py index 171a6d30..df8c1efb 100644 --- a/graphiant_sdk/models/v2_monitoring_twamp_post_response_data.py +++ b/graphiant_sdk/models/v2_monitoring_twamp_post_response_data.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_twamp_stats_selector import StatsmonV2TwampStatsSelector from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2MonitoringTwampPostResponseData(BaseModel): """ @@ -34,8 +33,7 @@ class V2MonitoringTwampPostResponseData(BaseModel): __properties: ClassVar[List[str]] = ["samples", "selector"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_notification_create_post_request.py b/graphiant_sdk/models/v2_notification_create_post_request.py index 76cf6948..757e532e 100644 --- a/graphiant_sdk/models/v2_notification_create_post_request.py +++ b/graphiant_sdk/models/v2_notification_create_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_notification_body import AlertserviceNotificationBody from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2NotificationCreatePostRequest(BaseModel): """ @@ -33,8 +32,7 @@ class V2NotificationCreatePostRequest(BaseModel): __properties: ClassVar[List[str]] = ["notificationBody", "ruleIdList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_notification_delete_post_request.py b/graphiant_sdk/models/v2_notification_delete_post_request.py index c713c661..23ca233b 100644 --- a/graphiant_sdk/models/v2_notification_delete_post_request.py +++ b/graphiant_sdk/models/v2_notification_delete_post_request.py @@ -21,7 +21,6 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2NotificationDeletePostRequest(BaseModel): """ @@ -31,8 +30,7 @@ class V2NotificationDeletePostRequest(BaseModel): __properties: ClassVar[List[str]] = ["notificationIdList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -44,7 +42,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_notification_enabledisable_post_request.py b/graphiant_sdk/models/v2_notification_enabledisable_post_request.py index 222fcc12..cfa9a57d 100644 --- a/graphiant_sdk/models/v2_notification_enabledisable_post_request.py +++ b/graphiant_sdk/models/v2_notification_enabledisable_post_request.py @@ -21,19 +21,17 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2NotificationEnabledisablePostRequest(BaseModel): """ V2NotificationEnabledisablePostRequest """ # noqa: E501 - enable: StrictBool = Field(description="Enable or disable. True means enable (required)", json_schema_extra={"examples": [True]}) + enable: StrictBool = Field(description="Enable or disable. True means enable (required)") notification_id_list: List[StrictStr] = Field(alias="notificationIdList") __properties: ClassVar[List[str]] = ["enable", "notificationIdList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_notification_update_post_request.py b/graphiant_sdk/models/v2_notification_update_post_request.py index c4f2a829..e434e662 100644 --- a/graphiant_sdk/models/v2_notification_update_post_request.py +++ b/graphiant_sdk/models/v2_notification_update_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_notification_body import AlertserviceNotificationBody from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2NotificationUpdatePostRequest(BaseModel): """ @@ -33,8 +32,7 @@ class V2NotificationUpdatePostRequest(BaseModel): __properties: ClassVar[List[str]] = ["notificationBody", "notificationIdList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_notificationlist_post_request.py b/graphiant_sdk/models/v2_notificationlist_post_request.py index 550aa6f6..0d37d4cd 100644 --- a/graphiant_sdk/models/v2_notificationlist_post_request.py +++ b/graphiant_sdk/models/v2_notificationlist_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_time_window import AlertserviceTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2NotificationlistPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2NotificationlistPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_notificationlist_post_response.py b/graphiant_sdk/models/v2_notificationlist_post_response.py index efc436d8..e1c018cb 100644 --- a/graphiant_sdk/models/v2_notificationlist_post_response.py +++ b/graphiant_sdk/models/v2_notificationlist_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_notification_record import AlertserviceNotificationRecord from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2NotificationlistPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2NotificationlistPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["notificationList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_notificationmutelist_create_post_request.py b/graphiant_sdk/models/v2_notificationmutelist_create_post_request.py index 89fd505d..1dac593f 100644 --- a/graphiant_sdk/models/v2_notificationmutelist_create_post_request.py +++ b/graphiant_sdk/models/v2_notificationmutelist_create_post_request.py @@ -21,19 +21,17 @@ 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 V2NotificationmutelistCreatePostRequest(BaseModel): """ V2NotificationmutelistCreatePostRequest """ # noqa: E501 - alert_id: StrictStr = Field(description="Alert id of the alert to create allowlist/mutelist for (required)", alias="alertId", json_schema_extra={"examples": ["example string"]}) - note_text: Optional[StrictStr] = Field(default=None, description="Optional note", alias="noteText", json_schema_extra={"examples": ["example string"]}) + alert_id: StrictStr = Field(description="Alert id of the alert to create allowlist/mutelist for (required)", alias="alertId") + note_text: Optional[StrictStr] = Field(default=None, description="Optional note", alias="noteText") __properties: ClassVar[List[str]] = ["alertId", "noteText"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_notificationmutelist_rule_id_get_response.py b/graphiant_sdk/models/v2_notificationmutelist_rule_id_get_response.py index e2c8563d..37f2f8dc 100644 --- a/graphiant_sdk/models/v2_notificationmutelist_rule_id_get_response.py +++ b/graphiant_sdk/models/v2_notificationmutelist_rule_id_get_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_allow_alert_notifcation_list_record import AlertserviceAllowAlertNotifcationListRecord from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2NotificationmutelistRuleIdGetResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2NotificationmutelistRuleIdGetResponse(BaseModel): __properties: ClassVar[List[str]] = ["records"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_parentalertlist_post_request.py b/graphiant_sdk/models/v2_parentalertlist_post_request.py index b3363c43..3e9f8987 100644 --- a/graphiant_sdk/models/v2_parentalertlist_post_request.py +++ b/graphiant_sdk/models/v2_parentalertlist_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_time_window import AlertserviceTimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ParentalertlistPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2ParentalertlistPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_parentalertlist_post_response.py b/graphiant_sdk/models/v2_parentalertlist_post_response.py index 7ff7c8f8..dcc7e030 100644 --- a/graphiant_sdk/models/v2_parentalertlist_post_response.py +++ b/graphiant_sdk/models/v2_parentalertlist_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_alert_record import AlertserviceAlertRecord from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2ParentalertlistPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2ParentalertlistPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["alertList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_rule_enabledisable_post_request.py b/graphiant_sdk/models/v2_rule_enabledisable_post_request.py index 7766e93c..a38a7bc5 100644 --- a/graphiant_sdk/models/v2_rule_enabledisable_post_request.py +++ b/graphiant_sdk/models/v2_rule_enabledisable_post_request.py @@ -21,19 +21,17 @@ from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2RuleEnabledisablePostRequest(BaseModel): """ V2RuleEnabledisablePostRequest """ # noqa: E501 - enable: StrictBool = Field(description="Enable or disable. True means enable (required)", json_schema_extra={"examples": [True]}) + enable: StrictBool = Field(description="Enable or disable. True means enable (required)") rule_id_list: List[StrictStr] = Field(alias="ruleIdList") __properties: ClassVar[List[str]] = ["enable", "ruleIdList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_rulelist_post_response.py b/graphiant_sdk/models/v2_rulelist_post_response.py index 25332c49..4a56f8a1 100644 --- a/graphiant_sdk/models/v2_rulelist_post_response.py +++ b/graphiant_sdk/models/v2_rulelist_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.alertservice_rule_record import AlertserviceRuleRecord from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2RulelistPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2RulelistPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["ruleList"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_site_site_id_lan_segments_post_request.py b/graphiant_sdk/models/v2_site_site_id_lan_segments_post_request.py index c1e13480..470e5367 100644 --- a/graphiant_sdk/models/v2_site_site_id_lan_segments_post_request.py +++ b/graphiant_sdk/models/v2_site_site_id_lan_segments_post_request.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2SiteSiteIdLanSegmentsPostRequest(BaseModel): """ @@ -32,8 +31,7 @@ class V2SiteSiteIdLanSegmentsPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_site_site_id_lan_segments_post_response.py b/graphiant_sdk/models/v2_site_site_id_lan_segments_post_response.py index 3d5fa733..1f04edaf 100644 --- a/graphiant_sdk/models/v2_site_site_id_lan_segments_post_response.py +++ b/graphiant_sdk/models/v2_site_site_id_lan_segments_post_response.py @@ -22,7 +22,6 @@ from graphiant_sdk.models.statsmon_v2_device_segments import StatsmonV2DeviceSegments from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2SiteSiteIdLanSegmentsPostResponse(BaseModel): """ @@ -32,8 +31,7 @@ class V2SiteSiteIdLanSegmentsPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["deviceSegments"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -45,7 +43,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_site_site_id_topology_post_request.py b/graphiant_sdk/models/v2_site_site_id_topology_post_request.py index 008205ee..3100232d 100644 --- a/graphiant_sdk/models/v2_site_site_id_topology_post_request.py +++ b/graphiant_sdk/models/v2_site_site_id_topology_post_request.py @@ -23,7 +23,6 @@ from graphiant_sdk.models.statsmon_v2_time_window import StatsmonV2TimeWindow from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2SiteSiteIdTopologyPostRequest(BaseModel): """ @@ -34,8 +33,7 @@ class V2SiteSiteIdTopologyPostRequest(BaseModel): __properties: ClassVar[List[str]] = ["snapshotTime", "timeWindow"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -47,7 +45,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_site_site_id_topology_post_response.py b/graphiant_sdk/models/v2_site_site_id_topology_post_response.py index 7f3d1215..57d2852d 100644 --- a/graphiant_sdk/models/v2_site_site_id_topology_post_response.py +++ b/graphiant_sdk/models/v2_site_site_id_topology_post_response.py @@ -24,7 +24,6 @@ from graphiant_sdk.models.v2_site_site_id_topology_post_response_snapshot import V2SiteSiteIdTopologyPostResponseSnapshot from typing import Optional, Set from typing_extensions import Self -from pydantic_core import to_jsonable_python class V2SiteSiteIdTopologyPostResponse(BaseModel): """ @@ -36,8 +35,7 @@ class V2SiteSiteIdTopologyPostResponse(BaseModel): __properties: ClassVar[List[str]] = ["edges", "nodes", "snapshots"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -49,7 +47,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/models/v2_site_site_id_topology_post_response_snapshot.py b/graphiant_sdk/models/v2_site_site_id_topology_post_response_snapshot.py index bce37cba..f8ad27f2 100644 --- a/graphiant_sdk/models/v2_site_site_id_topology_post_response_snapshot.py +++ b/graphiant_sdk/models/v2_site_site_id_topology_post_response_snapshot.py @@ -22,19 +22,17 @@ 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 V2SiteSiteIdTopologyPostResponseSnapshot(BaseModel): """ V2SiteSiteIdTopologyPostResponseSnapshot """ # noqa: E501 - quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + quality: Optional[StrictStr] = None snapshot_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="snapshotTime") __properties: ClassVar[List[str]] = ["quality", "snapshotTime"] model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, + populate_by_name=True, validate_assignment=True, protected_namespaces=(), ) @@ -46,7 +44,8 @@ def to_str(self) -> str: def to_json(self) -> str: """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) @classmethod def from_json(cls, json_str: str) -> Optional[Self]: diff --git a/graphiant_sdk/rest.py b/graphiant_sdk/rest.py index 25055cc8..dd5e03fc 100644 --- a/graphiant_sdk/rest.py +++ b/graphiant_sdk/rest.py @@ -94,7 +94,6 @@ def __init__(self, configuration) -> None: if configuration.tls_server_name: pool_args['server_hostname'] = configuration.tls_server_name - if configuration.socket_options is not None: pool_args['socket_options'] = configuration.socket_options @@ -164,9 +163,9 @@ def request( if isinstance(_request_timeout, (int, float)): timeout = urllib3.Timeout(total=_request_timeout) elif ( - isinstance(_request_timeout, tuple) - and len(_request_timeout) == 2 - ): + isinstance(_request_timeout, tuple) + and len(_request_timeout) == 2 + ): timeout = urllib3.Timeout( connect=_request_timeout[0], read=_request_timeout[1] @@ -209,7 +208,10 @@ def request( # overwritten. del headers['Content-Type'] # Ensures that dict objects are serialized - post_params = [(a, json.dumps(b)) if isinstance(b, dict) else (a,b) for a, b in post_params] + post_params = [ + (a, json.dumps(b)) if isinstance(b, dict) else (a, b) + for a, b in post_params + ] r = self.pool_manager.request( method, url, diff --git a/pyproject.toml b/pyproject.toml index c13565a7..e6018a99 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "graphiant_sdk" -version = "26.5.0" +version = "26.6.0" description = "Graphiant APIs" authors = [ {name = "OpenAPI Generator Community",email = "team@openapitools.org"}, @@ -21,6 +21,20 @@ dependencies = [ "playwright (>=1.40,<2)", ] +[project.optional-dependencies] +dev = [ + "pytest>=9.0.3", + "pytest-cov>=2.8.1", + "tox>=3.9.0", + "flake8>=4.0.0", + "types-python-dateutil>=2.8.19.14", + "mypy>=1.5", + "filelock>=3.20.3", + "types-click>=7.1.0", + "build>=1.0.0", + "wheel>=0.40.0", +] + [project.scripts] graphiant = "graphiant_cli.main:main" diff --git a/scripts/generate.sh b/scripts/generate.sh index 93324c70..e48a852e 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -8,7 +8,7 @@ # # Usage: # bash scripts/generate.sh # uses api/openapi.yaml -# OPENAPI_SPEC=api/graphiant_api_docs_v26.5.0.json bash scripts/generate.sh +# OPENAPI_SPEC=api/graphiant_api_docs_v26.6.0.json bash scripts/generate.sh set -euo pipefail diff --git a/setup.py b/setup.py index 0bc9bca5..60f80010 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "graphiant_sdk" -VERSION = "26.5.0" +VERSION = "26.6.0" PYTHON_REQUIRES = ">= 3.10" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", diff --git a/test-requirements.txt b/test-requirements.txt index 9cb0629a..cf18da22 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,3 +4,6 @@ tox >= 3.9.0 flake8 >= 4.0.0 types-python-dateutil >= 2.8.19.14 mypy >= 1.5 +types-click >= 7.1.0 +build >= 1.0.0 +wheel >= 0.40.0 diff --git a/test/test_assurance_approved_app_entry.py b/test/test_assurance_approved_app_entry.py new file mode 100644 index 00000000..05bb6cbb --- /dev/null +++ b/test/test_assurance_approved_app_entry.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.assurance_approved_app_entry import AssuranceApprovedAppEntry + +class TestAssuranceApprovedAppEntry(unittest.TestCase): + """AssuranceApprovedAppEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssuranceApprovedAppEntry: + """Test AssuranceApprovedAppEntry + 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 `AssuranceApprovedAppEntry` + """ + model = AssuranceApprovedAppEntry() + if include_optional: + return AssuranceApprovedAppEntry( + active_users = 1234567891011, + category = 'example string', + data_sent_kbps = 123.45, + id = 'example string', + tool = 'example string' + ) + else: + return AssuranceApprovedAppEntry( + ) + """ + + def testAssuranceApprovedAppEntry(self): + """Test AssuranceApprovedAppEntry""" + # 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_assurance_approved_app_entry_request.py b/test/test_assurance_approved_app_entry_request.py new file mode 100644 index 00000000..2a1a57d1 --- /dev/null +++ b/test/test_assurance_approved_app_entry_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.assurance_approved_app_entry_request import AssuranceApprovedAppEntryRequest + +class TestAssuranceApprovedAppEntryRequest(unittest.TestCase): + """AssuranceApprovedAppEntryRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssuranceApprovedAppEntryRequest: + """Test AssuranceApprovedAppEntryRequest + 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 `AssuranceApprovedAppEntryRequest` + """ + model = AssuranceApprovedAppEntryRequest() + if include_optional: + return AssuranceApprovedAppEntryRequest( + app_name = 'example string', + domain = 'example string', + id = 'example string', + tag_requested = 'ENUM_VALUE' + ) + else: + return AssuranceApprovedAppEntryRequest( + app_name = 'example string', + tag_requested = 'ENUM_VALUE', + ) + """ + + def testAssuranceApprovedAppEntryRequest(self): + """Test AssuranceApprovedAppEntryRequest""" + # 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_assurance_kpi_metric.py b/test/test_assurance_kpi_metric.py new file mode 100644 index 00000000..c804ea53 --- /dev/null +++ b/test/test_assurance_kpi_metric.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.assurance_kpi_metric import AssuranceKpiMetric + +class TestAssuranceKpiMetric(unittest.TestCase): + """AssuranceKpiMetric unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssuranceKpiMetric: + """Test AssuranceKpiMetric + 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 `AssuranceKpiMetric` + """ + model = AssuranceKpiMetric() + if include_optional: + return AssuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45 + ) + else: + return AssuranceKpiMetric( + ) + """ + + def testAssuranceKpiMetric(self): + """Test AssuranceKpiMetric""" + # 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_assurance_top_level_kpi.py b/test/test_assurance_top_level_kpi.py new file mode 100644 index 00000000..eb62a15f --- /dev/null +++ b/test/test_assurance_top_level_kpi.py @@ -0,0 +1,78 @@ +# 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.assurance_top_level_kpi import AssuranceTopLevelKpi + +class TestAssuranceTopLevelKpi(unittest.TestCase): + """AssuranceTopLevelKpi unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssuranceTopLevelKpi: + """Test AssuranceTopLevelKpi + 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 `AssuranceTopLevelKpi` + """ + model = AssuranceTopLevelKpi() + if include_optional: + return AssuranceTopLevelKpi( + data_transferred_kbps_metric = graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ), + shadow_ai_tools_metric = graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ), + tools_metric = graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ), + users_metric = graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ) + else: + return AssuranceTopLevelKpi( + ) + """ + + def testAssuranceTopLevelKpi(self): + """Test AssuranceTopLevelKpi""" + # 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_assurance_user_definition.py b/test/test_assurance_user_definition.py new file mode 100644 index 00000000..6cfec10a --- /dev/null +++ b/test/test_assurance_user_definition.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.assurance_user_definition import AssuranceUserDefinition + +class TestAssuranceUserDefinition(unittest.TestCase): + """AssuranceUserDefinition unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssuranceUserDefinition: + """Test AssuranceUserDefinition + 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 `AssuranceUserDefinition` + """ + model = AssuranceUserDefinition() + if include_optional: + return AssuranceUserDefinition( + data_sent = 123.45, + managed = True, + sessions_day = 123.45, + tokens_usage = 123.45, + tokens_usage_days = 123.45, + user = 'example string', + vrf = 'example string' + ) + else: + return AssuranceUserDefinition( + ) + """ + + def testAssuranceUserDefinition(self): + """Test AssuranceUserDefinition""" + # 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_assurance_what_widget.py b/test/test_assurance_what_widget.py new file mode 100644 index 00000000..adde8cff --- /dev/null +++ b/test/test_assurance_what_widget.py @@ -0,0 +1,77 @@ +# 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.assurance_what_widget import AssuranceWhatWidget + +class TestAssuranceWhatWidget(unittest.TestCase): + """AssuranceWhatWidget unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssuranceWhatWidget: + """Test AssuranceWhatWidget + 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 `AssuranceWhatWidget` + """ + model = AssuranceWhatWidget() + if include_optional: + return AssuranceWhatWidget( + bubble_categories = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], + top_tools_by_active_users = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], + top_tools_by_data_transferred = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ] + ) + else: + return AssuranceWhatWidget( + ) + """ + + def testAssuranceWhatWidget(self): + """Test AssuranceWhatWidget""" + # 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_assurance_when_widget.py b/test/test_assurance_when_widget.py new file mode 100644 index 00000000..4ca7a5e4 --- /dev/null +++ b/test/test_assurance_when_widget.py @@ -0,0 +1,86 @@ +# 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.assurance_when_widget import AssuranceWhenWidget + +class TestAssuranceWhenWidget(unittest.TestCase): + """AssuranceWhenWidget unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssuranceWhenWidget: + """Test AssuranceWhenWidget + 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 `AssuranceWhenWidget` + """ + model = AssuranceWhenWidget() + if include_optional: + return AssuranceWhenWidget( + day_of_week = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], + hour_of_day = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], + monthly_active_users = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], + monthly_bandwidth_transferred = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ] + ) + else: + return AssuranceWhenWidget( + ) + """ + + def testAssuranceWhenWidget(self): + """Test AssuranceWhenWidget""" + # 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_assurance_where_widget.py b/test/test_assurance_where_widget.py new file mode 100644 index 00000000..00a99323 --- /dev/null +++ b/test/test_assurance_where_widget.py @@ -0,0 +1,78 @@ +# 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.assurance_where_widget import AssuranceWhereWidget + +class TestAssuranceWhereWidget(unittest.TestCase): + """AssuranceWhereWidget unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AssuranceWhereWidget: + """Test AssuranceWhereWidget + 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 `AssuranceWhereWidget` + """ + model = AssuranceWhereWidget() + if include_optional: + return AssuranceWhereWidget( + top_sites_by_users = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], + top_users_by_data_transferred = [ + graphiant_sdk.models.assurance_user_definition.assuranceUserDefinition( + data_sent = 123.45, + managed = True, + sessions_day = 123.45, + tokens_usage = 123.45, + tokens_usage_days = 123.45, + user = 'example string', + vrf = 'example string', ) + ], + top_vrfs_by_users = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ] + ) + else: + return AssuranceWhereWidget( + ) + """ + + def testAssuranceWhereWidget(self): + """Test AssuranceWhereWidget""" + # 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_conceal_agent.py b/test/test_conceal_agent.py new file mode 100644 index 00000000..afdfd5f3 --- /dev/null +++ b/test/test_conceal_agent.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.conceal_agent import ConcealAgent + +class TestConcealAgent(unittest.TestCase): + """ConcealAgent unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ConcealAgent: + """Test ConcealAgent + 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 `ConcealAgent` + """ + model = ConcealAgent() + if include_optional: + return ConcealAgent( + created_at = 'example string', + disabled = True, + id = 'example string', + identifier = 'example string', + last_checkin = 'example string', + machine = 'example string' + ) + else: + return ConcealAgent( + ) + """ + + def testConcealAgent(self): + """Test ConcealAgent""" + # 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_b2_b_extranet_match_consumer_details_customer.py b/test/test_mana_v2_b2_b_extranet_match_consumer_details_customer.py new file mode 100644 index 00000000..6d540183 --- /dev/null +++ b/test/test_mana_v2_b2_b_extranet_match_consumer_details_customer.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.mana_v2_b2_b_extranet_match_consumer_details_customer import ManaV2B2BExtranetMatchConsumerDetailsCustomer + +class TestManaV2B2BExtranetMatchConsumerDetailsCustomer(unittest.TestCase): + """ManaV2B2BExtranetMatchConsumerDetailsCustomer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2B2BExtranetMatchConsumerDetailsCustomer: + """Test ManaV2B2BExtranetMatchConsumerDetailsCustomer + 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 `ManaV2B2BExtranetMatchConsumerDetailsCustomer` + """ + model = ManaV2B2BExtranetMatchConsumerDetailsCustomer() + if include_optional: + return ManaV2B2BExtranetMatchConsumerDetailsCustomer( + admin_emails = [ + 'example string' + ], + company_name = 'example string', + id = 1234567891011, + num_sites = 123 + ) + else: + return ManaV2B2BExtranetMatchConsumerDetailsCustomer( + ) + """ + + def testManaV2B2BExtranetMatchConsumerDetailsCustomer(self): + """Test ManaV2B2BExtranetMatchConsumerDetailsCustomer""" + # 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_b2_b_extranet_match_consumer_details_producer_prefix.py b/test/test_mana_v2_b2_b_extranet_match_consumer_details_producer_prefix.py new file mode 100644 index 00000000..da813242 --- /dev/null +++ b/test/test_mana_v2_b2_b_extranet_match_consumer_details_producer_prefix.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.mana_v2_b2_b_extranet_match_consumer_details_producer_prefix import ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix + +class TestManaV2B2BExtranetMatchConsumerDetailsProducerPrefix(unittest.TestCase): + """ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix: + """Test ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix + 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 `ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix` + """ + model = ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix() + if include_optional: + return ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix( + customer_translated_prefix = 'example string', + prefix = 'example string', + tag = 'example string' + ) + else: + return ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix( + ) + """ + + def testManaV2B2BExtranetMatchConsumerDetailsProducerPrefix(self): + """Test ManaV2B2BExtranetMatchConsumerDetailsProducerPrefix""" + # 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_b2_b_extranet_match_consumer_details_service.py b/test/test_mana_v2_b2_b_extranet_match_consumer_details_service.py new file mode 100644 index 00000000..0fb1c2e9 --- /dev/null +++ b/test/test_mana_v2_b2_b_extranet_match_consumer_details_service.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.mana_v2_b2_b_extranet_match_consumer_details_service import ManaV2B2BExtranetMatchConsumerDetailsService + +class TestManaV2B2BExtranetMatchConsumerDetailsService(unittest.TestCase): + """ManaV2B2BExtranetMatchConsumerDetailsService unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2B2BExtranetMatchConsumerDetailsService: + """Test ManaV2B2BExtranetMatchConsumerDetailsService + 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 `ManaV2B2BExtranetMatchConsumerDetailsService` + """ + model = ManaV2B2BExtranetMatchConsumerDetailsService() + if include_optional: + return ManaV2B2BExtranetMatchConsumerDetailsService( + company_name = 'example string', + contact_email = [ + 'example string' + ], + description = 'example string', + id = 1234567891011, + service_name = 'example string' + ) + else: + return ManaV2B2BExtranetMatchConsumerDetailsService( + ) + """ + + def testManaV2B2BExtranetMatchConsumerDetailsService(self): + """Test ManaV2B2BExtranetMatchConsumerDetailsService""" + # 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_b2b_extranet_match.py b/test/test_mana_v2_b2b_extranet_match.py new file mode 100644 index 00000000..b1191866 --- /dev/null +++ b/test/test_mana_v2_b2b_extranet_match.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.mana_v2_b2b_extranet_match import ManaV2B2bExtranetMatch + +class TestManaV2B2bExtranetMatch(unittest.TestCase): + """ManaV2B2bExtranetMatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2B2bExtranetMatch: + """Test ManaV2B2bExtranetMatch + 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 `ManaV2B2bExtranetMatch` + """ + model = ManaV2B2bExtranetMatch() + if include_optional: + return ManaV2B2bExtranetMatch( + consumer_prefixes = [ + 'example string' + ], + lan_segment = 1234567891011, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + num_customers = 123, + service_id = 1234567891011, + service_prefixes = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ] + ) + else: + return ManaV2B2bExtranetMatch( + ) + """ + + def testManaV2B2bExtranetMatch(self): + """Test ManaV2B2bExtranetMatch""" + # 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_b2b_extranet_match_consumer_details.py b/test/test_mana_v2_b2b_extranet_match_consumer_details.py new file mode 100644 index 00000000..d998e09c --- /dev/null +++ b/test/test_mana_v2_b2b_extranet_match_consumer_details.py @@ -0,0 +1,84 @@ +# 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_b2b_extranet_match_consumer_details import ManaV2B2bExtranetMatchConsumerDetails + +class TestManaV2B2bExtranetMatchConsumerDetails(unittest.TestCase): + """ManaV2B2bExtranetMatchConsumerDetails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2B2bExtranetMatchConsumerDetails: + """Test ManaV2B2bExtranetMatchConsumerDetails + 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 `ManaV2B2bExtranetMatchConsumerDetails` + """ + model = ManaV2B2bExtranetMatchConsumerDetails() + if include_optional: + return ManaV2B2bExtranetMatchConsumerDetails( + consumer_id = 1234567891011, + consumer_prefixes = [ + 'example string' + ], + customer = graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_customer.manaV2B2BExtranetMatchConsumerDetailsCustomer( + admin_emails = [ + 'example string' + ], + company_name = 'example string', + id = 1234567891011, + num_sites = 123, ), + old_consumer_prefixes = [ + 'example string' + ], + old_service_prefixes = [ + graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_producer_prefix.manaV2B2BExtranetMatchConsumerDetailsProducerPrefix( + customer_translated_prefix = 'example string', + prefix = 'example string', + tag = 'example string', ) + ], + service = graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_service.manaV2B2BExtranetMatchConsumerDetailsService( + company_name = 'example string', + contact_email = [ + 'example string' + ], + description = 'example string', + id = 1234567891011, + service_name = 'example string', ), + service_prefixes = [ + graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_producer_prefix.manaV2B2BExtranetMatchConsumerDetailsProducerPrefix( + customer_translated_prefix = 'example string', + prefix = 'example string', + tag = 'example string', ) + ] + ) + else: + return ManaV2B2bExtranetMatchConsumerDetails( + ) + """ + + def testManaV2B2bExtranetMatchConsumerDetails(self): + """Test ManaV2B2bExtranetMatchConsumerDetails""" + # 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_extranet_consumer_lan_prefixes.py b/test/test_mana_v2_extranet_consumer_lan_prefixes.py new file mode 100644 index 00000000..6b424cb4 --- /dev/null +++ b/test/test_mana_v2_extranet_consumer_lan_prefixes.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.mana_v2_extranet_consumer_lan_prefixes import ManaV2ExtranetConsumerLanPrefixes + +class TestManaV2ExtranetConsumerLanPrefixes(unittest.TestCase): + """ManaV2ExtranetConsumerLanPrefixes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetConsumerLanPrefixes: + """Test ManaV2ExtranetConsumerLanPrefixes + 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 `ManaV2ExtranetConsumerLanPrefixes` + """ + model = ManaV2ExtranetConsumerLanPrefixes() + if include_optional: + return ManaV2ExtranetConsumerLanPrefixes( + consumer_prefixes = [ + 'example string' + ], + service_prefix_dnat = { + 'key' : 'example string' + } + ) + else: + return ManaV2ExtranetConsumerLanPrefixes( + ) + """ + + def testManaV2ExtranetConsumerLanPrefixes(self): + """Test ManaV2ExtranetConsumerLanPrefixes""" + # 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_extranet_nat_translation_centralized.py b/test/test_mana_v2_extranet_nat_translation_centralized.py new file mode 100644 index 00000000..dbb978de --- /dev/null +++ b/test/test_mana_v2_extranet_nat_translation_centralized.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.mana_v2_extranet_nat_translation_centralized import ManaV2ExtranetNatTranslationCentralized + +class TestManaV2ExtranetNatTranslationCentralized(unittest.TestCase): + """ManaV2ExtranetNatTranslationCentralized unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetNatTranslationCentralized: + """Test ManaV2ExtranetNatTranslationCentralized + 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 `ManaV2ExtranetNatTranslationCentralized` + """ + model = ManaV2ExtranetNatTranslationCentralized() + if include_optional: + return ManaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + } + ) + else: + return ManaV2ExtranetNatTranslationCentralized( + ) + """ + + def testManaV2ExtranetNatTranslationCentralized(self): + """Test ManaV2ExtranetNatTranslationCentralized""" + # 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_extranet_nat_translation_decentralized.py b/test/test_mana_v2_extranet_nat_translation_decentralized.py new file mode 100644 index 00000000..1b1ca930 --- /dev/null +++ b/test/test_mana_v2_extranet_nat_translation_decentralized.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.mana_v2_extranet_nat_translation_decentralized import ManaV2ExtranetNatTranslationDecentralized + +class TestManaV2ExtranetNatTranslationDecentralized(unittest.TestCase): + """ManaV2ExtranetNatTranslationDecentralized unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetNatTranslationDecentralized: + """Test ManaV2ExtranetNatTranslationDecentralized + 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 `ManaV2ExtranetNatTranslationDecentralized` + """ + model = ManaV2ExtranetNatTranslationDecentralized() + if include_optional: + return ManaV2ExtranetNatTranslationDecentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + } + ) + else: + return ManaV2ExtranetNatTranslationDecentralized( + ) + """ + + def testManaV2ExtranetNatTranslationDecentralized(self): + """Test ManaV2ExtranetNatTranslationDecentralized""" + # 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_extranet_nat_translation_device_prefixes.py b/test/test_mana_v2_extranet_nat_translation_device_prefixes.py new file mode 100644 index 00000000..0fbab4e5 --- /dev/null +++ b/test/test_mana_v2_extranet_nat_translation_device_prefixes.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.mana_v2_extranet_nat_translation_device_prefixes import ManaV2ExtranetNatTranslationDevicePrefixes + +class TestManaV2ExtranetNatTranslationDevicePrefixes(unittest.TestCase): + """ManaV2ExtranetNatTranslationDevicePrefixes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetNatTranslationDevicePrefixes: + """Test ManaV2ExtranetNatTranslationDevicePrefixes + 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 `ManaV2ExtranetNatTranslationDevicePrefixes` + """ + model = ManaV2ExtranetNatTranslationDevicePrefixes() + if include_optional: + return ManaV2ExtranetNatTranslationDevicePrefixes( + prefixes = [ + 'example string' + ] + ) + else: + return ManaV2ExtranetNatTranslationDevicePrefixes( + ) + """ + + def testManaV2ExtranetNatTranslationDevicePrefixes(self): + """Test ManaV2ExtranetNatTranslationDevicePrefixes""" + # 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_extranet_nat_translation_mode.py b/test/test_mana_v2_extranet_nat_translation_mode.py new file mode 100644 index 00000000..efc724e9 --- /dev/null +++ b/test/test_mana_v2_extranet_nat_translation_mode.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.mana_v2_extranet_nat_translation_mode import ManaV2ExtranetNatTranslationMode + +class TestManaV2ExtranetNatTranslationMode(unittest.TestCase): + """ManaV2ExtranetNatTranslationMode unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetNatTranslationMode: + """Test ManaV2ExtranetNatTranslationMode + 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 `ManaV2ExtranetNatTranslationMode` + """ + model = ManaV2ExtranetNatTranslationMode() + if include_optional: + return ManaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer( + prefixes = [ + graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer_prefix.manaV2ExtranetNatTranslationPeerToPeerPrefix( + outside_nat_prefix = '100.1.2.0/24', + prefix = '10.1.2.0/24', ) + ], ) + ) + else: + return ManaV2ExtranetNatTranslationMode( + ) + """ + + def testManaV2ExtranetNatTranslationMode(self): + """Test ManaV2ExtranetNatTranslationMode""" + # 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_extranet_nat_translation_peer_to_peer.py b/test/test_mana_v2_extranet_nat_translation_peer_to_peer.py new file mode 100644 index 00000000..a2405552 --- /dev/null +++ b/test/test_mana_v2_extranet_nat_translation_peer_to_peer.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.mana_v2_extranet_nat_translation_peer_to_peer import ManaV2ExtranetNatTranslationPeerToPeer + +class TestManaV2ExtranetNatTranslationPeerToPeer(unittest.TestCase): + """ManaV2ExtranetNatTranslationPeerToPeer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetNatTranslationPeerToPeer: + """Test ManaV2ExtranetNatTranslationPeerToPeer + 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 `ManaV2ExtranetNatTranslationPeerToPeer` + """ + model = ManaV2ExtranetNatTranslationPeerToPeer() + if include_optional: + return ManaV2ExtranetNatTranslationPeerToPeer( + prefixes = [ + graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer_prefix.manaV2ExtranetNatTranslationPeerToPeerPrefix( + outside_nat_prefix = '100.1.2.0/24', + prefix = '10.1.2.0/24', ) + ] + ) + else: + return ManaV2ExtranetNatTranslationPeerToPeer( + ) + """ + + def testManaV2ExtranetNatTranslationPeerToPeer(self): + """Test ManaV2ExtranetNatTranslationPeerToPeer""" + # 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_extranet_nat_translation_peer_to_peer_prefix.py b/test/test_mana_v2_extranet_nat_translation_peer_to_peer_prefix.py new file mode 100644 index 00000000..545d7980 --- /dev/null +++ b/test/test_mana_v2_extranet_nat_translation_peer_to_peer_prefix.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_extranet_nat_translation_peer_to_peer_prefix import ManaV2ExtranetNatTranslationPeerToPeerPrefix + +class TestManaV2ExtranetNatTranslationPeerToPeerPrefix(unittest.TestCase): + """ManaV2ExtranetNatTranslationPeerToPeerPrefix unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetNatTranslationPeerToPeerPrefix: + """Test ManaV2ExtranetNatTranslationPeerToPeerPrefix + 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 `ManaV2ExtranetNatTranslationPeerToPeerPrefix` + """ + model = ManaV2ExtranetNatTranslationPeerToPeerPrefix() + if include_optional: + return ManaV2ExtranetNatTranslationPeerToPeerPrefix( + outside_nat_prefix = '100.1.2.0/24', + prefix = '10.1.2.0/24' + ) + else: + return ManaV2ExtranetNatTranslationPeerToPeerPrefix( + ) + """ + + def testManaV2ExtranetNatTranslationPeerToPeerPrefix(self): + """Test ManaV2ExtranetNatTranslationPeerToPeerPrefix""" + # 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_extranet_service_consumer_policy.py b/test/test_mana_v2_extranet_service_consumer_policy.py new file mode 100644 index 00000000..a856df62 --- /dev/null +++ b/test/test_mana_v2_extranet_service_consumer_policy.py @@ -0,0 +1,150 @@ +# 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_extranet_service_consumer_policy import ManaV2ExtranetServiceConsumerPolicy + +class TestManaV2ExtranetServiceConsumerPolicy(unittest.TestCase): + """ManaV2ExtranetServiceConsumerPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetServiceConsumerPolicy: + """Test ManaV2ExtranetServiceConsumerPolicy + 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 `ManaV2ExtranetServiceConsumerPolicy` + """ + model = ManaV2ExtranetServiceConsumerPolicy() + if include_optional: + return ManaV2ExtranetServiceConsumerPolicy( + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes.manaV2ExtranetConsumerLanPrefixes( + consumer_prefixes = [ + 'example string' + ], + service_prefix_dnat = { + 'key' : 'example string' + }, ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + site_to_site_vpn = graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config.manaV2GuestConsumerSiteToSiteVpnConfig( + emails = [ + 'example string' + ], + ipsec_gateway_details = graphiant_sdk.models.mana_v2_i_psec_gateway_details.manaV2IPsecGatewayDetails( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + routing = graphiant_sdk.models.mana_v2_ipsec_routing_config.manaV2IpsecRoutingConfig( + bgp = graphiant_sdk.models.mana_v2_i_psec_bgp_route_config.manaV2IPsecBgpRouteConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + hold_timer = 123, + keepalive_timer = 123, + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + send_community = True, ), + static = graphiant_sdk.models.mana_v2_i_psec_static_route_config.manaV2IPsecStaticRouteConfig( + destination_prefix = [ + 'example string' + ], ), ), + tcp_mss = 123, + tunnel1 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + tunnel2 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + vpn_profile = 'example string', ), + ipsec_gateway_peers = graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config.manaV2IPsecGatewayPeersConfig( + name = 'example string', + remote_peers = [ + graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer.manaV2IPsecGatewayRemotePeer( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + tcp_mss = 123, + vpn_profile = 'example string', ) + ], ), + region_id = 123, ), + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ] + ) + else: + return ManaV2ExtranetServiceConsumerPolicy( + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes.manaV2ExtranetConsumerLanPrefixes( + consumer_prefixes = [ + 'example string' + ], + service_prefix_dnat = { + 'key' : 'example string' + }, ) + }, + ) + """ + + def testManaV2ExtranetServiceConsumerPolicy(self): + """Test ManaV2ExtranetServiceConsumerPolicy""" + # 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_extranet_service_customer_invite.py b/test/test_mana_v2_extranet_service_customer_invite.py new file mode 100644 index 00000000..e535b409 --- /dev/null +++ b/test/test_mana_v2_extranet_service_customer_invite.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_extranet_service_customer_invite import ManaV2ExtranetServiceCustomerInvite + +class TestManaV2ExtranetServiceCustomerInvite(unittest.TestCase): + """ManaV2ExtranetServiceCustomerInvite unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetServiceCustomerInvite: + """Test ManaV2ExtranetServiceCustomerInvite + 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 `ManaV2ExtranetServiceCustomerInvite` + """ + model = ManaV2ExtranetServiceCustomerInvite() + if include_optional: + return ManaV2ExtranetServiceCustomerInvite( + admin_emails = [ + 'example string' + ], + maximum_number_of_sites = 123 + ) + else: + return ManaV2ExtranetServiceCustomerInvite( + ) + """ + + def testManaV2ExtranetServiceCustomerInvite(self): + """Test ManaV2ExtranetServiceCustomerInvite""" + # 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_extranet_service_customer_match_summary.py b/test/test_mana_v2_extranet_service_customer_match_summary.py new file mode 100644 index 00000000..077b3940 --- /dev/null +++ b/test/test_mana_v2_extranet_service_customer_match_summary.py @@ -0,0 +1,59 @@ +# 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_extranet_service_customer_match_summary import ManaV2ExtranetServiceCustomerMatchSummary + +class TestManaV2ExtranetServiceCustomerMatchSummary(unittest.TestCase): + """ManaV2ExtranetServiceCustomerMatchSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetServiceCustomerMatchSummary: + """Test ManaV2ExtranetServiceCustomerMatchSummary + 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 `ManaV2ExtranetServiceCustomerMatchSummary` + """ + model = ManaV2ExtranetServiceCustomerMatchSummary() + if include_optional: + return ManaV2ExtranetServiceCustomerMatchSummary( + id = 1234567891011, + lan_segment = 1234567891011, + matched_customers = 123, + name = 'example string', + service_type = 'ENUM_VALUE', + status = 'ENUM_VALUE', + updated_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ) + ) + else: + return ManaV2ExtranetServiceCustomerMatchSummary( + ) + """ + + def testManaV2ExtranetServiceCustomerMatchSummary(self): + """Test ManaV2ExtranetServiceCustomerMatchSummary""" + # 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_extranet_service_customer_summary.py b/test/test_mana_v2_extranet_service_customer_summary.py new file mode 100644 index 00000000..32e93774 --- /dev/null +++ b/test/test_mana_v2_extranet_service_customer_summary.py @@ -0,0 +1,61 @@ +# 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_extranet_service_customer_summary import ManaV2ExtranetServiceCustomerSummary + +class TestManaV2ExtranetServiceCustomerSummary(unittest.TestCase): + """ManaV2ExtranetServiceCustomerSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetServiceCustomerSummary: + """Test ManaV2ExtranetServiceCustomerSummary + 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 `ManaV2ExtranetServiceCustomerSummary` + """ + model = ManaV2ExtranetServiceCustomerSummary() + if include_optional: + return ManaV2ExtranetServiceCustomerSummary( + admin_emails = [ + 'example string' + ], + id = 1234567891011, + matched_services = 123, + name = 'example string', + status = 'ENUM_VALUE', + type = 'ENUM_VALUE', + updated_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ) + ) + else: + return ManaV2ExtranetServiceCustomerSummary( + ) + """ + + def testManaV2ExtranetServiceCustomerSummary(self): + """Test ManaV2ExtranetServiceCustomerSummary""" + # 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_extranet_service_policy_response.py b/test/test_mana_v2_extranet_service_policy_response.py new file mode 100644 index 00000000..9cdc80d6 --- /dev/null +++ b/test/test_mana_v2_extranet_service_policy_response.py @@ -0,0 +1,107 @@ +# 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_extranet_service_policy_response import ManaV2ExtranetServicePolicyResponse + +class TestManaV2ExtranetServicePolicyResponse(unittest.TestCase): + """ManaV2ExtranetServicePolicyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetServicePolicyResponse: + """Test ManaV2ExtranetServicePolicyResponse + 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 `ManaV2ExtranetServicePolicyResponse` + """ + model = ManaV2ExtranetServicePolicyResponse() + if include_optional: + return ManaV2ExtranetServicePolicyResponse( + policy = graphiant_sdk.models.mana_v2_extranet_service_producer_policy.manaV2ExtranetServiceProducerPolicy( + description = 'example string', + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + prefix_tags = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], + service_lan_segment = 1234567891011, + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + service_name = 'example string', + service_type = 'ENUM_VALUE' + ) + else: + return ManaV2ExtranetServicePolicyResponse( + ) + """ + + def testManaV2ExtranetServicePolicyResponse(self): + """Test ManaV2ExtranetServicePolicyResponse""" + # 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_extranet_service_producer_customer.py b/test/test_mana_v2_extranet_service_producer_customer.py new file mode 100644 index 00000000..398b216f --- /dev/null +++ b/test/test_mana_v2_extranet_service_producer_customer.py @@ -0,0 +1,62 @@ +# 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_extranet_service_producer_customer import ManaV2ExtranetServiceProducerCustomer + +class TestManaV2ExtranetServiceProducerCustomer(unittest.TestCase): + """ManaV2ExtranetServiceProducerCustomer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetServiceProducerCustomer: + """Test ManaV2ExtranetServiceProducerCustomer + 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 `ManaV2ExtranetServiceProducerCustomer` + """ + model = ManaV2ExtranetServiceProducerCustomer() + if include_optional: + return ManaV2ExtranetServiceProducerCustomer( + admin_emails = [ + 'example string' + ], + customer_id = 'example string', + match_id = 1234567891011, + matched_services = 123, + name = 'example string', + status = 'ENUM_VALUE', + type = 'ENUM_VALUE', + updated_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ) + ) + else: + return ManaV2ExtranetServiceProducerCustomer( + ) + """ + + def testManaV2ExtranetServiceProducerCustomer(self): + """Test ManaV2ExtranetServiceProducerCustomer""" + # 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_extranet_service_producer_policy.py b/test/test_mana_v2_extranet_service_producer_policy.py new file mode 100644 index 00000000..2c0ffc60 --- /dev/null +++ b/test/test_mana_v2_extranet_service_producer_policy.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 + + +import unittest + +from graphiant_sdk.models.mana_v2_extranet_service_producer_policy import ManaV2ExtranetServiceProducerPolicy + +class TestManaV2ExtranetServiceProducerPolicy(unittest.TestCase): + """ManaV2ExtranetServiceProducerPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetServiceProducerPolicy: + """Test ManaV2ExtranetServiceProducerPolicy + 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 `ManaV2ExtranetServiceProducerPolicy` + """ + model = ManaV2ExtranetServiceProducerPolicy() + if include_optional: + return ManaV2ExtranetServiceProducerPolicy( + description = 'example string', + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + prefix_tags = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], + service_lan_segment = 1234567891011, + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ] + ) + else: + return ManaV2ExtranetServiceProducerPolicy( + ) + """ + + def testManaV2ExtranetServiceProducerPolicy(self): + """Test ManaV2ExtranetServiceProducerPolicy""" + # 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_extranet_service_summary.py b/test/test_mana_v2_extranet_service_summary.py new file mode 100644 index 00000000..708fad81 --- /dev/null +++ b/test/test_mana_v2_extranet_service_summary.py @@ -0,0 +1,69 @@ +# 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_extranet_service_summary import ManaV2ExtranetServiceSummary + +class TestManaV2ExtranetServiceSummary(unittest.TestCase): + """ManaV2ExtranetServiceSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ExtranetServiceSummary: + """Test ManaV2ExtranetServiceSummary + 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 `ManaV2ExtranetServiceSummary` + """ + model = ManaV2ExtranetServiceSummary() + if include_optional: + return ManaV2ExtranetServiceSummary( + created_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + id = 1234567891011, + is_publisher = True, + lan_segment = 1234567891011, + last_updated = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + server_prefixes = [ + 'example string' + ], + service_name = 'example string', + service_type = 'ENUM_VALUE', + sites = [ + 1234567891011 + ], + status = 'ENUM_VALUE', + total_customers = 123 + ) + else: + return ManaV2ExtranetServiceSummary( + ) + """ + + def testManaV2ExtranetServiceSummary(self): + """Test ManaV2ExtranetServiceSummary""" + # 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_i_psec_gateway_peers_config.py b/test/test_mana_v2_i_psec_gateway_peers_config.py new file mode 100644 index 00000000..9de216e0 --- /dev/null +++ b/test/test_mana_v2_i_psec_gateway_peers_config.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 + + +import unittest + +from graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config import ManaV2IPsecGatewayPeersConfig + +class TestManaV2IPsecGatewayPeersConfig(unittest.TestCase): + """ManaV2IPsecGatewayPeersConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2IPsecGatewayPeersConfig: + """Test ManaV2IPsecGatewayPeersConfig + 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 `ManaV2IPsecGatewayPeersConfig` + """ + model = ManaV2IPsecGatewayPeersConfig() + if include_optional: + return ManaV2IPsecGatewayPeersConfig( + name = 'example string', + remote_peers = [ + graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer.manaV2IPsecGatewayRemotePeer( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + tcp_mss = 123, + tunnel1 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + tunnel2 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + vpn_profile = 'example string', ) + ], + routing = graphiant_sdk.models.mana_v2_ipsec_routing_config.manaV2IpsecRoutingConfig( + bgp = graphiant_sdk.models.mana_v2_i_psec_bgp_route_config.manaV2IPsecBgpRouteConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + hold_timer = 123, + keepalive_timer = 123, + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + send_community = True, ), + static = graphiant_sdk.models.mana_v2_i_psec_static_route_config.manaV2IPsecStaticRouteConfig( + destination_prefix = [ + 'example string' + ], ), ) + ) + else: + return ManaV2IPsecGatewayPeersConfig( + ) + """ + + def testManaV2IPsecGatewayPeersConfig(self): + """Test ManaV2IPsecGatewayPeersConfig""" + # 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_i_psec_gateway_remote_peer.py b/test/test_mana_v2_i_psec_gateway_remote_peer.py new file mode 100644 index 00000000..d6cfbc8f --- /dev/null +++ b/test/test_mana_v2_i_psec_gateway_remote_peer.py @@ -0,0 +1,67 @@ +# 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_i_psec_gateway_remote_peer import ManaV2IPsecGatewayRemotePeer + +class TestManaV2IPsecGatewayRemotePeer(unittest.TestCase): + """ManaV2IPsecGatewayRemotePeer unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2IPsecGatewayRemotePeer: + """Test ManaV2IPsecGatewayRemotePeer + 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 `ManaV2IPsecGatewayRemotePeer` + """ + model = ManaV2IPsecGatewayRemotePeer() + if include_optional: + return ManaV2IPsecGatewayRemotePeer( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + tcp_mss = 123, + tunnel1 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + tunnel2 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + vpn_profile = 'example string' + ) + else: + return ManaV2IPsecGatewayRemotePeer( + ) + """ + + def testManaV2IPsecGatewayRemotePeer(self): + """Test ManaV2IPsecGatewayRemotePeer""" + # 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_lan_segment_public_interface_entry.py b/test/test_mana_v2_lan_segment_public_interface_entry.py new file mode 100644 index 00000000..434f23a5 --- /dev/null +++ b/test/test_mana_v2_lan_segment_public_interface_entry.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.mana_v2_lan_segment_public_interface_entry import ManaV2LanSegmentPublicInterfaceEntry + +class TestManaV2LanSegmentPublicInterfaceEntry(unittest.TestCase): + """ManaV2LanSegmentPublicInterfaceEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2LanSegmentPublicInterfaceEntry: + """Test ManaV2LanSegmentPublicInterfaceEntry + 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 `ManaV2LanSegmentPublicInterfaceEntry` + """ + model = ManaV2LanSegmentPublicInterfaceEntry() + if include_optional: + return ManaV2LanSegmentPublicInterfaceEntry( + interface_id = 1234567891011, + ipv4_addresses = [ + 'example string' + ], + name = 'example string', + storage_provider = 'ENUM_VALUE' + ) + else: + return ManaV2LanSegmentPublicInterfaceEntry( + ) + """ + + def testManaV2LanSegmentPublicInterfaceEntry(self): + """Test ManaV2LanSegmentPublicInterfaceEntry""" + # 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_lan_segment_public_interfaces_lists.py b/test/test_mana_v2_lan_segment_public_interfaces_lists.py new file mode 100644 index 00000000..5c3b94ae --- /dev/null +++ b/test/test_mana_v2_lan_segment_public_interfaces_lists.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.mana_v2_lan_segment_public_interfaces_lists import ManaV2LanSegmentPublicInterfacesLists + +class TestManaV2LanSegmentPublicInterfacesLists(unittest.TestCase): + """ManaV2LanSegmentPublicInterfacesLists unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2LanSegmentPublicInterfacesLists: + """Test ManaV2LanSegmentPublicInterfacesLists + 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 `ManaV2LanSegmentPublicInterfacesLists` + """ + model = ManaV2LanSegmentPublicInterfacesLists() + if include_optional: + return ManaV2LanSegmentPublicInterfacesLists( + private_interfaces = [ + graphiant_sdk.models.mana_v2_lan_segment_public_interface_entry.manaV2LanSegmentPublicInterfaceEntry( + interface_id = 1234567891011, + ipv4_addresses = [ + 'example string' + ], + name = 'example string', + storage_provider = 'ENUM_VALUE', ) + ], + public_interfaces = [ + graphiant_sdk.models.mana_v2_lan_segment_public_interface_entry.manaV2LanSegmentPublicInterfaceEntry( + interface_id = 1234567891011, + ipv4_addresses = [ + 'example string' + ], + name = 'example string', + storage_provider = 'ENUM_VALUE', ) + ] + ) + else: + return ManaV2LanSegmentPublicInterfacesLists( + ) + """ + + def testManaV2LanSegmentPublicInterfacesLists(self): + """Test ManaV2LanSegmentPublicInterfacesLists""" + # 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_public_vif_gateway_centralized_nat.py b/test/test_mana_v2_public_vif_gateway_centralized_nat.py new file mode 100644 index 00000000..265b0d80 --- /dev/null +++ b/test/test_mana_v2_public_vif_gateway_centralized_nat.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.mana_v2_public_vif_gateway_centralized_nat import ManaV2PublicVifGatewayCentralizedNat + +class TestManaV2PublicVifGatewayCentralizedNat(unittest.TestCase): + """ManaV2PublicVifGatewayCentralizedNat unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifGatewayCentralizedNat: + """Test ManaV2PublicVifGatewayCentralizedNat + 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 `ManaV2PublicVifGatewayCentralizedNat` + """ + model = ManaV2PublicVifGatewayCentralizedNat() + if include_optional: + return ManaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + } + ) + else: + return ManaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + }, + ) + """ + + def testManaV2PublicVifGatewayCentralizedNat(self): + """Test ManaV2PublicVifGatewayCentralizedNat""" + # 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_public_vif_gateway_consumer_lan_devices.py b/test/test_mana_v2_public_vif_gateway_consumer_lan_devices.py new file mode 100644 index 00000000..0c725c36 --- /dev/null +++ b/test/test_mana_v2_public_vif_gateway_consumer_lan_devices.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.mana_v2_public_vif_gateway_consumer_lan_devices import ManaV2PublicVifGatewayConsumerLanDevices + +class TestManaV2PublicVifGatewayConsumerLanDevices(unittest.TestCase): + """ManaV2PublicVifGatewayConsumerLanDevices unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifGatewayConsumerLanDevices: + """Test ManaV2PublicVifGatewayConsumerLanDevices + 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 `ManaV2PublicVifGatewayConsumerLanDevices` + """ + model = ManaV2PublicVifGatewayConsumerLanDevices() + if include_optional: + return ManaV2PublicVifGatewayConsumerLanDevices( + consumer_prefixes = [ + 'example string' + ] + ) + else: + return ManaV2PublicVifGatewayConsumerLanDevices( + ) + """ + + def testManaV2PublicVifGatewayConsumerLanDevices(self): + """Test ManaV2PublicVifGatewayConsumerLanDevices""" + # 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_public_vif_gateway_decentralized_prefixes.py b/test/test_mana_v2_public_vif_gateway_decentralized_prefixes.py new file mode 100644 index 00000000..1410ce48 --- /dev/null +++ b/test/test_mana_v2_public_vif_gateway_decentralized_prefixes.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.mana_v2_public_vif_gateway_decentralized_prefixes import ManaV2PublicVifGatewayDecentralizedPrefixes + +class TestManaV2PublicVifGatewayDecentralizedPrefixes(unittest.TestCase): + """ManaV2PublicVifGatewayDecentralizedPrefixes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifGatewayDecentralizedPrefixes: + """Test ManaV2PublicVifGatewayDecentralizedPrefixes + 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 `ManaV2PublicVifGatewayDecentralizedPrefixes` + """ + model = ManaV2PublicVifGatewayDecentralizedPrefixes() + if include_optional: + return ManaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + } + ) + else: + return ManaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + }, + ) + """ + + def testManaV2PublicVifGatewayDecentralizedPrefixes(self): + """Test ManaV2PublicVifGatewayDecentralizedPrefixes""" + # 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_public_vif_gateway_nat_prefix_strategy.py b/test/test_mana_v2_public_vif_gateway_nat_prefix_strategy.py new file mode 100644 index 00000000..82d1991d --- /dev/null +++ b/test/test_mana_v2_public_vif_gateway_nat_prefix_strategy.py @@ -0,0 +1,58 @@ +# 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_public_vif_gateway_nat_prefix_strategy import ManaV2PublicVifGatewayNatPrefixStrategy + +class TestManaV2PublicVifGatewayNatPrefixStrategy(unittest.TestCase): + """ManaV2PublicVifGatewayNatPrefixStrategy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifGatewayNatPrefixStrategy: + """Test ManaV2PublicVifGatewayNatPrefixStrategy + 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 `ManaV2PublicVifGatewayNatPrefixStrategy` + """ + model = ManaV2PublicVifGatewayNatPrefixStrategy() + if include_optional: + return ManaV2PublicVifGatewayNatPrefixStrategy( + centralized = graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat.manaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + }, ), + decentralized = graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes.manaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + }, ) + ) + else: + return ManaV2PublicVifGatewayNatPrefixStrategy( + ) + """ + + def testManaV2PublicVifGatewayNatPrefixStrategy(self): + """Test ManaV2PublicVifGatewayNatPrefixStrategy""" + # 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_public_vif_gateway_write_request.py b/test/test_mana_v2_public_vif_gateway_write_request.py new file mode 100644 index 00000000..2b8ad5b9 --- /dev/null +++ b/test/test_mana_v2_public_vif_gateway_write_request.py @@ -0,0 +1,170 @@ +# 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_public_vif_gateway_write_request import ManaV2PublicVifGatewayWriteRequest + +class TestManaV2PublicVifGatewayWriteRequest(unittest.TestCase): + """ManaV2PublicVifGatewayWriteRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifGatewayWriteRequest: + """Test ManaV2PublicVifGatewayWriteRequest + 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 `ManaV2PublicVifGatewayWriteRequest` + """ + model = ManaV2PublicVifGatewayWriteRequest() + if include_optional: + return ManaV2PublicVifGatewayWriteRequest( + advertisement = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], + sites = [ + 1234567891011 + ], ), + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices.manaV2PublicVifGatewayConsumerLanDevices( + consumer_prefixes = [ + 'example string' + ], ) + }, + covering_prefixes = [ + 'example string' + ], + gateway_bgp_neighbors = { + 'key' : graphiant_sdk.models.mana_v2_bgp_neighbor_config.manaV2BgpNeighborConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + allow_as_in = graphiant_sdk.models.mana_v2_nullable_allow_as_in.manaV2NullableAllowAsIn( + count = 123, ), + as_override = True, + bfd = graphiant_sdk.models.mana_v2_nullable_bfd_instance_config.manaV2NullableBfdInstanceConfig(), + default_originate = 'ENUM_VALUE', + ebgp_multihop_ttl = graphiant_sdk.models.mana_v2_nullable_ebgp_config.manaV2NullableEbgpConfig( + multi_hop = 123, ), + enabled = True, + hold_timer = 123, + hold_timer_value = graphiant_sdk.models.mana_v2_nullable_hold_timer.manaV2NullableHoldTimer( + timer = 123, ), + keepalive_timer = 123, + keepalive_timer_value = graphiant_sdk.models.mana_v2_nullable_keep_alive_timer.manaV2NullableKeepAliveTimer( + timer = 123, ), + local_address = 'example string', + local_interface = graphiant_sdk.models.mana_v2_nullable_interface_name.manaV2NullableInterfaceName( + interface = 'example string', ), + max_prefix_value = graphiant_sdk.models.mana_v2_nullable_max_prefix.manaV2NullableMaxPrefix( + max_prefix = 123, ), + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + remote_address = 'example string', + remove_private_as = True, + send_community = True, ) + }, + lan_segment_id = 1234567891011, + nat_prefix_strategy = graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy.manaV2PublicVifGatewayNatPrefixStrategy( + centralized = graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat.manaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + }, ), + decentralized = graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes.manaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + }, ), ), + region_id = 123, + service_name = 'example string', + storage_provider = 'ENUM_VALUE' + ) + else: + return ManaV2PublicVifGatewayWriteRequest( + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices.manaV2PublicVifGatewayConsumerLanDevices( + consumer_prefixes = [ + 'example string' + ], ) + }, + gateway_bgp_neighbors = { + 'key' : graphiant_sdk.models.mana_v2_bgp_neighbor_config.manaV2BgpNeighborConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + allow_as_in = graphiant_sdk.models.mana_v2_nullable_allow_as_in.manaV2NullableAllowAsIn( + count = 123, ), + as_override = True, + bfd = graphiant_sdk.models.mana_v2_nullable_bfd_instance_config.manaV2NullableBfdInstanceConfig(), + default_originate = 'ENUM_VALUE', + ebgp_multihop_ttl = graphiant_sdk.models.mana_v2_nullable_ebgp_config.manaV2NullableEbgpConfig( + multi_hop = 123, ), + enabled = True, + hold_timer = 123, + hold_timer_value = graphiant_sdk.models.mana_v2_nullable_hold_timer.manaV2NullableHoldTimer( + timer = 123, ), + keepalive_timer = 123, + keepalive_timer_value = graphiant_sdk.models.mana_v2_nullable_keep_alive_timer.manaV2NullableKeepAliveTimer( + timer = 123, ), + local_address = 'example string', + local_interface = graphiant_sdk.models.mana_v2_nullable_interface_name.manaV2NullableInterfaceName( + interface = 'example string', ), + max_prefix_value = graphiant_sdk.models.mana_v2_nullable_max_prefix.manaV2NullableMaxPrefix( + max_prefix = 123, ), + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + remote_address = 'example string', + remove_private_as = True, + send_community = True, ) + }, + lan_segment_id = 1234567891011, + nat_prefix_strategy = graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy.manaV2PublicVifGatewayNatPrefixStrategy( + centralized = graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat.manaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + }, ), + decentralized = graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes.manaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + }, ), ), + region_id = 123, + service_name = 'example string', + storage_provider = 'ENUM_VALUE', + ) + """ + + def testManaV2PublicVifGatewayWriteRequest(self): + """Test ManaV2PublicVifGatewayWriteRequest""" + # 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_zero_trust_consumption_summary.py b/test/test_mana_v2_zero_trust_consumption_summary.py new file mode 100644 index 00000000..0a3972e7 --- /dev/null +++ b/test/test_mana_v2_zero_trust_consumption_summary.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.mana_v2_zero_trust_consumption_summary import ManaV2ZeroTrustConsumptionSummary + +class TestManaV2ZeroTrustConsumptionSummary(unittest.TestCase): + """ManaV2ZeroTrustConsumptionSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ZeroTrustConsumptionSummary: + """Test ManaV2ZeroTrustConsumptionSummary + 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 `ManaV2ZeroTrustConsumptionSummary` + """ + model = ManaV2ZeroTrustConsumptionSummary() + if include_optional: + return ManaV2ZeroTrustConsumptionSummary( + user_agent_credits = 12.34 + ) + else: + return ManaV2ZeroTrustConsumptionSummary( + ) + """ + + def testManaV2ZeroTrustConsumptionSummary(self): + """Test ManaV2ZeroTrustConsumptionSummary""" + # 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_extranet_b2b_consumers_customer_id_get_response.py b/test/test_v1_extranet_b2b_consumers_customer_id_get_response.py new file mode 100644 index 00000000..6d6e05a9 --- /dev/null +++ b/test/test_v1_extranet_b2b_consumers_customer_id_get_response.py @@ -0,0 +1,291 @@ +# 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_extranet_b2b_consumers_customer_id_get_response import V1ExtranetB2bConsumersCustomerIdGetResponse + +class TestV1ExtranetB2bConsumersCustomerIdGetResponse(unittest.TestCase): + """V1ExtranetB2bConsumersCustomerIdGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bConsumersCustomerIdGetResponse: + """Test V1ExtranetB2bConsumersCustomerIdGetResponse + 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 `V1ExtranetB2bConsumersCustomerIdGetResponse` + """ + model = V1ExtranetB2bConsumersCustomerIdGetResponse() + if include_optional: + return V1ExtranetB2bConsumersCustomerIdGetResponse( + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + id = 1234567891011, + ipsec_tunnel_config = [ + graphiant_sdk.models.v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config.v1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig( + bgp_graphiant_asn = 123, + bgp_local_asn = 123, + bgp_neighbor_hold_time = 123, + bgp_neighbor_ipv4 = 'example string', + bgp_neighbor_ipv6 = 'example string', + dpd_interval = 123, + dpd_retries = 123, + graphiant_destination_ip = 'example string', + graphiant_ike_id = 'example string', + graphiant_outer_tunnel_ip = 'example string', + graphiant_tunnel_ip = 'example string', + graphiant_tunnel_ipv6 = 'example string', + ike_authentication_algorithm = 'example string', + ike_authentication_method = 'example string', + ike_dh_algorithm = 'example string', + ike_encryption_algorithm = 'example string', + ike_lifetime = 'example string', + ike_preshared_key = 'example string', + ike_version = 123, + ipsec_authentication_algorithm = 'example string', + ipsec_encryption_algorithm = 'example string', + ipsec_extended_sequence_number = True, + ipsec_lifetime = 'example string', + ipsec_mode = 'example string', + ipsec_pfs_algorithm = 'example string', + ipsec_protocol = 'example string', + local_ike_id = 'example string', + local_outer_tunnel_ip = 'example string', + local_tunnel_ip = 'example string', + local_tunnel_ipv6 = 'example string', + tcp_mss = 123, + tunnel_mtu = 123, ) + ], + match_details = graphiant_sdk.models.mana_v2_b2b_extranet_match_consumer_details.manaV2B2bExtranetMatchConsumerDetails( + consumer_id = 1234567891011, + consumer_prefixes = [ + 'example string' + ], + customer = graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_customer.manaV2B2BExtranetMatchConsumerDetailsCustomer( + admin_emails = [ + 'example string' + ], + company_name = 'example string', + id = 1234567891011, + num_sites = 123, ), + old_consumer_prefixes = [ + 'example string' + ], + old_service_prefixes = [ + graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_producer_prefix.manaV2B2BExtranetMatchConsumerDetailsProducerPrefix( + customer_translated_prefix = 'example string', + prefix = 'example string', + tag = 'example string', ) + ], + service = graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_service.manaV2B2BExtranetMatchConsumerDetailsService( + company_name = 'example string', + contact_email = [ + 'example string' + ], + description = 'example string', + id = 1234567891011, + service_name = 'example string', ), + service_prefixes = [ + graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_producer_prefix.manaV2B2BExtranetMatchConsumerDetailsProducerPrefix( + customer_translated_prefix = 'example string', + prefix = 'example string', + tag = 'example string', ) + ], ), + match_id = 1234567891011, + peer_type = 'ENUM_VALUE', + policy = graphiant_sdk.models.mana_v2_extranet_service_consumer_policy.manaV2ExtranetServiceConsumerPolicy( + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes.manaV2ExtranetConsumerLanPrefixes( + consumer_prefixes = [ + 'example string' + ], + service_prefix_dnat = { + 'key' : 'example string' + }, ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + site_to_site_vpn = graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config.manaV2GuestConsumerSiteToSiteVpnConfig( + emails = [ + 'example string' + ], + ipsec_gateway_details = graphiant_sdk.models.mana_v2_i_psec_gateway_details.manaV2IPsecGatewayDetails( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + routing = graphiant_sdk.models.mana_v2_ipsec_routing_config.manaV2IpsecRoutingConfig( + bgp = graphiant_sdk.models.mana_v2_i_psec_bgp_route_config.manaV2IPsecBgpRouteConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + hold_timer = 123, + keepalive_timer = 123, + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + send_community = True, ), + static = graphiant_sdk.models.mana_v2_i_psec_static_route_config.manaV2IPsecStaticRouteConfig( + destination_prefix = [ + 'example string' + ], ), ), + tcp_mss = 123, + tunnel1 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + tunnel2 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + vpn_profile = 'example string', ), + ipsec_gateway_peers = graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config.manaV2IPsecGatewayPeersConfig( + name = 'example string', + remote_peers = [ + graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer.manaV2IPsecGatewayRemotePeer( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + tcp_mss = 123, + vpn_profile = 'example string', ) + ], ), + region_id = 123, ), + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + site_to_site_vpn = graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config.manaV2GuestConsumerSiteToSiteVpnConfig( + emails = [ + 'example string' + ], + ipsec_gateway_details = graphiant_sdk.models.mana_v2_i_psec_gateway_details.manaV2IPsecGatewayDetails( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + routing = graphiant_sdk.models.mana_v2_ipsec_routing_config.manaV2IpsecRoutingConfig( + bgp = graphiant_sdk.models.mana_v2_i_psec_bgp_route_config.manaV2IPsecBgpRouteConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + hold_timer = 123, + keepalive_timer = 123, + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + send_community = True, ), + static = graphiant_sdk.models.mana_v2_i_psec_static_route_config.manaV2IPsecStaticRouteConfig( + destination_prefix = [ + 'example string' + ], ), ), + tcp_mss = 123, + tunnel1 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + tunnel2 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + vpn_profile = 'example string', ), + ipsec_gateway_peers = graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config.manaV2IPsecGatewayPeersConfig( + name = 'example string', + remote_peers = [ + graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer.manaV2IPsecGatewayRemotePeer( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + tcp_mss = 123, + vpn_profile = 'example string', ) + ], ), + region_id = 123, ), + status = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bConsumersCustomerIdGetResponse( + ) + """ + + def testV1ExtranetB2bConsumersCustomerIdGetResponse(self): + """Test V1ExtranetB2bConsumersCustomerIdGetResponse""" + # 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_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config.py b/test/test_v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config.py new file mode 100644 index 00000000..484a4cc2 --- /dev/null +++ b/test/test_v1_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config.py @@ -0,0 +1,82 @@ +# 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_extranet_b2b_consumers_customer_id_get_response_ipsec_vpn_tunnel_config import V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig + +class TestV1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig(unittest.TestCase): + """V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig: + """Test V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig + 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 `V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig` + """ + model = V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig() + if include_optional: + return V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig( + bgp_graphiant_asn = 123, + bgp_local_asn = 123, + bgp_neighbor_hold_time = 123, + bgp_neighbor_ipv4 = 'example string', + bgp_neighbor_ipv6 = 'example string', + dpd_interval = 123, + dpd_retries = 123, + graphiant_destination_ip = 'example string', + graphiant_ike_id = 'example string', + graphiant_outer_tunnel_ip = 'example string', + graphiant_tunnel_ip = 'example string', + graphiant_tunnel_ipv6 = 'example string', + ike_authentication_algorithm = 'example string', + ike_authentication_method = 'example string', + ike_dh_algorithm = 'example string', + ike_encryption_algorithm = 'example string', + ike_lifetime = 'example string', + ike_preshared_key = 'example string', + ike_version = 123, + ipsec_authentication_algorithm = 'example string', + ipsec_encryption_algorithm = 'example string', + ipsec_extended_sequence_number = True, + ipsec_lifetime = 'example string', + ipsec_mode = 'example string', + ipsec_pfs_algorithm = 'example string', + ipsec_protocol = 'example string', + local_ike_id = 'example string', + local_outer_tunnel_ip = 'example string', + local_tunnel_ip = 'example string', + local_tunnel_ipv6 = 'example string', + tcp_mss = 123, + tunnel_mtu = 123 + ) + else: + return V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig( + ) + """ + + def testV1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig(self): + """Test V1ExtranetB2bConsumersCustomerIdGetResponseIpsecVpnTunnelConfig""" + # 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_extranet_b2b_consumers_id_device_status_get_response.py b/test/test_v1_extranet_b2b_consumers_id_device_status_get_response.py new file mode 100644 index 00000000..93af6d69 --- /dev/null +++ b/test/test_v1_extranet_b2b_consumers_id_device_status_get_response.py @@ -0,0 +1,61 @@ +# 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_extranet_b2b_consumers_id_device_status_get_response import V1ExtranetB2bConsumersIdDeviceStatusGetResponse + +class TestV1ExtranetB2bConsumersIdDeviceStatusGetResponse(unittest.TestCase): + """V1ExtranetB2bConsumersIdDeviceStatusGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bConsumersIdDeviceStatusGetResponse: + """Test V1ExtranetB2bConsumersIdDeviceStatusGetResponse + 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 `V1ExtranetB2bConsumersIdDeviceStatusGetResponse` + """ + model = V1ExtranetB2bConsumersIdDeviceStatusGetResponse() + if include_optional: + return V1ExtranetB2bConsumersIdDeviceStatusGetResponse( + service_status = 'ENUM_VALUE', + summary = [ + graphiant_sdk.models.mana_v2_b2b_extranet_status_summary.manaV2B2bExtranetStatusSummary( + created_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + device_id = 1234567891011, + device_status = 'ENUM_VALUE', + location = 1234567891011, + status = 'ENUM_VALUE', ) + ] + ) + else: + return V1ExtranetB2bConsumersIdDeviceStatusGetResponse( + ) + """ + + def testV1ExtranetB2bConsumersIdDeviceStatusGetResponse(self): + """Test V1ExtranetB2bConsumersIdDeviceStatusGetResponse""" + # 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_extranet_b2b_consumers_id_prefixes_put_request.py b/test/test_v1_extranet_b2b_consumers_id_prefixes_put_request.py new file mode 100644 index 00000000..74296bf5 --- /dev/null +++ b/test/test_v1_extranet_b2b_consumers_id_prefixes_put_request.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_extranet_b2b_consumers_id_prefixes_put_request import V1ExtranetB2bConsumersIdPrefixesPutRequest + +class TestV1ExtranetB2bConsumersIdPrefixesPutRequest(unittest.TestCase): + """V1ExtranetB2bConsumersIdPrefixesPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bConsumersIdPrefixesPutRequest: + """Test V1ExtranetB2bConsumersIdPrefixesPutRequest + 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 `V1ExtranetB2bConsumersIdPrefixesPutRequest` + """ + model = V1ExtranetB2bConsumersIdPrefixesPutRequest() + if include_optional: + return V1ExtranetB2bConsumersIdPrefixesPutRequest( + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ) + ) + else: + return V1ExtranetB2bConsumersIdPrefixesPutRequest( + ) + """ + + def testV1ExtranetB2bConsumersIdPrefixesPutRequest(self): + """Test V1ExtranetB2bConsumersIdPrefixesPutRequest""" + # 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_extranet_b2b_consumers_id_prefixes_put_response.py b/test/test_v1_extranet_b2b_consumers_id_prefixes_put_response.py new file mode 100644 index 00000000..27b91d65 --- /dev/null +++ b/test/test_v1_extranet_b2b_consumers_id_prefixes_put_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_extranet_b2b_consumers_id_prefixes_put_response import V1ExtranetB2bConsumersIdPrefixesPutResponse + +class TestV1ExtranetB2bConsumersIdPrefixesPutResponse(unittest.TestCase): + """V1ExtranetB2bConsumersIdPrefixesPutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bConsumersIdPrefixesPutResponse: + """Test V1ExtranetB2bConsumersIdPrefixesPutResponse + 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 `V1ExtranetB2bConsumersIdPrefixesPutResponse` + """ + model = V1ExtranetB2bConsumersIdPrefixesPutResponse() + if include_optional: + return V1ExtranetB2bConsumersIdPrefixesPutResponse( + consumer_activity_id = 'example string' + ) + else: + return V1ExtranetB2bConsumersIdPrefixesPutResponse( + ) + """ + + def testV1ExtranetB2bConsumersIdPrefixesPutResponse(self): + """Test V1ExtranetB2bConsumersIdPrefixesPutResponse""" + # 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_extranet_b2b_consumers_id_put_request.py b/test/test_v1_extranet_b2b_consumers_id_put_request.py new file mode 100644 index 00000000..0d364ed0 --- /dev/null +++ b/test/test_v1_extranet_b2b_consumers_id_put_request.py @@ -0,0 +1,142 @@ +# 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_extranet_b2b_consumers_id_put_request import V1ExtranetB2bConsumersIdPutRequest + +class TestV1ExtranetB2bConsumersIdPutRequest(unittest.TestCase): + """V1ExtranetB2bConsumersIdPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bConsumersIdPutRequest: + """Test V1ExtranetB2bConsumersIdPutRequest + 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 `V1ExtranetB2bConsumersIdPutRequest` + """ + model = V1ExtranetB2bConsumersIdPutRequest() + if include_optional: + return V1ExtranetB2bConsumersIdPutRequest( + policy = graphiant_sdk.models.mana_v2_extranet_service_consumer_policy.manaV2ExtranetServiceConsumerPolicy( + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes.manaV2ExtranetConsumerLanPrefixes( + consumer_prefixes = [ + 'example string' + ], + service_prefix_dnat = { + 'key' : 'example string' + }, ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + site_to_site_vpn = graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config.manaV2GuestConsumerSiteToSiteVpnConfig( + emails = [ + 'example string' + ], + ipsec_gateway_details = graphiant_sdk.models.mana_v2_i_psec_gateway_details.manaV2IPsecGatewayDetails( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + routing = graphiant_sdk.models.mana_v2_ipsec_routing_config.manaV2IpsecRoutingConfig( + bgp = graphiant_sdk.models.mana_v2_i_psec_bgp_route_config.manaV2IPsecBgpRouteConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + hold_timer = 123, + keepalive_timer = 123, + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + send_community = True, ), + static = graphiant_sdk.models.mana_v2_i_psec_static_route_config.manaV2IPsecStaticRouteConfig( + destination_prefix = [ + 'example string' + ], ), ), + tcp_mss = 123, + tunnel1 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + tunnel2 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + vpn_profile = 'example string', ), + ipsec_gateway_peers = graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config.manaV2IPsecGatewayPeersConfig( + name = 'example string', + remote_peers = [ + graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer.manaV2IPsecGatewayRemotePeer( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + tcp_mss = 123, + vpn_profile = 'example string', ) + ], ), + region_id = 123, ), + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ) + ) + else: + return V1ExtranetB2bConsumersIdPutRequest( + ) + """ + + def testV1ExtranetB2bConsumersIdPutRequest(self): + """Test V1ExtranetB2bConsumersIdPutRequest""" + # 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_extranet_b2b_consumers_id_put_response.py b/test/test_v1_extranet_b2b_consumers_id_put_response.py new file mode 100644 index 00000000..5f417fc4 --- /dev/null +++ b/test/test_v1_extranet_b2b_consumers_id_put_response.py @@ -0,0 +1,143 @@ +# 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_extranet_b2b_consumers_id_put_response import V1ExtranetB2bConsumersIdPutResponse + +class TestV1ExtranetB2bConsumersIdPutResponse(unittest.TestCase): + """V1ExtranetB2bConsumersIdPutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bConsumersIdPutResponse: + """Test V1ExtranetB2bConsumersIdPutResponse + 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 `V1ExtranetB2bConsumersIdPutResponse` + """ + model = V1ExtranetB2bConsumersIdPutResponse() + if include_optional: + return V1ExtranetB2bConsumersIdPutResponse( + id = 1234567891011, + policy = graphiant_sdk.models.mana_v2_extranet_service_consumer_policy.manaV2ExtranetServiceConsumerPolicy( + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes.manaV2ExtranetConsumerLanPrefixes( + consumer_prefixes = [ + 'example string' + ], + service_prefix_dnat = { + 'key' : 'example string' + }, ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + site_to_site_vpn = graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config.manaV2GuestConsumerSiteToSiteVpnConfig( + emails = [ + 'example string' + ], + ipsec_gateway_details = graphiant_sdk.models.mana_v2_i_psec_gateway_details.manaV2IPsecGatewayDetails( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + routing = graphiant_sdk.models.mana_v2_ipsec_routing_config.manaV2IpsecRoutingConfig( + bgp = graphiant_sdk.models.mana_v2_i_psec_bgp_route_config.manaV2IPsecBgpRouteConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + hold_timer = 123, + keepalive_timer = 123, + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + send_community = True, ), + static = graphiant_sdk.models.mana_v2_i_psec_static_route_config.manaV2IPsecStaticRouteConfig( + destination_prefix = [ + 'example string' + ], ), ), + tcp_mss = 123, + tunnel1 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + tunnel2 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + vpn_profile = 'example string', ), + ipsec_gateway_peers = graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config.manaV2IPsecGatewayPeersConfig( + name = 'example string', + remote_peers = [ + graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer.manaV2IPsecGatewayRemotePeer( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + tcp_mss = 123, + vpn_profile = 'example string', ) + ], ), + region_id = 123, ), + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ) + ) + else: + return V1ExtranetB2bConsumersIdPutResponse( + ) + """ + + def testV1ExtranetB2bConsumersIdPutResponse(self): + """Test V1ExtranetB2bConsumersIdPutResponse""" + # 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_extranet_b2b_customers_id_delete_response.py b/test/test_v1_extranet_b2b_customers_id_delete_response.py new file mode 100644 index 00000000..28d98b00 --- /dev/null +++ b/test/test_v1_extranet_b2b_customers_id_delete_response.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.v1_extranet_b2b_customers_id_delete_response import V1ExtranetB2bCustomersIdDeleteResponse + +class TestV1ExtranetB2bCustomersIdDeleteResponse(unittest.TestCase): + """V1ExtranetB2bCustomersIdDeleteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bCustomersIdDeleteResponse: + """Test V1ExtranetB2bCustomersIdDeleteResponse + 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 `V1ExtranetB2bCustomersIdDeleteResponse` + """ + model = V1ExtranetB2bCustomersIdDeleteResponse() + if include_optional: + return V1ExtranetB2bCustomersIdDeleteResponse( + activity_id = 'example string', + consumer_activity_id = 'example string' + ) + else: + return V1ExtranetB2bCustomersIdDeleteResponse( + ) + """ + + def testV1ExtranetB2bCustomersIdDeleteResponse(self): + """Test V1ExtranetB2bCustomersIdDeleteResponse""" + # 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_extranet_b2b_customers_id_details_get_response.py b/test/test_v1_extranet_b2b_customers_id_details_get_response.py new file mode 100644 index 00000000..8cd9679c --- /dev/null +++ b/test/test_v1_extranet_b2b_customers_id_details_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_extranet_b2b_customers_id_details_get_response import V1ExtranetB2bCustomersIdDetailsGetResponse + +class TestV1ExtranetB2bCustomersIdDetailsGetResponse(unittest.TestCase): + """V1ExtranetB2bCustomersIdDetailsGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bCustomersIdDetailsGetResponse: + """Test V1ExtranetB2bCustomersIdDetailsGetResponse + 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 `V1ExtranetB2bCustomersIdDetailsGetResponse` + """ + model = V1ExtranetB2bCustomersIdDetailsGetResponse() + if include_optional: + return V1ExtranetB2bCustomersIdDetailsGetResponse( + admin_emails = [ + 'example string' + ], + name = 'example string', + num_sites = 123, + status = 'ENUM_VALUE', + type = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bCustomersIdDetailsGetResponse( + ) + """ + + def testV1ExtranetB2bCustomersIdDetailsGetResponse(self): + """Test V1ExtranetB2bCustomersIdDetailsGetResponse""" + # 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_extranet_b2b_customers_id_matches_summary_get_response.py b/test/test_v1_extranet_b2b_customers_id_matches_summary_get_response.py new file mode 100644 index 00000000..dd2271eb --- /dev/null +++ b/test/test_v1_extranet_b2b_customers_id_matches_summary_get_response.py @@ -0,0 +1,62 @@ +# 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_extranet_b2b_customers_id_matches_summary_get_response import V1ExtranetB2bCustomersIdMatchesSummaryGetResponse + +class TestV1ExtranetB2bCustomersIdMatchesSummaryGetResponse(unittest.TestCase): + """V1ExtranetB2bCustomersIdMatchesSummaryGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bCustomersIdMatchesSummaryGetResponse: + """Test V1ExtranetB2bCustomersIdMatchesSummaryGetResponse + 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 `V1ExtranetB2bCustomersIdMatchesSummaryGetResponse` + """ + model = V1ExtranetB2bCustomersIdMatchesSummaryGetResponse() + if include_optional: + return V1ExtranetB2bCustomersIdMatchesSummaryGetResponse( + matches = [ + graphiant_sdk.models.mana_v2_extranet_service_customer_match_summary.manaV2ExtranetServiceCustomerMatchSummary( + id = 1234567891011, + lan_segment = 1234567891011, + matched_customers = 123, + name = 'example string', + service_type = 'ENUM_VALUE', + status = 'ENUM_VALUE', + updated_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), ) + ] + ) + else: + return V1ExtranetB2bCustomersIdMatchesSummaryGetResponse( + ) + """ + + def testV1ExtranetB2bCustomersIdMatchesSummaryGetResponse(self): + """Test V1ExtranetB2bCustomersIdMatchesSummaryGetResponse""" + # 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_extranet_b2b_customers_id_put_request.py b/test/test_v1_extranet_b2b_customers_id_put_request.py new file mode 100644 index 00000000..b6ee2d58 --- /dev/null +++ b/test/test_v1_extranet_b2b_customers_id_put_request.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.v1_extranet_b2b_customers_id_put_request import V1ExtranetB2bCustomersIdPutRequest + +class TestV1ExtranetB2bCustomersIdPutRequest(unittest.TestCase): + """V1ExtranetB2bCustomersIdPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bCustomersIdPutRequest: + """Test V1ExtranetB2bCustomersIdPutRequest + 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 `V1ExtranetB2bCustomersIdPutRequest` + """ + model = V1ExtranetB2bCustomersIdPutRequest() + if include_optional: + return V1ExtranetB2bCustomersIdPutRequest( + invite = graphiant_sdk.models.mana_v2_extranet_service_customer_invite.manaV2ExtranetServiceCustomerInvite( + admin_emails = [ + 'example string' + ], + maximum_number_of_sites = 123, ) + ) + else: + return V1ExtranetB2bCustomersIdPutRequest( + ) + """ + + def testV1ExtranetB2bCustomersIdPutRequest(self): + """Test V1ExtranetB2bCustomersIdPutRequest""" + # 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_extranet_b2b_customers_id_put_response.py b/test/test_v1_extranet_b2b_customers_id_put_response.py new file mode 100644 index 00000000..ef015558 --- /dev/null +++ b/test/test_v1_extranet_b2b_customers_id_put_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.v1_extranet_b2b_customers_id_put_response import V1ExtranetB2bCustomersIdPutResponse + +class TestV1ExtranetB2bCustomersIdPutResponse(unittest.TestCase): + """V1ExtranetB2bCustomersIdPutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bCustomersIdPutResponse: + """Test V1ExtranetB2bCustomersIdPutResponse + 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 `V1ExtranetB2bCustomersIdPutResponse` + """ + model = V1ExtranetB2bCustomersIdPutResponse() + if include_optional: + return V1ExtranetB2bCustomersIdPutResponse( + invite = graphiant_sdk.models.mana_v2_extranet_service_customer_invite.manaV2ExtranetServiceCustomerInvite( + admin_emails = [ + 'example string' + ], + maximum_number_of_sites = 123, ) + ) + else: + return V1ExtranetB2bCustomersIdPutResponse( + ) + """ + + def testV1ExtranetB2bCustomersIdPutResponse(self): + """Test V1ExtranetB2bCustomersIdPutResponse""" + # 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_extranet_b2b_customers_post_request.py b/test/test_v1_extranet_b2b_customers_post_request.py new file mode 100644 index 00000000..9353df49 --- /dev/null +++ b/test/test_v1_extranet_b2b_customers_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_extranet_b2b_customers_post_request import V1ExtranetB2bCustomersPostRequest + +class TestV1ExtranetB2bCustomersPostRequest(unittest.TestCase): + """V1ExtranetB2bCustomersPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bCustomersPostRequest: + """Test V1ExtranetB2bCustomersPostRequest + 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 `V1ExtranetB2bCustomersPostRequest` + """ + model = V1ExtranetB2bCustomersPostRequest() + if include_optional: + return V1ExtranetB2bCustomersPostRequest( + invite = graphiant_sdk.models.mana_v2_extranet_service_customer_invite.manaV2ExtranetServiceCustomerInvite( + admin_emails = [ + 'example string' + ], + maximum_number_of_sites = 123, ), + name = 'example string', + type = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bCustomersPostRequest( + invite = graphiant_sdk.models.mana_v2_extranet_service_customer_invite.manaV2ExtranetServiceCustomerInvite( + admin_emails = [ + 'example string' + ], + maximum_number_of_sites = 123, ), + name = 'example string', + type = 'ENUM_VALUE', + ) + """ + + def testV1ExtranetB2bCustomersPostRequest(self): + """Test V1ExtranetB2bCustomersPostRequest""" + # 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_extranet_b2b_customers_post_response.py b/test/test_v1_extranet_b2b_customers_post_response.py new file mode 100644 index 00000000..0f69f174 --- /dev/null +++ b/test/test_v1_extranet_b2b_customers_post_response.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_extranet_b2b_customers_post_response import V1ExtranetB2bCustomersPostResponse + +class TestV1ExtranetB2bCustomersPostResponse(unittest.TestCase): + """V1ExtranetB2bCustomersPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bCustomersPostResponse: + """Test V1ExtranetB2bCustomersPostResponse + 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 `V1ExtranetB2bCustomersPostResponse` + """ + model = V1ExtranetB2bCustomersPostResponse() + if include_optional: + return V1ExtranetB2bCustomersPostResponse( + id = 1234567891011, + invite = graphiant_sdk.models.mana_v2_extranet_service_customer_invite.manaV2ExtranetServiceCustomerInvite( + admin_emails = [ + 'example string' + ], + maximum_number_of_sites = 123, ) + ) + else: + return V1ExtranetB2bCustomersPostResponse( + ) + """ + + def testV1ExtranetB2bCustomersPostResponse(self): + """Test V1ExtranetB2bCustomersPostResponse""" + # 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_extranet_b2b_customers_summary_get_response.py b/test/test_v1_extranet_b2b_customers_summary_get_response.py new file mode 100644 index 00000000..61d7bc1f --- /dev/null +++ b/test/test_v1_extranet_b2b_customers_summary_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_extranet_b2b_customers_summary_get_response import V1ExtranetB2bCustomersSummaryGetResponse + +class TestV1ExtranetB2bCustomersSummaryGetResponse(unittest.TestCase): + """V1ExtranetB2bCustomersSummaryGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bCustomersSummaryGetResponse: + """Test V1ExtranetB2bCustomersSummaryGetResponse + 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 `V1ExtranetB2bCustomersSummaryGetResponse` + """ + model = V1ExtranetB2bCustomersSummaryGetResponse() + if include_optional: + return V1ExtranetB2bCustomersSummaryGetResponse( + customers = [ + graphiant_sdk.models.mana_v2_extranet_service_customer_summary.manaV2ExtranetServiceCustomerSummary( + admin_emails = [ + 'example string' + ], + id = 1234567891011, + matched_services = 123, + name = 'example string', + status = 'ENUM_VALUE', + type = 'ENUM_VALUE', + updated_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), ) + ] + ) + else: + return V1ExtranetB2bCustomersSummaryGetResponse( + ) + """ + + def testV1ExtranetB2bCustomersSummaryGetResponse(self): + """Test V1ExtranetB2bCustomersSummaryGetResponse""" + # 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_extranet_b2b_matches_customers_post_request.py b/test/test_v1_extranet_b2b_matches_customers_post_request.py new file mode 100644 index 00000000..4b612f0b --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_customers_post_request.py @@ -0,0 +1,66 @@ +# 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_extranet_b2b_matches_customers_post_request import V1ExtranetB2bMatchesCustomersPostRequest + +class TestV1ExtranetB2bMatchesCustomersPostRequest(unittest.TestCase): + """V1ExtranetB2bMatchesCustomersPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesCustomersPostRequest: + """Test V1ExtranetB2bMatchesCustomersPostRequest + 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 `V1ExtranetB2bMatchesCustomersPostRequest` + """ + model = V1ExtranetB2bMatchesCustomersPostRequest() + if include_optional: + return V1ExtranetB2bMatchesCustomersPostRequest( + customers = [ + graphiant_sdk.models.mana_v2_extranet_service_producer_customer.manaV2ExtranetServiceProducerCustomer( + admin_emails = [ + 'example string' + ], + customer_id = 'example string', + match_id = 1234567891011, + matched_services = 123, + name = 'example string', + status = 'ENUM_VALUE', + type = 'ENUM_VALUE', + updated_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), ) + ], + service_id = 1234567891011 + ) + else: + return V1ExtranetB2bMatchesCustomersPostRequest( + ) + """ + + def testV1ExtranetB2bMatchesCustomersPostRequest(self): + """Test V1ExtranetB2bMatchesCustomersPostRequest""" + # 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_extranet_b2b_matches_customers_post_response.py b/test/test_v1_extranet_b2b_matches_customers_post_response.py new file mode 100644 index 00000000..3a35b5f9 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_customers_post_response.py @@ -0,0 +1,65 @@ +# 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_extranet_b2b_matches_customers_post_response import V1ExtranetB2bMatchesCustomersPostResponse + +class TestV1ExtranetB2bMatchesCustomersPostResponse(unittest.TestCase): + """V1ExtranetB2bMatchesCustomersPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesCustomersPostResponse: + """Test V1ExtranetB2bMatchesCustomersPostResponse + 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 `V1ExtranetB2bMatchesCustomersPostResponse` + """ + model = V1ExtranetB2bMatchesCustomersPostResponse() + if include_optional: + return V1ExtranetB2bMatchesCustomersPostResponse( + customers = [ + graphiant_sdk.models.mana_v2_extranet_service_producer_customer.manaV2ExtranetServiceProducerCustomer( + admin_emails = [ + 'example string' + ], + customer_id = 'example string', + match_id = 1234567891011, + matched_services = 123, + name = 'example string', + status = 'ENUM_VALUE', + type = 'ENUM_VALUE', + updated_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), ) + ] + ) + else: + return V1ExtranetB2bMatchesCustomersPostResponse( + ) + """ + + def testV1ExtranetB2bMatchesCustomersPostResponse(self): + """Test V1ExtranetB2bMatchesCustomersPostResponse""" + # 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_extranet_b2b_matches_match_id_consumer_check_post_request.py b/test/test_v1_extranet_b2b_matches_match_id_consumer_check_post_request.py new file mode 100644 index 00000000..251dfc56 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_match_id_consumer_check_post_request.py @@ -0,0 +1,143 @@ +# 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_extranet_b2b_matches_match_id_consumer_check_post_request import V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest + +class TestV1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest(unittest.TestCase): + """V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest: + """Test V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest + 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 `V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest` + """ + model = V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest() + if include_optional: + return V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest( + policy = graphiant_sdk.models.mana_v2_extranet_service_consumer_policy.manaV2ExtranetServiceConsumerPolicy( + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes.manaV2ExtranetConsumerLanPrefixes( + consumer_prefixes = [ + 'example string' + ], + service_prefix_dnat = { + 'key' : 'example string' + }, ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + site_to_site_vpn = graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config.manaV2GuestConsumerSiteToSiteVpnConfig( + emails = [ + 'example string' + ], + ipsec_gateway_details = graphiant_sdk.models.mana_v2_i_psec_gateway_details.manaV2IPsecGatewayDetails( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + routing = graphiant_sdk.models.mana_v2_ipsec_routing_config.manaV2IpsecRoutingConfig( + bgp = graphiant_sdk.models.mana_v2_i_psec_bgp_route_config.manaV2IPsecBgpRouteConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + hold_timer = 123, + keepalive_timer = 123, + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + send_community = True, ), + static = graphiant_sdk.models.mana_v2_i_psec_static_route_config.manaV2IPsecStaticRouteConfig( + destination_prefix = [ + 'example string' + ], ), ), + tcp_mss = 123, + tunnel1 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + tunnel2 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + vpn_profile = 'example string', ), + ipsec_gateway_peers = graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config.manaV2IPsecGatewayPeersConfig( + name = 'example string', + remote_peers = [ + graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer.manaV2IPsecGatewayRemotePeer( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + tcp_mss = 123, + vpn_profile = 'example string', ) + ], ), + region_id = 123, ), + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + service_id = 1234567891011 + ) + else: + return V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest( + ) + """ + + def testV1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest(self): + """Test V1ExtranetB2bMatchesMatchIdConsumerCheckPostRequest""" + # 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_extranet_b2b_matches_match_id_consumer_check_post_response.py b/test/test_v1_extranet_b2b_matches_match_id_consumer_check_post_response.py new file mode 100644 index 00000000..d79362e6 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_match_id_consumer_check_post_response.py @@ -0,0 +1,144 @@ +# 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_extranet_b2b_matches_match_id_consumer_check_post_response import V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse + +class TestV1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse(unittest.TestCase): + """V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse: + """Test V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse + 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 `V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse` + """ + model = V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse() + if include_optional: + return V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse( + consumer_activity_id = 'example string', + id = 1234567891011, + policy = graphiant_sdk.models.mana_v2_extranet_service_consumer_policy.manaV2ExtranetServiceConsumerPolicy( + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes.manaV2ExtranetConsumerLanPrefixes( + consumer_prefixes = [ + 'example string' + ], + service_prefix_dnat = { + 'key' : 'example string' + }, ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + site_to_site_vpn = graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config.manaV2GuestConsumerSiteToSiteVpnConfig( + emails = [ + 'example string' + ], + ipsec_gateway_details = graphiant_sdk.models.mana_v2_i_psec_gateway_details.manaV2IPsecGatewayDetails( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + routing = graphiant_sdk.models.mana_v2_ipsec_routing_config.manaV2IpsecRoutingConfig( + bgp = graphiant_sdk.models.mana_v2_i_psec_bgp_route_config.manaV2IPsecBgpRouteConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + hold_timer = 123, + keepalive_timer = 123, + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + send_community = True, ), + static = graphiant_sdk.models.mana_v2_i_psec_static_route_config.manaV2IPsecStaticRouteConfig( + destination_prefix = [ + 'example string' + ], ), ), + tcp_mss = 123, + tunnel1 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + tunnel2 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + vpn_profile = 'example string', ), + ipsec_gateway_peers = graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config.manaV2IPsecGatewayPeersConfig( + name = 'example string', + remote_peers = [ + graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer.manaV2IPsecGatewayRemotePeer( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + tcp_mss = 123, + vpn_profile = 'example string', ) + ], ), + region_id = 123, ), + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ) + ) + else: + return V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse( + ) + """ + + def testV1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse(self): + """Test V1ExtranetB2bMatchesMatchIdConsumerCheckPostResponse""" + # 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_extranet_b2b_matches_match_id_consumer_post_request.py b/test/test_v1_extranet_b2b_matches_match_id_consumer_post_request.py new file mode 100644 index 00000000..84f49f15 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_match_id_consumer_post_request.py @@ -0,0 +1,143 @@ +# 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_extranet_b2b_matches_match_id_consumer_post_request import V1ExtranetB2bMatchesMatchIdConsumerPostRequest + +class TestV1ExtranetB2bMatchesMatchIdConsumerPostRequest(unittest.TestCase): + """V1ExtranetB2bMatchesMatchIdConsumerPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesMatchIdConsumerPostRequest: + """Test V1ExtranetB2bMatchesMatchIdConsumerPostRequest + 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 `V1ExtranetB2bMatchesMatchIdConsumerPostRequest` + """ + model = V1ExtranetB2bMatchesMatchIdConsumerPostRequest() + if include_optional: + return V1ExtranetB2bMatchesMatchIdConsumerPostRequest( + policy = graphiant_sdk.models.mana_v2_extranet_service_consumer_policy.manaV2ExtranetServiceConsumerPolicy( + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes.manaV2ExtranetConsumerLanPrefixes( + consumer_prefixes = [ + 'example string' + ], + service_prefix_dnat = { + 'key' : 'example string' + }, ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + site_to_site_vpn = graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config.manaV2GuestConsumerSiteToSiteVpnConfig( + emails = [ + 'example string' + ], + ipsec_gateway_details = graphiant_sdk.models.mana_v2_i_psec_gateway_details.manaV2IPsecGatewayDetails( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + routing = graphiant_sdk.models.mana_v2_ipsec_routing_config.manaV2IpsecRoutingConfig( + bgp = graphiant_sdk.models.mana_v2_i_psec_bgp_route_config.manaV2IPsecBgpRouteConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + hold_timer = 123, + keepalive_timer = 123, + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + send_community = True, ), + static = graphiant_sdk.models.mana_v2_i_psec_static_route_config.manaV2IPsecStaticRouteConfig( + destination_prefix = [ + 'example string' + ], ), ), + tcp_mss = 123, + tunnel1 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + tunnel2 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + vpn_profile = 'example string', ), + ipsec_gateway_peers = graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config.manaV2IPsecGatewayPeersConfig( + name = 'example string', + remote_peers = [ + graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer.manaV2IPsecGatewayRemotePeer( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + tcp_mss = 123, + vpn_profile = 'example string', ) + ], ), + region_id = 123, ), + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + service_id = 1234567891011 + ) + else: + return V1ExtranetB2bMatchesMatchIdConsumerPostRequest( + ) + """ + + def testV1ExtranetB2bMatchesMatchIdConsumerPostRequest(self): + """Test V1ExtranetB2bMatchesMatchIdConsumerPostRequest""" + # 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_extranet_b2b_matches_match_id_consumer_post_response.py b/test/test_v1_extranet_b2b_matches_match_id_consumer_post_response.py new file mode 100644 index 00000000..8c53a625 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_match_id_consumer_post_response.py @@ -0,0 +1,144 @@ +# 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_extranet_b2b_matches_match_id_consumer_post_response import V1ExtranetB2bMatchesMatchIdConsumerPostResponse + +class TestV1ExtranetB2bMatchesMatchIdConsumerPostResponse(unittest.TestCase): + """V1ExtranetB2bMatchesMatchIdConsumerPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesMatchIdConsumerPostResponse: + """Test V1ExtranetB2bMatchesMatchIdConsumerPostResponse + 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 `V1ExtranetB2bMatchesMatchIdConsumerPostResponse` + """ + model = V1ExtranetB2bMatchesMatchIdConsumerPostResponse() + if include_optional: + return V1ExtranetB2bMatchesMatchIdConsumerPostResponse( + consumer_activity_id = 'example string', + id = 1234567891011, + policy = graphiant_sdk.models.mana_v2_extranet_service_consumer_policy.manaV2ExtranetServiceConsumerPolicy( + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_extranet_consumer_lan_prefixes.manaV2ExtranetConsumerLanPrefixes( + consumer_prefixes = [ + 'example string' + ], + service_prefix_dnat = { + 'key' : 'example string' + }, ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + site_to_site_vpn = graphiant_sdk.models.mana_v2_guest_consumer_site_to_site_vpn_config.manaV2GuestConsumerSiteToSiteVpnConfig( + emails = [ + 'example string' + ], + ipsec_gateway_details = graphiant_sdk.models.mana_v2_i_psec_gateway_details.manaV2IPsecGatewayDetails( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + routing = graphiant_sdk.models.mana_v2_ipsec_routing_config.manaV2IpsecRoutingConfig( + bgp = graphiant_sdk.models.mana_v2_i_psec_bgp_route_config.manaV2IPsecBgpRouteConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + hold_timer = 123, + keepalive_timer = 123, + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + send_community = True, ), + static = graphiant_sdk.models.mana_v2_i_psec_static_route_config.manaV2IPsecStaticRouteConfig( + destination_prefix = [ + 'example string' + ], ), ), + tcp_mss = 123, + tunnel1 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + tunnel2 = graphiant_sdk.models.mana_v2_i_psec_gateway_tunnel_details.manaV2IPsecGatewayTunnelDetails( + inside_ipv4_cidr = 'example string', + inside_ipv6_cidr = 'example string', + local_ike_peer_identity = 'example string', + psk = 'example string', ), + vpn_profile = 'example string', ), + ipsec_gateway_peers = graphiant_sdk.models.mana_v2_i_psec_gateway_peers_config.manaV2IPsecGatewayPeersConfig( + name = 'example string', + remote_peers = [ + graphiant_sdk.models.mana_v2_i_psec_gateway_remote_peer.manaV2IPsecGatewayRemotePeer( + destination_address = 'example string', + ike_initiator = True, + mtu = 123, + name = 'example string', + remote_ike_peer_identity = 'example string', + tcp_mss = 123, + vpn_profile = 'example string', ) + ], ), + region_id = 123, ), + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ) + ) + else: + return V1ExtranetB2bMatchesMatchIdConsumerPostResponse( + ) + """ + + def testV1ExtranetB2bMatchesMatchIdConsumerPostResponse(self): + """Test V1ExtranetB2bMatchesMatchIdConsumerPostResponse""" + # 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_extranet_b2b_matches_match_id_delete_response.py b/test/test_v1_extranet_b2b_matches_match_id_delete_response.py new file mode 100644 index 00000000..6672f640 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_match_id_delete_response.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.v1_extranet_b2b_matches_match_id_delete_response import V1ExtranetB2bMatchesMatchIdDeleteResponse + +class TestV1ExtranetB2bMatchesMatchIdDeleteResponse(unittest.TestCase): + """V1ExtranetB2bMatchesMatchIdDeleteResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesMatchIdDeleteResponse: + """Test V1ExtranetB2bMatchesMatchIdDeleteResponse + 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 `V1ExtranetB2bMatchesMatchIdDeleteResponse` + """ + model = V1ExtranetB2bMatchesMatchIdDeleteResponse() + if include_optional: + return V1ExtranetB2bMatchesMatchIdDeleteResponse( + activity_id = 'example string', + consumer_activity_id = 'example string' + ) + else: + return V1ExtranetB2bMatchesMatchIdDeleteResponse( + ) + """ + + def testV1ExtranetB2bMatchesMatchIdDeleteResponse(self): + """Test V1ExtranetB2bMatchesMatchIdDeleteResponse""" + # 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_extranet_b2b_matches_match_id_details_get_response.py b/test/test_v1_extranet_b2b_matches_match_id_details_get_response.py new file mode 100644 index 00000000..e374ab69 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_match_id_details_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_extranet_b2b_matches_match_id_details_get_response import V1ExtranetB2bMatchesMatchIdDetailsGetResponse + +class TestV1ExtranetB2bMatchesMatchIdDetailsGetResponse(unittest.TestCase): + """V1ExtranetB2bMatchesMatchIdDetailsGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesMatchIdDetailsGetResponse: + """Test V1ExtranetB2bMatchesMatchIdDetailsGetResponse + 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 `V1ExtranetB2bMatchesMatchIdDetailsGetResponse` + """ + model = V1ExtranetB2bMatchesMatchIdDetailsGetResponse() + if include_optional: + return V1ExtranetB2bMatchesMatchIdDetailsGetResponse( + details = [ + graphiant_sdk.models.mana_v2_b2b_extranet_match_consumer_details.manaV2B2bExtranetMatchConsumerDetails( + consumer_id = 1234567891011, + consumer_prefixes = [ + 'example string' + ], + customer = graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_customer.manaV2B2BExtranetMatchConsumerDetailsCustomer( + admin_emails = [ + 'example string' + ], + company_name = 'example string', + id = 1234567891011, + num_sites = 123, ), + old_consumer_prefixes = [ + 'example string' + ], + old_service_prefixes = [ + graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_producer_prefix.manaV2B2BExtranetMatchConsumerDetailsProducerPrefix( + customer_translated_prefix = 'example string', + prefix = 'example string', + tag = 'example string', ) + ], + service = graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_service.manaV2B2BExtranetMatchConsumerDetailsService( + company_name = 'example string', + contact_email = [ + 'example string' + ], + description = 'example string', + id = 1234567891011, + service_name = 'example string', ), + service_prefixes = [ + graphiant_sdk.models.mana_v2_b2_b_extranet_match_consumer_details_producer_prefix.manaV2B2BExtranetMatchConsumerDetailsProducerPrefix( + customer_translated_prefix = 'example string', + prefix = 'example string', + tag = 'example string', ) + ], ) + ] + ) + else: + return V1ExtranetB2bMatchesMatchIdDetailsGetResponse( + ) + """ + + def testV1ExtranetB2bMatchesMatchIdDetailsGetResponse(self): + """Test V1ExtranetB2bMatchesMatchIdDetailsGetResponse""" + # 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_extranet_b2b_matches_match_id_get_response.py b/test/test_v1_extranet_b2b_matches_match_id_get_response.py new file mode 100644 index 00000000..2019c5d9 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_match_id_get_response.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_extranet_b2b_matches_match_id_get_response import V1ExtranetB2bMatchesMatchIdGetResponse + +class TestV1ExtranetB2bMatchesMatchIdGetResponse(unittest.TestCase): + """V1ExtranetB2bMatchesMatchIdGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesMatchIdGetResponse: + """Test V1ExtranetB2bMatchesMatchIdGetResponse + 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 `V1ExtranetB2bMatchesMatchIdGetResponse` + """ + model = V1ExtranetB2bMatchesMatchIdGetResponse() + if include_optional: + return V1ExtranetB2bMatchesMatchIdGetResponse( + customer_name = 'example string', + match = graphiant_sdk.models.mana_v2_b2b_extranet_match.manaV2B2bExtranetMatch( + consumer_prefixes = [ + 'example string' + ], + lan_segment = 1234567891011, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + num_customers = 123, + service_id = 1234567891011, + service_prefixes = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], ), + match_id = 1234567891011, + service_name = 'example string', + status = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bMatchesMatchIdGetResponse( + ) + """ + + def testV1ExtranetB2bMatchesMatchIdGetResponse(self): + """Test V1ExtranetB2bMatchesMatchIdGetResponse""" + # 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_extranet_b2b_matches_match_id_put_request.py b/test/test_v1_extranet_b2b_matches_match_id_put_request.py new file mode 100644 index 00000000..baf26cd3 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_match_id_put_request.py @@ -0,0 +1,69 @@ +# 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_extranet_b2b_matches_match_id_put_request import V1ExtranetB2bMatchesMatchIdPutRequest + +class TestV1ExtranetB2bMatchesMatchIdPutRequest(unittest.TestCase): + """V1ExtranetB2bMatchesMatchIdPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesMatchIdPutRequest: + """Test V1ExtranetB2bMatchesMatchIdPutRequest + 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 `V1ExtranetB2bMatchesMatchIdPutRequest` + """ + model = V1ExtranetB2bMatchesMatchIdPutRequest() + if include_optional: + return V1ExtranetB2bMatchesMatchIdPutRequest( + match = graphiant_sdk.models.mana_v2_b2b_extranet_match.manaV2B2bExtranetMatch( + consumer_prefixes = [ + 'example string' + ], + lan_segment = 1234567891011, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + num_customers = 123, + service_id = 1234567891011, + service_prefixes = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], ) + ) + else: + return V1ExtranetB2bMatchesMatchIdPutRequest( + ) + """ + + def testV1ExtranetB2bMatchesMatchIdPutRequest(self): + """Test V1ExtranetB2bMatchesMatchIdPutRequest""" + # 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_extranet_b2b_matches_match_id_put_response.py b/test/test_v1_extranet_b2b_matches_match_id_put_response.py new file mode 100644 index 00000000..f56b1bc7 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_match_id_put_response.py @@ -0,0 +1,70 @@ +# 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_extranet_b2b_matches_match_id_put_response import V1ExtranetB2bMatchesMatchIdPutResponse + +class TestV1ExtranetB2bMatchesMatchIdPutResponse(unittest.TestCase): + """V1ExtranetB2bMatchesMatchIdPutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesMatchIdPutResponse: + """Test V1ExtranetB2bMatchesMatchIdPutResponse + 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 `V1ExtranetB2bMatchesMatchIdPutResponse` + """ + model = V1ExtranetB2bMatchesMatchIdPutResponse() + if include_optional: + return V1ExtranetB2bMatchesMatchIdPutResponse( + activity_id = 'example string', + match = graphiant_sdk.models.mana_v2_b2b_extranet_match.manaV2B2bExtranetMatch( + consumer_prefixes = [ + 'example string' + ], + lan_segment = 1234567891011, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + num_customers = 123, + service_id = 1234567891011, + service_prefixes = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], ) + ) + else: + return V1ExtranetB2bMatchesMatchIdPutResponse( + ) + """ + + def testV1ExtranetB2bMatchesMatchIdPutResponse(self): + """Test V1ExtranetB2bMatchesMatchIdPutResponse""" + # 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_extranet_b2b_matches_match_id_status_put_request.py b/test/test_v1_extranet_b2b_matches_match_id_status_put_request.py new file mode 100644 index 00000000..9657b265 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_match_id_status_put_request.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_extranet_b2b_matches_match_id_status_put_request import V1ExtranetB2bMatchesMatchIdStatusPutRequest + +class TestV1ExtranetB2bMatchesMatchIdStatusPutRequest(unittest.TestCase): + """V1ExtranetB2bMatchesMatchIdStatusPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesMatchIdStatusPutRequest: + """Test V1ExtranetB2bMatchesMatchIdStatusPutRequest + 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 `V1ExtranetB2bMatchesMatchIdStatusPutRequest` + """ + model = V1ExtranetB2bMatchesMatchIdStatusPutRequest() + if include_optional: + return V1ExtranetB2bMatchesMatchIdStatusPutRequest( + status = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bMatchesMatchIdStatusPutRequest( + ) + """ + + def testV1ExtranetB2bMatchesMatchIdStatusPutRequest(self): + """Test V1ExtranetB2bMatchesMatchIdStatusPutRequest""" + # 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_extranet_b2b_matches_match_id_status_put_response.py b/test/test_v1_extranet_b2b_matches_match_id_status_put_response.py new file mode 100644 index 00000000..b7a2832d --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_match_id_status_put_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_extranet_b2b_matches_match_id_status_put_response import V1ExtranetB2bMatchesMatchIdStatusPutResponse + +class TestV1ExtranetB2bMatchesMatchIdStatusPutResponse(unittest.TestCase): + """V1ExtranetB2bMatchesMatchIdStatusPutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesMatchIdStatusPutResponse: + """Test V1ExtranetB2bMatchesMatchIdStatusPutResponse + 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 `V1ExtranetB2bMatchesMatchIdStatusPutResponse` + """ + model = V1ExtranetB2bMatchesMatchIdStatusPutResponse() + if include_optional: + return V1ExtranetB2bMatchesMatchIdStatusPutResponse( + status = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bMatchesMatchIdStatusPutResponse( + ) + """ + + def testV1ExtranetB2bMatchesMatchIdStatusPutResponse(self): + """Test V1ExtranetB2bMatchesMatchIdStatusPutResponse""" + # 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_extranet_b2b_matches_pause_put_request.py b/test/test_v1_extranet_b2b_matches_pause_put_request.py new file mode 100644 index 00000000..a3c0809d --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_pause_put_request.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.v1_extranet_b2b_matches_pause_put_request import V1ExtranetB2bMatchesPausePutRequest + +class TestV1ExtranetB2bMatchesPausePutRequest(unittest.TestCase): + """V1ExtranetB2bMatchesPausePutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesPausePutRequest: + """Test V1ExtranetB2bMatchesPausePutRequest + 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 `V1ExtranetB2bMatchesPausePutRequest` + """ + model = V1ExtranetB2bMatchesPausePutRequest() + if include_optional: + return V1ExtranetB2bMatchesPausePutRequest( + customer_id = 1234567891011, + status = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bMatchesPausePutRequest( + ) + """ + + def testV1ExtranetB2bMatchesPausePutRequest(self): + """Test V1ExtranetB2bMatchesPausePutRequest""" + # 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_extranet_b2b_matches_pause_put_response.py b/test/test_v1_extranet_b2b_matches_pause_put_response.py new file mode 100644 index 00000000..f2523a59 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_pause_put_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_extranet_b2b_matches_pause_put_response import V1ExtranetB2bMatchesPausePutResponse + +class TestV1ExtranetB2bMatchesPausePutResponse(unittest.TestCase): + """V1ExtranetB2bMatchesPausePutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesPausePutResponse: + """Test V1ExtranetB2bMatchesPausePutResponse + 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 `V1ExtranetB2bMatchesPausePutResponse` + """ + model = V1ExtranetB2bMatchesPausePutResponse() + if include_optional: + return V1ExtranetB2bMatchesPausePutResponse( + status = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bMatchesPausePutResponse( + ) + """ + + def testV1ExtranetB2bMatchesPausePutResponse(self): + """Test V1ExtranetB2bMatchesPausePutResponse""" + # 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_extranet_b2b_matches_post_request.py b/test/test_v1_extranet_b2b_matches_post_request.py new file mode 100644 index 00000000..0a8499f2 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_post_request.py @@ -0,0 +1,70 @@ +# 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_extranet_b2b_matches_post_request import V1ExtranetB2bMatchesPostRequest + +class TestV1ExtranetB2bMatchesPostRequest(unittest.TestCase): + """V1ExtranetB2bMatchesPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesPostRequest: + """Test V1ExtranetB2bMatchesPostRequest + 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 `V1ExtranetB2bMatchesPostRequest` + """ + model = V1ExtranetB2bMatchesPostRequest() + if include_optional: + return V1ExtranetB2bMatchesPostRequest( + customer_id = 1234567891011, + match = graphiant_sdk.models.mana_v2_b2b_extranet_match.manaV2B2bExtranetMatch( + consumer_prefixes = [ + 'example string' + ], + lan_segment = 1234567891011, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + num_customers = 123, + service_id = 1234567891011, + service_prefixes = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], ) + ) + else: + return V1ExtranetB2bMatchesPostRequest( + ) + """ + + def testV1ExtranetB2bMatchesPostRequest(self): + """Test V1ExtranetB2bMatchesPostRequest""" + # 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_extranet_b2b_matches_post_response.py b/test/test_v1_extranet_b2b_matches_post_response.py new file mode 100644 index 00000000..af0d7f93 --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_post_response.py @@ -0,0 +1,72 @@ +# 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_extranet_b2b_matches_post_response import V1ExtranetB2bMatchesPostResponse + +class TestV1ExtranetB2bMatchesPostResponse(unittest.TestCase): + """V1ExtranetB2bMatchesPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesPostResponse: + """Test V1ExtranetB2bMatchesPostResponse + 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 `V1ExtranetB2bMatchesPostResponse` + """ + model = V1ExtranetB2bMatchesPostResponse() + if include_optional: + return V1ExtranetB2bMatchesPostResponse( + match_id = 1234567891011, + matches = [ + graphiant_sdk.models.mana_v2_b2b_extranet_match.manaV2B2bExtranetMatch( + consumer_prefixes = [ + 'example string' + ], + lan_segment = 1234567891011, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + num_customers = 123, + service_id = 1234567891011, + service_prefixes = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], ) + ] + ) + else: + return V1ExtranetB2bMatchesPostResponse( + ) + """ + + def testV1ExtranetB2bMatchesPostResponse(self): + """Test V1ExtranetB2bMatchesPostResponse""" + # 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_extranet_b2b_matches_review_post_request.py b/test/test_v1_extranet_b2b_matches_review_post_request.py new file mode 100644 index 00000000..8169ce2f --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_review_post_request.py @@ -0,0 +1,70 @@ +# 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_extranet_b2b_matches_review_post_request import V1ExtranetB2bMatchesReviewPostRequest + +class TestV1ExtranetB2bMatchesReviewPostRequest(unittest.TestCase): + """V1ExtranetB2bMatchesReviewPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesReviewPostRequest: + """Test V1ExtranetB2bMatchesReviewPostRequest + 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 `V1ExtranetB2bMatchesReviewPostRequest` + """ + model = V1ExtranetB2bMatchesReviewPostRequest() + if include_optional: + return V1ExtranetB2bMatchesReviewPostRequest( + customer_id = 1234567891011, + match = graphiant_sdk.models.mana_v2_b2b_extranet_match.manaV2B2bExtranetMatch( + consumer_prefixes = [ + 'example string' + ], + lan_segment = 1234567891011, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + num_customers = 123, + service_id = 1234567891011, + service_prefixes = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], ) + ) + else: + return V1ExtranetB2bMatchesReviewPostRequest( + ) + """ + + def testV1ExtranetB2bMatchesReviewPostRequest(self): + """Test V1ExtranetB2bMatchesReviewPostRequest""" + # 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_extranet_b2b_matches_review_post_response.py b/test/test_v1_extranet_b2b_matches_review_post_response.py new file mode 100644 index 00000000..0d34b1aa --- /dev/null +++ b/test/test_v1_extranet_b2b_matches_review_post_response.py @@ -0,0 +1,72 @@ +# 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_extranet_b2b_matches_review_post_response import V1ExtranetB2bMatchesReviewPostResponse + +class TestV1ExtranetB2bMatchesReviewPostResponse(unittest.TestCase): + """V1ExtranetB2bMatchesReviewPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bMatchesReviewPostResponse: + """Test V1ExtranetB2bMatchesReviewPostResponse + 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 `V1ExtranetB2bMatchesReviewPostResponse` + """ + model = V1ExtranetB2bMatchesReviewPostResponse() + if include_optional: + return V1ExtranetB2bMatchesReviewPostResponse( + match_id = 1234567891011, + matches = [ + graphiant_sdk.models.mana_v2_b2b_extranet_match.manaV2B2bExtranetMatch( + consumer_prefixes = [ + 'example string' + ], + lan_segment = 1234567891011, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + num_customers = 123, + service_id = 1234567891011, + service_prefixes = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], ) + ] + ) + else: + return V1ExtranetB2bMatchesReviewPostResponse( + ) + """ + + def testV1ExtranetB2bMatchesReviewPostResponse(self): + """Test V1ExtranetB2bMatchesReviewPostResponse""" + # 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_extranet_b2b_producer_id_customers_get_response.py b/test/test_v1_extranet_b2b_producer_id_customers_get_response.py new file mode 100644 index 00000000..a92a957f --- /dev/null +++ b/test/test_v1_extranet_b2b_producer_id_customers_get_response.py @@ -0,0 +1,65 @@ +# 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_extranet_b2b_producer_id_customers_get_response import V1ExtranetB2bProducerIdCustomersGetResponse + +class TestV1ExtranetB2bProducerIdCustomersGetResponse(unittest.TestCase): + """V1ExtranetB2bProducerIdCustomersGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bProducerIdCustomersGetResponse: + """Test V1ExtranetB2bProducerIdCustomersGetResponse + 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 `V1ExtranetB2bProducerIdCustomersGetResponse` + """ + model = V1ExtranetB2bProducerIdCustomersGetResponse() + if include_optional: + return V1ExtranetB2bProducerIdCustomersGetResponse( + customers = [ + graphiant_sdk.models.mana_v2_extranet_service_producer_customer.manaV2ExtranetServiceProducerCustomer( + admin_emails = [ + 'example string' + ], + customer_id = 'example string', + match_id = 1234567891011, + matched_services = 123, + name = 'example string', + status = 'ENUM_VALUE', + type = 'ENUM_VALUE', + updated_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), ) + ] + ) + else: + return V1ExtranetB2bProducerIdCustomersGetResponse( + ) + """ + + def testV1ExtranetB2bProducerIdCustomersGetResponse(self): + """Test V1ExtranetB2bProducerIdCustomersGetResponse""" + # 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_extranet_b2b_producer_id_device_status_get_response.py b/test/test_v1_extranet_b2b_producer_id_device_status_get_response.py new file mode 100644 index 00000000..320f09b4 --- /dev/null +++ b/test/test_v1_extranet_b2b_producer_id_device_status_get_response.py @@ -0,0 +1,60 @@ +# 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_extranet_b2b_producer_id_device_status_get_response import V1ExtranetB2bProducerIdDeviceStatusGetResponse + +class TestV1ExtranetB2bProducerIdDeviceStatusGetResponse(unittest.TestCase): + """V1ExtranetB2bProducerIdDeviceStatusGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bProducerIdDeviceStatusGetResponse: + """Test V1ExtranetB2bProducerIdDeviceStatusGetResponse + 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 `V1ExtranetB2bProducerIdDeviceStatusGetResponse` + """ + model = V1ExtranetB2bProducerIdDeviceStatusGetResponse() + if include_optional: + return V1ExtranetB2bProducerIdDeviceStatusGetResponse( + summary = [ + graphiant_sdk.models.mana_v2_b2b_extranet_status_summary.manaV2B2bExtranetStatusSummary( + created_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + device_id = 1234567891011, + device_status = 'ENUM_VALUE', + location = 1234567891011, + status = 'ENUM_VALUE', ) + ] + ) + else: + return V1ExtranetB2bProducerIdDeviceStatusGetResponse( + ) + """ + + def testV1ExtranetB2bProducerIdDeviceStatusGetResponse(self): + """Test V1ExtranetB2bProducerIdDeviceStatusGetResponse""" + # 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_extranet_b2b_producer_id_get_response.py b/test/test_v1_extranet_b2b_producer_id_get_response.py new file mode 100644 index 00000000..32a20a59 --- /dev/null +++ b/test/test_v1_extranet_b2b_producer_id_get_response.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 + + +import unittest + +from graphiant_sdk.models.v1_extranet_b2b_producer_id_get_response import V1ExtranetB2bProducerIdGetResponse + +class TestV1ExtranetB2bProducerIdGetResponse(unittest.TestCase): + """V1ExtranetB2bProducerIdGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bProducerIdGetResponse: + """Test V1ExtranetB2bProducerIdGetResponse + 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 `V1ExtranetB2bProducerIdGetResponse` + """ + model = V1ExtranetB2bProducerIdGetResponse() + if include_optional: + return V1ExtranetB2bProducerIdGetResponse( + id = 1234567891011, + policy = graphiant_sdk.models.mana_v2_extranet_service_policy_response.manaV2ExtranetServicePolicyResponse( + policy = graphiant_sdk.models.mana_v2_extranet_service_producer_policy.manaV2ExtranetServiceProducerPolicy( + description = 'example string', + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + prefix_tags = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], + service_lan_segment = 1234567891011, + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + service_name = 'example string', + service_type = 'ENUM_VALUE', ), + status = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bProducerIdGetResponse( + ) + """ + + def testV1ExtranetB2bProducerIdGetResponse(self): + """Test V1ExtranetB2bProducerIdGetResponse""" + # 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_extranet_b2b_producer_id_put_request.py b/test/test_v1_extranet_b2b_producer_id_put_request.py new file mode 100644 index 00000000..5dcadcfc --- /dev/null +++ b/test/test_v1_extranet_b2b_producer_id_put_request.py @@ -0,0 +1,105 @@ +# 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_extranet_b2b_producer_id_put_request import V1ExtranetB2bProducerIdPutRequest + +class TestV1ExtranetB2bProducerIdPutRequest(unittest.TestCase): + """V1ExtranetB2bProducerIdPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bProducerIdPutRequest: + """Test V1ExtranetB2bProducerIdPutRequest + 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 `V1ExtranetB2bProducerIdPutRequest` + """ + model = V1ExtranetB2bProducerIdPutRequest() + if include_optional: + return V1ExtranetB2bProducerIdPutRequest( + policy = graphiant_sdk.models.mana_v2_extranet_service_producer_policy.manaV2ExtranetServiceProducerPolicy( + description = 'example string', + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + prefix_tags = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], + service_lan_segment = 1234567891011, + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ) + ) + else: + return V1ExtranetB2bProducerIdPutRequest( + ) + """ + + def testV1ExtranetB2bProducerIdPutRequest(self): + """Test V1ExtranetB2bProducerIdPutRequest""" + # 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_extranet_b2b_producer_id_put_response.py b/test/test_v1_extranet_b2b_producer_id_put_response.py new file mode 100644 index 00000000..6d35398e --- /dev/null +++ b/test/test_v1_extranet_b2b_producer_id_put_response.py @@ -0,0 +1,111 @@ +# 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_extranet_b2b_producer_id_put_response import V1ExtranetB2bProducerIdPutResponse + +class TestV1ExtranetB2bProducerIdPutResponse(unittest.TestCase): + """V1ExtranetB2bProducerIdPutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bProducerIdPutResponse: + """Test V1ExtranetB2bProducerIdPutResponse + 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 `V1ExtranetB2bProducerIdPutResponse` + """ + model = V1ExtranetB2bProducerIdPutResponse() + if include_optional: + return V1ExtranetB2bProducerIdPutResponse( + activity_id = 'example string', + consumer_activity_id = 'example string', + id = 1234567891011, + policy = graphiant_sdk.models.mana_v2_extranet_service_policy_response.manaV2ExtranetServicePolicyResponse( + policy = graphiant_sdk.models.mana_v2_extranet_service_producer_policy.manaV2ExtranetServiceProducerPolicy( + description = 'example string', + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + prefix_tags = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], + service_lan_segment = 1234567891011, + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + service_name = 'example string', + service_type = 'ENUM_VALUE', ) + ) + else: + return V1ExtranetB2bProducerIdPutResponse( + ) + """ + + def testV1ExtranetB2bProducerIdPutResponse(self): + """Test V1ExtranetB2bProducerIdPutResponse""" + # 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_extranet_b2b_producer_id_status_put_request.py b/test/test_v1_extranet_b2b_producer_id_status_put_request.py new file mode 100644 index 00000000..b507bbbf --- /dev/null +++ b/test/test_v1_extranet_b2b_producer_id_status_put_request.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_extranet_b2b_producer_id_status_put_request import V1ExtranetB2bProducerIdStatusPutRequest + +class TestV1ExtranetB2bProducerIdStatusPutRequest(unittest.TestCase): + """V1ExtranetB2bProducerIdStatusPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bProducerIdStatusPutRequest: + """Test V1ExtranetB2bProducerIdStatusPutRequest + 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 `V1ExtranetB2bProducerIdStatusPutRequest` + """ + model = V1ExtranetB2bProducerIdStatusPutRequest() + if include_optional: + return V1ExtranetB2bProducerIdStatusPutRequest( + status = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bProducerIdStatusPutRequest( + ) + """ + + def testV1ExtranetB2bProducerIdStatusPutRequest(self): + """Test V1ExtranetB2bProducerIdStatusPutRequest""" + # 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_extranet_b2b_producer_id_status_put_response.py b/test/test_v1_extranet_b2b_producer_id_status_put_response.py new file mode 100644 index 00000000..b935e0be --- /dev/null +++ b/test/test_v1_extranet_b2b_producer_id_status_put_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_extranet_b2b_producer_id_status_put_response import V1ExtranetB2bProducerIdStatusPutResponse + +class TestV1ExtranetB2bProducerIdStatusPutResponse(unittest.TestCase): + """V1ExtranetB2bProducerIdStatusPutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bProducerIdStatusPutResponse: + """Test V1ExtranetB2bProducerIdStatusPutResponse + 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 `V1ExtranetB2bProducerIdStatusPutResponse` + """ + model = V1ExtranetB2bProducerIdStatusPutResponse() + if include_optional: + return V1ExtranetB2bProducerIdStatusPutResponse( + status = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bProducerIdStatusPutResponse( + ) + """ + + def testV1ExtranetB2bProducerIdStatusPutResponse(self): + """Test V1ExtranetB2bProducerIdStatusPutResponse""" + # 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_extranet_b2b_producer_post_request.py b/test/test_v1_extranet_b2b_producer_post_request.py new file mode 100644 index 00000000..13a950d0 --- /dev/null +++ b/test/test_v1_extranet_b2b_producer_post_request.py @@ -0,0 +1,164 @@ +# 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_extranet_b2b_producer_post_request import V1ExtranetB2bProducerPostRequest + +class TestV1ExtranetB2bProducerPostRequest(unittest.TestCase): + """V1ExtranetB2bProducerPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bProducerPostRequest: + """Test V1ExtranetB2bProducerPostRequest + 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 `V1ExtranetB2bProducerPostRequest` + """ + model = V1ExtranetB2bProducerPostRequest() + if include_optional: + return V1ExtranetB2bProducerPostRequest( + policy = graphiant_sdk.models.mana_v2_extranet_service_producer_policy.manaV2ExtranetServiceProducerPolicy( + description = 'example string', + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + prefix_tags = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], + service_lan_segment = 1234567891011, + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + service_name = 'example string', + service_type = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bProducerPostRequest( + policy = graphiant_sdk.models.mana_v2_extranet_service_producer_policy.manaV2ExtranetServiceProducerPolicy( + description = 'example string', + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + prefix_tags = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], + service_lan_segment = 1234567891011, + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + service_name = 'example string', + service_type = 'ENUM_VALUE', + ) + """ + + def testV1ExtranetB2bProducerPostRequest(self): + """Test V1ExtranetB2bProducerPostRequest""" + # 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_extranet_b2b_producer_post_response.py b/test/test_v1_extranet_b2b_producer_post_response.py new file mode 100644 index 00000000..e77aa656 --- /dev/null +++ b/test/test_v1_extranet_b2b_producer_post_response.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 + + +import unittest + +from graphiant_sdk.models.v1_extranet_b2b_producer_post_response import V1ExtranetB2bProducerPostResponse + +class TestV1ExtranetB2bProducerPostResponse(unittest.TestCase): + """V1ExtranetB2bProducerPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bProducerPostResponse: + """Test V1ExtranetB2bProducerPostResponse + 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 `V1ExtranetB2bProducerPostResponse` + """ + model = V1ExtranetB2bProducerPostResponse() + if include_optional: + return V1ExtranetB2bProducerPostResponse( + activity_id = 'example string', + id = 1234567891011, + policy = graphiant_sdk.models.mana_v2_extranet_service_policy_response.manaV2ExtranetServicePolicyResponse( + policy = graphiant_sdk.models.mana_v2_extranet_service_producer_policy.manaV2ExtranetServiceProducerPolicy( + description = 'example string', + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + prefix_tags = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], + service_lan_segment = 1234567891011, + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + service_name = 'example string', + service_type = 'ENUM_VALUE', ) + ) + else: + return V1ExtranetB2bProducerPostResponse( + ) + """ + + def testV1ExtranetB2bProducerPostResponse(self): + """Test V1ExtranetB2bProducerPostResponse""" + # 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_extranet_b2b_producer_review_post_request.py b/test/test_v1_extranet_b2b_producer_review_post_request.py new file mode 100644 index 00000000..f4a7ef8a --- /dev/null +++ b/test/test_v1_extranet_b2b_producer_review_post_request.py @@ -0,0 +1,164 @@ +# 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_extranet_b2b_producer_review_post_request import V1ExtranetB2bProducerReviewPostRequest + +class TestV1ExtranetB2bProducerReviewPostRequest(unittest.TestCase): + """V1ExtranetB2bProducerReviewPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bProducerReviewPostRequest: + """Test V1ExtranetB2bProducerReviewPostRequest + 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 `V1ExtranetB2bProducerReviewPostRequest` + """ + model = V1ExtranetB2bProducerReviewPostRequest() + if include_optional: + return V1ExtranetB2bProducerReviewPostRequest( + policy = graphiant_sdk.models.mana_v2_extranet_service_producer_policy.manaV2ExtranetServiceProducerPolicy( + description = 'example string', + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + prefix_tags = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], + service_lan_segment = 1234567891011, + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + service_name = 'example string', + service_type = 'ENUM_VALUE' + ) + else: + return V1ExtranetB2bProducerReviewPostRequest( + policy = graphiant_sdk.models.mana_v2_extranet_service_producer_policy.manaV2ExtranetServiceProducerPolicy( + description = 'example string', + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + prefix_tags = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], + service_lan_segment = 1234567891011, + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + service_name = 'example string', + service_type = 'ENUM_VALUE', + ) + """ + + def testV1ExtranetB2bProducerReviewPostRequest(self): + """Test V1ExtranetB2bProducerReviewPostRequest""" + # 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_extranet_b2b_producer_review_post_response.py b/test/test_v1_extranet_b2b_producer_review_post_response.py new file mode 100644 index 00000000..5ae3557e --- /dev/null +++ b/test/test_v1_extranet_b2b_producer_review_post_response.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 + + +import unittest + +from graphiant_sdk.models.v1_extranet_b2b_producer_review_post_response import V1ExtranetB2bProducerReviewPostResponse + +class TestV1ExtranetB2bProducerReviewPostResponse(unittest.TestCase): + """V1ExtranetB2bProducerReviewPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bProducerReviewPostResponse: + """Test V1ExtranetB2bProducerReviewPostResponse + 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 `V1ExtranetB2bProducerReviewPostResponse` + """ + model = V1ExtranetB2bProducerReviewPostResponse() + if include_optional: + return V1ExtranetB2bProducerReviewPostResponse( + activity_id = 'example string', + id = 1234567891011, + policy = graphiant_sdk.models.mana_v2_extranet_service_policy_response.manaV2ExtranetServicePolicyResponse( + policy = graphiant_sdk.models.mana_v2_extranet_service_producer_policy.manaV2ExtranetServiceProducerPolicy( + description = 'example string', + global_object_device_summaries = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_summaries.manaV2GlobalObjectServiceSummaries( + routing_policies = [ + graphiant_sdk.models.mana_v2_global_object_summary.manaV2GlobalObjectSummary( + attach_point = 'ENUM_VALUE', + id = 1234567891011, + ip_version = 123, + name = 'example string', + num_attached_devices = 123, + num_attached_sites = 123, + num_failures = 123, + num_in_sync_devices = 123, + num_override_devices = 123, + num_policies = 123, + num_prefixes = 123, + num_rules = 123, + num_statements = 123, + traffic_policy_type = 'ENUM_VALUE', ) + ], ) + }, + global_object_ops = { + 'key' : graphiant_sdk.models.mana_v2_global_object_service_ops.manaV2GlobalObjectServiceOps( + routing_policy_ops = { + 'key' : 'ENUM_VALUE' + }, ) + }, + nat_translation_mode = graphiant_sdk.models.mana_v2_extranet_nat_translation_mode.manaV2ExtranetNatTranslationMode( + centralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_centralized.manaV2ExtranetNatTranslationCentralized( + prefixes = { + 'key' : graphiant_sdk.models.mana_v2_extranet_nat_translation_device_prefixes.manaV2ExtranetNatTranslationDevicePrefixes() + }, ), + decentralized = graphiant_sdk.models.mana_v2_extranet_nat_translation_decentralized.manaV2ExtranetNatTranslationDecentralized(), + peer_to_peer = graphiant_sdk.models.mana_v2_extranet_nat_translation_peer_to_peer.manaV2ExtranetNatTranslationPeerToPeer(), ), + prefix_tags = [ + graphiant_sdk.models.mana_v2_b2b_extranet_prefix_tag.manaV2B2bExtranetPrefixTag( + prefix = '10.1.2.0/24', + tag = 'example string', ) + ], + service_lan_segment = 1234567891011, + sites = [ + graphiant_sdk.models.mana_v2_b2b_site_information.manaV2B2bSiteInformation( + bw_allocation_site_lists = 123, + bw_allocation_sites = 123, + policer_site_lists = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + policer_sites = graphiant_sdk.models.mana_v2_policer.manaV2Policer( + burst_size = 123, + bw = 123, ), + site_lists = [ + 1234567891011 + ], ) + ], ), + service_name = 'example string', + service_type = 'ENUM_VALUE', ) + ) + else: + return V1ExtranetB2bProducerReviewPostResponse( + ) + """ + + def testV1ExtranetB2bProducerReviewPostResponse(self): + """Test V1ExtranetB2bProducerReviewPostResponse""" + # 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_extranet_b2b_services_summary_get_response.py b/test/test_v1_extranet_b2b_services_summary_get_response.py new file mode 100644 index 00000000..b7d81669 --- /dev/null +++ b/test/test_v1_extranet_b2b_services_summary_get_response.py @@ -0,0 +1,72 @@ +# 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_extranet_b2b_services_summary_get_response import V1ExtranetB2bServicesSummaryGetResponse + +class TestV1ExtranetB2bServicesSummaryGetResponse(unittest.TestCase): + """V1ExtranetB2bServicesSummaryGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetB2bServicesSummaryGetResponse: + """Test V1ExtranetB2bServicesSummaryGetResponse + 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 `V1ExtranetB2bServicesSummaryGetResponse` + """ + model = V1ExtranetB2bServicesSummaryGetResponse() + if include_optional: + return V1ExtranetB2bServicesSummaryGetResponse( + services = [ + graphiant_sdk.models.mana_v2_extranet_service_summary.manaV2ExtranetServiceSummary( + created_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + id = 1234567891011, + is_publisher = True, + lan_segment = 1234567891011, + last_updated = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + server_prefixes = [ + 'example string' + ], + service_name = 'example string', + service_type = 'ENUM_VALUE', + sites = [ + 1234567891011 + ], + status = 'ENUM_VALUE', + total_customers = 123, ) + ] + ) + else: + return V1ExtranetB2bServicesSummaryGetResponse( + ) + """ + + def testV1ExtranetB2bServicesSummaryGetResponse(self): + """Test V1ExtranetB2bServicesSummaryGetResponse""" + # 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_lan_segments_interfaces_public_get_response.py b/test/test_v1_lan_segments_interfaces_public_get_response.py new file mode 100644 index 00000000..1b388180 --- /dev/null +++ b/test/test_v1_lan_segments_interfaces_public_get_response.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.v1_lan_segments_interfaces_public_get_response import V1LanSegmentsInterfacesPublicGetResponse + +class TestV1LanSegmentsInterfacesPublicGetResponse(unittest.TestCase): + """V1LanSegmentsInterfacesPublicGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1LanSegmentsInterfacesPublicGetResponse: + """Test V1LanSegmentsInterfacesPublicGetResponse + 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 `V1LanSegmentsInterfacesPublicGetResponse` + """ + model = V1LanSegmentsInterfacesPublicGetResponse() + if include_optional: + return V1LanSegmentsInterfacesPublicGetResponse( + lan_segment_ids = { + 'key' : graphiant_sdk.models.mana_v2_lan_segment_public_interfaces_lists.manaV2LanSegmentPublicInterfacesLists( + private_interfaces = [ + graphiant_sdk.models.mana_v2_lan_segment_public_interface_entry.manaV2LanSegmentPublicInterfaceEntry( + interface_id = 1234567891011, + ipv4_addresses = [ + 'example string' + ], + name = 'example string', + storage_provider = 'ENUM_VALUE', ) + ], + public_interfaces = [ + graphiant_sdk.models.mana_v2_lan_segment_public_interface_entry.manaV2LanSegmentPublicInterfaceEntry( + interface_id = 1234567891011, + name = 'example string', + storage_provider = 'ENUM_VALUE', ) + ], ) + } + ) + else: + return V1LanSegmentsInterfacesPublicGetResponse( + ) + """ + + def testV1LanSegmentsInterfacesPublicGetResponse(self): + """Test V1LanSegmentsInterfacesPublicGetResponse""" + # 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_pvif_id_details_get_response.py b/test/test_v1_pvif_id_details_get_response.py new file mode 100644 index 00000000..e17f47e4 --- /dev/null +++ b/test/test_v1_pvif_id_details_get_response.py @@ -0,0 +1,146 @@ +# 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_pvif_id_details_get_response import V1PvifIdDetailsGetResponse + +class TestV1PvifIdDetailsGetResponse(unittest.TestCase): + """V1PvifIdDetailsGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1PvifIdDetailsGetResponse: + """Test V1PvifIdDetailsGetResponse + 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 `V1PvifIdDetailsGetResponse` + """ + model = V1PvifIdDetailsGetResponse() + if include_optional: + return V1PvifIdDetailsGetResponse( + advertise_all_sites = True, + advertisement = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], + sites = [ + 1234567891011 + ], ), + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices.manaV2PublicVifGatewayConsumerLanDevices( + consumer_prefixes = [ + 'example string' + ], ) + }, + covering_prefixes = [ + 'example string' + ], + gateway_bgp_neighbors = { + 'key' : graphiant_sdk.models.mana_v2_bgp_neighbor.manaV2BgpNeighbor( + address_families = [ + graphiant_sdk.models.mana_v2_bgp_neighbor_address_family.manaV2BgpNeighborAddressFamily( + address_family = 'ENUM_VALUE', + id = 1234567891011, + inbound_policy = 'example string', + outbound_policy = 'example string', ) + ], + allow_as_in = 123, + as_override = True, + bfd = graphiant_sdk.models.mana_v2_bfd_instance.manaV2BfdInstance( + enabled = True, + minimum_interval = 123, + multiplier = 123, ), + bfd_neighbor = graphiant_sdk.models.mana_v2_bfd_neighbor.manaV2BfdNeighbor( + desired_minimum_tx_interval = 123, + if_index = 123, + interface = 'example string', + last_updated = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + local_diag = 'ENUM_VALUE', + peer_address = 'example string', + remote_diag = 'ENUM_VALUE', + required_minimum_rx_interval = 123, + segment_name = 'example string', + source_address = 'example string', + state = 'ENUM_VALUE', + time_in_state = graphiant_sdk.models.google_protobuf_duration.googleProtobufDuration( + nanos = 123, + seconds = 1234567891011, ), + up = True, ), + bgp_type = 'ENUM_VALUE', + default_originate = 'ENUM_VALUE', + dynamic_neighbor_peers = [ + graphiant_sdk.models.mana_v2_bgp_dynamic_neighbor_oper_peer.manaV2BgpDynamicNeighborOperPeer( + last_oper_status_change = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + local_address = 'example string', + oper_status = True, + peer_asn = 123, + remote_address = 'example string', + state = 'ENUM_VALUE', ) + ], + enabled = True, + hold_timer = 123, + id = 1234567891011, + keepalive_timer = 123, + local_address = 'example string', + local_interface = 'example string', + max_prefix = 10000, + md5_password = 'example string', + multi_hop = 5, + peer_asn = 123, + remote_address = 'example string', + remove_private_as = True, + send_community = True, + state = 'ENUM_VALUE', + time_since_last_oper_change = graphiant_sdk.models.google_protobuf_duration.googleProtobufDuration( + nanos = 123, + seconds = 1234567891011, ), + up = True, ) + }, + id = 1234567891011, + lan_segment_id = 1234567891011, + nat_prefix_strategy = graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy.manaV2PublicVifGatewayNatPrefixStrategy( + centralized = graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat.manaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + }, ), + decentralized = graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes.manaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + }, ), ), + region_id = 123, + service_name = 'example string', + storage_provider = 'ENUM_VALUE' + ) + else: + return V1PvifIdDetailsGetResponse( + ) + """ + + def testV1PvifIdDetailsGetResponse(self): + """Test V1PvifIdDetailsGetResponse""" + # 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_pvif_id_put_request.py b/test/test_v1_pvif_id_put_request.py new file mode 100644 index 00000000..a881857a --- /dev/null +++ b/test/test_v1_pvif_id_put_request.py @@ -0,0 +1,182 @@ +# 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_pvif_id_put_request import V1PvifIdPutRequest + +class TestV1PvifIdPutRequest(unittest.TestCase): + """V1PvifIdPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1PvifIdPutRequest: + """Test V1PvifIdPutRequest + 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 `V1PvifIdPutRequest` + """ + model = V1PvifIdPutRequest() + if include_optional: + return V1PvifIdPutRequest( + configuration = graphiant_sdk.models.mana_v2_public_vif_gateway_write_request.manaV2PublicVifGatewayWriteRequest( + advertisement = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], + sites = [ + 1234567891011 + ], ), + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices.manaV2PublicVifGatewayConsumerLanDevices( + consumer_prefixes = [ + 'example string' + ], ) + }, + covering_prefixes = [ + 'example string' + ], + gateway_bgp_neighbors = { + 'key' : graphiant_sdk.models.mana_v2_bgp_neighbor_config.manaV2BgpNeighborConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + allow_as_in = graphiant_sdk.models.mana_v2_nullable_allow_as_in.manaV2NullableAllowAsIn( + count = 123, ), + as_override = True, + bfd = graphiant_sdk.models.mana_v2_nullable_bfd_instance_config.manaV2NullableBfdInstanceConfig(), + default_originate = 'ENUM_VALUE', + ebgp_multihop_ttl = graphiant_sdk.models.mana_v2_nullable_ebgp_config.manaV2NullableEbgpConfig( + multi_hop = 123, ), + enabled = True, + hold_timer = 123, + hold_timer_value = graphiant_sdk.models.mana_v2_nullable_hold_timer.manaV2NullableHoldTimer( + timer = 123, ), + keepalive_timer = 123, + keepalive_timer_value = graphiant_sdk.models.mana_v2_nullable_keep_alive_timer.manaV2NullableKeepAliveTimer( + timer = 123, ), + local_address = 'example string', + local_interface = graphiant_sdk.models.mana_v2_nullable_interface_name.manaV2NullableInterfaceName( + interface = 'example string', ), + max_prefix_value = graphiant_sdk.models.mana_v2_nullable_max_prefix.manaV2NullableMaxPrefix( + max_prefix = 123, ), + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + remote_address = 'example string', + remove_private_as = True, + send_community = True, ) + }, + lan_segment_id = 1234567891011, + nat_prefix_strategy = graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy.manaV2PublicVifGatewayNatPrefixStrategy( + centralized = graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat.manaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + }, ), + decentralized = graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes.manaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + }, ), ), + region_id = 123, + service_name = 'example string', + storage_provider = 'ENUM_VALUE', ) + ) + else: + return V1PvifIdPutRequest( + configuration = graphiant_sdk.models.mana_v2_public_vif_gateway_write_request.manaV2PublicVifGatewayWriteRequest( + advertisement = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], + sites = [ + 1234567891011 + ], ), + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices.manaV2PublicVifGatewayConsumerLanDevices( + consumer_prefixes = [ + 'example string' + ], ) + }, + covering_prefixes = [ + 'example string' + ], + gateway_bgp_neighbors = { + 'key' : graphiant_sdk.models.mana_v2_bgp_neighbor_config.manaV2BgpNeighborConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + allow_as_in = graphiant_sdk.models.mana_v2_nullable_allow_as_in.manaV2NullableAllowAsIn( + count = 123, ), + as_override = True, + bfd = graphiant_sdk.models.mana_v2_nullable_bfd_instance_config.manaV2NullableBfdInstanceConfig(), + default_originate = 'ENUM_VALUE', + ebgp_multihop_ttl = graphiant_sdk.models.mana_v2_nullable_ebgp_config.manaV2NullableEbgpConfig( + multi_hop = 123, ), + enabled = True, + hold_timer = 123, + hold_timer_value = graphiant_sdk.models.mana_v2_nullable_hold_timer.manaV2NullableHoldTimer( + timer = 123, ), + keepalive_timer = 123, + keepalive_timer_value = graphiant_sdk.models.mana_v2_nullable_keep_alive_timer.manaV2NullableKeepAliveTimer( + timer = 123, ), + local_address = 'example string', + local_interface = graphiant_sdk.models.mana_v2_nullable_interface_name.manaV2NullableInterfaceName( + interface = 'example string', ), + max_prefix_value = graphiant_sdk.models.mana_v2_nullable_max_prefix.manaV2NullableMaxPrefix( + max_prefix = 123, ), + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + remote_address = 'example string', + remove_private_as = True, + send_community = True, ) + }, + lan_segment_id = 1234567891011, + nat_prefix_strategy = graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy.manaV2PublicVifGatewayNatPrefixStrategy( + centralized = graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat.manaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + }, ), + decentralized = graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes.manaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + }, ), ), + region_id = 123, + service_name = 'example string', + storage_provider = 'ENUM_VALUE', ), + ) + """ + + def testV1PvifIdPutRequest(self): + """Test V1PvifIdPutRequest""" + # 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_pvif_id_put_response.py b/test/test_v1_pvif_id_put_response.py new file mode 100644 index 00000000..50272812 --- /dev/null +++ b/test/test_v1_pvif_id_put_response.py @@ -0,0 +1,146 @@ +# 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_pvif_id_put_response import V1PvifIdPutResponse + +class TestV1PvifIdPutResponse(unittest.TestCase): + """V1PvifIdPutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1PvifIdPutResponse: + """Test V1PvifIdPutResponse + 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 `V1PvifIdPutResponse` + """ + model = V1PvifIdPutResponse() + if include_optional: + return V1PvifIdPutResponse( + advertise_all_sites = True, + advertisement = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], + sites = [ + 1234567891011 + ], ), + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices.manaV2PublicVifGatewayConsumerLanDevices( + consumer_prefixes = [ + 'example string' + ], ) + }, + covering_prefixes = [ + 'example string' + ], + gateway_bgp_neighbors = { + 'key' : graphiant_sdk.models.mana_v2_bgp_neighbor.manaV2BgpNeighbor( + address_families = [ + graphiant_sdk.models.mana_v2_bgp_neighbor_address_family.manaV2BgpNeighborAddressFamily( + address_family = 'ENUM_VALUE', + id = 1234567891011, + inbound_policy = 'example string', + outbound_policy = 'example string', ) + ], + allow_as_in = 123, + as_override = True, + bfd = graphiant_sdk.models.mana_v2_bfd_instance.manaV2BfdInstance( + enabled = True, + minimum_interval = 123, + multiplier = 123, ), + bfd_neighbor = graphiant_sdk.models.mana_v2_bfd_neighbor.manaV2BfdNeighbor( + desired_minimum_tx_interval = 123, + if_index = 123, + interface = 'example string', + last_updated = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + local_diag = 'ENUM_VALUE', + peer_address = 'example string', + remote_diag = 'ENUM_VALUE', + required_minimum_rx_interval = 123, + segment_name = 'example string', + source_address = 'example string', + state = 'ENUM_VALUE', + time_in_state = graphiant_sdk.models.google_protobuf_duration.googleProtobufDuration( + nanos = 123, + seconds = 1234567891011, ), + up = True, ), + bgp_type = 'ENUM_VALUE', + default_originate = 'ENUM_VALUE', + dynamic_neighbor_peers = [ + graphiant_sdk.models.mana_v2_bgp_dynamic_neighbor_oper_peer.manaV2BgpDynamicNeighborOperPeer( + last_oper_status_change = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + local_address = 'example string', + oper_status = True, + peer_asn = 123, + remote_address = 'example string', + state = 'ENUM_VALUE', ) + ], + enabled = True, + hold_timer = 123, + id = 1234567891011, + keepalive_timer = 123, + local_address = 'example string', + local_interface = 'example string', + max_prefix = 10000, + md5_password = 'example string', + multi_hop = 5, + peer_asn = 123, + remote_address = 'example string', + remove_private_as = True, + send_community = True, + state = 'ENUM_VALUE', + time_since_last_oper_change = graphiant_sdk.models.google_protobuf_duration.googleProtobufDuration( + nanos = 123, + seconds = 1234567891011, ), + up = True, ) + }, + id = 1234567891011, + lan_segment_id = 1234567891011, + nat_prefix_strategy = graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy.manaV2PublicVifGatewayNatPrefixStrategy( + centralized = graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat.manaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + }, ), + decentralized = graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes.manaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + }, ), ), + region_id = 123, + service_name = 'example string', + storage_provider = 'ENUM_VALUE' + ) + else: + return V1PvifIdPutResponse( + ) + """ + + def testV1PvifIdPutResponse(self): + """Test V1PvifIdPutResponse""" + # 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_pvif_post_request.py b/test/test_v1_pvif_post_request.py new file mode 100644 index 00000000..2f132803 --- /dev/null +++ b/test/test_v1_pvif_post_request.py @@ -0,0 +1,170 @@ +# 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_pvif_post_request import V1PvifPostRequest + +class TestV1PvifPostRequest(unittest.TestCase): + """V1PvifPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1PvifPostRequest: + """Test V1PvifPostRequest + 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 `V1PvifPostRequest` + """ + model = V1PvifPostRequest() + if include_optional: + return V1PvifPostRequest( + advertisement = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], + sites = [ + 1234567891011 + ], ), + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices.manaV2PublicVifGatewayConsumerLanDevices( + consumer_prefixes = [ + 'example string' + ], ) + }, + covering_prefixes = [ + 'example string' + ], + gateway_bgp_neighbors = { + 'key' : graphiant_sdk.models.mana_v2_bgp_neighbor_config.manaV2BgpNeighborConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + allow_as_in = graphiant_sdk.models.mana_v2_nullable_allow_as_in.manaV2NullableAllowAsIn( + count = 123, ), + as_override = True, + bfd = graphiant_sdk.models.mana_v2_nullable_bfd_instance_config.manaV2NullableBfdInstanceConfig(), + default_originate = 'ENUM_VALUE', + ebgp_multihop_ttl = graphiant_sdk.models.mana_v2_nullable_ebgp_config.manaV2NullableEbgpConfig( + multi_hop = 123, ), + enabled = True, + hold_timer = 123, + hold_timer_value = graphiant_sdk.models.mana_v2_nullable_hold_timer.manaV2NullableHoldTimer( + timer = 123, ), + keepalive_timer = 123, + keepalive_timer_value = graphiant_sdk.models.mana_v2_nullable_keep_alive_timer.manaV2NullableKeepAliveTimer( + timer = 123, ), + local_address = 'example string', + local_interface = graphiant_sdk.models.mana_v2_nullable_interface_name.manaV2NullableInterfaceName( + interface = 'example string', ), + max_prefix_value = graphiant_sdk.models.mana_v2_nullable_max_prefix.manaV2NullableMaxPrefix( + max_prefix = 123, ), + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + remote_address = 'example string', + remove_private_as = True, + send_community = True, ) + }, + lan_segment_id = 1234567891011, + nat_prefix_strategy = graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy.manaV2PublicVifGatewayNatPrefixStrategy( + centralized = graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat.manaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + }, ), + decentralized = graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes.manaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + }, ), ), + region_id = 123, + service_name = 'example string', + storage_provider = 'ENUM_VALUE' + ) + else: + return V1PvifPostRequest( + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices.manaV2PublicVifGatewayConsumerLanDevices( + consumer_prefixes = [ + 'example string' + ], ) + }, + gateway_bgp_neighbors = { + 'key' : graphiant_sdk.models.mana_v2_bgp_neighbor_config.manaV2BgpNeighborConfig( + address_families = { + 'key' : graphiant_sdk.models.mana_v2_nullable_bgp_neighbor_address_family_config.manaV2NullableBgpNeighborAddressFamilyConfig( + family = graphiant_sdk.models.mana_v2_bgp_neighbor_address_family_config.manaV2BgpNeighborAddressFamilyConfig( + address_family = 'ENUM_VALUE', + inbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), + outbound_policy = graphiant_sdk.models.mana_v2_nullable_policy_name.manaV2NullablePolicyName( + policy = 'example string', ), ), ) + }, + allow_as_in = graphiant_sdk.models.mana_v2_nullable_allow_as_in.manaV2NullableAllowAsIn( + count = 123, ), + as_override = True, + bfd = graphiant_sdk.models.mana_v2_nullable_bfd_instance_config.manaV2NullableBfdInstanceConfig(), + default_originate = 'ENUM_VALUE', + ebgp_multihop_ttl = graphiant_sdk.models.mana_v2_nullable_ebgp_config.manaV2NullableEbgpConfig( + multi_hop = 123, ), + enabled = True, + hold_timer = 123, + hold_timer_value = graphiant_sdk.models.mana_v2_nullable_hold_timer.manaV2NullableHoldTimer( + timer = 123, ), + keepalive_timer = 123, + keepalive_timer_value = graphiant_sdk.models.mana_v2_nullable_keep_alive_timer.manaV2NullableKeepAliveTimer( + timer = 123, ), + local_address = 'example string', + local_interface = graphiant_sdk.models.mana_v2_nullable_interface_name.manaV2NullableInterfaceName( + interface = 'example string', ), + max_prefix_value = graphiant_sdk.models.mana_v2_nullable_max_prefix.manaV2NullableMaxPrefix( + max_prefix = 123, ), + md5_password = graphiant_sdk.models.mana_v2_nullable_md5_password.manaV2NullableMd5Password(), + peer_asn = 123, + remote_address = 'example string', + remove_private_as = True, + send_community = True, ) + }, + lan_segment_id = 1234567891011, + nat_prefix_strategy = graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy.manaV2PublicVifGatewayNatPrefixStrategy( + centralized = graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat.manaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + }, ), + decentralized = graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes.manaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + }, ), ), + region_id = 123, + service_name = 'example string', + storage_provider = 'ENUM_VALUE', + ) + """ + + def testV1PvifPostRequest(self): + """Test V1PvifPostRequest""" + # 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_pvif_post_response.py b/test/test_v1_pvif_post_response.py new file mode 100644 index 00000000..97b0d3e7 --- /dev/null +++ b/test/test_v1_pvif_post_response.py @@ -0,0 +1,146 @@ +# 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_pvif_post_response import V1PvifPostResponse + +class TestV1PvifPostResponse(unittest.TestCase): + """V1PvifPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1PvifPostResponse: + """Test V1PvifPostResponse + 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 `V1PvifPostResponse` + """ + model = V1PvifPostResponse() + if include_optional: + return V1PvifPostResponse( + advertise_all_sites = True, + advertisement = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], + sites = [ + 1234567891011 + ], ), + consumer_lan_segments = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_gateway_consumer_lan_devices.manaV2PublicVifGatewayConsumerLanDevices( + consumer_prefixes = [ + 'example string' + ], ) + }, + covering_prefixes = [ + 'example string' + ], + gateway_bgp_neighbors = { + 'key' : graphiant_sdk.models.mana_v2_bgp_neighbor.manaV2BgpNeighbor( + address_families = [ + graphiant_sdk.models.mana_v2_bgp_neighbor_address_family.manaV2BgpNeighborAddressFamily( + address_family = 'ENUM_VALUE', + id = 1234567891011, + inbound_policy = 'example string', + outbound_policy = 'example string', ) + ], + allow_as_in = 123, + as_override = True, + bfd = graphiant_sdk.models.mana_v2_bfd_instance.manaV2BfdInstance( + enabled = True, + minimum_interval = 123, + multiplier = 123, ), + bfd_neighbor = graphiant_sdk.models.mana_v2_bfd_neighbor.manaV2BfdNeighbor( + desired_minimum_tx_interval = 123, + if_index = 123, + interface = 'example string', + last_updated = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + local_diag = 'ENUM_VALUE', + peer_address = 'example string', + remote_diag = 'ENUM_VALUE', + required_minimum_rx_interval = 123, + segment_name = 'example string', + source_address = 'example string', + state = 'ENUM_VALUE', + time_in_state = graphiant_sdk.models.google_protobuf_duration.googleProtobufDuration( + nanos = 123, + seconds = 1234567891011, ), + up = True, ), + bgp_type = 'ENUM_VALUE', + default_originate = 'ENUM_VALUE', + dynamic_neighbor_peers = [ + graphiant_sdk.models.mana_v2_bgp_dynamic_neighbor_oper_peer.manaV2BgpDynamicNeighborOperPeer( + last_oper_status_change = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + local_address = 'example string', + oper_status = True, + peer_asn = 123, + remote_address = 'example string', + state = 'ENUM_VALUE', ) + ], + enabled = True, + hold_timer = 123, + id = 1234567891011, + keepalive_timer = 123, + local_address = 'example string', + local_interface = 'example string', + max_prefix = 10000, + md5_password = 'example string', + multi_hop = 5, + peer_asn = 123, + remote_address = 'example string', + remove_private_as = True, + send_community = True, + state = 'ENUM_VALUE', + time_since_last_oper_change = graphiant_sdk.models.google_protobuf_duration.googleProtobufDuration( + nanos = 123, + seconds = 1234567891011, ), + up = True, ) + }, + id = 1234567891011, + lan_segment_id = 1234567891011, + nat_prefix_strategy = graphiant_sdk.models.mana_v2_public_vif_gateway_nat_prefix_strategy.manaV2PublicVifGatewayNatPrefixStrategy( + centralized = graphiant_sdk.models.mana_v2_public_vif_gateway_centralized_nat.manaV2PublicVifGatewayCentralizedNat( + consumer_prefix = { + 'key' : 'example string' + }, ), + decentralized = graphiant_sdk.models.mana_v2_public_vif_gateway_decentralized_prefixes.manaV2PublicVifGatewayDecentralizedPrefixes( + prefixes = { + 'key' : 'example string' + }, ), ), + region_id = 123, + service_name = 'example string', + storage_provider = 'ENUM_VALUE' + ) + else: + return V1PvifPostResponse( + ) + """ + + def testV1PvifPostResponse(self): + """Test V1PvifPostResponse""" + # 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_pvif_summary_get_response.py b/test/test_v1_pvif_summary_get_response.py new file mode 100644 index 00000000..37c76492 --- /dev/null +++ b/test/test_v1_pvif_summary_get_response.py @@ -0,0 +1,59 @@ +# 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_pvif_summary_get_response import V1PvifSummaryGetResponse + +class TestV1PvifSummaryGetResponse(unittest.TestCase): + """V1PvifSummaryGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1PvifSummaryGetResponse: + """Test V1PvifSummaryGetResponse + 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 `V1PvifSummaryGetResponse` + """ + model = V1PvifSummaryGetResponse() + if include_optional: + return V1PvifSummaryGetResponse( + summary = [ + graphiant_sdk.models.mana_v2_public_vif_summary.manaV2PublicVifSummary( + id = 1234567891011, + service_name = 'example string', + updated_at = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + user_name = 'example string', ) + ] + ) + else: + return V1PvifSummaryGetResponse( + ) + """ + + def testV1PvifSummaryGetResponse(self): + """Test V1PvifSummaryGetResponse""" + # 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_regions_region_id_gateways_get_response.py b/test/test_v1_regions_region_id_gateways_get_response.py new file mode 100644 index 00000000..890a82d0 --- /dev/null +++ b/test/test_v1_regions_region_id_gateways_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.v1_regions_region_id_gateways_get_response import V1RegionsRegionIdGatewaysGetResponse + +class TestV1RegionsRegionIdGatewaysGetResponse(unittest.TestCase): + """V1RegionsRegionIdGatewaysGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1RegionsRegionIdGatewaysGetResponse: + """Test V1RegionsRegionIdGatewaysGetResponse + 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 `V1RegionsRegionIdGatewaysGetResponse` + """ + model = V1RegionsRegionIdGatewaysGetResponse() + if include_optional: + return V1RegionsRegionIdGatewaysGetResponse( + gateways = [ + graphiant_sdk.models.v1_regions_region_id_gateways_get_response_gateway.v1RegionsRegionIdGatewaysGetResponseGateway( + device_id = 1234567891011, + hostname = 'example string', ) + ] + ) + else: + return V1RegionsRegionIdGatewaysGetResponse( + ) + """ + + def testV1RegionsRegionIdGatewaysGetResponse(self): + """Test V1RegionsRegionIdGatewaysGetResponse""" + # 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_regions_region_id_gateways_get_response_gateway.py b/test/test_v1_regions_region_id_gateways_get_response_gateway.py new file mode 100644 index 00000000..459193be --- /dev/null +++ b/test/test_v1_regions_region_id_gateways_get_response_gateway.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.v1_regions_region_id_gateways_get_response_gateway import V1RegionsRegionIdGatewaysGetResponseGateway + +class TestV1RegionsRegionIdGatewaysGetResponseGateway(unittest.TestCase): + """V1RegionsRegionIdGatewaysGetResponseGateway unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1RegionsRegionIdGatewaysGetResponseGateway: + """Test V1RegionsRegionIdGatewaysGetResponseGateway + 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 `V1RegionsRegionIdGatewaysGetResponseGateway` + """ + model = V1RegionsRegionIdGatewaysGetResponseGateway() + if include_optional: + return V1RegionsRegionIdGatewaysGetResponseGateway( + device_id = 1234567891011, + hostname = 'example string' + ) + else: + return V1RegionsRegionIdGatewaysGetResponseGateway( + ) + """ + + def testV1RegionsRegionIdGatewaysGetResponseGateway(self): + """Test V1RegionsRegionIdGatewaysGetResponseGateway""" + # 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_agents_get_response.py b/test/test_v1_ztagent_agents_get_response.py new file mode 100644 index 00000000..74cf8b66 --- /dev/null +++ b/test/test_v1_ztagent_agents_get_response.py @@ -0,0 +1,60 @@ +# 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_agents_get_response import V1ZtagentAgentsGetResponse + +class TestV1ZtagentAgentsGetResponse(unittest.TestCase): + """V1ZtagentAgentsGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ZtagentAgentsGetResponse: + """Test V1ZtagentAgentsGetResponse + 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 `V1ZtagentAgentsGetResponse` + """ + model = V1ZtagentAgentsGetResponse() + if include_optional: + return V1ZtagentAgentsGetResponse( + agents = [ + graphiant_sdk.models.conceal_agent.concealAgent( + created_at = 'example string', + disabled = True, + id = 'example string', + identifier = 'example string', + last_checkin = 'example string', + machine = 'example string', ) + ], + count = 123 + ) + else: + return V1ZtagentAgentsGetResponse( + ) + """ + + def testV1ZtagentAgentsGetResponse(self): + """Test V1ZtagentAgentsGetResponse""" + # 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_assurance_ai_adoption_summary_post_request.py b/test/test_v2_assurance_ai_adoption_summary_post_request.py new file mode 100644 index 00000000..c987c8f2 --- /dev/null +++ b/test/test_v2_assurance_ai_adoption_summary_post_request.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.v2_assurance_ai_adoption_summary_post_request import V2AssuranceAiAdoptionSummaryPostRequest + +class TestV2AssuranceAiAdoptionSummaryPostRequest(unittest.TestCase): + """V2AssuranceAiAdoptionSummaryPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2AssuranceAiAdoptionSummaryPostRequest: + """Test V2AssuranceAiAdoptionSummaryPostRequest + 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 `V2AssuranceAiAdoptionSummaryPostRequest` + """ + model = V2AssuranceAiAdoptionSummaryPostRequest() + if include_optional: + return V2AssuranceAiAdoptionSummaryPostRequest( + time_window = graphiant_sdk.models.assurance_time_window.assuranceTimeWindow( + bucket_size_sec = 123, + old_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + recent_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), ), + user_list_size = 1234567891011 + ) + else: + return V2AssuranceAiAdoptionSummaryPostRequest( + time_window = graphiant_sdk.models.assurance_time_window.assuranceTimeWindow( + bucket_size_sec = 123, + old_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), + recent_ts = graphiant_sdk.models.google_protobuf_timestamp.googleProtobufTimestamp( + nanos = 123, + seconds = 1234567891011, ), ), + user_list_size = 1234567891011, + ) + """ + + def testV2AssuranceAiAdoptionSummaryPostRequest(self): + """Test V2AssuranceAiAdoptionSummaryPostRequest""" + # 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_assurance_ai_adoption_summary_post_response.py b/test/test_v2_assurance_ai_adoption_summary_post_response.py new file mode 100644 index 00000000..16b51744 --- /dev/null +++ b/test/test_v2_assurance_ai_adoption_summary_post_response.py @@ -0,0 +1,143 @@ +# 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_assurance_ai_adoption_summary_post_response import V2AssuranceAiAdoptionSummaryPostResponse + +class TestV2AssuranceAiAdoptionSummaryPostResponse(unittest.TestCase): + """V2AssuranceAiAdoptionSummaryPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2AssuranceAiAdoptionSummaryPostResponse: + """Test V2AssuranceAiAdoptionSummaryPostResponse + 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 `V2AssuranceAiAdoptionSummaryPostResponse` + """ + model = V2AssuranceAiAdoptionSummaryPostResponse() + if include_optional: + return V2AssuranceAiAdoptionSummaryPostResponse( + top_level_kpi = graphiant_sdk.models.assurance_top_level_kpi.assuranceTopLevelKpi( + data_transferred_kbps_metric = graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ), + shadow_ai_tools_metric = graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ), + tools_metric = , + users_metric = , ), + what_widget = graphiant_sdk.models.assurance_what_widget.assuranceWhatWidget( + bubble_categories = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], + top_tools_by_active_users = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], + top_tools_by_data_transferred = [ + + ], ), + when_widget = graphiant_sdk.models.assurance_when_widget.assuranceWhenWidget( + day_of_week = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], + hour_of_day = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], + monthly_active_users = [ + + ], + monthly_bandwidth_transferred = [ + + ], ), + where_widget = graphiant_sdk.models.assurance_where_widget.assuranceWhereWidget( + top_sites_by_users = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], + top_users_by_data_transferred = [ + graphiant_sdk.models.assurance_user_definition.assuranceUserDefinition( + data_sent = 123.45, + managed = True, + sessions_day = 123.45, + tokens_usage = 123.45, + tokens_usage_days = 123.45, + user = 'example string', + vrf = 'example string', ) + ], + top_vrfs_by_users = [ + graphiant_sdk.models.assurance_kpi_metric.assuranceKpiMetric( + delta = 123.45, + name = 'example string', + percent = 123.45, + tag = 'ENUM_VALUE', + token_usage = 123.45, + value = 123.45, ) + ], ) + ) + else: + return V2AssuranceAiAdoptionSummaryPostResponse( + ) + """ + + def testV2AssuranceAiAdoptionSummaryPostResponse(self): + """Test V2AssuranceAiAdoptionSummaryPostResponse""" + # 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_assurance_create_ai_adoption_approve_entry_post_request.py b/test/test_v2_assurance_create_ai_adoption_approve_entry_post_request.py new file mode 100644 index 00000000..bc25a837 --- /dev/null +++ b/test/test_v2_assurance_create_ai_adoption_approve_entry_post_request.py @@ -0,0 +1,60 @@ +# 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_assurance_create_ai_adoption_approve_entry_post_request import V2AssuranceCreateAiAdoptionApproveEntryPostRequest + +class TestV2AssuranceCreateAiAdoptionApproveEntryPostRequest(unittest.TestCase): + """V2AssuranceCreateAiAdoptionApproveEntryPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2AssuranceCreateAiAdoptionApproveEntryPostRequest: + """Test V2AssuranceCreateAiAdoptionApproveEntryPostRequest + 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 `V2AssuranceCreateAiAdoptionApproveEntryPostRequest` + """ + model = V2AssuranceCreateAiAdoptionApproveEntryPostRequest() + if include_optional: + return V2AssuranceCreateAiAdoptionApproveEntryPostRequest( + approved_app_entry = graphiant_sdk.models.assurance_approved_app_entry_request.assuranceApprovedAppEntryRequest( + app_name = 'example string', + domain = 'example string', + id = 'example string', + tag_requested = 'ENUM_VALUE', ) + ) + else: + return V2AssuranceCreateAiAdoptionApproveEntryPostRequest( + approved_app_entry = graphiant_sdk.models.assurance_approved_app_entry_request.assuranceApprovedAppEntryRequest( + app_name = 'example string', + domain = 'example string', + id = 'example string', + tag_requested = 'ENUM_VALUE', ), + ) + """ + + def testV2AssuranceCreateAiAdoptionApproveEntryPostRequest(self): + """Test V2AssuranceCreateAiAdoptionApproveEntryPostRequest""" + # 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_assurance_create_ai_adoption_approve_entry_post_response.py b/test/test_v2_assurance_create_ai_adoption_approve_entry_post_response.py new file mode 100644 index 00000000..1a620e41 --- /dev/null +++ b/test/test_v2_assurance_create_ai_adoption_approve_entry_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.v2_assurance_create_ai_adoption_approve_entry_post_response import V2AssuranceCreateAiAdoptionApproveEntryPostResponse + +class TestV2AssuranceCreateAiAdoptionApproveEntryPostResponse(unittest.TestCase): + """V2AssuranceCreateAiAdoptionApproveEntryPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2AssuranceCreateAiAdoptionApproveEntryPostResponse: + """Test V2AssuranceCreateAiAdoptionApproveEntryPostResponse + 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 `V2AssuranceCreateAiAdoptionApproveEntryPostResponse` + """ + model = V2AssuranceCreateAiAdoptionApproveEntryPostResponse() + if include_optional: + return V2AssuranceCreateAiAdoptionApproveEntryPostResponse( + id = 'example string' + ) + else: + return V2AssuranceCreateAiAdoptionApproveEntryPostResponse( + ) + """ + + def testV2AssuranceCreateAiAdoptionApproveEntryPostResponse(self): + """Test V2AssuranceCreateAiAdoptionApproveEntryPostResponse""" + # 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_assurance_get_app_names_post_request.py b/test/test_v2_assurance_get_app_names_post_request.py new file mode 100644 index 00000000..d819bf9c --- /dev/null +++ b/test/test_v2_assurance_get_app_names_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.v2_assurance_get_app_names_post_request import V2AssuranceGetAppNamesPostRequest + +class TestV2AssuranceGetAppNamesPostRequest(unittest.TestCase): + """V2AssuranceGetAppNamesPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2AssuranceGetAppNamesPostRequest: + """Test V2AssuranceGetAppNamesPostRequest + 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 `V2AssuranceGetAppNamesPostRequest` + """ + model = V2AssuranceGetAppNamesPostRequest() + if include_optional: + return V2AssuranceGetAppNamesPostRequest( + tags = [ + 'ENUM_VALUE' + ] + ) + else: + return V2AssuranceGetAppNamesPostRequest( + tags = [ + 'ENUM_VALUE' + ], + ) + """ + + def testV2AssuranceGetAppNamesPostRequest(self): + """Test V2AssuranceGetAppNamesPostRequest""" + # 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_assurance_get_app_names_post_response.py b/test/test_v2_assurance_get_app_names_post_response.py new file mode 100644 index 00000000..6b70174f --- /dev/null +++ b/test/test_v2_assurance_get_app_names_post_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.v2_assurance_get_app_names_post_response import V2AssuranceGetAppNamesPostResponse + +class TestV2AssuranceGetAppNamesPostResponse(unittest.TestCase): + """V2AssuranceGetAppNamesPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2AssuranceGetAppNamesPostResponse: + """Test V2AssuranceGetAppNamesPostResponse + 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 `V2AssuranceGetAppNamesPostResponse` + """ + model = V2AssuranceGetAppNamesPostResponse() + if include_optional: + return V2AssuranceGetAppNamesPostResponse( + app_names = [ + 'example string' + ] + ) + else: + return V2AssuranceGetAppNamesPostResponse( + ) + """ + + def testV2AssuranceGetAppNamesPostResponse(self): + """Test V2AssuranceGetAppNamesPostResponse""" + # 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_assurance_read_ai_adoption_approve_entries_get_response.py b/test/test_v2_assurance_read_ai_adoption_approve_entries_get_response.py new file mode 100644 index 00000000..eb482717 --- /dev/null +++ b/test/test_v2_assurance_read_ai_adoption_approve_entries_get_response.py @@ -0,0 +1,58 @@ +# 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_assurance_read_ai_adoption_approve_entries_get_response import V2AssuranceReadAiAdoptionApproveEntriesGetResponse + +class TestV2AssuranceReadAiAdoptionApproveEntriesGetResponse(unittest.TestCase): + """V2AssuranceReadAiAdoptionApproveEntriesGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2AssuranceReadAiAdoptionApproveEntriesGetResponse: + """Test V2AssuranceReadAiAdoptionApproveEntriesGetResponse + 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 `V2AssuranceReadAiAdoptionApproveEntriesGetResponse` + """ + model = V2AssuranceReadAiAdoptionApproveEntriesGetResponse() + if include_optional: + return V2AssuranceReadAiAdoptionApproveEntriesGetResponse( + approved_app_list = [ + graphiant_sdk.models.assurance_approved_app_entry.assuranceApprovedAppEntry( + active_users = 1234567891011, + category = 'example string', + data_sent_kbps = 123.45, + id = 'example string', + tool = 'example string', ) + ] + ) + else: + return V2AssuranceReadAiAdoptionApproveEntriesGetResponse( + ) + """ + + def testV2AssuranceReadAiAdoptionApproveEntriesGetResponse(self): + """Test V2AssuranceReadAiAdoptionApproveEntriesGetResponse""" + # 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_assurance_update_ai_adoption_approve_entry_post_request.py b/test/test_v2_assurance_update_ai_adoption_approve_entry_post_request.py new file mode 100644 index 00000000..edcc8986 --- /dev/null +++ b/test/test_v2_assurance_update_ai_adoption_approve_entry_post_request.py @@ -0,0 +1,60 @@ +# 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_assurance_update_ai_adoption_approve_entry_post_request import V2AssuranceUpdateAiAdoptionApproveEntryPostRequest + +class TestV2AssuranceUpdateAiAdoptionApproveEntryPostRequest(unittest.TestCase): + """V2AssuranceUpdateAiAdoptionApproveEntryPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V2AssuranceUpdateAiAdoptionApproveEntryPostRequest: + """Test V2AssuranceUpdateAiAdoptionApproveEntryPostRequest + 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 `V2AssuranceUpdateAiAdoptionApproveEntryPostRequest` + """ + model = V2AssuranceUpdateAiAdoptionApproveEntryPostRequest() + if include_optional: + return V2AssuranceUpdateAiAdoptionApproveEntryPostRequest( + approved_app_entry = graphiant_sdk.models.assurance_approved_app_entry_request.assuranceApprovedAppEntryRequest( + app_name = 'example string', + domain = 'example string', + id = 'example string', + tag_requested = 'ENUM_VALUE', ) + ) + else: + return V2AssuranceUpdateAiAdoptionApproveEntryPostRequest( + approved_app_entry = graphiant_sdk.models.assurance_approved_app_entry_request.assuranceApprovedAppEntryRequest( + app_name = 'example string', + domain = 'example string', + id = 'example string', + tag_requested = 'ENUM_VALUE', ), + ) + """ + + def testV2AssuranceUpdateAiAdoptionApproveEntryPostRequest(self): + """Test V2AssuranceUpdateAiAdoptionApproveEntryPostRequest""" + # 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/tests/test_portal_login.py b/tests/test_portal_login.py index 6e258e23..2d49a79e 100644 --- a/tests/test_portal_login.py +++ b/tests/test_portal_login.py @@ -24,7 +24,8 @@ def test_default_portal_constant() -> None: def test_portal_root_url() -> None: - assert portal_root_url("https://portal.graphiant.com/foo/bar") == "https://portal.graphiant.com/" + assert portal_root_url( + "https://portal.graphiant.com/foo/bar") == "https://portal.graphiant.com/" assert portal_root_url("https://portal.example.com") == "https://portal.example.com/" @@ -78,7 +79,7 @@ def test_extract_token_from_refresh_json_access_token_aliases() -> None: def test_extract_token_from_refresh_response_entry_point_uses_request_header() -> None: - """OpenAPI oneOf: refresh may return only entryPoint; bearer is still on the outgoing request.""" + """Refresh may return only entryPoint; bearer is on the outgoing request.""" class _Req: headers = {"authorization": "Bearer gr-auth-from-req"} diff --git a/tests/test_sdk_invoke.py b/tests/test_sdk_invoke.py index 2a4d6143..bd7e9dd2 100644 --- a/tests/test_sdk_invoke.py +++ b/tests/test_sdk_invoke.py @@ -37,7 +37,8 @@ def test_list_api_method_rows_global_content_filters_and_rollouts() -> None: assert rows["v1_global_content_filters_post"][0] == "POST" roll = {n: (v, p) for n, v, p in list_api_method_rows("v1_software_rollouts")} assert roll["v1_software_rollouts_get"] == ("GET", "/v1/software/rollouts") - macsec = {n: (v, p) for n, v, p in list_api_method_rows("v2_monitoring_macsec_device_id_status")} + macsec = {n: (v, p) for n, v, p in list_api_method_rows( + "v2_monitoring_macsec_device_id_status")} assert macsec["v2_monitoring_macsec_device_id_status_get"] == ( "GET", "/v2/monitoring/macsec/{deviceId}/status",