From 02437bf756adcd726e99da57117d09efbff053af Mon Sep 17 00:00:00 2001 From: Shaik Sulaiman Shahul Hameed Date: Wed, 10 Jun 2026 18:07:55 -0700 Subject: [PATCH] Update API spec - graphiant_api_docs_v26.5.0.json --- CHANGELOG.md | 19 +- README.md | 12 +- SECURITY.md | 7 +- docs/AssuranceClientSession.md | 1 + docs/AssuranceSite.md | 1 + docs/CommonBillingContract.md | 30 + docs/CommonBillingTimePeriod.md | 30 + docs/DefaultApi.md | 642 +- docs/ManaV2ApplicationProfile.md | 1 + docs/ManaV2LanSegmentSitesMap.md | 30 + docs/ManaV2ManagedEnterpriseContractInfo.md | 32 + docs/ManaV2PublicVif.md | 31 + docs/ManaV2PublicVifConsumerLanSegment.md | 30 + ...naV2PublicVifConsumerLanSegmentResponse.md | 32 + docs/ManaV2PublicVifConsumerPolicy.md | 30 + docs/ManaV2PublicVifConsumerPolicyResponse.md | 31 + docs/ManaV2PublicVifDevice.md | 31 + docs/ManaV2PublicVifDynamic.md | 29 + docs/ManaV2PublicVifFixed.md | 29 + docs/ManaV2PublicVifFixedNat.md | 30 + docs/ManaV2PublicVifProducerPolicy.md | 35 + docs/ManaV2PublicVifProducerPolicyResponse.md | 37 + docs/ManaV2PublicVifSummary.md | 32 + docs/ManaV2SiteDeviceSummary.md | 30 + docs/ManaV2SiteInformation.md | 30 + docs/ManaV2SiteLanSegmentDeviceBuckets.md | 30 + docs/SearchEdgeSummary.md | 1 + docs/V1EnterpriseContractPutRequest.md | 2 +- docs/V1EnterprisesPatchRequest.md | 1 + docs/V1EnterprisesPutRequest.md | 1 + docs/V1ExtranetPublicVifCheckPostRequest.md | 32 + docs/V1ExtranetPublicVifCheckPostResponse.md | 33 + docs/V1ExtranetPublicVifGetResponse.md | 29 + docs/V1ExtranetPublicVifIdGetResponse.md | 33 + docs/V1ExtranetPublicVifIdPutRequest.md | 30 + docs/V1ExtranetPublicVifIdPutResponse.md | 33 + docs/V1ExtranetPublicVifPostRequest.md | 32 + docs/V1ExtranetPublicVifPostResponse.md | 33 + ...anagedEnterpriseContractInfoGetResponse.md | 31 + docs/V1SitesMapDetailsGetResponse.md | 29 + ...anceApplicationdetailsbynamePostRequest.md | 1 + ...uranceTopologyClientSessionsPostRequest.md | 1 + ...ranceTopologyClientSummariesPostRequest.md | 1 + ...ologyClientSummariesPostResponseSummary.md | 1 + .../V2AssuranceTopologyOverviewPostRequest.md | 1 + ...suranceTopologySiteSummariesPostRequest.md | 1 + ....0.json => graphiant_api_docs_v26.5.0.json | 1451 +- graphiant_sdk/__init__.py | 74 +- graphiant_sdk/api/default_api.py | 16097 +++++++++------- graphiant_sdk/api_client.py | 2 +- graphiant_sdk/configuration.py | 2 +- graphiant_sdk/models/__init__.py | 36 +- .../models/alertservice_alert_record.py | 56 +- ...ice_allow_alert_notifcation_list_record.py | 26 +- .../alertservice_create_integration_body.py | 10 +- .../models/alertservice_integration.py | 16 +- .../alertservice_integration_details.py | 8 +- .../models/alertservice_notification_body.py | 12 +- .../alertservice_notification_record.py | 12 +- .../models/alertservice_rule_record.py | 18 +- .../models/alertservice_time_window.py | 2 +- .../alertservice_update_integration_body.py | 10 +- .../models/alertservice_zendesk_details.py | 8 +- .../assistant_assistant_conversation.py | 8 +- .../models/assistant_assistant_question.py | 8 +- .../models/assistant_assistant_response.py | 14 +- .../models/assistant_dataframe_dictionary.py | 4 +- graphiant_sdk/models/assistant_time_window.py | 2 +- .../models/assurance_app_id_record.py | 38 +- .../models/assurance_app_name_record.py | 26 +- graphiant_sdk/models/assurance_bucket_app.py | 8 +- .../models/assurance_bucket_app_server.py | 10 +- .../models/assurance_bucket_details.py | 20 +- .../models/assurance_bucket_stats.py | 8 +- .../models/assurance_bucket_stats_with_id.py | 8 +- .../models/assurance_bucket_summary.py | 10 +- .../assurance_classified_application.py | 4 +- .../models/assurance_client_session.py | 26 +- .../assurance_client_session_dia_link.py | 2 +- ...surance_client_session_endpoint_details.py | 6 +- ...ent_session_endpoint_details_statistics.py | 8 +- .../assurance_client_session_endpoint_link.py | 10 +- .../assurance_client_session_pop_link.py | 10 +- .../models/assurance_dns_proxy_entry.py | 8 +- graphiant_sdk/models/assurance_edge.py | 4 +- .../models/assurance_enterprise_summary.py | 12 +- .../assurance_exchange_service_identifier.py | 4 +- .../models/assurance_flex_algo_identifier.py | 4 +- graphiant_sdk/models/assurance_geolocation.py | 6 +- graphiant_sdk/models/assurance_region.py | 6 +- .../models/assurance_score_bucket_count.py | 6 +- graphiant_sdk/models/assurance_site.py | 10 +- graphiant_sdk/models/assurance_time_window.py | 2 +- .../models/assurance_topology_edge.py | 4 +- ...ssurance_topology_edge_link_performance.py | 8 +- .../models/assurance_topology_node.py | 8 +- graphiant_sdk/models/assurance_trend_value.py | 6 +- graphiant_sdk/models/assurance_user_report.py | 12 +- graphiant_sdk/models/audit_activity_item.py | 8 +- graphiant_sdk/models/audit_audit_entry.py | 14 +- graphiant_sdk/models/audit_target.py | 4 +- graphiant_sdk/models/audit_target_result.py | 6 +- .../models/auditmon_activity_details.py | 26 +- .../auditmon_activity_details_target.py | 6 +- .../auditmon_activity_details_target_event.py | 6 +- .../models/auditmon_activity_logs_selector.py | 6 +- graphiant_sdk/models/auditmon_audit_log.py | 10 +- graphiant_sdk/models/auditmon_histogram.py | 2 +- graphiant_sdk/models/auditmon_selector.py | 2 +- graphiant_sdk/models/auth_permissions.py | 32 +- .../models/common_billing_contract.py | 94 + .../models/common_billing_time_period.py | 90 + graphiant_sdk/models/common_page_info.py | 14 +- graphiant_sdk/models/common_page_request.py | 10 +- graphiant_sdk/models/common_permissions.py | 38 +- graphiant_sdk/models/common_user.py | 18 +- graphiant_sdk/models/common_user_info.py | 10 +- .../models/config_worker_job_status.py | 8 +- .../models/diagnostic_tools_archive.py | 16 +- .../models/diagnostic_tools_arp_entry.py | 4 +- .../diagnostic_tools_diagnostic_params.py | 16 +- .../models/diagnostic_tools_hop_info.py | 6 +- .../models/diagnostic_tools_hop_stats.py | 12 +- .../models/diagnostic_tools_p_cap_filter.py | 4 +- .../models/diagnostic_tools_ping_result.py | 10 +- .../models/diagnostic_tools_prefix_port.py | 4 +- .../diagnostic_tools_route_lookup_result.py | 6 +- .../diagnostic_tools_speedtest_params.py | 6 +- .../diagnostic_tools_speedtest_result.py | 14 +- .../diagnostic_tools_speedtest_server.py | 12 +- .../models/diagnostic_tools_target_type.py | 4 +- .../diagnostic_tools_traceroute_result.py | 10 +- .../models/google_protobuf_duration.py | 6 +- .../models/google_protobuf_timestamp.py | 6 +- graphiant_sdk/models/iam_counts.py | 26 +- graphiant_sdk/models/iam_customer.py | 12 +- graphiant_sdk/models/iam_enterprise.py | 34 +- .../models/iam_enterprise_permissions.py | 2 +- graphiant_sdk/models/iam_failed_user.py | 4 +- graphiant_sdk/models/iam_group.py | 12 +- .../models/ipfix_app_bandwidth_stats.py | 4 +- graphiant_sdk/models/ipfix_app_flow_table.py | 28 +- .../models/ipfix_app_incidents_data.py | 4 +- .../models/ipfix_app_state_summary_count.py | 4 +- .../models/ipfix_app_topology_selector.py | 6 +- .../models/ipfix_app_utilization_summary.py | 6 +- .../models/ipfix_app_visualization.py | 6 +- graphiant_sdk/models/ipfix_circuit_metrics.py | 8 +- .../models/ipfix_client_usage_summary.py | 4 +- graphiant_sdk/models/ipfix_connection_map.py | 2 +- graphiant_sdk/models/ipfix_entity_usage.py | 6 +- graphiant_sdk/models/ipfix_nat_entry.py | 24 +- .../models/ipfix_nat_entry_filter.py | 14 +- graphiant_sdk/models/ipfix_nat_usage.py | 10 +- .../models/ipfix_network_topology.py | 2 +- graphiant_sdk/models/ipfix_stats.py | 4 +- graphiant_sdk/models/ipfix_time_window.py | 2 +- graphiant_sdk/models/ipfix_twamp_metrics.py | 12 +- ...ana_v2_allocation_conversion_holder_bin.py | 12 +- graphiant_sdk/models/mana_v2_app.py | 6 +- .../models/mana_v2_app_identifier.py | 6 +- .../models/mana_v2_app_list_config.py | 6 +- .../mana_v2_application_match_config.py | 6 +- .../models/mana_v2_application_profile.py | 10 +- .../models/mana_v2_assurance_config.py | 8 +- .../models/mana_v2_aws_advance_settings.py | 10 +- .../models/mana_v2_aws_credentials.py | 4 +- .../mana_v2_aws_direct_connect_gateway.py | 6 +- .../models/mana_v2_aws_gateway_details.py | 2 +- ..._aws_gateway_details_transit_connection.py | 4 +- .../models/mana_v2_aws_transit_gateway.py | 4 +- .../models/mana_v2_aws_transit_gateway_vpc.py | 4 +- .../models/mana_v2_azure_gateway_details.py | 6 +- ...service_customer_match_details_customer.py | 6 +- ..._customer_match_details_producer_prefix.py | 6 +- ..._service_customer_match_details_service.py | 8 +- ...ana_v2_b2b_application_customer_summary.py | 10 +- .../mana_v2_b2b_extranet_application.py | 18 +- ...mana_v2_b2b_extranet_application_invite.py | 10 +- ...2b_extranet_application_invite_response.py | 12 +- .../mana_v2_b2b_extranet_consumers_summary.py | 20 +- ...xtranet_customer_match_services_summary.py | 12 +- ..._b2b_extranet_customer_services_summary.py | 10 +- ..._b2b_extranet_match_service_to_customer.py | 6 +- ...ing_service_consumer_lan_segment_policy.py | 2 +- ...xtranet_peering_service_customer_invite.py | 2 +- ...xtranet_peering_service_policy_response.py | 2 +- ...xtranet_peering_service_producer_policy.py | 6 +- .../mana_v2_b2b_extranet_policy_response.py | 4 +- .../models/mana_v2_b2b_extranet_prefix_tag.py | 4 +- .../mana_v2_b2b_extranet_producer_policy.py | 10 +- ...extranet_service_customer_match_details.py | 2 +- .../mana_v2_b2b_extranet_status_summary.py | 8 +- graphiant_sdk/models/mana_v2_b2b_nat.py | 4 +- .../models/mana_v2_b2b_site_information.py | 4 +- .../models/mana_v2_bandwidth_info.py | 10 +- graphiant_sdk/models/mana_v2_bfd_instance.py | 6 +- .../models/mana_v2_bfd_instance_config.py | 6 +- graphiant_sdk/models/mana_v2_bfd_neighbor.py | 22 +- .../models/mana_v2_bgp_aggregation.py | 8 +- .../models/mana_v2_bgp_aggregations_config.py | 6 +- .../models/mana_v2_bgp_connection.py | 10 +- .../mana_v2_bgp_dynamic_neighbor_oper_peer.py | 10 +- graphiant_sdk/models/mana_v2_bgp_instance.py | 6 +- .../models/mana_v2_bgp_instance_config.py | 6 +- graphiant_sdk/models/mana_v2_bgp_multipath.py | 4 +- .../models/mana_v2_bgp_multipath_config.py | 4 +- graphiant_sdk/models/mana_v2_bgp_neighbor.py | 38 +- .../mana_v2_bgp_neighbor_address_family.py | 8 +- ...a_v2_bgp_neighbor_address_family_config.py | 2 +- .../models/mana_v2_bgp_neighbor_config.py | 20 +- .../models/mana_v2_bgp_redistribute.py | 12 +- ...ana_v2_bgp_redistribute_protocol_config.py | 4 +- graphiant_sdk/models/mana_v2_bucket_app.py | 12 +- .../models/mana_v2_bucket_app_server.py | 8 +- graphiant_sdk/models/mana_v2_circuit.py | 40 +- .../models/mana_v2_circuit_config.py | 28 +- .../models/mana_v2_circuit_interface.py | 10 +- .../models/mana_v2_community_type.py | 2 +- .../models/mana_v2_configuration_metadata.py | 6 +- .../models/mana_v2_connectivity_graph_edge.py | 6 +- .../models/mana_v2_connectivity_graph_node.py | 10 +- graphiant_sdk/models/mana_v2_consumer.py | 6 +- .../mana_v2_consumer_device_information.py | 6 +- ...ntractual_bandwidth_consumption_summary.py | 6 +- .../models/mana_v2_core_device_config.py | 8 +- .../models/mana_v2_core_interface_config.py | 18 +- .../models/mana_v2_core_link_cost.py | 2 +- .../mana_v2_core_vlan_interface_config.py | 2 +- .../models/mana_v2_customer_match_info.py | 12 +- graphiant_sdk/models/mana_v2_device.py | 44 +- graphiant_sdk/models/mana_v2_device_filter.py | 8 +- .../models/mana_v2_device_snapshot.py | 8 +- .../models/mana_v2_device_snapshot_data.py | 24 +- .../models/mana_v2_device_snapshot_list.py | 4 +- graphiant_sdk/models/mana_v2_dhcp_lease.py | 8 +- graphiant_sdk/models/mana_v2_dhcp_relay.py | 2 +- ...na_v2_dhcp_server_dns_parameters_config.py | 6 +- .../models/mana_v2_dhcp_server_ip_range.py | 6 +- .../models/mana_v2_dhcp_server_pool.py | 26 +- .../models/mana_v2_dhcp_static_lease.py | 10 +- .../models/mana_v2_dhcp_subnet_config.py | 18 +- ...mana_v2_dhcp_subnet_static_lease_config.py | 6 +- .../models/mana_v2_dhcpip_range_config.py | 6 +- graphiant_sdk/models/mana_v2_dns.py | 2 +- .../models/mana_v2_dns_config_dynamic.py | 4 +- graphiant_sdk/models/mana_v2_dns_servers.py | 6 +- graphiant_sdk/models/mana_v2_dnsip_address.py | 14 +- .../models/mana_v2_domain_category.py | 8 +- .../models/mana_v2_dpi_application_config.py | 24 +- .../models/mana_v2_dpi_custom_application.py | 24 +- graphiant_sdk/models/mana_v2_dscp.py | 2 +- .../models/mana_v2_dynamic_dns_servers.py | 4 +- .../models/mana_v2_edge_device_config.py | 26 +- .../mana_v2_enterprise_configuration.py | 4 +- .../models/mana_v2_enterprise_prefix_set.py | 10 +- .../mana_v2_enterprise_prefix_set_data.py | 6 +- ...ana_v2_enterprise_prefix_set_data_entry.py | 8 +- .../mana_v2_enterprise_prefix_set_entry.py | 8 +- .../mana_v2_enterprise_prefix_set_input.py | 10 +- ...na_v2_enterprise_prefix_set_input_entry.py | 8 +- .../mana_v2_extranet_auto_reverse_routes.py | 2 +- ...v2_extranet_consumer_lan_segment_policy.py | 2 +- ...et_consumer_lan_segment_policy_response.py | 2 +- .../mana_v2_extranet_consumer_nat_rule.py | 4 +- .../models/mana_v2_extranet_device_status.py | 8 +- .../models/mana_v2_extranet_policy.py | 10 +- .../models/mana_v2_extranet_policy_input.py | 8 +- .../models/mana_v2_firewall_zone_pair.py | 4 +- .../models/mana_v2_forwarding_policy_match.py | 16 +- .../mana_v2_forwarding_policy_match_config.py | 8 +- .../models/mana_v2_gateway_details.py | 8 +- .../models/mana_v2_gateway_summary.py | 14 +- ..._gateway_summary_gateway_device_summary.py | 8 +- .../models/mana_v2_gcp_gateway_details.py | 6 +- .../models/mana_v2_global_app_config.py | 8 +- .../models/mana_v2_global_app_port_range.py | 4 +- ...v2_global_bandwidth_consumption_summary.py | 10 +- .../mana_v2_global_content_filter_config.py | 6 +- .../mana_v2_global_content_filter_rule.py | 2 +- .../mana_v2_global_object_device_status.py | 12 +- .../mana_v2_global_object_operation_config.py | 4 +- .../models/mana_v2_global_object_summary.py | 28 +- ..._guest_consumer_site_to_site_vpn_config.py | 2 +- .../models/mana_v2_i_psec_bgp_route_config.py | 8 +- .../models/mana_v2_i_psec_gateway_details.py | 14 +- .../mana_v2_i_psec_gateway_tunnel_details.py | 8 +- .../models/mana_v2_i_psec_profile.py | 26 +- graphiant_sdk/models/mana_v2_i_psec_tunnel.py | 32 +- graphiant_sdk/models/mana_v2_interface.py | 50 +- .../models/mana_v2_interface_address.py | 8 +- .../models/mana_v2_interface_config.py | 28 +- .../models/mana_v2_interface_core_config.py | 44 +- ...a_v2_interface_core_to_core_peer_config.py | 4 +- ...2_interface_core_to_gateway_peer_config.py | 4 +- .../models/mana_v2_interface_dhcp_config.py | 2 +- .../models/mana_v2_interface_i_psec.py | 50 +- .../models/mana_v2_interface_i_psec_config.py | 38 +- .../mana_v2_interface_lagvlan_config.py | 10 +- .../models/mana_v2_interface_ma_csec.py | 10 +- .../mana_v2_interface_sfp_optical_strength.py | 10 +- .../models/mana_v2_interface_tunnel.py | 24 +- .../models/mana_v2_interface_vlan.py | 40 +- .../models/mana_v2_interface_vlan_config.py | 24 +- .../models/mana_v2_interface_wan_config.py | 4 +- .../mana_v2_internet_access_bandwidth_info.py | 4 +- .../models/mana_v2_ip_firewall_policy.py | 6 +- .../models/mana_v2_ip_network_list.py | 6 +- .../models/mana_v2_ip_network_list_config.py | 4 +- .../models/mana_v2_ipfix_exporter.py | 28 +- .../models/mana_v2_ipfix_exporter_config.py | 18 +- .../models/mana_v2_ipsec_connection.py | 10 +- graphiant_sdk/models/mana_v2_l4_port_list.py | 4 +- .../models/mana_v2_l4_port_list_config.py | 2 +- graphiant_sdk/models/mana_v2_lacp_config.py | 6 +- graphiant_sdk/models/mana_v2_lag_interface.py | 4 +- .../models/mana_v2_lag_interface_config.py | 12 +- .../models/mana_v2_lan_segment_sites_map.py | 115 + .../models/mana_v2_latency_bandwidth.py | 6 +- graphiant_sdk/models/mana_v2_lldp_neighbor.py | 14 +- graphiant_sdk/models/mana_v2_location.py | 22 +- .../models/mana_v2_ma_csec_configuration.py | 10 +- ...ana_v2_managed_enterprise_contract_info.py | 98 + .../models/mana_v2_nat_policy_ruleset.py | 8 +- .../mana_v2_nat_policy_ruleset_config.py | 6 +- ...olicy_ruleset_config_nullable_rule_rule.py | 18 +- .../models/mana_v2_nat_policy_ruleset_rule.py | 22 +- graphiant_sdk/models/mana_v2_network_slice.py | 4 +- .../models/mana_v2_network_slice_peer.py | 10 +- graphiant_sdk/models/mana_v2_new_site.py | 4 +- .../mana_v2_notify_filter_profile_include.py | 8 +- ...v2_notify_filter_profile_include_config.py | 4 +- graphiant_sdk/models/mana_v2_ntp.py | 10 +- graphiant_sdk/models/mana_v2_ntp_config.py | 6 +- .../models/mana_v2_nullable_address.py | 4 +- ...ana_v2_nullable_administrative_distance.py | 2 +- .../models/mana_v2_nullable_allow_as_in.py | 2 +- .../mana_v2_nullable_as_path_prepend.py | 2 +- .../mana_v2_nullable_bgp_set_next_hop.py | 2 +- .../models/mana_v2_nullable_call_policy.py | 4 +- ...llable_destination_network_match_config.py | 2 +- .../models/mana_v2_nullable_ebgp_config.py | 2 +- .../models/mana_v2_nullable_gateway_config.py | 4 +- .../models/mana_v2_nullable_hold_timer.py | 2 +- .../models/mana_v2_nullable_interface_name.py | 4 +- ...2_nullable_interface_priority_decrement.py | 4 +- .../models/mana_v2_nullable_ip_protocol.py | 2 +- .../models/mana_v2_nullable_ipv4_address.py | 4 +- .../models/mana_v2_nullable_ipv6_address.py | 4 +- .../mana_v2_nullable_keep_alive_timer.py | 2 +- .../mana_v2_nullable_lag_member_interface.py | 4 +- .../mana_v2_nullable_local_preferance.py | 2 +- ...mana_v2_nullable_ma_csec_rekey_interval.py | 2 +- ...e_ma_csec_replay_protection_window_size.py | 2 +- .../models/mana_v2_nullable_max_prefix.py | 2 +- .../models/mana_v2_nullable_md5_password.py | 2 +- .../models/mana_v2_nullable_meter_rates.py | 2 +- .../models/mana_v2_nullable_metric.py | 4 +- ...ana_v2_nullable_nat_policy_ruleset_name.py | 4 +- ...a_v2_nullable_ospf_admin_distance_value.py | 2 +- ...na_v2_nullable_ospf_dead_interval_value.py | 2 +- ...a_v2_nullable_ospf_hello_interval_value.py | 2 +- ...nullable_ospf_retransmit_interval_value.py | 2 +- .../models/mana_v2_nullable_policy_name.py | 4 +- .../models/mana_v2_nullable_prefix_set.py | 2 +- .../mana_v2_nullable_protocol_route_type.py | 2 +- .../mana_v2_nullable_routing_protocol.py | 4 +- .../models/mana_v2_nullable_session_limit.py | 2 +- .../mana_v2_nullable_set_circuit_config.py | 4 +- ...na_v2_nullable_set_circuit_label_config.py | 4 +- .../mana_v2_nullable_set_sla_class_config.py | 2 +- .../mana_v2_nullable_site_interface_name.py | 4 +- ...v2_nullable_snmp_community_config_value.py | 4 +- ..._nullable_snmp_engine_endpoints_address.py | 4 +- ...v2_nullable_source_network_match_config.py | 2 +- .../models/mana_v2_nullable_stale_purge.py | 4 +- .../models/mana_v2_nullable_tcp_mss_v4.py | 2 +- .../models/mana_v2_nullable_tcp_mss_v6.py | 2 +- ...v2_nullable_traffic_policy_ruleset_name.py | 4 +- .../models/mana_v2_nullable_weight.py | 2 +- .../models/mana_v2_oci_gateway_details.py | 6 +- .../models/mana_v2_osp_fv2_process.py | 10 +- .../models/mana_v2_osp_fv3_process.py | 10 +- graphiant_sdk/models/mana_v2_ospf_area.py | 8 +- .../models/mana_v2_ospf_area_config.py | 6 +- .../models/mana_v2_ospf_interface.py | 30 +- .../models/mana_v2_ospf_interface_config.py | 14 +- .../models/mana_v2_ospf_process_config.py | 8 +- .../models/mana_v2_ospf_redistribute.py | 6 +- ...na_v2_ospf_redistribute_protocol_config.py | 6 +- .../models/mana_v2_overlay_filters.py | 4 +- graphiant_sdk/models/mana_v2_policer.py | 4 +- graphiant_sdk/models/mana_v2_policy_match.py | 12 +- graphiant_sdk/models/mana_v2_port_range.py | 4 +- .../models/mana_v2_port_range_config.py | 4 +- graphiant_sdk/models/mana_v2_prefix_set.py | 16 +- .../models/mana_v2_prefix_set_config.py | 10 +- ..._prefix_set_config_nullable_entry_entry.py | 8 +- .../models/mana_v2_prefix_set_entry.py | 10 +- .../models/mana_v2_prefix_set_policy.py | 6 +- ..._v2_prometheus_remote_write_sink_config.py | 8 +- .../models/mana_v2_prometheus_rule_config.py | 12 +- .../mana_v2_prometheus_rule_group_config.py | 6 +- ...ana_v2_prometheus_sys_db_monitor_config.py | 4 +- .../models/mana_v2_psk_configuration.py | 10 +- graphiant_sdk/models/mana_v2_public_vif.py | 100 + ...mana_v2_public_vif_consumer_lan_segment.py | 90 + ...ublic_vif_consumer_lan_segment_response.py | 110 + .../mana_v2_public_vif_consumer_policy.py | 102 + ..._v2_public_vif_consumer_policy_response.py | 104 + .../models/mana_v2_public_vif_device.py | 93 + .../models/mana_v2_public_vif_dynamic.py | 88 + .../models/mana_v2_public_vif_fixed.py | 96 + .../models/mana_v2_public_vif_fixed_nat.py | 90 + .../mana_v2_public_vif_producer_policy.py | 133 + ..._v2_public_vif_producer_policy_response.py | 153 + .../models/mana_v2_public_vif_summary.py | 98 + graphiant_sdk/models/mana_v2_qo_s_profile.py | 6 +- .../models/mana_v2_qo_s_profile_queue.py | 6 +- graphiant_sdk/models/mana_v2_region.py | 8 +- .../models/mana_v2_region_coordinates.py | 6 +- .../models/mana_v2_regional_allocation.py | 14 +- ..._regional_bandwidth_consumption_summary.py | 6 +- graphiant_sdk/models/mana_v2_route_tag.py | 6 +- .../models/mana_v2_route_tag_device.py | 6 +- .../models/mana_v2_route_tag_element.py | 6 +- graphiant_sdk/models/mana_v2_route_tag_id.py | 6 +- .../models/mana_v2_route_tag_summary.py | 14 +- .../models/mana_v2_routing_policy.py | 16 +- .../models/mana_v2_routing_policy_config.py | 12 +- ...icy_config_nullable_statement_statement.py | 2 +- ...tement_statement_nullable_action_action.py | 4 +- ...tatement_statement_nullable_match_match.py | 2 +- .../mana_v2_routing_policy_statement.py | 4 +- ...mana_v2_routing_policy_statement_action.py | 22 +- .../mana_v2_routing_policy_statement_match.py | 14 +- .../models/mana_v2_sak_configuration.py | 8 +- .../models/mana_v2_security_policy_rule.py | 8 +- .../mana_v2_security_policy_rule_row.py | 2 +- .../models/mana_v2_security_policy_ruleset.py | 14 +- .../mana_v2_security_policy_ruleset_config.py | 8 +- ...olicy_ruleset_config_nullable_rule_rule.py | 10 +- .../mana_v2_security_policy_ruleset_rule.py | 22 +- graphiant_sdk/models/mana_v2_security_zone.py | 8 +- .../models/mana_v2_security_zone_config.py | 4 +- .../mana_v2_security_zone_pair_config.py | 6 +- ...a_v2_single_route_tag_route_tag_element.py | 6 +- graphiant_sdk/models/mana_v2_site.py | 16 +- .../models/mana_v2_site_device_stub.py | 6 +- .../models/mana_v2_site_device_summary.py | 91 + .../models/mana_v2_site_information.py | 90 + ...mana_v2_site_lan_segment_device_buckets.py | 105 + graphiant_sdk/models/mana_v2_site_list.py | 8 +- .../models/mana_v2_site_list_entry.py | 4 +- .../models/mana_v2_site_list_site_entry.py | 4 +- .../models/mana_v2_site_to_site_i_psec.py | 32 +- ...2_site_to_site_i_psec_i_psec_bgp_routes.py | 10 +- .../models/mana_v2_sla_conformance.py | 6 +- .../models/mana_v2_sla_information.py | 6 +- graphiant_sdk/models/mana_v2_snmp.py | 44 +- .../models/mana_v2_snmp_community.py | 4 +- graphiant_sdk/models/mana_v2_snmp_config.py | 40 +- .../models/mana_v2_snmp_engine_endpoint.py | 12 +- .../mana_v2_snmp_engine_endpoint_config.py | 10 +- .../mana_v2_snmp_notify_filter_profile.py | 4 +- ...na_v2_snmp_notify_filter_profile_config.py | 2 +- graphiant_sdk/models/mana_v2_snmp_target.py | 22 +- .../models/mana_v2_snmp_target_config.py | 20 +- .../models/mana_v2_snmp_usm_local_user.py | 12 +- .../mana_v2_snmp_usm_local_user_config.py | 10 +- .../models/mana_v2_snmp_usm_remote_user.py | 12 +- .../mana_v2_snmp_usm_remote_user_config.py | 10 +- .../models/mana_v2_snmp_vacm_group.py | 4 +- .../models/mana_v2_snmp_vacm_group_access.py | 14 +- .../mana_v2_snmp_vacm_group_access_config.py | 14 +- .../models/mana_v2_snmp_vacm_group_member.py | 10 +- .../mana_v2_snmp_vacm_group_member_config.py | 8 +- .../models/mana_v2_snmp_vacm_view.py | 4 +- .../models/mana_v2_snmp_vacm_view_config.py | 2 +- .../models/mana_v2_snmp_vacm_view_include.py | 8 +- .../mana_v2_snmp_vacm_view_include_config.py | 4 +- graphiant_sdk/models/mana_v2_static_route.py | 8 +- .../models/mana_v2_static_route_config.py | 8 +- .../models/mana_v2_static_route_nexthop.py | 14 +- .../mana_v2_static_route_nexthop_config.py | 10 +- graphiant_sdk/models/mana_v2_subnet.py | 6 +- .../models/mana_v2_syslog_collector.py | 26 +- .../models/mana_v2_syslog_collector_config.py | 20 +- graphiant_sdk/models/mana_v2_time_period.py | 6 +- .../models/mana_v2_traffic_policy_action.py | 8 +- .../models/mana_v2_traffic_policy_rule.py | 4 +- .../models/mana_v2_traffic_policy_rule_row.py | 2 +- .../models/mana_v2_traffic_policy_ruleset.py | 14 +- .../mana_v2_traffic_policy_ruleset_config.py | 8 +- ...olicy_ruleset_config_nullable_rule_rule.py | 6 +- ...uleset_config_nullable_rule_rule_action.py | 4 +- .../mana_v2_traffic_policy_ruleset_rule.py | 10 +- ...a_v2_traffic_policy_ruleset_rule_action.py | 14 +- .../models/mana_v2_udp_flow_table.py | 4 +- .../models/mana_v2_vacm_group_config.py | 4 +- graphiant_sdk/models/mana_v2_vendor_detail.py | 4 +- .../models/mana_v2_version_metadata.py | 8 +- graphiant_sdk/models/mana_v2_vrf.py | 18 +- graphiant_sdk/models/mana_v2_vrrp_group.py | 24 +- .../models/mana_v2_vrrp_group_config.py | 16 +- ...vrrp_group_interface_priority_decrement.py | 4 +- .../models/mana_v2_vrrp_group_member.py | 18 +- graphiant_sdk/models/mana_v2_zone.py | 6 +- .../mana_v2_zone_firewall_ip_policy_config.py | 4 +- .../models/mana_v2_zone_firewall_policy.py | 2 +- .../models/mana_v2device_snapshot_row.py | 10 +- .../models/mana_v2topology_device.py | 26 +- .../onboarding_cloud_init_configuration.py | 8 +- .../models/onboarding_cloud_init_token.py | 8 +- .../onboarding_cloud_init_token_token.py | 2 +- .../models/onboarding_hardware_inventory.py | 28 +- graphiant_sdk/models/onboarding_interface.py | 6 +- graphiant_sdk/models/onboarding_ip.py | 6 +- .../models/onboarding_onboarding_summary.py | 12 +- .../models/pokedex_device_history_info.py | 10 +- .../models/pokedex_device_mapping_info.py | 10 +- .../models/routing_afi_route_count.py | 4 +- graphiant_sdk/models/routing_arp_entry.py | 8 +- .../models/routing_ospf_interface.py | 18 +- graphiant_sdk/models/routing_ospf_nbr.py | 10 +- .../models/routing_ospf_network_lsa.py | 2 +- graphiant_sdk/models/routing_ospf_next_hop.py | 10 +- graphiant_sdk/models/routing_ospf_route.py | 2 +- .../models/routing_ospf_router_lsa_link.py | 8 +- .../models/routing_ospf_statistics.py | 4 +- .../models/routing_ospf_summary_lsa.py | 2 +- .../models/routing_ospfas_external_lsa.py | 10 +- graphiant_sdk/models/routing_ospflsa.py | 14 +- .../models/routing_ospflsa_tos_metric.py | 4 +- graphiant_sdk/models/routing_prefix_filter.py | 14 +- graphiant_sdk/models/routing_vrrp_entry.py | 22 +- graphiant_sdk/models/routingbgp_counter.py | 12 +- graphiant_sdk/models/routingprefix.py | 6 +- graphiant_sdk/models/search_edge_summary.py | 52 +- graphiant_sdk/models/search_search_filter.py | 6 +- graphiant_sdk/models/search_search_result.py | 6 +- .../statsmon_backbonehealth_control_plane.py | 2 +- .../statsmon_backbonehealth_data_plane.py | 2 +- ...get_qoe_matrix_response_devices_summary.py | 4 +- ...qoe_matrix_response_qoe_session_summary.py | 6 +- ...nse_qoe_session_summary_qoe_session_box.py | 10 +- .../statsmon_backbonehealth_system_plane.py | 2 +- .../statsmon_backbonehealth_transitions.py | 4 +- ...htracker_bw_usage_by_enterprise_summary.py | 10 +- ...mon_bandwidthtracker_bw_usage_by_region.py | 8 +- ...tracker_bw_usage_by_region_edge_summary.py | 8 +- ...ndwidthtracker_bw_usage_by_role_summary.py | 6 +- ...tsmon_bandwidthtracker_bw_usage_by_site.py | 12 +- ...htracker_bw_usage_by_site_edge_provider.py | 10 +- ...dwidthtracker_bw_usage_by_site_provider.py | 6 +- ...ndwidthtracker_bw_usage_by_site_summary.py | 6 +- ...andwidthtracker_bw_usage_by_top_regions.py | 4 +- ..._bandwidthtracker_bw_usage_by_top_sites.py | 6 +- ...tatsmon_bandwidthtracker_bw_usage_chart.py | 2 +- ...n_bandwidthtracker_bw_usage_chart_value.py | 6 +- ...on_bandwidthtracker_bw_usage_csv_record.py | 14 +- .../statsmon_bandwidthtracker_time_window.py | 2 +- .../models/statsmon_circuit_incidents.py | 4 +- .../models/statsmon_circuits_incidents.py | 4 +- .../statsmon_circuits_incidents_data.py | 2 +- .../models/statsmon_extranet_edge_status.py | 10 +- .../models/statsmon_extranet_prefix_health.py | 2 +- .../models/statsmon_extranet_server_status.py | 4 +- .../statsmon_extranet_service_health.py | 4 +- .../models/statsmon_extranet_site_status.py | 6 +- graphiant_sdk/models/statsmon_time_window.py | 2 +- ...statsmon_troubleshooting_circuit_filter.py | 2 +- .../statsmon_troubleshooting_control_plane.py | 2 +- .../statsmon_troubleshooting_data_plane.py | 2 +- .../statsmon_troubleshooting_device_filter.py | 4 +- .../statsmon_troubleshooting_edge_status.py | 6 +- .../models/statsmon_troubleshooting_issue.py | 22 +- ...smon_troubleshooting_lan_segment_filter.py | 2 +- .../statsmon_troubleshooting_last_crash.py | 4 +- .../models/statsmon_troubleshooting_region.py | 4 +- .../statsmon_troubleshooting_session_sla.py | 4 +- .../statsmon_troubleshooting_site_filter.py | 4 +- .../statsmon_troubleshooting_sla_value.py | 10 +- .../statsmon_troubleshooting_system_plane.py | 2 +- .../statsmon_troubleshooting_system_stat.py | 6 +- .../statsmon_troubleshooting_time_window.py | 2 +- .../statsmon_troubleshooting_transitions.py | 4 +- .../models/statsmon_v2_bfd_stats_selector.py | 6 +- .../models/statsmon_v2_bgp_stats_selector.py | 6 +- ...mon_v2_circuit_bandwidth_stats_selector.py | 4 +- ...atsmon_v2_circuit_incidents_data_sample.py | 2 +- ...circuit_incidents_data_sample_incidents.py | 4 +- .../statsmon_v2_circuit_incidents_selector.py | 2 +- .../models/statsmon_v2_circuit_summary.py | 50 +- ...tatsmon_v2_circuit_utilization_selector.py | 2 +- .../models/statsmon_v2_connection.py | 18 +- .../models/statsmon_v2_device_segments.py | 2 +- graphiant_sdk/models/statsmon_v2_edge.py | 8 +- .../statsmon_v2_edgeedge_circuit_info.py | 18 +- .../statsmon_v2_interface_stats_selector.py | 4 +- .../statsmon_v2_ip_sec_stats_selector.py | 4 +- graphiant_sdk/models/statsmon_v2_node.py | 10 +- .../models/statsmon_v2_node_circuit_info.py | 32 +- .../models/statsmon_v2_node_connection.py | 18 +- .../models/statsmon_v2_node_device_info.py | 30 +- .../statsmon_v2_policy_stats_selector.py | 4 +- ...tatsmon_v2_queue_instant_stats_selector.py | 6 +- .../models/statsmon_v2_queue_utilization.py | 12 +- .../models/statsmon_v2_stats_sample.py | 6 +- .../statsmon_v2_system_stats_selector.py | 4 +- .../models/statsmon_v2_time_window.py | 2 +- .../statsmon_v2_twamp_stats_selector.py | 8 +- .../statsmon_v2_twamp_visual_selector.py | 6 +- graphiant_sdk/models/statsmon_v2_vrf_route.py | 8 +- graphiant_sdk/models/syslogmon_histogram.py | 2 +- graphiant_sdk/models/syslogmon_log.py | 10 +- .../models/syslogmon_syslogs_selector.py | 2 +- .../models/upgrade_gcs_release_category.py | 6 +- .../models/upgrade_gcs_release_details.py | 2 +- graphiant_sdk/models/upgrade_inventory_key.py | 4 +- .../models/upgrade_monthly_recurrence.py | 6 +- .../models/upgrade_release_summary.py | 4 +- graphiant_sdk/models/upgrade_rollout.py | 6 +- .../models/upgrade_rollout_config.py | 8 +- .../models/upgrade_rollout_device.py | 4 +- .../models/upgrade_running_sw_version.py | 2 +- graphiant_sdk/models/upgrade_schedule.py | 10 +- graphiant_sdk/models/upgrade_sw_version.py | 8 +- .../models/upgrade_upgrade_canary_profile.py | 8 +- .../models/upgrade_upgrade_occurrence.py | 12 +- .../models/upgrade_upgrade_summary.py | 10 +- .../models/upgrade_weekly_recurrence.py | 4 +- .../models/upgrade_yearly_recurrence.py | 8 +- .../models/v1_account_email_patch_request.py | 2 +- .../models/v1_account_info_patch_request.py | 6 +- ...1_account_mfa_confirmation_post_request.py | 8 +- .../models/v1_account_mfa_get_response.py | 4 +- .../models/v1_account_mfa_put_request.py | 4 +- .../models/v1_account_mfa_put_response.py | 8 +- .../v1_account_password_patch_request.py | 4 +- .../models/v1_activity_logs_post_request.py | 4 +- .../models/v1_activity_logs_post_response.py | 4 +- .../v1_apps_app_summary_post_request.py | 4 +- .../models/v1_apps_bandwidth_post_request.py | 12 +- ..._apps_device_device_id_top_post_request.py | 2 +- ...apps_device_device_id_top_post_response.py | 2 +- .../v1_apps_site_site_id_top_post_request.py | 2 +- .../v1_apps_site_site_id_top_post_response.py | 2 +- .../v1_apps_visualization_post_request.py | 8 +- .../v1_apps_visualization_post_response.py | 4 +- .../models/v1_audit_logs_post_request.py | 6 +- .../models/v1_audit_logs_post_response.py | 4 +- .../models/v1_auth_error_post_response.py | 6 +- .../models/v1_auth_gcs_post_request.py | 4 +- graphiant_sdk/models/v1_auth_get_response.py | 8 +- .../models/v1_auth_login_post_request.py | 6 +- .../models/v1_auth_login_post_response.py | 14 +- .../models/v1_auth_login_pre_get_response.py | 10 +- .../models/v1_auth_login_temp_post_request.py | 6 +- .../models/v1_auth_mfa_post500_response.py | 4 +- .../models/v1_auth_mfa_post_request.py | 8 +- graphiant_sdk/models/v1_auth_patch_request.py | 8 +- graphiant_sdk/models/v1_auth_put_request.py | 8 +- ...1_auth_refresh_get_entry_point_response.py | 2 +- .../models/v1_auth_user_get_response.py | 6 +- ...e_health_device_device_id_post_response.py | 6 +- ...trix_get_response_device_et_wan_summary.py | 8 +- ...t_wan_matrix_get_response_region_status.py | 4 +- ...sla_matrix_get_response_devices_summary.py | 4 +- ...t_sla_matrix_get_response_region_status.py | 2 +- ...tet_sla_matrix_get_response_sla_summary.py | 24 +- ...health_overview_post_request_dimensions.py | 28 +- ...h_overview_post_response_device_summary.py | 16 +- ...ost_response_device_counts_device_count.py | 4 +- ...wtracker_region_edge_chart_post_request.py | 2 +- ..._bwtracker_region_edge_csv_post_request.py | 2 +- ...racker_region_edge_details_post_request.py | 2 +- ...racker_region_edge_summary_post_request.py | 2 +- ...acker_region_gateway_chart_post_request.py | 2 +- ...tracker_region_gateway_csv_post_request.py | 2 +- ...ker_region_gateway_details_post_request.py | 2 +- ...ker_region_gateway_summary_post_request.py | 2 +- ...wtracker_region_site_chart_post_request.py | 4 +- ...racker_region_site_details_post_request.py | 4 +- ..._region_site_gateway_chart_post_request.py | 4 +- ...egion_site_gateway_details_post_request.py | 4 +- ...egion_site_gateway_summary_post_request.py | 4 +- ...racker_region_site_summary_post_request.py | 4 +- .../v1_bwtracker_site_csv_post_request.py | 4 +- ...bwtracker_site_gateway_csv_post_request.py | 4 +- ..._bucket_app_name_get_response_assurance.py | 4 +- ...ance_assurances_global_get_response_row.py | 6 +- ...ances_global_get_response_row_app_entry.py | 2 +- ...ances_global_get_response_row_lan_entry.py | 2 +- ...nces_global_get_response_row_site_entry.py | 2 +- ...urance_assurances_global_id_put_request.py | 2 +- ...surance_assurances_global_post_response.py | 2 +- ...assurance_flex_algos_get_response_entry.py | 8 +- ...1_device_routing_bgp_nbrid_get_response.py | 2 +- ...e_routing_bgp_nbrs_details_get_response.py | 6 +- ...1_device_routing_odp_nbrid_get_response.py | 2 +- ...ting_ospfv2_area_interface_get_response.py | 2 +- ...spfv2_area_interface_nbrid_get_response.py | 2 +- ...e_routing_ospfv2_area_lsdb_get_response.py | 2 +- ...ce_routing_ospfv2_area_nbr_get_response.py | 2 +- ...vice_routing_ospfv2_areaid_get_response.py | 2 +- ...device_routing_ospfv2_lsdb_get_response.py | 2 +- ..._device_routing_ospfv2_rib_get_response.py | 2 +- ...ting_ospfv3_area_interface_get_response.py | 2 +- ...e_routing_ospfv3_area_lsdb_get_response.py | 2 +- ...ce_routing_ospfv3_area_nbr_get_response.py | 2 +- ...vice_routing_ospfv3_areaid_get_response.py | 2 +- ...device_routing_ospfv3_lsdb_get_response.py | 2 +- ..._device_routing_ospfv3_rib_get_response.py | 2 +- ...b_route_count_post_response_route_count.py | 4 +- ...outing_vrf_bgp_route_count_post_request.py | 2 +- ...p_route_count_post_response_route_count.py | 4 +- .../models/v1_device_snapshot_post_request.py | 8 +- .../models/v1_device_snapshot_put_request.py | 6 +- .../v1_device_status_history_post_request.py | 2 +- .../models/v1_device_status_post_request.py | 2 +- .../models/v1_devices_bringup_put_request.py | 2 +- .../v1_devices_bringup_token_post_request.py | 4 +- .../v1_devices_bringup_token_post_response.py | 2 +- ...date_circuits_get_response_circuit_info.py | 8 +- ...ociations_get_response_vrf_associations.py | 6 +- ...v1_devices_device_id_config_put_request.py | 6 +- ...1_devices_device_id_config_put_response.py | 4 +- ..._device_id_controller_peers_put_request.py | 4 +- ...v1_devices_device_id_draft_post_request.py | 4 +- ...1_devices_device_id_draft_post_response.py | 4 +- ...ices_device_id_jobs_job_id_get_response.py | 2 +- ...y_applications_get_response_application.py | 8 +- ...es_device_id_vrf_protocols_get_response.py | 14 +- ...evices_inventory_enterprise_put_request.py | 2 +- ...v1_devices_inventory_post_response_data.py | 4 +- ...evices_oauth_authorization_get_response.py | 2 +- .../models/v1_devices_oauth_post_request.py | 12 +- .../models/v1_devices_oauth_post_response.py | 6 +- .../models/v1_devices_rma_post_request.py | 4 +- ...route_count_get_response_protocol_count.py | 2 +- ...vices_session_status_post_response_data.py | 8 +- ...vices_summary_get_response_site_summary.py | 4 +- ...et_response_site_summary_device_summary.py | 12 +- ...v1_devices_upgrade_schedule_put_request.py | 2 +- ...ade_schedule_put_request_device_version.py | 2 +- ...c_archive_create_device_id_post_request.py | 2 +- ..._archive_create_device_id_post_response.py | 2 +- ...tic_archive_edit_archive_id_put_request.py | 2 +- ...gnostic_bgp_reset_device_id_put_request.py | 8 +- ...iagnostic_gnmi_ping_get_response_result.py | 6 +- ...c_interface_reset_device_id_put_request.py | 2 +- ...1_diagnostic_otp_device_id_get_response.py | 2 +- ...stic_packetcapture_pcap_id_get_response.py | 10 +- ...nostic_packetcapture_start_post_request.py | 6 +- ...ostic_packetcapture_start_post_response.py | 2 +- ...gnostic_packetcapture_stop_post_request.py | 2 +- .../models/v1_diagnostic_ping_post_request.py | 6 +- .../v1_diagnostic_ping_post_response.py | 2 +- ...diagnostic_reboot_device_id_put_request.py | 2 +- ...set_ipsec_session_device_id_put_request.py | 6 +- .../v1_diagnostic_speedtest_post_request.py | 2 +- .../v1_diagnostic_speedtest_post_response.py | 2 +- ...diagnostic_speedtest_report_put_request.py | 4 +- ...iagnostic_speedtest_report_put_response.py | 4 +- .../v1_diagnostic_traceroute_post_request.py | 6 +- .../v1_diagnostic_traceroute_post_response.py | 2 +- ..._edges_hardware_unassigned_get_response.py | 2 +- .../models/v1_edges_summary_get_response.py | 2 +- .../v1_enterprise_contract_put_request.py | 2 +- ...prises_enterprise_id_admin_get_response.py | 2 +- .../models/v1_enterprises_patch_request.py | 32 +- ..._enterprises_patch_request_token_expiry.py | 4 +- .../models/v1_enterprises_put_request.py | 32 +- ...ng_service_bandwidth_usage_post_request.py | 14 +- ...g_service_bandwidth_usage_post_response.py | 2 +- ...ervice_consumers_usage_top_post_request.py | 6 +- ...rvice_consumers_usage_top_post_response.py | 4 +- ...rvice_consumption_overview_post_request.py | 14 +- ...vice_consumption_overview_post_response.py | 2 +- ...vice_service_customer_list_post_request.py | 4 +- ...ing_service_service_health_post_request.py | 4 +- ...rvice_overtime_consumption_post_request.py | 12 +- ..._extranet_public_vif_check_post_request.py | 102 + ...extranet_public_vif_check_post_response.py | 104 + .../v1_extranet_public_vif_get_response.py | 96 + .../v1_extranet_public_vif_id_get_response.py | 104 + .../v1_extranet_public_vif_id_put_request.py | 98 + .../v1_extranet_public_vif_id_put_response.py | 104 + .../v1_extranet_public_vif_post_request.py | 102 + .../v1_extranet_public_vif_post_response.py | 104 + ...1_extranet_sites_usage_top_post_request.py | 8 +- ...ites_usage_top_post_response_site_usage.py | 6 +- ..._consumer_device_status_id_get_response.py | 2 +- ..._extranets_b2b_consumer_id_get_response.py | 4 +- .../v1_extranets_b2b_consumer_post_request.py | 4 +- ...v1_extranets_b2b_consumer_post_response.py | 2 +- ...anets_b2b_customer_info_id_get_response.py | 8 +- ..._extranets_b2b_id_producer_get_response.py | 4 +- .../v1_extranets_b2b_id_put_response.py | 4 +- ...stomer_id_consumer_details_get_response.py | 8 +- ...ls_get_response_ipsec_vpn_tunnel_config.py | 64 +- ...ering_consumer_id_prefixes_put_response.py | 2 +- ..._peering_consumer_match_id_post_request.py | 4 +- ...peering_consumer_match_id_post_response.py | 6 +- ...b2b_peering_customer_id_delete_response.py | 4 +- ...ts_b2b_peering_customer_id_get_response.py | 8 +- ...anets_b2b_peering_customer_post_request.py | 4 +- ...nets_b2b_peering_customer_post_response.py | 4 +- ..._service_to_customer_id_delete_response.py | 4 +- ...tch_service_to_customer_id_get_response.py | 8 +- ..._match_service_to_customer_post_request.py | 2 +- ...match_service_to_customer_post_response.py | 2 +- ..._to_customer_service_status_put_request.py | 4 +- ...to_customer_service_status_put_response.py | 4 +- ...ts_b2b_peering_producer_id_get_response.py | 6 +- ...anets_b2b_peering_producer_post_request.py | 4 +- ...nets_b2b_peering_producer_post_response.py | 4 +- .../models/v1_extranets_b2b_post_request.py | 4 +- .../models/v1_extranets_b2b_post_response.py | 4 +- .../v1_extranets_id_apply_post_response.py | 2 +- ...onitoring_lan_segments_get_response_vrf.py | 6 +- ...anets_monitoring_nat_usage_get_response.py | 4 +- ...oring_nat_usage_get_response_allocation.py | 10 +- ...ng_traffic_security_policy_post_request.py | 4 +- ..._extranets_source_segments_post_request.py | 4 +- .../v1_flows_flow_table_post_request.py | 10 +- .../models/v1_flows_topology_post_request.py | 2 +- ...id_get_response_ipsec_vpn_tunnel_config.py | 64 +- ..._vrfs_vrf_id_inside_subnet_get_response.py | 4 +- .../models/v1_gateways_post_response.py | 6 +- .../models/v1_gateways_put_request.py | 4 +- .../models/v1_gateways_status_post_request.py | 6 +- ...ateways_status_post_request_device_info.py | 4 +- ...lobal_apps_app_lists_get_response_entry.py | 4 +- ...obal_apps_categories_get_response_entry.py | 2 +- ...1_global_apps_custom_get_response_entry.py | 4 +- ...lobal_apps_graphiant_get_response_entry.py | 4 +- .../models/v1_global_config_patch_response.py | 2 +- ...global_content_filters_get_response_row.py | 4 +- ...tent_filters_get_response_row_lan_entry.py | 2 +- ...ent_filters_get_response_row_rule_entry.py | 2 +- ...ent_filters_get_response_row_site_entry.py | 2 +- ...v1_global_content_filters_post_response.py | 2 +- ...ofile_get_response_i_psec_profile_count.py | 6 +- ...e_to_site_get_response_site_to_site_vpn.py | 8 +- ..._global_lan_segments_get_response_entry.py | 12 +- .../v1_global_lan_segments_post_request.py | 6 +- .../v1_global_lan_segments_post_response.py | 6 +- ...an_segments_vrf_id_devices_get_response.py | 4 +- ...ments_vrf_id_devices_get_response_entry.py | 10 +- .../v1_global_site_lists_get_response.py | 4 +- ...v1_global_site_lists_get_response_entry.py | 12 +- .../v1_global_site_lists_id_get_response.py | 4 +- .../v1_global_site_lists_id_put_request.py | 4 +- .../v1_global_site_lists_id_put_response.py | 6 +- .../v1_global_site_lists_post_request.py | 6 +- .../v1_global_site_lists_post_response.py | 6 +- .../models/v1_global_summary_post_request.py | 14 +- .../models/v1_global_sync_post_request.py | 14 +- .../v1_groups_id_members_post_request.py | 2 +- .../models/v1_groups_id_patch_request.py | 10 +- graphiant_sdk/models/v1_groups_put_request.py | 14 +- .../v1_invitation_email_post_request.py | 14 +- ..._lldp_interface_id_summary_get_response.py | 4 +- graphiant_sdk/models/v1_logs_post_request.py | 8 +- graphiant_sdk/models/v1_logs_post_response.py | 4 +- ...d_enterprise_contract_info_get_response.py | 104 + ...y_applications_get_response_application.py | 8 +- ...olicy_route_tag_sets_id_delete_response.py | 4 +- .../v1_policy_route_tag_sets_post_response.py | 4 +- .../models/v1_presharedkey_get_response.py | 4 +- .../v1_site_details_sitelists_post_request.py | 2 +- .../v1_sites_map_details_get_response.py | 101 + graphiant_sdk/models/v1_sites_post_request.py | 2 +- ...ites_site_id_circuits_get_response_data.py | 2 +- ...tware_auto_upgrade_default_get_response.py | 4 +- ...ftware_auto_upgrade_default_put_request.py | 4 +- ...software_releases_download_get_response.py | 2 +- .../v1_software_rollouts_post_response.py | 2 +- .../v1_software_rollouts_put_request.py | 2 +- ...software_rollouts_schedule_post_request.py | 4 +- ...are_running_details_get_response_device.py | 8 +- ...ng_summary_get_response_version_summary.py | 6 +- ...lkers_device_device_id_top_post_request.py | 2 +- ...1_talkers_site_site_id_top_post_request.py | 2 +- .../models/v1_temp_password_put_request.py | 6 +- ...shooting_device_device_id_post_response.py | 10 +- ...ting_enterprise_post_request_dimensions.py | 32 +- ...g_enterprise_post_response_site_summary.py | 14 +- ...ctivity_status_get_response_site_status.py | 4 +- ...oubleshooting_site_site_id_get_response.py | 4 +- ...ts_post_response_site_counts_site_count.py | 4 +- .../v1_users_email_password_patch_request.py | 2 +- ...v1_users_passwords_expire_post_response.py | 4 +- graphiant_sdk/models/v1_users_put_request.py | 10 +- .../models/v1_version_post_request.py | 4 +- .../v1_ztagent_bindings_get_response.py | 6 +- .../models/v1_ztagent_bindings_put_request.py | 6 +- .../v2_ack_createupdate_post_request.py | 2 +- ...otification_enable_disable_post_request.py | 2 +- ...ted_notification_get_state_get_response.py | 4 +- .../v2_allowlist_create_post_request.py | 4 +- ...istant_add_to_conversation_post_request.py | 2 +- ...stant_add_to_conversation_post_response.py | 14 +- ...nversation_context_history_post_request.py | 4 +- ...n_interface_enable_disable_post_request.py | 4 +- ...nversation_interface_state_get_response.py | 4 +- ...t_get_conversation_details_post_request.py | 4 +- ..._get_conversation_details_post_response.py | 4 +- ...ssistant_get_conversations_post_request.py | 2 +- ...sistant_get_conversations_post_response.py | 2 +- ...t_update_conversation_name_post_request.py | 4 +- .../v2_assistant_version_post_response.py | 2 +- ...e_applicationdetailsbyname_post_request.py | 12 +- ...surance_bucket_app_servers_post_request.py | 8 +- .../v2_assurance_bucket_apps_post_request.py | 8 +- ..._assurance_bucket_services_post_request.py | 2 +- ...ssurance_bucket_topologies_post_request.py | 2 +- ...v2_assurance_bucketdetails_post_request.py | 4 +- ...nce_create_dnsproxy_entry_post_response.py | 2 +- ...surance_create_user_report_post_request.py | 10 +- ...urance_create_user_report_post_response.py | 2 +- ...reateclassifiedapplication_post_request.py | 2 +- ...eateclassifiedapplication_post_response.py | 2 +- ...rance_download_user_report_get_response.py | 2 +- ...ogy_client_session_details_post_request.py | 2 +- ...e_topology_client_sessions_post_request.py | 16 +- ..._topology_client_summaries_post_request.py | 14 +- ..._client_summaries_post_response_summary.py | 18 +- ...surance_topology_inventory_post_request.py | 4 +- ...ssurance_topology_overview_post_request.py | 14 +- ...surance_topology_overview_post_response.py | 4 +- ...pology_overview_post_response_georegion.py | 2 +- ...ce_topology_region_summary_post_request.py | 2 +- ...region_summary_post_response_site_entry.py | 8 +- ...ce_topology_site_summaries_post_request.py | 12 +- ...gy_site_summaries_post_response_summary.py | 4 +- .../models/v2_audit_logs_post_request.py | 4 +- .../models/v2_audit_logs_post_response.py | 4 +- .../models/v2_childalertlist_post_request.py | 2 +- ..._device_device_id_topology_post_request.py | 2 +- ...vice_id_topology_post_response_snapshot.py | 2 +- ...tranet_consumers_usage_top_post_request.py | 6 +- ...ranet_consumers_usage_top_post_response.py | 4 +- ...net_lan_segments_usage_top_post_request.py | 6 +- ...rvice_overtime_consumption_post_request.py | 12 +- ...sites_consumption_overview_post_request.py | 14 +- ...ites_consumption_overview_post_response.py | 2 +- .../v2_extranet_sites_usage_post_request.py | 14 +- .../v2_extranet_sites_usage_post_response.py | 2 +- .../v2_extranet_total_usage_post_request.py | 6 +- .../v2_extranet_total_usage_post_response.py | 2 +- ...anets_monitoring_consumers_post_request.py | 4 +- .../models/v2_monitoring_bfd_post_request.py | 2 +- .../models/v2_monitoring_bgp_post_request.py | 2 +- ...itoring_circuits_bandwidth_post_request.py | 2 +- ...g_circuits_bandwidth_post_response_data.py | 4 +- ...onitoring_circuits_summary_post_request.py | 2 +- ...oring_circuits_utilization_post_request.py | 2 +- ...circuits_utilization_post_response_data.py | 2 +- ...ing_circuits_visualization_post_request.py | 2 +- ...ng_circuits_visualization_post_response.py | 2 +- ...oring_extranet_log_details_post_request.py | 6 +- ...t_log_details_post_response_log_details.py | 8 +- ...ng_extranet_status_details_get_response.py | 4 +- ...nitoring_ike_error_history_post_request.py | 4 +- ...ng_ike_error_history_post_response_data.py | 10 +- .../v2_monitoring_interface_post_request.py | 2 +- .../v2_monitoring_ipsec_post_request.py | 2 +- ...e_id_status_get_response_ma_csec_status.py | 4 +- .../v2_monitoring_policy_post_request.py | 2 +- ...2_monitoring_queue_instant_post_request.py | 6 +- ...segment_route_counts_post_response_data.py | 4 +- ...g_site_twamp_site_id_post_response_data.py | 4 +- .../v2_monitoring_system_post_request.py | 2 +- .../v2_monitoring_twamp_post_request.py | 2 +- ...notification_enabledisable_post_request.py | 2 +- ...otificationmutelist_create_post_request.py | 4 +- .../v2_rule_enabledisable_post_request.py | 2 +- ...site_id_topology_post_response_snapshot.py | 2 +- pyproject.toml | 2 +- requirements.txt | 1 + setup.py | 2 +- test/test_common_billing_contract.py | 54 + test/test_common_billing_time_period.py | 52 + test/test_mana_v2_lan_segment_sites_map.py | 76 + ...ana_v2_managed_enterprise_contract_info.py | 58 + test/test_mana_v2_public_vif.py | 72 + ...mana_v2_public_vif_consumer_lan_segment.py | 58 + ...ublic_vif_consumer_lan_segment_response.py | 85 + ...test_mana_v2_public_vif_consumer_policy.py | 72 + ..._v2_public_vif_consumer_policy_response.py | 86 + test/test_mana_v2_public_vif_device.py | 60 + test/test_mana_v2_public_vif_dynamic.py | 53 + test/test_mana_v2_public_vif_fixed.py | 55 + test/test_mana_v2_public_vif_fixed_nat.py | 52 + ...test_mana_v2_public_vif_producer_policy.py | 103 + ..._v2_public_vif_producer_policy_response.py | 114 + test/test_mana_v2_public_vif_summary.py | 56 + test/test_mana_v2_site_device_summary.py | 52 + test/test_mana_v2_site_information.py | 56 + ...mana_v2_site_lan_segment_device_buckets.py | 60 + ..._extranet_public_vif_check_post_request.py | 145 + ...extranet_public_vif_check_post_response.py | 148 + ...est_v1_extranet_public_vif_get_response.py | 59 + ..._v1_extranet_public_vif_id_get_response.py | 148 + ...t_v1_extranet_public_vif_id_put_request.py | 130 + ..._v1_extranet_public_vif_id_put_response.py | 148 + ...est_v1_extranet_public_vif_post_request.py | 145 + ...st_v1_extranet_public_vif_post_response.py | 148 + ...d_enterprise_contract_info_get_response.py | 67 + .../test_v1_sites_map_details_get_response.py | 69 + 1013 files changed, 21098 insertions(+), 10623 deletions(-) create mode 100644 docs/CommonBillingContract.md create mode 100644 docs/CommonBillingTimePeriod.md create mode 100644 docs/ManaV2LanSegmentSitesMap.md create mode 100644 docs/ManaV2ManagedEnterpriseContractInfo.md create mode 100644 docs/ManaV2PublicVif.md create mode 100644 docs/ManaV2PublicVifConsumerLanSegment.md create mode 100644 docs/ManaV2PublicVifConsumerLanSegmentResponse.md create mode 100644 docs/ManaV2PublicVifConsumerPolicy.md create mode 100644 docs/ManaV2PublicVifConsumerPolicyResponse.md create mode 100644 docs/ManaV2PublicVifDevice.md create mode 100644 docs/ManaV2PublicVifDynamic.md create mode 100644 docs/ManaV2PublicVifFixed.md create mode 100644 docs/ManaV2PublicVifFixedNat.md create mode 100644 docs/ManaV2PublicVifProducerPolicy.md create mode 100644 docs/ManaV2PublicVifProducerPolicyResponse.md create mode 100644 docs/ManaV2PublicVifSummary.md create mode 100644 docs/ManaV2SiteDeviceSummary.md create mode 100644 docs/ManaV2SiteInformation.md create mode 100644 docs/ManaV2SiteLanSegmentDeviceBuckets.md create mode 100644 docs/V1ExtranetPublicVifCheckPostRequest.md create mode 100644 docs/V1ExtranetPublicVifCheckPostResponse.md create mode 100644 docs/V1ExtranetPublicVifGetResponse.md create mode 100644 docs/V1ExtranetPublicVifIdGetResponse.md create mode 100644 docs/V1ExtranetPublicVifIdPutRequest.md create mode 100644 docs/V1ExtranetPublicVifIdPutResponse.md create mode 100644 docs/V1ExtranetPublicVifPostRequest.md create mode 100644 docs/V1ExtranetPublicVifPostResponse.md create mode 100644 docs/V1MspManagedEnterpriseContractInfoGetResponse.md create mode 100644 docs/V1SitesMapDetailsGetResponse.md rename graphiant_api_docs_v26.4.0.json => graphiant_api_docs_v26.5.0.json (97%) create mode 100644 graphiant_sdk/models/common_billing_contract.py create mode 100644 graphiant_sdk/models/common_billing_time_period.py create mode 100644 graphiant_sdk/models/mana_v2_lan_segment_sites_map.py create mode 100644 graphiant_sdk/models/mana_v2_managed_enterprise_contract_info.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif_consumer_lan_segment.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif_consumer_lan_segment_response.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif_consumer_policy.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif_consumer_policy_response.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif_device.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif_dynamic.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif_fixed.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif_fixed_nat.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif_producer_policy.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif_producer_policy_response.py create mode 100644 graphiant_sdk/models/mana_v2_public_vif_summary.py create mode 100644 graphiant_sdk/models/mana_v2_site_device_summary.py create mode 100644 graphiant_sdk/models/mana_v2_site_information.py create mode 100644 graphiant_sdk/models/mana_v2_site_lan_segment_device_buckets.py create mode 100644 graphiant_sdk/models/v1_extranet_public_vif_check_post_request.py create mode 100644 graphiant_sdk/models/v1_extranet_public_vif_check_post_response.py create mode 100644 graphiant_sdk/models/v1_extranet_public_vif_get_response.py create mode 100644 graphiant_sdk/models/v1_extranet_public_vif_id_get_response.py create mode 100644 graphiant_sdk/models/v1_extranet_public_vif_id_put_request.py create mode 100644 graphiant_sdk/models/v1_extranet_public_vif_id_put_response.py create mode 100644 graphiant_sdk/models/v1_extranet_public_vif_post_request.py create mode 100644 graphiant_sdk/models/v1_extranet_public_vif_post_response.py create mode 100644 graphiant_sdk/models/v1_msp_managed_enterprise_contract_info_get_response.py create mode 100644 graphiant_sdk/models/v1_sites_map_details_get_response.py create mode 100644 test/test_common_billing_contract.py create mode 100644 test/test_common_billing_time_period.py create mode 100644 test/test_mana_v2_lan_segment_sites_map.py create mode 100644 test/test_mana_v2_managed_enterprise_contract_info.py create mode 100644 test/test_mana_v2_public_vif.py create mode 100644 test/test_mana_v2_public_vif_consumer_lan_segment.py create mode 100644 test/test_mana_v2_public_vif_consumer_lan_segment_response.py create mode 100644 test/test_mana_v2_public_vif_consumer_policy.py create mode 100644 test/test_mana_v2_public_vif_consumer_policy_response.py create mode 100644 test/test_mana_v2_public_vif_device.py create mode 100644 test/test_mana_v2_public_vif_dynamic.py create mode 100644 test/test_mana_v2_public_vif_fixed.py create mode 100644 test/test_mana_v2_public_vif_fixed_nat.py create mode 100644 test/test_mana_v2_public_vif_producer_policy.py create mode 100644 test/test_mana_v2_public_vif_producer_policy_response.py create mode 100644 test/test_mana_v2_public_vif_summary.py create mode 100644 test/test_mana_v2_site_device_summary.py create mode 100644 test/test_mana_v2_site_information.py create mode 100644 test/test_mana_v2_site_lan_segment_device_buckets.py create mode 100644 test/test_v1_extranet_public_vif_check_post_request.py create mode 100644 test/test_v1_extranet_public_vif_check_post_response.py create mode 100644 test/test_v1_extranet_public_vif_get_response.py create mode 100644 test/test_v1_extranet_public_vif_id_get_response.py create mode 100644 test/test_v1_extranet_public_vif_id_put_request.py create mode 100644 test/test_v1_extranet_public_vif_id_put_response.py create mode 100644 test/test_v1_extranet_public_vif_post_request.py create mode 100644 test/test_v1_extranet_public_vif_post_response.py create mode 100644 test/test_v1_msp_managed_enterprise_contract_info_get_response.py create mode 100644 test/test_v1_sites_map_details_get_response.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bff07fa..7d77ab2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,25 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +## [26.5.0] - 2026-06-10 + +### Added +- **API spec:** `graphiant_api_docs_v26.5.0.json` +- **Extranet public VIF:** **`GET`/`POST /v1/extranet-public-vif`**, **`POST /v1/extranet-public-vif/check`**, **`GET`/`PUT`/`DELETE /v1/extranet-public-vif/{id}`**; models **`V1ExtranetPublicVif*`** and **`ManaV2PublicVif*`** (consumer/producer policy, fixed/dynamic VIF, device and summary types) +- **MSP billing:** **`GET /v1/msp/managed-enterprise-contract-info`** with **`V1MspManagedEnterpriseContractInfoGetResponse`** and **`ManaV2ManagedEnterpriseContractInfo`** +- **Site map:** **`GET /v1/sites/map/details`** with **`V1SitesMapDetailsGetResponse`**, **`ManaV2LanSegmentSitesMap`**, **`ManaV2SiteInformation`**, **`ManaV2SiteDeviceSummary`**, **`ManaV2SiteLanSegmentDeviceBuckets`** +- **Billing (common):** **`CommonBillingContract`**, **`CommonBillingTimePeriod`** + +### Changed +- **Version:** Package **26.5.0**; OpenAPI bundle **`graphiant_api_docs_v26.5.0.json`** (replaces **26.4.0** bundle in-repo). +- **Schemas / docs (updated):** **`AssuranceClientSession`**, **`AssuranceSite`**, **`SearchEdgeSummary`**, **`ManaV2ApplicationProfile`**, enterprise contract/patch/put request types, assurance topology request types, **`DefaultApi`**, README and generated **`docs/`** model pages. +- **SDK (generated):** Refreshed **`default_api`**, **`api_client`**, **`configuration`**, and model exports to match the **26.5.0** spec (including OpenAPI **example** metadata on many generated Pydantic fields). + +### Removed +- **API spec:** removed **`graphiant_api_docs_v26.4.0.json`** (superseded by **26.5.0** bundle). + ### Security -- **urllib3**: lock **2.7.0** in **Poetry** to pick up fixes for decompression-bomb resource-exhaustion issues in parts of the streaming API and sensitive-header forwarding across origins in proxied low-level redirects. The declared runtime range already allows the patched release. +- **urllib3:** lock **2.7.0** in **Poetry** to pick up fixes for decompression-bomb resource-exhaustion issues in parts of the streaming API and sensitive-header forwarding across origins in proxied low-level redirects. The declared runtime range already allows the patched release. ## [26.4.0] - 2026-04-30 diff --git a/README.md b/README.md index 5fcf2453..1a1baf92 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ More product and platform context: [Graphiant Docs](https://docs.graphiant.com). | **Automation** | [Graphiant Automation](https://docs.graphiant.com/docs/automation) | | **REST API** | [Graphiant Portal REST API](https://docs.graphiant.com/docs/graphiant-portal-rest-api) | | **Method index (repo)** | [DefaultApi.md](https://github.com/Graphiant-Inc/graphiant-sdk-python/blob/main/docs/DefaultApi.md) | -| **OpenAPI bundle (this build)** | [`graphiant_api_docs_v26.4.0.json`](https://github.com/Graphiant-Inc/graphiant-sdk-python/blob/main/graphiant_api_docs_v26.4.0.json) — source for generated paths and models | +| **OpenAPI bundle (this build)** | [`graphiant_api_docs_v26.5.0.json`](https://github.com/Graphiant-Inc/graphiant-sdk-python/blob/main/graphiant_api_docs_v26.5.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) | @@ -471,15 +471,15 @@ brew install openapi-generator # macOS # Generate SDK openapi-generator generate \ - -i graphiant_api_docs_v26.4.0.json \ + -i graphiant_api_docs_v26.5.0.json \ -g python \ --git-user-id Graphiant-Inc \ --git-repo-id graphiant-sdk-python \ --package-name graphiant_sdk \ - --additional-properties=packageVersion=26.4.0 + --additional-properties=packageVersion=26.5.0 ``` -> **Note:** Download the latest API bundle from the Graphiant portal under **Support Hub** → **Developer Tools**. Set **`packageVersion`** to the SDK release you are publishing (this branch: **26.4.0**). The **`-i`** filename reflects the API doc bundle version (here `graphiant_api_docs_v26.4.0.json`) and may stay the same across patch releases when the spec is unchanged. +> **Note:** Download the latest API bundle from the Graphiant portal under **Support Hub** → **Developer Tools**. Set **`packageVersion`** to the SDK release you are publishing (this branch: **26.5.0**). The **`-i`** filename reflects the API doc bundle version (here `graphiant_api_docs_v26.5.0.json`) and may stay the same across patch releases when the spec is unchanged. ### Testing @@ -495,7 +495,7 @@ python -m pytest tests/ --cov=graphiant_sdk --cov-report=html ### Source of truth (this release) -Operations and schemas are generated from **`graphiant_api_docs_v26.4.0.json`** (repo root and 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 **`graphiant_api_docs_v26.5.0.json`** (repo root and 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 | |----------------|-------| @@ -526,7 +526,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.4.0.json`) +### Sample HTTP endpoints (from `graphiant_api_docs_v26.5.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 0460bda5..5defe3d1 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,8 +6,9 @@ We actively support the following versions with security updates: | Version | Supported | Notes | | ------- | ------------------ | ---------------------------------------- | -| 26.4.x | :white_check_mark: | Current stable release (latest: **26.4.0**) | -| 26.3.x | :white_check_mark: | Previous release line (latest: **26.3.3**) | +| 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.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 | | 25.12.x | :white_check_mark: | Legacy release | @@ -275,4 +276,4 @@ For security concerns, please contact: **security@graphiant.com** --- -**Last Updated**: 2026-05-01 +**Last Updated**: 2026-06-10 diff --git a/docs/AssuranceClientSession.md b/docs/AssuranceClientSession.md index 83b81642..35bb678e 100644 --- a/docs/AssuranceClientSession.md +++ b/docs/AssuranceClientSession.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **client_ip** | **str** | | [optional] **client_links** | [**List[AssuranceClientSessionEndpointLink]**](AssuranceClientSessionEndpointLink.md) | | [optional] **client_username** | **str** | | [optional] +**exchange_service_name** | **str** | | [optional] **first_seen_ts** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] **lan_segment** | **List[str]** | | [optional] **last_seen_ts** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] diff --git a/docs/AssuranceSite.md b/docs/AssuranceSite.md index 2f7c8b80..7dfa8af7 100644 --- a/docs/AssuranceSite.md +++ b/docs/AssuranceSite.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **region_id** | **int** | | [optional] +**site_enterprise_name** | **str** | | [optional] **site_id** | **int** | | [optional] **site_name** | **str** | | [optional] diff --git a/docs/CommonBillingContract.md b/docs/CommonBillingContract.md new file mode 100644 index 00000000..8788a68f --- /dev/null +++ b/docs/CommonBillingContract.md @@ -0,0 +1,30 @@ +# CommonBillingContract + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contracted_credits** | **float** | Number of credits agreed upon for the entirety of the current contract | [optional] +**expiration_date** | [**CommonBillingTimePeriod**](CommonBillingTimePeriod.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.common_billing_contract import CommonBillingContract + +# TODO update the JSON string below +json = "{}" +# create an instance of CommonBillingContract from a JSON string +common_billing_contract_instance = CommonBillingContract.from_json(json) +# print the JSON string representation of the object +print(CommonBillingContract.to_json()) + +# convert the object into a dict +common_billing_contract_dict = common_billing_contract_instance.to_dict() +# create an instance of CommonBillingContract from a dict +common_billing_contract_from_dict = CommonBillingContract.from_dict(common_billing_contract_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/CommonBillingTimePeriod.md b/docs/CommonBillingTimePeriod.md new file mode 100644 index 00000000..5e1ac24e --- /dev/null +++ b/docs/CommonBillingTimePeriod.md @@ -0,0 +1,30 @@ +# CommonBillingTimePeriod + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**month** | **int** | | [optional] +**year** | **int** | | [optional] + +## Example + +```python +from graphiant_sdk.models.common_billing_time_period import CommonBillingTimePeriod + +# TODO update the JSON string below +json = "{}" +# create an instance of CommonBillingTimePeriod from a JSON string +common_billing_time_period_instance = CommonBillingTimePeriod.from_json(json) +# print the JSON string representation of the object +print(CommonBillingTimePeriod.to_json()) + +# convert the object into a dict +common_billing_time_period_dict = common_billing_time_period_instance.to_dict() +# create an instance of CommonBillingTimePeriod from a dict +common_billing_time_period_from_dict = CommonBillingTimePeriod.from_dict(common_billing_time_period_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 1aa6060f..5c751091 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -189,6 +189,12 @@ Method | HTTP request | Description [**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_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} | @@ -320,6 +326,7 @@ Method | HTTP request | Description [**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 | [**v1_logs_post**](DefaultApi.md#v1_logs_post) | **POST** /v1/logs | +[**v1_msp_managed_enterprise_contract_info_get**](DefaultApi.md#v1_msp_managed_enterprise_contract_info_get) | **GET** /v1/msp/managed-enterprise-contract-info | [**v1_nat_entries_device_id_get**](DefaultApi.md#v1_nat_entries_device_id_get) | **GET** /v1/nat/entries/{deviceId} | [**v1_nat_utilization_device_id_get**](DefaultApi.md#v1_nat_utilization_device_id_get) | **GET** /v1/nat/utilization/{deviceId} | [**v1_onboarding_cloudinit_delete**](DefaultApi.md#v1_onboarding_cloudinit_delete) | **DELETE** /v1/onboarding/cloudinit | @@ -339,6 +346,7 @@ Method | HTTP request | Description [**v1_site_id_details_interfaces_get**](DefaultApi.md#v1_site_id_details_interfaces_get) | **GET** /v1/site/{id}/details/interfaces | [**v1_sites_details_get**](DefaultApi.md#v1_sites_details_get) | **GET** /v1/sites/details | [**v1_sites_get**](DefaultApi.md#v1_sites_get) | **GET** /v1/sites | +[**v1_sites_map_details_get**](DefaultApi.md#v1_sites_map_details_get) | **GET** /v1/sites/map/details | [**v1_sites_post**](DefaultApi.md#v1_sites_post) | **POST** /v1/sites | [**v1_sites_site_id_circuits_get**](DefaultApi.md#v1_sites_site_id_circuits_get) | **GET** /v1/sites/{siteId}/circuits | [**v1_sites_site_id_delete**](DefaultApi.md#v1_sites_site_id_delete) | **DELETE** /v1/sites/{siteId} | @@ -13662,7 +13670,7 @@ Name | Type | Description | Notes # **v1_enterprise_contract_put** > object v1_enterprise_contract_put(authorization, v1_enterprise_contract_put_request) -Update an enterprise to use a new monthly or term-based contract +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. ### Example @@ -14200,7 +14208,7 @@ Name | Type | Description | Notes # **v1_enterprises_managed_get** > V1EnterprisesManagedGetResponse v1_enterprises_managed_get(authorization, type) -Get enterprises managed by your tenant, filtered by enterprise type. +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. ### Example @@ -14354,7 +14362,7 @@ void (empty response body) # **v1_enterprises_put** > v1_enterprises_put(authorization, v1_enterprises_put_request) -Create a new enterprise with company details, account type, and admin user. +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). ### Example @@ -14901,6 +14909,476 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back 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) + +Check Public Vif service + +### Example + +* Api Key Authentication (jwtAuth): + +```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.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_public_vif_check_post_request = graphiant_sdk.V1ExtranetPublicVifCheckPostRequest() # V1ExtranetPublicVifCheckPostRequest | + + 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") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_extranet_public_vif_check_post: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **v1_extranet_public_vif_check_post_request** | [**V1ExtranetPublicVifCheckPostRequest**](V1ExtranetPublicVifCheckPostRequest.md)| | + +### Return type + +[**V1ExtranetPublicVifCheckPostResponse**](V1ExtranetPublicVifCheckPostResponse.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_extranet_public_vif_get** +> V1ExtranetPublicVifGetResponse v1_extranet_public_vif_get(authorization) + +Get Public Vif summary + +### Example + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_extranet_public_vif_get_response import V1ExtranetPublicVifGetResponse +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_extranet_public_vif_get(authorization) + print("The response of DefaultApi->v1_extranet_public_vif_get:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_extranet_public_vif_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + +### Return type + +[**V1ExtranetPublicVifGetResponse**](V1ExtranetPublicVifGetResponse.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_public_vif_id_delete** +> object v1_extranet_public_vif_id_delete(authorization, id) + +Delete Public Vif service + +### 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_response = api_instance.v1_extranet_public_vif_id_delete(authorization, id) + print("The response of DefaultApi->v1_extranet_public_vif_id_delete:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_extranet_public_vif_id_delete: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| | + +### 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_extranet_public_vif_id_get** +> V1ExtranetPublicVifIdGetResponse v1_extranet_public_vif_id_get(authorization, id) + +Get Public Vif service + +### Example + +* Api Key Authentication (jwtAuth): + +```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 + +# 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 | Public VIF producer policy + + 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") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_extranet_public_vif_id_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + **id** | **int**| Public VIF producer policy | + +### Return type + +[**V1ExtranetPublicVifIdGetResponse**](V1ExtranetPublicVifIdGetResponse.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_public_vif_id_put** +> V1ExtranetPublicVifIdPutResponse v1_extranet_public_vif_id_put(authorization, id, v1_extranet_public_vif_id_put_request) + +Update Public Vif service + +### Example + +* Api Key Authentication (jwtAuth): + +```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.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 | Public VIF producer service id + v1_extranet_public_vif_id_put_request = graphiant_sdk.V1ExtranetPublicVifIdPutRequest() # V1ExtranetPublicVifIdPutRequest | + + 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") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_extranet_public_vif_id_put: %s\n" % e) +``` + + + +### Parameters + + +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)| | + +### Return type + +[**V1ExtranetPublicVifIdPutResponse**](V1ExtranetPublicVifIdPutResponse.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_extranet_public_vif_post** +> V1ExtranetPublicVifPostResponse v1_extranet_public_vif_post(authorization, v1_extranet_public_vif_post_request) + +Create Public Vif service + +### Example + +* Api Key Authentication (jwtAuth): + +```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.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_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") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_extranet_public_vif_post: %s\n" % e) +``` + + + +### Parameters + + +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) + +### 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_extranet_sites_usage_top_post** > V1ExtranetSitesUsageTopPostResponse v1_extranet_sites_usage_top_post(authorization, v1_extranet_sites_usage_top_post_request) @@ -25112,6 +25590,82 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_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 + +* Api Key Authentication (jwtAuth): + +```python +import graphiant_sdk +from graphiant_sdk.models.v1_msp_managed_enterprise_contract_info_get_response import V1MspManagedEnterpriseContractInfoGetResponse +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_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_msp_managed_enterprise_contract_info_get: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **authorization** | **str**| Bearer token. Format: Bearer <your_token_here> | + +### Return type + +[**V1MspManagedEnterpriseContractInfoGetResponse**](V1MspManagedEnterpriseContractInfoGetResponse.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_nat_entries_device_id_get** > V1NatEntriesDeviceIdGetResponse v1_nat_entries_device_id_get(authorization, device_id) @@ -26573,6 +27127,88 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back 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) + +Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site + +### Example + +* Api Key Authentication (jwtAuth): + +```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 + +# 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 + lan_segment_ids = [[0]] # List[int] | (optional) + site_ids = [[0]] # List[int] | (optional) + site_list_ids = [[0]] # List[int] | (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") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->v1_sites_map_details_get: %s\n" % e) +``` + + + +### Parameters + + +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] + +### Return type + +[**V1SitesMapDetailsGetResponse**](V1SitesMapDetailsGetResponse.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_sites_post** > V1SitesPostResponse v1_sites_post(authorization, v1_sites_post_request) diff --git a/docs/ManaV2ApplicationProfile.md b/docs/ManaV2ApplicationProfile.md index 4feaa666..7aedec8c 100644 --- a/docs/ManaV2ApplicationProfile.md +++ b/docs/ManaV2ApplicationProfile.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**port_range** | **str** | Port Range | [optional] **ports** | **List[int]** | | **protocol** | **int** | Protocol for the application profile (required) | diff --git a/docs/ManaV2LanSegmentSitesMap.md b/docs/ManaV2LanSegmentSitesMap.md new file mode 100644 index 00000000..7997909b --- /dev/null +++ b/docs/ManaV2LanSegmentSitesMap.md @@ -0,0 +1,30 @@ +# ManaV2LanSegmentSitesMap + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**site_ids** | [**Dict[str, ManaV2SiteLanSegmentDeviceBuckets]**](ManaV2SiteLanSegmentDeviceBuckets.md) | | [optional] +**site_list_ids** | [**Dict[str, ManaV2SiteLanSegmentDeviceBuckets]**](ManaV2SiteLanSegmentDeviceBuckets.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_lan_segment_sites_map import ManaV2LanSegmentSitesMap + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2LanSegmentSitesMap from a JSON string +mana_v2_lan_segment_sites_map_instance = ManaV2LanSegmentSitesMap.from_json(json) +# print the JSON string representation of the object +print(ManaV2LanSegmentSitesMap.to_json()) + +# convert the object into a dict +mana_v2_lan_segment_sites_map_dict = mana_v2_lan_segment_sites_map_instance.to_dict() +# create an instance of ManaV2LanSegmentSitesMap from a dict +mana_v2_lan_segment_sites_map_from_dict = ManaV2LanSegmentSitesMap.from_dict(mana_v2_lan_segment_sites_map_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/ManaV2ManagedEnterpriseContractInfo.md b/docs/ManaV2ManagedEnterpriseContractInfo.md new file mode 100644 index 00000000..e420a987 --- /dev/null +++ b/docs/ManaV2ManagedEnterpriseContractInfo.md @@ -0,0 +1,32 @@ +# ManaV2ManagedEnterpriseContractInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumed_credits** | **float** | All credits consumed over the entirety the enterprise's contracts | [optional] +**enterprise_contract** | [**CommonBillingContract**](CommonBillingContract.md) | | [optional] +**enterprise_id** | **int** | | [optional] +**enterprise_name** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_managed_enterprise_contract_info import ManaV2ManagedEnterpriseContractInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2ManagedEnterpriseContractInfo from a JSON string +mana_v2_managed_enterprise_contract_info_instance = ManaV2ManagedEnterpriseContractInfo.from_json(json) +# print the JSON string representation of the object +print(ManaV2ManagedEnterpriseContractInfo.to_json()) + +# convert the object into a dict +mana_v2_managed_enterprise_contract_info_dict = mana_v2_managed_enterprise_contract_info_instance.to_dict() +# create an instance of ManaV2ManagedEnterpriseContractInfo from a dict +mana_v2_managed_enterprise_contract_info_from_dict = ManaV2ManagedEnterpriseContractInfo.from_dict(mana_v2_managed_enterprise_contract_info_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/ManaV2PublicVif.md b/docs/ManaV2PublicVif.md new file mode 100644 index 00000000..ce3e5359 --- /dev/null +++ b/docs/ManaV2PublicVif.md @@ -0,0 +1,31 @@ +# ManaV2PublicVif + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**covering_prefixes** | [**ManaV2PublicVifDynamic**](ManaV2PublicVifDynamic.md) | | +**fixed_prefixes** | [**ManaV2PublicVifFixed**](ManaV2PublicVifFixed.md) | | +**type** | **str** | Type of Public VIF dynamic/fixed (required) | + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif import ManaV2PublicVif + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVif from a JSON string +mana_v2_public_vif_instance = ManaV2PublicVif.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVif.to_json()) + +# convert the object into a dict +mana_v2_public_vif_dict = mana_v2_public_vif_instance.to_dict() +# create an instance of ManaV2PublicVif from a dict +mana_v2_public_vif_from_dict = ManaV2PublicVif.from_dict(mana_v2_public_vif_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/ManaV2PublicVifConsumerLanSegment.md b/docs/ManaV2PublicVifConsumerLanSegment.md new file mode 100644 index 00000000..4ba0ac92 --- /dev/null +++ b/docs/ManaV2PublicVifConsumerLanSegment.md @@ -0,0 +1,30 @@ +# ManaV2PublicVifConsumerLanSegment + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_prefixes** | **List[str]** | | +**service_lan_segment** | **int** | LAN segment ID for the service (required) | + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment import ManaV2PublicVifConsumerLanSegment + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifConsumerLanSegment from a JSON string +mana_v2_public_vif_consumer_lan_segment_instance = ManaV2PublicVifConsumerLanSegment.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifConsumerLanSegment.to_json()) + +# convert the object into a dict +mana_v2_public_vif_consumer_lan_segment_dict = mana_v2_public_vif_consumer_lan_segment_instance.to_dict() +# create an instance of ManaV2PublicVifConsumerLanSegment from a dict +mana_v2_public_vif_consumer_lan_segment_from_dict = ManaV2PublicVifConsumerLanSegment.from_dict(mana_v2_public_vif_consumer_lan_segment_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/ManaV2PublicVifConsumerLanSegmentResponse.md b/docs/ManaV2PublicVifConsumerLanSegmentResponse.md new file mode 100644 index 00000000..d90d843f --- /dev/null +++ b/docs/ManaV2PublicVifConsumerLanSegmentResponse.md @@ -0,0 +1,32 @@ +# ManaV2PublicVifConsumerLanSegmentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowed_prefixes** | **List[str]** | | [optional] +**outbound_security_rules** | [**List[ManaV2SecurityPolicyRule]**](ManaV2SecurityPolicyRule.md) | | [optional] +**service_lan_segment** | **int** | LAN segment ID for the service | [optional] +**traffic_rules** | [**List[ManaV2TrafficPolicyRule]**](ManaV2TrafficPolicyRule.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment_response import ManaV2PublicVifConsumerLanSegmentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifConsumerLanSegmentResponse from a JSON string +mana_v2_public_vif_consumer_lan_segment_response_instance = ManaV2PublicVifConsumerLanSegmentResponse.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifConsumerLanSegmentResponse.to_json()) + +# convert the object into a dict +mana_v2_public_vif_consumer_lan_segment_response_dict = mana_v2_public_vif_consumer_lan_segment_response_instance.to_dict() +# create an instance of ManaV2PublicVifConsumerLanSegmentResponse from a dict +mana_v2_public_vif_consumer_lan_segment_response_from_dict = ManaV2PublicVifConsumerLanSegmentResponse.from_dict(mana_v2_public_vif_consumer_lan_segment_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/ManaV2PublicVifConsumerPolicy.md b/docs/ManaV2PublicVifConsumerPolicy.md new file mode 100644 index 00000000..05cd80c3 --- /dev/null +++ b/docs/ManaV2PublicVifConsumerPolicy.md @@ -0,0 +1,30 @@ +# ManaV2PublicVifConsumerPolicy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lan_segments** | [**List[ManaV2PublicVifConsumerLanSegment]**](ManaV2PublicVifConsumerLanSegment.md) | | +**sites** | [**ManaV2SiteInformation**](ManaV2SiteInformation.md) | | + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_consumer_policy import ManaV2PublicVifConsumerPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifConsumerPolicy from a JSON string +mana_v2_public_vif_consumer_policy_instance = ManaV2PublicVifConsumerPolicy.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifConsumerPolicy.to_json()) + +# convert the object into a dict +mana_v2_public_vif_consumer_policy_dict = mana_v2_public_vif_consumer_policy_instance.to_dict() +# create an instance of ManaV2PublicVifConsumerPolicy from a dict +mana_v2_public_vif_consumer_policy_from_dict = ManaV2PublicVifConsumerPolicy.from_dict(mana_v2_public_vif_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/ManaV2PublicVifConsumerPolicyResponse.md b/docs/ManaV2PublicVifConsumerPolicyResponse.md new file mode 100644 index 00000000..2de34110 --- /dev/null +++ b/docs/ManaV2PublicVifConsumerPolicyResponse.md @@ -0,0 +1,31 @@ +# ManaV2PublicVifConsumerPolicyResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_service_id** | **int** | | [optional] +**lan_segments** | [**List[ManaV2PublicVifConsumerLanSegmentResponse]**](ManaV2PublicVifConsumerLanSegmentResponse.md) | | [optional] +**sites** | [**ManaV2SiteInformation**](ManaV2SiteInformation.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_consumer_policy_response import ManaV2PublicVifConsumerPolicyResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifConsumerPolicyResponse from a JSON string +mana_v2_public_vif_consumer_policy_response_instance = ManaV2PublicVifConsumerPolicyResponse.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifConsumerPolicyResponse.to_json()) + +# convert the object into a dict +mana_v2_public_vif_consumer_policy_response_dict = mana_v2_public_vif_consumer_policy_response_instance.to_dict() +# create an instance of ManaV2PublicVifConsumerPolicyResponse from a dict +mana_v2_public_vif_consumer_policy_response_from_dict = ManaV2PublicVifConsumerPolicyResponse.from_dict(mana_v2_public_vif_consumer_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/ManaV2PublicVifDevice.md b/docs/ManaV2PublicVifDevice.md new file mode 100644 index 00000000..06c3953b --- /dev/null +++ b/docs/ManaV2PublicVifDevice.md @@ -0,0 +1,31 @@ +# ManaV2PublicVifDevice + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_burst_size** | **int** | Maximum Burst size per device (required) | +**consumer_bw_site** | **int** | Maximum Bandwidth allocation per device (required) | +**nat_pools** | **List[str]** | | + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_device import ManaV2PublicVifDevice + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifDevice from a JSON string +mana_v2_public_vif_device_instance = ManaV2PublicVifDevice.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifDevice.to_json()) + +# convert the object into a dict +mana_v2_public_vif_device_dict = mana_v2_public_vif_device_instance.to_dict() +# create an instance of ManaV2PublicVifDevice from a dict +mana_v2_public_vif_device_from_dict = ManaV2PublicVifDevice.from_dict(mana_v2_public_vif_device_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ManaV2PublicVifDynamic.md b/docs/ManaV2PublicVifDynamic.md new file mode 100644 index 00000000..19d529f3 --- /dev/null +++ b/docs/ManaV2PublicVifDynamic.md @@ -0,0 +1,29 @@ +# ManaV2PublicVifDynamic + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entries** | **List[str]** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_dynamic import ManaV2PublicVifDynamic + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifDynamic from a JSON string +mana_v2_public_vif_dynamic_instance = ManaV2PublicVifDynamic.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifDynamic.to_json()) + +# convert the object into a dict +mana_v2_public_vif_dynamic_dict = mana_v2_public_vif_dynamic_instance.to_dict() +# create an instance of ManaV2PublicVifDynamic from a dict +mana_v2_public_vif_dynamic_from_dict = ManaV2PublicVifDynamic.from_dict(mana_v2_public_vif_dynamic_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/ManaV2PublicVifFixed.md b/docs/ManaV2PublicVifFixed.md new file mode 100644 index 00000000..dcdc32b8 --- /dev/null +++ b/docs/ManaV2PublicVifFixed.md @@ -0,0 +1,29 @@ +# ManaV2PublicVifFixed + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**entries** | [**List[ManaV2PublicVifFixedNat]**](ManaV2PublicVifFixedNat.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_fixed import ManaV2PublicVifFixed + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifFixed from a JSON string +mana_v2_public_vif_fixed_instance = ManaV2PublicVifFixed.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifFixed.to_json()) + +# convert the object into a dict +mana_v2_public_vif_fixed_dict = mana_v2_public_vif_fixed_instance.to_dict() +# create an instance of ManaV2PublicVifFixed from a dict +mana_v2_public_vif_fixed_from_dict = ManaV2PublicVifFixed.from_dict(mana_v2_public_vif_fixed_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/ManaV2PublicVifFixedNat.md b/docs/ManaV2PublicVifFixedNat.md new file mode 100644 index 00000000..4ae0f355 --- /dev/null +++ b/docs/ManaV2PublicVifFixedNat.md @@ -0,0 +1,30 @@ +# ManaV2PublicVifFixedNat + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**outside_nat_prefix** | **str** | | [optional] +**service_prefix** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_fixed_nat import ManaV2PublicVifFixedNat + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifFixedNat from a JSON string +mana_v2_public_vif_fixed_nat_instance = ManaV2PublicVifFixedNat.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifFixedNat.to_json()) + +# convert the object into a dict +mana_v2_public_vif_fixed_nat_dict = mana_v2_public_vif_fixed_nat_instance.to_dict() +# create an instance of ManaV2PublicVifFixedNat from a dict +mana_v2_public_vif_fixed_nat_from_dict = ManaV2PublicVifFixedNat.from_dict(mana_v2_public_vif_fixed_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/ManaV2PublicVifProducerPolicy.md b/docs/ManaV2PublicVifProducerPolicy.md new file mode 100644 index 00000000..a47cccb0 --- /dev/null +++ b/docs/ManaV2PublicVifProducerPolicy.md @@ -0,0 +1,35 @@ +# ManaV2PublicVifProducerPolicy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devices** | [**Dict[str, ManaV2PublicVifDevice]**](ManaV2PublicVifDevice.md) | | +**profiles** | [**List[ManaV2ApplicationProfile]**](ManaV2ApplicationProfile.md) | | [optional] +**service_lan_segment** | **int** | LAN segment ID for the service (required) | +**service_name** | **str** | Public VIF service name (local_extranet_producer_service.name) | [optional] +**sites** | [**ManaV2SiteInformation**](ManaV2SiteInformation.md) | | +**sla** | [**ManaV2SlaInformation**](ManaV2SlaInformation.md) | | [optional] +**vifs** | [**ManaV2PublicVif**](ManaV2PublicVif.md) | | + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_producer_policy import ManaV2PublicVifProducerPolicy + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifProducerPolicy from a JSON string +mana_v2_public_vif_producer_policy_instance = ManaV2PublicVifProducerPolicy.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifProducerPolicy.to_json()) + +# convert the object into a dict +mana_v2_public_vif_producer_policy_dict = mana_v2_public_vif_producer_policy_instance.to_dict() +# create an instance of ManaV2PublicVifProducerPolicy from a dict +mana_v2_public_vif_producer_policy_from_dict = ManaV2PublicVifProducerPolicy.from_dict(mana_v2_public_vif_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/ManaV2PublicVifProducerPolicyResponse.md b/docs/ManaV2PublicVifProducerPolicyResponse.md new file mode 100644 index 00000000..eb28b357 --- /dev/null +++ b/docs/ManaV2PublicVifProducerPolicyResponse.md @@ -0,0 +1,37 @@ +# ManaV2PublicVifProducerPolicyResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**devices** | [**Dict[str, ManaV2PublicVifDevice]**](ManaV2PublicVifDevice.md) | | [optional] +**inbound_security_rules** | [**List[ManaV2SecurityPolicyRule]**](ManaV2SecurityPolicyRule.md) | | [optional] +**profiles** | [**List[ManaV2ApplicationProfile]**](ManaV2ApplicationProfile.md) | | [optional] +**service_lan_segment** | **int** | LAN segment ID for the service | [optional] +**service_name** | **str** | Public VIF service name (local_extranet_producer_service.name) | [optional] +**sites** | [**ManaV2SiteInformation**](ManaV2SiteInformation.md) | | [optional] +**sla** | [**ManaV2SlaInformation**](ManaV2SlaInformation.md) | | [optional] +**traffic_rules** | [**List[ManaV2TrafficPolicyRule]**](ManaV2TrafficPolicyRule.md) | | [optional] +**vifs** | [**ManaV2PublicVif**](ManaV2PublicVif.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_producer_policy_response import ManaV2PublicVifProducerPolicyResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifProducerPolicyResponse from a JSON string +mana_v2_public_vif_producer_policy_response_instance = ManaV2PublicVifProducerPolicyResponse.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifProducerPolicyResponse.to_json()) + +# convert the object into a dict +mana_v2_public_vif_producer_policy_response_dict = mana_v2_public_vif_producer_policy_response_instance.to_dict() +# create an instance of ManaV2PublicVifProducerPolicyResponse from a dict +mana_v2_public_vif_producer_policy_response_from_dict = ManaV2PublicVifProducerPolicyResponse.from_dict(mana_v2_public_vif_producer_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/ManaV2PublicVifSummary.md b/docs/ManaV2PublicVifSummary.md new file mode 100644 index 00000000..e53fc836 --- /dev/null +++ b/docs/ManaV2PublicVifSummary.md @@ -0,0 +1,32 @@ +# ManaV2PublicVifSummary + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | id of this Public VIF | [optional] +**service_name** | **str** | name of this Public VIF | [optional] +**updated_at** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] +**user_name** | **str** | creator of this Public VIF | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_public_vif_summary import ManaV2PublicVifSummary + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2PublicVifSummary from a JSON string +mana_v2_public_vif_summary_instance = ManaV2PublicVifSummary.from_json(json) +# print the JSON string representation of the object +print(ManaV2PublicVifSummary.to_json()) + +# convert the object into a dict +mana_v2_public_vif_summary_dict = mana_v2_public_vif_summary_instance.to_dict() +# create an instance of ManaV2PublicVifSummary from a dict +mana_v2_public_vif_summary_from_dict = ManaV2PublicVifSummary.from_dict(mana_v2_public_vif_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/ManaV2SiteDeviceSummary.md b/docs/ManaV2SiteDeviceSummary.md new file mode 100644 index 00000000..1406242d --- /dev/null +++ b/docs/ManaV2SiteDeviceSummary.md @@ -0,0 +1,30 @@ +# ManaV2SiteDeviceSummary + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_id** | **int** | | [optional] +**hostname** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_site_device_summary import ManaV2SiteDeviceSummary + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2SiteDeviceSummary from a JSON string +mana_v2_site_device_summary_instance = ManaV2SiteDeviceSummary.from_json(json) +# print the JSON string representation of the object +print(ManaV2SiteDeviceSummary.to_json()) + +# convert the object into a dict +mana_v2_site_device_summary_dict = mana_v2_site_device_summary_instance.to_dict() +# create an instance of ManaV2SiteDeviceSummary from a dict +mana_v2_site_device_summary_from_dict = ManaV2SiteDeviceSummary.from_dict(mana_v2_site_device_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/ManaV2SiteInformation.md b/docs/ManaV2SiteInformation.md new file mode 100644 index 00000000..8cfa891c --- /dev/null +++ b/docs/ManaV2SiteInformation.md @@ -0,0 +1,30 @@ +# ManaV2SiteInformation + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**site_lists** | **List[int]** | | [optional] +**sites** | **List[int]** | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2SiteInformation from a JSON string +mana_v2_site_information_instance = ManaV2SiteInformation.from_json(json) +# print the JSON string representation of the object +print(ManaV2SiteInformation.to_json()) + +# convert the object into a dict +mana_v2_site_information_dict = mana_v2_site_information_instance.to_dict() +# create an instance of ManaV2SiteInformation from a dict +mana_v2_site_information_from_dict = ManaV2SiteInformation.from_dict(mana_v2_site_information_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/ManaV2SiteLanSegmentDeviceBuckets.md b/docs/ManaV2SiteLanSegmentDeviceBuckets.md new file mode 100644 index 00000000..407fb543 --- /dev/null +++ b/docs/ManaV2SiteLanSegmentDeviceBuckets.md @@ -0,0 +1,30 @@ +# ManaV2SiteLanSegmentDeviceBuckets + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lan_segment_exists** | [**List[ManaV2SiteDeviceSummary]**](ManaV2SiteDeviceSummary.md) | | [optional] +**lan_segment_missing** | [**List[ManaV2SiteDeviceSummary]**](ManaV2SiteDeviceSummary.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.mana_v2_site_lan_segment_device_buckets import ManaV2SiteLanSegmentDeviceBuckets + +# TODO update the JSON string below +json = "{}" +# create an instance of ManaV2SiteLanSegmentDeviceBuckets from a JSON string +mana_v2_site_lan_segment_device_buckets_instance = ManaV2SiteLanSegmentDeviceBuckets.from_json(json) +# print the JSON string representation of the object +print(ManaV2SiteLanSegmentDeviceBuckets.to_json()) + +# convert the object into a dict +mana_v2_site_lan_segment_device_buckets_dict = mana_v2_site_lan_segment_device_buckets_instance.to_dict() +# create an instance of ManaV2SiteLanSegmentDeviceBuckets from a dict +mana_v2_site_lan_segment_device_buckets_from_dict = ManaV2SiteLanSegmentDeviceBuckets.from_dict(mana_v2_site_lan_segment_device_buckets_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/SearchEdgeSummary.md b/docs/SearchEdgeSummary.md index 95543666..a44d4324 100644 --- a/docs/SearchEdgeSummary.md +++ b/docs/SearchEdgeSummary.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **is_hardware** | **bool** | | [optional] **is_new** | **bool** | | [optional] **is_requested** | **bool** | | [optional] +**is_requested_status** | **str** | | [optional] **last_booted_at** | [**GoogleProtobufTimestamp**](GoogleProtobufTimestamp.md) | | [optional] **location** | [**ManaV2Location**](ManaV2Location.md) | | [optional] **model** | **str** | | [optional] diff --git a/docs/V1EnterpriseContractPutRequest.md b/docs/V1EnterpriseContractPutRequest.md index a66090de..53e7ac18 100644 --- a/docs/V1EnterpriseContractPutRequest.md +++ b/docs/V1EnterpriseContractPutRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**contracted_credits** | **float** | Amount of credits billed for a contract term or monthly if no expiration date is provided | [optional] +**contracted_credits** | **float** | 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). | [optional] **expiration_date** | [**ManaV2TimePeriod**](ManaV2TimePeriod.md) | | [optional] ## Example diff --git a/docs/V1EnterprisesPatchRequest.md b/docs/V1EnterprisesPatchRequest.md index b6bac3bf..90d2923f 100644 --- a/docs/V1EnterprisesPatchRequest.md +++ b/docs/V1EnterprisesPatchRequest.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **company_name** | **str** | | [optional] **credit_limit** | **int** | | [optional] **description** | **str** | | [optional] +**enterprise_contract** | [**CommonBillingContract**](CommonBillingContract.md) | | [optional] **enterprise_id** | **int** | (required) | **impersonation_enabled** | **bool** | | [optional] **logo** | **str** | | [optional] diff --git a/docs/V1EnterprisesPutRequest.md b/docs/V1EnterprisesPutRequest.md index c2e9f800..d9e897c7 100644 --- a/docs/V1EnterprisesPutRequest.md +++ b/docs/V1EnterprisesPutRequest.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **company_name** | **str** | (required) | **credit_limit** | **int** | | [optional] **description** | **str** | | [optional] +**enterprise_contract** | [**CommonBillingContract**](CommonBillingContract.md) | | **logo** | **str** | | [optional] **marketplace_id** | **str** | | [optional] **small_logo** | **str** | | [optional] diff --git a/docs/V1ExtranetPublicVifCheckPostRequest.md b/docs/V1ExtranetPublicVifCheckPostRequest.md new file mode 100644 index 00000000..e7ebddeb --- /dev/null +++ b/docs/V1ExtranetPublicVifCheckPostRequest.md @@ -0,0 +1,32 @@ +# V1ExtranetPublicVifCheckPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_policy** | [**ManaV2PublicVifConsumerPolicy**](ManaV2PublicVifConsumerPolicy.md) | | +**producer_policy** | [**ManaV2PublicVifProducerPolicy**](ManaV2PublicVifProducerPolicy.md) | | +**service_name** | **str** | | [optional] +**type** | **str** | Type of the service whether it is application or peering (required) | + +## Example + +```python +from graphiant_sdk.models.v1_extranet_public_vif_check_post_request import V1ExtranetPublicVifCheckPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetPublicVifCheckPostRequest from a JSON string +v1_extranet_public_vif_check_post_request_instance = V1ExtranetPublicVifCheckPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetPublicVifCheckPostRequest.to_json()) + +# convert the object into a dict +v1_extranet_public_vif_check_post_request_dict = v1_extranet_public_vif_check_post_request_instance.to_dict() +# create an instance of V1ExtranetPublicVifCheckPostRequest from a dict +v1_extranet_public_vif_check_post_request_from_dict = V1ExtranetPublicVifCheckPostRequest.from_dict(v1_extranet_public_vif_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/V1ExtranetPublicVifCheckPostResponse.md b/docs/V1ExtranetPublicVifCheckPostResponse.md new file mode 100644 index 00000000..742f1570 --- /dev/null +++ b/docs/V1ExtranetPublicVifCheckPostResponse.md @@ -0,0 +1,33 @@ +# V1ExtranetPublicVifCheckPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_policy** | [**ManaV2PublicVifConsumerPolicyResponse**](ManaV2PublicVifConsumerPolicyResponse.md) | | [optional] +**id** | **int** | | [optional] +**producer_policy** | [**ManaV2PublicVifProducerPolicyResponse**](ManaV2PublicVifProducerPolicyResponse.md) | | [optional] +**service_name** | **str** | | [optional] +**type** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_public_vif_check_post_response import V1ExtranetPublicVifCheckPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetPublicVifCheckPostResponse from a JSON string +v1_extranet_public_vif_check_post_response_instance = V1ExtranetPublicVifCheckPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetPublicVifCheckPostResponse.to_json()) + +# convert the object into a dict +v1_extranet_public_vif_check_post_response_dict = v1_extranet_public_vif_check_post_response_instance.to_dict() +# create an instance of V1ExtranetPublicVifCheckPostResponse from a dict +v1_extranet_public_vif_check_post_response_from_dict = V1ExtranetPublicVifCheckPostResponse.from_dict(v1_extranet_public_vif_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/V1ExtranetPublicVifGetResponse.md b/docs/V1ExtranetPublicVifGetResponse.md new file mode 100644 index 00000000..991786e5 --- /dev/null +++ b/docs/V1ExtranetPublicVifGetResponse.md @@ -0,0 +1,29 @@ +# V1ExtranetPublicVifGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**summary** | [**List[ManaV2PublicVifSummary]**](ManaV2PublicVifSummary.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_public_vif_get_response import V1ExtranetPublicVifGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetPublicVifGetResponse from a JSON string +v1_extranet_public_vif_get_response_instance = V1ExtranetPublicVifGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetPublicVifGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_public_vif_get_response_dict = v1_extranet_public_vif_get_response_instance.to_dict() +# create an instance of V1ExtranetPublicVifGetResponse from a dict +v1_extranet_public_vif_get_response_from_dict = V1ExtranetPublicVifGetResponse.from_dict(v1_extranet_public_vif_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/V1ExtranetPublicVifIdGetResponse.md b/docs/V1ExtranetPublicVifIdGetResponse.md new file mode 100644 index 00000000..cb2f0db9 --- /dev/null +++ b/docs/V1ExtranetPublicVifIdGetResponse.md @@ -0,0 +1,33 @@ +# V1ExtranetPublicVifIdGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_policy** | [**ManaV2PublicVifConsumerPolicyResponse**](ManaV2PublicVifConsumerPolicyResponse.md) | | [optional] +**id** | **int** | | [optional] +**producer_policy** | [**ManaV2PublicVifProducerPolicyResponse**](ManaV2PublicVifProducerPolicyResponse.md) | | [optional] +**service_name** | **str** | | [optional] +**type** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_public_vif_id_get_response import V1ExtranetPublicVifIdGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetPublicVifIdGetResponse from a JSON string +v1_extranet_public_vif_id_get_response_instance = V1ExtranetPublicVifIdGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetPublicVifIdGetResponse.to_json()) + +# convert the object into a dict +v1_extranet_public_vif_id_get_response_dict = v1_extranet_public_vif_id_get_response_instance.to_dict() +# create an instance of V1ExtranetPublicVifIdGetResponse from a dict +v1_extranet_public_vif_id_get_response_from_dict = V1ExtranetPublicVifIdGetResponse.from_dict(v1_extranet_public_vif_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/V1ExtranetPublicVifIdPutRequest.md b/docs/V1ExtranetPublicVifIdPutRequest.md new file mode 100644 index 00000000..bf6028bc --- /dev/null +++ b/docs/V1ExtranetPublicVifIdPutRequest.md @@ -0,0 +1,30 @@ +# V1ExtranetPublicVifIdPutRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_policy** | [**ManaV2PublicVifConsumerPolicy**](ManaV2PublicVifConsumerPolicy.md) | | [optional] +**producer_policy** | [**ManaV2PublicVifProducerPolicy**](ManaV2PublicVifProducerPolicy.md) | | + +## Example + +```python +from graphiant_sdk.models.v1_extranet_public_vif_id_put_request import V1ExtranetPublicVifIdPutRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetPublicVifIdPutRequest from a JSON string +v1_extranet_public_vif_id_put_request_instance = V1ExtranetPublicVifIdPutRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetPublicVifIdPutRequest.to_json()) + +# convert the object into a dict +v1_extranet_public_vif_id_put_request_dict = v1_extranet_public_vif_id_put_request_instance.to_dict() +# create an instance of V1ExtranetPublicVifIdPutRequest from a dict +v1_extranet_public_vif_id_put_request_from_dict = V1ExtranetPublicVifIdPutRequest.from_dict(v1_extranet_public_vif_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/V1ExtranetPublicVifIdPutResponse.md b/docs/V1ExtranetPublicVifIdPutResponse.md new file mode 100644 index 00000000..f946d42a --- /dev/null +++ b/docs/V1ExtranetPublicVifIdPutResponse.md @@ -0,0 +1,33 @@ +# V1ExtranetPublicVifIdPutResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_policy** | [**ManaV2PublicVifConsumerPolicyResponse**](ManaV2PublicVifConsumerPolicyResponse.md) | | [optional] +**id** | **int** | | [optional] +**producer_policy** | [**ManaV2PublicVifProducerPolicyResponse**](ManaV2PublicVifProducerPolicyResponse.md) | | [optional] +**service_name** | **str** | | [optional] +**type** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_public_vif_id_put_response import V1ExtranetPublicVifIdPutResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetPublicVifIdPutResponse from a JSON string +v1_extranet_public_vif_id_put_response_instance = V1ExtranetPublicVifIdPutResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetPublicVifIdPutResponse.to_json()) + +# convert the object into a dict +v1_extranet_public_vif_id_put_response_dict = v1_extranet_public_vif_id_put_response_instance.to_dict() +# create an instance of V1ExtranetPublicVifIdPutResponse from a dict +v1_extranet_public_vif_id_put_response_from_dict = V1ExtranetPublicVifIdPutResponse.from_dict(v1_extranet_public_vif_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/V1ExtranetPublicVifPostRequest.md b/docs/V1ExtranetPublicVifPostRequest.md new file mode 100644 index 00000000..770914f5 --- /dev/null +++ b/docs/V1ExtranetPublicVifPostRequest.md @@ -0,0 +1,32 @@ +# V1ExtranetPublicVifPostRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_policy** | [**ManaV2PublicVifConsumerPolicy**](ManaV2PublicVifConsumerPolicy.md) | | +**producer_policy** | [**ManaV2PublicVifProducerPolicy**](ManaV2PublicVifProducerPolicy.md) | | +**service_name** | **str** | | [optional] +**type** | **str** | Type of the service whether it is application or peering (required) | + +## Example + +```python +from graphiant_sdk.models.v1_extranet_public_vif_post_request import V1ExtranetPublicVifPostRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetPublicVifPostRequest from a JSON string +v1_extranet_public_vif_post_request_instance = V1ExtranetPublicVifPostRequest.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetPublicVifPostRequest.to_json()) + +# convert the object into a dict +v1_extranet_public_vif_post_request_dict = v1_extranet_public_vif_post_request_instance.to_dict() +# create an instance of V1ExtranetPublicVifPostRequest from a dict +v1_extranet_public_vif_post_request_from_dict = V1ExtranetPublicVifPostRequest.from_dict(v1_extranet_public_vif_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/V1ExtranetPublicVifPostResponse.md b/docs/V1ExtranetPublicVifPostResponse.md new file mode 100644 index 00000000..010009fa --- /dev/null +++ b/docs/V1ExtranetPublicVifPostResponse.md @@ -0,0 +1,33 @@ +# V1ExtranetPublicVifPostResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consumer_policy** | [**ManaV2PublicVifConsumerPolicyResponse**](ManaV2PublicVifConsumerPolicyResponse.md) | | [optional] +**id** | **int** | | [optional] +**producer_policy** | [**ManaV2PublicVifProducerPolicyResponse**](ManaV2PublicVifProducerPolicyResponse.md) | | [optional] +**service_name** | **str** | | [optional] +**type** | **str** | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_extranet_public_vif_post_response import V1ExtranetPublicVifPostResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1ExtranetPublicVifPostResponse from a JSON string +v1_extranet_public_vif_post_response_instance = V1ExtranetPublicVifPostResponse.from_json(json) +# print the JSON string representation of the object +print(V1ExtranetPublicVifPostResponse.to_json()) + +# convert the object into a dict +v1_extranet_public_vif_post_response_dict = v1_extranet_public_vif_post_response_instance.to_dict() +# create an instance of V1ExtranetPublicVifPostResponse from a dict +v1_extranet_public_vif_post_response_from_dict = V1ExtranetPublicVifPostResponse.from_dict(v1_extranet_public_vif_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/V1MspManagedEnterpriseContractInfoGetResponse.md b/docs/V1MspManagedEnterpriseContractInfoGetResponse.md new file mode 100644 index 00000000..7571226e --- /dev/null +++ b/docs/V1MspManagedEnterpriseContractInfoGetResponse.md @@ -0,0 +1,31 @@ +# V1MspManagedEnterpriseContractInfoGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enterprises** | [**List[ManaV2ManagedEnterpriseContractInfo]**](ManaV2ManagedEnterpriseContractInfo.md) | | [optional] +**msp_consumed_credits** | **float** | All credits consumed by the MSP over the entirety of its contracts | [optional] +**msp_contract** | [**CommonBillingContract**](CommonBillingContract.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_msp_managed_enterprise_contract_info_get_response import V1MspManagedEnterpriseContractInfoGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1MspManagedEnterpriseContractInfoGetResponse from a JSON string +v1_msp_managed_enterprise_contract_info_get_response_instance = V1MspManagedEnterpriseContractInfoGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1MspManagedEnterpriseContractInfoGetResponse.to_json()) + +# convert the object into a dict +v1_msp_managed_enterprise_contract_info_get_response_dict = v1_msp_managed_enterprise_contract_info_get_response_instance.to_dict() +# create an instance of V1MspManagedEnterpriseContractInfoGetResponse from a dict +v1_msp_managed_enterprise_contract_info_get_response_from_dict = V1MspManagedEnterpriseContractInfoGetResponse.from_dict(v1_msp_managed_enterprise_contract_info_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/V1SitesMapDetailsGetResponse.md b/docs/V1SitesMapDetailsGetResponse.md new file mode 100644 index 00000000..d04c659b --- /dev/null +++ b/docs/V1SitesMapDetailsGetResponse.md @@ -0,0 +1,29 @@ +# V1SitesMapDetailsGetResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lan_segment_ids** | [**Dict[str, ManaV2LanSegmentSitesMap]**](ManaV2LanSegmentSitesMap.md) | | [optional] + +## Example + +```python +from graphiant_sdk.models.v1_sites_map_details_get_response import V1SitesMapDetailsGetResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of V1SitesMapDetailsGetResponse from a JSON string +v1_sites_map_details_get_response_instance = V1SitesMapDetailsGetResponse.from_json(json) +# print the JSON string representation of the object +print(V1SitesMapDetailsGetResponse.to_json()) + +# convert the object into a dict +v1_sites_map_details_get_response_dict = v1_sites_map_details_get_response_instance.to_dict() +# create an instance of V1SitesMapDetailsGetResponse from a dict +v1_sites_map_details_get_response_from_dict = V1SitesMapDetailsGetResponse.from_dict(v1_sites_map_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/V2AssuranceApplicationdetailsbynamePostRequest.md b/docs/V2AssuranceApplicationdetailsbynamePostRequest.md index c8c9c039..cce058be 100644 --- a/docs/V2AssuranceApplicationdetailsbynamePostRequest.md +++ b/docs/V2AssuranceApplicationdetailsbynamePostRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **app_id_key** | **str** | | [optional] **app_name** | **str** | | [optional] **bucket_id** | **str** | | [optional] +**exchange_service_id** | **int** | | [optional] **flex_algo_id** | **int** | | [optional] **time_window** | [**AssuranceTimeWindow**](AssuranceTimeWindow.md) | | [optional] diff --git a/docs/V2AssuranceTopologyClientSessionsPostRequest.md b/docs/V2AssuranceTopologyClientSessionsPostRequest.md index b1128bb1..1a9f02ab 100644 --- a/docs/V2AssuranceTopologyClientSessionsPostRequest.md +++ b/docs/V2AssuranceTopologyClientSessionsPostRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **app_server_key** | **str** | | [optional] **bucket_id** | **str** | | [optional] **client_ip** | **str** | | [optional] +**exchange_service_id** | **int** | | [optional] **filter** | [**AssuranceTopologyFilter**](AssuranceTopologyFilter.md) | | [optional] **flex_algo_id** | **int** | | [optional] **site_id** | **int** | | [optional] diff --git a/docs/V2AssuranceTopologyClientSummariesPostRequest.md b/docs/V2AssuranceTopologyClientSummariesPostRequest.md index ea089de8..7437ac3c 100644 --- a/docs/V2AssuranceTopologyClientSummariesPostRequest.md +++ b/docs/V2AssuranceTopologyClientSummariesPostRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **app_name** | **str** | | [optional] **app_server_key** | **str** | | [optional] **bucket_id** | **str** | | [optional] +**exchange_service_id** | **int** | | [optional] **filter** | [**AssuranceTopologyFilter**](AssuranceTopologyFilter.md) | | [optional] **flex_algo_id** | **int** | | [optional] **site_id** | **int** | | [optional] diff --git a/docs/V2AssuranceTopologyClientSummariesPostResponseSummary.md b/docs/V2AssuranceTopologyClientSummariesPostResponseSummary.md index f6563997..8f732663 100644 --- a/docs/V2AssuranceTopologyClientSummariesPostResponseSummary.md +++ b/docs/V2AssuranceTopologyClientSummariesPostResponseSummary.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **lan_segments** | **List[str]** | | [optional] **server_ip** | **str** | | [optional] **server_port** | **int** | | [optional] +**server_site_enterprise_name** | **str** | | [optional] **server_site_name** | **str** | | [optional] **session_count** | **int** | | [optional] diff --git a/docs/V2AssuranceTopologyOverviewPostRequest.md b/docs/V2AssuranceTopologyOverviewPostRequest.md index 0bdece39..017d3a45 100644 --- a/docs/V2AssuranceTopologyOverviewPostRequest.md +++ b/docs/V2AssuranceTopologyOverviewPostRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **app_name** | **str** | | [optional] **app_server_key** | **str** | | [optional] **bucket_id** | **str** | | [optional] +**exchange_service_id** | **int** | | [optional] **filter** | [**V2AssuranceTopologyOverviewPostRequestTopologyFilter**](V2AssuranceTopologyOverviewPostRequestTopologyFilter.md) | | [optional] **flex_algo_id** | **int** | | [optional] **slider_time_window** | [**AssuranceTimeWindow**](AssuranceTimeWindow.md) | | [optional] diff --git a/docs/V2AssuranceTopologySiteSummariesPostRequest.md b/docs/V2AssuranceTopologySiteSummariesPostRequest.md index 1a7bf097..37e9202a 100644 --- a/docs/V2AssuranceTopologySiteSummariesPostRequest.md +++ b/docs/V2AssuranceTopologySiteSummariesPostRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **app_name** | **str** | | [optional] **app_server_key** | **str** | | [optional] **bucket_id** | **str** | | [optional] +**exchange_service_id** | **int** | | [optional] **filter** | [**AssuranceTopologyFilter**](AssuranceTopologyFilter.md) | | [optional] **flex_algo_id** | **int** | | [optional] **time_window** | [**AssuranceTimeWindow**](AssuranceTimeWindow.md) | | [optional] diff --git a/graphiant_api_docs_v26.4.0.json b/graphiant_api_docs_v26.5.0.json similarity index 97% rename from graphiant_api_docs_v26.4.0.json rename to graphiant_api_docs_v26.5.0.json index 41b2ebed..04c1bbd9 100755 --- a/graphiant_api_docs_v26.4.0.json +++ b/graphiant_api_docs_v26.5.0.json @@ -2075,6 +2075,11 @@ "type": "string", "example": "ENUM_VALUE" }, + "exchangeServiceId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, "flexAlgoId": { "type": "integer", "format": "int64", @@ -2576,6 +2581,10 @@ "format": "int32", "example": 123 }, + "siteEnterpriseName": { + "type": "string", + "example": "example string" + }, "siteId": { "type": "integer", "format": "int64", @@ -2622,6 +2631,11 @@ "type": "string", "example": "ENUM_VALUE" }, + "exchangeServiceId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, "filter": { "$ref": "#/components/schemas/v2AssuranceTopologyOverviewPostRequestTopologyFilter" }, @@ -2855,6 +2869,11 @@ "type": "string", "example": "ENUM_VALUE" }, + "exchangeServiceId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, "filter": { "$ref": "#/components/schemas/assuranceTopologyFilter" }, @@ -2951,6 +2970,11 @@ "type": "string", "example": "ENUM_VALUE" }, + "exchangeServiceId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, "filter": { "$ref": "#/components/schemas/assuranceTopologyFilter" }, @@ -3013,6 +3037,10 @@ "format": "int32", "example": 123 }, + "serverSiteEnterpriseName": { + "type": "string", + "example": "example string" + }, "serverSiteName": { "type": "string", "example": "example string" @@ -3044,6 +3072,11 @@ "type": "string", "example": "example string" }, + "exchangeServiceId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, "filter": { "$ref": "#/components/schemas/assuranceTopologyFilter" }, @@ -3107,6 +3140,10 @@ "type": "string", "example": "example string" }, + "exchangeServiceName": { + "type": "string", + "example": "example string" + }, "firstSeenTs": { "$ref": "#/components/schemas/googleProtobufTimestamp" }, @@ -5374,6 +5411,9 @@ "type": "string", "example": "example string" }, + "enterpriseContract": { + "$ref": "#/components/schemas/commonBillingContract" + }, "logo": { "type": "string", "example": "example string" @@ -5390,9 +5430,41 @@ "additionalProperties": false, "required": [ "accountType", - "companyName" + "companyName", + "enterpriseContract" ] }, + "commonBillingContract": { + "type": "object", + "properties": { + "contractedCredits": { + "type": "number", + "format": "float", + "example": 12.34, + "description": "Number of credits agreed upon for the entirety of the current contract" + }, + "expirationDate": { + "$ref": "#/components/schemas/commonBillingTimePeriod" + } + }, + "additionalProperties": false + }, + "commonBillingTimePeriod": { + "type": "object", + "properties": { + "month": { + "type": "integer", + "format": "int32", + "example": 123 + }, + "year": { + "type": "integer", + "format": "int32", + "example": 123 + } + }, + "additionalProperties": false + }, "v1EnterprisesGetResponse": { "type": "object", "properties": { @@ -5639,6 +5711,9 @@ "type": "string", "example": "example string" }, + "enterpriseContract": { + "$ref": "#/components/schemas/commonBillingContract" + }, "enterpriseId": { "type": "integer", "format": "int64", @@ -19252,6 +19327,11 @@ "manaV2ApplicationProfile": { "type": "object", "properties": { + "portRange": { + "type": "string", + "example": "example string", + "description": "Port Range" + }, "ports": { "type": "array", "items": { @@ -20777,6 +20857,520 @@ }, "additionalProperties": false }, + "v1ExtranetPublicVifPostRequest": { + "type": "object", + "properties": { + "consumerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicy" + }, + "producerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifProducerPolicy" + }, + "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": [ + "consumerPolicy", + "producerPolicy", + "type" + ] + }, + "manaV2PublicVifConsumerPolicy": { + "type": "object", + "properties": { + "lanSegments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2PublicVifConsumerLanSegment" + } + }, + "sites": { + "$ref": "#/components/schemas/manaV2SiteInformation" + } + }, + "additionalProperties": false, + "required": [ + "lanSegments", + "sites" + ] + }, + "manaV2PublicVifConsumerLanSegment": { + "type": "object", + "properties": { + "allowedPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Allowed prefixes for the Lan Segment (required)" + } + }, + "serviceLanSegment": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "LAN segment ID for the service (required)" + } + }, + "additionalProperties": false, + "required": [ + "allowedPrefixes", + "serviceLanSegment" + ] + }, + "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 + }, + "manaV2PublicVifProducerPolicy": { + "type": "object", + "properties": { + "devices": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2PublicVifDevice" + } + }, + "profiles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ApplicationProfile" + } + }, + "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" + ] + }, + "manaV2PublicVifDevice": { + "type": "object", + "properties": { + "consumerBurstSize": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0, + "description": "Maximum Burst size per device (required)" + }, + "consumerBwSite": { + "type": "integer", + "format": "int32", + "example": 123, + "minimum": 0, + "description": "Maximum Bandwidth allocation per device (required)" + }, + "natPools": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "NAT details for the service prefixes (required)" + } + } + }, + "additionalProperties": false, + "required": [ + "consumerBurstSize", + "consumerBwSite", + "natPools" + ] + }, + "manaV2PublicVif": { + "type": "object", + "properties": { + "coveringPrefixes": { + "$ref": "#/components/schemas/manaV2PublicVifDynamic" + }, + "fixedPrefixes": { + "$ref": "#/components/schemas/manaV2PublicVifFixed" + }, + "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": { + "type": "array", + "items": { + "type": "string", + "example": "example string" + } + } + }, + "additionalProperties": false + }, + "manaV2PublicVifFixed": { + "type": "object", + "properties": { + "entries": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2PublicVifFixedNat" + } + } + }, + "additionalProperties": false + }, + "manaV2PublicVifFixedNat": { + "type": "object", + "properties": { + "outsideNatPrefix": { + "type": "string", + "example": "example string" + }, + "servicePrefix": { + "type": "string", + "example": "example string" + } + }, + "additionalProperties": false + }, + "v1ExtranetPublicVifPostResponse": { + "type": "object", + "properties": { + "consumerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicyResponse" + }, + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "producerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifProducerPolicyResponse" + }, + "serviceName": { + "type": "string", + "example": "example string" + }, + "type": { + "type": "string", + "example": "ENUM_VALUE" + } + }, + "additionalProperties": false + }, + "manaV2PublicVifConsumerPolicyResponse": { + "type": "object", + "properties": { + "consumerServiceId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "lanSegments": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2PublicVifConsumerLanSegmentResponse" + } + }, + "sites": { + "$ref": "#/components/schemas/manaV2SiteInformation" + } + }, + "additionalProperties": false + }, + "manaV2PublicVifConsumerLanSegmentResponse": { + "type": "object", + "properties": { + "allowedPrefixes": { + "type": "array", + "items": { + "type": "string", + "example": "example string", + "description": "Allowed prefixes for the Lan Segment" + } + }, + "outboundSecurityRules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2SecurityPolicyRule" + } + }, + "serviceLanSegment": { + "type": "integer", + "format": "int64", + "example": 1234567891011, + "description": "LAN segment ID for the service" + }, + "trafficRules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2TrafficPolicyRule" + } + } + }, + "additionalProperties": false + }, + "manaV2PublicVifProducerPolicyResponse": { + "type": "object", + "properties": { + "devices": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2PublicVifDevice" + } + }, + "inboundSecurityRules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2SecurityPolicyRule" + } + }, + "profiles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ApplicationProfile" + } + }, + "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" + }, + "sla": { + "$ref": "#/components/schemas/manaV2SlaInformation" + }, + "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": { + "type": "object", + "properties": { + "consumerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicyResponse" + }, + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "producerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifProducerPolicyResponse" + }, + "serviceName": { + "type": "string", + "example": "example string" + }, + "type": { + "type": "string", + "example": "ENUM_VALUE" + } + }, + "additionalProperties": false + }, + "v1ExtranetPublicVifIdDeleteResponse": { + "type": "object", + "properties": {}, + "additionalProperties": false + }, + "v1ExtranetPublicVifIdGetResponse": { + "type": "object", + "properties": { + "consumerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicyResponse" + }, + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "producerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifProducerPolicyResponse" + }, + "serviceName": { + "type": "string", + "example": "example string" + }, + "type": { + "type": "string", + "example": "ENUM_VALUE" + } + }, + "additionalProperties": false + }, + "v1ExtranetPublicVifCheckPostRequest": { + "type": "object", + "properties": { + "consumerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicy" + }, + "producerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifProducerPolicy" + }, + "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": [ + "consumerPolicy", + "producerPolicy", + "type" + ] + }, + "v1ExtranetPublicVifCheckPostResponse": { + "type": "object", + "properties": { + "consumerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifConsumerPolicyResponse" + }, + "id": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "producerPolicy": { + "$ref": "#/components/schemas/manaV2PublicVifProducerPolicyResponse" + }, + "serviceName": { + "type": "string", + "example": "example string" + }, + "type": { + "type": "string", + "example": "ENUM_VALUE" + } + }, + "additionalProperties": false + }, + "v1ExtranetPublicVifGetResponse": { + "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": { @@ -21492,6 +22086,70 @@ }, "additionalProperties": false }, + "v1SitesMapDetailsGetResponse": { + "type": "object", + "properties": { + "lanSegmentIds": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2LanSegmentSitesMap" + } + } + }, + "additionalProperties": false + }, + "manaV2LanSegmentSitesMap": { + "type": "object", + "properties": { + "siteIds": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2SiteLanSegmentDeviceBuckets" + } + }, + "siteListIds": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/manaV2SiteLanSegmentDeviceBuckets" + } + } + }, + "additionalProperties": false + }, + "manaV2SiteLanSegmentDeviceBuckets": { + "type": "object", + "properties": { + "lanSegmentExists": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2SiteDeviceSummary" + } + }, + "lanSegmentMissing": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2SiteDeviceSummary" + } + } + }, + "additionalProperties": false + }, + "manaV2SiteDeviceSummary": { + "type": "object", + "properties": { + "deviceId": { + "type": "integer", + "format": "int64", + "example": 12345678910, + "minimum": 0 + }, + "hostname": { + "type": "string", + "example": "example string" + } + }, + "additionalProperties": false + }, "v1RegionsGetResponse": { "type": "object", "properties": { @@ -24092,7 +24750,7 @@ "type": "number", "format": "float", "example": 12.34, - "description": "Amount of credits billed for a contract term or monthly if no expiration date is provided" + "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)." }, "expirationDate": { "$ref": "#/components/schemas/manaV2TimePeriod" @@ -24105,6 +24763,51 @@ "properties": {}, "additionalProperties": false }, + "v1MspManagedEnterpriseContractInfoGetResponse": { + "type": "object", + "properties": { + "enterprises": { + "type": "array", + "items": { + "$ref": "#/components/schemas/manaV2ManagedEnterpriseContractInfo" + } + }, + "mspConsumedCredits": { + "type": "number", + "format": "float", + "example": 12.34, + "description": "All credits consumed by the MSP over the entirety of its contracts" + }, + "mspContract": { + "$ref": "#/components/schemas/commonBillingContract" + } + }, + "additionalProperties": false + }, + "manaV2ManagedEnterpriseContractInfo": { + "type": "object", + "properties": { + "consumedCredits": { + "type": "number", + "format": "float", + "example": 12.34, + "description": "All credits consumed over the entirety the enterprise's contracts" + }, + "enterpriseContract": { + "$ref": "#/components/schemas/commonBillingContract" + }, + "enterpriseId": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + }, + "enterpriseName": { + "type": "string", + "example": "example string" + } + }, + "additionalProperties": false + }, "v1DeviceSnapshotGetResponse": { "type": "object", "properties": { @@ -27271,6 +27974,10 @@ "type": "boolean", "example": true }, + "isRequestedStatus": { + "type": "string", + "example": "ENUM_VALUE" + }, "lastBootedAt": { "$ref": "#/components/schemas/googleProtobufTimestamp" }, @@ -37413,7 +38120,7 @@ "description": "No Content" } }, - "description": "Create a new enterprise with company details, account type, and admin user." + "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": [ @@ -38529,7 +39236,7 @@ } } }, - "description": "Get enterprises managed by your tenant, filtered by enterprise type." + "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": { @@ -39568,7 +40275,181 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetSitesUsageTopPostRequest" + "$ref": "#/components/schemas/v1ExtranetSitesUsageTopPostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetSitesUsageTopPostResponse" + } + } + } + } + }, + "description": "Get extranet service top sites usage stats" + } + }, + "/v2/extranet/total-usage": { + "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/v2ExtranetTotalUsagePostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v2ExtranetTotalUsagePostResponse" + } + } + } + } + }, + "description": "Get extranet service total usage stats" + } + }, + "/v1/nat/entries/{deviceId}": { + "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/v1NatEntriesDeviceIdGetResponse" + } + } + } + } + }, + "description": "Get the NAT entries for the device" + } + }, + "/v1/nat/utilization/{deviceId}": { + "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/v1NatUtilizationDeviceIdGetResponse" + } + } + } + } + }, + "description": "Get the NAT usage for the device" + } + }, + "/v1/flows/topology": { + "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/v1FlowsTopologyPostRequest" } } } @@ -39579,60 +40460,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetSitesUsageTopPostResponse" + "$ref": "#/components/schemas/v1FlowsTopologyPostResponse" } } } } }, - "description": "Get extranet service top sites usage stats" + "description": "Get flow based node and circuit topology for the device" } }, - "/v2/extranet/total-usage": { + "/v1/apps/device/{deviceId}/top": { "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/v2ExtranetTotalUsagePostRequest" - } - } - } - }, - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v2ExtranetTotalUsagePostResponse" - } - } - } - } - }, - "description": "Get extranet service total usage stats" - } - }, - "/v1/nat/entries/{deviceId}": { - "get": { "security": [ { "jwtAuth": [] @@ -39660,89 +40498,12 @@ } } ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/v1NatEntriesDeviceIdGetResponse" - } - } - } - } - }, - "description": "Get the NAT entries for the device" - } - }, - "/v1/nat/utilization/{deviceId}": { - "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/v1NatUtilizationDeviceIdGetResponse" - } - } - } - } - }, - "description": "Get the NAT usage for the device" - } - }, - "/v1/flows/topology": { - "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/v1FlowsTopologyPostRequest" + "$ref": "#/components/schemas/v1AppsDeviceDeviceIdTopPostRequest" } } } @@ -39753,16 +40514,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1FlowsTopologyPostResponse" + "$ref": "#/components/schemas/v1AppsDeviceDeviceIdTopPostResponse" } } } } }, - "description": "Get flow based node and circuit topology for the device" + "description": "Get top apps for a device" } }, - "/v1/apps/device/{deviceId}/top": { + "/v1/apps/site/{siteId}/top": { "post": { "security": [ { @@ -39780,7 +40541,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "siteId", "in": "path", "required": true, "description": "", @@ -39796,7 +40557,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsDeviceDeviceIdTopPostRequest" + "$ref": "#/components/schemas/v1AppsSiteSiteIdTopPostRequest" } } } @@ -39807,16 +40568,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsDeviceDeviceIdTopPostResponse" + "$ref": "#/components/schemas/v1AppsSiteSiteIdTopPostResponse" } } } } }, - "description": "Get top apps for a device" + "description": "Get top apps for a site" } }, - "/v1/apps/site/{siteId}/top": { + "/v1/talkers/device/{deviceId}/top": { "post": { "security": [ { @@ -39834,7 +40595,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "siteId", + "name": "deviceId", "in": "path", "required": true, "description": "", @@ -39850,7 +40611,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsSiteSiteIdTopPostRequest" + "$ref": "#/components/schemas/v1TalkersDeviceDeviceIdTopPostRequest" } } } @@ -39861,16 +40622,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1AppsSiteSiteIdTopPostResponse" + "$ref": "#/components/schemas/v1TalkersDeviceDeviceIdTopPostResponse" } } } } }, - "description": "Get top apps for a site" + "description": "Get top talkers for a device" } }, - "/v1/talkers/device/{deviceId}/top": { + "/v1/talkers/site/{siteId}/top": { "post": { "security": [ { @@ -39888,7 +40649,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "deviceId", + "name": "siteId", "in": "path", "required": true, "description": "", @@ -39904,7 +40665,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TalkersDeviceDeviceIdTopPostRequest" + "$ref": "#/components/schemas/v1TalkersSiteSiteIdTopPostRequest" } } } @@ -39915,16 +40676,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TalkersDeviceDeviceIdTopPostResponse" + "$ref": "#/components/schemas/v1TalkersSiteSiteIdTopPostResponse" } } } } }, - "description": "Get top talkers for a device" + "description": "Get top talkers for a site" } }, - "/v1/talkers/site/{siteId}/top": { + "/v1/extranets/{id}/apply": { "post": { "security": [ { @@ -39942,7 +40703,7 @@ "description": "Bearer token. Format: Bearer " }, { - "name": "siteId", + "name": "id", "in": "path", "required": true, "description": "", @@ -39958,27 +40719,26 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TalkersSiteSiteIdTopPostRequest" + "$ref": "#/components/schemas/v1ExtranetsIdApplyPostRequest" } } } }, "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1TalkersSiteSiteIdTopPostResponse" + "$ref": "#/components/schemas/v1ExtranetsIdApplyPostResponse" } } } } - }, - "description": "Get top talkers for a site" + } } }, - "/v1/extranets/{id}/apply": { + "/v1/extranet-public-vif/check": { "post": { "security": [ { @@ -39994,17 +40754,6 @@ "type": "string" }, "description": "Bearer token. Format: Bearer " - }, - { - "name": "id", - "in": "path", - "required": true, - "description": "", - "schema": { - "type": "integer", - "format": "int64", - "example": 1234567891011 - } } ], "requestBody": { @@ -40012,23 +40761,24 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsIdApplyPostRequest" + "$ref": "#/components/schemas/v1ExtranetPublicVifCheckPostRequest" } } } }, "responses": { - "202": { - "description": "Accepted", + "200": { + "description": "OK", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1ExtranetsIdApplyPostResponse" + "$ref": "#/components/schemas/v1ExtranetPublicVifCheckPostResponse" } } } } - } + }, + "description": "Check Public Vif service" } }, "/v1/global/config": { @@ -40952,7 +41702,81 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalContentFiltersPostRequest" + "$ref": "#/components/schemas/v1GlobalContentFiltersPostRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalContentFiltersPostResponse" + } + } + } + } + }, + "description": "Configure a new content filter under the current enterprise" + }, + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "type": "string" + }, + "description": "Bearer token. Format: Bearer " + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1GlobalContentFiltersGetResponse" + } + } + } + } + }, + "description": "Get basic details for all content filter under the current enterprise" + } + }, + "/v1/global/lan-segments": { + "post": { + "security": [ + { + "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/v1GlobalLanSegmentsPostRequest" } } } @@ -40963,13 +41787,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalContentFiltersPostResponse" + "$ref": "#/components/schemas/v1GlobalLanSegmentsPostResponse" } } } } }, - "description": "Configure a new content filter under the current enterprise" + "description": "Create a new lan-segment scoped to the enterprise" }, "get": { "security": [ @@ -40994,16 +41818,16 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalContentFiltersGetResponse" + "$ref": "#/components/schemas/v1GlobalLanSegmentsGetResponse" } } } } }, - "description": "Get basic details for all content filter under the current enterprise" + "description": "Get a list of lan-segments under the currently logged in enterprise" } }, - "/v1/global/lan-segments": { + "/v1/extranet-public-vif": { "post": { "security": [ { @@ -41026,7 +41850,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalLanSegmentsPostRequest" + "$ref": "#/components/schemas/v1ExtranetPublicVifPostRequest" } } } @@ -41037,13 +41861,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalLanSegmentsPostResponse" + "$ref": "#/components/schemas/v1ExtranetPublicVifPostResponse" } } } } }, - "description": "Create a new lan-segment scoped to the enterprise" + "description": "Create Public Vif service" }, "get": { "security": [ @@ -41068,13 +41892,13 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/v1GlobalLanSegmentsGetResponse" + "$ref": "#/components/schemas/v1ExtranetPublicVifGetResponse" } } } } }, - "description": "Get a list of lan-segments under the currently logged in enterprise" + "description": "Get Public Vif summary" } }, "/v1/policy/route-tag-sets": { @@ -42569,6 +43393,144 @@ "description": "Delete a lan-segment" } }, + "/v1/extranet-public-vif/{id}": { + "delete": { + "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/v1ExtranetPublicVifIdDeleteResponse" + } + } + } + } + }, + "description": "Delete Public Vif 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": "Public VIF producer policy", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetPublicVifIdGetResponse" + } + } + } + } + }, + "description": "Get Public Vif service" + }, + "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": "Public VIF producer service id", + "schema": { + "type": "integer", + "format": "int64", + "example": 1234567891011 + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetPublicVifIdPutRequest" + } + } + } + }, + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1ExtranetPublicVifIdPutResponse" + } + } + } + } + }, + "description": "Update Public Vif service" + } + }, "/v1/policy/route-tag-sets/{id}": { "delete": { "security": [ @@ -46443,6 +47405,39 @@ "description": "Get a list of lan-segment devices under the currently logged in enterprise" } }, + "/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": [ @@ -46935,6 +47930,96 @@ "description": "Get a list of sites with aggregated values and site wide status" } }, + "/v1/sites/map/details": { + "get": { + "security": [ + { + "jwtAuth": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "Authorization", + "required": true, + "schema": { + "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 + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/v1SitesMapDetailsGetResponse" + } + } + } + } + }, + "description": "Per LAN segment (VRF), sites touched by that segment and device lists with/without the segment on each site" + } + }, "/v1/devices/{deviceId}/slice/peers": { "get": { "security": [ @@ -47479,7 +48564,7 @@ } } }, - "description": "Update an enterprise to use a new monthly or term-based contract" + "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/gateways/status": { diff --git a/graphiant_sdk/__init__.py b/graphiant_sdk/__init__.py index 23ec657b..0936dd02 100644 --- a/graphiant_sdk/__init__.py +++ b/graphiant_sdk/__init__.py @@ -14,7 +14,7 @@ """ # noqa: E501 -__version__ = "26.4.0" +__version__ = "26.5.0" # Define package exports __all__ = [ @@ -94,6 +94,8 @@ "AuditmonHistogram", "AuditmonSelector", "AuthPermissions", + "CommonBillingContract", + "CommonBillingTimePeriod", "CommonPageInfo", "CommonPageRequest", "CommonPermissions", @@ -324,11 +326,13 @@ "ManaV2LacpConfig", "ManaV2LagInterface", "ManaV2LagInterfaceConfig", + "ManaV2LanSegmentSitesMap", "ManaV2LatencyBandwidth", "ManaV2LldpNeighbor", "ManaV2Location", "ManaV2MaCsecConfiguration", "ManaV2ManaConfiguration", + "ManaV2ManagedEnterpriseContractInfo", "ManaV2NATPolicyRulesetConfigNullableRule", "ManaV2NATPolicyRulesetConfigNullableRuleRule", "ManaV2NATPolicyRulesetRule", @@ -486,6 +490,18 @@ "ManaV2PrometheusRuleGroupConfig", "ManaV2PrometheusSysDbMonitorConfig", "ManaV2PskConfiguration", + "ManaV2PublicVif", + "ManaV2PublicVifConsumerLanSegment", + "ManaV2PublicVifConsumerLanSegmentResponse", + "ManaV2PublicVifConsumerPolicy", + "ManaV2PublicVifConsumerPolicyResponse", + "ManaV2PublicVifDevice", + "ManaV2PublicVifDynamic", + "ManaV2PublicVifFixed", + "ManaV2PublicVifFixedNat", + "ManaV2PublicVifProducerPolicy", + "ManaV2PublicVifProducerPolicyResponse", + "ManaV2PublicVifSummary", "ManaV2QoSProfile", "ManaV2QoSProfileQueue", "ManaV2Region", @@ -523,6 +539,9 @@ "ManaV2SingleRouteTagRouteTagElement", "ManaV2Site", "ManaV2SiteDeviceStub", + "ManaV2SiteDeviceSummary", + "ManaV2SiteInformation", + "ManaV2SiteLanSegmentDeviceBuckets", "ManaV2SiteList", "ManaV2SiteListEntry", "ManaV2SiteListSiteEntry", @@ -753,12 +772,9 @@ "V1AuthErrorPostResponse", "V1AuthGcsPostRequest", "V1AuthGetResponse", - "V1AuthLoginCallbackPost500Response", "V1AuthLoginPostRequest", "V1AuthLoginPostResponse", "V1AuthLoginPreGetResponse", - "V1AuthLoginSamlGet401Response", - "V1AuthLoginSamlGet500Response", "V1AuthLoginTempPostRequest", "V1AuthMfaPatchRequest", "V1AuthMfaPost500Response", @@ -768,11 +784,7 @@ "V1AuthPatchRequest", "V1AuthPutRequest", "V1AuthRefreshGet200Response", - "V1AuthRefreshGet403Response", - "V1AuthRefreshGet422Response", "V1AuthRefreshGetEntryPointResponse", - "V1AuthSessionGet403Response", - "V1AuthSessionGet422Response", "V1AuthUserGetResponse", "V1BackboneHealthDeviceDeviceIdPostRequest", "V1BackboneHealthDeviceDeviceIdPostResponse", @@ -992,6 +1004,14 @@ "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest", "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", + "V1ExtranetPublicVifCheckPostRequest", + "V1ExtranetPublicVifCheckPostResponse", + "V1ExtranetPublicVifGetResponse", + "V1ExtranetPublicVifIdGetResponse", + "V1ExtranetPublicVifIdPutRequest", + "V1ExtranetPublicVifIdPutResponse", + "V1ExtranetPublicVifPostRequest", + "V1ExtranetPublicVifPostResponse", "V1ExtranetSitesUsageTopPostRequest", "V1ExtranetSitesUsageTopPostResponse", "V1ExtranetSitesUsageTopPostResponseSiteUsage", @@ -1167,6 +1187,7 @@ "V1LldpInterfaceIdVendorsGetResponse", "V1LogsPostRequest", "V1LogsPostResponse", + "V1MspManagedEnterpriseContractInfoGetResponse", "V1NatEntriesDeviceIdGetResponse", "V1NatUtilizationDeviceIdGetResponse", "V1OnboardingCloudinitGetResponse", @@ -1188,6 +1209,7 @@ "V1SiteIdDetailsInterfacesGetResponse", "V1SitesDetailsGetResponse", "V1SitesGetResponse", + "V1SitesMapDetailsGetResponse", "V1SitesPostRequest", "V1SitesPostResponse", "V1SitesSiteIdCircuitsGetResponse", @@ -1495,6 +1517,8 @@ from graphiant_sdk.models.auditmon_histogram import AuditmonHistogram as AuditmonHistogram from graphiant_sdk.models.auditmon_selector import AuditmonSelector as AuditmonSelector from graphiant_sdk.models.auth_permissions import AuthPermissions as AuthPermissions +from graphiant_sdk.models.common_billing_contract import CommonBillingContract as CommonBillingContract +from graphiant_sdk.models.common_billing_time_period import CommonBillingTimePeriod as CommonBillingTimePeriod from graphiant_sdk.models.common_page_info import CommonPageInfo as CommonPageInfo from graphiant_sdk.models.common_page_request import CommonPageRequest as CommonPageRequest from graphiant_sdk.models.common_permissions import CommonPermissions as CommonPermissions @@ -1725,11 +1749,13 @@ 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_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 from graphiant_sdk.models.mana_v2_location import ManaV2Location as ManaV2Location from graphiant_sdk.models.mana_v2_ma_csec_configuration import ManaV2MaCsecConfiguration as ManaV2MaCsecConfiguration from graphiant_sdk.models.mana_v2_mana_configuration import ManaV2ManaConfiguration as ManaV2ManaConfiguration +from graphiant_sdk.models.mana_v2_managed_enterprise_contract_info import ManaV2ManagedEnterpriseContractInfo as ManaV2ManagedEnterpriseContractInfo from graphiant_sdk.models.mana_v2_nat_policy_ruleset_config_nullable_rule import ManaV2NATPolicyRulesetConfigNullableRule as ManaV2NATPolicyRulesetConfigNullableRule from graphiant_sdk.models.mana_v2_nat_policy_ruleset_config_nullable_rule_rule import ManaV2NATPolicyRulesetConfigNullableRuleRule as ManaV2NATPolicyRulesetConfigNullableRuleRule from graphiant_sdk.models.mana_v2_nat_policy_ruleset_rule import ManaV2NATPolicyRulesetRule as ManaV2NATPolicyRulesetRule @@ -1887,6 +1913,18 @@ 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_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 from graphiant_sdk.models.mana_v2_region import ManaV2Region as ManaV2Region @@ -1924,6 +1962,9 @@ from graphiant_sdk.models.mana_v2_single_route_tag_route_tag_element import ManaV2SingleRouteTagRouteTagElement as ManaV2SingleRouteTagRouteTagElement from graphiant_sdk.models.mana_v2_site import ManaV2Site as ManaV2Site from graphiant_sdk.models.mana_v2_site_device_stub import ManaV2SiteDeviceStub as ManaV2SiteDeviceStub +from graphiant_sdk.models.mana_v2_site_device_summary import ManaV2SiteDeviceSummary as ManaV2SiteDeviceSummary +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation as ManaV2SiteInformation +from graphiant_sdk.models.mana_v2_site_lan_segment_device_buckets import ManaV2SiteLanSegmentDeviceBuckets as ManaV2SiteLanSegmentDeviceBuckets from graphiant_sdk.models.mana_v2_site_list import ManaV2SiteList as ManaV2SiteList from graphiant_sdk.models.mana_v2_site_list_entry import ManaV2SiteListEntry as ManaV2SiteListEntry from graphiant_sdk.models.mana_v2_site_list_site_entry import ManaV2SiteListSiteEntry as ManaV2SiteListSiteEntry @@ -2154,12 +2195,9 @@ 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 @@ -2169,11 +2207,7 @@ 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 @@ -2393,6 +2427,14 @@ 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_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 @@ -2568,6 +2610,7 @@ from graphiant_sdk.models.v1_lldp_interface_id_vendors_get_response import V1LldpInterfaceIdVendorsGetResponse as V1LldpInterfaceIdVendorsGetResponse from graphiant_sdk.models.v1_logs_post_request import V1LogsPostRequest as V1LogsPostRequest from graphiant_sdk.models.v1_logs_post_response import V1LogsPostResponse as V1LogsPostResponse +from graphiant_sdk.models.v1_msp_managed_enterprise_contract_info_get_response import V1MspManagedEnterpriseContractInfoGetResponse as V1MspManagedEnterpriseContractInfoGetResponse from graphiant_sdk.models.v1_nat_entries_device_id_get_response import V1NatEntriesDeviceIdGetResponse as V1NatEntriesDeviceIdGetResponse from graphiant_sdk.models.v1_nat_utilization_device_id_get_response import V1NatUtilizationDeviceIdGetResponse as V1NatUtilizationDeviceIdGetResponse from graphiant_sdk.models.v1_onboarding_cloudinit_get_response import V1OnboardingCloudinitGetResponse as V1OnboardingCloudinitGetResponse @@ -2589,6 +2632,7 @@ from graphiant_sdk.models.v1_site_id_details_interfaces_get_response import V1SiteIdDetailsInterfacesGetResponse as V1SiteIdDetailsInterfacesGetResponse from graphiant_sdk.models.v1_sites_details_get_response import V1SitesDetailsGetResponse as V1SitesDetailsGetResponse from graphiant_sdk.models.v1_sites_get_response import V1SitesGetResponse as V1SitesGetResponse +from graphiant_sdk.models.v1_sites_map_details_get_response import V1SitesMapDetailsGetResponse as V1SitesMapDetailsGetResponse from graphiant_sdk.models.v1_sites_post_request import V1SitesPostRequest as V1SitesPostRequest from graphiant_sdk.models.v1_sites_post_response import V1SitesPostResponse as V1SitesPostResponse from graphiant_sdk.models.v1_sites_site_id_circuits_get_response import V1SitesSiteIdCircuitsGetResponse as V1SitesSiteIdCircuitsGetResponse diff --git a/graphiant_sdk/api/default_api.py b/graphiant_sdk/api/default_api.py index 537579ee..4c025400 100644 --- a/graphiant_sdk/api/default_api.py +++ b/graphiant_sdk/api/default_api.py @@ -243,6 +243,14 @@ 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_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 @@ -399,6 +407,7 @@ from graphiant_sdk.models.v1_lldp_interface_id_vendors_get_response import V1LldpInterfaceIdVendorsGetResponse 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_msp_managed_enterprise_contract_info_get_response import V1MspManagedEnterpriseContractInfoGetResponse from graphiant_sdk.models.v1_nat_entries_device_id_get_response import V1NatEntriesDeviceIdGetResponse from graphiant_sdk.models.v1_nat_utilization_device_id_get_response import V1NatUtilizationDeviceIdGetResponse from graphiant_sdk.models.v1_onboarding_cloudinit_get_response import V1OnboardingCloudinitGetResponse @@ -419,6 +428,7 @@ from graphiant_sdk.models.v1_site_id_details_interfaces_get_response import V1SiteIdDetailsInterfacesGetResponse from graphiant_sdk.models.v1_sites_details_get_response import V1SitesDetailsGetResponse from graphiant_sdk.models.v1_sites_get_response import V1SitesGetResponse +from graphiant_sdk.models.v1_sites_map_details_get_response import V1SitesMapDetailsGetResponse 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_sites_site_id_circuits_get_response import V1SitesSiteIdCircuitsGetResponse @@ -5464,7 +5474,7 @@ def v1_auth_login_callback_post( _response_types_map: Dict[str, Optional[str]] = { '302': None, '401': "V1AuthErrorPostResponse", - '500': "V1AuthLoginCallbackPost500Response", + '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( *_param, @@ -5536,7 +5546,7 @@ def v1_auth_login_callback_post_with_http_info( _response_types_map: Dict[str, Optional[str]] = { '302': None, '401': "V1AuthErrorPostResponse", - '500': "V1AuthLoginCallbackPost500Response", + '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( *_param, @@ -5608,7 +5618,7 @@ def v1_auth_login_callback_post_without_preload_content( _response_types_map: Dict[str, Optional[str]] = { '302': None, '401': "V1AuthErrorPostResponse", - '500': "V1AuthLoginCallbackPost500Response", + '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( *_param, @@ -6312,8 +6322,8 @@ def v1_auth_login_saml_get( _response_types_map: Dict[str, Optional[str]] = { '200': None, - '401': "V1AuthLoginSamlGet401Response", - '500': "V1AuthLoginSamlGet500Response", + '401': "V1AuthMfaPost500Response", + '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( *_param, @@ -6373,9 +6383,1640 @@ def v1_auth_login_saml_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_login_saml_get_serialize( - email=email, - relay_state=relay_state, + _param = self._v1_auth_login_saml_get_serialize( + email=email, + relay_state=relay_state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '401': "V1AuthMfaPost500Response", + '500': "V1AuthMfaPost500Response", + } + 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_auth_login_saml_get_without_preload_content( + self, + email: Annotated[StrictStr, Field(description="User email address")], + relay_state: Annotated[Optional[StrictStr], Field(description="State to relay after authentication")] = 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_auth_login_saml_get + + + :param email: User email address (required) + :type email: str + :param relay_state: State to relay after authentication + :type relay_state: 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_auth_login_saml_get_serialize( + email=email, + relay_state=relay_state, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': None, + '401': "V1AuthMfaPost500Response", + '500': "V1AuthMfaPost500Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_auth_login_saml_get_serialize( + self, + email, + relay_state, + _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 email is not None: + + _query_params.append(('email', email)) + + if relay_state is not None: + + _query_params.append(('relayState', relay_state)) + + # process the header parameters + # 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/auth/login/saml', + 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_auth_login_temp_post( + self, + v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest, + _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, + ) -> V1AuthLoginPostResponse: + """v1_auth_login_temp_post + + + :param v1_auth_login_temp_post_request: (required) + :type v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest + :param _request_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_auth_login_temp_post_serialize( + v1_auth_login_temp_post_request=v1_auth_login_temp_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1AuthLoginPostResponse", + '400': 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_auth_login_temp_post_with_http_info( + self, + v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest, + _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[V1AuthLoginPostResponse]: + """v1_auth_login_temp_post + + + :param v1_auth_login_temp_post_request: (required) + :type v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest + :param _request_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_auth_login_temp_post_serialize( + v1_auth_login_temp_post_request=v1_auth_login_temp_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1AuthLoginPostResponse", + '400': 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_auth_login_temp_post_without_preload_content( + self, + v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest, + _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_auth_login_temp_post + + + :param v1_auth_login_temp_post_request: (required) + :type v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest + :param _request_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_auth_login_temp_post_serialize( + v1_auth_login_temp_post_request=v1_auth_login_temp_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1AuthLoginPostResponse", + '400': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_auth_login_temp_post_serialize( + self, + v1_auth_login_temp_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 + # process the form parameters + # process the body parameter + if v1_auth_login_temp_post_request is not None: + _body_params = v1_auth_login_temp_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/auth/login/temp', + 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_auth_mfa_delete( + 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, + ) -> None: + """v1_auth_mfa_delete + + Remove Multi-Factor Authentication enrollment for the tenant. + + :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_auth_mfa_delete_serialize( + authorization=authorization, + _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_auth_mfa_delete_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[None]: + """v1_auth_mfa_delete + + Remove Multi-Factor Authentication enrollment for the tenant. + + :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_auth_mfa_delete_serialize( + authorization=authorization, + _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_auth_mfa_delete_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_auth_mfa_delete + + Remove Multi-Factor Authentication enrollment for the tenant. + + :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_auth_mfa_delete_serialize( + authorization=authorization, + _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_auth_mfa_delete_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 + + + + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/v1/auth/mfa', + 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_auth_mfa_patch( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_mfa_patch_request: V1AuthMfaPatchRequest, + _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_auth_mfa_patch + + Enroll tenant in Multi-Factor Authentication (SMS, GoogleAuth). + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_auth_mfa_patch_request: (required) + :type v1_auth_mfa_patch_request: V1AuthMfaPatchRequest + :param _request_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_auth_mfa_patch_serialize( + authorization=authorization, + v1_auth_mfa_patch_request=v1_auth_mfa_patch_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + 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_auth_mfa_patch_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_mfa_patch_request: V1AuthMfaPatchRequest, + _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_auth_mfa_patch + + Enroll tenant in Multi-Factor Authentication (SMS, GoogleAuth). + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_auth_mfa_patch_request: (required) + :type v1_auth_mfa_patch_request: V1AuthMfaPatchRequest + :param _request_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_auth_mfa_patch_serialize( + authorization=authorization, + v1_auth_mfa_patch_request=v1_auth_mfa_patch_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + 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_auth_mfa_patch_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_mfa_patch_request: V1AuthMfaPatchRequest, + _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_auth_mfa_patch + + Enroll tenant in Multi-Factor Authentication (SMS, GoogleAuth). + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_auth_mfa_patch_request: (required) + :type v1_auth_mfa_patch_request: V1AuthMfaPatchRequest + :param _request_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_auth_mfa_patch_serialize( + authorization=authorization, + v1_auth_mfa_patch_request=v1_auth_mfa_patch_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_auth_mfa_patch_serialize( + self, + authorization, + v1_auth_mfa_patch_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # 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_auth_mfa_patch_request is not None: + _body_params = v1_auth_mfa_patch_request + + + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'jwtAuth' + ] + + return self.api_client.param_serialize( + method='PATCH', + resource_path='/v1/auth/mfa', + 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_auth_mfa_post( + self, + v1_auth_mfa_post_request: V1AuthMfaPostRequest, + _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, + ) -> V1AuthLoginPostResponse: + """v1_auth_mfa_post + + + :param v1_auth_mfa_post_request: (required) + :type v1_auth_mfa_post_request: V1AuthMfaPostRequest + :param _request_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_auth_mfa_post_serialize( + v1_auth_mfa_post_request=v1_auth_mfa_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1AuthLoginPostResponse", + '400': "V1AuthErrorPostResponse", + '500': "V1AuthMfaPost500Response", + } + 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_auth_mfa_post_with_http_info( + self, + v1_auth_mfa_post_request: V1AuthMfaPostRequest, + _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[V1AuthLoginPostResponse]: + """v1_auth_mfa_post + + + :param v1_auth_mfa_post_request: (required) + :type v1_auth_mfa_post_request: V1AuthMfaPostRequest + :param _request_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_auth_mfa_post_serialize( + v1_auth_mfa_post_request=v1_auth_mfa_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1AuthLoginPostResponse", + '400': "V1AuthErrorPostResponse", + '500': "V1AuthMfaPost500Response", + } + 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_auth_mfa_post_without_preload_content( + self, + v1_auth_mfa_post_request: V1AuthMfaPostRequest, + _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_auth_mfa_post + + + :param v1_auth_mfa_post_request: (required) + :type v1_auth_mfa_post_request: V1AuthMfaPostRequest + :param _request_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_auth_mfa_post_serialize( + v1_auth_mfa_post_request=v1_auth_mfa_post_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1AuthLoginPostResponse", + '400': "V1AuthErrorPostResponse", + '500': "V1AuthMfaPost500Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_auth_mfa_post_serialize( + self, + v1_auth_mfa_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 + # process the form parameters + # process the body parameter + if v1_auth_mfa_post_request is not None: + _body_params = v1_auth_mfa_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/auth/mfa', + 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_auth_mfa_types_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, + ) -> V1AuthMfaTypesGetResponse: + """v1_auth_mfa_types_get + + Get MFA types allowed by enterprise policy. + + :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_auth_mfa_types_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': "V1AuthMfaTypesGetResponse", + } + 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_auth_mfa_types_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[V1AuthMfaTypesGetResponse]: + """v1_auth_mfa_types_get + + Get MFA types allowed by enterprise policy. + + :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_auth_mfa_types_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': "V1AuthMfaTypesGetResponse", + } + 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_auth_mfa_types_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_auth_mfa_types_get + + Get MFA types allowed by enterprise policy. + + :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_auth_mfa_types_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': "V1AuthMfaTypesGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_auth_mfa_types_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/auth/mfa/types', + 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_auth_mfa_types_put( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest, + _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_auth_mfa_types_put + + Update enterprise MFA policy to allow/disallow specific MFA types. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_auth_mfa_types_put_request: (required) + :type v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest + :param _request_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_auth_mfa_types_put_serialize( + authorization=authorization, + v1_auth_mfa_types_put_request=v1_auth_mfa_types_put_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_auth_mfa_types_put_with_http_info( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest, + _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_auth_mfa_types_put + + Update enterprise MFA policy to allow/disallow specific MFA types. + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_auth_mfa_types_put_request: (required) + :type v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest + :param _request_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_auth_mfa_types_put_serialize( + authorization=authorization, + v1_auth_mfa_types_put_request=v1_auth_mfa_types_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6383,9 +8024,7 @@ def v1_auth_login_saml_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '401': "V1AuthLoginSamlGet401Response", - '500': "V1AuthLoginSamlGet500Response", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -6399,10 +8038,10 @@ def v1_auth_login_saml_get_with_http_info( @validate_call - def v1_auth_login_saml_get_without_preload_content( + def v1_auth_mfa_types_put_without_preload_content( self, - email: Annotated[StrictStr, Field(description="User email address")], - relay_state: Annotated[Optional[StrictStr], Field(description="State to relay after authentication")] = None, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6416,13 +8055,14 @@ def v1_auth_login_saml_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_login_saml_get + """v1_auth_mfa_types_put + Update enterprise MFA policy to allow/disallow specific MFA types. - :param email: User email address (required) - :type email: str - :param relay_state: State to relay after authentication - :type relay_state: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_auth_mfa_types_put_request: (required) + :type v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6445,9 +8085,9 @@ def v1_auth_login_saml_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_login_saml_get_serialize( - email=email, - relay_state=relay_state, + _param = self._v1_auth_mfa_types_put_serialize( + authorization=authorization, + v1_auth_mfa_types_put_request=v1_auth_mfa_types_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6455,9 +8095,7 @@ def v1_auth_login_saml_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': None, - '401': "V1AuthLoginSamlGet401Response", - '500': "V1AuthLoginSamlGet500Response", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -6466,10 +8104,10 @@ def v1_auth_login_saml_get_without_preload_content( return response_data.response - def _v1_auth_login_saml_get_serialize( + def _v1_auth_mfa_types_put_serialize( self, - email, - relay_state, + authorization, + v1_auth_mfa_types_put_request, _request_auth, _content_type, _headers, @@ -6492,27 +8130,29 @@ def _v1_auth_login_saml_get_serialize( # process the path parameters # process the query parameters - if email is not None: - - _query_params.append(('email', email)) - - if relay_state is not None: - - _query_params.append(('relayState', relay_state)) - # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_auth_mfa_types_put_request is not None: + _body_params = v1_auth_mfa_types_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] = [ @@ -6520,8 +8160,8 @@ def _v1_auth_login_saml_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/auth/login/saml', + method='PUT', + resource_path='/v1/auth/mfa/types', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6538,9 +8178,10 @@ def _v1_auth_login_saml_get_serialize( @validate_call - def v1_auth_login_temp_post( + def v1_auth_patch( self, - v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_patch_request: V1AuthPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6553,12 +8194,15 @@ def v1_auth_login_temp_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1AuthLoginPostResponse: - """v1_auth_login_temp_post + ) -> None: + """v1_auth_patch + Update Identity Provider configuration (certificates, endpoints, etc.). - :param v1_auth_login_temp_post_request: (required) - :type v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_auth_patch_request: (required) + :type v1_auth_patch_request: V1AuthPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6581,8 +8225,9 @@ def v1_auth_login_temp_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_login_temp_post_serialize( - v1_auth_login_temp_post_request=v1_auth_login_temp_post_request, + _param = self._v1_auth_patch_serialize( + authorization=authorization, + v1_auth_patch_request=v1_auth_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6590,8 +8235,7 @@ def v1_auth_login_temp_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthLoginPostResponse", - '400': None, + '204': None, } response_data = self.api_client.call_api( *_param, @@ -6605,9 +8249,10 @@ def v1_auth_login_temp_post( @validate_call - def v1_auth_login_temp_post_with_http_info( + def v1_auth_patch_with_http_info( self, - v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_patch_request: V1AuthPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6620,12 +8265,15 @@ def v1_auth_login_temp_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[V1AuthLoginPostResponse]: - """v1_auth_login_temp_post + ) -> ApiResponse[None]: + """v1_auth_patch + Update Identity Provider configuration (certificates, endpoints, etc.). - :param v1_auth_login_temp_post_request: (required) - :type v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_auth_patch_request: (required) + :type v1_auth_patch_request: V1AuthPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6648,8 +8296,9 @@ def v1_auth_login_temp_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_login_temp_post_serialize( - v1_auth_login_temp_post_request=v1_auth_login_temp_post_request, + _param = self._v1_auth_patch_serialize( + authorization=authorization, + v1_auth_patch_request=v1_auth_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6657,8 +8306,7 @@ def v1_auth_login_temp_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthLoginPostResponse", - '400': None, + '204': None, } response_data = self.api_client.call_api( *_param, @@ -6672,9 +8320,10 @@ def v1_auth_login_temp_post_with_http_info( @validate_call - def v1_auth_login_temp_post_without_preload_content( + def v1_auth_patch_without_preload_content( self, - v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_patch_request: V1AuthPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6688,11 +8337,14 @@ def v1_auth_login_temp_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_login_temp_post + """v1_auth_patch + Update Identity Provider configuration (certificates, endpoints, etc.). - :param v1_auth_login_temp_post_request: (required) - :type v1_auth_login_temp_post_request: V1AuthLoginTempPostRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_auth_patch_request: (required) + :type v1_auth_patch_request: V1AuthPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6715,8 +8367,9 @@ def v1_auth_login_temp_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_login_temp_post_serialize( - v1_auth_login_temp_post_request=v1_auth_login_temp_post_request, + _param = self._v1_auth_patch_serialize( + authorization=authorization, + v1_auth_patch_request=v1_auth_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6724,8 +8377,7 @@ def v1_auth_login_temp_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthLoginPostResponse", - '400': None, + '204': None, } response_data = self.api_client.call_api( *_param, @@ -6734,9 +8386,10 @@ def v1_auth_login_temp_post_without_preload_content( return response_data.response - def _v1_auth_login_temp_post_serialize( + def _v1_auth_patch_serialize( self, - v1_auth_login_temp_post_request, + authorization, + v1_auth_patch_request, _request_auth, _content_type, _headers, @@ -6760,19 +8413,14 @@ def _v1_auth_login_temp_post_serialize( # 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_auth_login_temp_post_request is not None: - _body_params = v1_auth_login_temp_post_request + if v1_auth_patch_request is not None: + _body_params = v1_auth_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: @@ -6794,8 +8442,8 @@ def _v1_auth_login_temp_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/auth/login/temp', + method='PATCH', + resource_path='/v1/auth', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6812,9 +8460,10 @@ def _v1_auth_login_temp_post_serialize( @validate_call - def v1_auth_mfa_delete( + def v1_auth_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_put_request: V1AuthPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6828,12 +8477,14 @@ def v1_auth_mfa_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_auth_mfa_delete + """v1_auth_put - Remove Multi-Factor Authentication enrollment for the tenant. + Configure Identity Provider (SAML) for enterprise. Creates IDP configuration affecting all users in the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_auth_put_request: (required) + :type v1_auth_put_request: V1AuthPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6856,8 +8507,9 @@ def v1_auth_mfa_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_delete_serialize( + _param = self._v1_auth_put_serialize( authorization=authorization, + v1_auth_put_request=v1_auth_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6879,9 +8531,10 @@ def v1_auth_mfa_delete( @validate_call - def v1_auth_mfa_delete_with_http_info( + def v1_auth_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_put_request: V1AuthPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6895,12 +8548,14 @@ def v1_auth_mfa_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_auth_mfa_delete + """v1_auth_put - Remove Multi-Factor Authentication enrollment for the tenant. + Configure Identity Provider (SAML) for enterprise. Creates IDP configuration affecting all users in the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_auth_put_request: (required) + :type v1_auth_put_request: V1AuthPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6923,8 +8578,9 @@ def v1_auth_mfa_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_delete_serialize( + _param = self._v1_auth_put_serialize( authorization=authorization, + v1_auth_put_request=v1_auth_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6946,9 +8602,10 @@ def v1_auth_mfa_delete_with_http_info( @validate_call - def v1_auth_mfa_delete_without_preload_content( + def v1_auth_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_auth_put_request: V1AuthPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6962,12 +8619,14 @@ def v1_auth_mfa_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_mfa_delete + """v1_auth_put - Remove Multi-Factor Authentication enrollment for the tenant. + Configure Identity Provider (SAML) for enterprise. Creates IDP configuration affecting all users in the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_auth_put_request: (required) + :type v1_auth_put_request: V1AuthPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6990,8 +8649,9 @@ def v1_auth_mfa_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_delete_serialize( + _param = self._v1_auth_put_serialize( authorization=authorization, + v1_auth_put_request=v1_auth_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7008,9 +8668,10 @@ def v1_auth_mfa_delete_without_preload_content( return response_data.response - def _v1_auth_mfa_delete_serialize( + def _v1_auth_put_serialize( self, authorization, + v1_auth_put_request, _request_auth, _content_type, _headers, @@ -7038,9 +8699,24 @@ def _v1_auth_mfa_delete_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_auth_put_request is not None: + _body_params = v1_auth_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' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -7048,8 +8724,8 @@ def _v1_auth_mfa_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/auth/mfa', + method='PUT', + resource_path='/v1/auth', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7066,10 +8742,10 @@ def _v1_auth_mfa_delete_serialize( @validate_call - def v1_auth_mfa_patch( + def v1_auth_refresh_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_mfa_patch_request: V1AuthMfaPatchRequest, + current_path: Annotated[Optional[StrictStr], Field(description="Current path to redirect to after refresh")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7082,15 +8758,14 @@ def v1_auth_mfa_patch( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_auth_mfa_patch + ) -> V1AuthRefreshGet200Response: + """v1_auth_refresh_get - Enroll tenant in Multi-Factor Authentication (SMS, GoogleAuth). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_mfa_patch_request: (required) - :type v1_auth_mfa_patch_request: V1AuthMfaPatchRequest + :param current_path: Current path to redirect to after refresh + :type current_path: 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 @@ -7113,9 +8788,9 @@ def v1_auth_mfa_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_patch_serialize( + _param = self._v1_auth_refresh_get_serialize( authorization=authorization, - v1_auth_mfa_patch_request=v1_auth_mfa_patch_request, + current_path=current_path, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7123,7 +8798,10 @@ def v1_auth_mfa_patch( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1AuthRefreshGet200Response", + '403': "V1AuthMfaPost500Response", + '422': "V1AuthMfaPost500Response", + '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( *_param, @@ -7137,10 +8815,10 @@ def v1_auth_mfa_patch( @validate_call - def v1_auth_mfa_patch_with_http_info( + def v1_auth_refresh_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_mfa_patch_request: V1AuthMfaPatchRequest, + current_path: Annotated[Optional[StrictStr], Field(description="Current path to redirect to after refresh")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7153,15 +8831,14 @@ def v1_auth_mfa_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_auth_mfa_patch + ) -> ApiResponse[V1AuthRefreshGet200Response]: + """v1_auth_refresh_get - Enroll tenant in Multi-Factor Authentication (SMS, GoogleAuth). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_mfa_patch_request: (required) - :type v1_auth_mfa_patch_request: V1AuthMfaPatchRequest + :param current_path: Current path to redirect to after refresh + :type current_path: 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 @@ -7184,9 +8861,9 @@ def v1_auth_mfa_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_patch_serialize( + _param = self._v1_auth_refresh_get_serialize( authorization=authorization, - v1_auth_mfa_patch_request=v1_auth_mfa_patch_request, + current_path=current_path, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7194,7 +8871,10 @@ def v1_auth_mfa_patch_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1AuthRefreshGet200Response", + '403': "V1AuthMfaPost500Response", + '422': "V1AuthMfaPost500Response", + '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( *_param, @@ -7208,10 +8888,10 @@ def v1_auth_mfa_patch_with_http_info( @validate_call - def v1_auth_mfa_patch_without_preload_content( + def v1_auth_refresh_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_mfa_patch_request: V1AuthMfaPatchRequest, + current_path: Annotated[Optional[StrictStr], Field(description="Current path to redirect to after refresh")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7225,14 +8905,13 @@ def v1_auth_mfa_patch_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_mfa_patch + """v1_auth_refresh_get - Enroll tenant in Multi-Factor Authentication (SMS, GoogleAuth). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_mfa_patch_request: (required) - :type v1_auth_mfa_patch_request: V1AuthMfaPatchRequest + :param current_path: Current path to redirect to after refresh + :type current_path: 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 @@ -7255,9 +8934,9 @@ def v1_auth_mfa_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_patch_serialize( + _param = self._v1_auth_refresh_get_serialize( authorization=authorization, - v1_auth_mfa_patch_request=v1_auth_mfa_patch_request, + current_path=current_path, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7265,7 +8944,10 @@ def v1_auth_mfa_patch_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1AuthRefreshGet200Response", + '403': "V1AuthMfaPost500Response", + '422': "V1AuthMfaPost500Response", + '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( *_param, @@ -7274,10 +8956,10 @@ def v1_auth_mfa_patch_without_preload_content( return response_data.response - def _v1_auth_mfa_patch_serialize( + def _v1_auth_refresh_get_serialize( self, authorization, - v1_auth_mfa_patch_request, + current_path, _request_auth, _content_type, _headers, @@ -7300,29 +8982,25 @@ def _v1_auth_mfa_patch_serialize( # process the path parameters # process the query parameters + if current_path is not None: + + _query_params.append(('currentPath', current_path)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_auth_mfa_patch_request is not None: - _body_params = v1_auth_mfa_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] = [ @@ -7330,8 +9008,8 @@ def _v1_auth_mfa_patch_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/auth/mfa', + method='GET', + resource_path='/v1/auth/refresh', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7348,9 +9026,10 @@ def _v1_auth_mfa_patch_serialize( @validate_call - def v1_auth_mfa_post( + def v1_auth_session_get( self, - v1_auth_mfa_post_request: V1AuthMfaPostRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: Annotated[StrictInt, Field(description="Enterprise ID to get permissions for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7363,12 +9042,14 @@ def v1_auth_mfa_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1AuthLoginPostResponse: - """v1_auth_mfa_post + ) -> object: + """v1_auth_session_get - :param v1_auth_mfa_post_request: (required) - :type v1_auth_mfa_post_request: V1AuthMfaPostRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param enterprise_id: Enterprise ID to get permissions for (required) + :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 @@ -7391,8 +9072,9 @@ def v1_auth_mfa_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_post_serialize( - v1_auth_mfa_post_request=v1_auth_mfa_post_request, + _param = self._v1_auth_session_get_serialize( + authorization=authorization, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7400,8 +9082,9 @@ def v1_auth_mfa_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthLoginPostResponse", - '400': "V1AuthErrorPostResponse", + '200': "object", + '403': "V1AuthMfaPost500Response", + '422': "V1AuthMfaPost500Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -7416,9 +9099,10 @@ def v1_auth_mfa_post( @validate_call - def v1_auth_mfa_post_with_http_info( + def v1_auth_session_get_with_http_info( self, - v1_auth_mfa_post_request: V1AuthMfaPostRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: Annotated[StrictInt, Field(description="Enterprise ID to get permissions for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7431,12 +9115,14 @@ def v1_auth_mfa_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[V1AuthLoginPostResponse]: - """v1_auth_mfa_post + ) -> ApiResponse[object]: + """v1_auth_session_get - :param v1_auth_mfa_post_request: (required) - :type v1_auth_mfa_post_request: V1AuthMfaPostRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param enterprise_id: Enterprise ID to get permissions for (required) + :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 @@ -7459,8 +9145,9 @@ def v1_auth_mfa_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_post_serialize( - v1_auth_mfa_post_request=v1_auth_mfa_post_request, + _param = self._v1_auth_session_get_serialize( + authorization=authorization, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7468,8 +9155,9 @@ def v1_auth_mfa_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthLoginPostResponse", - '400': "V1AuthErrorPostResponse", + '200': "object", + '403': "V1AuthMfaPost500Response", + '422': "V1AuthMfaPost500Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -7484,9 +9172,10 @@ def v1_auth_mfa_post_with_http_info( @validate_call - def v1_auth_mfa_post_without_preload_content( + def v1_auth_session_get_without_preload_content( self, - v1_auth_mfa_post_request: V1AuthMfaPostRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: Annotated[StrictInt, Field(description="Enterprise ID to get permissions for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7500,11 +9189,13 @@ def v1_auth_mfa_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_mfa_post + """v1_auth_session_get - :param v1_auth_mfa_post_request: (required) - :type v1_auth_mfa_post_request: V1AuthMfaPostRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param enterprise_id: Enterprise ID to get permissions for (required) + :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 @@ -7527,8 +9218,9 @@ def v1_auth_mfa_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_post_serialize( - v1_auth_mfa_post_request=v1_auth_mfa_post_request, + _param = self._v1_auth_session_get_serialize( + authorization=authorization, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7536,8 +9228,9 @@ def v1_auth_mfa_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthLoginPostResponse", - '400': "V1AuthErrorPostResponse", + '200': "object", + '403': "V1AuthMfaPost500Response", + '422': "V1AuthMfaPost500Response", '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( @@ -7547,9 +9240,10 @@ def v1_auth_mfa_post_without_preload_content( return response_data.response - def _v1_auth_mfa_post_serialize( + def _v1_auth_session_get_serialize( self, - v1_auth_mfa_post_request, + authorization, + enterprise_id, _request_auth, _content_type, _headers, @@ -7572,11 +9266,15 @@ def _v1_auth_mfa_post_serialize( # process the path parameters # process the query parameters + if enterprise_id is not None: + + _query_params.append(('enterpriseId', enterprise_id)) + # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_auth_mfa_post_request is not None: - _body_params = v1_auth_mfa_post_request # set the HTTP header `Accept` @@ -7587,19 +9285,6 @@ def _v1_auth_mfa_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] = [ @@ -7607,8 +9292,8 @@ def _v1_auth_mfa_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/auth/mfa', + method='GET', + resource_path='/v1/auth/session', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7625,7 +9310,7 @@ def _v1_auth_mfa_post_serialize( @validate_call - def v1_auth_mfa_types_get( + def v1_auth_session_root_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -7640,10 +9325,9 @@ def v1_auth_mfa_types_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1AuthMfaTypesGetResponse: - """v1_auth_mfa_types_get + ) -> object: + """v1_auth_session_root_get - Get MFA types allowed by enterprise policy. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -7669,7 +9353,7 @@ def v1_auth_mfa_types_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_types_get_serialize( + _param = self._v1_auth_session_root_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -7678,7 +9362,10 @@ def v1_auth_mfa_types_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthMfaTypesGetResponse", + '200': "object", + '403': "V1AuthMfaPost500Response", + '422': "V1AuthMfaPost500Response", + '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( *_param, @@ -7692,7 +9379,7 @@ def v1_auth_mfa_types_get( @validate_call - def v1_auth_mfa_types_get_with_http_info( + def v1_auth_session_root_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -7707,10 +9394,9 @@ def v1_auth_mfa_types_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[V1AuthMfaTypesGetResponse]: - """v1_auth_mfa_types_get + ) -> ApiResponse[object]: + """v1_auth_session_root_get - Get MFA types allowed by enterprise policy. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -7736,7 +9422,7 @@ def v1_auth_mfa_types_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_types_get_serialize( + _param = self._v1_auth_session_root_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -7745,7 +9431,10 @@ def v1_auth_mfa_types_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthMfaTypesGetResponse", + '200': "object", + '403': "V1AuthMfaPost500Response", + '422': "V1AuthMfaPost500Response", + '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( *_param, @@ -7759,7 +9448,7 @@ def v1_auth_mfa_types_get_with_http_info( @validate_call - def v1_auth_mfa_types_get_without_preload_content( + def v1_auth_session_root_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -7775,9 +9464,8 @@ def v1_auth_mfa_types_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_mfa_types_get + """v1_auth_session_root_get - Get MFA types allowed by enterprise policy. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -7803,7 +9491,7 @@ def v1_auth_mfa_types_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_types_get_serialize( + _param = self._v1_auth_session_root_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -7812,7 +9500,10 @@ def v1_auth_mfa_types_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthMfaTypesGetResponse", + '200': "object", + '403': "V1AuthMfaPost500Response", + '422': "V1AuthMfaPost500Response", + '500': "V1AuthMfaPost500Response", } response_data = self.api_client.call_api( *_param, @@ -7821,7 +9512,7 @@ def v1_auth_mfa_types_get_without_preload_content( return response_data.response - def _v1_auth_mfa_types_get_serialize( + def _v1_auth_session_root_get_serialize( self, authorization, _request_auth, @@ -7869,7 +9560,7 @@ def _v1_auth_mfa_types_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/auth/mfa/types', + resource_path='/v1/auth/session/root', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -7886,10 +9577,9 @@ def _v1_auth_mfa_types_get_serialize( @validate_call - def v1_auth_mfa_types_put( + def v1_auth_user_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7902,15 +9592,12 @@ def v1_auth_mfa_types_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_auth_mfa_types_put + ) -> V1AuthUserGetResponse: + """v1_auth_user_get - Update enterprise MFA policy to allow/disallow specific MFA types. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_mfa_types_put_request: (required) - :type v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -7933,9 +9620,8 @@ def v1_auth_mfa_types_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_types_put_serialize( + _param = self._v1_auth_user_get_serialize( authorization=authorization, - v1_auth_mfa_types_put_request=v1_auth_mfa_types_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -7943,7 +9629,8 @@ def v1_auth_mfa_types_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1AuthUserGetResponse", + '403': None, } response_data = self.api_client.call_api( *_param, @@ -7957,10 +9644,9 @@ def v1_auth_mfa_types_put( @validate_call - def v1_auth_mfa_types_put_with_http_info( + def v1_auth_user_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -7973,15 +9659,12 @@ def v1_auth_mfa_types_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_auth_mfa_types_put + ) -> ApiResponse[V1AuthUserGetResponse]: + """v1_auth_user_get - Update enterprise MFA policy to allow/disallow specific MFA types. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_mfa_types_put_request: (required) - :type v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8004,9 +9687,8 @@ def v1_auth_mfa_types_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_types_put_serialize( + _param = self._v1_auth_user_get_serialize( authorization=authorization, - v1_auth_mfa_types_put_request=v1_auth_mfa_types_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8014,7 +9696,8 @@ def v1_auth_mfa_types_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1AuthUserGetResponse", + '403': None, } response_data = self.api_client.call_api( *_param, @@ -8028,10 +9711,9 @@ def v1_auth_mfa_types_put_with_http_info( @validate_call - def v1_auth_mfa_types_put_without_preload_content( + def v1_auth_user_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8045,14 +9727,11 @@ def v1_auth_mfa_types_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_mfa_types_put + """v1_auth_user_get - Update enterprise MFA policy to allow/disallow specific MFA types. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_mfa_types_put_request: (required) - :type v1_auth_mfa_types_put_request: V1AuthMfaTypesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8075,9 +9754,8 @@ def v1_auth_mfa_types_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_mfa_types_put_serialize( + _param = self._v1_auth_user_get_serialize( authorization=authorization, - v1_auth_mfa_types_put_request=v1_auth_mfa_types_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8085,7 +9763,8 @@ def v1_auth_mfa_types_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1AuthUserGetResponse", + '403': None, } response_data = self.api_client.call_api( *_param, @@ -8094,10 +9773,9 @@ def v1_auth_mfa_types_put_without_preload_content( return response_data.response - def _v1_auth_mfa_types_put_serialize( + def _v1_auth_user_get_serialize( self, authorization, - v1_auth_mfa_types_put_request, _request_auth, _content_type, _headers, @@ -8125,24 +9803,16 @@ def _v1_auth_mfa_types_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_auth_mfa_types_put_request is not None: - _body_params = v1_auth_mfa_types_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] = [ @@ -8150,8 +9820,8 @@ def _v1_auth_mfa_types_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/auth/mfa/types', + method='GET', + resource_path='/v1/auth/user', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8168,10 +9838,11 @@ def _v1_auth_mfa_types_put_serialize( @validate_call - def v1_auth_patch( + def v1_backbone_health_device_device_id_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_patch_request: V1AuthPatchRequest, + device_id: StrictInt, + v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8184,15 +9855,16 @@ def v1_auth_patch( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_auth_patch + ) -> V1BackboneHealthDeviceDeviceIdPostResponse: + """v1_backbone_health_device_device_id_post - Update Identity Provider configuration (certificates, endpoints, etc.). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_patch_request: (required) - :type v1_auth_patch_request: V1AuthPatchRequest + :param device_id: (required) + :type device_id: int + :param v1_backbone_health_device_device_id_post_request: (required) + :type v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8215,9 +9887,10 @@ def v1_auth_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_patch_serialize( + _param = self._v1_backbone_health_device_device_id_post_serialize( authorization=authorization, - v1_auth_patch_request=v1_auth_patch_request, + device_id=device_id, + v1_backbone_health_device_device_id_post_request=v1_backbone_health_device_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8225,7 +9898,7 @@ def v1_auth_patch( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1BackboneHealthDeviceDeviceIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -8239,10 +9912,11 @@ def v1_auth_patch( @validate_call - def v1_auth_patch_with_http_info( + def v1_backbone_health_device_device_id_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_patch_request: V1AuthPatchRequest, + device_id: StrictInt, + v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8255,15 +9929,16 @@ def v1_auth_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_auth_patch + ) -> ApiResponse[V1BackboneHealthDeviceDeviceIdPostResponse]: + """v1_backbone_health_device_device_id_post - Update Identity Provider configuration (certificates, endpoints, etc.). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_patch_request: (required) - :type v1_auth_patch_request: V1AuthPatchRequest + :param device_id: (required) + :type device_id: int + :param v1_backbone_health_device_device_id_post_request: (required) + :type v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8286,9 +9961,10 @@ def v1_auth_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_patch_serialize( + _param = self._v1_backbone_health_device_device_id_post_serialize( authorization=authorization, - v1_auth_patch_request=v1_auth_patch_request, + device_id=device_id, + v1_backbone_health_device_device_id_post_request=v1_backbone_health_device_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8296,7 +9972,7 @@ def v1_auth_patch_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1BackboneHealthDeviceDeviceIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -8310,10 +9986,11 @@ def v1_auth_patch_with_http_info( @validate_call - def v1_auth_patch_without_preload_content( + def v1_backbone_health_device_device_id_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_patch_request: V1AuthPatchRequest, + device_id: StrictInt, + v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8327,14 +10004,15 @@ def v1_auth_patch_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_patch + """v1_backbone_health_device_device_id_post - Update Identity Provider configuration (certificates, endpoints, etc.). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_patch_request: (required) - :type v1_auth_patch_request: V1AuthPatchRequest + :param device_id: (required) + :type device_id: int + :param v1_backbone_health_device_device_id_post_request: (required) + :type v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8357,9 +10035,10 @@ def v1_auth_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_patch_serialize( + _param = self._v1_backbone_health_device_device_id_post_serialize( authorization=authorization, - v1_auth_patch_request=v1_auth_patch_request, + device_id=device_id, + v1_backbone_health_device_device_id_post_request=v1_backbone_health_device_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8367,7 +10046,7 @@ def v1_auth_patch_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1BackboneHealthDeviceDeviceIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -8376,10 +10055,11 @@ def v1_auth_patch_without_preload_content( return response_data.response - def _v1_auth_patch_serialize( + def _v1_backbone_health_device_device_id_post_serialize( self, authorization, - v1_auth_patch_request, + device_id, + v1_backbone_health_device_device_id_post_request, _request_auth, _content_type, _headers, @@ -8401,16 +10081,25 @@ def _v1_auth_patch_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_auth_patch_request is not None: - _body_params = v1_auth_patch_request + if v1_backbone_health_device_device_id_post_request is not None: + _body_params = v1_backbone_health_device_device_id_post_request + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -8432,8 +10121,8 @@ def _v1_auth_patch_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/auth', + method='POST', + resource_path='/v1/backbone-health/device/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8450,10 +10139,9 @@ def _v1_auth_patch_serialize( @validate_call - def v1_auth_put( + def v1_backbone_health_et_wan_matrix_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_put_request: V1AuthPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8466,15 +10154,12 @@ def v1_auth_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_auth_put + ) -> V1BackboneHealthEtWanMatrixGetResponse: + """v1_backbone_health_et_wan_matrix_get - Configure Identity Provider (SAML) for enterprise. Creates IDP configuration affecting all users in the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_put_request: (required) - :type v1_auth_put_request: V1AuthPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8497,9 +10182,8 @@ def v1_auth_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_put_serialize( + _param = self._v1_backbone_health_et_wan_matrix_get_serialize( authorization=authorization, - v1_auth_put_request=v1_auth_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8507,7 +10191,7 @@ def v1_auth_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1BackboneHealthEtWanMatrixGetResponse", } response_data = self.api_client.call_api( *_param, @@ -8521,10 +10205,9 @@ def v1_auth_put( @validate_call - def v1_auth_put_with_http_info( + def v1_backbone_health_et_wan_matrix_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_put_request: V1AuthPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8537,15 +10220,12 @@ def v1_auth_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_auth_put + ) -> ApiResponse[V1BackboneHealthEtWanMatrixGetResponse]: + """v1_backbone_health_et_wan_matrix_get - Configure Identity Provider (SAML) for enterprise. Creates IDP configuration affecting all users in the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_put_request: (required) - :type v1_auth_put_request: V1AuthPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8568,9 +10248,8 @@ def v1_auth_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_put_serialize( + _param = self._v1_backbone_health_et_wan_matrix_get_serialize( authorization=authorization, - v1_auth_put_request=v1_auth_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8578,7 +10257,7 @@ def v1_auth_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1BackboneHealthEtWanMatrixGetResponse", } response_data = self.api_client.call_api( *_param, @@ -8592,10 +10271,9 @@ def v1_auth_put_with_http_info( @validate_call - def v1_auth_put_without_preload_content( + def v1_backbone_health_et_wan_matrix_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_auth_put_request: V1AuthPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8609,14 +10287,11 @@ def v1_auth_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_put + """v1_backbone_health_et_wan_matrix_get - Configure Identity Provider (SAML) for enterprise. Creates IDP configuration affecting all users in the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_auth_put_request: (required) - :type v1_auth_put_request: V1AuthPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8639,9 +10314,8 @@ def v1_auth_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_put_serialize( + _param = self._v1_backbone_health_et_wan_matrix_get_serialize( authorization=authorization, - v1_auth_put_request=v1_auth_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8649,7 +10323,7 @@ def v1_auth_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1BackboneHealthEtWanMatrixGetResponse", } response_data = self.api_client.call_api( *_param, @@ -8658,10 +10332,9 @@ def v1_auth_put_without_preload_content( return response_data.response - def _v1_auth_put_serialize( + def _v1_backbone_health_et_wan_matrix_get_serialize( self, authorization, - v1_auth_put_request, _request_auth, _content_type, _headers, @@ -8689,24 +10362,16 @@ def _v1_auth_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_auth_put_request is not None: - _body_params = v1_auth_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] = [ @@ -8714,8 +10379,8 @@ def _v1_auth_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/auth', + method='GET', + resource_path='/v1/backbone-health/et-wan-matrix', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -8732,10 +10397,9 @@ def _v1_auth_put_serialize( @validate_call - def v1_auth_refresh_get( + def v1_backbone_health_etet_sla_matrix_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - current_path: Annotated[Optional[StrictStr], Field(description="Current path to redirect to after refresh")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8748,14 +10412,12 @@ def v1_auth_refresh_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1AuthRefreshGet200Response: - """v1_auth_refresh_get + ) -> V1BackboneHealthEtetSlaMatrixGetResponse: + """v1_backbone_health_etet_sla_matrix_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param current_path: Current path to redirect to after refresh - :type current_path: 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 @@ -8778,9 +10440,8 @@ def v1_auth_refresh_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_refresh_get_serialize( + _param = self._v1_backbone_health_etet_sla_matrix_get_serialize( authorization=authorization, - current_path=current_path, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8788,10 +10449,7 @@ def v1_auth_refresh_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthRefreshGet200Response", - '403': "V1AuthRefreshGet403Response", - '422': "V1AuthRefreshGet422Response", - '500': "V1AuthMfaPost500Response", + '200': "V1BackboneHealthEtetSlaMatrixGetResponse", } response_data = self.api_client.call_api( *_param, @@ -8805,10 +10463,9 @@ def v1_auth_refresh_get( @validate_call - def v1_auth_refresh_get_with_http_info( + def v1_backbone_health_etet_sla_matrix_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - current_path: Annotated[Optional[StrictStr], Field(description="Current path to redirect to after refresh")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8821,14 +10478,12 @@ def v1_auth_refresh_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[V1AuthRefreshGet200Response]: - """v1_auth_refresh_get + ) -> ApiResponse[V1BackboneHealthEtetSlaMatrixGetResponse]: + """v1_backbone_health_etet_sla_matrix_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param current_path: Current path to redirect to after refresh - :type current_path: 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 @@ -8851,9 +10506,8 @@ def v1_auth_refresh_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_refresh_get_serialize( + _param = self._v1_backbone_health_etet_sla_matrix_get_serialize( authorization=authorization, - current_path=current_path, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8861,10 +10515,7 @@ def v1_auth_refresh_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthRefreshGet200Response", - '403': "V1AuthRefreshGet403Response", - '422': "V1AuthRefreshGet422Response", - '500': "V1AuthMfaPost500Response", + '200': "V1BackboneHealthEtetSlaMatrixGetResponse", } response_data = self.api_client.call_api( *_param, @@ -8878,10 +10529,9 @@ def v1_auth_refresh_get_with_http_info( @validate_call - def v1_auth_refresh_get_without_preload_content( + def v1_backbone_health_etet_sla_matrix_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - current_path: Annotated[Optional[StrictStr], Field(description="Current path to redirect to after refresh")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8895,13 +10545,11 @@ def v1_auth_refresh_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_refresh_get + """v1_backbone_health_etet_sla_matrix_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param current_path: Current path to redirect to after refresh - :type current_path: 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 @@ -8924,9 +10572,8 @@ def v1_auth_refresh_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_refresh_get_serialize( + _param = self._v1_backbone_health_etet_sla_matrix_get_serialize( authorization=authorization, - current_path=current_path, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8934,10 +10581,7 @@ def v1_auth_refresh_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthRefreshGet200Response", - '403': "V1AuthRefreshGet403Response", - '422': "V1AuthRefreshGet422Response", - '500': "V1AuthMfaPost500Response", + '200': "V1BackboneHealthEtetSlaMatrixGetResponse", } response_data = self.api_client.call_api( *_param, @@ -8946,10 +10590,9 @@ def v1_auth_refresh_get_without_preload_content( return response_data.response - def _v1_auth_refresh_get_serialize( + def _v1_backbone_health_etet_sla_matrix_get_serialize( self, authorization, - current_path, _request_auth, _content_type, _headers, @@ -8972,10 +10615,6 @@ def _v1_auth_refresh_get_serialize( # process the path parameters # process the query parameters - if current_path is not None: - - _query_params.append(('currentPath', current_path)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -8999,7 +10638,7 @@ def _v1_auth_refresh_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/auth/refresh', + resource_path='/v1/backbone-health/etet-sla-matrix', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9016,10 +10655,9 @@ def _v1_auth_refresh_get_serialize( @validate_call - def v1_auth_session_get( + def v1_backbone_health_filter_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Annotated[StrictInt, Field(description="Enterprise ID to get permissions for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9032,14 +10670,12 @@ def v1_auth_session_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_auth_session_get + ) -> V1BackboneHealthFilterGetResponse: + """v1_backbone_health_filter_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: Enterprise ID to get permissions for (required) - :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 @@ -9062,9 +10698,8 @@ def v1_auth_session_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_session_get_serialize( + _param = self._v1_backbone_health_filter_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9072,10 +10707,7 @@ def v1_auth_session_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '403': "V1AuthSessionGet403Response", - '422': "V1AuthSessionGet422Response", - '500': "V1AuthMfaPost500Response", + '200': "V1BackboneHealthFilterGetResponse", } response_data = self.api_client.call_api( *_param, @@ -9089,10 +10721,9 @@ def v1_auth_session_get( @validate_call - def v1_auth_session_get_with_http_info( + def v1_backbone_health_filter_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Annotated[StrictInt, Field(description="Enterprise ID to get permissions for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9105,14 +10736,12 @@ def v1_auth_session_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[object]: - """v1_auth_session_get + ) -> ApiResponse[V1BackboneHealthFilterGetResponse]: + """v1_backbone_health_filter_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: Enterprise ID to get permissions for (required) - :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 @@ -9135,9 +10764,8 @@ def v1_auth_session_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_session_get_serialize( + _param = self._v1_backbone_health_filter_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9145,10 +10773,7 @@ def v1_auth_session_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '403': "V1AuthSessionGet403Response", - '422': "V1AuthSessionGet422Response", - '500': "V1AuthMfaPost500Response", + '200': "V1BackboneHealthFilterGetResponse", } response_data = self.api_client.call_api( *_param, @@ -9162,10 +10787,9 @@ def v1_auth_session_get_with_http_info( @validate_call - def v1_auth_session_get_without_preload_content( + def v1_backbone_health_filter_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Annotated[StrictInt, Field(description="Enterprise ID to get permissions for")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9179,13 +10803,11 @@ def v1_auth_session_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_session_get + """v1_backbone_health_filter_get :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: Enterprise ID to get permissions for (required) - :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 @@ -9208,9 +10830,8 @@ def v1_auth_session_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_session_get_serialize( + _param = self._v1_backbone_health_filter_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9218,10 +10839,7 @@ def v1_auth_session_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '403': "V1AuthSessionGet403Response", - '422': "V1AuthSessionGet422Response", - '500': "V1AuthMfaPost500Response", + '200': "V1BackboneHealthFilterGetResponse", } response_data = self.api_client.call_api( *_param, @@ -9230,10 +10848,9 @@ def v1_auth_session_get_without_preload_content( return response_data.response - def _v1_auth_session_get_serialize( + def _v1_backbone_health_filter_get_serialize( self, authorization, - enterprise_id, _request_auth, _content_type, _headers, @@ -9256,10 +10873,6 @@ def _v1_auth_session_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 @@ -9283,7 +10896,7 @@ def _v1_auth_session_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/auth/session', + resource_path='/v1/backbone-health/filter', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9300,9 +10913,10 @@ def _v1_auth_session_get_serialize( @validate_call - def v1_auth_session_root_get( + def v1_backbone_health_overview_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9315,12 +10929,14 @@ def v1_auth_session_root_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_auth_session_root_get + ) -> V1BackboneHealthOverviewPostResponse: + """v1_backbone_health_overview_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_backbone_health_overview_post_request: (required) + :type v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9343,8 +10959,9 @@ def v1_auth_session_root_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_session_root_get_serialize( + _param = self._v1_backbone_health_overview_post_serialize( authorization=authorization, + v1_backbone_health_overview_post_request=v1_backbone_health_overview_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9352,10 +10969,7 @@ def v1_auth_session_root_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '403': "V1AuthSessionGet403Response", - '422': "V1AuthSessionGet422Response", - '500': "V1AuthMfaPost500Response", + '200': "V1BackboneHealthOverviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -9369,9 +10983,10 @@ def v1_auth_session_root_get( @validate_call - def v1_auth_session_root_get_with_http_info( + def v1_backbone_health_overview_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9384,12 +10999,14 @@ def v1_auth_session_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[object]: - """v1_auth_session_root_get + ) -> ApiResponse[V1BackboneHealthOverviewPostResponse]: + """v1_backbone_health_overview_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_backbone_health_overview_post_request: (required) + :type v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9412,8 +11029,9 @@ def v1_auth_session_root_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_session_root_get_serialize( + _param = self._v1_backbone_health_overview_post_serialize( authorization=authorization, + v1_backbone_health_overview_post_request=v1_backbone_health_overview_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9421,10 +11039,7 @@ def v1_auth_session_root_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '403': "V1AuthSessionGet403Response", - '422': "V1AuthSessionGet422Response", - '500': "V1AuthMfaPost500Response", + '200': "V1BackboneHealthOverviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -9438,9 +11053,10 @@ def v1_auth_session_root_get_with_http_info( @validate_call - def v1_auth_session_root_get_without_preload_content( + def v1_backbone_health_overview_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9454,11 +11070,13 @@ def v1_auth_session_root_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_session_root_get + """v1_backbone_health_overview_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_backbone_health_overview_post_request: (required) + :type v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9481,8 +11099,9 @@ def v1_auth_session_root_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_session_root_get_serialize( + _param = self._v1_backbone_health_overview_post_serialize( authorization=authorization, + v1_backbone_health_overview_post_request=v1_backbone_health_overview_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9490,10 +11109,7 @@ def v1_auth_session_root_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '403': "V1AuthSessionGet403Response", - '422': "V1AuthSessionGet422Response", - '500': "V1AuthMfaPost500Response", + '200': "V1BackboneHealthOverviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -9502,9 +11118,10 @@ def v1_auth_session_root_get_without_preload_content( return response_data.response - def _v1_auth_session_root_get_serialize( + def _v1_backbone_health_overview_post_serialize( self, authorization, + v1_backbone_health_overview_post_request, _request_auth, _content_type, _headers, @@ -9532,6 +11149,8 @@ def _v1_auth_session_root_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_backbone_health_overview_post_request is not None: + _body_params = v1_backbone_health_overview_post_request # set the HTTP header `Accept` @@ -9542,6 +11161,19 @@ def _v1_auth_session_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] = [ @@ -9549,8 +11181,8 @@ def _v1_auth_session_root_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/auth/session/root', + method='POST', + resource_path='/v1/backbone-health/overview', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9567,9 +11199,10 @@ def _v1_auth_session_root_get_serialize( @validate_call - def v1_auth_user_get( + def v1_backbone_health_top_devices_by_alerts_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9582,12 +11215,14 @@ def v1_auth_user_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1AuthUserGetResponse: - """v1_auth_user_get + ) -> V1BackboneHealthTopDevicesByAlertsPostResponse: + """v1_backbone_health_top_devices_by_alerts_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_backbone_health_top_devices_by_alerts_post_request: (required) + :type v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9610,8 +11245,9 @@ def v1_auth_user_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_user_get_serialize( + _param = self._v1_backbone_health_top_devices_by_alerts_post_serialize( authorization=authorization, + v1_backbone_health_top_devices_by_alerts_post_request=v1_backbone_health_top_devices_by_alerts_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9619,8 +11255,7 @@ def v1_auth_user_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthUserGetResponse", - '403': None, + '200': "V1BackboneHealthTopDevicesByAlertsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -9634,9 +11269,10 @@ def v1_auth_user_get( @validate_call - def v1_auth_user_get_with_http_info( + def v1_backbone_health_top_devices_by_alerts_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9649,12 +11285,14 @@ def v1_auth_user_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[V1AuthUserGetResponse]: - """v1_auth_user_get + ) -> ApiResponse[V1BackboneHealthTopDevicesByAlertsPostResponse]: + """v1_backbone_health_top_devices_by_alerts_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_backbone_health_top_devices_by_alerts_post_request: (required) + :type v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9677,8 +11315,9 @@ def v1_auth_user_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_user_get_serialize( + _param = self._v1_backbone_health_top_devices_by_alerts_post_serialize( authorization=authorization, + v1_backbone_health_top_devices_by_alerts_post_request=v1_backbone_health_top_devices_by_alerts_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9686,8 +11325,7 @@ def v1_auth_user_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthUserGetResponse", - '403': None, + '200': "V1BackboneHealthTopDevicesByAlertsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -9701,9 +11339,10 @@ def v1_auth_user_get_with_http_info( @validate_call - def v1_auth_user_get_without_preload_content( + def v1_backbone_health_top_devices_by_alerts_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9717,11 +11356,13 @@ def v1_auth_user_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_auth_user_get + """v1_backbone_health_top_devices_by_alerts_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_backbone_health_top_devices_by_alerts_post_request: (required) + :type v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9744,8 +11385,9 @@ def v1_auth_user_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_auth_user_get_serialize( + _param = self._v1_backbone_health_top_devices_by_alerts_post_serialize( authorization=authorization, + v1_backbone_health_top_devices_by_alerts_post_request=v1_backbone_health_top_devices_by_alerts_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9753,8 +11395,7 @@ def v1_auth_user_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1AuthUserGetResponse", - '403': None, + '200': "V1BackboneHealthTopDevicesByAlertsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -9763,9 +11404,10 @@ def v1_auth_user_get_without_preload_content( return response_data.response - def _v1_auth_user_get_serialize( + def _v1_backbone_health_top_devices_by_alerts_post_serialize( self, authorization, + v1_backbone_health_top_devices_by_alerts_post_request, _request_auth, _content_type, _headers, @@ -9793,6 +11435,8 @@ def _v1_auth_user_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_backbone_health_top_devices_by_alerts_post_request is not None: + _body_params = v1_backbone_health_top_devices_by_alerts_post_request # set the HTTP header `Accept` @@ -9803,6 +11447,19 @@ def _v1_auth_user_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] = [ @@ -9810,8 +11467,8 @@ def _v1_auth_user_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/auth/user', + method='POST', + resource_path='/v1/backbone-health/top-devices-by-alerts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -9828,11 +11485,10 @@ def _v1_auth_user_get_serialize( @validate_call - def v1_backbone_health_device_device_id_post( + def v1_bwtracker_enterprise_csv_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest, + v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9845,16 +11501,14 @@ def v1_backbone_health_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, - ) -> V1BackboneHealthDeviceDeviceIdPostResponse: - """v1_backbone_health_device_device_id_post + ) -> V1BwtrackerEnterpriseCsvPostResponse: + """v1_bwtracker_enterprise_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param v1_backbone_health_device_device_id_post_request: (required) - :type v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest + :param v1_bwtracker_enterprise_csv_post_request: (required) + :type v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9877,10 +11531,9 @@ def v1_backbone_health_device_device_id_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_device_device_id_post_serialize( + _param = self._v1_bwtracker_enterprise_csv_post_serialize( authorization=authorization, - device_id=device_id, - v1_backbone_health_device_device_id_post_request=v1_backbone_health_device_device_id_post_request, + v1_bwtracker_enterprise_csv_post_request=v1_bwtracker_enterprise_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9888,7 +11541,7 @@ def v1_backbone_health_device_device_id_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthDeviceDeviceIdPostResponse", + '200': "V1BwtrackerEnterpriseCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -9902,11 +11555,10 @@ def v1_backbone_health_device_device_id_post( @validate_call - def v1_backbone_health_device_device_id_post_with_http_info( + def v1_bwtracker_enterprise_csv_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest, + v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9919,16 +11571,14 @@ def v1_backbone_health_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[V1BackboneHealthDeviceDeviceIdPostResponse]: - """v1_backbone_health_device_device_id_post + ) -> ApiResponse[V1BwtrackerEnterpriseCsvPostResponse]: + """v1_bwtracker_enterprise_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param v1_backbone_health_device_device_id_post_request: (required) - :type v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest + :param v1_bwtracker_enterprise_csv_post_request: (required) + :type v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -9951,10 +11601,9 @@ def v1_backbone_health_device_device_id_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_device_device_id_post_serialize( + _param = self._v1_bwtracker_enterprise_csv_post_serialize( authorization=authorization, - device_id=device_id, - v1_backbone_health_device_device_id_post_request=v1_backbone_health_device_device_id_post_request, + v1_bwtracker_enterprise_csv_post_request=v1_bwtracker_enterprise_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -9962,7 +11611,7 @@ def v1_backbone_health_device_device_id_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthDeviceDeviceIdPostResponse", + '200': "V1BwtrackerEnterpriseCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -9976,11 +11625,10 @@ def v1_backbone_health_device_device_id_post_with_http_info( @validate_call - def v1_backbone_health_device_device_id_post_without_preload_content( + def v1_bwtracker_enterprise_csv_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest, + v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -9994,15 +11642,13 @@ def v1_backbone_health_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_backbone_health_device_device_id_post + """v1_bwtracker_enterprise_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param v1_backbone_health_device_device_id_post_request: (required) - :type v1_backbone_health_device_device_id_post_request: V1BackboneHealthDeviceDeviceIdPostRequest + :param v1_bwtracker_enterprise_csv_post_request: (required) + :type v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10025,10 +11671,9 @@ def v1_backbone_health_device_device_id_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_device_device_id_post_serialize( + _param = self._v1_bwtracker_enterprise_csv_post_serialize( authorization=authorization, - device_id=device_id, - v1_backbone_health_device_device_id_post_request=v1_backbone_health_device_device_id_post_request, + v1_bwtracker_enterprise_csv_post_request=v1_bwtracker_enterprise_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10036,7 +11681,7 @@ def v1_backbone_health_device_device_id_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthDeviceDeviceIdPostResponse", + '200': "V1BwtrackerEnterpriseCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10045,11 +11690,10 @@ def v1_backbone_health_device_device_id_post_without_preload_content( return response_data.response - def _v1_backbone_health_device_device_id_post_serialize( + def _v1_bwtracker_enterprise_csv_post_serialize( self, authorization, - device_id, - v1_backbone_health_device_device_id_post_request, + v1_bwtracker_enterprise_csv_post_request, _request_auth, _content_type, _headers, @@ -10071,16 +11715,14 @@ def _v1_backbone_health_device_device_id_post_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_backbone_health_device_device_id_post_request is not None: - _body_params = v1_backbone_health_device_device_id_post_request + if v1_bwtracker_enterprise_csv_post_request is not None: + _body_params = v1_bwtracker_enterprise_csv_post_request # set the HTTP header `Accept` @@ -10112,7 +11754,7 @@ def _v1_backbone_health_device_device_id_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/backbone-health/device/{deviceId}', + resource_path='/v1/bwtracker/enterprise/csv', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10129,9 +11771,10 @@ def _v1_backbone_health_device_device_id_post_serialize( @validate_call - def v1_backbone_health_et_wan_matrix_get( + def v1_bwtracker_enterprise_details_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10144,12 +11787,14 @@ def v1_backbone_health_et_wan_matrix_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BackboneHealthEtWanMatrixGetResponse: - """v1_backbone_health_et_wan_matrix_get + ) -> V1BwtrackerEnterpriseDetailsPostResponse: + """v1_bwtracker_enterprise_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_bwtracker_enterprise_details_post_request: (required) + :type v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10172,8 +11817,9 @@ def v1_backbone_health_et_wan_matrix_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_et_wan_matrix_get_serialize( + _param = self._v1_bwtracker_enterprise_details_post_serialize( authorization=authorization, + v1_bwtracker_enterprise_details_post_request=v1_bwtracker_enterprise_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10181,7 +11827,7 @@ def v1_backbone_health_et_wan_matrix_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthEtWanMatrixGetResponse", + '200': "V1BwtrackerEnterpriseDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10195,9 +11841,10 @@ def v1_backbone_health_et_wan_matrix_get( @validate_call - def v1_backbone_health_et_wan_matrix_get_with_http_info( + def v1_bwtracker_enterprise_details_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10210,12 +11857,14 @@ def v1_backbone_health_et_wan_matrix_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[V1BackboneHealthEtWanMatrixGetResponse]: - """v1_backbone_health_et_wan_matrix_get + ) -> ApiResponse[V1BwtrackerEnterpriseDetailsPostResponse]: + """v1_bwtracker_enterprise_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_bwtracker_enterprise_details_post_request: (required) + :type v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10238,8 +11887,9 @@ def v1_backbone_health_et_wan_matrix_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_et_wan_matrix_get_serialize( + _param = self._v1_bwtracker_enterprise_details_post_serialize( authorization=authorization, + v1_bwtracker_enterprise_details_post_request=v1_bwtracker_enterprise_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10247,7 +11897,7 @@ def v1_backbone_health_et_wan_matrix_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthEtWanMatrixGetResponse", + '200': "V1BwtrackerEnterpriseDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10261,9 +11911,10 @@ def v1_backbone_health_et_wan_matrix_get_with_http_info( @validate_call - def v1_backbone_health_et_wan_matrix_get_without_preload_content( + def v1_bwtracker_enterprise_details_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10277,11 +11928,13 @@ def v1_backbone_health_et_wan_matrix_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_backbone_health_et_wan_matrix_get + """v1_bwtracker_enterprise_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_bwtracker_enterprise_details_post_request: (required) + :type v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10304,8 +11957,9 @@ def v1_backbone_health_et_wan_matrix_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_et_wan_matrix_get_serialize( + _param = self._v1_bwtracker_enterprise_details_post_serialize( authorization=authorization, + v1_bwtracker_enterprise_details_post_request=v1_bwtracker_enterprise_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10313,7 +11967,7 @@ def v1_backbone_health_et_wan_matrix_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthEtWanMatrixGetResponse", + '200': "V1BwtrackerEnterpriseDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10322,9 +11976,10 @@ def v1_backbone_health_et_wan_matrix_get_without_preload_content( return response_data.response - def _v1_backbone_health_et_wan_matrix_get_serialize( + def _v1_bwtracker_enterprise_details_post_serialize( self, authorization, + v1_bwtracker_enterprise_details_post_request, _request_auth, _content_type, _headers, @@ -10352,6 +12007,8 @@ def _v1_backbone_health_et_wan_matrix_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_bwtracker_enterprise_details_post_request is not None: + _body_params = v1_bwtracker_enterprise_details_post_request # set the HTTP header `Accept` @@ -10362,6 +12019,19 @@ def _v1_backbone_health_et_wan_matrix_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] = [ @@ -10369,8 +12039,8 @@ def _v1_backbone_health_et_wan_matrix_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/backbone-health/et-wan-matrix', + method='POST', + resource_path='/v1/bwtracker/enterprise/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10387,9 +12057,10 @@ def _v1_backbone_health_et_wan_matrix_get_serialize( @validate_call - def v1_backbone_health_etet_sla_matrix_get( + def v1_bwtracker_enterprise_summary_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10402,12 +12073,14 @@ def v1_backbone_health_etet_sla_matrix_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BackboneHealthEtetSlaMatrixGetResponse: - """v1_backbone_health_etet_sla_matrix_get + ) -> V1BwtrackerEnterpriseSummaryPostResponse: + """v1_bwtracker_enterprise_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_bwtracker_enterprise_summary_post_request: (required) + :type v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10430,8 +12103,9 @@ def v1_backbone_health_etet_sla_matrix_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_etet_sla_matrix_get_serialize( + _param = self._v1_bwtracker_enterprise_summary_post_serialize( authorization=authorization, + v1_bwtracker_enterprise_summary_post_request=v1_bwtracker_enterprise_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10439,7 +12113,7 @@ def v1_backbone_health_etet_sla_matrix_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthEtetSlaMatrixGetResponse", + '200': "V1BwtrackerEnterpriseSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10453,9 +12127,10 @@ def v1_backbone_health_etet_sla_matrix_get( @validate_call - def v1_backbone_health_etet_sla_matrix_get_with_http_info( + def v1_bwtracker_enterprise_summary_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10468,12 +12143,14 @@ def v1_backbone_health_etet_sla_matrix_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[V1BackboneHealthEtetSlaMatrixGetResponse]: - """v1_backbone_health_etet_sla_matrix_get + ) -> ApiResponse[V1BwtrackerEnterpriseSummaryPostResponse]: + """v1_bwtracker_enterprise_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_bwtracker_enterprise_summary_post_request: (required) + :type v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10496,8 +12173,9 @@ def v1_backbone_health_etet_sla_matrix_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_etet_sla_matrix_get_serialize( + _param = self._v1_bwtracker_enterprise_summary_post_serialize( authorization=authorization, + v1_bwtracker_enterprise_summary_post_request=v1_bwtracker_enterprise_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10505,7 +12183,7 @@ def v1_backbone_health_etet_sla_matrix_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthEtetSlaMatrixGetResponse", + '200': "V1BwtrackerEnterpriseSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10519,9 +12197,10 @@ def v1_backbone_health_etet_sla_matrix_get_with_http_info( @validate_call - def v1_backbone_health_etet_sla_matrix_get_without_preload_content( + def v1_bwtracker_enterprise_summary_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10535,11 +12214,13 @@ def v1_backbone_health_etet_sla_matrix_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_backbone_health_etet_sla_matrix_get + """v1_bwtracker_enterprise_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_bwtracker_enterprise_summary_post_request: (required) + :type v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10562,8 +12243,9 @@ def v1_backbone_health_etet_sla_matrix_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_etet_sla_matrix_get_serialize( + _param = self._v1_bwtracker_enterprise_summary_post_serialize( authorization=authorization, + v1_bwtracker_enterprise_summary_post_request=v1_bwtracker_enterprise_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10571,7 +12253,7 @@ def v1_backbone_health_etet_sla_matrix_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthEtetSlaMatrixGetResponse", + '200': "V1BwtrackerEnterpriseSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10580,9 +12262,10 @@ def v1_backbone_health_etet_sla_matrix_get_without_preload_content( return response_data.response - def _v1_backbone_health_etet_sla_matrix_get_serialize( + def _v1_bwtracker_enterprise_summary_post_serialize( self, authorization, + v1_bwtracker_enterprise_summary_post_request, _request_auth, _content_type, _headers, @@ -10610,6 +12293,8 @@ def _v1_backbone_health_etet_sla_matrix_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_bwtracker_enterprise_summary_post_request is not None: + _body_params = v1_bwtracker_enterprise_summary_post_request # set the HTTP header `Accept` @@ -10620,6 +12305,19 @@ def _v1_backbone_health_etet_sla_matrix_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] = [ @@ -10627,8 +12325,8 @@ def _v1_backbone_health_etet_sla_matrix_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/backbone-health/etet-sla-matrix', + method='POST', + resource_path='/v1/bwtracker/enterprise/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10645,9 +12343,10 @@ def _v1_backbone_health_etet_sla_matrix_get_serialize( @validate_call - def v1_backbone_health_filter_get( + def v1_bwtracker_region_edge_chart_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10660,12 +12359,14 @@ def v1_backbone_health_filter_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BackboneHealthFilterGetResponse: - """v1_backbone_health_filter_get + ) -> V1BwtrackerRegionEdgeChartPostResponse: + """v1_bwtracker_region_edge_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_bwtracker_region_edge_chart_post_request: (required) + :type v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10688,8 +12389,9 @@ def v1_backbone_health_filter_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_filter_get_serialize( + _param = self._v1_bwtracker_region_edge_chart_post_serialize( authorization=authorization, + v1_bwtracker_region_edge_chart_post_request=v1_bwtracker_region_edge_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10697,7 +12399,7 @@ def v1_backbone_health_filter_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthFilterGetResponse", + '200': "V1BwtrackerRegionEdgeChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10711,9 +12413,10 @@ def v1_backbone_health_filter_get( @validate_call - def v1_backbone_health_filter_get_with_http_info( + def v1_bwtracker_region_edge_chart_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10726,12 +12429,14 @@ def v1_backbone_health_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[V1BackboneHealthFilterGetResponse]: - """v1_backbone_health_filter_get + ) -> ApiResponse[V1BwtrackerRegionEdgeChartPostResponse]: + """v1_bwtracker_region_edge_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_bwtracker_region_edge_chart_post_request: (required) + :type v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10754,8 +12459,9 @@ def v1_backbone_health_filter_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_filter_get_serialize( + _param = self._v1_bwtracker_region_edge_chart_post_serialize( authorization=authorization, + v1_bwtracker_region_edge_chart_post_request=v1_bwtracker_region_edge_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10763,7 +12469,7 @@ def v1_backbone_health_filter_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthFilterGetResponse", + '200': "V1BwtrackerRegionEdgeChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10777,9 +12483,10 @@ def v1_backbone_health_filter_get_with_http_info( @validate_call - def v1_backbone_health_filter_get_without_preload_content( + def v1_bwtracker_region_edge_chart_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10793,11 +12500,13 @@ def v1_backbone_health_filter_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_backbone_health_filter_get + """v1_bwtracker_region_edge_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_bwtracker_region_edge_chart_post_request: (required) + :type v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10820,8 +12529,9 @@ def v1_backbone_health_filter_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_filter_get_serialize( + _param = self._v1_bwtracker_region_edge_chart_post_serialize( authorization=authorization, + v1_bwtracker_region_edge_chart_post_request=v1_bwtracker_region_edge_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10829,7 +12539,7 @@ def v1_backbone_health_filter_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthFilterGetResponse", + '200': "V1BwtrackerRegionEdgeChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10838,9 +12548,10 @@ def v1_backbone_health_filter_get_without_preload_content( return response_data.response - def _v1_backbone_health_filter_get_serialize( + def _v1_bwtracker_region_edge_chart_post_serialize( self, authorization, + v1_bwtracker_region_edge_chart_post_request, _request_auth, _content_type, _headers, @@ -10868,6 +12579,8 @@ def _v1_backbone_health_filter_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_bwtracker_region_edge_chart_post_request is not None: + _body_params = v1_bwtracker_region_edge_chart_post_request # set the HTTP header `Accept` @@ -10878,6 +12591,19 @@ def _v1_backbone_health_filter_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] = [ @@ -10885,8 +12611,8 @@ def _v1_backbone_health_filter_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/backbone-health/filter', + method='POST', + resource_path='/v1/bwtracker/region/edge/chart', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -10903,10 +12629,10 @@ def _v1_backbone_health_filter_get_serialize( @validate_call - def v1_backbone_health_overview_post( + def v1_bwtracker_region_edge_csv_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest, + v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10919,14 +12645,14 @@ def v1_backbone_health_overview_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BackboneHealthOverviewPostResponse: - """v1_backbone_health_overview_post + ) -> V1BwtrackerRegionEdgeCsvPostResponse: + """v1_bwtracker_region_edge_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_backbone_health_overview_post_request: (required) - :type v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest + :param v1_bwtracker_region_edge_csv_post_request: (required) + :type v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -10949,9 +12675,9 @@ def v1_backbone_health_overview_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_overview_post_serialize( + _param = self._v1_bwtracker_region_edge_csv_post_serialize( authorization=authorization, - v1_backbone_health_overview_post_request=v1_backbone_health_overview_post_request, + v1_bwtracker_region_edge_csv_post_request=v1_bwtracker_region_edge_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -10959,7 +12685,7 @@ def v1_backbone_health_overview_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthOverviewPostResponse", + '200': "V1BwtrackerRegionEdgeCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10973,10 +12699,10 @@ def v1_backbone_health_overview_post( @validate_call - def v1_backbone_health_overview_post_with_http_info( + def v1_bwtracker_region_edge_csv_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest, + v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -10989,14 +12715,14 @@ def v1_backbone_health_overview_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[V1BackboneHealthOverviewPostResponse]: - """v1_backbone_health_overview_post + ) -> ApiResponse[V1BwtrackerRegionEdgeCsvPostResponse]: + """v1_bwtracker_region_edge_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_backbone_health_overview_post_request: (required) - :type v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest + :param v1_bwtracker_region_edge_csv_post_request: (required) + :type v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11019,9 +12745,9 @@ def v1_backbone_health_overview_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_overview_post_serialize( + _param = self._v1_bwtracker_region_edge_csv_post_serialize( authorization=authorization, - v1_backbone_health_overview_post_request=v1_backbone_health_overview_post_request, + v1_bwtracker_region_edge_csv_post_request=v1_bwtracker_region_edge_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11029,7 +12755,7 @@ def v1_backbone_health_overview_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthOverviewPostResponse", + '200': "V1BwtrackerRegionEdgeCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -11043,10 +12769,10 @@ def v1_backbone_health_overview_post_with_http_info( @validate_call - def v1_backbone_health_overview_post_without_preload_content( + def v1_bwtracker_region_edge_csv_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest, + v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11060,13 +12786,13 @@ def v1_backbone_health_overview_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_backbone_health_overview_post + """v1_bwtracker_region_edge_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_backbone_health_overview_post_request: (required) - :type v1_backbone_health_overview_post_request: V1BackboneHealthOverviewPostRequest + :param v1_bwtracker_region_edge_csv_post_request: (required) + :type v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11089,9 +12815,9 @@ def v1_backbone_health_overview_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_overview_post_serialize( + _param = self._v1_bwtracker_region_edge_csv_post_serialize( authorization=authorization, - v1_backbone_health_overview_post_request=v1_backbone_health_overview_post_request, + v1_bwtracker_region_edge_csv_post_request=v1_bwtracker_region_edge_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11099,7 +12825,7 @@ def v1_backbone_health_overview_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthOverviewPostResponse", + '200': "V1BwtrackerRegionEdgeCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -11108,10 +12834,10 @@ def v1_backbone_health_overview_post_without_preload_content( return response_data.response - def _v1_backbone_health_overview_post_serialize( + def _v1_bwtracker_region_edge_csv_post_serialize( self, authorization, - v1_backbone_health_overview_post_request, + v1_bwtracker_region_edge_csv_post_request, _request_auth, _content_type, _headers, @@ -11139,8 +12865,8 @@ def _v1_backbone_health_overview_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_backbone_health_overview_post_request is not None: - _body_params = v1_backbone_health_overview_post_request + if v1_bwtracker_region_edge_csv_post_request is not None: + _body_params = v1_bwtracker_region_edge_csv_post_request # set the HTTP header `Accept` @@ -11172,7 +12898,7 @@ def _v1_backbone_health_overview_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/backbone-health/overview', + resource_path='/v1/bwtracker/region/edge/csv', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11189,10 +12915,10 @@ def _v1_backbone_health_overview_post_serialize( @validate_call - def v1_backbone_health_top_devices_by_alerts_post( + def v1_bwtracker_region_edge_details_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest, + v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11205,14 +12931,14 @@ def v1_backbone_health_top_devices_by_alerts_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BackboneHealthTopDevicesByAlertsPostResponse: - """v1_backbone_health_top_devices_by_alerts_post + ) -> V1BwtrackerRegionEdgeDetailsPostResponse: + """v1_bwtracker_region_edge_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_backbone_health_top_devices_by_alerts_post_request: (required) - :type v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest + :param v1_bwtracker_region_edge_details_post_request: (required) + :type v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11235,9 +12961,9 @@ def v1_backbone_health_top_devices_by_alerts_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_top_devices_by_alerts_post_serialize( + _param = self._v1_bwtracker_region_edge_details_post_serialize( authorization=authorization, - v1_backbone_health_top_devices_by_alerts_post_request=v1_backbone_health_top_devices_by_alerts_post_request, + v1_bwtracker_region_edge_details_post_request=v1_bwtracker_region_edge_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11245,7 +12971,7 @@ def v1_backbone_health_top_devices_by_alerts_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthTopDevicesByAlertsPostResponse", + '200': "V1BwtrackerRegionEdgeDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -11259,10 +12985,10 @@ def v1_backbone_health_top_devices_by_alerts_post( @validate_call - def v1_backbone_health_top_devices_by_alerts_post_with_http_info( + def v1_bwtracker_region_edge_details_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest, + v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11275,14 +13001,14 @@ def v1_backbone_health_top_devices_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[V1BackboneHealthTopDevicesByAlertsPostResponse]: - """v1_backbone_health_top_devices_by_alerts_post + ) -> ApiResponse[V1BwtrackerRegionEdgeDetailsPostResponse]: + """v1_bwtracker_region_edge_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_backbone_health_top_devices_by_alerts_post_request: (required) - :type v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest + :param v1_bwtracker_region_edge_details_post_request: (required) + :type v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11305,9 +13031,9 @@ def v1_backbone_health_top_devices_by_alerts_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_top_devices_by_alerts_post_serialize( + _param = self._v1_bwtracker_region_edge_details_post_serialize( authorization=authorization, - v1_backbone_health_top_devices_by_alerts_post_request=v1_backbone_health_top_devices_by_alerts_post_request, + v1_bwtracker_region_edge_details_post_request=v1_bwtracker_region_edge_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11315,7 +13041,7 @@ def v1_backbone_health_top_devices_by_alerts_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthTopDevicesByAlertsPostResponse", + '200': "V1BwtrackerRegionEdgeDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -11329,10 +13055,10 @@ def v1_backbone_health_top_devices_by_alerts_post_with_http_info( @validate_call - def v1_backbone_health_top_devices_by_alerts_post_without_preload_content( + def v1_bwtracker_region_edge_details_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest, + v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11346,13 +13072,13 @@ def v1_backbone_health_top_devices_by_alerts_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_backbone_health_top_devices_by_alerts_post + """v1_bwtracker_region_edge_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_backbone_health_top_devices_by_alerts_post_request: (required) - :type v1_backbone_health_top_devices_by_alerts_post_request: V1BackboneHealthTopDevicesByAlertsPostRequest + :param v1_bwtracker_region_edge_details_post_request: (required) + :type v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11375,9 +13101,9 @@ def v1_backbone_health_top_devices_by_alerts_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_backbone_health_top_devices_by_alerts_post_serialize( + _param = self._v1_bwtracker_region_edge_details_post_serialize( authorization=authorization, - v1_backbone_health_top_devices_by_alerts_post_request=v1_backbone_health_top_devices_by_alerts_post_request, + v1_bwtracker_region_edge_details_post_request=v1_bwtracker_region_edge_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11385,7 +13111,7 @@ def v1_backbone_health_top_devices_by_alerts_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BackboneHealthTopDevicesByAlertsPostResponse", + '200': "V1BwtrackerRegionEdgeDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -11394,10 +13120,10 @@ def v1_backbone_health_top_devices_by_alerts_post_without_preload_content( return response_data.response - def _v1_backbone_health_top_devices_by_alerts_post_serialize( + def _v1_bwtracker_region_edge_details_post_serialize( self, authorization, - v1_backbone_health_top_devices_by_alerts_post_request, + v1_bwtracker_region_edge_details_post_request, _request_auth, _content_type, _headers, @@ -11425,8 +13151,8 @@ def _v1_backbone_health_top_devices_by_alerts_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_backbone_health_top_devices_by_alerts_post_request is not None: - _body_params = v1_backbone_health_top_devices_by_alerts_post_request + if v1_bwtracker_region_edge_details_post_request is not None: + _body_params = v1_bwtracker_region_edge_details_post_request # set the HTTP header `Accept` @@ -11458,7 +13184,7 @@ def _v1_backbone_health_top_devices_by_alerts_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/backbone-health/top-devices-by-alerts', + resource_path='/v1/bwtracker/region/edge/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11475,10 +13201,10 @@ def _v1_backbone_health_top_devices_by_alerts_post_serialize( @validate_call - def v1_bwtracker_enterprise_csv_post( + def v1_bwtracker_region_edge_summary_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest, + v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11491,14 +13217,14 @@ def v1_bwtracker_enterprise_csv_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerEnterpriseCsvPostResponse: - """v1_bwtracker_enterprise_csv_post + ) -> V1BwtrackerRegionEdgeSummaryPostResponse: + """v1_bwtracker_region_edge_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_enterprise_csv_post_request: (required) - :type v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest + :param v1_bwtracker_region_edge_summary_post_request: (required) + :type v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11521,9 +13247,9 @@ def v1_bwtracker_enterprise_csv_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_enterprise_csv_post_serialize( + _param = self._v1_bwtracker_region_edge_summary_post_serialize( authorization=authorization, - v1_bwtracker_enterprise_csv_post_request=v1_bwtracker_enterprise_csv_post_request, + v1_bwtracker_region_edge_summary_post_request=v1_bwtracker_region_edge_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11531,7 +13257,7 @@ def v1_bwtracker_enterprise_csv_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerEnterpriseCsvPostResponse", + '200': "V1BwtrackerRegionEdgeSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -11545,10 +13271,10 @@ def v1_bwtracker_enterprise_csv_post( @validate_call - def v1_bwtracker_enterprise_csv_post_with_http_info( + def v1_bwtracker_region_edge_summary_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest, + v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11561,14 +13287,14 @@ def v1_bwtracker_enterprise_csv_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[V1BwtrackerEnterpriseCsvPostResponse]: - """v1_bwtracker_enterprise_csv_post + ) -> ApiResponse[V1BwtrackerRegionEdgeSummaryPostResponse]: + """v1_bwtracker_region_edge_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_enterprise_csv_post_request: (required) - :type v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest + :param v1_bwtracker_region_edge_summary_post_request: (required) + :type v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11591,9 +13317,9 @@ def v1_bwtracker_enterprise_csv_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_enterprise_csv_post_serialize( + _param = self._v1_bwtracker_region_edge_summary_post_serialize( authorization=authorization, - v1_bwtracker_enterprise_csv_post_request=v1_bwtracker_enterprise_csv_post_request, + v1_bwtracker_region_edge_summary_post_request=v1_bwtracker_region_edge_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11601,7 +13327,7 @@ def v1_bwtracker_enterprise_csv_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerEnterpriseCsvPostResponse", + '200': "V1BwtrackerRegionEdgeSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -11615,10 +13341,10 @@ def v1_bwtracker_enterprise_csv_post_with_http_info( @validate_call - def v1_bwtracker_enterprise_csv_post_without_preload_content( + def v1_bwtracker_region_edge_summary_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest, + v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11632,13 +13358,13 @@ def v1_bwtracker_enterprise_csv_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_enterprise_csv_post + """v1_bwtracker_region_edge_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_enterprise_csv_post_request: (required) - :type v1_bwtracker_enterprise_csv_post_request: V1BwtrackerEnterpriseCsvPostRequest + :param v1_bwtracker_region_edge_summary_post_request: (required) + :type v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11661,9 +13387,9 @@ def v1_bwtracker_enterprise_csv_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_enterprise_csv_post_serialize( + _param = self._v1_bwtracker_region_edge_summary_post_serialize( authorization=authorization, - v1_bwtracker_enterprise_csv_post_request=v1_bwtracker_enterprise_csv_post_request, + v1_bwtracker_region_edge_summary_post_request=v1_bwtracker_region_edge_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11671,7 +13397,7 @@ def v1_bwtracker_enterprise_csv_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerEnterpriseCsvPostResponse", + '200': "V1BwtrackerRegionEdgeSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -11680,10 +13406,10 @@ def v1_bwtracker_enterprise_csv_post_without_preload_content( return response_data.response - def _v1_bwtracker_enterprise_csv_post_serialize( + def _v1_bwtracker_region_edge_summary_post_serialize( self, authorization, - v1_bwtracker_enterprise_csv_post_request, + v1_bwtracker_region_edge_summary_post_request, _request_auth, _content_type, _headers, @@ -11711,8 +13437,8 @@ def _v1_bwtracker_enterprise_csv_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_enterprise_csv_post_request is not None: - _body_params = v1_bwtracker_enterprise_csv_post_request + if v1_bwtracker_region_edge_summary_post_request is not None: + _body_params = v1_bwtracker_region_edge_summary_post_request # set the HTTP header `Accept` @@ -11744,7 +13470,7 @@ def _v1_bwtracker_enterprise_csv_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/enterprise/csv', + resource_path='/v1/bwtracker/region/edge/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -11761,10 +13487,10 @@ def _v1_bwtracker_enterprise_csv_post_serialize( @validate_call - def v1_bwtracker_enterprise_details_post( + def v1_bwtracker_region_gateway_chart_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest, + v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11777,14 +13503,14 @@ def v1_bwtracker_enterprise_details_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerEnterpriseDetailsPostResponse: - """v1_bwtracker_enterprise_details_post + ) -> V1BwtrackerRegionGatewayChartPostResponse: + """v1_bwtracker_region_gateway_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_enterprise_details_post_request: (required) - :type v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest + :param v1_bwtracker_region_gateway_chart_post_request: (required) + :type v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11807,9 +13533,9 @@ def v1_bwtracker_enterprise_details_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_enterprise_details_post_serialize( + _param = self._v1_bwtracker_region_gateway_chart_post_serialize( authorization=authorization, - v1_bwtracker_enterprise_details_post_request=v1_bwtracker_enterprise_details_post_request, + v1_bwtracker_region_gateway_chart_post_request=v1_bwtracker_region_gateway_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11817,7 +13543,7 @@ def v1_bwtracker_enterprise_details_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerEnterpriseDetailsPostResponse", + '200': "V1BwtrackerRegionGatewayChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -11831,10 +13557,10 @@ def v1_bwtracker_enterprise_details_post( @validate_call - def v1_bwtracker_enterprise_details_post_with_http_info( + def v1_bwtracker_region_gateway_chart_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest, + v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11847,14 +13573,14 @@ def v1_bwtracker_enterprise_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[V1BwtrackerEnterpriseDetailsPostResponse]: - """v1_bwtracker_enterprise_details_post + ) -> ApiResponse[V1BwtrackerRegionGatewayChartPostResponse]: + """v1_bwtracker_region_gateway_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_enterprise_details_post_request: (required) - :type v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest + :param v1_bwtracker_region_gateway_chart_post_request: (required) + :type v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11877,9 +13603,9 @@ def v1_bwtracker_enterprise_details_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_enterprise_details_post_serialize( + _param = self._v1_bwtracker_region_gateway_chart_post_serialize( authorization=authorization, - v1_bwtracker_enterprise_details_post_request=v1_bwtracker_enterprise_details_post_request, + v1_bwtracker_region_gateway_chart_post_request=v1_bwtracker_region_gateway_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11887,7 +13613,7 @@ def v1_bwtracker_enterprise_details_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerEnterpriseDetailsPostResponse", + '200': "V1BwtrackerRegionGatewayChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -11901,10 +13627,10 @@ def v1_bwtracker_enterprise_details_post_with_http_info( @validate_call - def v1_bwtracker_enterprise_details_post_without_preload_content( + def v1_bwtracker_region_gateway_chart_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest, + v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -11918,13 +13644,13 @@ def v1_bwtracker_enterprise_details_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_enterprise_details_post + """v1_bwtracker_region_gateway_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_enterprise_details_post_request: (required) - :type v1_bwtracker_enterprise_details_post_request: V1BwtrackerEnterpriseDetailsPostRequest + :param v1_bwtracker_region_gateway_chart_post_request: (required) + :type v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -11947,9 +13673,9 @@ def v1_bwtracker_enterprise_details_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_enterprise_details_post_serialize( + _param = self._v1_bwtracker_region_gateway_chart_post_serialize( authorization=authorization, - v1_bwtracker_enterprise_details_post_request=v1_bwtracker_enterprise_details_post_request, + v1_bwtracker_region_gateway_chart_post_request=v1_bwtracker_region_gateway_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -11957,7 +13683,7 @@ def v1_bwtracker_enterprise_details_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerEnterpriseDetailsPostResponse", + '200': "V1BwtrackerRegionGatewayChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -11966,10 +13692,10 @@ def v1_bwtracker_enterprise_details_post_without_preload_content( return response_data.response - def _v1_bwtracker_enterprise_details_post_serialize( + def _v1_bwtracker_region_gateway_chart_post_serialize( self, authorization, - v1_bwtracker_enterprise_details_post_request, + v1_bwtracker_region_gateway_chart_post_request, _request_auth, _content_type, _headers, @@ -11997,8 +13723,8 @@ def _v1_bwtracker_enterprise_details_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_enterprise_details_post_request is not None: - _body_params = v1_bwtracker_enterprise_details_post_request + if v1_bwtracker_region_gateway_chart_post_request is not None: + _body_params = v1_bwtracker_region_gateway_chart_post_request # set the HTTP header `Accept` @@ -12030,7 +13756,7 @@ def _v1_bwtracker_enterprise_details_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/enterprise/details', + resource_path='/v1/bwtracker/region/gateway/chart', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12047,10 +13773,10 @@ def _v1_bwtracker_enterprise_details_post_serialize( @validate_call - def v1_bwtracker_enterprise_summary_post( + def v1_bwtracker_region_gateway_csv_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest, + v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12063,14 +13789,14 @@ def v1_bwtracker_enterprise_summary_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerEnterpriseSummaryPostResponse: - """v1_bwtracker_enterprise_summary_post + ) -> V1BwtrackerRegionGatewayCsvPostResponse: + """v1_bwtracker_region_gateway_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_enterprise_summary_post_request: (required) - :type v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest + :param v1_bwtracker_region_gateway_csv_post_request: (required) + :type v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12093,9 +13819,9 @@ def v1_bwtracker_enterprise_summary_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_enterprise_summary_post_serialize( + _param = self._v1_bwtracker_region_gateway_csv_post_serialize( authorization=authorization, - v1_bwtracker_enterprise_summary_post_request=v1_bwtracker_enterprise_summary_post_request, + v1_bwtracker_region_gateway_csv_post_request=v1_bwtracker_region_gateway_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12103,7 +13829,7 @@ def v1_bwtracker_enterprise_summary_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerEnterpriseSummaryPostResponse", + '200': "V1BwtrackerRegionGatewayCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -12117,10 +13843,10 @@ def v1_bwtracker_enterprise_summary_post( @validate_call - def v1_bwtracker_enterprise_summary_post_with_http_info( + def v1_bwtracker_region_gateway_csv_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest, + v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12133,14 +13859,14 @@ def v1_bwtracker_enterprise_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[V1BwtrackerEnterpriseSummaryPostResponse]: - """v1_bwtracker_enterprise_summary_post + ) -> ApiResponse[V1BwtrackerRegionGatewayCsvPostResponse]: + """v1_bwtracker_region_gateway_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_enterprise_summary_post_request: (required) - :type v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest + :param v1_bwtracker_region_gateway_csv_post_request: (required) + :type v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12163,9 +13889,9 @@ def v1_bwtracker_enterprise_summary_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_enterprise_summary_post_serialize( + _param = self._v1_bwtracker_region_gateway_csv_post_serialize( authorization=authorization, - v1_bwtracker_enterprise_summary_post_request=v1_bwtracker_enterprise_summary_post_request, + v1_bwtracker_region_gateway_csv_post_request=v1_bwtracker_region_gateway_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12173,7 +13899,7 @@ def v1_bwtracker_enterprise_summary_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerEnterpriseSummaryPostResponse", + '200': "V1BwtrackerRegionGatewayCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -12187,10 +13913,10 @@ def v1_bwtracker_enterprise_summary_post_with_http_info( @validate_call - def v1_bwtracker_enterprise_summary_post_without_preload_content( + def v1_bwtracker_region_gateway_csv_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest, + v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12204,13 +13930,13 @@ def v1_bwtracker_enterprise_summary_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_enterprise_summary_post + """v1_bwtracker_region_gateway_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_enterprise_summary_post_request: (required) - :type v1_bwtracker_enterprise_summary_post_request: V1BwtrackerEnterpriseSummaryPostRequest + :param v1_bwtracker_region_gateway_csv_post_request: (required) + :type v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12233,9 +13959,9 @@ def v1_bwtracker_enterprise_summary_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_enterprise_summary_post_serialize( + _param = self._v1_bwtracker_region_gateway_csv_post_serialize( authorization=authorization, - v1_bwtracker_enterprise_summary_post_request=v1_bwtracker_enterprise_summary_post_request, + v1_bwtracker_region_gateway_csv_post_request=v1_bwtracker_region_gateway_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12243,7 +13969,7 @@ def v1_bwtracker_enterprise_summary_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerEnterpriseSummaryPostResponse", + '200': "V1BwtrackerRegionGatewayCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -12252,10 +13978,10 @@ def v1_bwtracker_enterprise_summary_post_without_preload_content( return response_data.response - def _v1_bwtracker_enterprise_summary_post_serialize( + def _v1_bwtracker_region_gateway_csv_post_serialize( self, authorization, - v1_bwtracker_enterprise_summary_post_request, + v1_bwtracker_region_gateway_csv_post_request, _request_auth, _content_type, _headers, @@ -12283,8 +14009,8 @@ def _v1_bwtracker_enterprise_summary_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_enterprise_summary_post_request is not None: - _body_params = v1_bwtracker_enterprise_summary_post_request + if v1_bwtracker_region_gateway_csv_post_request is not None: + _body_params = v1_bwtracker_region_gateway_csv_post_request # set the HTTP header `Accept` @@ -12316,7 +14042,7 @@ def _v1_bwtracker_enterprise_summary_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/enterprise/summary', + resource_path='/v1/bwtracker/region/gateway/csv', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12333,10 +14059,10 @@ def _v1_bwtracker_enterprise_summary_post_serialize( @validate_call - def v1_bwtracker_region_edge_chart_post( + def v1_bwtracker_region_gateway_details_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest, + v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12349,14 +14075,14 @@ def v1_bwtracker_region_edge_chart_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionEdgeChartPostResponse: - """v1_bwtracker_region_edge_chart_post + ) -> V1BwtrackerRegionGatewayDetailsPostResponse: + """v1_bwtracker_region_gateway_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_chart_post_request: (required) - :type v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest + :param v1_bwtracker_region_gateway_details_post_request: (required) + :type v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12379,9 +14105,9 @@ def v1_bwtracker_region_edge_chart_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_chart_post_serialize( + _param = self._v1_bwtracker_region_gateway_details_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_chart_post_request=v1_bwtracker_region_edge_chart_post_request, + v1_bwtracker_region_gateway_details_post_request=v1_bwtracker_region_gateway_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12389,7 +14115,7 @@ def v1_bwtracker_region_edge_chart_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeChartPostResponse", + '200': "V1BwtrackerRegionGatewayDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -12403,10 +14129,10 @@ def v1_bwtracker_region_edge_chart_post( @validate_call - def v1_bwtracker_region_edge_chart_post_with_http_info( + def v1_bwtracker_region_gateway_details_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest, + v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12419,14 +14145,14 @@ def v1_bwtracker_region_edge_chart_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[V1BwtrackerRegionEdgeChartPostResponse]: - """v1_bwtracker_region_edge_chart_post + ) -> ApiResponse[V1BwtrackerRegionGatewayDetailsPostResponse]: + """v1_bwtracker_region_gateway_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_chart_post_request: (required) - :type v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest + :param v1_bwtracker_region_gateway_details_post_request: (required) + :type v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12449,9 +14175,9 @@ def v1_bwtracker_region_edge_chart_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_chart_post_serialize( + _param = self._v1_bwtracker_region_gateway_details_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_chart_post_request=v1_bwtracker_region_edge_chart_post_request, + v1_bwtracker_region_gateway_details_post_request=v1_bwtracker_region_gateway_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12459,7 +14185,7 @@ def v1_bwtracker_region_edge_chart_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeChartPostResponse", + '200': "V1BwtrackerRegionGatewayDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -12473,10 +14199,10 @@ def v1_bwtracker_region_edge_chart_post_with_http_info( @validate_call - def v1_bwtracker_region_edge_chart_post_without_preload_content( + def v1_bwtracker_region_gateway_details_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest, + v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12490,13 +14216,13 @@ def v1_bwtracker_region_edge_chart_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_edge_chart_post + """v1_bwtracker_region_gateway_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_chart_post_request: (required) - :type v1_bwtracker_region_edge_chart_post_request: V1BwtrackerRegionEdgeChartPostRequest + :param v1_bwtracker_region_gateway_details_post_request: (required) + :type v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12519,9 +14245,9 @@ def v1_bwtracker_region_edge_chart_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_chart_post_serialize( + _param = self._v1_bwtracker_region_gateway_details_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_chart_post_request=v1_bwtracker_region_edge_chart_post_request, + v1_bwtracker_region_gateway_details_post_request=v1_bwtracker_region_gateway_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12529,7 +14255,7 @@ def v1_bwtracker_region_edge_chart_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeChartPostResponse", + '200': "V1BwtrackerRegionGatewayDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -12538,10 +14264,10 @@ def v1_bwtracker_region_edge_chart_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_edge_chart_post_serialize( + def _v1_bwtracker_region_gateway_details_post_serialize( self, authorization, - v1_bwtracker_region_edge_chart_post_request, + v1_bwtracker_region_gateway_details_post_request, _request_auth, _content_type, _headers, @@ -12569,8 +14295,8 @@ def _v1_bwtracker_region_edge_chart_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_edge_chart_post_request is not None: - _body_params = v1_bwtracker_region_edge_chart_post_request + if v1_bwtracker_region_gateway_details_post_request is not None: + _body_params = v1_bwtracker_region_gateway_details_post_request # set the HTTP header `Accept` @@ -12602,7 +14328,7 @@ def _v1_bwtracker_region_edge_chart_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/region/edge/chart', + resource_path='/v1/bwtracker/region/gateway/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12619,10 +14345,10 @@ def _v1_bwtracker_region_edge_chart_post_serialize( @validate_call - def v1_bwtracker_region_edge_csv_post( + def v1_bwtracker_region_gateway_summary_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest, + v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12635,14 +14361,14 @@ def v1_bwtracker_region_edge_csv_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionEdgeCsvPostResponse: - """v1_bwtracker_region_edge_csv_post + ) -> V1BwtrackerRegionGatewaySummaryPostResponse: + """v1_bwtracker_region_gateway_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_csv_post_request: (required) - :type v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest + :param v1_bwtracker_region_gateway_summary_post_request: (required) + :type v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12665,9 +14391,9 @@ def v1_bwtracker_region_edge_csv_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_csv_post_serialize( + _param = self._v1_bwtracker_region_gateway_summary_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_csv_post_request=v1_bwtracker_region_edge_csv_post_request, + v1_bwtracker_region_gateway_summary_post_request=v1_bwtracker_region_gateway_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12675,7 +14401,7 @@ def v1_bwtracker_region_edge_csv_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeCsvPostResponse", + '200': "V1BwtrackerRegionGatewaySummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -12689,10 +14415,10 @@ def v1_bwtracker_region_edge_csv_post( @validate_call - def v1_bwtracker_region_edge_csv_post_with_http_info( + def v1_bwtracker_region_gateway_summary_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest, + v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12705,14 +14431,14 @@ def v1_bwtracker_region_edge_csv_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[V1BwtrackerRegionEdgeCsvPostResponse]: - """v1_bwtracker_region_edge_csv_post + ) -> ApiResponse[V1BwtrackerRegionGatewaySummaryPostResponse]: + """v1_bwtracker_region_gateway_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_csv_post_request: (required) - :type v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest + :param v1_bwtracker_region_gateway_summary_post_request: (required) + :type v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12735,9 +14461,9 @@ def v1_bwtracker_region_edge_csv_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_csv_post_serialize( + _param = self._v1_bwtracker_region_gateway_summary_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_csv_post_request=v1_bwtracker_region_edge_csv_post_request, + v1_bwtracker_region_gateway_summary_post_request=v1_bwtracker_region_gateway_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12745,7 +14471,7 @@ def v1_bwtracker_region_edge_csv_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeCsvPostResponse", + '200': "V1BwtrackerRegionGatewaySummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -12759,10 +14485,10 @@ def v1_bwtracker_region_edge_csv_post_with_http_info( @validate_call - def v1_bwtracker_region_edge_csv_post_without_preload_content( + def v1_bwtracker_region_gateway_summary_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest, + v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12776,13 +14502,13 @@ def v1_bwtracker_region_edge_csv_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_edge_csv_post + """v1_bwtracker_region_gateway_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_csv_post_request: (required) - :type v1_bwtracker_region_edge_csv_post_request: V1BwtrackerRegionEdgeCsvPostRequest + :param v1_bwtracker_region_gateway_summary_post_request: (required) + :type v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12805,9 +14531,9 @@ def v1_bwtracker_region_edge_csv_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_csv_post_serialize( + _param = self._v1_bwtracker_region_gateway_summary_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_csv_post_request=v1_bwtracker_region_edge_csv_post_request, + v1_bwtracker_region_gateway_summary_post_request=v1_bwtracker_region_gateway_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12815,7 +14541,7 @@ def v1_bwtracker_region_edge_csv_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeCsvPostResponse", + '200': "V1BwtrackerRegionGatewaySummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -12824,10 +14550,10 @@ def v1_bwtracker_region_edge_csv_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_edge_csv_post_serialize( + def _v1_bwtracker_region_gateway_summary_post_serialize( self, authorization, - v1_bwtracker_region_edge_csv_post_request, + v1_bwtracker_region_gateway_summary_post_request, _request_auth, _content_type, _headers, @@ -12855,8 +14581,8 @@ def _v1_bwtracker_region_edge_csv_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_edge_csv_post_request is not None: - _body_params = v1_bwtracker_region_edge_csv_post_request + if v1_bwtracker_region_gateway_summary_post_request is not None: + _body_params = v1_bwtracker_region_gateway_summary_post_request # set the HTTP header `Accept` @@ -12888,7 +14614,7 @@ def _v1_bwtracker_region_edge_csv_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/region/edge/csv', + resource_path='/v1/bwtracker/region/gateway/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -12905,10 +14631,10 @@ def _v1_bwtracker_region_edge_csv_post_serialize( @validate_call - def v1_bwtracker_region_edge_details_post( + def v1_bwtracker_region_site_chart_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest, + v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12921,14 +14647,14 @@ def v1_bwtracker_region_edge_details_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionEdgeDetailsPostResponse: - """v1_bwtracker_region_edge_details_post + ) -> V1BwtrackerRegionSiteChartPostResponse: + """v1_bwtracker_region_site_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_details_post_request: (required) - :type v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest + :param v1_bwtracker_region_site_chart_post_request: (required) + :type v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -12951,9 +14677,9 @@ def v1_bwtracker_region_edge_details_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_details_post_serialize( + _param = self._v1_bwtracker_region_site_chart_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_details_post_request=v1_bwtracker_region_edge_details_post_request, + v1_bwtracker_region_site_chart_post_request=v1_bwtracker_region_site_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -12961,7 +14687,7 @@ def v1_bwtracker_region_edge_details_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeDetailsPostResponse", + '200': "V1BwtrackerRegionSiteChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -12975,10 +14701,10 @@ def v1_bwtracker_region_edge_details_post( @validate_call - def v1_bwtracker_region_edge_details_post_with_http_info( + def v1_bwtracker_region_site_chart_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest, + v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -12991,14 +14717,14 @@ def v1_bwtracker_region_edge_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[V1BwtrackerRegionEdgeDetailsPostResponse]: - """v1_bwtracker_region_edge_details_post + ) -> ApiResponse[V1BwtrackerRegionSiteChartPostResponse]: + """v1_bwtracker_region_site_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_details_post_request: (required) - :type v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest + :param v1_bwtracker_region_site_chart_post_request: (required) + :type v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13021,9 +14747,9 @@ def v1_bwtracker_region_edge_details_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_details_post_serialize( + _param = self._v1_bwtracker_region_site_chart_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_details_post_request=v1_bwtracker_region_edge_details_post_request, + v1_bwtracker_region_site_chart_post_request=v1_bwtracker_region_site_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13031,7 +14757,7 @@ def v1_bwtracker_region_edge_details_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeDetailsPostResponse", + '200': "V1BwtrackerRegionSiteChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -13045,10 +14771,10 @@ def v1_bwtracker_region_edge_details_post_with_http_info( @validate_call - def v1_bwtracker_region_edge_details_post_without_preload_content( + def v1_bwtracker_region_site_chart_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest, + v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13062,13 +14788,13 @@ def v1_bwtracker_region_edge_details_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_edge_details_post + """v1_bwtracker_region_site_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_details_post_request: (required) - :type v1_bwtracker_region_edge_details_post_request: V1BwtrackerRegionEdgeDetailsPostRequest + :param v1_bwtracker_region_site_chart_post_request: (required) + :type v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13091,9 +14817,9 @@ def v1_bwtracker_region_edge_details_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_details_post_serialize( + _param = self._v1_bwtracker_region_site_chart_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_details_post_request=v1_bwtracker_region_edge_details_post_request, + v1_bwtracker_region_site_chart_post_request=v1_bwtracker_region_site_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13101,7 +14827,7 @@ def v1_bwtracker_region_edge_details_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeDetailsPostResponse", + '200': "V1BwtrackerRegionSiteChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -13110,10 +14836,10 @@ def v1_bwtracker_region_edge_details_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_edge_details_post_serialize( + def _v1_bwtracker_region_site_chart_post_serialize( self, authorization, - v1_bwtracker_region_edge_details_post_request, + v1_bwtracker_region_site_chart_post_request, _request_auth, _content_type, _headers, @@ -13141,8 +14867,8 @@ def _v1_bwtracker_region_edge_details_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_edge_details_post_request is not None: - _body_params = v1_bwtracker_region_edge_details_post_request + if v1_bwtracker_region_site_chart_post_request is not None: + _body_params = v1_bwtracker_region_site_chart_post_request # set the HTTP header `Accept` @@ -13174,7 +14900,7 @@ def _v1_bwtracker_region_edge_details_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/region/edge/details', + resource_path='/v1/bwtracker/region/site/chart', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13191,10 +14917,10 @@ def _v1_bwtracker_region_edge_details_post_serialize( @validate_call - def v1_bwtracker_region_edge_summary_post( + def v1_bwtracker_region_site_details_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest, + v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13207,14 +14933,14 @@ def v1_bwtracker_region_edge_summary_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionEdgeSummaryPostResponse: - """v1_bwtracker_region_edge_summary_post + ) -> V1BwtrackerRegionSiteDetailsPostResponse: + """v1_bwtracker_region_site_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_summary_post_request: (required) - :type v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest + :param v1_bwtracker_region_site_details_post_request: (required) + :type v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13237,9 +14963,9 @@ def v1_bwtracker_region_edge_summary_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_summary_post_serialize( + _param = self._v1_bwtracker_region_site_details_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_summary_post_request=v1_bwtracker_region_edge_summary_post_request, + v1_bwtracker_region_site_details_post_request=v1_bwtracker_region_site_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13247,7 +14973,7 @@ def v1_bwtracker_region_edge_summary_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeSummaryPostResponse", + '200': "V1BwtrackerRegionSiteDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -13261,10 +14987,10 @@ def v1_bwtracker_region_edge_summary_post( @validate_call - def v1_bwtracker_region_edge_summary_post_with_http_info( + def v1_bwtracker_region_site_details_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest, + v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13277,14 +15003,14 @@ def v1_bwtracker_region_edge_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[V1BwtrackerRegionEdgeSummaryPostResponse]: - """v1_bwtracker_region_edge_summary_post + ) -> ApiResponse[V1BwtrackerRegionSiteDetailsPostResponse]: + """v1_bwtracker_region_site_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_summary_post_request: (required) - :type v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest + :param v1_bwtracker_region_site_details_post_request: (required) + :type v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13307,9 +15033,9 @@ def v1_bwtracker_region_edge_summary_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_summary_post_serialize( + _param = self._v1_bwtracker_region_site_details_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_summary_post_request=v1_bwtracker_region_edge_summary_post_request, + v1_bwtracker_region_site_details_post_request=v1_bwtracker_region_site_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13317,7 +15043,7 @@ def v1_bwtracker_region_edge_summary_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeSummaryPostResponse", + '200': "V1BwtrackerRegionSiteDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -13331,10 +15057,10 @@ def v1_bwtracker_region_edge_summary_post_with_http_info( @validate_call - def v1_bwtracker_region_edge_summary_post_without_preload_content( + def v1_bwtracker_region_site_details_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest, + v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13348,13 +15074,13 @@ def v1_bwtracker_region_edge_summary_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_edge_summary_post + """v1_bwtracker_region_site_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_edge_summary_post_request: (required) - :type v1_bwtracker_region_edge_summary_post_request: V1BwtrackerRegionEdgeSummaryPostRequest + :param v1_bwtracker_region_site_details_post_request: (required) + :type v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13377,9 +15103,9 @@ def v1_bwtracker_region_edge_summary_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_edge_summary_post_serialize( + _param = self._v1_bwtracker_region_site_details_post_serialize( authorization=authorization, - v1_bwtracker_region_edge_summary_post_request=v1_bwtracker_region_edge_summary_post_request, + v1_bwtracker_region_site_details_post_request=v1_bwtracker_region_site_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13387,7 +15113,7 @@ def v1_bwtracker_region_edge_summary_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionEdgeSummaryPostResponse", + '200': "V1BwtrackerRegionSiteDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -13396,10 +15122,10 @@ def v1_bwtracker_region_edge_summary_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_edge_summary_post_serialize( + def _v1_bwtracker_region_site_details_post_serialize( self, authorization, - v1_bwtracker_region_edge_summary_post_request, + v1_bwtracker_region_site_details_post_request, _request_auth, _content_type, _headers, @@ -13427,8 +15153,8 @@ def _v1_bwtracker_region_edge_summary_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_edge_summary_post_request is not None: - _body_params = v1_bwtracker_region_edge_summary_post_request + if v1_bwtracker_region_site_details_post_request is not None: + _body_params = v1_bwtracker_region_site_details_post_request # set the HTTP header `Accept` @@ -13460,7 +15186,7 @@ def _v1_bwtracker_region_edge_summary_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/region/edge/summary', + resource_path='/v1/bwtracker/region/site/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13477,10 +15203,10 @@ def _v1_bwtracker_region_edge_summary_post_serialize( @validate_call - def v1_bwtracker_region_gateway_chart_post( + def v1_bwtracker_region_site_gateway_chart_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest, + v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13493,14 +15219,14 @@ def v1_bwtracker_region_gateway_chart_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionGatewayChartPostResponse: - """v1_bwtracker_region_gateway_chart_post + ) -> V1BwtrackerRegionSiteGatewayChartPostResponse: + """v1_bwtracker_region_site_gateway_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_chart_post_request: (required) - :type v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest + :param v1_bwtracker_region_site_gateway_chart_post_request: (required) + :type v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13523,9 +15249,9 @@ def v1_bwtracker_region_gateway_chart_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_chart_post_serialize( + _param = self._v1_bwtracker_region_site_gateway_chart_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_chart_post_request=v1_bwtracker_region_gateway_chart_post_request, + v1_bwtracker_region_site_gateway_chart_post_request=v1_bwtracker_region_site_gateway_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13533,7 +15259,7 @@ def v1_bwtracker_region_gateway_chart_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewayChartPostResponse", + '200': "V1BwtrackerRegionSiteGatewayChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -13547,10 +15273,10 @@ def v1_bwtracker_region_gateway_chart_post( @validate_call - def v1_bwtracker_region_gateway_chart_post_with_http_info( + def v1_bwtracker_region_site_gateway_chart_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest, + v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13563,14 +15289,14 @@ def v1_bwtracker_region_gateway_chart_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[V1BwtrackerRegionGatewayChartPostResponse]: - """v1_bwtracker_region_gateway_chart_post + ) -> ApiResponse[V1BwtrackerRegionSiteGatewayChartPostResponse]: + """v1_bwtracker_region_site_gateway_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_chart_post_request: (required) - :type v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest + :param v1_bwtracker_region_site_gateway_chart_post_request: (required) + :type v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13593,9 +15319,9 @@ def v1_bwtracker_region_gateway_chart_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_chart_post_serialize( + _param = self._v1_bwtracker_region_site_gateway_chart_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_chart_post_request=v1_bwtracker_region_gateway_chart_post_request, + v1_bwtracker_region_site_gateway_chart_post_request=v1_bwtracker_region_site_gateway_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13603,7 +15329,7 @@ def v1_bwtracker_region_gateway_chart_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewayChartPostResponse", + '200': "V1BwtrackerRegionSiteGatewayChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -13617,10 +15343,10 @@ def v1_bwtracker_region_gateway_chart_post_with_http_info( @validate_call - def v1_bwtracker_region_gateway_chart_post_without_preload_content( + def v1_bwtracker_region_site_gateway_chart_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest, + v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13634,13 +15360,13 @@ def v1_bwtracker_region_gateway_chart_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_gateway_chart_post + """v1_bwtracker_region_site_gateway_chart_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_chart_post_request: (required) - :type v1_bwtracker_region_gateway_chart_post_request: V1BwtrackerRegionGatewayChartPostRequest + :param v1_bwtracker_region_site_gateway_chart_post_request: (required) + :type v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13663,9 +15389,9 @@ def v1_bwtracker_region_gateway_chart_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_chart_post_serialize( + _param = self._v1_bwtracker_region_site_gateway_chart_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_chart_post_request=v1_bwtracker_region_gateway_chart_post_request, + v1_bwtracker_region_site_gateway_chart_post_request=v1_bwtracker_region_site_gateway_chart_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13673,7 +15399,7 @@ def v1_bwtracker_region_gateway_chart_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewayChartPostResponse", + '200': "V1BwtrackerRegionSiteGatewayChartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -13682,10 +15408,10 @@ def v1_bwtracker_region_gateway_chart_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_gateway_chart_post_serialize( + def _v1_bwtracker_region_site_gateway_chart_post_serialize( self, authorization, - v1_bwtracker_region_gateway_chart_post_request, + v1_bwtracker_region_site_gateway_chart_post_request, _request_auth, _content_type, _headers, @@ -13713,8 +15439,8 @@ def _v1_bwtracker_region_gateway_chart_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_gateway_chart_post_request is not None: - _body_params = v1_bwtracker_region_gateway_chart_post_request + if v1_bwtracker_region_site_gateway_chart_post_request is not None: + _body_params = v1_bwtracker_region_site_gateway_chart_post_request # set the HTTP header `Accept` @@ -13746,7 +15472,7 @@ def _v1_bwtracker_region_gateway_chart_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/region/gateway/chart', + resource_path='/v1/bwtracker/region/site/gateway/chart', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -13763,10 +15489,10 @@ def _v1_bwtracker_region_gateway_chart_post_serialize( @validate_call - def v1_bwtracker_region_gateway_csv_post( + def v1_bwtracker_region_site_gateway_details_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest, + v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13779,14 +15505,14 @@ def v1_bwtracker_region_gateway_csv_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionGatewayCsvPostResponse: - """v1_bwtracker_region_gateway_csv_post + ) -> V1BwtrackerRegionSiteGatewayDetailsPostResponse: + """v1_bwtracker_region_site_gateway_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_csv_post_request: (required) - :type v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest + :param v1_bwtracker_region_site_gateway_details_post_request: (required) + :type v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13809,9 +15535,9 @@ def v1_bwtracker_region_gateway_csv_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_csv_post_serialize( + _param = self._v1_bwtracker_region_site_gateway_details_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_csv_post_request=v1_bwtracker_region_gateway_csv_post_request, + v1_bwtracker_region_site_gateway_details_post_request=v1_bwtracker_region_site_gateway_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13819,7 +15545,7 @@ def v1_bwtracker_region_gateway_csv_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewayCsvPostResponse", + '200': "V1BwtrackerRegionSiteGatewayDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -13833,10 +15559,10 @@ def v1_bwtracker_region_gateway_csv_post( @validate_call - def v1_bwtracker_region_gateway_csv_post_with_http_info( + def v1_bwtracker_region_site_gateway_details_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest, + v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13849,14 +15575,14 @@ def v1_bwtracker_region_gateway_csv_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[V1BwtrackerRegionGatewayCsvPostResponse]: - """v1_bwtracker_region_gateway_csv_post + ) -> ApiResponse[V1BwtrackerRegionSiteGatewayDetailsPostResponse]: + """v1_bwtracker_region_site_gateway_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_csv_post_request: (required) - :type v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest + :param v1_bwtracker_region_site_gateway_details_post_request: (required) + :type v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13879,9 +15605,9 @@ def v1_bwtracker_region_gateway_csv_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_csv_post_serialize( + _param = self._v1_bwtracker_region_site_gateway_details_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_csv_post_request=v1_bwtracker_region_gateway_csv_post_request, + v1_bwtracker_region_site_gateway_details_post_request=v1_bwtracker_region_site_gateway_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13889,7 +15615,7 @@ def v1_bwtracker_region_gateway_csv_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewayCsvPostResponse", + '200': "V1BwtrackerRegionSiteGatewayDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -13903,10 +15629,10 @@ def v1_bwtracker_region_gateway_csv_post_with_http_info( @validate_call - def v1_bwtracker_region_gateway_csv_post_without_preload_content( + def v1_bwtracker_region_site_gateway_details_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest, + v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13920,13 +15646,13 @@ def v1_bwtracker_region_gateway_csv_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_gateway_csv_post + """v1_bwtracker_region_site_gateway_details_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_csv_post_request: (required) - :type v1_bwtracker_region_gateway_csv_post_request: V1BwtrackerRegionGatewayCsvPostRequest + :param v1_bwtracker_region_site_gateway_details_post_request: (required) + :type v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13949,9 +15675,9 @@ def v1_bwtracker_region_gateway_csv_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_csv_post_serialize( + _param = self._v1_bwtracker_region_site_gateway_details_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_csv_post_request=v1_bwtracker_region_gateway_csv_post_request, + v1_bwtracker_region_site_gateway_details_post_request=v1_bwtracker_region_site_gateway_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13959,7 +15685,7 @@ def v1_bwtracker_region_gateway_csv_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewayCsvPostResponse", + '200': "V1BwtrackerRegionSiteGatewayDetailsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -13968,10 +15694,10 @@ def v1_bwtracker_region_gateway_csv_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_gateway_csv_post_serialize( + def _v1_bwtracker_region_site_gateway_details_post_serialize( self, authorization, - v1_bwtracker_region_gateway_csv_post_request, + v1_bwtracker_region_site_gateway_details_post_request, _request_auth, _content_type, _headers, @@ -13999,8 +15725,8 @@ def _v1_bwtracker_region_gateway_csv_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_gateway_csv_post_request is not None: - _body_params = v1_bwtracker_region_gateway_csv_post_request + if v1_bwtracker_region_site_gateway_details_post_request is not None: + _body_params = v1_bwtracker_region_site_gateway_details_post_request # set the HTTP header `Accept` @@ -14032,7 +15758,7 @@ def _v1_bwtracker_region_gateway_csv_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/region/gateway/csv', + resource_path='/v1/bwtracker/region/site/gateway/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14049,10 +15775,10 @@ def _v1_bwtracker_region_gateway_csv_post_serialize( @validate_call - def v1_bwtracker_region_gateway_details_post( + def v1_bwtracker_region_site_gateway_summary_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest, + v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14065,14 +15791,14 @@ def v1_bwtracker_region_gateway_details_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionGatewayDetailsPostResponse: - """v1_bwtracker_region_gateway_details_post + ) -> V1BwtrackerRegionSiteGatewaySummaryPostResponse: + """v1_bwtracker_region_site_gateway_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_details_post_request: (required) - :type v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest + :param v1_bwtracker_region_site_gateway_summary_post_request: (required) + :type v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14095,9 +15821,9 @@ def v1_bwtracker_region_gateway_details_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_details_post_serialize( + _param = self._v1_bwtracker_region_site_gateway_summary_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_details_post_request=v1_bwtracker_region_gateway_details_post_request, + v1_bwtracker_region_site_gateway_summary_post_request=v1_bwtracker_region_site_gateway_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14105,7 +15831,7 @@ def v1_bwtracker_region_gateway_details_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewayDetailsPostResponse", + '200': "V1BwtrackerRegionSiteGatewaySummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -14119,10 +15845,10 @@ def v1_bwtracker_region_gateway_details_post( @validate_call - def v1_bwtracker_region_gateway_details_post_with_http_info( + def v1_bwtracker_region_site_gateway_summary_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest, + v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14135,14 +15861,14 @@ def v1_bwtracker_region_gateway_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[V1BwtrackerRegionGatewayDetailsPostResponse]: - """v1_bwtracker_region_gateway_details_post + ) -> ApiResponse[V1BwtrackerRegionSiteGatewaySummaryPostResponse]: + """v1_bwtracker_region_site_gateway_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_details_post_request: (required) - :type v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest + :param v1_bwtracker_region_site_gateway_summary_post_request: (required) + :type v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14165,9 +15891,9 @@ def v1_bwtracker_region_gateway_details_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_details_post_serialize( + _param = self._v1_bwtracker_region_site_gateway_summary_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_details_post_request=v1_bwtracker_region_gateway_details_post_request, + v1_bwtracker_region_site_gateway_summary_post_request=v1_bwtracker_region_site_gateway_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14175,7 +15901,7 @@ def v1_bwtracker_region_gateway_details_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewayDetailsPostResponse", + '200': "V1BwtrackerRegionSiteGatewaySummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -14189,10 +15915,10 @@ def v1_bwtracker_region_gateway_details_post_with_http_info( @validate_call - def v1_bwtracker_region_gateway_details_post_without_preload_content( + def v1_bwtracker_region_site_gateway_summary_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest, + v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14206,13 +15932,13 @@ def v1_bwtracker_region_gateway_details_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_gateway_details_post + """v1_bwtracker_region_site_gateway_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_details_post_request: (required) - :type v1_bwtracker_region_gateway_details_post_request: V1BwtrackerRegionGatewayDetailsPostRequest + :param v1_bwtracker_region_site_gateway_summary_post_request: (required) + :type v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14235,9 +15961,9 @@ def v1_bwtracker_region_gateway_details_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_details_post_serialize( + _param = self._v1_bwtracker_region_site_gateway_summary_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_details_post_request=v1_bwtracker_region_gateway_details_post_request, + v1_bwtracker_region_site_gateway_summary_post_request=v1_bwtracker_region_site_gateway_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14245,7 +15971,7 @@ def v1_bwtracker_region_gateway_details_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewayDetailsPostResponse", + '200': "V1BwtrackerRegionSiteGatewaySummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -14254,10 +15980,10 @@ def v1_bwtracker_region_gateway_details_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_gateway_details_post_serialize( + def _v1_bwtracker_region_site_gateway_summary_post_serialize( self, authorization, - v1_bwtracker_region_gateway_details_post_request, + v1_bwtracker_region_site_gateway_summary_post_request, _request_auth, _content_type, _headers, @@ -14285,8 +16011,8 @@ def _v1_bwtracker_region_gateway_details_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_gateway_details_post_request is not None: - _body_params = v1_bwtracker_region_gateway_details_post_request + if v1_bwtracker_region_site_gateway_summary_post_request is not None: + _body_params = v1_bwtracker_region_site_gateway_summary_post_request # set the HTTP header `Accept` @@ -14318,7 +16044,7 @@ def _v1_bwtracker_region_gateway_details_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/region/gateway/details', + resource_path='/v1/bwtracker/region/site/gateway/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14335,10 +16061,10 @@ def _v1_bwtracker_region_gateway_details_post_serialize( @validate_call - def v1_bwtracker_region_gateway_summary_post( + def v1_bwtracker_region_site_summary_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest, + v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14351,14 +16077,14 @@ def v1_bwtracker_region_gateway_summary_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionGatewaySummaryPostResponse: - """v1_bwtracker_region_gateway_summary_post + ) -> V1BwtrackerRegionSiteSummaryPostResponse: + """v1_bwtracker_region_site_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_summary_post_request: (required) - :type v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest + :param v1_bwtracker_region_site_summary_post_request: (required) + :type v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14381,9 +16107,9 @@ def v1_bwtracker_region_gateway_summary_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_summary_post_serialize( + _param = self._v1_bwtracker_region_site_summary_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_summary_post_request=v1_bwtracker_region_gateway_summary_post_request, + v1_bwtracker_region_site_summary_post_request=v1_bwtracker_region_site_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14391,7 +16117,7 @@ def v1_bwtracker_region_gateway_summary_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewaySummaryPostResponse", + '200': "V1BwtrackerRegionSiteSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -14405,10 +16131,10 @@ def v1_bwtracker_region_gateway_summary_post( @validate_call - def v1_bwtracker_region_gateway_summary_post_with_http_info( + def v1_bwtracker_region_site_summary_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest, + v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14421,14 +16147,14 @@ def v1_bwtracker_region_gateway_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[V1BwtrackerRegionGatewaySummaryPostResponse]: - """v1_bwtracker_region_gateway_summary_post + ) -> ApiResponse[V1BwtrackerRegionSiteSummaryPostResponse]: + """v1_bwtracker_region_site_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_summary_post_request: (required) - :type v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest + :param v1_bwtracker_region_site_summary_post_request: (required) + :type v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14451,9 +16177,9 @@ def v1_bwtracker_region_gateway_summary_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_summary_post_serialize( + _param = self._v1_bwtracker_region_site_summary_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_summary_post_request=v1_bwtracker_region_gateway_summary_post_request, + v1_bwtracker_region_site_summary_post_request=v1_bwtracker_region_site_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14461,7 +16187,7 @@ def v1_bwtracker_region_gateway_summary_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewaySummaryPostResponse", + '200': "V1BwtrackerRegionSiteSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -14475,10 +16201,10 @@ def v1_bwtracker_region_gateway_summary_post_with_http_info( @validate_call - def v1_bwtracker_region_gateway_summary_post_without_preload_content( + def v1_bwtracker_region_site_summary_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest, + v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14492,13 +16218,13 @@ def v1_bwtracker_region_gateway_summary_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_gateway_summary_post + """v1_bwtracker_region_site_summary_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_gateway_summary_post_request: (required) - :type v1_bwtracker_region_gateway_summary_post_request: V1BwtrackerRegionGatewaySummaryPostRequest + :param v1_bwtracker_region_site_summary_post_request: (required) + :type v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14521,9 +16247,9 @@ def v1_bwtracker_region_gateway_summary_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_gateway_summary_post_serialize( + _param = self._v1_bwtracker_region_site_summary_post_serialize( authorization=authorization, - v1_bwtracker_region_gateway_summary_post_request=v1_bwtracker_region_gateway_summary_post_request, + v1_bwtracker_region_site_summary_post_request=v1_bwtracker_region_site_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14531,7 +16257,7 @@ def v1_bwtracker_region_gateway_summary_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionGatewaySummaryPostResponse", + '200': "V1BwtrackerRegionSiteSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -14540,10 +16266,10 @@ def v1_bwtracker_region_gateway_summary_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_gateway_summary_post_serialize( + def _v1_bwtracker_region_site_summary_post_serialize( self, authorization, - v1_bwtracker_region_gateway_summary_post_request, + v1_bwtracker_region_site_summary_post_request, _request_auth, _content_type, _headers, @@ -14571,8 +16297,8 @@ def _v1_bwtracker_region_gateway_summary_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_gateway_summary_post_request is not None: - _body_params = v1_bwtracker_region_gateway_summary_post_request + if v1_bwtracker_region_site_summary_post_request is not None: + _body_params = v1_bwtracker_region_site_summary_post_request # set the HTTP header `Accept` @@ -14604,7 +16330,7 @@ def _v1_bwtracker_region_gateway_summary_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/region/gateway/summary', + resource_path='/v1/bwtracker/region/site/summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14621,10 +16347,10 @@ def _v1_bwtracker_region_gateway_summary_post_serialize( @validate_call - def v1_bwtracker_region_site_chart_post( + def v1_bwtracker_site_csv_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest, + v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14637,14 +16363,14 @@ def v1_bwtracker_region_site_chart_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionSiteChartPostResponse: - """v1_bwtracker_region_site_chart_post + ) -> V1BwtrackerSiteCsvPostResponse: + """v1_bwtracker_site_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_chart_post_request: (required) - :type v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest + :param v1_bwtracker_site_csv_post_request: (required) + :type v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14667,9 +16393,9 @@ def v1_bwtracker_region_site_chart_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_chart_post_serialize( + _param = self._v1_bwtracker_site_csv_post_serialize( authorization=authorization, - v1_bwtracker_region_site_chart_post_request=v1_bwtracker_region_site_chart_post_request, + v1_bwtracker_site_csv_post_request=v1_bwtracker_site_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14677,7 +16403,7 @@ def v1_bwtracker_region_site_chart_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteChartPostResponse", + '200': "V1BwtrackerSiteCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -14691,10 +16417,10 @@ def v1_bwtracker_region_site_chart_post( @validate_call - def v1_bwtracker_region_site_chart_post_with_http_info( + def v1_bwtracker_site_csv_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest, + v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14707,14 +16433,14 @@ def v1_bwtracker_region_site_chart_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[V1BwtrackerRegionSiteChartPostResponse]: - """v1_bwtracker_region_site_chart_post + ) -> ApiResponse[V1BwtrackerSiteCsvPostResponse]: + """v1_bwtracker_site_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_chart_post_request: (required) - :type v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest + :param v1_bwtracker_site_csv_post_request: (required) + :type v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14737,9 +16463,9 @@ def v1_bwtracker_region_site_chart_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_chart_post_serialize( + _param = self._v1_bwtracker_site_csv_post_serialize( authorization=authorization, - v1_bwtracker_region_site_chart_post_request=v1_bwtracker_region_site_chart_post_request, + v1_bwtracker_site_csv_post_request=v1_bwtracker_site_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14747,7 +16473,7 @@ def v1_bwtracker_region_site_chart_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteChartPostResponse", + '200': "V1BwtrackerSiteCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -14761,10 +16487,10 @@ def v1_bwtracker_region_site_chart_post_with_http_info( @validate_call - def v1_bwtracker_region_site_chart_post_without_preload_content( + def v1_bwtracker_site_csv_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest, + v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14778,13 +16504,13 @@ def v1_bwtracker_region_site_chart_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_site_chart_post + """v1_bwtracker_site_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_chart_post_request: (required) - :type v1_bwtracker_region_site_chart_post_request: V1BwtrackerRegionSiteChartPostRequest + :param v1_bwtracker_site_csv_post_request: (required) + :type v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14807,9 +16533,9 @@ def v1_bwtracker_region_site_chart_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_chart_post_serialize( + _param = self._v1_bwtracker_site_csv_post_serialize( authorization=authorization, - v1_bwtracker_region_site_chart_post_request=v1_bwtracker_region_site_chart_post_request, + v1_bwtracker_site_csv_post_request=v1_bwtracker_site_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14817,7 +16543,7 @@ def v1_bwtracker_region_site_chart_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteChartPostResponse", + '200': "V1BwtrackerSiteCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -14826,10 +16552,10 @@ def v1_bwtracker_region_site_chart_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_site_chart_post_serialize( + def _v1_bwtracker_site_csv_post_serialize( self, authorization, - v1_bwtracker_region_site_chart_post_request, + v1_bwtracker_site_csv_post_request, _request_auth, _content_type, _headers, @@ -14857,8 +16583,8 @@ def _v1_bwtracker_region_site_chart_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_site_chart_post_request is not None: - _body_params = v1_bwtracker_region_site_chart_post_request + if v1_bwtracker_site_csv_post_request is not None: + _body_params = v1_bwtracker_site_csv_post_request # set the HTTP header `Accept` @@ -14890,7 +16616,7 @@ def _v1_bwtracker_region_site_chart_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/region/site/chart', + resource_path='/v1/bwtracker/site/csv', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -14907,10 +16633,10 @@ def _v1_bwtracker_region_site_chart_post_serialize( @validate_call - def v1_bwtracker_region_site_details_post( + def v1_bwtracker_site_gateway_csv_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest, + v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14923,14 +16649,14 @@ def v1_bwtracker_region_site_details_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionSiteDetailsPostResponse: - """v1_bwtracker_region_site_details_post + ) -> V1BwtrackerSiteGatewayCsvPostResponse: + """v1_bwtracker_site_gateway_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_details_post_request: (required) - :type v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest + :param v1_bwtracker_site_gateway_csv_post_request: (required) + :type v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -14953,9 +16679,9 @@ def v1_bwtracker_region_site_details_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_details_post_serialize( + _param = self._v1_bwtracker_site_gateway_csv_post_serialize( authorization=authorization, - v1_bwtracker_region_site_details_post_request=v1_bwtracker_region_site_details_post_request, + v1_bwtracker_site_gateway_csv_post_request=v1_bwtracker_site_gateway_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -14963,7 +16689,7 @@ def v1_bwtracker_region_site_details_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteDetailsPostResponse", + '200': "V1BwtrackerSiteGatewayCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -14977,10 +16703,10 @@ def v1_bwtracker_region_site_details_post( @validate_call - def v1_bwtracker_region_site_details_post_with_http_info( + def v1_bwtracker_site_gateway_csv_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest, + v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -14993,14 +16719,14 @@ def v1_bwtracker_region_site_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[V1BwtrackerRegionSiteDetailsPostResponse]: - """v1_bwtracker_region_site_details_post + ) -> ApiResponse[V1BwtrackerSiteGatewayCsvPostResponse]: + """v1_bwtracker_site_gateway_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_details_post_request: (required) - :type v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest + :param v1_bwtracker_site_gateway_csv_post_request: (required) + :type v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15023,9 +16749,9 @@ def v1_bwtracker_region_site_details_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_details_post_serialize( + _param = self._v1_bwtracker_site_gateway_csv_post_serialize( authorization=authorization, - v1_bwtracker_region_site_details_post_request=v1_bwtracker_region_site_details_post_request, + v1_bwtracker_site_gateway_csv_post_request=v1_bwtracker_site_gateway_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15033,7 +16759,7 @@ def v1_bwtracker_region_site_details_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteDetailsPostResponse", + '200': "V1BwtrackerSiteGatewayCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -15047,10 +16773,10 @@ def v1_bwtracker_region_site_details_post_with_http_info( @validate_call - def v1_bwtracker_region_site_details_post_without_preload_content( + def v1_bwtracker_site_gateway_csv_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest, + v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15064,13 +16790,13 @@ def v1_bwtracker_region_site_details_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_site_details_post + """v1_bwtracker_site_gateway_csv_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_details_post_request: (required) - :type v1_bwtracker_region_site_details_post_request: V1BwtrackerRegionSiteDetailsPostRequest + :param v1_bwtracker_site_gateway_csv_post_request: (required) + :type v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15093,9 +16819,9 @@ def v1_bwtracker_region_site_details_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_details_post_serialize( + _param = self._v1_bwtracker_site_gateway_csv_post_serialize( authorization=authorization, - v1_bwtracker_region_site_details_post_request=v1_bwtracker_region_site_details_post_request, + v1_bwtracker_site_gateway_csv_post_request=v1_bwtracker_site_gateway_csv_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15103,7 +16829,7 @@ def v1_bwtracker_region_site_details_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteDetailsPostResponse", + '200': "V1BwtrackerSiteGatewayCsvPostResponse", } response_data = self.api_client.call_api( *_param, @@ -15112,10 +16838,10 @@ def v1_bwtracker_region_site_details_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_site_details_post_serialize( + def _v1_bwtracker_site_gateway_csv_post_serialize( self, authorization, - v1_bwtracker_region_site_details_post_request, + v1_bwtracker_site_gateway_csv_post_request, _request_auth, _content_type, _headers, @@ -15143,8 +16869,8 @@ def _v1_bwtracker_region_site_details_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_site_details_post_request is not None: - _body_params = v1_bwtracker_region_site_details_post_request + if v1_bwtracker_site_gateway_csv_post_request is not None: + _body_params = v1_bwtracker_site_gateway_csv_post_request # set the HTTP header `Accept` @@ -15176,7 +16902,7 @@ def _v1_bwtracker_region_site_details_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/region/site/details', + resource_path='/v1/bwtracker/site/gateway/csv', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15193,10 +16919,10 @@ def _v1_bwtracker_region_site_details_post_serialize( @validate_call - def v1_bwtracker_region_site_gateway_chart_post( + def v1_data_assurance_assurances_applications_bucket_app_name_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest, + bucket_app_name: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15209,14 +16935,15 @@ def v1_bwtracker_region_site_gateway_chart_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionSiteGatewayChartPostResponse: - """v1_bwtracker_region_site_gateway_chart_post + ) -> V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse: + """v1_data_assurance_assurances_applications_bucket_app_name_get + Gets the assurance details for all edges under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_gateway_chart_post_request: (required) - :type v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest + :param bucket_app_name: (required) + :type bucket_app_name: 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 @@ -15239,9 +16966,9 @@ def v1_bwtracker_region_site_gateway_chart_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_gateway_chart_post_serialize( + _param = self._v1_data_assurance_assurances_applications_bucket_app_name_get_serialize( authorization=authorization, - v1_bwtracker_region_site_gateway_chart_post_request=v1_bwtracker_region_site_gateway_chart_post_request, + bucket_app_name=bucket_app_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15249,7 +16976,7 @@ def v1_bwtracker_region_site_gateway_chart_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteGatewayChartPostResponse", + '200': "V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse", } response_data = self.api_client.call_api( *_param, @@ -15263,10 +16990,10 @@ def v1_bwtracker_region_site_gateway_chart_post( @validate_call - def v1_bwtracker_region_site_gateway_chart_post_with_http_info( + def v1_data_assurance_assurances_applications_bucket_app_name_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest, + bucket_app_name: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15279,14 +17006,15 @@ def v1_bwtracker_region_site_gateway_chart_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[V1BwtrackerRegionSiteGatewayChartPostResponse]: - """v1_bwtracker_region_site_gateway_chart_post + ) -> ApiResponse[V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse]: + """v1_data_assurance_assurances_applications_bucket_app_name_get + Gets the assurance details for all edges under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_gateway_chart_post_request: (required) - :type v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest + :param bucket_app_name: (required) + :type bucket_app_name: 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 @@ -15309,9 +17037,9 @@ def v1_bwtracker_region_site_gateway_chart_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_gateway_chart_post_serialize( + _param = self._v1_data_assurance_assurances_applications_bucket_app_name_get_serialize( authorization=authorization, - v1_bwtracker_region_site_gateway_chart_post_request=v1_bwtracker_region_site_gateway_chart_post_request, + bucket_app_name=bucket_app_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15319,7 +17047,7 @@ def v1_bwtracker_region_site_gateway_chart_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteGatewayChartPostResponse", + '200': "V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse", } response_data = self.api_client.call_api( *_param, @@ -15333,10 +17061,10 @@ def v1_bwtracker_region_site_gateway_chart_post_with_http_info( @validate_call - def v1_bwtracker_region_site_gateway_chart_post_without_preload_content( + def v1_data_assurance_assurances_applications_bucket_app_name_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest, + bucket_app_name: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15350,13 +17078,14 @@ def v1_bwtracker_region_site_gateway_chart_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_site_gateway_chart_post + """v1_data_assurance_assurances_applications_bucket_app_name_get + Gets the assurance details for all edges under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_gateway_chart_post_request: (required) - :type v1_bwtracker_region_site_gateway_chart_post_request: V1BwtrackerRegionSiteGatewayChartPostRequest + :param bucket_app_name: (required) + :type bucket_app_name: 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 @@ -15379,9 +17108,9 @@ def v1_bwtracker_region_site_gateway_chart_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_gateway_chart_post_serialize( + _param = self._v1_data_assurance_assurances_applications_bucket_app_name_get_serialize( authorization=authorization, - v1_bwtracker_region_site_gateway_chart_post_request=v1_bwtracker_region_site_gateway_chart_post_request, + bucket_app_name=bucket_app_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15389,7 +17118,7 @@ def v1_bwtracker_region_site_gateway_chart_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteGatewayChartPostResponse", + '200': "V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse", } response_data = self.api_client.call_api( *_param, @@ -15398,10 +17127,10 @@ def v1_bwtracker_region_site_gateway_chart_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_site_gateway_chart_post_serialize( + def _v1_data_assurance_assurances_applications_bucket_app_name_get_serialize( self, authorization, - v1_bwtracker_region_site_gateway_chart_post_request, + bucket_app_name, _request_auth, _content_type, _headers, @@ -15423,14 +17152,14 @@ def _v1_bwtracker_region_site_gateway_chart_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if bucket_app_name is not None: + _path_params['bucketAppName'] = bucket_app_name # 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_bwtracker_region_site_gateway_chart_post_request is not None: - _body_params = v1_bwtracker_region_site_gateway_chart_post_request # set the HTTP header `Accept` @@ -15441,19 +17170,6 @@ def _v1_bwtracker_region_site_gateway_chart_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] = [ @@ -15461,8 +17177,8 @@ def _v1_bwtracker_region_site_gateway_chart_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/bwtracker/region/site/gateway/chart', + method='GET', + resource_path='/v1/data-assurance/assurances/applications/{bucketAppName}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15479,10 +17195,9 @@ def _v1_bwtracker_region_site_gateway_chart_post_serialize( @validate_call - def v1_bwtracker_region_site_gateway_details_post( + def v1_data_assurance_assurances_global_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15495,14 +17210,13 @@ def v1_bwtracker_region_site_gateway_details_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionSiteGatewayDetailsPostResponse: - """v1_bwtracker_region_site_gateway_details_post + ) -> V1DataAssuranceAssurancesGlobalGetResponse: + """v1_data_assurance_assurances_global_get + Get all assurances under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_gateway_details_post_request: (required) - :type v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15525,9 +17239,8 @@ def v1_bwtracker_region_site_gateway_details_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_gateway_details_post_serialize( + _param = self._v1_data_assurance_assurances_global_get_serialize( authorization=authorization, - v1_bwtracker_region_site_gateway_details_post_request=v1_bwtracker_region_site_gateway_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15535,7 +17248,7 @@ def v1_bwtracker_region_site_gateway_details_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteGatewayDetailsPostResponse", + '200': "V1DataAssuranceAssurancesGlobalGetResponse", } response_data = self.api_client.call_api( *_param, @@ -15549,10 +17262,9 @@ def v1_bwtracker_region_site_gateway_details_post( @validate_call - def v1_bwtracker_region_site_gateway_details_post_with_http_info( + def v1_data_assurance_assurances_global_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15565,14 +17277,13 @@ def v1_bwtracker_region_site_gateway_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[V1BwtrackerRegionSiteGatewayDetailsPostResponse]: - """v1_bwtracker_region_site_gateway_details_post + ) -> ApiResponse[V1DataAssuranceAssurancesGlobalGetResponse]: + """v1_data_assurance_assurances_global_get + Get all assurances under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_gateway_details_post_request: (required) - :type v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15595,9 +17306,8 @@ def v1_bwtracker_region_site_gateway_details_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_gateway_details_post_serialize( + _param = self._v1_data_assurance_assurances_global_get_serialize( authorization=authorization, - v1_bwtracker_region_site_gateway_details_post_request=v1_bwtracker_region_site_gateway_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15605,7 +17315,7 @@ def v1_bwtracker_region_site_gateway_details_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteGatewayDetailsPostResponse", + '200': "V1DataAssuranceAssurancesGlobalGetResponse", } response_data = self.api_client.call_api( *_param, @@ -15619,10 +17329,9 @@ def v1_bwtracker_region_site_gateway_details_post_with_http_info( @validate_call - def v1_bwtracker_region_site_gateway_details_post_without_preload_content( + def v1_data_assurance_assurances_global_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15636,13 +17345,12 @@ def v1_bwtracker_region_site_gateway_details_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_site_gateway_details_post + """v1_data_assurance_assurances_global_get + Get all assurances under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_gateway_details_post_request: (required) - :type v1_bwtracker_region_site_gateway_details_post_request: V1BwtrackerRegionSiteGatewayDetailsPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -15665,9 +17373,8 @@ def v1_bwtracker_region_site_gateway_details_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_gateway_details_post_serialize( + _param = self._v1_data_assurance_assurances_global_get_serialize( authorization=authorization, - v1_bwtracker_region_site_gateway_details_post_request=v1_bwtracker_region_site_gateway_details_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15675,7 +17382,7 @@ def v1_bwtracker_region_site_gateway_details_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteGatewayDetailsPostResponse", + '200': "V1DataAssuranceAssurancesGlobalGetResponse", } response_data = self.api_client.call_api( *_param, @@ -15684,10 +17391,9 @@ def v1_bwtracker_region_site_gateway_details_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_site_gateway_details_post_serialize( + def _v1_data_assurance_assurances_global_get_serialize( self, authorization, - v1_bwtracker_region_site_gateway_details_post_request, _request_auth, _content_type, _headers, @@ -15715,8 +17421,6 @@ def _v1_bwtracker_region_site_gateway_details_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_site_gateway_details_post_request is not None: - _body_params = v1_bwtracker_region_site_gateway_details_post_request # set the HTTP header `Accept` @@ -15727,19 +17431,6 @@ def _v1_bwtracker_region_site_gateway_details_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] = [ @@ -15747,8 +17438,8 @@ def _v1_bwtracker_region_site_gateway_details_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/bwtracker/region/site/gateway/details', + method='GET', + resource_path='/v1/data-assurance/assurances/global', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -15765,10 +17456,10 @@ def _v1_bwtracker_region_site_gateway_details_post_serialize( @validate_call - def v1_bwtracker_region_site_gateway_summary_post( + def v1_data_assurance_assurances_global_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15781,14 +17472,15 @@ def v1_bwtracker_region_site_gateway_summary_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionSiteGatewaySummaryPostResponse: - """v1_bwtracker_region_site_gateway_summary_post + ) -> object: + """v1_data_assurance_assurances_global_id_delete + Delete an assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_gateway_summary_post_request: (required) - :type v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest + :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 @@ -15811,9 +17503,9 @@ def v1_bwtracker_region_site_gateway_summary_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_gateway_summary_post_serialize( + _param = self._v1_data_assurance_assurances_global_id_delete_serialize( authorization=authorization, - v1_bwtracker_region_site_gateway_summary_post_request=v1_bwtracker_region_site_gateway_summary_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15821,7 +17513,7 @@ def v1_bwtracker_region_site_gateway_summary_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteGatewaySummaryPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -15835,10 +17527,10 @@ def v1_bwtracker_region_site_gateway_summary_post( @validate_call - def v1_bwtracker_region_site_gateway_summary_post_with_http_info( + def v1_data_assurance_assurances_global_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15851,14 +17543,15 @@ def v1_bwtracker_region_site_gateway_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[V1BwtrackerRegionSiteGatewaySummaryPostResponse]: - """v1_bwtracker_region_site_gateway_summary_post + ) -> ApiResponse[object]: + """v1_data_assurance_assurances_global_id_delete + Delete an assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_gateway_summary_post_request: (required) - :type v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest + :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 @@ -15881,9 +17574,9 @@ def v1_bwtracker_region_site_gateway_summary_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_gateway_summary_post_serialize( + _param = self._v1_data_assurance_assurances_global_id_delete_serialize( authorization=authorization, - v1_bwtracker_region_site_gateway_summary_post_request=v1_bwtracker_region_site_gateway_summary_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15891,7 +17584,7 @@ def v1_bwtracker_region_site_gateway_summary_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteGatewaySummaryPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -15905,10 +17598,10 @@ def v1_bwtracker_region_site_gateway_summary_post_with_http_info( @validate_call - def v1_bwtracker_region_site_gateway_summary_post_without_preload_content( + def v1_data_assurance_assurances_global_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -15922,13 +17615,14 @@ def v1_bwtracker_region_site_gateway_summary_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_site_gateway_summary_post + """v1_data_assurance_assurances_global_id_delete + Delete an assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_gateway_summary_post_request: (required) - :type v1_bwtracker_region_site_gateway_summary_post_request: V1BwtrackerRegionSiteGatewaySummaryPostRequest + :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 @@ -15951,9 +17645,9 @@ def v1_bwtracker_region_site_gateway_summary_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_gateway_summary_post_serialize( + _param = self._v1_data_assurance_assurances_global_id_delete_serialize( authorization=authorization, - v1_bwtracker_region_site_gateway_summary_post_request=v1_bwtracker_region_site_gateway_summary_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -15961,7 +17655,7 @@ def v1_bwtracker_region_site_gateway_summary_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteGatewaySummaryPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -15970,10 +17664,10 @@ def v1_bwtracker_region_site_gateway_summary_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_site_gateway_summary_post_serialize( + def _v1_data_assurance_assurances_global_id_delete_serialize( self, authorization, - v1_bwtracker_region_site_gateway_summary_post_request, + id, _request_auth, _content_type, _headers, @@ -15995,14 +17689,14 @@ def _v1_bwtracker_region_site_gateway_summary_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_site_gateway_summary_post_request is not None: - _body_params = v1_bwtracker_region_site_gateway_summary_post_request # set the HTTP header `Accept` @@ -16013,19 +17707,6 @@ def _v1_bwtracker_region_site_gateway_summary_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -16033,8 +17714,8 @@ def _v1_bwtracker_region_site_gateway_summary_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/bwtracker/region/site/gateway/summary', + method='DELETE', + resource_path='/v1/data-assurance/assurances/global/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16051,10 +17732,10 @@ def _v1_bwtracker_region_site_gateway_summary_post_serialize( @validate_call - def v1_bwtracker_region_site_summary_post( + def v1_data_assurance_assurances_global_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16067,14 +17748,15 @@ def v1_bwtracker_region_site_summary_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerRegionSiteSummaryPostResponse: - """v1_bwtracker_region_site_summary_post + ) -> V1DataAssuranceAssurancesGlobalIdGetResponse: + """v1_data_assurance_assurances_global_id_get + Get the config for an assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_summary_post_request: (required) - :type v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest + :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 @@ -16097,9 +17779,9 @@ def v1_bwtracker_region_site_summary_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_summary_post_serialize( + _param = self._v1_data_assurance_assurances_global_id_get_serialize( authorization=authorization, - v1_bwtracker_region_site_summary_post_request=v1_bwtracker_region_site_summary_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16107,7 +17789,7 @@ def v1_bwtracker_region_site_summary_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteSummaryPostResponse", + '200': "V1DataAssuranceAssurancesGlobalIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -16121,10 +17803,10 @@ def v1_bwtracker_region_site_summary_post( @validate_call - def v1_bwtracker_region_site_summary_post_with_http_info( + def v1_data_assurance_assurances_global_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16137,14 +17819,15 @@ def v1_bwtracker_region_site_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[V1BwtrackerRegionSiteSummaryPostResponse]: - """v1_bwtracker_region_site_summary_post + ) -> ApiResponse[V1DataAssuranceAssurancesGlobalIdGetResponse]: + """v1_data_assurance_assurances_global_id_get + Get the config for an assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_summary_post_request: (required) - :type v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest + :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 @@ -16167,9 +17850,9 @@ def v1_bwtracker_region_site_summary_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_summary_post_serialize( + _param = self._v1_data_assurance_assurances_global_id_get_serialize( authorization=authorization, - v1_bwtracker_region_site_summary_post_request=v1_bwtracker_region_site_summary_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16177,7 +17860,7 @@ def v1_bwtracker_region_site_summary_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteSummaryPostResponse", + '200': "V1DataAssuranceAssurancesGlobalIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -16191,10 +17874,10 @@ def v1_bwtracker_region_site_summary_post_with_http_info( @validate_call - def v1_bwtracker_region_site_summary_post_without_preload_content( + def v1_data_assurance_assurances_global_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16208,13 +17891,14 @@ def v1_bwtracker_region_site_summary_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_region_site_summary_post + """v1_data_assurance_assurances_global_id_get + Get the config for an assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_region_site_summary_post_request: (required) - :type v1_bwtracker_region_site_summary_post_request: V1BwtrackerRegionSiteSummaryPostRequest + :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 @@ -16237,9 +17921,9 @@ def v1_bwtracker_region_site_summary_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_region_site_summary_post_serialize( + _param = self._v1_data_assurance_assurances_global_id_get_serialize( authorization=authorization, - v1_bwtracker_region_site_summary_post_request=v1_bwtracker_region_site_summary_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16247,7 +17931,7 @@ def v1_bwtracker_region_site_summary_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerRegionSiteSummaryPostResponse", + '200': "V1DataAssuranceAssurancesGlobalIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -16256,10 +17940,10 @@ def v1_bwtracker_region_site_summary_post_without_preload_content( return response_data.response - def _v1_bwtracker_region_site_summary_post_serialize( + def _v1_data_assurance_assurances_global_id_get_serialize( self, authorization, - v1_bwtracker_region_site_summary_post_request, + id, _request_auth, _content_type, _headers, @@ -16281,14 +17965,14 @@ def _v1_bwtracker_region_site_summary_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if id is not None: + _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_region_site_summary_post_request is not None: - _body_params = v1_bwtracker_region_site_summary_post_request # set the HTTP header `Accept` @@ -16299,19 +17983,6 @@ def _v1_bwtracker_region_site_summary_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -16319,8 +17990,8 @@ def _v1_bwtracker_region_site_summary_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/bwtracker/region/site/summary', + method='GET', + resource_path='/v1/data-assurance/assurances/global/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16337,10 +18008,11 @@ def _v1_bwtracker_region_site_summary_post_serialize( @validate_call - def v1_bwtracker_site_csv_post( + def v1_data_assurance_assurances_global_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest, + id: StrictInt, + v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16353,14 +18025,17 @@ def v1_bwtracker_site_csv_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerSiteCsvPostResponse: - """v1_bwtracker_site_csv_post + ) -> V1DataAssuranceAssurancesGlobalIdPutResponse: + """v1_data_assurance_assurances_global_id_put + Overwrite a pre-existing assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_site_csv_post_request: (required) - :type v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest + :param id: (required) + :type id: int + :param v1_data_assurance_assurances_global_id_put_request: (required) + :type v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16383,9 +18058,10 @@ def v1_bwtracker_site_csv_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_site_csv_post_serialize( + _param = self._v1_data_assurance_assurances_global_id_put_serialize( authorization=authorization, - v1_bwtracker_site_csv_post_request=v1_bwtracker_site_csv_post_request, + id=id, + v1_data_assurance_assurances_global_id_put_request=v1_data_assurance_assurances_global_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16393,7 +18069,7 @@ def v1_bwtracker_site_csv_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerSiteCsvPostResponse", + '200': "V1DataAssuranceAssurancesGlobalIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -16407,10 +18083,11 @@ def v1_bwtracker_site_csv_post( @validate_call - def v1_bwtracker_site_csv_post_with_http_info( + def v1_data_assurance_assurances_global_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest, + id: StrictInt, + v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16423,14 +18100,17 @@ def v1_bwtracker_site_csv_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[V1BwtrackerSiteCsvPostResponse]: - """v1_bwtracker_site_csv_post + ) -> ApiResponse[V1DataAssuranceAssurancesGlobalIdPutResponse]: + """v1_data_assurance_assurances_global_id_put + Overwrite a pre-existing assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_site_csv_post_request: (required) - :type v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest + :param id: (required) + :type id: int + :param v1_data_assurance_assurances_global_id_put_request: (required) + :type v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16453,9 +18133,10 @@ def v1_bwtracker_site_csv_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_site_csv_post_serialize( + _param = self._v1_data_assurance_assurances_global_id_put_serialize( authorization=authorization, - v1_bwtracker_site_csv_post_request=v1_bwtracker_site_csv_post_request, + id=id, + v1_data_assurance_assurances_global_id_put_request=v1_data_assurance_assurances_global_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16463,7 +18144,7 @@ def v1_bwtracker_site_csv_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerSiteCsvPostResponse", + '200': "V1DataAssuranceAssurancesGlobalIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -16477,10 +18158,11 @@ def v1_bwtracker_site_csv_post_with_http_info( @validate_call - def v1_bwtracker_site_csv_post_without_preload_content( + def v1_data_assurance_assurances_global_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest, + id: StrictInt, + v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16494,13 +18176,16 @@ def v1_bwtracker_site_csv_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_site_csv_post + """v1_data_assurance_assurances_global_id_put + Overwrite a pre-existing assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_site_csv_post_request: (required) - :type v1_bwtracker_site_csv_post_request: V1BwtrackerSiteCsvPostRequest + :param id: (required) + :type id: int + :param v1_data_assurance_assurances_global_id_put_request: (required) + :type v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16523,9 +18208,10 @@ def v1_bwtracker_site_csv_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_site_csv_post_serialize( + _param = self._v1_data_assurance_assurances_global_id_put_serialize( authorization=authorization, - v1_bwtracker_site_csv_post_request=v1_bwtracker_site_csv_post_request, + id=id, + v1_data_assurance_assurances_global_id_put_request=v1_data_assurance_assurances_global_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16533,7 +18219,7 @@ def v1_bwtracker_site_csv_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerSiteCsvPostResponse", + '200': "V1DataAssuranceAssurancesGlobalIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -16542,10 +18228,11 @@ def v1_bwtracker_site_csv_post_without_preload_content( return response_data.response - def _v1_bwtracker_site_csv_post_serialize( + def _v1_data_assurance_assurances_global_id_put_serialize( self, authorization, - v1_bwtracker_site_csv_post_request, + id, + v1_data_assurance_assurances_global_id_put_request, _request_auth, _content_type, _headers, @@ -16567,14 +18254,16 @@ def _v1_bwtracker_site_csv_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_bwtracker_site_csv_post_request is not None: - _body_params = v1_bwtracker_site_csv_post_request + if v1_data_assurance_assurances_global_id_put_request is not None: + _body_params = v1_data_assurance_assurances_global_id_put_request # set the HTTP header `Accept` @@ -16605,8 +18294,8 @@ def _v1_bwtracker_site_csv_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/bwtracker/site/csv', + method='PUT', + resource_path='/v1/data-assurance/assurances/global/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16623,10 +18312,10 @@ def _v1_bwtracker_site_csv_post_serialize( @validate_call - def v1_bwtracker_site_gateway_csv_post( + def v1_data_assurance_assurances_global_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest, + v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16639,14 +18328,15 @@ def v1_bwtracker_site_gateway_csv_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1BwtrackerSiteGatewayCsvPostResponse: - """v1_bwtracker_site_gateway_csv_post + ) -> V1DataAssuranceAssurancesGlobalPostResponse: + """v1_data_assurance_assurances_global_post + Configure a new assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_site_gateway_csv_post_request: (required) - :type v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest + :param v1_data_assurance_assurances_global_post_request: (required) + :type v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16669,9 +18359,9 @@ def v1_bwtracker_site_gateway_csv_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_site_gateway_csv_post_serialize( + _param = self._v1_data_assurance_assurances_global_post_serialize( authorization=authorization, - v1_bwtracker_site_gateway_csv_post_request=v1_bwtracker_site_gateway_csv_post_request, + v1_data_assurance_assurances_global_post_request=v1_data_assurance_assurances_global_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16679,7 +18369,7 @@ def v1_bwtracker_site_gateway_csv_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerSiteGatewayCsvPostResponse", + '200': "V1DataAssuranceAssurancesGlobalPostResponse", } response_data = self.api_client.call_api( *_param, @@ -16693,10 +18383,10 @@ def v1_bwtracker_site_gateway_csv_post( @validate_call - def v1_bwtracker_site_gateway_csv_post_with_http_info( + def v1_data_assurance_assurances_global_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest, + v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16709,14 +18399,15 @@ def v1_bwtracker_site_gateway_csv_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[V1BwtrackerSiteGatewayCsvPostResponse]: - """v1_bwtracker_site_gateway_csv_post + ) -> ApiResponse[V1DataAssuranceAssurancesGlobalPostResponse]: + """v1_data_assurance_assurances_global_post + Configure a new assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_site_gateway_csv_post_request: (required) - :type v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest + :param v1_data_assurance_assurances_global_post_request: (required) + :type v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16739,9 +18430,9 @@ def v1_bwtracker_site_gateway_csv_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_site_gateway_csv_post_serialize( + _param = self._v1_data_assurance_assurances_global_post_serialize( authorization=authorization, - v1_bwtracker_site_gateway_csv_post_request=v1_bwtracker_site_gateway_csv_post_request, + v1_data_assurance_assurances_global_post_request=v1_data_assurance_assurances_global_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16749,7 +18440,7 @@ def v1_bwtracker_site_gateway_csv_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerSiteGatewayCsvPostResponse", + '200': "V1DataAssuranceAssurancesGlobalPostResponse", } response_data = self.api_client.call_api( *_param, @@ -16763,10 +18454,10 @@ def v1_bwtracker_site_gateway_csv_post_with_http_info( @validate_call - def v1_bwtracker_site_gateway_csv_post_without_preload_content( + def v1_data_assurance_assurances_global_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest, + v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16780,13 +18471,14 @@ def v1_bwtracker_site_gateway_csv_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_bwtracker_site_gateway_csv_post + """v1_data_assurance_assurances_global_post + Configure a new assurance under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_bwtracker_site_gateway_csv_post_request: (required) - :type v1_bwtracker_site_gateway_csv_post_request: V1BwtrackerSiteGatewayCsvPostRequest + :param v1_data_assurance_assurances_global_post_request: (required) + :type v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -16809,9 +18501,9 @@ def v1_bwtracker_site_gateway_csv_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_bwtracker_site_gateway_csv_post_serialize( + _param = self._v1_data_assurance_assurances_global_post_serialize( authorization=authorization, - v1_bwtracker_site_gateway_csv_post_request=v1_bwtracker_site_gateway_csv_post_request, + v1_data_assurance_assurances_global_post_request=v1_data_assurance_assurances_global_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16819,7 +18511,7 @@ def v1_bwtracker_site_gateway_csv_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1BwtrackerSiteGatewayCsvPostResponse", + '200': "V1DataAssuranceAssurancesGlobalPostResponse", } response_data = self.api_client.call_api( *_param, @@ -16828,10 +18520,10 @@ def v1_bwtracker_site_gateway_csv_post_without_preload_content( return response_data.response - def _v1_bwtracker_site_gateway_csv_post_serialize( + def _v1_data_assurance_assurances_global_post_serialize( self, authorization, - v1_bwtracker_site_gateway_csv_post_request, + v1_data_assurance_assurances_global_post_request, _request_auth, _content_type, _headers, @@ -16859,8 +18551,8 @@ def _v1_bwtracker_site_gateway_csv_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_bwtracker_site_gateway_csv_post_request is not None: - _body_params = v1_bwtracker_site_gateway_csv_post_request + if v1_data_assurance_assurances_global_post_request is not None: + _body_params = v1_data_assurance_assurances_global_post_request # set the HTTP header `Accept` @@ -16892,7 +18584,7 @@ def _v1_bwtracker_site_gateway_csv_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/bwtracker/site/gateway/csv', + resource_path='/v1/data-assurance/assurances/global', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -16909,10 +18601,9 @@ def _v1_bwtracker_site_gateway_csv_post_serialize( @validate_call - def v1_data_assurance_assurances_applications_bucket_app_name_get( + def v1_data_assurance_flex_algos_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - bucket_app_name: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16925,15 +18616,13 @@ def v1_data_assurance_assurances_applications_bucket_app_name_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse: - """v1_data_assurance_assurances_applications_bucket_app_name_get + ) -> V1DataAssuranceFlexAlgosGetResponse: + """v1_data_assurance_flex_algos_get - Gets the assurance details for all edges under the current enterprise + Get all configurable flex algos under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param bucket_app_name: (required) - :type bucket_app_name: 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 @@ -16956,9 +18645,8 @@ def v1_data_assurance_assurances_applications_bucket_app_name_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_applications_bucket_app_name_get_serialize( + _param = self._v1_data_assurance_flex_algos_get_serialize( authorization=authorization, - bucket_app_name=bucket_app_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -16966,7 +18654,7 @@ def v1_data_assurance_assurances_applications_bucket_app_name_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse", + '200': "V1DataAssuranceFlexAlgosGetResponse", } response_data = self.api_client.call_api( *_param, @@ -16980,10 +18668,9 @@ def v1_data_assurance_assurances_applications_bucket_app_name_get( @validate_call - def v1_data_assurance_assurances_applications_bucket_app_name_get_with_http_info( + def v1_data_assurance_flex_algos_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - bucket_app_name: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -16996,15 +18683,13 @@ def v1_data_assurance_assurances_applications_bucket_app_name_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[V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse]: - """v1_data_assurance_assurances_applications_bucket_app_name_get + ) -> ApiResponse[V1DataAssuranceFlexAlgosGetResponse]: + """v1_data_assurance_flex_algos_get - Gets the assurance details for all edges under the current enterprise + Get all configurable flex algos under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param bucket_app_name: (required) - :type bucket_app_name: 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 @@ -17027,9 +18712,8 @@ def v1_data_assurance_assurances_applications_bucket_app_name_get_with_http_info :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_applications_bucket_app_name_get_serialize( + _param = self._v1_data_assurance_flex_algos_get_serialize( authorization=authorization, - bucket_app_name=bucket_app_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17037,7 +18721,7 @@ def v1_data_assurance_assurances_applications_bucket_app_name_get_with_http_info ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse", + '200': "V1DataAssuranceFlexAlgosGetResponse", } response_data = self.api_client.call_api( *_param, @@ -17051,10 +18735,9 @@ def v1_data_assurance_assurances_applications_bucket_app_name_get_with_http_info @validate_call - def v1_data_assurance_assurances_applications_bucket_app_name_get_without_preload_content( + def v1_data_assurance_flex_algos_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - bucket_app_name: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17068,14 +18751,12 @@ def v1_data_assurance_assurances_applications_bucket_app_name_get_without_preloa _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_data_assurance_assurances_applications_bucket_app_name_get + """v1_data_assurance_flex_algos_get - Gets the assurance details for all edges under the current enterprise + Get all configurable flex algos under the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param bucket_app_name: (required) - :type bucket_app_name: 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 @@ -17098,9 +18779,8 @@ def v1_data_assurance_assurances_applications_bucket_app_name_get_without_preloa :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_applications_bucket_app_name_get_serialize( + _param = self._v1_data_assurance_flex_algos_get_serialize( authorization=authorization, - bucket_app_name=bucket_app_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17108,7 +18788,7 @@ def v1_data_assurance_assurances_applications_bucket_app_name_get_without_preloa ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponse", + '200': "V1DataAssuranceFlexAlgosGetResponse", } response_data = self.api_client.call_api( *_param, @@ -17117,10 +18797,9 @@ def v1_data_assurance_assurances_applications_bucket_app_name_get_without_preloa return response_data.response - def _v1_data_assurance_assurances_applications_bucket_app_name_get_serialize( + def _v1_data_assurance_flex_algos_get_serialize( self, authorization, - bucket_app_name, _request_auth, _content_type, _headers, @@ -17142,8 +18821,6 @@ def _v1_data_assurance_assurances_applications_bucket_app_name_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if bucket_app_name is not None: - _path_params['bucketAppName'] = bucket_app_name # process the query parameters # process the header parameters if authorization is not None: @@ -17168,7 +18845,7 @@ def _v1_data_assurance_assurances_applications_bucket_app_name_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data-assurance/assurances/applications/{bucketAppName}', + resource_path='/v1/data-assurance/flex-algos', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17185,9 +18862,11 @@ def _v1_data_assurance_assurances_applications_bucket_app_name_get_serialize( @validate_call - def v1_data_assurance_assurances_global_get( + def v1_device_routing_bgp_nbrid_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17200,13 +18879,17 @@ def v1_data_assurance_assurances_global_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DataAssuranceAssurancesGlobalGetResponse: - """v1_data_assurance_assurances_global_get + ) -> V1DeviceRoutingBgpNbridGetResponse: + """v1_device_routing_bgp_nbrid_get - Get all assurances under the current enterprise + Get BGP Neighbor ID Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: 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 @@ -17229,8 +18912,10 @@ def v1_data_assurance_assurances_global_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_get_serialize( + _param = self._v1_device_routing_bgp_nbrid_get_serialize( authorization=authorization, + device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17238,7 +18923,7 @@ def v1_data_assurance_assurances_global_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalGetResponse", + '200': "V1DeviceRoutingBgpNbridGetResponse", } response_data = self.api_client.call_api( *_param, @@ -17252,9 +18937,11 @@ def v1_data_assurance_assurances_global_get( @validate_call - def v1_data_assurance_assurances_global_get_with_http_info( + def v1_device_routing_bgp_nbrid_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17267,13 +18954,17 @@ def v1_data_assurance_assurances_global_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[V1DataAssuranceAssurancesGlobalGetResponse]: - """v1_data_assurance_assurances_global_get + ) -> ApiResponse[V1DeviceRoutingBgpNbridGetResponse]: + """v1_device_routing_bgp_nbrid_get - Get all assurances under the current enterprise + Get BGP Neighbor ID Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: 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 @@ -17296,8 +18987,10 @@ def v1_data_assurance_assurances_global_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_get_serialize( + _param = self._v1_device_routing_bgp_nbrid_get_serialize( authorization=authorization, + device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17305,7 +18998,7 @@ def v1_data_assurance_assurances_global_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalGetResponse", + '200': "V1DeviceRoutingBgpNbridGetResponse", } response_data = self.api_client.call_api( *_param, @@ -17319,9 +19012,11 @@ def v1_data_assurance_assurances_global_get_with_http_info( @validate_call - def v1_data_assurance_assurances_global_get_without_preload_content( + def v1_device_routing_bgp_nbrid_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17335,12 +19030,16 @@ def v1_data_assurance_assurances_global_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_data_assurance_assurances_global_get + """v1_device_routing_bgp_nbrid_get - Get all assurances under the current enterprise + Get BGP Neighbor ID Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: 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 @@ -17363,8 +19062,10 @@ def v1_data_assurance_assurances_global_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_get_serialize( + _param = self._v1_device_routing_bgp_nbrid_get_serialize( authorization=authorization, + device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17372,7 +19073,7 @@ def v1_data_assurance_assurances_global_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalGetResponse", + '200': "V1DeviceRoutingBgpNbridGetResponse", } response_data = self.api_client.call_api( *_param, @@ -17381,9 +19082,11 @@ def v1_data_assurance_assurances_global_get_without_preload_content( return response_data.response - def _v1_data_assurance_assurances_global_get_serialize( + def _v1_device_routing_bgp_nbrid_get_serialize( self, authorization, + device_id, + vrf_name, _request_auth, _content_type, _headers, @@ -17406,6 +19109,14 @@ def _v1_data_assurance_assurances_global_get_serialize( # process the path parameters # process the query parameters + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + + if vrf_name is not None: + + _query_params.append(('vrfName', vrf_name)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -17429,7 +19140,7 @@ def _v1_data_assurance_assurances_global_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data-assurance/assurances/global', + resource_path='/v1/device/routing/bgp/nbrid', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17446,10 +19157,12 @@ def _v1_data_assurance_assurances_global_get_serialize( @validate_call - def v1_data_assurance_assurances_global_id_delete( + def v1_device_routing_bgp_nbrs_counters_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + address: Annotated[StrictStr, Field(description="BGP Nbr address")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17462,15 +19175,19 @@ def v1_data_assurance_assurances_global_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_data_assurance_assurances_global_id_delete + ) -> V1DeviceRoutingBgpNbrsCountersGetResponse: + """v1_device_routing_bgp_nbrs_counters_get - Delete an assurance under the current enterprise + Get BGP Neighbor Counters :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param address: BGP Nbr address (required) + :type address: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: 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 @@ -17493,9 +19210,11 @@ def v1_data_assurance_assurances_global_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_id_delete_serialize( + _param = self._v1_device_routing_bgp_nbrs_counters_get_serialize( authorization=authorization, - id=id, + address=address, + device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17503,7 +19222,7 @@ def v1_data_assurance_assurances_global_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DeviceRoutingBgpNbrsCountersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -17517,10 +19236,12 @@ def v1_data_assurance_assurances_global_id_delete( @validate_call - def v1_data_assurance_assurances_global_id_delete_with_http_info( + def v1_device_routing_bgp_nbrs_counters_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + address: Annotated[StrictStr, Field(description="BGP Nbr address")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17533,15 +19254,19 @@ def v1_data_assurance_assurances_global_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_data_assurance_assurances_global_id_delete + ) -> ApiResponse[V1DeviceRoutingBgpNbrsCountersGetResponse]: + """v1_device_routing_bgp_nbrs_counters_get - Delete an assurance under the current enterprise + Get BGP Neighbor Counters :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param address: BGP Nbr address (required) + :type address: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: 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 @@ -17564,9 +19289,11 @@ def v1_data_assurance_assurances_global_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_id_delete_serialize( + _param = self._v1_device_routing_bgp_nbrs_counters_get_serialize( authorization=authorization, - id=id, + address=address, + device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17574,7 +19301,7 @@ def v1_data_assurance_assurances_global_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DeviceRoutingBgpNbrsCountersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -17588,10 +19315,12 @@ def v1_data_assurance_assurances_global_id_delete_with_http_info( @validate_call - def v1_data_assurance_assurances_global_id_delete_without_preload_content( + def v1_device_routing_bgp_nbrs_counters_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + address: Annotated[StrictStr, Field(description="BGP Nbr address")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17605,14 +19334,18 @@ def v1_data_assurance_assurances_global_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_data_assurance_assurances_global_id_delete + """v1_device_routing_bgp_nbrs_counters_get - Delete an assurance under the current enterprise + Get BGP Neighbor Counters :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param address: BGP Nbr address (required) + :type address: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: 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 @@ -17635,9 +19368,11 @@ def v1_data_assurance_assurances_global_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_id_delete_serialize( + _param = self._v1_device_routing_bgp_nbrs_counters_get_serialize( authorization=authorization, - id=id, + address=address, + device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17645,7 +19380,7 @@ def v1_data_assurance_assurances_global_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DeviceRoutingBgpNbrsCountersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -17654,10 +19389,12 @@ def v1_data_assurance_assurances_global_id_delete_without_preload_content( return response_data.response - def _v1_data_assurance_assurances_global_id_delete_serialize( + def _v1_device_routing_bgp_nbrs_counters_get_serialize( self, authorization, - id, + address, + device_id, + vrf_name, _request_auth, _content_type, _headers, @@ -17679,9 +19416,19 @@ def _v1_data_assurance_assurances_global_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 address is not None: + + _query_params.append(('address', address)) + + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + + if vrf_name is not None: + + _query_params.append(('vrfName', vrf_name)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -17704,8 +19451,8 @@ def _v1_data_assurance_assurances_global_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/data-assurance/assurances/global/{id}', + method='GET', + resource_path='/v1/device/routing/bgp/nbrs/counters', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17722,10 +19469,13 @@ def _v1_data_assurance_assurances_global_id_delete_serialize( @validate_call - def v1_data_assurance_assurances_global_id_get( + def v1_device_routing_bgp_nbrs_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + address: Annotated[StrictStr, Field(description="BGP Nbr address")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17738,15 +19488,21 @@ def v1_data_assurance_assurances_global_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DataAssuranceAssurancesGlobalIdGetResponse: - """v1_data_assurance_assurances_global_id_get + ) -> V1DeviceRoutingBgpNbrsDetailsGetResponse: + """v1_device_routing_bgp_nbrs_details_get - Get the config for an assurance under the current enterprise + Get BGP Neighbor Details Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param address: BGP Nbr address (required) + :type address: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param interface: Interface name. Used in case of link local address + :type interface: 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 @@ -17769,9 +19525,12 @@ def v1_data_assurance_assurances_global_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_id_get_serialize( + _param = self._v1_device_routing_bgp_nbrs_details_get_serialize( authorization=authorization, - id=id, + address=address, + device_id=device_id, + vrf_name=vrf_name, + interface=interface, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17779,7 +19538,7 @@ def v1_data_assurance_assurances_global_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalIdGetResponse", + '200': "V1DeviceRoutingBgpNbrsDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -17793,10 +19552,13 @@ def v1_data_assurance_assurances_global_id_get( @validate_call - def v1_data_assurance_assurances_global_id_get_with_http_info( + def v1_device_routing_bgp_nbrs_details_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + address: Annotated[StrictStr, Field(description="BGP Nbr address")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17809,15 +19571,21 @@ def v1_data_assurance_assurances_global_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[V1DataAssuranceAssurancesGlobalIdGetResponse]: - """v1_data_assurance_assurances_global_id_get + ) -> ApiResponse[V1DeviceRoutingBgpNbrsDetailsGetResponse]: + """v1_device_routing_bgp_nbrs_details_get - Get the config for an assurance under the current enterprise + Get BGP Neighbor Details Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param address: BGP Nbr address (required) + :type address: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param interface: Interface name. Used in case of link local address + :type interface: 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 @@ -17840,9 +19608,12 @@ def v1_data_assurance_assurances_global_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_id_get_serialize( + _param = self._v1_device_routing_bgp_nbrs_details_get_serialize( authorization=authorization, - id=id, + address=address, + device_id=device_id, + vrf_name=vrf_name, + interface=interface, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17850,7 +19621,7 @@ def v1_data_assurance_assurances_global_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalIdGetResponse", + '200': "V1DeviceRoutingBgpNbrsDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -17864,10 +19635,13 @@ def v1_data_assurance_assurances_global_id_get_with_http_info( @validate_call - def v1_data_assurance_assurances_global_id_get_without_preload_content( + def v1_device_routing_bgp_nbrs_details_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, + address: Annotated[StrictStr, Field(description="BGP Nbr address")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -17881,14 +19655,20 @@ def v1_data_assurance_assurances_global_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_data_assurance_assurances_global_id_get + """v1_device_routing_bgp_nbrs_details_get - Get the config for an assurance under the current enterprise + Get BGP Neighbor Details Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int + :param address: BGP Nbr address (required) + :type address: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param interface: Interface name. Used in case of link local address + :type interface: 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 @@ -17911,9 +19691,12 @@ def v1_data_assurance_assurances_global_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_id_get_serialize( + _param = self._v1_device_routing_bgp_nbrs_details_get_serialize( authorization=authorization, - id=id, + address=address, + device_id=device_id, + vrf_name=vrf_name, + interface=interface, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -17921,7 +19704,7 @@ def v1_data_assurance_assurances_global_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalIdGetResponse", + '200': "V1DeviceRoutingBgpNbrsDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -17930,10 +19713,13 @@ def v1_data_assurance_assurances_global_id_get_without_preload_content( return response_data.response - def _v1_data_assurance_assurances_global_id_get_serialize( + def _v1_device_routing_bgp_nbrs_details_get_serialize( self, authorization, - id, + address, + device_id, + vrf_name, + interface, _request_auth, _content_type, _headers, @@ -17955,9 +19741,23 @@ def _v1_data_assurance_assurances_global_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if address is not None: + + _query_params.append(('address', address)) + + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + + if interface is not None: + + _query_params.append(('interface', interface)) + + if vrf_name is not None: + + _query_params.append(('vrfName', vrf_name)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -17981,7 +19781,7 @@ def _v1_data_assurance_assurances_global_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data-assurance/assurances/global/{id}', + resource_path='/v1/device/routing/bgp/nbrs/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -17998,11 +19798,13 @@ def _v1_data_assurance_assurances_global_id_get_serialize( @validate_call - def v1_data_assurance_assurances_global_id_put( + def v1_device_routing_bgp_nbrs_per_afi_prefix_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest, + address: Annotated[StrictStr, Field(description="BGP Nbr address")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18015,17 +19817,21 @@ def v1_data_assurance_assurances_global_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DataAssuranceAssurancesGlobalIdPutResponse: - """v1_data_assurance_assurances_global_id_put + ) -> V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse: + """v1_device_routing_bgp_nbrs_per_afi_prefix_get - Overwrite a pre-existing assurance under the current enterprise + Get BGP Neighbor Per Afi Prefix Counter :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param v1_data_assurance_assurances_global_id_put_request: (required) - :type v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest + :param address: BGP Nbr address (required) + :type address: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param interface: Interface name. Used in case of link local address + :type interface: 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 @@ -18048,10 +19854,12 @@ def v1_data_assurance_assurances_global_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_id_put_serialize( + _param = self._v1_device_routing_bgp_nbrs_per_afi_prefix_get_serialize( authorization=authorization, - id=id, - v1_data_assurance_assurances_global_id_put_request=v1_data_assurance_assurances_global_id_put_request, + address=address, + device_id=device_id, + vrf_name=vrf_name, + interface=interface, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18059,7 +19867,7 @@ def v1_data_assurance_assurances_global_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalIdPutResponse", + '200': "V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse", } response_data = self.api_client.call_api( *_param, @@ -18073,11 +19881,13 @@ def v1_data_assurance_assurances_global_id_put( @validate_call - def v1_data_assurance_assurances_global_id_put_with_http_info( + def v1_device_routing_bgp_nbrs_per_afi_prefix_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest, + address: Annotated[StrictStr, Field(description="BGP Nbr address")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18090,17 +19900,21 @@ def v1_data_assurance_assurances_global_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[V1DataAssuranceAssurancesGlobalIdPutResponse]: - """v1_data_assurance_assurances_global_id_put + ) -> ApiResponse[V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse]: + """v1_device_routing_bgp_nbrs_per_afi_prefix_get - Overwrite a pre-existing assurance under the current enterprise + Get BGP Neighbor Per Afi Prefix Counter :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param v1_data_assurance_assurances_global_id_put_request: (required) - :type v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest + :param address: BGP Nbr address (required) + :type address: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param interface: Interface name. Used in case of link local address + :type interface: 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 @@ -18123,10 +19937,12 @@ def v1_data_assurance_assurances_global_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_id_put_serialize( + _param = self._v1_device_routing_bgp_nbrs_per_afi_prefix_get_serialize( authorization=authorization, - id=id, - v1_data_assurance_assurances_global_id_put_request=v1_data_assurance_assurances_global_id_put_request, + address=address, + device_id=device_id, + vrf_name=vrf_name, + interface=interface, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18134,7 +19950,7 @@ def v1_data_assurance_assurances_global_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalIdPutResponse", + '200': "V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse", } response_data = self.api_client.call_api( *_param, @@ -18148,11 +19964,13 @@ def v1_data_assurance_assurances_global_id_put_with_http_info( @validate_call - def v1_data_assurance_assurances_global_id_put_without_preload_content( + def v1_device_routing_bgp_nbrs_per_afi_prefix_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, - v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest, + address: Annotated[StrictStr, Field(description="BGP Nbr address")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18166,16 +19984,20 @@ def v1_data_assurance_assurances_global_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_data_assurance_assurances_global_id_put + """v1_device_routing_bgp_nbrs_per_afi_prefix_get - Overwrite a pre-existing assurance under the current enterprise + Get BGP Neighbor Per Afi Prefix Counter :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param id: (required) - :type id: int - :param v1_data_assurance_assurances_global_id_put_request: (required) - :type v1_data_assurance_assurances_global_id_put_request: V1DataAssuranceAssurancesGlobalIdPutRequest + :param address: BGP Nbr address (required) + :type address: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param interface: Interface name. Used in case of link local address + :type interface: 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 @@ -18198,10 +20020,12 @@ def v1_data_assurance_assurances_global_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_id_put_serialize( + _param = self._v1_device_routing_bgp_nbrs_per_afi_prefix_get_serialize( authorization=authorization, - id=id, - v1_data_assurance_assurances_global_id_put_request=v1_data_assurance_assurances_global_id_put_request, + address=address, + device_id=device_id, + vrf_name=vrf_name, + interface=interface, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18209,7 +20033,7 @@ def v1_data_assurance_assurances_global_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalIdPutResponse", + '200': "V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse", } response_data = self.api_client.call_api( *_param, @@ -18218,11 +20042,13 @@ def v1_data_assurance_assurances_global_id_put_without_preload_content( return response_data.response - def _v1_data_assurance_assurances_global_id_put_serialize( + def _v1_device_routing_bgp_nbrs_per_afi_prefix_get_serialize( self, authorization, - id, - v1_data_assurance_assurances_global_id_put_request, + address, + device_id, + vrf_name, + interface, _request_auth, _content_type, _headers, @@ -18244,16 +20070,28 @@ def _v1_data_assurance_assurances_global_id_put_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters + if address is not None: + + _query_params.append(('address', address)) + + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + + if interface is not None: + + _query_params.append(('interface', interface)) + + if vrf_name is not None: + + _query_params.append(('vrfName', vrf_name)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_data_assurance_assurances_global_id_put_request is not None: - _body_params = v1_data_assurance_assurances_global_id_put_request # set the HTTP header `Accept` @@ -18264,19 +20102,6 @@ def _v1_data_assurance_assurances_global_id_put_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -18284,8 +20109,8 @@ def _v1_data_assurance_assurances_global_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/data-assurance/assurances/global/{id}', + method='GET', + resource_path='/v1/device/routing/bgp/nbrs/per-afi-prefix', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18302,10 +20127,11 @@ def _v1_data_assurance_assurances_global_id_put_serialize( @validate_call - def v1_data_assurance_assurances_global_post( + def v1_device_routing_odp_nbrid_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest, + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18318,15 +20144,17 @@ def v1_data_assurance_assurances_global_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DataAssuranceAssurancesGlobalPostResponse: - """v1_data_assurance_assurances_global_post + ) -> V1DeviceRoutingOdpNbridGetResponse: + """v1_device_routing_odp_nbrid_get - Configure a new assurance under the current enterprise + Get BGP Neighbor addresses from ODP server :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_data_assurance_assurances_global_post_request: (required) - :type v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: 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 @@ -18349,9 +20177,10 @@ def v1_data_assurance_assurances_global_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_post_serialize( + _param = self._v1_device_routing_odp_nbrid_get_serialize( authorization=authorization, - v1_data_assurance_assurances_global_post_request=v1_data_assurance_assurances_global_post_request, + device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18359,7 +20188,7 @@ def v1_data_assurance_assurances_global_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalPostResponse", + '200': "V1DeviceRoutingOdpNbridGetResponse", } response_data = self.api_client.call_api( *_param, @@ -18373,10 +20202,11 @@ def v1_data_assurance_assurances_global_post( @validate_call - def v1_data_assurance_assurances_global_post_with_http_info( + def v1_device_routing_odp_nbrid_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest, + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18389,15 +20219,17 @@ def v1_data_assurance_assurances_global_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[V1DataAssuranceAssurancesGlobalPostResponse]: - """v1_data_assurance_assurances_global_post + ) -> ApiResponse[V1DeviceRoutingOdpNbridGetResponse]: + """v1_device_routing_odp_nbrid_get - Configure a new assurance under the current enterprise + Get BGP Neighbor addresses from ODP server :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_data_assurance_assurances_global_post_request: (required) - :type v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: 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 @@ -18420,9 +20252,10 @@ def v1_data_assurance_assurances_global_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_post_serialize( + _param = self._v1_device_routing_odp_nbrid_get_serialize( authorization=authorization, - v1_data_assurance_assurances_global_post_request=v1_data_assurance_assurances_global_post_request, + device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18430,7 +20263,7 @@ def v1_data_assurance_assurances_global_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalPostResponse", + '200': "V1DeviceRoutingOdpNbridGetResponse", } response_data = self.api_client.call_api( *_param, @@ -18444,10 +20277,11 @@ def v1_data_assurance_assurances_global_post_with_http_info( @validate_call - def v1_data_assurance_assurances_global_post_without_preload_content( + def v1_device_routing_odp_nbrid_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest, + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18461,14 +20295,16 @@ def v1_data_assurance_assurances_global_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_data_assurance_assurances_global_post + """v1_device_routing_odp_nbrid_get - Configure a new assurance under the current enterprise + Get BGP Neighbor addresses from ODP server :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_data_assurance_assurances_global_post_request: (required) - :type v1_data_assurance_assurances_global_post_request: V1DataAssuranceAssurancesGlobalPostRequest + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: 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 @@ -18491,9 +20327,10 @@ def v1_data_assurance_assurances_global_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_assurances_global_post_serialize( + _param = self._v1_device_routing_odp_nbrid_get_serialize( authorization=authorization, - v1_data_assurance_assurances_global_post_request=v1_data_assurance_assurances_global_post_request, + device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18501,7 +20338,7 @@ def v1_data_assurance_assurances_global_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceAssurancesGlobalPostResponse", + '200': "V1DeviceRoutingOdpNbridGetResponse", } response_data = self.api_client.call_api( *_param, @@ -18510,10 +20347,11 @@ def v1_data_assurance_assurances_global_post_without_preload_content( return response_data.response - def _v1_data_assurance_assurances_global_post_serialize( + def _v1_device_routing_odp_nbrid_get_serialize( self, authorization, - v1_data_assurance_assurances_global_post_request, + device_id, + vrf_name, _request_auth, _content_type, _headers, @@ -18536,13 +20374,19 @@ def _v1_data_assurance_assurances_global_post_serialize( # process the path parameters # process the query parameters + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + + if vrf_name is not None: + + _query_params.append(('vrfName', vrf_name)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_data_assurance_assurances_global_post_request is not None: - _body_params = v1_data_assurance_assurances_global_post_request # set the HTTP header `Accept` @@ -18553,19 +20397,6 @@ def _v1_data_assurance_assurances_global_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] = [ @@ -18573,8 +20404,8 @@ def _v1_data_assurance_assurances_global_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/data-assurance/assurances/global', + method='GET', + resource_path='/v1/device/routing/odp/nbrid', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18591,9 +20422,13 @@ def _v1_data_assurance_assurances_global_post_serialize( @validate_call - def v1_data_assurance_flex_algos_get( + def v1_device_routing_ospfv2_area_interface_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18606,13 +20441,21 @@ def v1_data_assurance_flex_algos_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DataAssuranceFlexAlgosGetResponse: - """v1_data_assurance_flex_algos_get + ) -> V1DeviceRoutingOspfv2AreaInterfaceGetResponse: + """v1_device_routing_ospfv2_area_interface_get - Get all configurable flex algos under the current enterprise + Get OSPFv2 Area's Interface specific Information :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param area_id: Valid configured Area ID (required) + :type area_id: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -18635,8 +20478,12 @@ def v1_data_assurance_flex_algos_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_flex_algos_get_serialize( + _param = self._v1_device_routing_ospfv2_area_interface_get_serialize( authorization=authorization, + area_id=area_id, + device_id=device_id, + vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18644,7 +20491,7 @@ def v1_data_assurance_flex_algos_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceFlexAlgosGetResponse", + '200': "V1DeviceRoutingOspfv2AreaInterfaceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -18658,9 +20505,13 @@ def v1_data_assurance_flex_algos_get( @validate_call - def v1_data_assurance_flex_algos_get_with_http_info( + def v1_device_routing_ospfv2_area_interface_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18673,13 +20524,21 @@ def v1_data_assurance_flex_algos_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[V1DataAssuranceFlexAlgosGetResponse]: - """v1_data_assurance_flex_algos_get + ) -> ApiResponse[V1DeviceRoutingOspfv2AreaInterfaceGetResponse]: + """v1_device_routing_ospfv2_area_interface_get - Get all configurable flex algos under the current enterprise + Get OSPFv2 Area's Interface specific Information :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param area_id: Valid configured Area ID (required) + :type area_id: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -18702,8 +20561,12 @@ def v1_data_assurance_flex_algos_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_flex_algos_get_serialize( + _param = self._v1_device_routing_ospfv2_area_interface_get_serialize( authorization=authorization, + area_id=area_id, + device_id=device_id, + vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18711,7 +20574,7 @@ def v1_data_assurance_flex_algos_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceFlexAlgosGetResponse", + '200': "V1DeviceRoutingOspfv2AreaInterfaceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -18725,9 +20588,13 @@ def v1_data_assurance_flex_algos_get_with_http_info( @validate_call - def v1_data_assurance_flex_algos_get_without_preload_content( + def v1_device_routing_ospfv2_area_interface_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18741,12 +20608,20 @@ def v1_data_assurance_flex_algos_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_data_assurance_flex_algos_get + """v1_device_routing_ospfv2_area_interface_get - Get all configurable flex algos under the current enterprise + Get OSPFv2 Area's Interface specific Information :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param area_id: Valid configured Area ID (required) + :type area_id: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -18769,8 +20644,12 @@ def v1_data_assurance_flex_algos_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_data_assurance_flex_algos_get_serialize( + _param = self._v1_device_routing_ospfv2_area_interface_get_serialize( authorization=authorization, + area_id=area_id, + device_id=device_id, + vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18778,7 +20657,7 @@ def v1_data_assurance_flex_algos_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DataAssuranceFlexAlgosGetResponse", + '200': "V1DeviceRoutingOspfv2AreaInterfaceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -18787,9 +20666,13 @@ def v1_data_assurance_flex_algos_get_without_preload_content( return response_data.response - def _v1_data_assurance_flex_algos_get_serialize( + def _v1_device_routing_ospfv2_area_interface_get_serialize( self, authorization, + area_id, + device_id, + vrf_name, + instance_name, _request_auth, _content_type, _headers, @@ -18812,6 +20695,22 @@ def _v1_data_assurance_flex_algos_get_serialize( # process the path parameters # process the query parameters + if area_id is not None: + + _query_params.append(('areaId', area_id)) + + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + + if instance_name is not None: + + _query_params.append(('instanceName', instance_name)) + + if vrf_name is not None: + + _query_params.append(('vrfName', vrf_name)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -18835,7 +20734,7 @@ def _v1_data_assurance_flex_algos_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/data-assurance/flex-algos', + resource_path='/v1/device/routing/ospfv2/area/interface', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -18852,11 +20751,14 @@ def _v1_data_assurance_flex_algos_get_serialize( @validate_call - def v1_device_routing_bgp_nbrid_get( + def v1_device_routing_ospfv2_area_interface_nbrid_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + interface_id: Annotated[StrictStr, Field(description="Valid configured Interface name")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18869,17 +20771,23 @@ def v1_device_routing_bgp_nbrid_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingBgpNbridGetResponse: - """v1_device_routing_bgp_nbrid_get + ) -> V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse: + """v1_device_routing_ospfv2_area_interface_nbrid_get - Get BGP Neighbor ID Table + Get OSPFv2 Area's interface's Nbr ID table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int + :param interface_id: Valid configured Interface name (required) + :type interface_id: str :param vrf_name: Valid configured VRF name (required) :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -18902,10 +20810,13 @@ def v1_device_routing_bgp_nbrid_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrid_get_serialize( + _param = self._v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( authorization=authorization, + area_id=area_id, device_id=device_id, + interface_id=interface_id, vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18913,7 +20824,7 @@ def v1_device_routing_bgp_nbrid_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbridGetResponse", + '200': "V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse", } response_data = self.api_client.call_api( *_param, @@ -18927,11 +20838,14 @@ def v1_device_routing_bgp_nbrid_get( @validate_call - def v1_device_routing_bgp_nbrid_get_with_http_info( + def v1_device_routing_ospfv2_area_interface_nbrid_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + interface_id: Annotated[StrictStr, Field(description="Valid configured Interface name")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -18944,17 +20858,23 @@ def v1_device_routing_bgp_nbrid_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[V1DeviceRoutingBgpNbridGetResponse]: - """v1_device_routing_bgp_nbrid_get + ) -> ApiResponse[V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse]: + """v1_device_routing_ospfv2_area_interface_nbrid_get - Get BGP Neighbor ID Table + Get OSPFv2 Area's interface's Nbr ID table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int + :param interface_id: Valid configured Interface name (required) + :type interface_id: str :param vrf_name: Valid configured VRF name (required) :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -18977,10 +20897,13 @@ def v1_device_routing_bgp_nbrid_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrid_get_serialize( + _param = self._v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( authorization=authorization, + area_id=area_id, device_id=device_id, + interface_id=interface_id, vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -18988,7 +20911,7 @@ def v1_device_routing_bgp_nbrid_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbridGetResponse", + '200': "V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse", } response_data = self.api_client.call_api( *_param, @@ -19002,11 +20925,14 @@ def v1_device_routing_bgp_nbrid_get_with_http_info( @validate_call - def v1_device_routing_bgp_nbrid_get_without_preload_content( + def v1_device_routing_ospfv2_area_interface_nbrid_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + interface_id: Annotated[StrictStr, Field(description="Valid configured Interface name")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19020,16 +20946,22 @@ def v1_device_routing_bgp_nbrid_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_bgp_nbrid_get + """v1_device_routing_ospfv2_area_interface_nbrid_get - Get BGP Neighbor ID Table + Get OSPFv2 Area's interface's Nbr ID table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int + :param interface_id: Valid configured Interface name (required) + :type interface_id: str :param vrf_name: Valid configured VRF name (required) :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -19052,10 +20984,13 @@ def v1_device_routing_bgp_nbrid_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrid_get_serialize( + _param = self._v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( authorization=authorization, + area_id=area_id, device_id=device_id, + interface_id=interface_id, vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19063,7 +20998,7 @@ def v1_device_routing_bgp_nbrid_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbridGetResponse", + '200': "V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse", } response_data = self.api_client.call_api( *_param, @@ -19072,11 +21007,14 @@ def v1_device_routing_bgp_nbrid_get_without_preload_content( return response_data.response - def _v1_device_routing_bgp_nbrid_get_serialize( + def _v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( self, authorization, + area_id, device_id, + interface_id, vrf_name, + instance_name, _request_auth, _content_type, _headers, @@ -19099,10 +21037,22 @@ def _v1_device_routing_bgp_nbrid_get_serialize( # process the path parameters # process the query parameters + if area_id is not None: + + _query_params.append(('areaId', area_id)) + if device_id is not None: _query_params.append(('deviceId', device_id)) + if instance_name is not None: + + _query_params.append(('instanceName', instance_name)) + + if interface_id is not None: + + _query_params.append(('interfaceId', interface_id)) + if vrf_name is not None: _query_params.append(('vrfName', vrf_name)) @@ -19130,7 +21080,7 @@ def _v1_device_routing_bgp_nbrid_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/bgp/nbrid', + resource_path='/v1/device/routing/ospfv2/area/interface/nbrid', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19147,11 +21097,12 @@ def _v1_device_routing_bgp_nbrid_get_serialize( @validate_call - def v1_device_routing_bgp_nbrs_counters_get( + def v1_device_routing_ospfv2_area_lsdb_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - address: Annotated[StrictStr, Field(description="BGP Nbr address")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, @@ -19165,17 +21116,19 @@ def v1_device_routing_bgp_nbrs_counters_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingBgpNbrsCountersGetResponse: - """v1_device_routing_bgp_nbrs_counters_get + ) -> V1DeviceRoutingOspfv2AreaLsdbGetResponse: + """v1_device_routing_ospfv2_area_lsdb_get - Get BGP Neighbor Counters + Get OSPFv2 Area specific LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param address: BGP Nbr address (required) - :type address: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int + :param instance_name: Valid configured OSPF Instance name (required) + :type instance_name: str :param vrf_name: Valid configured VRF name (required) :type vrf_name: str :param _request_timeout: timeout setting for this request. If one @@ -19200,10 +21153,11 @@ def v1_device_routing_bgp_nbrs_counters_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrs_counters_get_serialize( + _param = self._v1_device_routing_ospfv2_area_lsdb_get_serialize( authorization=authorization, - address=address, + area_id=area_id, device_id=device_id, + instance_name=instance_name, vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, @@ -19212,7 +21166,7 @@ def v1_device_routing_bgp_nbrs_counters_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbrsCountersGetResponse", + '200': "V1DeviceRoutingOspfv2AreaLsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -19226,11 +21180,12 @@ def v1_device_routing_bgp_nbrs_counters_get( @validate_call - def v1_device_routing_bgp_nbrs_counters_get_with_http_info( + def v1_device_routing_ospfv2_area_lsdb_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - address: Annotated[StrictStr, Field(description="BGP Nbr address")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, @@ -19244,17 +21199,19 @@ def v1_device_routing_bgp_nbrs_counters_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[V1DeviceRoutingBgpNbrsCountersGetResponse]: - """v1_device_routing_bgp_nbrs_counters_get + ) -> ApiResponse[V1DeviceRoutingOspfv2AreaLsdbGetResponse]: + """v1_device_routing_ospfv2_area_lsdb_get - Get BGP Neighbor Counters + Get OSPFv2 Area specific LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param address: BGP Nbr address (required) - :type address: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int + :param instance_name: Valid configured OSPF Instance name (required) + :type instance_name: str :param vrf_name: Valid configured VRF name (required) :type vrf_name: str :param _request_timeout: timeout setting for this request. If one @@ -19279,10 +21236,11 @@ def v1_device_routing_bgp_nbrs_counters_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrs_counters_get_serialize( + _param = self._v1_device_routing_ospfv2_area_lsdb_get_serialize( authorization=authorization, - address=address, + area_id=area_id, device_id=device_id, + instance_name=instance_name, vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, @@ -19291,7 +21249,7 @@ def v1_device_routing_bgp_nbrs_counters_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbrsCountersGetResponse", + '200': "V1DeviceRoutingOspfv2AreaLsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -19305,11 +21263,12 @@ def v1_device_routing_bgp_nbrs_counters_get_with_http_info( @validate_call - def v1_device_routing_bgp_nbrs_counters_get_without_preload_content( + def v1_device_routing_ospfv2_area_lsdb_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - address: Annotated[StrictStr, Field(description="BGP Nbr address")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], _request_timeout: Union[ None, @@ -19324,16 +21283,18 @@ def v1_device_routing_bgp_nbrs_counters_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_bgp_nbrs_counters_get + """v1_device_routing_ospfv2_area_lsdb_get - Get BGP Neighbor Counters + Get OSPFv2 Area specific LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param address: BGP Nbr address (required) - :type address: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int + :param instance_name: Valid configured OSPF Instance name (required) + :type instance_name: str :param vrf_name: Valid configured VRF name (required) :type vrf_name: str :param _request_timeout: timeout setting for this request. If one @@ -19358,10 +21319,11 @@ def v1_device_routing_bgp_nbrs_counters_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrs_counters_get_serialize( + _param = self._v1_device_routing_ospfv2_area_lsdb_get_serialize( authorization=authorization, - address=address, + area_id=area_id, device_id=device_id, + instance_name=instance_name, vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, @@ -19370,7 +21332,7 @@ def v1_device_routing_bgp_nbrs_counters_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbrsCountersGetResponse", + '200': "V1DeviceRoutingOspfv2AreaLsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -19379,11 +21341,12 @@ def v1_device_routing_bgp_nbrs_counters_get_without_preload_content( return response_data.response - def _v1_device_routing_bgp_nbrs_counters_get_serialize( + def _v1_device_routing_ospfv2_area_lsdb_get_serialize( self, authorization, - address, + area_id, device_id, + instance_name, vrf_name, _request_auth, _content_type, @@ -19407,14 +21370,18 @@ def _v1_device_routing_bgp_nbrs_counters_get_serialize( # process the path parameters # process the query parameters - if address is not None: + if area_id is not None: - _query_params.append(('address', address)) + _query_params.append(('areaId', area_id)) if device_id is not None: _query_params.append(('deviceId', device_id)) + if instance_name is not None: + + _query_params.append(('instanceName', instance_name)) + if vrf_name is not None: _query_params.append(('vrfName', vrf_name)) @@ -19442,7 +21409,7 @@ def _v1_device_routing_bgp_nbrs_counters_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/bgp/nbrs/counters', + resource_path='/v1/device/routing/ospfv2/area/lsdb', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19459,13 +21426,13 @@ def _v1_device_routing_bgp_nbrs_counters_get_serialize( @validate_call - def v1_device_routing_bgp_nbrs_details_get( + def v1_device_routing_ospfv2_area_nbr_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - address: Annotated[StrictStr, Field(description="BGP Nbr address")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19478,21 +21445,21 @@ def v1_device_routing_bgp_nbrs_details_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingBgpNbrsDetailsGetResponse: - """v1_device_routing_bgp_nbrs_details_get + ) -> V1DeviceRoutingOspfv2AreaNbrGetResponse: + """v1_device_routing_ospfv2_area_nbr_get - Get BGP Neighbor Details Table + Get OSPFv2 Area's Neighbors Information :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param address: BGP Nbr address (required) - :type address: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str - :param interface: Interface name. Used in case of link local address - :type interface: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -19515,12 +21482,12 @@ def v1_device_routing_bgp_nbrs_details_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrs_details_get_serialize( + _param = self._v1_device_routing_ospfv2_area_nbr_get_serialize( authorization=authorization, - address=address, + area_id=area_id, device_id=device_id, vrf_name=vrf_name, - interface=interface, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19528,7 +21495,7 @@ def v1_device_routing_bgp_nbrs_details_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbrsDetailsGetResponse", + '200': "V1DeviceRoutingOspfv2AreaNbrGetResponse", } response_data = self.api_client.call_api( *_param, @@ -19542,13 +21509,13 @@ def v1_device_routing_bgp_nbrs_details_get( @validate_call - def v1_device_routing_bgp_nbrs_details_get_with_http_info( + def v1_device_routing_ospfv2_area_nbr_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - address: Annotated[StrictStr, Field(description="BGP Nbr address")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19561,21 +21528,21 @@ def v1_device_routing_bgp_nbrs_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[V1DeviceRoutingBgpNbrsDetailsGetResponse]: - """v1_device_routing_bgp_nbrs_details_get + ) -> ApiResponse[V1DeviceRoutingOspfv2AreaNbrGetResponse]: + """v1_device_routing_ospfv2_area_nbr_get - Get BGP Neighbor Details Table + Get OSPFv2 Area's Neighbors Information :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param address: BGP Nbr address (required) - :type address: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str - :param interface: Interface name. Used in case of link local address - :type interface: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -19598,12 +21565,12 @@ def v1_device_routing_bgp_nbrs_details_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrs_details_get_serialize( + _param = self._v1_device_routing_ospfv2_area_nbr_get_serialize( authorization=authorization, - address=address, + area_id=area_id, device_id=device_id, vrf_name=vrf_name, - interface=interface, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19611,7 +21578,7 @@ def v1_device_routing_bgp_nbrs_details_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbrsDetailsGetResponse", + '200': "V1DeviceRoutingOspfv2AreaNbrGetResponse", } response_data = self.api_client.call_api( *_param, @@ -19625,13 +21592,13 @@ def v1_device_routing_bgp_nbrs_details_get_with_http_info( @validate_call - def v1_device_routing_bgp_nbrs_details_get_without_preload_content( + def v1_device_routing_ospfv2_area_nbr_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - address: Annotated[StrictStr, Field(description="BGP Nbr address")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19645,20 +21612,20 @@ def v1_device_routing_bgp_nbrs_details_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_bgp_nbrs_details_get + """v1_device_routing_ospfv2_area_nbr_get - Get BGP Neighbor Details Table + Get OSPFv2 Area's Neighbors Information :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param address: BGP Nbr address (required) - :type address: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str - :param interface: Interface name. Used in case of link local address - :type interface: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -19681,12 +21648,12 @@ def v1_device_routing_bgp_nbrs_details_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrs_details_get_serialize( + _param = self._v1_device_routing_ospfv2_area_nbr_get_serialize( authorization=authorization, - address=address, + area_id=area_id, device_id=device_id, vrf_name=vrf_name, - interface=interface, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19694,7 +21661,7 @@ def v1_device_routing_bgp_nbrs_details_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbrsDetailsGetResponse", + '200': "V1DeviceRoutingOspfv2AreaNbrGetResponse", } response_data = self.api_client.call_api( *_param, @@ -19703,13 +21670,13 @@ def v1_device_routing_bgp_nbrs_details_get_without_preload_content( return response_data.response - def _v1_device_routing_bgp_nbrs_details_get_serialize( + def _v1_device_routing_ospfv2_area_nbr_get_serialize( self, authorization, - address, + area_id, device_id, vrf_name, - interface, + instance_name, _request_auth, _content_type, _headers, @@ -19732,17 +21699,17 @@ def _v1_device_routing_bgp_nbrs_details_get_serialize( # process the path parameters # process the query parameters - if address is not None: + if area_id is not None: - _query_params.append(('address', address)) + _query_params.append(('areaId', area_id)) if device_id is not None: _query_params.append(('deviceId', device_id)) - if interface is not None: + if instance_name is not None: - _query_params.append(('interface', interface)) + _query_params.append(('instanceName', instance_name)) if vrf_name is not None: @@ -19771,7 +21738,7 @@ def _v1_device_routing_bgp_nbrs_details_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/bgp/nbrs/details', + resource_path='/v1/device/routing/ospfv2/area/nbr', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -19788,13 +21755,12 @@ def _v1_device_routing_bgp_nbrs_details_get_serialize( @validate_call - def v1_device_routing_bgp_nbrs_per_afi_prefix_get( + def v1_device_routing_ospfv2_areaid_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - address: Annotated[StrictStr, Field(description="BGP Nbr address")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19807,21 +21773,19 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse: - """v1_device_routing_bgp_nbrs_per_afi_prefix_get + ) -> V1DeviceRoutingOspfv2AreaidGetResponse: + """v1_device_routing_ospfv2_areaid_get - Get BGP Neighbor Per Afi Prefix Counter + Get OSPFv2 Area ID Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param address: BGP Nbr address (required) - :type address: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str - :param interface: Interface name. Used in case of link local address - :type interface: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -19844,12 +21808,11 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrs_per_afi_prefix_get_serialize( + _param = self._v1_device_routing_ospfv2_areaid_get_serialize( authorization=authorization, - address=address, device_id=device_id, vrf_name=vrf_name, - interface=interface, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19857,7 +21820,7 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse", + '200': "V1DeviceRoutingOspfv2AreaidGetResponse", } response_data = self.api_client.call_api( *_param, @@ -19871,13 +21834,12 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_get( @validate_call - def v1_device_routing_bgp_nbrs_per_afi_prefix_get_with_http_info( + def v1_device_routing_ospfv2_areaid_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - address: Annotated[StrictStr, Field(description="BGP Nbr address")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19890,21 +21852,19 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_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[V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse]: - """v1_device_routing_bgp_nbrs_per_afi_prefix_get + ) -> ApiResponse[V1DeviceRoutingOspfv2AreaidGetResponse]: + """v1_device_routing_ospfv2_areaid_get - Get BGP Neighbor Per Afi Prefix Counter + Get OSPFv2 Area ID Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param address: BGP Nbr address (required) - :type address: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str - :param interface: Interface name. Used in case of link local address - :type interface: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -19927,12 +21887,11 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrs_per_afi_prefix_get_serialize( + _param = self._v1_device_routing_ospfv2_areaid_get_serialize( authorization=authorization, - address=address, device_id=device_id, vrf_name=vrf_name, - interface=interface, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -19940,7 +21899,7 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse", + '200': "V1DeviceRoutingOspfv2AreaidGetResponse", } response_data = self.api_client.call_api( *_param, @@ -19954,13 +21913,12 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_get_with_http_info( @validate_call - def v1_device_routing_bgp_nbrs_per_afi_prefix_get_without_preload_content( + def v1_device_routing_ospfv2_areaid_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - address: Annotated[StrictStr, Field(description="BGP Nbr address")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - interface: Annotated[Optional[StrictStr], Field(description="Interface name. Used in case of link local address")] = None, + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -19974,20 +21932,18 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_bgp_nbrs_per_afi_prefix_get + """v1_device_routing_ospfv2_areaid_get - Get BGP Neighbor Per Afi Prefix Counter + Get OSPFv2 Area ID Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param address: BGP Nbr address (required) - :type address: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str - :param interface: Interface name. Used in case of link local address - :type interface: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -20010,12 +21966,11 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_bgp_nbrs_per_afi_prefix_get_serialize( + _param = self._v1_device_routing_ospfv2_areaid_get_serialize( authorization=authorization, - address=address, device_id=device_id, vrf_name=vrf_name, - interface=interface, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20023,7 +21978,7 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingBgpNbrsPerAfiPrefixGetResponse", + '200': "V1DeviceRoutingOspfv2AreaidGetResponse", } response_data = self.api_client.call_api( *_param, @@ -20032,13 +21987,12 @@ def v1_device_routing_bgp_nbrs_per_afi_prefix_get_without_preload_content( return response_data.response - def _v1_device_routing_bgp_nbrs_per_afi_prefix_get_serialize( + def _v1_device_routing_ospfv2_areaid_get_serialize( self, authorization, - address, device_id, vrf_name, - interface, + instance_name, _request_auth, _content_type, _headers, @@ -20061,17 +22015,13 @@ def _v1_device_routing_bgp_nbrs_per_afi_prefix_get_serialize( # process the path parameters # process the query parameters - if address is not None: - - _query_params.append(('address', address)) - if device_id is not None: _query_params.append(('deviceId', device_id)) - if interface is not None: + if instance_name is not None: - _query_params.append(('interface', interface)) + _query_params.append(('instanceName', instance_name)) if vrf_name is not None: @@ -20100,7 +22050,7 @@ def _v1_device_routing_bgp_nbrs_per_afi_prefix_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/bgp/nbrs/per-afi-prefix', + resource_path='/v1/device/routing/ospfv2/areaid', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20117,11 +22067,12 @@ def _v1_device_routing_bgp_nbrs_per_afi_prefix_get_serialize( @validate_call - def v1_device_routing_odp_nbrid_get( + def v1_device_routing_ospfv2_lsdb_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20134,10 +22085,10 @@ def v1_device_routing_odp_nbrid_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOdpNbridGetResponse: - """v1_device_routing_odp_nbrid_get + ) -> V1DeviceRoutingOspfv2LsdbGetResponse: + """v1_device_routing_ospfv2_lsdb_get - Get BGP Neighbor addresses from ODP server + Get OSPFv2 global LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -20145,6 +22096,8 @@ def v1_device_routing_odp_nbrid_get( :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -20167,10 +22120,11 @@ def v1_device_routing_odp_nbrid_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_odp_nbrid_get_serialize( + _param = self._v1_device_routing_ospfv2_lsdb_get_serialize( authorization=authorization, device_id=device_id, vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20178,7 +22132,7 @@ def v1_device_routing_odp_nbrid_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOdpNbridGetResponse", + '200': "V1DeviceRoutingOspfv2LsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -20192,11 +22146,12 @@ def v1_device_routing_odp_nbrid_get( @validate_call - def v1_device_routing_odp_nbrid_get_with_http_info( + def v1_device_routing_ospfv2_lsdb_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20209,10 +22164,10 @@ def v1_device_routing_odp_nbrid_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[V1DeviceRoutingOdpNbridGetResponse]: - """v1_device_routing_odp_nbrid_get + ) -> ApiResponse[V1DeviceRoutingOspfv2LsdbGetResponse]: + """v1_device_routing_ospfv2_lsdb_get - Get BGP Neighbor addresses from ODP server + Get OSPFv2 global LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -20220,6 +22175,8 @@ def v1_device_routing_odp_nbrid_get_with_http_info( :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -20242,10 +22199,11 @@ def v1_device_routing_odp_nbrid_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_odp_nbrid_get_serialize( + _param = self._v1_device_routing_ospfv2_lsdb_get_serialize( authorization=authorization, device_id=device_id, vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20253,7 +22211,7 @@ def v1_device_routing_odp_nbrid_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOdpNbridGetResponse", + '200': "V1DeviceRoutingOspfv2LsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -20267,11 +22225,12 @@ def v1_device_routing_odp_nbrid_get_with_http_info( @validate_call - def v1_device_routing_odp_nbrid_get_without_preload_content( + def v1_device_routing_ospfv2_lsdb_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20285,9 +22244,9 @@ def v1_device_routing_odp_nbrid_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_odp_nbrid_get + """v1_device_routing_ospfv2_lsdb_get - Get BGP Neighbor addresses from ODP server + Get OSPFv2 global LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -20295,6 +22254,8 @@ def v1_device_routing_odp_nbrid_get_without_preload_content( :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -20317,10 +22278,11 @@ def v1_device_routing_odp_nbrid_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_odp_nbrid_get_serialize( + _param = self._v1_device_routing_ospfv2_lsdb_get_serialize( authorization=authorization, device_id=device_id, vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20328,7 +22290,7 @@ def v1_device_routing_odp_nbrid_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOdpNbridGetResponse", + '200': "V1DeviceRoutingOspfv2LsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -20337,11 +22299,12 @@ def v1_device_routing_odp_nbrid_get_without_preload_content( return response_data.response - def _v1_device_routing_odp_nbrid_get_serialize( + def _v1_device_routing_ospfv2_lsdb_get_serialize( self, authorization, device_id, vrf_name, + instance_name, _request_auth, _content_type, _headers, @@ -20368,6 +22331,10 @@ def _v1_device_routing_odp_nbrid_get_serialize( _query_params.append(('deviceId', device_id)) + if instance_name is not None: + + _query_params.append(('instanceName', instance_name)) + if vrf_name is not None: _query_params.append(('vrfName', vrf_name)) @@ -20395,7 +22362,7 @@ def _v1_device_routing_odp_nbrid_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/odp/nbrid', + resource_path='/v1/device/routing/ospfv2/lsdb', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20412,13 +22379,14 @@ def _v1_device_routing_odp_nbrid_get_serialize( @validate_call - def v1_device_routing_ospfv2_area_interface_get( + def v1_device_routing_ospfv2_rib_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + before: Optional[StrictStr] = None, + last: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20431,21 +22399,23 @@ def v1_device_routing_ospfv2_area_interface_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv2AreaInterfaceGetResponse: - """v1_device_routing_ospfv2_area_interface_get + ) -> V1DeviceRoutingOspfv2RibGetResponse: + """v1_device_routing_ospfv2_rib_get - Get OSPFv2 Area's Interface specific Information + Get OSPFv2 Local RIB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str :param instance_name: Valid configured OSPF Instance name :type instance_name: str + :param before: + :type before: str + :param last: + :type last: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20468,12 +22438,13 @@ def v1_device_routing_ospfv2_area_interface_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_area_interface_get_serialize( + _param = self._v1_device_routing_ospfv2_rib_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, vrf_name=vrf_name, instance_name=instance_name, + before=before, + last=last, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20481,7 +22452,7 @@ def v1_device_routing_ospfv2_area_interface_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaInterfaceGetResponse", + '200': "V1DeviceRoutingOspfv2RibGetResponse", } response_data = self.api_client.call_api( *_param, @@ -20495,13 +22466,14 @@ def v1_device_routing_ospfv2_area_interface_get( @validate_call - def v1_device_routing_ospfv2_area_interface_get_with_http_info( + def v1_device_routing_ospfv2_rib_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + before: Optional[StrictStr] = None, + last: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20514,21 +22486,23 @@ def v1_device_routing_ospfv2_area_interface_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[V1DeviceRoutingOspfv2AreaInterfaceGetResponse]: - """v1_device_routing_ospfv2_area_interface_get + ) -> ApiResponse[V1DeviceRoutingOspfv2RibGetResponse]: + """v1_device_routing_ospfv2_rib_get - Get OSPFv2 Area's Interface specific Information + Get OSPFv2 Local RIB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str :param instance_name: Valid configured OSPF Instance name :type instance_name: str + :param before: + :type before: str + :param last: + :type last: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20551,12 +22525,13 @@ def v1_device_routing_ospfv2_area_interface_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_area_interface_get_serialize( + _param = self._v1_device_routing_ospfv2_rib_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, vrf_name=vrf_name, instance_name=instance_name, + before=before, + last=last, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20564,7 +22539,7 @@ def v1_device_routing_ospfv2_area_interface_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaInterfaceGetResponse", + '200': "V1DeviceRoutingOspfv2RibGetResponse", } response_data = self.api_client.call_api( *_param, @@ -20578,13 +22553,14 @@ def v1_device_routing_ospfv2_area_interface_get_with_http_info( @validate_call - def v1_device_routing_ospfv2_area_interface_get_without_preload_content( + def v1_device_routing_ospfv2_rib_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + before: Optional[StrictStr] = None, + last: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20598,20 +22574,22 @@ def v1_device_routing_ospfv2_area_interface_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv2_area_interface_get + """v1_device_routing_ospfv2_rib_get - Get OSPFv2 Area's Interface specific Information + Get OSPFv2 Local RIB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str :param instance_name: Valid configured OSPF Instance name :type instance_name: str + :param before: + :type before: str + :param last: + :type last: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -20634,12 +22612,13 @@ def v1_device_routing_ospfv2_area_interface_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_area_interface_get_serialize( + _param = self._v1_device_routing_ospfv2_rib_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, vrf_name=vrf_name, instance_name=instance_name, + before=before, + last=last, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20647,7 +22626,7 @@ def v1_device_routing_ospfv2_area_interface_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaInterfaceGetResponse", + '200': "V1DeviceRoutingOspfv2RibGetResponse", } response_data = self.api_client.call_api( *_param, @@ -20656,13 +22635,14 @@ def v1_device_routing_ospfv2_area_interface_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv2_area_interface_get_serialize( + def _v1_device_routing_ospfv2_rib_get_serialize( self, authorization, - area_id, device_id, vrf_name, instance_name, + before, + last, _request_auth, _content_type, _headers, @@ -20685,10 +22665,6 @@ def _v1_device_routing_ospfv2_area_interface_get_serialize( # process the path parameters # process the query parameters - if area_id is not None: - - _query_params.append(('areaId', area_id)) - if device_id is not None: _query_params.append(('deviceId', device_id)) @@ -20697,6 +22673,14 @@ def _v1_device_routing_ospfv2_area_interface_get_serialize( _query_params.append(('instanceName', instance_name)) + if before is not None: + + _query_params.append(('before', before)) + + if last is not None: + + _query_params.append(('last', last)) + if vrf_name is not None: _query_params.append(('vrfName', vrf_name)) @@ -20724,7 +22708,7 @@ def _v1_device_routing_ospfv2_area_interface_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv2/area/interface', + resource_path='/v1/device/routing/ospfv2/rib', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -20741,14 +22725,11 @@ def _v1_device_routing_ospfv2_area_interface_get_serialize( @validate_call - def v1_device_routing_ospfv2_area_interface_nbrid_get( + def v1_device_routing_ospfv2_statistics_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - interface_id: Annotated[StrictStr, Field(description="Valid configured Interface name")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20761,23 +22742,17 @@ def v1_device_routing_ospfv2_area_interface_nbrid_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse: - """v1_device_routing_ospfv2_area_interface_nbrid_get + ) -> V1DeviceRoutingOspfv2StatisticsGetResponse: + """v1_device_routing_ospfv2_statistics_get - Get OSPFv2 Area's interface's Nbr ID table + Get OSPFv2 Statistics :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param interface_id: Valid configured Interface name (required) - :type interface_id: str - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: str + :param vrf_names: Valid configured VRF name (required) + :type vrf_names: 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 @@ -20800,13 +22775,10 @@ def v1_device_routing_ospfv2_area_interface_nbrid_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( + _param = self._v1_device_routing_ospfv2_statistics_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, - interface_id=interface_id, - vrf_name=vrf_name, - instance_name=instance_name, + vrf_names=vrf_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20814,7 +22786,7 @@ def v1_device_routing_ospfv2_area_interface_nbrid_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse", + '200': "V1DeviceRoutingOspfv2StatisticsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -20828,14 +22800,11 @@ def v1_device_routing_ospfv2_area_interface_nbrid_get( @validate_call - def v1_device_routing_ospfv2_area_interface_nbrid_get_with_http_info( + def v1_device_routing_ospfv2_statistics_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - interface_id: Annotated[StrictStr, Field(description="Valid configured Interface name")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20848,23 +22817,17 @@ def v1_device_routing_ospfv2_area_interface_nbrid_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[V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse]: - """v1_device_routing_ospfv2_area_interface_nbrid_get + ) -> ApiResponse[V1DeviceRoutingOspfv2StatisticsGetResponse]: + """v1_device_routing_ospfv2_statistics_get - Get OSPFv2 Area's interface's Nbr ID table + Get OSPFv2 Statistics :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param interface_id: Valid configured Interface name (required) - :type interface_id: str - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: str + :param vrf_names: Valid configured VRF name (required) + :type vrf_names: 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 @@ -20887,13 +22850,10 @@ def v1_device_routing_ospfv2_area_interface_nbrid_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( + _param = self._v1_device_routing_ospfv2_statistics_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, - interface_id=interface_id, - vrf_name=vrf_name, - instance_name=instance_name, + vrf_names=vrf_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20901,7 +22861,7 @@ def v1_device_routing_ospfv2_area_interface_nbrid_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse", + '200': "V1DeviceRoutingOspfv2StatisticsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -20915,14 +22875,11 @@ def v1_device_routing_ospfv2_area_interface_nbrid_get_with_http_info( @validate_call - def v1_device_routing_ospfv2_area_interface_nbrid_get_without_preload_content( + def v1_device_routing_ospfv2_statistics_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - interface_id: Annotated[StrictStr, Field(description="Valid configured Interface name")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -20936,22 +22893,16 @@ def v1_device_routing_ospfv2_area_interface_nbrid_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv2_area_interface_nbrid_get + """v1_device_routing_ospfv2_statistics_get - Get OSPFv2 Area's interface's Nbr ID table + Get OSPFv2 Statistics :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param interface_id: Valid configured Interface name (required) - :type interface_id: str - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: str + :param vrf_names: Valid configured VRF name (required) + :type vrf_names: 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 @@ -20974,13 +22925,10 @@ def v1_device_routing_ospfv2_area_interface_nbrid_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( + _param = self._v1_device_routing_ospfv2_statistics_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, - interface_id=interface_id, - vrf_name=vrf_name, - instance_name=instance_name, + vrf_names=vrf_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -20988,7 +22936,7 @@ def v1_device_routing_ospfv2_area_interface_nbrid_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaInterfaceNbridGetResponse", + '200': "V1DeviceRoutingOspfv2StatisticsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -20997,14 +22945,11 @@ def v1_device_routing_ospfv2_area_interface_nbrid_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( + def _v1_device_routing_ospfv2_statistics_get_serialize( self, authorization, - area_id, device_id, - interface_id, - vrf_name, - instance_name, + vrf_names, _request_auth, _content_type, _headers, @@ -21014,6 +22959,7 @@ def _v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( _host = None _collection_formats: Dict[str, str] = { + 'vrfNames': 'multi', } _path_params: Dict[str, str] = {} @@ -21027,25 +22973,13 @@ def _v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( # process the path parameters # process the query parameters - if area_id is not None: - - _query_params.append(('areaId', area_id)) - if device_id is not None: _query_params.append(('deviceId', device_id)) - if instance_name is not None: - - _query_params.append(('instanceName', instance_name)) - - if interface_id is not None: - - _query_params.append(('interfaceId', interface_id)) - - if vrf_name is not None: + if vrf_names is not None: - _query_params.append(('vrfName', vrf_name)) + _query_params.append(('vrfNames', vrf_names)) # process the header parameters if authorization is not None: @@ -21070,7 +23004,7 @@ def _v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv2/area/interface/nbrid', + resource_path='/v1/device/routing/ospfv2/statistics', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21087,13 +23021,13 @@ def _v1_device_routing_ospfv2_area_interface_nbrid_get_serialize( @validate_call - def v1_device_routing_ospfv2_area_lsdb_get( + def v1_device_routing_ospfv3_area_interface_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21106,10 +23040,10 @@ def v1_device_routing_ospfv2_area_lsdb_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv2AreaLsdbGetResponse: - """v1_device_routing_ospfv2_area_lsdb_get + ) -> V1DeviceRoutingOspfv3AreaInterfaceGetResponse: + """v1_device_routing_ospfv3_area_interface_get - Get OSPFv2 Area specific LSDB Table + Get OSPFv3 Area's Interface specific Information :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -21117,10 +23051,10 @@ def v1_device_routing_ospfv2_area_lsdb_get( :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param instance_name: Valid configured OSPF Instance name (required) - :type instance_name: str :param vrf_name: Valid configured VRF name (required) :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -21143,12 +23077,12 @@ def v1_device_routing_ospfv2_area_lsdb_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_area_lsdb_get_serialize( + _param = self._v1_device_routing_ospfv3_area_interface_get_serialize( authorization=authorization, area_id=area_id, device_id=device_id, - instance_name=instance_name, vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21156,7 +23090,7 @@ def v1_device_routing_ospfv2_area_lsdb_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaLsdbGetResponse", + '200': "V1DeviceRoutingOspfv3AreaInterfaceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -21170,13 +23104,13 @@ def v1_device_routing_ospfv2_area_lsdb_get( @validate_call - def v1_device_routing_ospfv2_area_lsdb_get_with_http_info( + def v1_device_routing_ospfv3_area_interface_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21189,10 +23123,10 @@ def v1_device_routing_ospfv2_area_lsdb_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[V1DeviceRoutingOspfv2AreaLsdbGetResponse]: - """v1_device_routing_ospfv2_area_lsdb_get + ) -> ApiResponse[V1DeviceRoutingOspfv3AreaInterfaceGetResponse]: + """v1_device_routing_ospfv3_area_interface_get - Get OSPFv2 Area specific LSDB Table + Get OSPFv3 Area's Interface specific Information :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -21200,10 +23134,93 @@ def v1_device_routing_ospfv2_area_lsdb_get_with_http_info( :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param instance_name: Valid configured OSPF Instance name (required) + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name :type instance_name: 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_device_routing_ospfv3_area_interface_get_serialize( + authorization=authorization, + area_id=area_id, + device_id=device_id, + vrf_name=vrf_name, + instance_name=instance_name, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "V1DeviceRoutingOspfv3AreaInterfaceGetResponse", + } + 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_device_routing_ospfv3_area_interface_get_without_preload_content( + self, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = 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_device_routing_ospfv3_area_interface_get + + Get OSPFv3 Area's Interface specific Information + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param area_id: Valid configured Area ID (required) + :type area_id: str + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int :param vrf_name: Valid configured VRF name (required) :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -21226,95 +23243,12 @@ def v1_device_routing_ospfv2_area_lsdb_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_area_lsdb_get_serialize( + _param = self._v1_device_routing_ospfv3_area_interface_get_serialize( authorization=authorization, area_id=area_id, device_id=device_id, - instance_name=instance_name, vrf_name=vrf_name, - _request_auth=_request_auth, - _content_type=_content_type, - _headers=_headers, - _host_index=_host_index - ) - - _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaLsdbGetResponse", - } - 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_device_routing_ospfv2_area_lsdb_get_without_preload_content( - self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - _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_device_routing_ospfv2_area_lsdb_get - - Get OSPFv2 Area specific LSDB Table - - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param instance_name: Valid configured OSPF Instance name (required) - :type instance_name: str - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: 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_device_routing_ospfv2_area_lsdb_get_serialize( - authorization=authorization, - area_id=area_id, - device_id=device_id, instance_name=instance_name, - vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21322,7 +23256,7 @@ def v1_device_routing_ospfv2_area_lsdb_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaLsdbGetResponse", + '200': "V1DeviceRoutingOspfv3AreaInterfaceGetResponse", } response_data = self.api_client.call_api( *_param, @@ -21331,13 +23265,13 @@ def v1_device_routing_ospfv2_area_lsdb_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv2_area_lsdb_get_serialize( + def _v1_device_routing_ospfv3_area_interface_get_serialize( self, authorization, area_id, device_id, - instance_name, vrf_name, + instance_name, _request_auth, _content_type, _headers, @@ -21399,7 +23333,7 @@ def _v1_device_routing_ospfv2_area_lsdb_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv2/area/lsdb', + resource_path='/v1/device/routing/ospfv3/area/interface', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21416,13 +23350,13 @@ def _v1_device_routing_ospfv2_area_lsdb_get_serialize( @validate_call - def v1_device_routing_ospfv2_area_nbr_get( + def v1_device_routing_ospfv3_area_lsdb_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21435,10 +23369,10 @@ def v1_device_routing_ospfv2_area_nbr_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv2AreaNbrGetResponse: - """v1_device_routing_ospfv2_area_nbr_get + ) -> V1DeviceRoutingOspfv3AreaLsdbGetResponse: + """v1_device_routing_ospfv3_area_lsdb_get - Get OSPFv2 Area's Neighbors Information + Get OSPFv3 Area LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -21446,10 +23380,10 @@ def v1_device_routing_ospfv2_area_nbr_get( :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int + :param instance_name: Valid configured OSPF Instance name (required) + :type instance_name: str :param vrf_name: Valid configured VRF name (required) :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -21472,12 +23406,12 @@ def v1_device_routing_ospfv2_area_nbr_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_area_nbr_get_serialize( + _param = self._v1_device_routing_ospfv3_area_lsdb_get_serialize( authorization=authorization, area_id=area_id, device_id=device_id, - vrf_name=vrf_name, instance_name=instance_name, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21485,7 +23419,7 @@ def v1_device_routing_ospfv2_area_nbr_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaNbrGetResponse", + '200': "V1DeviceRoutingOspfv3AreaLsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -21499,13 +23433,13 @@ def v1_device_routing_ospfv2_area_nbr_get( @validate_call - def v1_device_routing_ospfv2_area_nbr_get_with_http_info( + def v1_device_routing_ospfv3_area_lsdb_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21518,10 +23452,10 @@ def v1_device_routing_ospfv2_area_nbr_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[V1DeviceRoutingOspfv2AreaNbrGetResponse]: - """v1_device_routing_ospfv2_area_nbr_get + ) -> ApiResponse[V1DeviceRoutingOspfv3AreaLsdbGetResponse]: + """v1_device_routing_ospfv3_area_lsdb_get - Get OSPFv2 Area's Neighbors Information + Get OSPFv3 Area LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -21529,10 +23463,10 @@ def v1_device_routing_ospfv2_area_nbr_get_with_http_info( :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int + :param instance_name: Valid configured OSPF Instance name (required) + :type instance_name: str :param vrf_name: Valid configured VRF name (required) :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -21555,12 +23489,12 @@ def v1_device_routing_ospfv2_area_nbr_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_area_nbr_get_serialize( + _param = self._v1_device_routing_ospfv3_area_lsdb_get_serialize( authorization=authorization, area_id=area_id, device_id=device_id, - vrf_name=vrf_name, instance_name=instance_name, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21568,7 +23502,7 @@ def v1_device_routing_ospfv2_area_nbr_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaNbrGetResponse", + '200': "V1DeviceRoutingOspfv3AreaLsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -21582,13 +23516,13 @@ def v1_device_routing_ospfv2_area_nbr_get_with_http_info( @validate_call - def v1_device_routing_ospfv2_area_nbr_get_without_preload_content( + def v1_device_routing_ospfv3_area_lsdb_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -21602,9 +23536,9 @@ def v1_device_routing_ospfv2_area_nbr_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv2_area_nbr_get + """v1_device_routing_ospfv3_area_lsdb_get - Get OSPFv2 Area's Neighbors Information + Get OSPFv3 Area LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -21612,10 +23546,10 @@ def v1_device_routing_ospfv2_area_nbr_get_without_preload_content( :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int + :param instance_name: Valid configured OSPF Instance name (required) + :type instance_name: str :param vrf_name: Valid configured VRF name (required) :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -21638,12 +23572,12 @@ def v1_device_routing_ospfv2_area_nbr_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_area_nbr_get_serialize( + _param = self._v1_device_routing_ospfv3_area_lsdb_get_serialize( authorization=authorization, area_id=area_id, device_id=device_id, - vrf_name=vrf_name, instance_name=instance_name, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -21651,7 +23585,7 @@ def v1_device_routing_ospfv2_area_nbr_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaNbrGetResponse", + '200': "V1DeviceRoutingOspfv3AreaLsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -21660,13 +23594,13 @@ def v1_device_routing_ospfv2_area_nbr_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv2_area_nbr_get_serialize( + def _v1_device_routing_ospfv3_area_lsdb_get_serialize( self, authorization, area_id, device_id, - vrf_name, instance_name, + vrf_name, _request_auth, _content_type, _headers, @@ -21728,7 +23662,7 @@ def _v1_device_routing_ospfv2_area_nbr_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv2/area/nbr', + resource_path='/v1/device/routing/ospfv3/area/lsdb', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -21745,9 +23679,10 @@ def _v1_device_routing_ospfv2_area_nbr_get_serialize( @validate_call - def v1_device_routing_ospfv2_areaid_get( + def v1_device_routing_ospfv3_area_nbr_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, @@ -21763,13 +23698,15 @@ def v1_device_routing_ospfv2_areaid_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv2AreaidGetResponse: - """v1_device_routing_ospfv2_areaid_get + ) -> V1DeviceRoutingOspfv3AreaNbrGetResponse: + """v1_device_routing_ospfv3_area_nbr_get - Get OSPFv2 Area ID Table + Get OSPFv3 Area's Neighbors Information :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) @@ -21798,8 +23735,9 @@ def v1_device_routing_ospfv2_areaid_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_areaid_get_serialize( + _param = self._v1_device_routing_ospfv3_area_nbr_get_serialize( authorization=authorization, + area_id=area_id, device_id=device_id, vrf_name=vrf_name, instance_name=instance_name, @@ -21810,7 +23748,7 @@ def v1_device_routing_ospfv2_areaid_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaidGetResponse", + '200': "V1DeviceRoutingOspfv3AreaNbrGetResponse", } response_data = self.api_client.call_api( *_param, @@ -21824,9 +23762,10 @@ def v1_device_routing_ospfv2_areaid_get( @validate_call - def v1_device_routing_ospfv2_areaid_get_with_http_info( + def v1_device_routing_ospfv3_area_nbr_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, @@ -21842,13 +23781,15 @@ def v1_device_routing_ospfv2_areaid_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[V1DeviceRoutingOspfv2AreaidGetResponse]: - """v1_device_routing_ospfv2_areaid_get + ) -> ApiResponse[V1DeviceRoutingOspfv3AreaNbrGetResponse]: + """v1_device_routing_ospfv3_area_nbr_get - Get OSPFv2 Area ID Table + Get OSPFv3 Area's Neighbors Information :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) @@ -21877,8 +23818,9 @@ def v1_device_routing_ospfv2_areaid_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_areaid_get_serialize( + _param = self._v1_device_routing_ospfv3_area_nbr_get_serialize( authorization=authorization, + area_id=area_id, device_id=device_id, vrf_name=vrf_name, instance_name=instance_name, @@ -21889,7 +23831,7 @@ def v1_device_routing_ospfv2_areaid_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaidGetResponse", + '200': "V1DeviceRoutingOspfv3AreaNbrGetResponse", } response_data = self.api_client.call_api( *_param, @@ -21903,9 +23845,10 @@ def v1_device_routing_ospfv2_areaid_get_with_http_info( @validate_call - def v1_device_routing_ospfv2_areaid_get_without_preload_content( + def v1_device_routing_ospfv3_area_nbr_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, @@ -21922,12 +23865,14 @@ def v1_device_routing_ospfv2_areaid_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv2_areaid_get + """v1_device_routing_ospfv3_area_nbr_get - Get OSPFv2 Area ID Table + Get OSPFv3 Area's Neighbors Information :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param area_id: Valid configured Area ID (required) + :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int :param vrf_name: Valid configured VRF name (required) @@ -21956,8 +23901,9 @@ def v1_device_routing_ospfv2_areaid_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_areaid_get_serialize( + _param = self._v1_device_routing_ospfv3_area_nbr_get_serialize( authorization=authorization, + area_id=area_id, device_id=device_id, vrf_name=vrf_name, instance_name=instance_name, @@ -21968,7 +23914,7 @@ def v1_device_routing_ospfv2_areaid_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2AreaidGetResponse", + '200': "V1DeviceRoutingOspfv3AreaNbrGetResponse", } response_data = self.api_client.call_api( *_param, @@ -21977,9 +23923,10 @@ def v1_device_routing_ospfv2_areaid_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv2_areaid_get_serialize( + def _v1_device_routing_ospfv3_area_nbr_get_serialize( self, authorization, + area_id, device_id, vrf_name, instance_name, @@ -22005,6 +23952,10 @@ def _v1_device_routing_ospfv2_areaid_get_serialize( # process the path parameters # process the query parameters + if area_id is not None: + + _query_params.append(('areaId', area_id)) + if device_id is not None: _query_params.append(('deviceId', device_id)) @@ -22040,7 +23991,7 @@ def _v1_device_routing_ospfv2_areaid_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv2/areaid', + resource_path='/v1/device/routing/ospfv3/area/nbr', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22057,7 +24008,7 @@ def _v1_device_routing_ospfv2_areaid_get_serialize( @validate_call - def v1_device_routing_ospfv2_lsdb_get( + def v1_device_routing_ospfv3_areaid_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], @@ -22075,10 +24026,10 @@ def v1_device_routing_ospfv2_lsdb_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv2LsdbGetResponse: - """v1_device_routing_ospfv2_lsdb_get + ) -> V1DeviceRoutingOspfv3AreaidGetResponse: + """v1_device_routing_ospfv3_areaid_get - Get OSPFv2 global LSDB Table + Get OSPFv3 Area ID Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -22110,7 +24061,7 @@ def v1_device_routing_ospfv2_lsdb_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_lsdb_get_serialize( + _param = self._v1_device_routing_ospfv3_areaid_get_serialize( authorization=authorization, device_id=device_id, vrf_name=vrf_name, @@ -22122,7 +24073,7 @@ def v1_device_routing_ospfv2_lsdb_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2LsdbGetResponse", + '200': "V1DeviceRoutingOspfv3AreaidGetResponse", } response_data = self.api_client.call_api( *_param, @@ -22136,7 +24087,7 @@ def v1_device_routing_ospfv2_lsdb_get( @validate_call - def v1_device_routing_ospfv2_lsdb_get_with_http_info( + def v1_device_routing_ospfv3_areaid_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], @@ -22154,10 +24105,10 @@ def v1_device_routing_ospfv2_lsdb_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[V1DeviceRoutingOspfv2LsdbGetResponse]: - """v1_device_routing_ospfv2_lsdb_get + ) -> ApiResponse[V1DeviceRoutingOspfv3AreaidGetResponse]: + """v1_device_routing_ospfv3_areaid_get - Get OSPFv2 global LSDB Table + Get OSPFv3 Area ID Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -22189,7 +24140,7 @@ def v1_device_routing_ospfv2_lsdb_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_lsdb_get_serialize( + _param = self._v1_device_routing_ospfv3_areaid_get_serialize( authorization=authorization, device_id=device_id, vrf_name=vrf_name, @@ -22201,7 +24152,7 @@ def v1_device_routing_ospfv2_lsdb_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2LsdbGetResponse", + '200': "V1DeviceRoutingOspfv3AreaidGetResponse", } response_data = self.api_client.call_api( *_param, @@ -22215,7 +24166,7 @@ def v1_device_routing_ospfv2_lsdb_get_with_http_info( @validate_call - def v1_device_routing_ospfv2_lsdb_get_without_preload_content( + def v1_device_routing_ospfv3_areaid_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], @@ -22234,9 +24185,9 @@ def v1_device_routing_ospfv2_lsdb_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv2_lsdb_get + """v1_device_routing_ospfv3_areaid_get - Get OSPFv2 global LSDB Table + Get OSPFv3 Area ID Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -22268,7 +24219,7 @@ def v1_device_routing_ospfv2_lsdb_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_lsdb_get_serialize( + _param = self._v1_device_routing_ospfv3_areaid_get_serialize( authorization=authorization, device_id=device_id, vrf_name=vrf_name, @@ -22280,7 +24231,7 @@ def v1_device_routing_ospfv2_lsdb_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2LsdbGetResponse", + '200': "V1DeviceRoutingOspfv3AreaidGetResponse", } response_data = self.api_client.call_api( *_param, @@ -22289,7 +24240,7 @@ def v1_device_routing_ospfv2_lsdb_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv2_lsdb_get_serialize( + def _v1_device_routing_ospfv3_areaid_get_serialize( self, authorization, device_id, @@ -22352,7 +24303,7 @@ def _v1_device_routing_ospfv2_lsdb_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv2/lsdb', + resource_path='/v1/device/routing/ospfv3/areaid', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22369,14 +24320,12 @@ def _v1_device_routing_ospfv2_lsdb_get_serialize( @validate_call - def v1_device_routing_ospfv2_rib_get( + def v1_device_routing_ospfv3_lsdb_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, - before: Optional[StrictStr] = None, - last: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22389,10 +24338,10 @@ def v1_device_routing_ospfv2_rib_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv2RibGetResponse: - """v1_device_routing_ospfv2_rib_get + ) -> V1DeviceRoutingOspfv3LsdbGetResponse: + """v1_device_routing_ospfv3_lsdb_get - Get OSPFv2 Local RIB Table + Get OSPFv3 global LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -22402,10 +24351,6 @@ def v1_device_routing_ospfv2_rib_get( :type vrf_name: str :param instance_name: Valid configured OSPF Instance name :type instance_name: str - :param before: - :type before: str - :param last: - :type last: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22428,13 +24373,11 @@ def v1_device_routing_ospfv2_rib_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_rib_get_serialize( + _param = self._v1_device_routing_ospfv3_lsdb_get_serialize( authorization=authorization, device_id=device_id, vrf_name=vrf_name, instance_name=instance_name, - before=before, - last=last, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22442,7 +24385,7 @@ def v1_device_routing_ospfv2_rib_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2RibGetResponse", + '200': "V1DeviceRoutingOspfv3LsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -22456,14 +24399,12 @@ def v1_device_routing_ospfv2_rib_get( @validate_call - def v1_device_routing_ospfv2_rib_get_with_http_info( + def v1_device_routing_ospfv3_lsdb_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, - before: Optional[StrictStr] = None, - last: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22476,10 +24417,10 @@ def v1_device_routing_ospfv2_rib_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[V1DeviceRoutingOspfv2RibGetResponse]: - """v1_device_routing_ospfv2_rib_get + ) -> ApiResponse[V1DeviceRoutingOspfv3LsdbGetResponse]: + """v1_device_routing_ospfv3_lsdb_get - Get OSPFv2 Local RIB Table + Get OSPFv3 global LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -22489,10 +24430,6 @@ def v1_device_routing_ospfv2_rib_get_with_http_info( :type vrf_name: str :param instance_name: Valid configured OSPF Instance name :type instance_name: str - :param before: - :type before: str - :param last: - :type last: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22515,13 +24452,11 @@ def v1_device_routing_ospfv2_rib_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_rib_get_serialize( + _param = self._v1_device_routing_ospfv3_lsdb_get_serialize( authorization=authorization, device_id=device_id, vrf_name=vrf_name, instance_name=instance_name, - before=before, - last=last, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22529,7 +24464,7 @@ def v1_device_routing_ospfv2_rib_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2RibGetResponse", + '200': "V1DeviceRoutingOspfv3LsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -22543,14 +24478,12 @@ def v1_device_routing_ospfv2_rib_get_with_http_info( @validate_call - def v1_device_routing_ospfv2_rib_get_without_preload_content( + def v1_device_routing_ospfv3_lsdb_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, - before: Optional[StrictStr] = None, - last: Optional[Annotated[int, Field(strict=True, ge=0)]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22564,9 +24497,9 @@ def v1_device_routing_ospfv2_rib_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv2_rib_get + """v1_device_routing_ospfv3_lsdb_get - Get OSPFv2 Local RIB Table + Get OSPFv3 global LSDB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -22576,10 +24509,6 @@ def v1_device_routing_ospfv2_rib_get_without_preload_content( :type vrf_name: str :param instance_name: Valid configured OSPF Instance name :type instance_name: str - :param before: - :type before: str - :param last: - :type last: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -22602,13 +24531,11 @@ def v1_device_routing_ospfv2_rib_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_rib_get_serialize( + _param = self._v1_device_routing_ospfv3_lsdb_get_serialize( authorization=authorization, device_id=device_id, vrf_name=vrf_name, instance_name=instance_name, - before=before, - last=last, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22616,7 +24543,7 @@ def v1_device_routing_ospfv2_rib_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2RibGetResponse", + '200': "V1DeviceRoutingOspfv3LsdbGetResponse", } response_data = self.api_client.call_api( *_param, @@ -22625,14 +24552,12 @@ def v1_device_routing_ospfv2_rib_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv2_rib_get_serialize( + def _v1_device_routing_ospfv3_lsdb_get_serialize( self, authorization, device_id, vrf_name, instance_name, - before, - last, _request_auth, _content_type, _headers, @@ -22663,14 +24588,6 @@ def _v1_device_routing_ospfv2_rib_get_serialize( _query_params.append(('instanceName', instance_name)) - if before is not None: - - _query_params.append(('before', before)) - - if last is not None: - - _query_params.append(('last', last)) - if vrf_name is not None: _query_params.append(('vrfName', vrf_name)) @@ -22698,7 +24615,7 @@ def _v1_device_routing_ospfv2_rib_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv2/rib', + resource_path='/v1/device/routing/ospfv3/lsdb', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -22715,11 +24632,12 @@ def _v1_device_routing_ospfv2_rib_get_serialize( @validate_call - def v1_device_routing_ospfv2_statistics_get( + def v1_device_routing_ospfv3_rib_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22732,17 +24650,19 @@ def v1_device_routing_ospfv2_statistics_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv2StatisticsGetResponse: - """v1_device_routing_ospfv2_statistics_get + ) -> V1DeviceRoutingOspfv3RibGetResponse: + """v1_device_routing_ospfv3_rib_get - Get OSPFv2 Statistics + Get OSPFv3 Local RIB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param vrf_names: Valid configured VRF name (required) - :type vrf_names: List[str] + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -22765,10 +24685,11 @@ def v1_device_routing_ospfv2_statistics_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_statistics_get_serialize( + _param = self._v1_device_routing_ospfv3_rib_get_serialize( authorization=authorization, device_id=device_id, - vrf_names=vrf_names, + vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22776,7 +24697,7 @@ def v1_device_routing_ospfv2_statistics_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2StatisticsGetResponse", + '200': "V1DeviceRoutingOspfv3RibGetResponse", } response_data = self.api_client.call_api( *_param, @@ -22790,11 +24711,12 @@ def v1_device_routing_ospfv2_statistics_get( @validate_call - def v1_device_routing_ospfv2_statistics_get_with_http_info( + def v1_device_routing_ospfv3_rib_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22807,17 +24729,19 @@ def v1_device_routing_ospfv2_statistics_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[V1DeviceRoutingOspfv2StatisticsGetResponse]: - """v1_device_routing_ospfv2_statistics_get + ) -> ApiResponse[V1DeviceRoutingOspfv3RibGetResponse]: + """v1_device_routing_ospfv3_rib_get - Get OSPFv2 Statistics + Get OSPFv3 Local RIB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param vrf_names: Valid configured VRF name (required) - :type vrf_names: List[str] + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -22840,10 +24764,11 @@ def v1_device_routing_ospfv2_statistics_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_statistics_get_serialize( + _param = self._v1_device_routing_ospfv3_rib_get_serialize( authorization=authorization, device_id=device_id, - vrf_names=vrf_names, + vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22851,7 +24776,7 @@ def v1_device_routing_ospfv2_statistics_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2StatisticsGetResponse", + '200': "V1DeviceRoutingOspfv3RibGetResponse", } response_data = self.api_client.call_api( *_param, @@ -22865,11 +24790,12 @@ def v1_device_routing_ospfv2_statistics_get_with_http_info( @validate_call - def v1_device_routing_ospfv2_statistics_get_without_preload_content( + def v1_device_routing_ospfv3_rib_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -22883,16 +24809,18 @@ def v1_device_routing_ospfv2_statistics_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv2_statistics_get + """v1_device_routing_ospfv3_rib_get - Get OSPFv2 Statistics + Get OSPFv3 Local RIB Table :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param vrf_names: Valid configured VRF name (required) - :type vrf_names: List[str] + :param vrf_name: Valid configured VRF name (required) + :type vrf_name: str + :param instance_name: Valid configured OSPF Instance name + :type instance_name: 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 @@ -22915,10 +24843,11 @@ def v1_device_routing_ospfv2_statistics_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv2_statistics_get_serialize( + _param = self._v1_device_routing_ospfv3_rib_get_serialize( authorization=authorization, device_id=device_id, - vrf_names=vrf_names, + vrf_name=vrf_name, + instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -22926,7 +24855,7 @@ def v1_device_routing_ospfv2_statistics_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv2StatisticsGetResponse", + '200': "V1DeviceRoutingOspfv3RibGetResponse", } response_data = self.api_client.call_api( *_param, @@ -22935,11 +24864,12 @@ def v1_device_routing_ospfv2_statistics_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv2_statistics_get_serialize( + def _v1_device_routing_ospfv3_rib_get_serialize( self, authorization, device_id, - vrf_names, + vrf_name, + instance_name, _request_auth, _content_type, _headers, @@ -22949,7 +24879,6 @@ def _v1_device_routing_ospfv2_statistics_get_serialize( _host = None _collection_formats: Dict[str, str] = { - 'vrfNames': 'multi', } _path_params: Dict[str, str] = {} @@ -22967,9 +24896,13 @@ def _v1_device_routing_ospfv2_statistics_get_serialize( _query_params.append(('deviceId', device_id)) - if vrf_names is not None: + if instance_name is not None: - _query_params.append(('vrfNames', vrf_names)) + _query_params.append(('instanceName', instance_name)) + + if vrf_name is not None: + + _query_params.append(('vrfName', vrf_name)) # process the header parameters if authorization is not None: @@ -22994,7 +24927,7 @@ def _v1_device_routing_ospfv2_statistics_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv2/statistics', + resource_path='/v1/device/routing/ospfv3/rib', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23011,13 +24944,11 @@ def _v1_device_routing_ospfv2_statistics_get_serialize( @validate_call - def v1_device_routing_ospfv3_area_interface_get( + def v1_device_routing_ospfv3_statistics_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23030,21 +24961,17 @@ def v1_device_routing_ospfv3_area_interface_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv3AreaInterfaceGetResponse: - """v1_device_routing_ospfv3_area_interface_get + ) -> V1DeviceRoutingOspfv3StatisticsGetResponse: + """v1_device_routing_ospfv3_statistics_get - Get OSPFv3 Area's Interface specific Information + Get OSPFv3 Statistics :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: str + :param vrf_names: Valid configured VRF name (required) + :type vrf_names: 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 @@ -23067,12 +24994,10 @@ def v1_device_routing_ospfv3_area_interface_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_area_interface_get_serialize( + _param = self._v1_device_routing_ospfv3_statistics_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, + vrf_names=vrf_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23080,7 +25005,7 @@ def v1_device_routing_ospfv3_area_interface_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaInterfaceGetResponse", + '200': "V1DeviceRoutingOspfv3StatisticsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -23094,13 +25019,11 @@ def v1_device_routing_ospfv3_area_interface_get( @validate_call - def v1_device_routing_ospfv3_area_interface_get_with_http_info( + def v1_device_routing_ospfv3_statistics_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23113,21 +25036,17 @@ def v1_device_routing_ospfv3_area_interface_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[V1DeviceRoutingOspfv3AreaInterfaceGetResponse]: - """v1_device_routing_ospfv3_area_interface_get + ) -> ApiResponse[V1DeviceRoutingOspfv3StatisticsGetResponse]: + """v1_device_routing_ospfv3_statistics_get - Get OSPFv3 Area's Interface specific Information + Get OSPFv3 Statistics :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: str + :param vrf_names: Valid configured VRF name (required) + :type vrf_names: 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 @@ -23150,12 +25069,10 @@ def v1_device_routing_ospfv3_area_interface_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_area_interface_get_serialize( + _param = self._v1_device_routing_ospfv3_statistics_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, + vrf_names=vrf_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23163,7 +25080,7 @@ def v1_device_routing_ospfv3_area_interface_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaInterfaceGetResponse", + '200': "V1DeviceRoutingOspfv3StatisticsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -23177,13 +25094,11 @@ def v1_device_routing_ospfv3_area_interface_get_with_http_info( @validate_call - def v1_device_routing_ospfv3_area_interface_get_without_preload_content( + def v1_device_routing_ospfv3_statistics_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23197,20 +25112,16 @@ def v1_device_routing_ospfv3_area_interface_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv3_area_interface_get + """v1_device_routing_ospfv3_statistics_get - Get OSPFv3 Area's Interface specific Information + Get OSPFv3 Statistics :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: str + :param vrf_names: Valid configured VRF name (required) + :type vrf_names: 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 @@ -23233,12 +25144,10 @@ def v1_device_routing_ospfv3_area_interface_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_area_interface_get_serialize( + _param = self._v1_device_routing_ospfv3_statistics_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, + vrf_names=vrf_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23246,7 +25155,7 @@ def v1_device_routing_ospfv3_area_interface_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaInterfaceGetResponse", + '200': "V1DeviceRoutingOspfv3StatisticsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -23255,13 +25164,11 @@ def v1_device_routing_ospfv3_area_interface_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv3_area_interface_get_serialize( + def _v1_device_routing_ospfv3_statistics_get_serialize( self, authorization, - area_id, device_id, - vrf_name, - instance_name, + vrf_names, _request_auth, _content_type, _headers, @@ -23271,6 +25178,7 @@ def _v1_device_routing_ospfv3_area_interface_get_serialize( _host = None _collection_formats: Dict[str, str] = { + 'vrfNames': 'multi', } _path_params: Dict[str, str] = {} @@ -23284,21 +25192,13 @@ def _v1_device_routing_ospfv3_area_interface_get_serialize( # process the path parameters # process the query parameters - if area_id is not None: - - _query_params.append(('areaId', area_id)) - if device_id is not None: _query_params.append(('deviceId', device_id)) - if instance_name is not None: - - _query_params.append(('instanceName', instance_name)) - - if vrf_name is not None: + if vrf_names is not None: - _query_params.append(('vrfName', vrf_name)) + _query_params.append(('vrfNames', vrf_names)) # process the header parameters if authorization is not None: @@ -23323,7 +25223,7 @@ def _v1_device_routing_ospfv3_area_interface_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv3/area/interface', + resource_path='/v1/device/routing/ospfv3/statistics', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23340,13 +25240,12 @@ def _v1_device_routing_ospfv3_area_interface_get_serialize( @validate_call - def v1_device_routing_ospfv3_area_lsdb_get( + def v1_device_routing_rib_route_count_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + vrf_name: Annotated[List[StrictStr], Field(description="Valid configured VRF names")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23359,21 +25258,19 @@ def v1_device_routing_ospfv3_area_lsdb_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv3AreaLsdbGetResponse: - """v1_device_routing_ospfv3_area_lsdb_get + ) -> V1DeviceRoutingRibRouteCountPostResponse: + """v1_device_routing_rib_route_count_post - Get OSPFv3 Area LSDB Table + Get BGP VRF installed route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param instance_name: Valid configured OSPF Instance name (required) - :type instance_name: str - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str + :param vrf_name: Valid configured VRF names (required) + :type vrf_name: List[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 @@ -23396,12 +25293,11 @@ def v1_device_routing_ospfv3_area_lsdb_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_area_lsdb_get_serialize( + _param = self._v1_device_routing_rib_route_count_post_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, - instance_name=instance_name, vrf_name=vrf_name, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23409,7 +25305,7 @@ def v1_device_routing_ospfv3_area_lsdb_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaLsdbGetResponse", + '200': "V1DeviceRoutingRibRouteCountPostResponse", } response_data = self.api_client.call_api( *_param, @@ -23423,13 +25319,12 @@ def v1_device_routing_ospfv3_area_lsdb_get( @validate_call - def v1_device_routing_ospfv3_area_lsdb_get_with_http_info( + def v1_device_routing_rib_route_count_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + vrf_name: Annotated[List[StrictStr], Field(description="Valid configured VRF names")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23442,21 +25337,19 @@ def v1_device_routing_ospfv3_area_lsdb_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[V1DeviceRoutingOspfv3AreaLsdbGetResponse]: - """v1_device_routing_ospfv3_area_lsdb_get + ) -> ApiResponse[V1DeviceRoutingRibRouteCountPostResponse]: + """v1_device_routing_rib_route_count_post - Get OSPFv3 Area LSDB Table + Get BGP VRF installed route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param instance_name: Valid configured OSPF Instance name (required) - :type instance_name: str - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str + :param vrf_name: Valid configured VRF names (required) + :type vrf_name: List[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 @@ -23479,12 +25372,11 @@ def v1_device_routing_ospfv3_area_lsdb_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_area_lsdb_get_serialize( + _param = self._v1_device_routing_rib_route_count_post_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, - instance_name=instance_name, vrf_name=vrf_name, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23492,7 +25384,7 @@ def v1_device_routing_ospfv3_area_lsdb_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaLsdbGetResponse", + '200': "V1DeviceRoutingRibRouteCountPostResponse", } response_data = self.api_client.call_api( *_param, @@ -23506,13 +25398,12 @@ def v1_device_routing_ospfv3_area_lsdb_get_with_http_info( @validate_call - def v1_device_routing_ospfv3_area_lsdb_get_without_preload_content( + def v1_device_routing_rib_route_count_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - instance_name: Annotated[StrictStr, Field(description="Valid configured OSPF Instance name")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], + vrf_name: Annotated[List[StrictStr], Field(description="Valid configured VRF names")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23526,20 +25417,18 @@ def v1_device_routing_ospfv3_area_lsdb_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv3_area_lsdb_get + """v1_device_routing_rib_route_count_post - Get OSPFv3 Area LSDB Table + Get BGP VRF installed route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param instance_name: Valid configured OSPF Instance name (required) - :type instance_name: str - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str + :param vrf_name: Valid configured VRF names (required) + :type vrf_name: List[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 @@ -23562,12 +25451,11 @@ def v1_device_routing_ospfv3_area_lsdb_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_area_lsdb_get_serialize( + _param = self._v1_device_routing_rib_route_count_post_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, - instance_name=instance_name, vrf_name=vrf_name, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23575,7 +25463,7 @@ def v1_device_routing_ospfv3_area_lsdb_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaLsdbGetResponse", + '200': "V1DeviceRoutingRibRouteCountPostResponse", } response_data = self.api_client.call_api( *_param, @@ -23584,13 +25472,12 @@ def v1_device_routing_ospfv3_area_lsdb_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv3_area_lsdb_get_serialize( + def _v1_device_routing_rib_route_count_post_serialize( self, authorization, - area_id, device_id, - instance_name, vrf_name, + body, _request_auth, _content_type, _headers, @@ -23600,6 +25487,7 @@ def _v1_device_routing_ospfv3_area_lsdb_get_serialize( _host = None _collection_formats: Dict[str, str] = { + 'vrfName': 'multi', } _path_params: Dict[str, str] = {} @@ -23613,18 +25501,10 @@ def _v1_device_routing_ospfv3_area_lsdb_get_serialize( # process the path parameters # process the query parameters - if area_id is not None: - - _query_params.append(('areaId', area_id)) - if device_id is not None: _query_params.append(('deviceId', device_id)) - if instance_name is not None: - - _query_params.append(('instanceName', instance_name)) - if vrf_name is not None: _query_params.append(('vrfName', vrf_name)) @@ -23634,6 +25514,8 @@ def _v1_device_routing_ospfv3_area_lsdb_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` @@ -23644,6 +25526,19 @@ def _v1_device_routing_ospfv3_area_lsdb_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] = [ @@ -23651,8 +25546,8 @@ def _v1_device_routing_ospfv3_area_lsdb_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/device/routing/ospfv3/area/lsdb', + method='POST', + resource_path='/v1/device/routing/rib/route-count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23669,13 +25564,11 @@ def _v1_device_routing_ospfv3_area_lsdb_get_serialize( @validate_call - def v1_device_routing_ospfv3_area_nbr_get( + def v1_device_routing_vrf_bgp_eibgp_route_count_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23688,21 +25581,17 @@ def v1_device_routing_ospfv3_area_nbr_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv3AreaNbrGetResponse: - """v1_device_routing_ospfv3_area_nbr_get + ) -> V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse: + """v1_device_routing_vrf_bgp_eibgp_route_count_get - Get OSPFv3 Area's Neighbors Information + Get eBGP/iBGP VRF route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param vrf_name: Valid configured VRF name (required) + :param vrf_name: Valid configured VRF names (required) :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -23725,12 +25614,10 @@ def v1_device_routing_ospfv3_area_nbr_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_area_nbr_get_serialize( + _param = self._v1_device_routing_vrf_bgp_eibgp_route_count_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, vrf_name=vrf_name, - instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23738,7 +25625,7 @@ def v1_device_routing_ospfv3_area_nbr_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaNbrGetResponse", + '200': "V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse", } response_data = self.api_client.call_api( *_param, @@ -23752,13 +25639,11 @@ def v1_device_routing_ospfv3_area_nbr_get( @validate_call - def v1_device_routing_ospfv3_area_nbr_get_with_http_info( + def v1_device_routing_vrf_bgp_eibgp_route_count_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23771,21 +25656,17 @@ def v1_device_routing_ospfv3_area_nbr_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[V1DeviceRoutingOspfv3AreaNbrGetResponse]: - """v1_device_routing_ospfv3_area_nbr_get + ) -> ApiResponse[V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse]: + """v1_device_routing_vrf_bgp_eibgp_route_count_get - Get OSPFv3 Area's Neighbors Information + Get eBGP/iBGP VRF route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param vrf_name: Valid configured VRF name (required) + :param vrf_name: Valid configured VRF names (required) :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -23808,12 +25689,10 @@ def v1_device_routing_ospfv3_area_nbr_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_area_nbr_get_serialize( + _param = self._v1_device_routing_vrf_bgp_eibgp_route_count_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, vrf_name=vrf_name, - instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23821,7 +25700,7 @@ def v1_device_routing_ospfv3_area_nbr_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaNbrGetResponse", + '200': "V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse", } response_data = self.api_client.call_api( *_param, @@ -23835,13 +25714,11 @@ def v1_device_routing_ospfv3_area_nbr_get_with_http_info( @validate_call - def v1_device_routing_ospfv3_area_nbr_get_without_preload_content( + def v1_device_routing_vrf_bgp_eibgp_route_count_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - area_id: Annotated[StrictStr, Field(description="Valid configured Area ID")], device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -23855,20 +25732,16 @@ def v1_device_routing_ospfv3_area_nbr_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv3_area_nbr_get + """v1_device_routing_vrf_bgp_eibgp_route_count_get - Get OSPFv3 Area's Neighbors Information + Get eBGP/iBGP VRF route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param area_id: Valid configured Area ID (required) - :type area_id: str :param device_id: Valid configured device ID > 0 (required) :type device_id: int - :param vrf_name: Valid configured VRF name (required) + :param vrf_name: Valid configured VRF names (required) :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -23891,12 +25764,10 @@ def v1_device_routing_ospfv3_area_nbr_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_area_nbr_get_serialize( + _param = self._v1_device_routing_vrf_bgp_eibgp_route_count_get_serialize( authorization=authorization, - area_id=area_id, device_id=device_id, vrf_name=vrf_name, - instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -23904,7 +25775,7 @@ def v1_device_routing_ospfv3_area_nbr_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaNbrGetResponse", + '200': "V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse", } response_data = self.api_client.call_api( *_param, @@ -23913,13 +25784,11 @@ def v1_device_routing_ospfv3_area_nbr_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv3_area_nbr_get_serialize( + def _v1_device_routing_vrf_bgp_eibgp_route_count_get_serialize( self, authorization, - area_id, device_id, vrf_name, - instance_name, _request_auth, _content_type, _headers, @@ -23942,18 +25811,10 @@ def _v1_device_routing_ospfv3_area_nbr_get_serialize( # process the path parameters # process the query parameters - if area_id is not None: - - _query_params.append(('areaId', area_id)) - if device_id is not None: _query_params.append(('deviceId', device_id)) - if instance_name is not None: - - _query_params.append(('instanceName', instance_name)) - if vrf_name is not None: _query_params.append(('vrfName', vrf_name)) @@ -23981,7 +25842,7 @@ def _v1_device_routing_ospfv3_area_nbr_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv3/area/nbr', + resource_path='/v1/device/routing/vrf/bgp/eibgp-route-count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -23998,12 +25859,10 @@ def _v1_device_routing_ospfv3_area_nbr_get_serialize( @validate_call - def v1_device_routing_ospfv3_areaid_get( + def v1_device_routing_vrf_bgp_route_count_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24016,19 +25875,15 @@ def v1_device_routing_ospfv3_areaid_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv3AreaidGetResponse: - """v1_device_routing_ospfv3_areaid_get + ) -> V1DeviceRoutingVrfBgpRouteCountPostResponse: + """v1_device_routing_vrf_bgp_route_count_post - Get OSPFv3 Area ID Table + Get BGP VRF route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: str + :param v1_device_routing_vrf_bgp_route_count_post_request: (required) + :type v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24051,11 +25906,9 @@ def v1_device_routing_ospfv3_areaid_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_areaid_get_serialize( + _param = self._v1_device_routing_vrf_bgp_route_count_post_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, + v1_device_routing_vrf_bgp_route_count_post_request=v1_device_routing_vrf_bgp_route_count_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24063,7 +25916,7 @@ def v1_device_routing_ospfv3_areaid_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaidGetResponse", + '200': "V1DeviceRoutingVrfBgpRouteCountPostResponse", } response_data = self.api_client.call_api( *_param, @@ -24077,12 +25930,10 @@ def v1_device_routing_ospfv3_areaid_get( @validate_call - def v1_device_routing_ospfv3_areaid_get_with_http_info( + def v1_device_routing_vrf_bgp_route_count_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24095,19 +25946,15 @@ def v1_device_routing_ospfv3_areaid_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[V1DeviceRoutingOspfv3AreaidGetResponse]: - """v1_device_routing_ospfv3_areaid_get + ) -> ApiResponse[V1DeviceRoutingVrfBgpRouteCountPostResponse]: + """v1_device_routing_vrf_bgp_route_count_post - Get OSPFv3 Area ID Table + Get BGP VRF route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: str + :param v1_device_routing_vrf_bgp_route_count_post_request: (required) + :type v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24130,11 +25977,9 @@ def v1_device_routing_ospfv3_areaid_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_areaid_get_serialize( + _param = self._v1_device_routing_vrf_bgp_route_count_post_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, + v1_device_routing_vrf_bgp_route_count_post_request=v1_device_routing_vrf_bgp_route_count_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24142,7 +25987,7 @@ def v1_device_routing_ospfv3_areaid_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaidGetResponse", + '200': "V1DeviceRoutingVrfBgpRouteCountPostResponse", } response_data = self.api_client.call_api( *_param, @@ -24156,12 +26001,10 @@ def v1_device_routing_ospfv3_areaid_get_with_http_info( @validate_call - def v1_device_routing_ospfv3_areaid_get_without_preload_content( + def v1_device_routing_vrf_bgp_route_count_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24175,18 +26018,14 @@ def v1_device_routing_ospfv3_areaid_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv3_areaid_get + """v1_device_routing_vrf_bgp_route_count_post - Get OSPFv3 Area ID Table + Get BGP VRF route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: str + :param v1_device_routing_vrf_bgp_route_count_post_request: (required) + :type v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24209,11 +26048,9 @@ def v1_device_routing_ospfv3_areaid_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_areaid_get_serialize( + _param = self._v1_device_routing_vrf_bgp_route_count_post_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, + v1_device_routing_vrf_bgp_route_count_post_request=v1_device_routing_vrf_bgp_route_count_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24221,7 +26058,7 @@ def v1_device_routing_ospfv3_areaid_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3AreaidGetResponse", + '200': "V1DeviceRoutingVrfBgpRouteCountPostResponse", } response_data = self.api_client.call_api( *_param, @@ -24230,12 +26067,10 @@ def v1_device_routing_ospfv3_areaid_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv3_areaid_get_serialize( + def _v1_device_routing_vrf_bgp_route_count_post_serialize( self, authorization, - device_id, - vrf_name, - instance_name, + v1_device_routing_vrf_bgp_route_count_post_request, _request_auth, _content_type, _headers, @@ -24258,23 +26093,13 @@ def _v1_device_routing_ospfv3_areaid_get_serialize( # process the path parameters # process the query parameters - if device_id is not None: - - _query_params.append(('deviceId', device_id)) - - if instance_name is not None: - - _query_params.append(('instanceName', instance_name)) - - if vrf_name is not None: - - _query_params.append(('vrfName', vrf_name)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_device_routing_vrf_bgp_route_count_post_request is not None: + _body_params = v1_device_routing_vrf_bgp_route_count_post_request # set the HTTP header `Accept` @@ -24285,6 +26110,19 @@ def _v1_device_routing_ospfv3_areaid_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] = [ @@ -24292,8 +26130,8 @@ def _v1_device_routing_ospfv3_areaid_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/device/routing/ospfv3/areaid', + method='POST', + resource_path='/v1/device/routing/vrf/bgp/route-count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24310,12 +26148,10 @@ def _v1_device_routing_ospfv3_areaid_get_serialize( @validate_call - def v1_device_routing_ospfv3_lsdb_get( + def v1_device_snapshot_device_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24328,19 +26164,15 @@ def v1_device_routing_ospfv3_lsdb_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv3LsdbGetResponse: - """v1_device_routing_ospfv3_lsdb_get + ) -> V1DeviceSnapshotDeviceIdGetResponse: + """v1_device_snapshot_device_id_get - Get OSPFv3 global LSDB Table + Get all of a device's snapshots :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) + :param device_id: (required) :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -24363,11 +26195,9 @@ def v1_device_routing_ospfv3_lsdb_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_lsdb_get_serialize( + _param = self._v1_device_snapshot_device_id_get_serialize( authorization=authorization, device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24375,7 +26205,7 @@ def v1_device_routing_ospfv3_lsdb_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3LsdbGetResponse", + '200': "V1DeviceSnapshotDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -24389,12 +26219,10 @@ def v1_device_routing_ospfv3_lsdb_get( @validate_call - def v1_device_routing_ospfv3_lsdb_get_with_http_info( + def v1_device_snapshot_device_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24407,19 +26235,15 @@ def v1_device_routing_ospfv3_lsdb_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[V1DeviceRoutingOspfv3LsdbGetResponse]: - """v1_device_routing_ospfv3_lsdb_get + ) -> ApiResponse[V1DeviceSnapshotDeviceIdGetResponse]: + """v1_device_snapshot_device_id_get - Get OSPFv3 global LSDB Table + Get all of a device's snapshots :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) + :param device_id: (required) :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -24442,11 +26266,9 @@ def v1_device_routing_ospfv3_lsdb_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_lsdb_get_serialize( + _param = self._v1_device_snapshot_device_id_get_serialize( authorization=authorization, device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24454,7 +26276,7 @@ def v1_device_routing_ospfv3_lsdb_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3LsdbGetResponse", + '200': "V1DeviceSnapshotDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -24468,12 +26290,10 @@ def v1_device_routing_ospfv3_lsdb_get_with_http_info( @validate_call - def v1_device_routing_ospfv3_lsdb_get_without_preload_content( + def v1_device_snapshot_device_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24487,18 +26307,14 @@ def v1_device_routing_ospfv3_lsdb_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv3_lsdb_get + """v1_device_snapshot_device_id_get - Get OSPFv3 global LSDB Table + Get all of a device's snapshots :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) + :param device_id: (required) :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -24521,11 +26337,9 @@ def v1_device_routing_ospfv3_lsdb_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_lsdb_get_serialize( + _param = self._v1_device_snapshot_device_id_get_serialize( authorization=authorization, device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24533,7 +26347,7 @@ def v1_device_routing_ospfv3_lsdb_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3LsdbGetResponse", + '200': "V1DeviceSnapshotDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -24542,12 +26356,10 @@ def v1_device_routing_ospfv3_lsdb_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv3_lsdb_get_serialize( + def _v1_device_snapshot_device_id_get_serialize( self, authorization, device_id, - vrf_name, - instance_name, _request_auth, _content_type, _headers, @@ -24569,19 +26381,9 @@ def _v1_device_routing_ospfv3_lsdb_get_serialize( _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)) - - if instance_name is not None: - - _query_params.append(('instanceName', instance_name)) - - if vrf_name is not None: - - _query_params.append(('vrfName', vrf_name)) - + _path_params['deviceId'] = device_id + # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -24605,7 +26407,7 @@ def _v1_device_routing_ospfv3_lsdb_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv3/lsdb', + resource_path='/v1/device/snapshot/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24622,12 +26424,9 @@ def _v1_device_routing_ospfv3_lsdb_get_serialize( @validate_call - def v1_device_routing_ospfv3_rib_get( + def v1_device_snapshot_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24640,19 +26439,13 @@ def v1_device_routing_ospfv3_rib_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv3RibGetResponse: - """v1_device_routing_ospfv3_rib_get + ) -> V1DeviceSnapshotGetResponse: + """v1_device_snapshot_get - Get OSPFv3 Local RIB Table + Get the specified device snapshots using the snapshot id :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -24675,11 +26468,8 @@ def v1_device_routing_ospfv3_rib_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_rib_get_serialize( + _param = self._v1_device_snapshot_get_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24687,7 +26477,7 @@ def v1_device_routing_ospfv3_rib_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3RibGetResponse", + '200': "V1DeviceSnapshotGetResponse", } response_data = self.api_client.call_api( *_param, @@ -24701,12 +26491,9 @@ def v1_device_routing_ospfv3_rib_get( @validate_call - def v1_device_routing_ospfv3_rib_get_with_http_info( + def v1_device_snapshot_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24719,19 +26506,13 @@ def v1_device_routing_ospfv3_rib_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[V1DeviceRoutingOspfv3RibGetResponse]: - """v1_device_routing_ospfv3_rib_get + ) -> ApiResponse[V1DeviceSnapshotGetResponse]: + """v1_device_snapshot_get - Get OSPFv3 Local RIB Table + Get the specified device snapshots using the snapshot id :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -24754,11 +26535,8 @@ def v1_device_routing_ospfv3_rib_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_rib_get_serialize( + _param = self._v1_device_snapshot_get_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24766,7 +26544,7 @@ def v1_device_routing_ospfv3_rib_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3RibGetResponse", + '200': "V1DeviceSnapshotGetResponse", } response_data = self.api_client.call_api( *_param, @@ -24780,12 +26558,9 @@ def v1_device_routing_ospfv3_rib_get_with_http_info( @validate_call - def v1_device_routing_ospfv3_rib_get_without_preload_content( + def v1_device_snapshot_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF name")], - instance_name: Annotated[Optional[StrictStr], Field(description="Valid configured OSPF Instance name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24799,18 +26574,12 @@ def v1_device_routing_ospfv3_rib_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv3_rib_get + """v1_device_snapshot_get - Get OSPFv3 Local RIB Table + Get the specified device snapshots using the snapshot id :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF name (required) - :type vrf_name: str - :param instance_name: Valid configured OSPF Instance name - :type instance_name: 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 @@ -24833,11 +26602,8 @@ def v1_device_routing_ospfv3_rib_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_rib_get_serialize( + _param = self._v1_device_snapshot_get_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, - instance_name=instance_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24845,7 +26611,7 @@ def v1_device_routing_ospfv3_rib_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3RibGetResponse", + '200': "V1DeviceSnapshotGetResponse", } response_data = self.api_client.call_api( *_param, @@ -24854,12 +26620,9 @@ def v1_device_routing_ospfv3_rib_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv3_rib_get_serialize( + def _v1_device_snapshot_get_serialize( self, authorization, - device_id, - vrf_name, - instance_name, _request_auth, _content_type, _headers, @@ -24882,18 +26645,6 @@ def _v1_device_routing_ospfv3_rib_get_serialize( # process the path parameters # process the query parameters - if device_id is not None: - - _query_params.append(('deviceId', device_id)) - - if instance_name is not None: - - _query_params.append(('instanceName', instance_name)) - - if vrf_name is not None: - - _query_params.append(('vrfName', vrf_name)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -24917,7 +26668,7 @@ def _v1_device_routing_ospfv3_rib_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/device/routing/ospfv3/rib', + resource_path='/v1/device/snapshot', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -24934,11 +26685,10 @@ def _v1_device_routing_ospfv3_rib_get_serialize( @validate_call - def v1_device_routing_ospfv3_statistics_get( + def v1_device_snapshot_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], + v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -24951,17 +26701,15 @@ def v1_device_routing_ospfv3_statistics_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingOspfv3StatisticsGetResponse: - """v1_device_routing_ospfv3_statistics_get + ) -> object: + """v1_device_snapshot_post - Get OSPFv3 Statistics + Create a device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_names: Valid configured VRF name (required) - :type vrf_names: List[str] + :param v1_device_snapshot_post_request: (required) + :type v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -24984,10 +26732,9 @@ def v1_device_routing_ospfv3_statistics_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_statistics_get_serialize( + _param = self._v1_device_snapshot_post_serialize( authorization=authorization, - device_id=device_id, - vrf_names=vrf_names, + v1_device_snapshot_post_request=v1_device_snapshot_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -24995,7 +26742,7 @@ def v1_device_routing_ospfv3_statistics_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3StatisticsGetResponse", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -25009,11 +26756,10 @@ def v1_device_routing_ospfv3_statistics_get( @validate_call - def v1_device_routing_ospfv3_statistics_get_with_http_info( + def v1_device_snapshot_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], + v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25026,17 +26772,15 @@ def v1_device_routing_ospfv3_statistics_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[V1DeviceRoutingOspfv3StatisticsGetResponse]: - """v1_device_routing_ospfv3_statistics_get + ) -> ApiResponse[object]: + """v1_device_snapshot_post - Get OSPFv3 Statistics + Create a device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_names: Valid configured VRF name (required) - :type vrf_names: List[str] + :param v1_device_snapshot_post_request: (required) + :type v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25059,10 +26803,9 @@ def v1_device_routing_ospfv3_statistics_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_statistics_get_serialize( + _param = self._v1_device_snapshot_post_serialize( authorization=authorization, - device_id=device_id, - vrf_names=vrf_names, + v1_device_snapshot_post_request=v1_device_snapshot_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25070,7 +26813,7 @@ def v1_device_routing_ospfv3_statistics_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3StatisticsGetResponse", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -25084,11 +26827,10 @@ def v1_device_routing_ospfv3_statistics_get_with_http_info( @validate_call - def v1_device_routing_ospfv3_statistics_get_without_preload_content( + def v1_device_snapshot_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_names: Annotated[List[StrictStr], Field(description="Valid configured VRF name")], + v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25102,16 +26844,14 @@ def v1_device_routing_ospfv3_statistics_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_ospfv3_statistics_get + """v1_device_snapshot_post - Get OSPFv3 Statistics + Create a device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_names: Valid configured VRF name (required) - :type vrf_names: List[str] + :param v1_device_snapshot_post_request: (required) + :type v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25134,10 +26874,9 @@ def v1_device_routing_ospfv3_statistics_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_ospfv3_statistics_get_serialize( + _param = self._v1_device_snapshot_post_serialize( authorization=authorization, - device_id=device_id, - vrf_names=vrf_names, + v1_device_snapshot_post_request=v1_device_snapshot_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25145,7 +26884,7 @@ def v1_device_routing_ospfv3_statistics_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingOspfv3StatisticsGetResponse", + '201': "object", } response_data = self.api_client.call_api( *_param, @@ -25154,11 +26893,10 @@ def v1_device_routing_ospfv3_statistics_get_without_preload_content( return response_data.response - def _v1_device_routing_ospfv3_statistics_get_serialize( + def _v1_device_snapshot_post_serialize( self, authorization, - device_id, - vrf_names, + v1_device_snapshot_post_request, _request_auth, _content_type, _headers, @@ -25168,7 +26906,6 @@ def _v1_device_routing_ospfv3_statistics_get_serialize( _host = None _collection_formats: Dict[str, str] = { - 'vrfNames': 'multi', } _path_params: Dict[str, str] = {} @@ -25182,19 +26919,13 @@ def _v1_device_routing_ospfv3_statistics_get_serialize( # process the path parameters # process the query parameters - if device_id is not None: - - _query_params.append(('deviceId', device_id)) - - if vrf_names is not None: - - _query_params.append(('vrfNames', vrf_names)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_device_snapshot_post_request is not None: + _body_params = v1_device_snapshot_post_request # set the HTTP header `Accept` @@ -25205,6 +26936,19 @@ def _v1_device_routing_ospfv3_statistics_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] = [ @@ -25212,8 +26956,8 @@ def _v1_device_routing_ospfv3_statistics_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/device/routing/ospfv3/statistics', + method='POST', + resource_path='/v1/device/snapshot', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25230,12 +26974,10 @@ def _v1_device_routing_ospfv3_statistics_get_serialize( @validate_call - def v1_device_routing_rib_route_count_post( + def v1_device_snapshot_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[List[StrictStr], Field(description="Valid configured VRF names")], - body: Dict[str, Any], + v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25248,19 +26990,15 @@ def v1_device_routing_rib_route_count_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingRibRouteCountPostResponse: - """v1_device_routing_rib_route_count_post + ) -> object: + """v1_device_snapshot_put - Get BGP VRF installed route count + Update an existing device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF names (required) - :type vrf_name: List[str] - :param body: (required) - :type body: object + :param v1_device_snapshot_put_request: (required) + :type v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25283,11 +27021,9 @@ def v1_device_routing_rib_route_count_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_rib_route_count_post_serialize( + _param = self._v1_device_snapshot_put_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, - body=body, + v1_device_snapshot_put_request=v1_device_snapshot_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25295,7 +27031,7 @@ def v1_device_routing_rib_route_count_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingRibRouteCountPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -25309,12 +27045,10 @@ def v1_device_routing_rib_route_count_post( @validate_call - def v1_device_routing_rib_route_count_post_with_http_info( + def v1_device_snapshot_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[List[StrictStr], Field(description="Valid configured VRF names")], - body: Dict[str, Any], + v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25327,19 +27061,15 @@ def v1_device_routing_rib_route_count_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[V1DeviceRoutingRibRouteCountPostResponse]: - """v1_device_routing_rib_route_count_post + ) -> ApiResponse[object]: + """v1_device_snapshot_put - Get BGP VRF installed route count + Update an existing device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF names (required) - :type vrf_name: List[str] - :param body: (required) - :type body: object + :param v1_device_snapshot_put_request: (required) + :type v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25362,11 +27092,9 @@ def v1_device_routing_rib_route_count_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_rib_route_count_post_serialize( + _param = self._v1_device_snapshot_put_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, - body=body, + v1_device_snapshot_put_request=v1_device_snapshot_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25374,7 +27102,7 @@ def v1_device_routing_rib_route_count_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingRibRouteCountPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -25388,12 +27116,10 @@ def v1_device_routing_rib_route_count_post_with_http_info( @validate_call - def v1_device_routing_rib_route_count_post_without_preload_content( + def v1_device_snapshot_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[List[StrictStr], Field(description="Valid configured VRF names")], - body: Dict[str, Any], + v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25407,18 +27133,14 @@ def v1_device_routing_rib_route_count_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_rib_route_count_post + """v1_device_snapshot_put - Get BGP VRF installed route count + Update an existing device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF names (required) - :type vrf_name: List[str] - :param body: (required) - :type body: object + :param v1_device_snapshot_put_request: (required) + :type v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25441,11 +27163,9 @@ def v1_device_routing_rib_route_count_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_rib_route_count_post_serialize( + _param = self._v1_device_snapshot_put_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, - body=body, + v1_device_snapshot_put_request=v1_device_snapshot_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25453,7 +27173,7 @@ def v1_device_routing_rib_route_count_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingRibRouteCountPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -25462,12 +27182,10 @@ def v1_device_routing_rib_route_count_post_without_preload_content( return response_data.response - def _v1_device_routing_rib_route_count_post_serialize( + def _v1_device_snapshot_put_serialize( self, authorization, - device_id, - vrf_name, - body, + v1_device_snapshot_put_request, _request_auth, _content_type, _headers, @@ -25477,7 +27195,6 @@ def _v1_device_routing_rib_route_count_post_serialize( _host = None _collection_formats: Dict[str, str] = { - 'vrfName': 'multi', } _path_params: Dict[str, str] = {} @@ -25491,21 +27208,13 @@ def _v1_device_routing_rib_route_count_post_serialize( # process the path parameters # process the query parameters - if device_id is not None: - - _query_params.append(('deviceId', device_id)) - - if vrf_name is not None: - - _query_params.append(('vrfName', vrf_name)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if body is not None: - _body_params = body + if v1_device_snapshot_put_request is not None: + _body_params = v1_device_snapshot_put_request # set the HTTP header `Accept` @@ -25536,8 +27245,8 @@ def _v1_device_routing_rib_route_count_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/device/routing/rib/route-count', + method='PUT', + resource_path='/v1/device/snapshot', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25554,11 +27263,10 @@ def _v1_device_routing_rib_route_count_post_serialize( @validate_call - def v1_device_routing_vrf_bgp_eibgp_route_count_get( + def v1_device_snapshot_snapshot_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], + snapshot_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25571,17 +27279,15 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse: - """v1_device_routing_vrf_bgp_eibgp_route_count_get + ) -> None: + """v1_device_snapshot_snapshot_id_delete - Get eBGP/iBGP VRF route count + Delete specified device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF names (required) - :type vrf_name: str + :param snapshot_id: (required) + :type snapshot_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25604,10 +27310,9 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_vrf_bgp_eibgp_route_count_get_serialize( + _param = self._v1_device_snapshot_snapshot_id_delete_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, + snapshot_id=snapshot_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25615,7 +27320,7 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -25629,11 +27334,10 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_get( @validate_call - def v1_device_routing_vrf_bgp_eibgp_route_count_get_with_http_info( + def v1_device_snapshot_snapshot_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], + snapshot_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25646,17 +27350,15 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_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[V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse]: - """v1_device_routing_vrf_bgp_eibgp_route_count_get + ) -> ApiResponse[None]: + """v1_device_snapshot_snapshot_id_delete - Get eBGP/iBGP VRF route count + Delete specified device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF names (required) - :type vrf_name: str + :param snapshot_id: (required) + :type snapshot_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25679,10 +27381,9 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_vrf_bgp_eibgp_route_count_get_serialize( + _param = self._v1_device_snapshot_snapshot_id_delete_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, + snapshot_id=snapshot_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25690,7 +27391,7 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -25704,11 +27405,10 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_get_with_http_info( @validate_call - def v1_device_routing_vrf_bgp_eibgp_route_count_get_without_preload_content( + def v1_device_snapshot_snapshot_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], + snapshot_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25722,16 +27422,14 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_vrf_bgp_eibgp_route_count_get + """v1_device_snapshot_snapshot_id_delete - Get eBGP/iBGP VRF route count + Delete specified device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) - :type device_id: int - :param vrf_name: Valid configured VRF names (required) - :type vrf_name: str + :param snapshot_id: (required) + :type snapshot_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25754,10 +27452,9 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_vrf_bgp_eibgp_route_count_get_serialize( + _param = self._v1_device_snapshot_snapshot_id_delete_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, + snapshot_id=snapshot_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25765,7 +27462,7 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingVrfBgpEibgpRouteCountGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -25774,11 +27471,10 @@ def v1_device_routing_vrf_bgp_eibgp_route_count_get_without_preload_content( return response_data.response - def _v1_device_routing_vrf_bgp_eibgp_route_count_get_serialize( + def _v1_device_snapshot_snapshot_id_delete_serialize( self, authorization, - device_id, - vrf_name, + snapshot_id, _request_auth, _content_type, _headers, @@ -25800,15 +27496,9 @@ def _v1_device_routing_vrf_bgp_eibgp_route_count_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if snapshot_id is not None: + _path_params['snapshotId'] = snapshot_id # process the query parameters - if device_id is not None: - - _query_params.append(('deviceId', device_id)) - - if vrf_name is not None: - - _query_params.append(('vrfName', vrf_name)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -25816,13 +27506,6 @@ def _v1_device_routing_vrf_bgp_eibgp_route_count_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 @@ -25831,8 +27514,8 @@ def _v1_device_routing_vrf_bgp_eibgp_route_count_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/device/routing/vrf/bgp/eibgp-route-count', + method='DELETE', + resource_path='/v1/device/snapshot/{snapshotId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -25849,10 +27532,10 @@ def _v1_device_routing_vrf_bgp_eibgp_route_count_get_serialize( @validate_call - def v1_device_routing_vrf_bgp_route_count_post( + def v1_device_status_history_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest, + v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25865,15 +27548,14 @@ def v1_device_routing_vrf_bgp_route_count_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceRoutingVrfBgpRouteCountPostResponse: - """v1_device_routing_vrf_bgp_route_count_post + ) -> V1DeviceStatusHistoryPostResponse: + """v1_device_status_history_post - Get BGP VRF route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_routing_vrf_bgp_route_count_post_request: (required) - :type v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest + :param v1_device_status_history_post_request: (required) + :type v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25896,9 +27578,9 @@ def v1_device_routing_vrf_bgp_route_count_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_vrf_bgp_route_count_post_serialize( + _param = self._v1_device_status_history_post_serialize( authorization=authorization, - v1_device_routing_vrf_bgp_route_count_post_request=v1_device_routing_vrf_bgp_route_count_post_request, + v1_device_status_history_post_request=v1_device_status_history_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25906,7 +27588,7 @@ def v1_device_routing_vrf_bgp_route_count_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingVrfBgpRouteCountPostResponse", + '200': "V1DeviceStatusHistoryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -25920,10 +27602,10 @@ def v1_device_routing_vrf_bgp_route_count_post( @validate_call - def v1_device_routing_vrf_bgp_route_count_post_with_http_info( + def v1_device_status_history_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest, + v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -25936,15 +27618,14 @@ def v1_device_routing_vrf_bgp_route_count_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[V1DeviceRoutingVrfBgpRouteCountPostResponse]: - """v1_device_routing_vrf_bgp_route_count_post + ) -> ApiResponse[V1DeviceStatusHistoryPostResponse]: + """v1_device_status_history_post - Get BGP VRF route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_routing_vrf_bgp_route_count_post_request: (required) - :type v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest + :param v1_device_status_history_post_request: (required) + :type v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -25967,9 +27648,9 @@ def v1_device_routing_vrf_bgp_route_count_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_vrf_bgp_route_count_post_serialize( + _param = self._v1_device_status_history_post_serialize( authorization=authorization, - v1_device_routing_vrf_bgp_route_count_post_request=v1_device_routing_vrf_bgp_route_count_post_request, + v1_device_status_history_post_request=v1_device_status_history_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -25977,7 +27658,7 @@ def v1_device_routing_vrf_bgp_route_count_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingVrfBgpRouteCountPostResponse", + '200': "V1DeviceStatusHistoryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -25991,10 +27672,10 @@ def v1_device_routing_vrf_bgp_route_count_post_with_http_info( @validate_call - def v1_device_routing_vrf_bgp_route_count_post_without_preload_content( + def v1_device_status_history_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest, + v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26008,14 +27689,13 @@ def v1_device_routing_vrf_bgp_route_count_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_routing_vrf_bgp_route_count_post + """v1_device_status_history_post - Get BGP VRF route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_routing_vrf_bgp_route_count_post_request: (required) - :type v1_device_routing_vrf_bgp_route_count_post_request: V1DeviceRoutingVrfBgpRouteCountPostRequest + :param v1_device_status_history_post_request: (required) + :type v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26038,9 +27718,9 @@ def v1_device_routing_vrf_bgp_route_count_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_routing_vrf_bgp_route_count_post_serialize( + _param = self._v1_device_status_history_post_serialize( authorization=authorization, - v1_device_routing_vrf_bgp_route_count_post_request=v1_device_routing_vrf_bgp_route_count_post_request, + v1_device_status_history_post_request=v1_device_status_history_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26048,7 +27728,7 @@ def v1_device_routing_vrf_bgp_route_count_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceRoutingVrfBgpRouteCountPostResponse", + '200': "V1DeviceStatusHistoryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -26057,10 +27737,10 @@ def v1_device_routing_vrf_bgp_route_count_post_without_preload_content( return response_data.response - def _v1_device_routing_vrf_bgp_route_count_post_serialize( + def _v1_device_status_history_post_serialize( self, authorization, - v1_device_routing_vrf_bgp_route_count_post_request, + v1_device_status_history_post_request, _request_auth, _content_type, _headers, @@ -26088,8 +27768,8 @@ def _v1_device_routing_vrf_bgp_route_count_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_device_routing_vrf_bgp_route_count_post_request is not None: - _body_params = v1_device_routing_vrf_bgp_route_count_post_request + if v1_device_status_history_post_request is not None: + _body_params = v1_device_status_history_post_request # set the HTTP header `Accept` @@ -26121,7 +27801,7 @@ def _v1_device_routing_vrf_bgp_route_count_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/device/routing/vrf/bgp/route-count', + resource_path='/v1/device-status/history', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26138,10 +27818,10 @@ def _v1_device_routing_vrf_bgp_route_count_post_serialize( @validate_call - def v1_device_snapshot_device_id_get( + def v1_device_status_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + v1_device_status_post_request: V1DeviceStatusPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26154,15 +27834,14 @@ def v1_device_snapshot_device_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceSnapshotDeviceIdGetResponse: - """v1_device_snapshot_device_id_get + ) -> V1DeviceStatusPostResponse: + """v1_device_status_post - Get all of a device's snapshots :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param v1_device_status_post_request: (required) + :type v1_device_status_post_request: V1DeviceStatusPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26185,9 +27864,9 @@ def v1_device_snapshot_device_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_device_id_get_serialize( + _param = self._v1_device_status_post_serialize( authorization=authorization, - device_id=device_id, + v1_device_status_post_request=v1_device_status_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26195,7 +27874,7 @@ def v1_device_snapshot_device_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceSnapshotDeviceIdGetResponse", + '200': "V1DeviceStatusPostResponse", } response_data = self.api_client.call_api( *_param, @@ -26209,10 +27888,10 @@ def v1_device_snapshot_device_id_get( @validate_call - def v1_device_snapshot_device_id_get_with_http_info( + def v1_device_status_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + v1_device_status_post_request: V1DeviceStatusPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26225,15 +27904,14 @@ def v1_device_snapshot_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[V1DeviceSnapshotDeviceIdGetResponse]: - """v1_device_snapshot_device_id_get + ) -> ApiResponse[V1DeviceStatusPostResponse]: + """v1_device_status_post - Get all of a device's snapshots :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param v1_device_status_post_request: (required) + :type v1_device_status_post_request: V1DeviceStatusPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26256,9 +27934,9 @@ def v1_device_snapshot_device_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_device_id_get_serialize( + _param = self._v1_device_status_post_serialize( authorization=authorization, - device_id=device_id, + v1_device_status_post_request=v1_device_status_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26266,7 +27944,7 @@ def v1_device_snapshot_device_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceSnapshotDeviceIdGetResponse", + '200': "V1DeviceStatusPostResponse", } response_data = self.api_client.call_api( *_param, @@ -26280,10 +27958,10 @@ def v1_device_snapshot_device_id_get_with_http_info( @validate_call - def v1_device_snapshot_device_id_get_without_preload_content( + def v1_device_status_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + v1_device_status_post_request: V1DeviceStatusPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26297,14 +27975,13 @@ def v1_device_snapshot_device_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_snapshot_device_id_get + """v1_device_status_post - Get all of a device's snapshots :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param v1_device_status_post_request: (required) + :type v1_device_status_post_request: V1DeviceStatusPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26327,9 +28004,9 @@ def v1_device_snapshot_device_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_device_id_get_serialize( + _param = self._v1_device_status_post_serialize( authorization=authorization, - device_id=device_id, + v1_device_status_post_request=v1_device_status_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26337,7 +28014,7 @@ def v1_device_snapshot_device_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceSnapshotDeviceIdGetResponse", + '200': "V1DeviceStatusPostResponse", } response_data = self.api_client.call_api( *_param, @@ -26346,10 +28023,10 @@ def v1_device_snapshot_device_id_get_without_preload_content( return response_data.response - def _v1_device_snapshot_device_id_get_serialize( + def _v1_device_status_post_serialize( self, authorization, - device_id, + v1_device_status_post_request, _request_auth, _content_type, _headers, @@ -26371,14 +28048,14 @@ def _v1_device_snapshot_device_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_device_status_post_request is not None: + _body_params = v1_device_status_post_request # set the HTTP header `Accept` @@ -26389,6 +28066,19 @@ def _v1_device_snapshot_device_id_get_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -26396,8 +28086,8 @@ def _v1_device_snapshot_device_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/device/snapshot/{deviceId}', + method='POST', + resource_path='/v1/device-status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26414,9 +28104,10 @@ def _v1_device_snapshot_device_id_get_serialize( @validate_call - def v1_device_snapshot_get( + def v1_devices_bringup_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_bringup_post_request: V1DevicesBringupPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26429,13 +28120,14 @@ def v1_device_snapshot_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceSnapshotGetResponse: - """v1_device_snapshot_get + ) -> V1DevicesBringupPostResponse: + """v1_devices_bringup_post - Get the specified device snapshots using the snapshot id :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_devices_bringup_post_request: (required) + :type v1_devices_bringup_post_request: V1DevicesBringupPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26458,8 +28150,9 @@ def v1_device_snapshot_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_get_serialize( + _param = self._v1_devices_bringup_post_serialize( authorization=authorization, + v1_devices_bringup_post_request=v1_devices_bringup_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26467,7 +28160,7 @@ def v1_device_snapshot_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceSnapshotGetResponse", + '200': "V1DevicesBringupPostResponse", } response_data = self.api_client.call_api( *_param, @@ -26481,9 +28174,10 @@ def v1_device_snapshot_get( @validate_call - def v1_device_snapshot_get_with_http_info( + def v1_devices_bringup_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_bringup_post_request: V1DevicesBringupPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26496,13 +28190,14 @@ def v1_device_snapshot_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[V1DeviceSnapshotGetResponse]: - """v1_device_snapshot_get + ) -> ApiResponse[V1DevicesBringupPostResponse]: + """v1_devices_bringup_post - Get the specified device snapshots using the snapshot id :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_devices_bringup_post_request: (required) + :type v1_devices_bringup_post_request: V1DevicesBringupPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26525,8 +28220,9 @@ def v1_device_snapshot_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_get_serialize( + _param = self._v1_devices_bringup_post_serialize( authorization=authorization, + v1_devices_bringup_post_request=v1_devices_bringup_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26534,7 +28230,7 @@ def v1_device_snapshot_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceSnapshotGetResponse", + '200': "V1DevicesBringupPostResponse", } response_data = self.api_client.call_api( *_param, @@ -26548,9 +28244,10 @@ def v1_device_snapshot_get_with_http_info( @validate_call - def v1_device_snapshot_get_without_preload_content( + def v1_devices_bringup_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_bringup_post_request: V1DevicesBringupPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26564,12 +28261,13 @@ def v1_device_snapshot_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_snapshot_get + """v1_devices_bringup_post - Get the specified device snapshots using the snapshot id :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_devices_bringup_post_request: (required) + :type v1_devices_bringup_post_request: V1DevicesBringupPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26592,8 +28290,9 @@ def v1_device_snapshot_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_get_serialize( + _param = self._v1_devices_bringup_post_serialize( authorization=authorization, + v1_devices_bringup_post_request=v1_devices_bringup_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26601,7 +28300,7 @@ def v1_device_snapshot_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceSnapshotGetResponse", + '200': "V1DevicesBringupPostResponse", } response_data = self.api_client.call_api( *_param, @@ -26610,9 +28309,10 @@ def v1_device_snapshot_get_without_preload_content( return response_data.response - def _v1_device_snapshot_get_serialize( + def _v1_devices_bringup_post_serialize( self, authorization, + v1_devices_bringup_post_request, _request_auth, _content_type, _headers, @@ -26640,6 +28340,8 @@ def _v1_device_snapshot_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_devices_bringup_post_request is not None: + _body_params = v1_devices_bringup_post_request # set the HTTP header `Accept` @@ -26650,6 +28352,19 @@ def _v1_device_snapshot_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] = [ @@ -26657,8 +28372,8 @@ def _v1_device_snapshot_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/device/snapshot', + method='POST', + resource_path='/v1/devices/bringup', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26675,10 +28390,10 @@ def _v1_device_snapshot_get_serialize( @validate_call - def v1_device_snapshot_post( + def v1_devices_bringup_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest, + v1_devices_bringup_put_request: V1DevicesBringupPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26691,15 +28406,14 @@ def v1_device_snapshot_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_device_snapshot_post + ) -> None: + """v1_devices_bringup_put - Create a device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_snapshot_post_request: (required) - :type v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest + :param v1_devices_bringup_put_request: (required) + :type v1_devices_bringup_put_request: V1DevicesBringupPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26722,9 +28436,9 @@ def v1_device_snapshot_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_post_serialize( + _param = self._v1_devices_bringup_put_serialize( authorization=authorization, - v1_device_snapshot_post_request=v1_device_snapshot_post_request, + v1_devices_bringup_put_request=v1_devices_bringup_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26732,7 +28446,7 @@ def v1_device_snapshot_post( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -26746,10 +28460,10 @@ def v1_device_snapshot_post( @validate_call - def v1_device_snapshot_post_with_http_info( + def v1_devices_bringup_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest, + v1_devices_bringup_put_request: V1DevicesBringupPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26762,15 +28476,14 @@ def v1_device_snapshot_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_device_snapshot_post + ) -> ApiResponse[None]: + """v1_devices_bringup_put - Create a device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_snapshot_post_request: (required) - :type v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest + :param v1_devices_bringup_put_request: (required) + :type v1_devices_bringup_put_request: V1DevicesBringupPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26793,9 +28506,9 @@ def v1_device_snapshot_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_post_serialize( + _param = self._v1_devices_bringup_put_serialize( authorization=authorization, - v1_device_snapshot_post_request=v1_device_snapshot_post_request, + v1_devices_bringup_put_request=v1_devices_bringup_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26803,7 +28516,7 @@ def v1_device_snapshot_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -26817,10 +28530,10 @@ def v1_device_snapshot_post_with_http_info( @validate_call - def v1_device_snapshot_post_without_preload_content( + def v1_devices_bringup_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest, + v1_devices_bringup_put_request: V1DevicesBringupPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26834,14 +28547,13 @@ def v1_device_snapshot_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_snapshot_post + """v1_devices_bringup_put - Create a device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_snapshot_post_request: (required) - :type v1_device_snapshot_post_request: V1DeviceSnapshotPostRequest + :param v1_devices_bringup_put_request: (required) + :type v1_devices_bringup_put_request: V1DevicesBringupPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -26864,9 +28576,9 @@ def v1_device_snapshot_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_post_serialize( + _param = self._v1_devices_bringup_put_serialize( authorization=authorization, - v1_device_snapshot_post_request=v1_device_snapshot_post_request, + v1_devices_bringup_put_request=v1_devices_bringup_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -26874,7 +28586,7 @@ def v1_device_snapshot_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -26883,10 +28595,10 @@ def v1_device_snapshot_post_without_preload_content( return response_data.response - def _v1_device_snapshot_post_serialize( + def _v1_devices_bringup_put_serialize( self, authorization, - v1_device_snapshot_post_request, + v1_devices_bringup_put_request, _request_auth, _content_type, _headers, @@ -26914,17 +28626,10 @@ def _v1_device_snapshot_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_device_snapshot_post_request is not None: - _body_params = v1_device_snapshot_post_request + if v1_devices_bringup_put_request is not None: + _body_params = v1_devices_bringup_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: @@ -26946,8 +28651,8 @@ def _v1_device_snapshot_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/device/snapshot', + method='PUT', + resource_path='/v1/devices/bringup', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -26964,10 +28669,10 @@ def _v1_device_snapshot_post_serialize( @validate_call - def v1_device_snapshot_put( + def v1_devices_bringup_token_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest, + v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -26980,15 +28685,15 @@ def v1_device_snapshot_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_device_snapshot_put + ) -> V1DevicesBringupTokenPostResponse: + """v1_devices_bringup_token_post - Update an existing device snapshot + VM edge onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_snapshot_put_request: (required) - :type v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest + :param v1_devices_bringup_token_post_request: (required) + :type v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27011,9 +28716,9 @@ def v1_device_snapshot_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_put_serialize( + _param = self._v1_devices_bringup_token_post_serialize( authorization=authorization, - v1_device_snapshot_put_request=v1_device_snapshot_put_request, + v1_devices_bringup_token_post_request=v1_devices_bringup_token_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27021,7 +28726,7 @@ def v1_device_snapshot_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DevicesBringupTokenPostResponse", } response_data = self.api_client.call_api( *_param, @@ -27035,10 +28740,10 @@ def v1_device_snapshot_put( @validate_call - def v1_device_snapshot_put_with_http_info( + def v1_devices_bringup_token_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest, + v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27051,15 +28756,15 @@ def v1_device_snapshot_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_device_snapshot_put + ) -> ApiResponse[V1DevicesBringupTokenPostResponse]: + """v1_devices_bringup_token_post - Update an existing device snapshot + VM edge onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_snapshot_put_request: (required) - :type v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest + :param v1_devices_bringup_token_post_request: (required) + :type v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27082,9 +28787,9 @@ def v1_device_snapshot_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_put_serialize( + _param = self._v1_devices_bringup_token_post_serialize( authorization=authorization, - v1_device_snapshot_put_request=v1_device_snapshot_put_request, + v1_devices_bringup_token_post_request=v1_devices_bringup_token_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27092,7 +28797,7 @@ def v1_device_snapshot_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DevicesBringupTokenPostResponse", } response_data = self.api_client.call_api( *_param, @@ -27106,10 +28811,10 @@ def v1_device_snapshot_put_with_http_info( @validate_call - def v1_device_snapshot_put_without_preload_content( + def v1_devices_bringup_token_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest, + v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27123,14 +28828,14 @@ def v1_device_snapshot_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_snapshot_put + """v1_devices_bringup_token_post - Update an existing device snapshot + VM edge onboarding token :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_snapshot_put_request: (required) - :type v1_device_snapshot_put_request: V1DeviceSnapshotPutRequest + :param v1_devices_bringup_token_post_request: (required) + :type v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -27153,9 +28858,9 @@ def v1_device_snapshot_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_put_serialize( + _param = self._v1_devices_bringup_token_post_serialize( authorization=authorization, - v1_device_snapshot_put_request=v1_device_snapshot_put_request, + v1_devices_bringup_token_post_request=v1_devices_bringup_token_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27163,7 +28868,7 @@ def v1_device_snapshot_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DevicesBringupTokenPostResponse", } response_data = self.api_client.call_api( *_param, @@ -27172,10 +28877,10 @@ def v1_device_snapshot_put_without_preload_content( return response_data.response - def _v1_device_snapshot_put_serialize( + def _v1_devices_bringup_token_post_serialize( self, authorization, - v1_device_snapshot_put_request, + v1_devices_bringup_token_post_request, _request_auth, _content_type, _headers, @@ -27203,8 +28908,8 @@ def _v1_device_snapshot_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_device_snapshot_put_request is not None: - _body_params = v1_device_snapshot_put_request + if v1_devices_bringup_token_post_request is not None: + _body_params = v1_devices_bringup_token_post_request # set the HTTP header `Accept` @@ -27235,8 +28940,8 @@ def _v1_device_snapshot_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/device/snapshot', + method='POST', + resource_path='/v1/devices/bringup/token', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27253,10 +28958,10 @@ def _v1_device_snapshot_put_serialize( @validate_call - def v1_device_snapshot_snapshot_id_delete( + def v1_devices_clear_new_flag_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - snapshot_id: StrictInt, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27269,15 +28974,14 @@ def v1_device_snapshot_snapshot_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_device_snapshot_snapshot_id_delete + ) -> object: + """v1_devices_clear_new_flag_post - Delete specified device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param snapshot_id: (required) - :type snapshot_id: int + :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 @@ -27300,9 +29004,9 @@ def v1_device_snapshot_snapshot_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_snapshot_id_delete_serialize( + _param = self._v1_devices_clear_new_flag_post_serialize( authorization=authorization, - snapshot_id=snapshot_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27310,7 +29014,7 @@ def v1_device_snapshot_snapshot_id_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -27324,10 +29028,10 @@ def v1_device_snapshot_snapshot_id_delete( @validate_call - def v1_device_snapshot_snapshot_id_delete_with_http_info( + def v1_devices_clear_new_flag_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - snapshot_id: StrictInt, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27340,15 +29044,14 @@ def v1_device_snapshot_snapshot_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_device_snapshot_snapshot_id_delete + ) -> ApiResponse[object]: + """v1_devices_clear_new_flag_post - Delete specified device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param snapshot_id: (required) - :type snapshot_id: int + :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 @@ -27371,9 +29074,9 @@ def v1_device_snapshot_snapshot_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_snapshot_id_delete_serialize( + _param = self._v1_devices_clear_new_flag_post_serialize( authorization=authorization, - snapshot_id=snapshot_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27381,7 +29084,7 @@ def v1_device_snapshot_snapshot_id_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -27395,10 +29098,10 @@ def v1_device_snapshot_snapshot_id_delete_with_http_info( @validate_call - def v1_device_snapshot_snapshot_id_delete_without_preload_content( + def v1_devices_clear_new_flag_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - snapshot_id: StrictInt, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27412,14 +29115,13 @@ def v1_device_snapshot_snapshot_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_snapshot_snapshot_id_delete + """v1_devices_clear_new_flag_post - Delete specified device snapshot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param snapshot_id: (required) - :type snapshot_id: int + :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 @@ -27442,9 +29144,9 @@ def v1_device_snapshot_snapshot_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_snapshot_snapshot_id_delete_serialize( + _param = self._v1_devices_clear_new_flag_post_serialize( authorization=authorization, - snapshot_id=snapshot_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27452,7 +29154,7 @@ def v1_device_snapshot_snapshot_id_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -27461,10 +29163,10 @@ def v1_device_snapshot_snapshot_id_delete_without_preload_content( return response_data.response - def _v1_device_snapshot_snapshot_id_delete_serialize( + def _v1_devices_clear_new_flag_post_serialize( self, authorization, - snapshot_id, + body, _request_auth, _content_type, _headers, @@ -27486,17 +29188,37 @@ def _v1_device_snapshot_snapshot_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if snapshot_id is not None: - _path_params['snapshotId'] = snapshot_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] = [ @@ -27504,8 +29226,8 @@ def _v1_device_snapshot_snapshot_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/device/snapshot/{snapshotId}', + method='POST', + resource_path='/v1/devices/clear-new-flag', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27522,10 +29244,10 @@ def _v1_device_snapshot_snapshot_id_delete_serialize( @validate_call - def v1_device_status_history_post( + def v1_devices_device_id_arp_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27538,14 +29260,15 @@ def v1_device_status_history_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceStatusHistoryPostResponse: - """v1_device_status_history_post + ) -> V1DevicesDeviceIdArpGetResponse: + """v1_devices_device_id_arp_get + Get ARP monitoring table for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_status_history_post_request: (required) - :type v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest + :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 @@ -27568,9 +29291,9 @@ def v1_device_status_history_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_status_history_post_serialize( + _param = self._v1_devices_device_id_arp_get_serialize( authorization=authorization, - v1_device_status_history_post_request=v1_device_status_history_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27578,7 +29301,7 @@ def v1_device_status_history_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceStatusHistoryPostResponse", + '200': "V1DevicesDeviceIdArpGetResponse", } response_data = self.api_client.call_api( *_param, @@ -27592,10 +29315,10 @@ def v1_device_status_history_post( @validate_call - def v1_device_status_history_post_with_http_info( + def v1_devices_device_id_arp_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27608,14 +29331,15 @@ def v1_device_status_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[V1DeviceStatusHistoryPostResponse]: - """v1_device_status_history_post + ) -> ApiResponse[V1DevicesDeviceIdArpGetResponse]: + """v1_devices_device_id_arp_get + Get ARP monitoring table for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_status_history_post_request: (required) - :type v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest + :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 @@ -27638,9 +29362,9 @@ def v1_device_status_history_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_status_history_post_serialize( + _param = self._v1_devices_device_id_arp_get_serialize( authorization=authorization, - v1_device_status_history_post_request=v1_device_status_history_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27648,7 +29372,7 @@ def v1_device_status_history_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceStatusHistoryPostResponse", + '200': "V1DevicesDeviceIdArpGetResponse", } response_data = self.api_client.call_api( *_param, @@ -27662,10 +29386,10 @@ def v1_device_status_history_post_with_http_info( @validate_call - def v1_device_status_history_post_without_preload_content( + def v1_devices_device_id_arp_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27679,13 +29403,14 @@ def v1_device_status_history_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_status_history_post + """v1_devices_device_id_arp_get + Get ARP monitoring table for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_status_history_post_request: (required) - :type v1_device_status_history_post_request: V1DeviceStatusHistoryPostRequest + :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 @@ -27708,9 +29433,9 @@ def v1_device_status_history_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_status_history_post_serialize( + _param = self._v1_devices_device_id_arp_get_serialize( authorization=authorization, - v1_device_status_history_post_request=v1_device_status_history_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27718,7 +29443,7 @@ def v1_device_status_history_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceStatusHistoryPostResponse", + '200': "V1DevicesDeviceIdArpGetResponse", } response_data = self.api_client.call_api( *_param, @@ -27727,10 +29452,10 @@ def v1_device_status_history_post_without_preload_content( return response_data.response - def _v1_device_status_history_post_serialize( + def _v1_devices_device_id_arp_get_serialize( self, authorization, - v1_device_status_history_post_request, + device_id, _request_auth, _content_type, _headers, @@ -27752,14 +29477,14 @@ def _v1_device_status_history_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_device_status_history_post_request is not None: - _body_params = v1_device_status_history_post_request # set the HTTP header `Accept` @@ -27770,19 +29495,6 @@ def _v1_device_status_history_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] = [ @@ -27790,8 +29502,8 @@ def _v1_device_status_history_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/device-status/history', + method='GET', + resource_path='/v1/devices/{deviceId}/arp', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -27808,10 +29520,10 @@ def _v1_device_status_history_post_serialize( @validate_call - def v1_device_status_post( + def v1_devices_device_id_candidate_circuits_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_status_post_request: V1DeviceStatusPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27824,14 +29536,15 @@ def v1_device_status_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DeviceStatusPostResponse: - """v1_device_status_post + ) -> V1DevicesDeviceIdCandidateCircuitsGetResponse: + """v1_devices_device_id_candidate_circuits_get + Get the candidate circuits for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_status_post_request: (required) - :type v1_device_status_post_request: V1DeviceStatusPostRequest + :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 @@ -27854,9 +29567,9 @@ def v1_device_status_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_status_post_serialize( + _param = self._v1_devices_device_id_candidate_circuits_get_serialize( authorization=authorization, - v1_device_status_post_request=v1_device_status_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27864,7 +29577,7 @@ def v1_device_status_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceStatusPostResponse", + '200': "V1DevicesDeviceIdCandidateCircuitsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -27878,10 +29591,10 @@ def v1_device_status_post( @validate_call - def v1_device_status_post_with_http_info( + def v1_devices_device_id_candidate_circuits_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_status_post_request: V1DeviceStatusPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27894,14 +29607,15 @@ def v1_device_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[V1DeviceStatusPostResponse]: - """v1_device_status_post + ) -> ApiResponse[V1DevicesDeviceIdCandidateCircuitsGetResponse]: + """v1_devices_device_id_candidate_circuits_get + Get the candidate circuits for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_status_post_request: (required) - :type v1_device_status_post_request: V1DeviceStatusPostRequest + :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 @@ -27924,9 +29638,9 @@ def v1_device_status_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_status_post_serialize( + _param = self._v1_devices_device_id_candidate_circuits_get_serialize( authorization=authorization, - v1_device_status_post_request=v1_device_status_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -27934,7 +29648,7 @@ def v1_device_status_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceStatusPostResponse", + '200': "V1DevicesDeviceIdCandidateCircuitsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -27948,10 +29662,10 @@ def v1_device_status_post_with_http_info( @validate_call - def v1_device_status_post_without_preload_content( + def v1_devices_device_id_candidate_circuits_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_device_status_post_request: V1DeviceStatusPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -27965,13 +29679,14 @@ def v1_device_status_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_device_status_post + """v1_devices_device_id_candidate_circuits_get + Get the candidate circuits for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_device_status_post_request: (required) - :type v1_device_status_post_request: V1DeviceStatusPostRequest + :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 @@ -27994,9 +29709,9 @@ def v1_device_status_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_device_status_post_serialize( + _param = self._v1_devices_device_id_candidate_circuits_get_serialize( authorization=authorization, - v1_device_status_post_request=v1_device_status_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28004,7 +29719,7 @@ def v1_device_status_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DeviceStatusPostResponse", + '200': "V1DevicesDeviceIdCandidateCircuitsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -28013,10 +29728,10 @@ def v1_device_status_post_without_preload_content( return response_data.response - def _v1_device_status_post_serialize( + def _v1_devices_device_id_candidate_circuits_get_serialize( self, authorization, - v1_device_status_post_request, + device_id, _request_auth, _content_type, _headers, @@ -28038,14 +29753,14 @@ def _v1_device_status_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_device_status_post_request is not None: - _body_params = v1_device_status_post_request # set the HTTP header `Accept` @@ -28056,19 +29771,6 @@ def _v1_device_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] = [ @@ -28076,8 +29778,8 @@ def _v1_device_status_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/device-status', + method='GET', + resource_path='/v1/devices/{deviceId}/candidate-circuits', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28094,10 +29796,11 @@ def _v1_device_status_post_serialize( @validate_call - def v1_devices_bringup_post( + def v1_devices_device_id_circuits_vrf_associations_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_bringup_post_request: V1DevicesBringupPostRequest, + device_id: StrictInt, + circuit_names: Annotated[Optional[List[StrictStr]], Field(description="Circuit name configured of wan interface")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28110,14 +29813,17 @@ def v1_devices_bringup_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesBringupPostResponse: - """v1_devices_bringup_post + ) -> V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse: + """v1_devices_device_id_circuits_vrf_associations_get + Get the VRF, interface, &, if relevant, loopback interfaces for a list of circuits :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_bringup_post_request: (required) - :type v1_devices_bringup_post_request: V1DevicesBringupPostRequest + :param device_id: (required) + :type device_id: int + :param circuit_names: Circuit name configured of wan interface + :type circuit_names: 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 @@ -28140,9 +29846,10 @@ def v1_devices_bringup_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_bringup_post_serialize( + _param = self._v1_devices_device_id_circuits_vrf_associations_get_serialize( authorization=authorization, - v1_devices_bringup_post_request=v1_devices_bringup_post_request, + device_id=device_id, + circuit_names=circuit_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28150,7 +29857,7 @@ def v1_devices_bringup_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesBringupPostResponse", + '200': "V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -28164,10 +29871,11 @@ def v1_devices_bringup_post( @validate_call - def v1_devices_bringup_post_with_http_info( + def v1_devices_device_id_circuits_vrf_associations_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_bringup_post_request: V1DevicesBringupPostRequest, + device_id: StrictInt, + circuit_names: Annotated[Optional[List[StrictStr]], Field(description="Circuit name configured of wan interface")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28180,14 +29888,17 @@ def v1_devices_bringup_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[V1DevicesBringupPostResponse]: - """v1_devices_bringup_post + ) -> ApiResponse[V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse]: + """v1_devices_device_id_circuits_vrf_associations_get + Get the VRF, interface, &, if relevant, loopback interfaces for a list of circuits :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_bringup_post_request: (required) - :type v1_devices_bringup_post_request: V1DevicesBringupPostRequest + :param device_id: (required) + :type device_id: int + :param circuit_names: Circuit name configured of wan interface + :type circuit_names: 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 @@ -28210,9 +29921,10 @@ def v1_devices_bringup_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_bringup_post_serialize( + _param = self._v1_devices_device_id_circuits_vrf_associations_get_serialize( authorization=authorization, - v1_devices_bringup_post_request=v1_devices_bringup_post_request, + device_id=device_id, + circuit_names=circuit_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28220,7 +29932,7 @@ def v1_devices_bringup_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesBringupPostResponse", + '200': "V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -28234,10 +29946,11 @@ def v1_devices_bringup_post_with_http_info( @validate_call - def v1_devices_bringup_post_without_preload_content( + def v1_devices_device_id_circuits_vrf_associations_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_bringup_post_request: V1DevicesBringupPostRequest, + device_id: StrictInt, + circuit_names: Annotated[Optional[List[StrictStr]], Field(description="Circuit name configured of wan interface")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28251,13 +29964,16 @@ def v1_devices_bringup_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_bringup_post + """v1_devices_device_id_circuits_vrf_associations_get + Get the VRF, interface, &, if relevant, loopback interfaces for a list of circuits :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_bringup_post_request: (required) - :type v1_devices_bringup_post_request: V1DevicesBringupPostRequest + :param device_id: (required) + :type device_id: int + :param circuit_names: Circuit name configured of wan interface + :type circuit_names: 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 @@ -28280,9 +29996,10 @@ def v1_devices_bringup_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_bringup_post_serialize( + _param = self._v1_devices_device_id_circuits_vrf_associations_get_serialize( authorization=authorization, - v1_devices_bringup_post_request=v1_devices_bringup_post_request, + device_id=device_id, + circuit_names=circuit_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28290,7 +30007,7 @@ def v1_devices_bringup_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesBringupPostResponse", + '200': "V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -28299,10 +30016,11 @@ def v1_devices_bringup_post_without_preload_content( return response_data.response - def _v1_devices_bringup_post_serialize( + def _v1_devices_device_id_circuits_vrf_associations_get_serialize( self, authorization, - v1_devices_bringup_post_request, + device_id, + circuit_names, _request_auth, _content_type, _headers, @@ -28312,6 +30030,7 @@ def _v1_devices_bringup_post_serialize( _host = None _collection_formats: Dict[str, str] = { + 'circuitNames': 'multi', } _path_params: Dict[str, str] = {} @@ -28324,14 +30043,18 @@ def _v1_devices_bringup_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 + if circuit_names is not None: + + _query_params.append(('circuitNames', circuit_names)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_devices_bringup_post_request is not None: - _body_params = v1_devices_bringup_post_request # set the HTTP header `Accept` @@ -28342,19 +30065,6 @@ def _v1_devices_bringup_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] = [ @@ -28362,8 +30072,8 @@ def _v1_devices_bringup_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/devices/bringup', + method='GET', + resource_path='/v1/devices/{deviceId}/circuits/vrf-associations', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28380,10 +30090,11 @@ def _v1_devices_bringup_post_serialize( @validate_call - def v1_devices_bringup_put( + def v1_devices_device_id_config_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_bringup_put_request: V1DevicesBringupPutRequest, + device_id: StrictInt, + v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28396,14 +30107,17 @@ def v1_devices_bringup_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_devices_bringup_put + ) -> V1DevicesDeviceIdConfigPutResponse: + """v1_devices_device_id_config_put + Update a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_bringup_put_request: (required) - :type v1_devices_bringup_put_request: V1DevicesBringupPutRequest + :param device_id: (required) + :type device_id: int + :param v1_devices_device_id_config_put_request: (required) + :type v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28426,9 +30140,10 @@ def v1_devices_bringup_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_bringup_put_serialize( + _param = self._v1_devices_device_id_config_put_serialize( authorization=authorization, - v1_devices_bringup_put_request=v1_devices_bringup_put_request, + device_id=device_id, + v1_devices_device_id_config_put_request=v1_devices_device_id_config_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28436,7 +30151,7 @@ def v1_devices_bringup_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '202': "V1DevicesDeviceIdConfigPutResponse", } response_data = self.api_client.call_api( *_param, @@ -28450,10 +30165,11 @@ def v1_devices_bringup_put( @validate_call - def v1_devices_bringup_put_with_http_info( + def v1_devices_device_id_config_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_bringup_put_request: V1DevicesBringupPutRequest, + device_id: StrictInt, + v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28466,14 +30182,17 @@ def v1_devices_bringup_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_devices_bringup_put + ) -> ApiResponse[V1DevicesDeviceIdConfigPutResponse]: + """v1_devices_device_id_config_put + Update a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_bringup_put_request: (required) - :type v1_devices_bringup_put_request: V1DevicesBringupPutRequest + :param device_id: (required) + :type device_id: int + :param v1_devices_device_id_config_put_request: (required) + :type v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28496,9 +30215,10 @@ def v1_devices_bringup_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_bringup_put_serialize( + _param = self._v1_devices_device_id_config_put_serialize( authorization=authorization, - v1_devices_bringup_put_request=v1_devices_bringup_put_request, + device_id=device_id, + v1_devices_device_id_config_put_request=v1_devices_device_id_config_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28506,7 +30226,7 @@ def v1_devices_bringup_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '202': "V1DevicesDeviceIdConfigPutResponse", } response_data = self.api_client.call_api( *_param, @@ -28520,10 +30240,11 @@ def v1_devices_bringup_put_with_http_info( @validate_call - def v1_devices_bringup_put_without_preload_content( + def v1_devices_device_id_config_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_bringup_put_request: V1DevicesBringupPutRequest, + device_id: StrictInt, + v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28537,13 +30258,16 @@ def v1_devices_bringup_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_bringup_put + """v1_devices_device_id_config_put + Update a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_bringup_put_request: (required) - :type v1_devices_bringup_put_request: V1DevicesBringupPutRequest + :param device_id: (required) + :type device_id: int + :param v1_devices_device_id_config_put_request: (required) + :type v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28566,9 +30290,10 @@ def v1_devices_bringup_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_bringup_put_serialize( + _param = self._v1_devices_device_id_config_put_serialize( authorization=authorization, - v1_devices_bringup_put_request=v1_devices_bringup_put_request, + device_id=device_id, + v1_devices_device_id_config_put_request=v1_devices_device_id_config_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28576,7 +30301,7 @@ def v1_devices_bringup_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '202': "V1DevicesDeviceIdConfigPutResponse", } response_data = self.api_client.call_api( *_param, @@ -28585,10 +30310,11 @@ def v1_devices_bringup_put_without_preload_content( return response_data.response - def _v1_devices_bringup_put_serialize( + def _v1_devices_device_id_config_put_serialize( self, authorization, - v1_devices_bringup_put_request, + device_id, + v1_devices_device_id_config_put_request, _request_auth, _content_type, _headers, @@ -28610,16 +30336,25 @@ def _v1_devices_bringup_put_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_devices_bringup_put_request is not None: - _body_params = v1_devices_bringup_put_request + if v1_devices_device_id_config_put_request is not None: + _body_params = v1_devices_device_id_config_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: @@ -28642,7 +30377,7 @@ def _v1_devices_bringup_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/v1/devices/bringup', + resource_path='/v1/devices/{deviceId}/config', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28659,10 +30394,10 @@ def _v1_devices_bringup_put_serialize( @validate_call - def v1_devices_bringup_token_post( + def v1_devices_device_id_connectivity_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28675,15 +30410,15 @@ def v1_devices_bringup_token_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesBringupTokenPostResponse: - """v1_devices_bringup_token_post + ) -> V1DevicesDeviceIdConnectivityGetResponse: + """v1_devices_device_id_connectivity_get - VM edge onboarding token + Get the connectivity graph for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_bringup_token_post_request: (required) - :type v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest + :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 @@ -28706,9 +30441,9 @@ def v1_devices_bringup_token_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_bringup_token_post_serialize( + _param = self._v1_devices_device_id_connectivity_get_serialize( authorization=authorization, - v1_devices_bringup_token_post_request=v1_devices_bringup_token_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28716,7 +30451,7 @@ def v1_devices_bringup_token_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesBringupTokenPostResponse", + '200': "V1DevicesDeviceIdConnectivityGetResponse", } response_data = self.api_client.call_api( *_param, @@ -28730,10 +30465,10 @@ def v1_devices_bringup_token_post( @validate_call - def v1_devices_bringup_token_post_with_http_info( + def v1_devices_device_id_connectivity_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28746,15 +30481,15 @@ def v1_devices_bringup_token_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[V1DevicesBringupTokenPostResponse]: - """v1_devices_bringup_token_post + ) -> ApiResponse[V1DevicesDeviceIdConnectivityGetResponse]: + """v1_devices_device_id_connectivity_get - VM edge onboarding token + Get the connectivity graph for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_bringup_token_post_request: (required) - :type v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest + :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 @@ -28777,9 +30512,9 @@ def v1_devices_bringup_token_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_bringup_token_post_serialize( + _param = self._v1_devices_device_id_connectivity_get_serialize( authorization=authorization, - v1_devices_bringup_token_post_request=v1_devices_bringup_token_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28787,7 +30522,7 @@ def v1_devices_bringup_token_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesBringupTokenPostResponse", + '200': "V1DevicesDeviceIdConnectivityGetResponse", } response_data = self.api_client.call_api( *_param, @@ -28801,10 +30536,10 @@ def v1_devices_bringup_token_post_with_http_info( @validate_call - def v1_devices_bringup_token_post_without_preload_content( + def v1_devices_device_id_connectivity_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest, + device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28818,14 +30553,14 @@ def v1_devices_bringup_token_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_bringup_token_post + """v1_devices_device_id_connectivity_get - VM edge onboarding token + Get the connectivity graph for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_bringup_token_post_request: (required) - :type v1_devices_bringup_token_post_request: V1DevicesBringupTokenPostRequest + :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 @@ -28848,9 +30583,9 @@ def v1_devices_bringup_token_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_bringup_token_post_serialize( + _param = self._v1_devices_device_id_connectivity_get_serialize( authorization=authorization, - v1_devices_bringup_token_post_request=v1_devices_bringup_token_post_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -28858,7 +30593,7 @@ def v1_devices_bringup_token_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesBringupTokenPostResponse", + '200': "V1DevicesDeviceIdConnectivityGetResponse", } response_data = self.api_client.call_api( *_param, @@ -28867,10 +30602,10 @@ def v1_devices_bringup_token_post_without_preload_content( return response_data.response - def _v1_devices_bringup_token_post_serialize( + def _v1_devices_device_id_connectivity_get_serialize( self, authorization, - v1_devices_bringup_token_post_request, + device_id, _request_auth, _content_type, _headers, @@ -28892,14 +30627,14 @@ def _v1_devices_bringup_token_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_devices_bringup_token_post_request is not None: - _body_params = v1_devices_bringup_token_post_request # set the HTTP header `Accept` @@ -28910,19 +30645,6 @@ def _v1_devices_bringup_token_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] = [ @@ -28930,8 +30652,8 @@ def _v1_devices_bringup_token_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/devices/bringup/token', + method='GET', + resource_path='/v1/devices/{deviceId}/connectivity', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -28948,10 +30670,11 @@ def _v1_devices_bringup_token_post_serialize( @validate_call - def v1_devices_clear_new_flag_post( + def v1_devices_device_id_controller_peers_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - body: Dict[str, Any], + device_id: StrictInt, + v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -28965,13 +30688,16 @@ def v1_devices_clear_new_flag_post( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """v1_devices_clear_new_flag_post + """v1_devices_device_id_controller_peers_put + Update peer list for controller :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :param device_id: (required) + :type device_id: int + :param v1_devices_device_id_controller_peers_put_request: (required) + :type v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -28994,9 +30720,10 @@ def v1_devices_clear_new_flag_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_clear_new_flag_post_serialize( + _param = self._v1_devices_device_id_controller_peers_put_serialize( authorization=authorization, - body=body, + device_id=device_id, + v1_devices_device_id_controller_peers_put_request=v1_devices_device_id_controller_peers_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29004,7 +30731,7 @@ def v1_devices_clear_new_flag_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '202': "object", } response_data = self.api_client.call_api( *_param, @@ -29018,10 +30745,11 @@ def v1_devices_clear_new_flag_post( @validate_call - def v1_devices_clear_new_flag_post_with_http_info( + def v1_devices_device_id_controller_peers_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - body: Dict[str, Any], + device_id: StrictInt, + v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29035,13 +30763,16 @@ def v1_devices_clear_new_flag_post_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """v1_devices_clear_new_flag_post + """v1_devices_device_id_controller_peers_put + Update peer list for controller :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :param device_id: (required) + :type device_id: int + :param v1_devices_device_id_controller_peers_put_request: (required) + :type v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29064,9 +30795,10 @@ def v1_devices_clear_new_flag_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_clear_new_flag_post_serialize( + _param = self._v1_devices_device_id_controller_peers_put_serialize( authorization=authorization, - body=body, + device_id=device_id, + v1_devices_device_id_controller_peers_put_request=v1_devices_device_id_controller_peers_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29074,7 +30806,7 @@ def v1_devices_clear_new_flag_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '202': "object", } response_data = self.api_client.call_api( *_param, @@ -29088,10 +30820,11 @@ def v1_devices_clear_new_flag_post_with_http_info( @validate_call - def v1_devices_clear_new_flag_post_without_preload_content( + def v1_devices_device_id_controller_peers_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - body: Dict[str, Any], + device_id: StrictInt, + v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29105,13 +30838,16 @@ def v1_devices_clear_new_flag_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_clear_new_flag_post + """v1_devices_device_id_controller_peers_put + Update peer list for controller :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :param device_id: (required) + :type device_id: int + :param v1_devices_device_id_controller_peers_put_request: (required) + :type v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -29134,9 +30870,10 @@ def v1_devices_clear_new_flag_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_clear_new_flag_post_serialize( + _param = self._v1_devices_device_id_controller_peers_put_serialize( authorization=authorization, - body=body, + device_id=device_id, + v1_devices_device_id_controller_peers_put_request=v1_devices_device_id_controller_peers_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29144,7 +30881,7 @@ def v1_devices_clear_new_flag_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '202': "object", } response_data = self.api_client.call_api( *_param, @@ -29153,10 +30890,11 @@ def v1_devices_clear_new_flag_post_without_preload_content( return response_data.response - def _v1_devices_clear_new_flag_post_serialize( + def _v1_devices_device_id_controller_peers_put_serialize( self, authorization, - body, + device_id, + v1_devices_device_id_controller_peers_put_request, _request_auth, _content_type, _headers, @@ -29178,14 +30916,16 @@ def _v1_devices_clear_new_flag_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 body is not None: - _body_params = body + if v1_devices_device_id_controller_peers_put_request is not None: + _body_params = v1_devices_device_id_controller_peers_put_request # set the HTTP header `Accept` @@ -29216,8 +30956,8 @@ def _v1_devices_clear_new_flag_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/devices/clear-new-flag', + method='PUT', + resource_path='/v1/devices/{deviceId}/controller-peers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29234,7 +30974,7 @@ def _v1_devices_clear_new_flag_post_serialize( @validate_call - def v1_devices_device_id_arp_get( + def v1_devices_device_id_dhcp_server_leases_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -29250,10 +30990,10 @@ def v1_devices_device_id_arp_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdArpGetResponse: - """v1_devices_device_id_arp_get + ) -> V1DevicesDeviceIdDhcpServerLeasesGetResponse: + """v1_devices_device_id_dhcp_server_leases_get - Get ARP monitoring table for a device + Get current DHCP leases for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -29281,7 +31021,7 @@ def v1_devices_device_id_arp_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_arp_get_serialize( + _param = self._v1_devices_device_id_dhcp_server_leases_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -29291,7 +31031,7 @@ def v1_devices_device_id_arp_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdArpGetResponse", + '200': "V1DevicesDeviceIdDhcpServerLeasesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -29305,7 +31045,7 @@ def v1_devices_device_id_arp_get( @validate_call - def v1_devices_device_id_arp_get_with_http_info( + def v1_devices_device_id_dhcp_server_leases_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -29321,10 +31061,10 @@ def v1_devices_device_id_arp_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[V1DevicesDeviceIdArpGetResponse]: - """v1_devices_device_id_arp_get + ) -> ApiResponse[V1DevicesDeviceIdDhcpServerLeasesGetResponse]: + """v1_devices_device_id_dhcp_server_leases_get - Get ARP monitoring table for a device + Get current DHCP leases for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -29352,7 +31092,7 @@ def v1_devices_device_id_arp_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_arp_get_serialize( + _param = self._v1_devices_device_id_dhcp_server_leases_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -29362,7 +31102,7 @@ def v1_devices_device_id_arp_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdArpGetResponse", + '200': "V1DevicesDeviceIdDhcpServerLeasesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -29376,7 +31116,7 @@ def v1_devices_device_id_arp_get_with_http_info( @validate_call - def v1_devices_device_id_arp_get_without_preload_content( + def v1_devices_device_id_dhcp_server_leases_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -29393,9 +31133,9 @@ def v1_devices_device_id_arp_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_arp_get + """v1_devices_device_id_dhcp_server_leases_get - Get ARP monitoring table for a device + Get current DHCP leases for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -29423,7 +31163,7 @@ def v1_devices_device_id_arp_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_arp_get_serialize( + _param = self._v1_devices_device_id_dhcp_server_leases_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -29433,7 +31173,7 @@ def v1_devices_device_id_arp_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdArpGetResponse", + '200': "V1DevicesDeviceIdDhcpServerLeasesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -29442,7 +31182,7 @@ def v1_devices_device_id_arp_get_without_preload_content( return response_data.response - def _v1_devices_device_id_arp_get_serialize( + def _v1_devices_device_id_dhcp_server_leases_get_serialize( self, authorization, device_id, @@ -29493,7 +31233,7 @@ def _v1_devices_device_id_arp_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/arp', + resource_path='/v1/devices/{deviceId}/dhcp-server/leases', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29510,7 +31250,7 @@ def _v1_devices_device_id_arp_get_serialize( @validate_call - def v1_devices_device_id_candidate_circuits_get( + def v1_devices_device_id_draft_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -29526,10 +31266,10 @@ def v1_devices_device_id_candidate_circuits_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdCandidateCircuitsGetResponse: - """v1_devices_device_id_candidate_circuits_get + ) -> None: + """v1_devices_device_id_draft_delete - Get the candidate circuits for a device + Delete draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -29557,7 +31297,7 @@ def v1_devices_device_id_candidate_circuits_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_candidate_circuits_get_serialize( + _param = self._v1_devices_device_id_draft_delete_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -29567,7 +31307,7 @@ def v1_devices_device_id_candidate_circuits_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdCandidateCircuitsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -29581,7 +31321,7 @@ def v1_devices_device_id_candidate_circuits_get( @validate_call - def v1_devices_device_id_candidate_circuits_get_with_http_info( + def v1_devices_device_id_draft_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -29597,10 +31337,10 @@ def v1_devices_device_id_candidate_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[V1DevicesDeviceIdCandidateCircuitsGetResponse]: - """v1_devices_device_id_candidate_circuits_get + ) -> ApiResponse[None]: + """v1_devices_device_id_draft_delete - Get the candidate circuits for a device + Delete draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -29628,7 +31368,7 @@ def v1_devices_device_id_candidate_circuits_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_candidate_circuits_get_serialize( + _param = self._v1_devices_device_id_draft_delete_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -29638,7 +31378,7 @@ def v1_devices_device_id_candidate_circuits_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdCandidateCircuitsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -29652,7 +31392,7 @@ def v1_devices_device_id_candidate_circuits_get_with_http_info( @validate_call - def v1_devices_device_id_candidate_circuits_get_without_preload_content( + def v1_devices_device_id_draft_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -29669,9 +31409,9 @@ def v1_devices_device_id_candidate_circuits_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_candidate_circuits_get + """v1_devices_device_id_draft_delete - Get the candidate circuits for a device + Delete draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -29699,7 +31439,7 @@ def v1_devices_device_id_candidate_circuits_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_candidate_circuits_get_serialize( + _param = self._v1_devices_device_id_draft_delete_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -29709,7 +31449,7 @@ def v1_devices_device_id_candidate_circuits_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdCandidateCircuitsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -29718,7 +31458,7 @@ def v1_devices_device_id_candidate_circuits_get_without_preload_content( return response_data.response - def _v1_devices_device_id_candidate_circuits_get_serialize( + def _v1_devices_device_id_draft_delete_serialize( self, authorization, device_id, @@ -29753,13 +31493,6 @@ def _v1_devices_device_id_candidate_circuits_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 @@ -29768,8 +31501,8 @@ def _v1_devices_device_id_candidate_circuits_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/devices/{deviceId}/candidate-circuits', + method='DELETE', + resource_path='/v1/devices/{deviceId}/draft', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -29786,11 +31519,10 @@ def _v1_devices_device_id_candidate_circuits_get_serialize( @validate_call - def v1_devices_device_id_circuits_vrf_associations_get( + def v1_devices_device_id_draft_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - circuit_names: Annotated[Optional[List[StrictStr]], Field(description="Circuit name configured of wan interface")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29803,17 +31535,15 @@ def v1_devices_device_id_circuits_vrf_associations_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse: - """v1_devices_device_id_circuits_vrf_associations_get + ) -> V1DevicesDeviceIdDraftGetResponse: + """v1_devices_device_id_draft_get - Get the VRF, interface, &, if relevant, loopback interfaces for a list of circuits + Get draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param circuit_names: Circuit name configured of wan interface - :type circuit_names: 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 @@ -29836,10 +31566,9 @@ def v1_devices_device_id_circuits_vrf_associations_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_circuits_vrf_associations_get_serialize( + _param = self._v1_devices_device_id_draft_get_serialize( authorization=authorization, device_id=device_id, - circuit_names=circuit_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29847,7 +31576,7 @@ def v1_devices_device_id_circuits_vrf_associations_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse", + '200': "V1DevicesDeviceIdDraftGetResponse", } response_data = self.api_client.call_api( *_param, @@ -29861,11 +31590,10 @@ def v1_devices_device_id_circuits_vrf_associations_get( @validate_call - def v1_devices_device_id_circuits_vrf_associations_get_with_http_info( + def v1_devices_device_id_draft_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - circuit_names: Annotated[Optional[List[StrictStr]], Field(description="Circuit name configured of wan interface")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29878,17 +31606,15 @@ def v1_devices_device_id_circuits_vrf_associations_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[V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse]: - """v1_devices_device_id_circuits_vrf_associations_get + ) -> ApiResponse[V1DevicesDeviceIdDraftGetResponse]: + """v1_devices_device_id_draft_get - Get the VRF, interface, &, if relevant, loopback interfaces for a list of circuits + Get draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param circuit_names: Circuit name configured of wan interface - :type circuit_names: 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 @@ -29911,10 +31637,9 @@ def v1_devices_device_id_circuits_vrf_associations_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_circuits_vrf_associations_get_serialize( + _param = self._v1_devices_device_id_draft_get_serialize( authorization=authorization, device_id=device_id, - circuit_names=circuit_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29922,7 +31647,7 @@ def v1_devices_device_id_circuits_vrf_associations_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse", + '200': "V1DevicesDeviceIdDraftGetResponse", } response_data = self.api_client.call_api( *_param, @@ -29936,11 +31661,10 @@ def v1_devices_device_id_circuits_vrf_associations_get_with_http_info( @validate_call - def v1_devices_device_id_circuits_vrf_associations_get_without_preload_content( + def v1_devices_device_id_draft_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - circuit_names: Annotated[Optional[List[StrictStr]], Field(description="Circuit name configured of wan interface")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -29954,16 +31678,14 @@ def v1_devices_device_id_circuits_vrf_associations_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_circuits_vrf_associations_get + """v1_devices_device_id_draft_get - Get the VRF, interface, &, if relevant, loopback interfaces for a list of circuits + Get draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param circuit_names: Circuit name configured of wan interface - :type circuit_names: 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 @@ -29986,10 +31708,9 @@ def v1_devices_device_id_circuits_vrf_associations_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_circuits_vrf_associations_get_serialize( + _param = self._v1_devices_device_id_draft_get_serialize( authorization=authorization, device_id=device_id, - circuit_names=circuit_names, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -29997,7 +31718,7 @@ def v1_devices_device_id_circuits_vrf_associations_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdCircuitsVrfAssociationsGetResponse", + '200': "V1DevicesDeviceIdDraftGetResponse", } response_data = self.api_client.call_api( *_param, @@ -30006,11 +31727,10 @@ def v1_devices_device_id_circuits_vrf_associations_get_without_preload_content( return response_data.response - def _v1_devices_device_id_circuits_vrf_associations_get_serialize( + def _v1_devices_device_id_draft_get_serialize( self, authorization, device_id, - circuit_names, _request_auth, _content_type, _headers, @@ -30020,7 +31740,6 @@ def _v1_devices_device_id_circuits_vrf_associations_get_serialize( _host = None _collection_formats: Dict[str, str] = { - 'circuitNames': 'multi', } _path_params: Dict[str, str] = {} @@ -30036,10 +31755,6 @@ def _v1_devices_device_id_circuits_vrf_associations_get_serialize( if device_id is not None: _path_params['deviceId'] = device_id # process the query parameters - if circuit_names is not None: - - _query_params.append(('circuitNames', circuit_names)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -30063,7 +31778,7 @@ def _v1_devices_device_id_circuits_vrf_associations_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/circuits/vrf-associations', + resource_path='/v1/devices/{deviceId}/draft', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30080,11 +31795,11 @@ def _v1_devices_device_id_circuits_vrf_associations_get_serialize( @validate_call - def v1_devices_device_id_config_put( + def v1_devices_device_id_draft_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest, + v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30097,17 +31812,17 @@ def v1_devices_device_id_config_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdConfigPutResponse: - """v1_devices_device_id_config_put + ) -> V1DevicesDeviceIdDraftPostResponse: + """v1_devices_device_id_draft_post - Update a device + Save draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param v1_devices_device_id_config_put_request: (required) - :type v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest + :param v1_devices_device_id_draft_post_request: (required) + :type v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30130,10 +31845,10 @@ def v1_devices_device_id_config_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_config_put_serialize( + _param = self._v1_devices_device_id_draft_post_serialize( authorization=authorization, device_id=device_id, - v1_devices_device_id_config_put_request=v1_devices_device_id_config_put_request, + v1_devices_device_id_draft_post_request=v1_devices_device_id_draft_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30141,7 +31856,7 @@ def v1_devices_device_id_config_put( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "V1DevicesDeviceIdConfigPutResponse", + '201': "V1DevicesDeviceIdDraftPostResponse", } response_data = self.api_client.call_api( *_param, @@ -30155,11 +31870,11 @@ def v1_devices_device_id_config_put( @validate_call - def v1_devices_device_id_config_put_with_http_info( + def v1_devices_device_id_draft_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest, + v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30172,17 +31887,17 @@ def v1_devices_device_id_config_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[V1DevicesDeviceIdConfigPutResponse]: - """v1_devices_device_id_config_put + ) -> ApiResponse[V1DevicesDeviceIdDraftPostResponse]: + """v1_devices_device_id_draft_post - Update a device + Save draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param v1_devices_device_id_config_put_request: (required) - :type v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest + :param v1_devices_device_id_draft_post_request: (required) + :type v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30205,10 +31920,10 @@ def v1_devices_device_id_config_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_config_put_serialize( + _param = self._v1_devices_device_id_draft_post_serialize( authorization=authorization, device_id=device_id, - v1_devices_device_id_config_put_request=v1_devices_device_id_config_put_request, + v1_devices_device_id_draft_post_request=v1_devices_device_id_draft_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30216,7 +31931,7 @@ def v1_devices_device_id_config_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "V1DevicesDeviceIdConfigPutResponse", + '201': "V1DevicesDeviceIdDraftPostResponse", } response_data = self.api_client.call_api( *_param, @@ -30230,11 +31945,11 @@ def v1_devices_device_id_config_put_with_http_info( @validate_call - def v1_devices_device_id_config_put_without_preload_content( + def v1_devices_device_id_draft_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest, + v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30248,16 +31963,16 @@ def v1_devices_device_id_config_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_config_put + """v1_devices_device_id_draft_post - Update a device + Save draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param v1_devices_device_id_config_put_request: (required) - :type v1_devices_device_id_config_put_request: V1DevicesDeviceIdConfigPutRequest + :param v1_devices_device_id_draft_post_request: (required) + :type v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30280,10 +31995,10 @@ def v1_devices_device_id_config_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_config_put_serialize( + _param = self._v1_devices_device_id_draft_post_serialize( authorization=authorization, device_id=device_id, - v1_devices_device_id_config_put_request=v1_devices_device_id_config_put_request, + v1_devices_device_id_draft_post_request=v1_devices_device_id_draft_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30291,7 +32006,7 @@ def v1_devices_device_id_config_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "V1DevicesDeviceIdConfigPutResponse", + '201': "V1DevicesDeviceIdDraftPostResponse", } response_data = self.api_client.call_api( *_param, @@ -30300,11 +32015,11 @@ def v1_devices_device_id_config_put_without_preload_content( return response_data.response - def _v1_devices_device_id_config_put_serialize( + def _v1_devices_device_id_draft_post_serialize( self, authorization, device_id, - v1_devices_device_id_config_put_request, + v1_devices_device_id_draft_post_request, _request_auth, _content_type, _headers, @@ -30334,8 +32049,8 @@ def _v1_devices_device_id_config_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_devices_device_id_config_put_request is not None: - _body_params = v1_devices_device_id_config_put_request + if v1_devices_device_id_draft_post_request is not None: + _body_params = v1_devices_device_id_draft_post_request # set the HTTP header `Accept` @@ -30366,8 +32081,8 @@ def _v1_devices_device_id_config_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/devices/{deviceId}/config', + method='POST', + resource_path='/v1/devices/{deviceId}/draft', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30384,7 +32099,7 @@ def _v1_devices_device_id_config_put_serialize( @validate_call - def v1_devices_device_id_connectivity_get( + def v1_devices_device_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -30400,10 +32115,10 @@ def v1_devices_device_id_connectivity_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdConnectivityGetResponse: - """v1_devices_device_id_connectivity_get + ) -> V1DevicesDeviceIdGetResponse: + """v1_devices_device_id_get - Get the connectivity graph for a device + Get a specific device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -30431,7 +32146,7 @@ def v1_devices_device_id_connectivity_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_connectivity_get_serialize( + _param = self._v1_devices_device_id_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -30441,7 +32156,7 @@ def v1_devices_device_id_connectivity_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdConnectivityGetResponse", + '200': "V1DevicesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -30455,7 +32170,7 @@ def v1_devices_device_id_connectivity_get( @validate_call - def v1_devices_device_id_connectivity_get_with_http_info( + def v1_devices_device_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -30471,10 +32186,10 @@ def v1_devices_device_id_connectivity_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[V1DevicesDeviceIdConnectivityGetResponse]: - """v1_devices_device_id_connectivity_get + ) -> ApiResponse[V1DevicesDeviceIdGetResponse]: + """v1_devices_device_id_get - Get the connectivity graph for a device + Get a specific device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -30502,7 +32217,7 @@ def v1_devices_device_id_connectivity_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_connectivity_get_serialize( + _param = self._v1_devices_device_id_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -30512,7 +32227,7 @@ def v1_devices_device_id_connectivity_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdConnectivityGetResponse", + '200': "V1DevicesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -30526,7 +32241,7 @@ def v1_devices_device_id_connectivity_get_with_http_info( @validate_call - def v1_devices_device_id_connectivity_get_without_preload_content( + def v1_devices_device_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -30543,9 +32258,9 @@ def v1_devices_device_id_connectivity_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_connectivity_get + """v1_devices_device_id_get - Get the connectivity graph for a device + Get a specific device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -30573,7 +32288,7 @@ def v1_devices_device_id_connectivity_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_connectivity_get_serialize( + _param = self._v1_devices_device_id_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -30583,7 +32298,7 @@ def v1_devices_device_id_connectivity_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdConnectivityGetResponse", + '200': "V1DevicesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -30592,7 +32307,7 @@ def v1_devices_device_id_connectivity_get_without_preload_content( return response_data.response - def _v1_devices_device_id_connectivity_get_serialize( + def _v1_devices_device_id_get_serialize( self, authorization, device_id, @@ -30643,7 +32358,7 @@ def _v1_devices_device_id_connectivity_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/connectivity', + resource_path='/v1/devices/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30660,11 +32375,10 @@ def _v1_devices_device_id_connectivity_get_serialize( @validate_call - def v1_devices_device_id_controller_peers_put( + def v1_devices_device_id_interfaces_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30677,17 +32391,15 @@ def v1_devices_device_id_controller_peers_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_devices_device_id_controller_peers_put + ) -> V1DevicesDeviceIdInterfacesGetResponse: + """v1_devices_device_id_interfaces_get - Update peer list for controller + Get interfaces for the given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param v1_devices_device_id_controller_peers_put_request: (required) - :type v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30710,10 +32422,9 @@ def v1_devices_device_id_controller_peers_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_controller_peers_put_serialize( + _param = self._v1_devices_device_id_interfaces_get_serialize( authorization=authorization, device_id=device_id, - v1_devices_device_id_controller_peers_put_request=v1_devices_device_id_controller_peers_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30721,7 +32432,7 @@ def v1_devices_device_id_controller_peers_put( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "object", + '200': "V1DevicesDeviceIdInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -30735,11 +32446,10 @@ def v1_devices_device_id_controller_peers_put( @validate_call - def v1_devices_device_id_controller_peers_put_with_http_info( + def v1_devices_device_id_interfaces_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30752,17 +32462,15 @@ def v1_devices_device_id_controller_peers_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_devices_device_id_controller_peers_put + ) -> ApiResponse[V1DevicesDeviceIdInterfacesGetResponse]: + """v1_devices_device_id_interfaces_get - Update peer list for controller + Get interfaces for the given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param v1_devices_device_id_controller_peers_put_request: (required) - :type v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30785,10 +32493,9 @@ def v1_devices_device_id_controller_peers_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_controller_peers_put_serialize( + _param = self._v1_devices_device_id_interfaces_get_serialize( authorization=authorization, device_id=device_id, - v1_devices_device_id_controller_peers_put_request=v1_devices_device_id_controller_peers_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30796,7 +32503,7 @@ def v1_devices_device_id_controller_peers_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "object", + '200': "V1DevicesDeviceIdInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -30810,11 +32517,10 @@ def v1_devices_device_id_controller_peers_put_with_http_info( @validate_call - def v1_devices_device_id_controller_peers_put_without_preload_content( + def v1_devices_device_id_interfaces_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30828,16 +32534,14 @@ def v1_devices_device_id_controller_peers_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_controller_peers_put + """v1_devices_device_id_interfaces_get - Update peer list for controller + Get interfaces for the given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param v1_devices_device_id_controller_peers_put_request: (required) - :type v1_devices_device_id_controller_peers_put_request: V1DevicesDeviceIdControllerPeersPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -30860,10 +32564,9 @@ def v1_devices_device_id_controller_peers_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_controller_peers_put_serialize( + _param = self._v1_devices_device_id_interfaces_get_serialize( authorization=authorization, device_id=device_id, - v1_devices_device_id_controller_peers_put_request=v1_devices_device_id_controller_peers_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -30871,7 +32574,7 @@ def v1_devices_device_id_controller_peers_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '202': "object", + '200': "V1DevicesDeviceIdInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -30880,11 +32583,10 @@ def v1_devices_device_id_controller_peers_put_without_preload_content( return response_data.response - def _v1_devices_device_id_controller_peers_put_serialize( + def _v1_devices_device_id_interfaces_get_serialize( self, authorization, device_id, - v1_devices_device_id_controller_peers_put_request, _request_auth, _content_type, _headers, @@ -30914,8 +32616,6 @@ def _v1_devices_device_id_controller_peers_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_devices_device_id_controller_peers_put_request is not None: - _body_params = v1_devices_device_id_controller_peers_put_request # set the HTTP header `Accept` @@ -30926,19 +32626,6 @@ def _v1_devices_device_id_controller_peers_put_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -30946,8 +32633,8 @@ def _v1_devices_device_id_controller_peers_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/devices/{deviceId}/controller-peers', + method='GET', + resource_path='/v1/devices/{deviceId}/interfaces', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -30964,10 +32651,11 @@ def _v1_devices_device_id_controller_peers_put_serialize( @validate_call - def v1_devices_device_id_dhcp_server_leases_get( + def v1_devices_device_id_jobs_job_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, + job_id: Annotated[StrictInt, Field(description="id of the job as received from the Enqueue* calls.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -30980,15 +32668,17 @@ def v1_devices_device_id_dhcp_server_leases_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdDhcpServerLeasesGetResponse: - """v1_devices_device_id_dhcp_server_leases_get + ) -> V1DevicesDeviceIdJobsJobIdGetResponse: + """v1_devices_device_id_jobs_job_id_get - Get current DHCP leases for a device + Get device job status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int + :param job_id: id of the job as received from the Enqueue* calls. (required) + :type job_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31011,9 +32701,10 @@ def v1_devices_device_id_dhcp_server_leases_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_dhcp_server_leases_get_serialize( + _param = self._v1_devices_device_id_jobs_job_id_get_serialize( authorization=authorization, device_id=device_id, + job_id=job_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31021,7 +32712,7 @@ def v1_devices_device_id_dhcp_server_leases_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdDhcpServerLeasesGetResponse", + '200': "V1DevicesDeviceIdJobsJobIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -31035,10 +32726,11 @@ def v1_devices_device_id_dhcp_server_leases_get( @validate_call - def v1_devices_device_id_dhcp_server_leases_get_with_http_info( + def v1_devices_device_id_jobs_job_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, + job_id: Annotated[StrictInt, Field(description="id of the job as received from the Enqueue* calls.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31051,15 +32743,17 @@ def v1_devices_device_id_dhcp_server_leases_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[V1DevicesDeviceIdDhcpServerLeasesGetResponse]: - """v1_devices_device_id_dhcp_server_leases_get + ) -> ApiResponse[V1DevicesDeviceIdJobsJobIdGetResponse]: + """v1_devices_device_id_jobs_job_id_get - Get current DHCP leases for a device + Get device job status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int + :param job_id: id of the job as received from the Enqueue* calls. (required) + :type job_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31082,9 +32776,10 @@ def v1_devices_device_id_dhcp_server_leases_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_dhcp_server_leases_get_serialize( + _param = self._v1_devices_device_id_jobs_job_id_get_serialize( authorization=authorization, device_id=device_id, + job_id=job_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31092,7 +32787,7 @@ def v1_devices_device_id_dhcp_server_leases_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdDhcpServerLeasesGetResponse", + '200': "V1DevicesDeviceIdJobsJobIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -31106,10 +32801,11 @@ def v1_devices_device_id_dhcp_server_leases_get_with_http_info( @validate_call - def v1_devices_device_id_dhcp_server_leases_get_without_preload_content( + def v1_devices_device_id_jobs_job_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, + job_id: Annotated[StrictInt, Field(description="id of the job as received from the Enqueue* calls.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31123,14 +32819,16 @@ def v1_devices_device_id_dhcp_server_leases_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_dhcp_server_leases_get + """v1_devices_device_id_jobs_job_id_get - Get current DHCP leases for a device + Get device job status :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int + :param job_id: id of the job as received from the Enqueue* calls. (required) + :type job_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31153,9 +32851,10 @@ def v1_devices_device_id_dhcp_server_leases_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_dhcp_server_leases_get_serialize( + _param = self._v1_devices_device_id_jobs_job_id_get_serialize( authorization=authorization, device_id=device_id, + job_id=job_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31163,7 +32862,7 @@ def v1_devices_device_id_dhcp_server_leases_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdDhcpServerLeasesGetResponse", + '200': "V1DevicesDeviceIdJobsJobIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -31172,10 +32871,11 @@ def v1_devices_device_id_dhcp_server_leases_get_without_preload_content( return response_data.response - def _v1_devices_device_id_dhcp_server_leases_get_serialize( + def _v1_devices_device_id_jobs_job_id_get_serialize( self, authorization, device_id, + job_id, _request_auth, _content_type, _headers, @@ -31199,6 +32899,8 @@ def _v1_devices_device_id_dhcp_server_leases_get_serialize( # process the path parameters if device_id is not None: _path_params['deviceId'] = device_id + if job_id is not None: + _path_params['jobId'] = job_id # process the query parameters # process the header parameters if authorization is not None: @@ -31223,7 +32925,7 @@ def _v1_devices_device_id_dhcp_server_leases_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/dhcp-server/leases', + resource_path='/v1/devices/{deviceId}/jobs/{jobId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31240,7 +32942,7 @@ def _v1_devices_device_id_dhcp_server_leases_get_serialize( @validate_call - def v1_devices_device_id_draft_delete( + def v1_devices_device_id_ospfv2_default_originate_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -31256,10 +32958,9 @@ def v1_devices_device_id_draft_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_devices_device_id_draft_delete + ) -> V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse: + """v1_devices_device_id_ospfv2_default_originate_get - Delete draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -31287,7 +32988,7 @@ def v1_devices_device_id_draft_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_draft_delete_serialize( + _param = self._v1_devices_device_id_ospfv2_default_originate_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -31297,7 +32998,7 @@ def v1_devices_device_id_draft_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -31311,7 +33012,7 @@ def v1_devices_device_id_draft_delete( @validate_call - def v1_devices_device_id_draft_delete_with_http_info( + def v1_devices_device_id_ospfv2_default_originate_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -31327,10 +33028,9 @@ def v1_devices_device_id_draft_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_devices_device_id_draft_delete + ) -> ApiResponse[V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse]: + """v1_devices_device_id_ospfv2_default_originate_get - Delete draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -31358,7 +33058,7 @@ def v1_devices_device_id_draft_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_draft_delete_serialize( + _param = self._v1_devices_device_id_ospfv2_default_originate_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -31368,7 +33068,7 @@ def v1_devices_device_id_draft_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -31382,7 +33082,7 @@ def v1_devices_device_id_draft_delete_with_http_info( @validate_call - def v1_devices_device_id_draft_delete_without_preload_content( + def v1_devices_device_id_ospfv2_default_originate_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -31399,9 +33099,8 @@ def v1_devices_device_id_draft_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_draft_delete + """v1_devices_device_id_ospfv2_default_originate_get - Delete draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -31429,7 +33128,7 @@ def v1_devices_device_id_draft_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_draft_delete_serialize( + _param = self._v1_devices_device_id_ospfv2_default_originate_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -31439,7 +33138,7 @@ def v1_devices_device_id_draft_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -31448,7 +33147,7 @@ def v1_devices_device_id_draft_delete_without_preload_content( return response_data.response - def _v1_devices_device_id_draft_delete_serialize( + def _v1_devices_device_id_ospfv2_default_originate_get_serialize( self, authorization, device_id, @@ -31483,6 +33182,13 @@ def _v1_devices_device_id_draft_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 @@ -31491,8 +33197,8 @@ def _v1_devices_device_id_draft_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/devices/{deviceId}/draft', + method='GET', + resource_path='/v1/devices/{deviceId}/ospfv2/defaultOriginate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31509,7 +33215,7 @@ def _v1_devices_device_id_draft_delete_serialize( @validate_call - def v1_devices_device_id_draft_get( + def v1_devices_device_id_ospfv3_default_originate_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -31525,10 +33231,9 @@ def v1_devices_device_id_draft_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdDraftGetResponse: - """v1_devices_device_id_draft_get + ) -> V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse: + """v1_devices_device_id_ospfv3_default_originate_get - Get draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -31556,7 +33261,7 @@ def v1_devices_device_id_draft_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_draft_get_serialize( + _param = self._v1_devices_device_id_ospfv3_default_originate_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -31566,7 +33271,7 @@ def v1_devices_device_id_draft_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdDraftGetResponse", + '200': "V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -31580,7 +33285,7 @@ def v1_devices_device_id_draft_get( @validate_call - def v1_devices_device_id_draft_get_with_http_info( + def v1_devices_device_id_ospfv3_default_originate_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -31596,10 +33301,9 @@ def v1_devices_device_id_draft_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[V1DevicesDeviceIdDraftGetResponse]: - """v1_devices_device_id_draft_get + ) -> ApiResponse[V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse]: + """v1_devices_device_id_ospfv3_default_originate_get - Get draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -31627,7 +33331,7 @@ def v1_devices_device_id_draft_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_draft_get_serialize( + _param = self._v1_devices_device_id_ospfv3_default_originate_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -31637,7 +33341,7 @@ def v1_devices_device_id_draft_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdDraftGetResponse", + '200': "V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -31651,7 +33355,7 @@ def v1_devices_device_id_draft_get_with_http_info( @validate_call - def v1_devices_device_id_draft_get_without_preload_content( + def v1_devices_device_id_ospfv3_default_originate_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -31668,9 +33372,8 @@ def v1_devices_device_id_draft_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_draft_get + """v1_devices_device_id_ospfv3_default_originate_get - Get draft configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -31698,7 +33401,7 @@ def v1_devices_device_id_draft_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_draft_get_serialize( + _param = self._v1_devices_device_id_ospfv3_default_originate_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -31708,7 +33411,7 @@ def v1_devices_device_id_draft_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdDraftGetResponse", + '200': "V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse", } response_data = self.api_client.call_api( *_param, @@ -31717,7 +33420,7 @@ def v1_devices_device_id_draft_get_without_preload_content( return response_data.response - def _v1_devices_device_id_draft_get_serialize( + def _v1_devices_device_id_ospfv3_default_originate_get_serialize( self, authorization, device_id, @@ -31768,7 +33471,7 @@ def _v1_devices_device_id_draft_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/draft', + resource_path='/v1/devices/{deviceId}/ospfv3/defaultOriginate', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -31785,11 +33488,10 @@ def _v1_devices_device_id_draft_get_serialize( @validate_call - def v1_devices_device_id_draft_post( + def v1_devices_device_id_policy_applications_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31802,17 +33504,15 @@ def v1_devices_device_id_draft_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdDraftPostResponse: - """v1_devices_device_id_draft_post + ) -> V1DevicesDeviceIdPolicyApplicationsGetResponse: + """v1_devices_device_id_policy_applications_get - Save draft configuration + Get a list of builtin DPI applications able to be configured on a given device based on GNOS version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param v1_devices_device_id_draft_post_request: (required) - :type v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31835,10 +33535,9 @@ def v1_devices_device_id_draft_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_draft_post_serialize( + _param = self._v1_devices_device_id_policy_applications_get_serialize( authorization=authorization, device_id=device_id, - v1_devices_device_id_draft_post_request=v1_devices_device_id_draft_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31846,7 +33545,7 @@ def v1_devices_device_id_draft_post( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "V1DevicesDeviceIdDraftPostResponse", + '200': "V1DevicesDeviceIdPolicyApplicationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -31860,11 +33559,10 @@ def v1_devices_device_id_draft_post( @validate_call - def v1_devices_device_id_draft_post_with_http_info( + def v1_devices_device_id_policy_applications_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31877,17 +33575,15 @@ def v1_devices_device_id_draft_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[V1DevicesDeviceIdDraftPostResponse]: - """v1_devices_device_id_draft_post + ) -> ApiResponse[V1DevicesDeviceIdPolicyApplicationsGetResponse]: + """v1_devices_device_id_policy_applications_get - Save draft configuration + Get a list of builtin DPI applications able to be configured on a given device based on GNOS version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param v1_devices_device_id_draft_post_request: (required) - :type v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31910,10 +33606,9 @@ def v1_devices_device_id_draft_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_draft_post_serialize( + _param = self._v1_devices_device_id_policy_applications_get_serialize( authorization=authorization, device_id=device_id, - v1_devices_device_id_draft_post_request=v1_devices_device_id_draft_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31921,7 +33616,7 @@ def v1_devices_device_id_draft_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "V1DevicesDeviceIdDraftPostResponse", + '200': "V1DevicesDeviceIdPolicyApplicationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -31935,11 +33630,10 @@ def v1_devices_device_id_draft_post_with_http_info( @validate_call - def v1_devices_device_id_draft_post_without_preload_content( + def v1_devices_device_id_policy_applications_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -31953,16 +33647,14 @@ def v1_devices_device_id_draft_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_draft_post + """v1_devices_device_id_policy_applications_get - Save draft configuration + Get a list of builtin DPI applications able to be configured on a given device based on GNOS version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param v1_devices_device_id_draft_post_request: (required) - :type v1_devices_device_id_draft_post_request: V1DevicesDeviceIdDraftPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -31985,10 +33677,9 @@ def v1_devices_device_id_draft_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_draft_post_serialize( + _param = self._v1_devices_device_id_policy_applications_get_serialize( authorization=authorization, device_id=device_id, - v1_devices_device_id_draft_post_request=v1_devices_device_id_draft_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -31996,7 +33687,7 @@ def v1_devices_device_id_draft_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "V1DevicesDeviceIdDraftPostResponse", + '200': "V1DevicesDeviceIdPolicyApplicationsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -32005,11 +33696,10 @@ def v1_devices_device_id_draft_post_without_preload_content( return response_data.response - def _v1_devices_device_id_draft_post_serialize( + def _v1_devices_device_id_policy_applications_get_serialize( self, authorization, device_id, - v1_devices_device_id_draft_post_request, _request_auth, _content_type, _headers, @@ -32039,8 +33729,6 @@ def _v1_devices_device_id_draft_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_devices_device_id_draft_post_request is not None: - _body_params = v1_devices_device_id_draft_post_request # set the HTTP header `Accept` @@ -32051,19 +33739,6 @@ def _v1_devices_device_id_draft_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] = [ @@ -32071,8 +33746,8 @@ def _v1_devices_device_id_draft_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/devices/{deviceId}/draft', + method='GET', + resource_path='/v1/devices/{deviceId}/policy/applications', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32089,7 +33764,7 @@ def _v1_devices_device_id_draft_post_serialize( @validate_call - def v1_devices_device_id_get( + def v1_devices_device_id_policy_zonepairs_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -32105,10 +33780,10 @@ def v1_devices_device_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdGetResponse: - """v1_devices_device_id_get + ) -> V1DevicesDeviceIdPolicyZonepairsGetResponse: + """v1_devices_device_id_policy_zonepairs_get - Get a specific device + Get a list of firewall zone pairs each with holding nested policy rule sets :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -32136,7 +33811,7 @@ def v1_devices_device_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_get_serialize( + _param = self._v1_devices_device_id_policy_zonepairs_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -32146,7 +33821,7 @@ def v1_devices_device_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdGetResponse", + '200': "V1DevicesDeviceIdPolicyZonepairsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -32160,7 +33835,7 @@ def v1_devices_device_id_get( @validate_call - def v1_devices_device_id_get_with_http_info( + def v1_devices_device_id_policy_zonepairs_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -32176,10 +33851,10 @@ def v1_devices_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[V1DevicesDeviceIdGetResponse]: - """v1_devices_device_id_get + ) -> ApiResponse[V1DevicesDeviceIdPolicyZonepairsGetResponse]: + """v1_devices_device_id_policy_zonepairs_get - Get a specific device + Get a list of firewall zone pairs each with holding nested policy rule sets :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -32207,7 +33882,7 @@ def v1_devices_device_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_get_serialize( + _param = self._v1_devices_device_id_policy_zonepairs_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -32217,7 +33892,7 @@ def v1_devices_device_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdGetResponse", + '200': "V1DevicesDeviceIdPolicyZonepairsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -32231,7 +33906,7 @@ def v1_devices_device_id_get_with_http_info( @validate_call - def v1_devices_device_id_get_without_preload_content( + def v1_devices_device_id_policy_zonepairs_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -32248,9 +33923,9 @@ def v1_devices_device_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_get + """v1_devices_device_id_policy_zonepairs_get - Get a specific device + Get a list of firewall zone pairs each with holding nested policy rule sets :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -32278,7 +33953,7 @@ def v1_devices_device_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_get_serialize( + _param = self._v1_devices_device_id_policy_zonepairs_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -32288,7 +33963,7 @@ def v1_devices_device_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdGetResponse", + '200': "V1DevicesDeviceIdPolicyZonepairsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -32297,7 +33972,7 @@ def v1_devices_device_id_get_without_preload_content( return response_data.response - def _v1_devices_device_id_get_serialize( + def _v1_devices_device_id_policy_zonepairs_get_serialize( self, authorization, device_id, @@ -32348,7 +34023,7 @@ def _v1_devices_device_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}', + resource_path='/v1/devices/{deviceId}/policy/zonepairs', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32365,7 +34040,7 @@ def _v1_devices_device_id_get_serialize( @validate_call - def v1_devices_device_id_interfaces_get( + def v1_devices_device_id_slice_peers_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -32381,10 +34056,9 @@ def v1_devices_device_id_interfaces_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdInterfacesGetResponse: - """v1_devices_device_id_interfaces_get + ) -> V1DevicesDeviceIdSlicePeersGetResponse: + """v1_devices_device_id_slice_peers_get - Get interfaces for the given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -32412,7 +34086,7 @@ def v1_devices_device_id_interfaces_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_interfaces_get_serialize( + _param = self._v1_devices_device_id_slice_peers_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -32422,7 +34096,7 @@ def v1_devices_device_id_interfaces_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdInterfacesGetResponse", + '200': "V1DevicesDeviceIdSlicePeersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -32436,7 +34110,7 @@ def v1_devices_device_id_interfaces_get( @validate_call - def v1_devices_device_id_interfaces_get_with_http_info( + def v1_devices_device_id_slice_peers_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -32452,10 +34126,9 @@ def v1_devices_device_id_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[V1DevicesDeviceIdInterfacesGetResponse]: - """v1_devices_device_id_interfaces_get + ) -> ApiResponse[V1DevicesDeviceIdSlicePeersGetResponse]: + """v1_devices_device_id_slice_peers_get - Get interfaces for the given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -32483,7 +34156,7 @@ def v1_devices_device_id_interfaces_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_interfaces_get_serialize( + _param = self._v1_devices_device_id_slice_peers_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -32493,7 +34166,7 @@ def v1_devices_device_id_interfaces_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdInterfacesGetResponse", + '200': "V1DevicesDeviceIdSlicePeersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -32507,7 +34180,7 @@ def v1_devices_device_id_interfaces_get_with_http_info( @validate_call - def v1_devices_device_id_interfaces_get_without_preload_content( + def v1_devices_device_id_slice_peers_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, @@ -32524,9 +34197,8 @@ def v1_devices_device_id_interfaces_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_interfaces_get + """v1_devices_device_id_slice_peers_get - Get interfaces for the given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -32554,7 +34226,7 @@ def v1_devices_device_id_interfaces_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_interfaces_get_serialize( + _param = self._v1_devices_device_id_slice_peers_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -32564,7 +34236,7 @@ def v1_devices_device_id_interfaces_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdInterfacesGetResponse", + '200': "V1DevicesDeviceIdSlicePeersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -32573,7 +34245,7 @@ def v1_devices_device_id_interfaces_get_without_preload_content( return response_data.response - def _v1_devices_device_id_interfaces_get_serialize( + def _v1_devices_device_id_slice_peers_get_serialize( self, authorization, device_id, @@ -32624,7 +34296,7 @@ def _v1_devices_device_id_interfaces_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/interfaces', + resource_path='/v1/devices/{deviceId}/slice/peers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32641,11 +34313,10 @@ def _v1_devices_device_id_interfaces_get_serialize( @validate_call - def v1_devices_device_id_jobs_job_id_get( + def v1_devices_device_id_twamp_core_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - job_id: Annotated[StrictInt, Field(description="id of the job as received from the Enqueue* calls.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32658,17 +34329,15 @@ def v1_devices_device_id_jobs_job_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdJobsJobIdGetResponse: - """v1_devices_device_id_jobs_job_id_get + ) -> V1DevicesDeviceIdTwampCoreGetResponse: + """v1_devices_device_id_twamp_core_get - Get device job status + Get core TWAMP neighbors for a given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param job_id: id of the job as received from the Enqueue* calls. (required) - :type job_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32691,10 +34360,9 @@ def v1_devices_device_id_jobs_job_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_jobs_job_id_get_serialize( + _param = self._v1_devices_device_id_twamp_core_get_serialize( authorization=authorization, device_id=device_id, - job_id=job_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32702,7 +34370,7 @@ def v1_devices_device_id_jobs_job_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdJobsJobIdGetResponse", + '200': "V1DevicesDeviceIdTwampCoreGetResponse", } response_data = self.api_client.call_api( *_param, @@ -32716,11 +34384,10 @@ def v1_devices_device_id_jobs_job_id_get( @validate_call - def v1_devices_device_id_jobs_job_id_get_with_http_info( + def v1_devices_device_id_twamp_core_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - job_id: Annotated[StrictInt, Field(description="id of the job as received from the Enqueue* calls.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32733,17 +34400,15 @@ def v1_devices_device_id_jobs_job_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[V1DevicesDeviceIdJobsJobIdGetResponse]: - """v1_devices_device_id_jobs_job_id_get + ) -> ApiResponse[V1DevicesDeviceIdTwampCoreGetResponse]: + """v1_devices_device_id_twamp_core_get - Get device job status + Get core TWAMP neighbors for a given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param job_id: id of the job as received from the Enqueue* calls. (required) - :type job_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32766,10 +34431,9 @@ def v1_devices_device_id_jobs_job_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_jobs_job_id_get_serialize( + _param = self._v1_devices_device_id_twamp_core_get_serialize( authorization=authorization, device_id=device_id, - job_id=job_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32777,7 +34441,7 @@ def v1_devices_device_id_jobs_job_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdJobsJobIdGetResponse", + '200': "V1DevicesDeviceIdTwampCoreGetResponse", } response_data = self.api_client.call_api( *_param, @@ -32791,11 +34455,10 @@ def v1_devices_device_id_jobs_job_id_get_with_http_info( @validate_call - def v1_devices_device_id_jobs_job_id_get_without_preload_content( + def v1_devices_device_id_twamp_core_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, - job_id: Annotated[StrictInt, Field(description="id of the job as received from the Enqueue* calls.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32809,16 +34472,14 @@ def v1_devices_device_id_jobs_job_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_jobs_job_id_get + """v1_devices_device_id_twamp_core_get - Get device job status + Get core TWAMP neighbors for a given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int - :param job_id: id of the job as received from the Enqueue* calls. (required) - :type job_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -32841,10 +34502,9 @@ def v1_devices_device_id_jobs_job_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_jobs_job_id_get_serialize( + _param = self._v1_devices_device_id_twamp_core_get_serialize( authorization=authorization, device_id=device_id, - job_id=job_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -32852,7 +34512,7 @@ def v1_devices_device_id_jobs_job_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdJobsJobIdGetResponse", + '200': "V1DevicesDeviceIdTwampCoreGetResponse", } response_data = self.api_client.call_api( *_param, @@ -32861,11 +34521,10 @@ def v1_devices_device_id_jobs_job_id_get_without_preload_content( return response_data.response - def _v1_devices_device_id_jobs_job_id_get_serialize( + def _v1_devices_device_id_twamp_core_get_serialize( self, authorization, device_id, - job_id, _request_auth, _content_type, _headers, @@ -32889,8 +34548,6 @@ def _v1_devices_device_id_jobs_job_id_get_serialize( # process the path parameters if device_id is not None: _path_params['deviceId'] = device_id - if job_id is not None: - _path_params['jobId'] = job_id # process the query parameters # process the header parameters if authorization is not None: @@ -32915,7 +34572,7 @@ def _v1_devices_device_id_jobs_job_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/jobs/{jobId}', + resource_path='/v1/devices/{deviceId}/twamp/core', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -32932,10 +34589,10 @@ def _v1_devices_device_id_jobs_job_id_get_serialize( @validate_call - def v1_devices_device_id_ospfv2_default_originate_get( + def v1_devices_device_id_versions_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -32948,13 +34605,14 @@ def v1_devices_device_id_ospfv2_default_originate_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse: - """v1_devices_device_id_ospfv2_default_originate_get + ) -> V1DevicesDeviceIdVersionsGetResponse: + """v1_devices_device_id_versions_get + Get device config versions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) + :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -32978,7 +34636,7 @@ def v1_devices_device_id_ospfv2_default_originate_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_ospfv2_default_originate_get_serialize( + _param = self._v1_devices_device_id_versions_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -32988,7 +34646,7 @@ def v1_devices_device_id_ospfv2_default_originate_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse", + '200': "V1DevicesDeviceIdVersionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33002,10 +34660,10 @@ def v1_devices_device_id_ospfv2_default_originate_get( @validate_call - def v1_devices_device_id_ospfv2_default_originate_get_with_http_info( + def v1_devices_device_id_versions_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33018,13 +34676,14 @@ def v1_devices_device_id_ospfv2_default_originate_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[V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse]: - """v1_devices_device_id_ospfv2_default_originate_get + ) -> ApiResponse[V1DevicesDeviceIdVersionsGetResponse]: + """v1_devices_device_id_versions_get + Get device config versions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) + :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -33048,7 +34707,7 @@ def v1_devices_device_id_ospfv2_default_originate_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_ospfv2_default_originate_get_serialize( + _param = self._v1_devices_device_id_versions_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -33058,7 +34717,7 @@ def v1_devices_device_id_ospfv2_default_originate_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse", + '200': "V1DevicesDeviceIdVersionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33072,10 +34731,10 @@ def v1_devices_device_id_ospfv2_default_originate_get_with_http_info( @validate_call - def v1_devices_device_id_ospfv2_default_originate_get_without_preload_content( + def v1_devices_device_id_versions_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33089,12 +34748,13 @@ def v1_devices_device_id_ospfv2_default_originate_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_ospfv2_default_originate_get + """v1_devices_device_id_versions_get + Get device config versions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) + :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request @@ -33118,7 +34778,7 @@ def v1_devices_device_id_ospfv2_default_originate_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_ospfv2_default_originate_get_serialize( + _param = self._v1_devices_device_id_versions_get_serialize( authorization=authorization, device_id=device_id, _request_auth=_request_auth, @@ -33128,7 +34788,7 @@ def v1_devices_device_id_ospfv2_default_originate_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdOspfv2DefaultOriginateGetResponse", + '200': "V1DevicesDeviceIdVersionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33137,7 +34797,7 @@ def v1_devices_device_id_ospfv2_default_originate_get_without_preload_content( return response_data.response - def _v1_devices_device_id_ospfv2_default_originate_get_serialize( + def _v1_devices_device_id_versions_get_serialize( self, authorization, device_id, @@ -33188,7 +34848,7 @@ def _v1_devices_device_id_ospfv2_default_originate_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/ospfv2/defaultOriginate', + resource_path='/v1/devices/{deviceId}/versions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33205,10 +34865,11 @@ def _v1_devices_device_id_ospfv2_default_originate_get_serialize( @validate_call - def v1_devices_device_id_ospfv3_default_originate_get( + def v1_devices_device_id_versions_version_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], + version: Annotated[int, Field(strict=True, ge=0, description="8 bytes (base32 encoded) version number.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33221,14 +34882,17 @@ def v1_devices_device_id_ospfv3_default_originate_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse: - """v1_devices_device_id_ospfv3_default_originate_get + ) -> V1DevicesDeviceIdVersionsVersionGetResponse: + """v1_devices_device_id_versions_version_get + Get device config for a specific version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) + :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) :type device_id: int + :param version: 8 bytes (base32 encoded) version number. (required) + :type version: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33251,9 +34915,10 @@ def v1_devices_device_id_ospfv3_default_originate_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_ospfv3_default_originate_get_serialize( + _param = self._v1_devices_device_id_versions_version_get_serialize( authorization=authorization, device_id=device_id, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33261,7 +34926,7 @@ def v1_devices_device_id_ospfv3_default_originate_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse", + '200': "V1DevicesDeviceIdVersionsVersionGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33275,10 +34940,11 @@ def v1_devices_device_id_ospfv3_default_originate_get( @validate_call - def v1_devices_device_id_ospfv3_default_originate_get_with_http_info( + def v1_devices_device_id_versions_version_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], + version: Annotated[int, Field(strict=True, ge=0, description="8 bytes (base32 encoded) version number.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33291,14 +34957,17 @@ def v1_devices_device_id_ospfv3_default_originate_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[V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse]: - """v1_devices_device_id_ospfv3_default_originate_get + ) -> ApiResponse[V1DevicesDeviceIdVersionsVersionGetResponse]: + """v1_devices_device_id_versions_version_get + Get device config for a specific version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) + :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) :type device_id: int + :param version: 8 bytes (base32 encoded) version number. (required) + :type version: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33321,9 +34990,10 @@ def v1_devices_device_id_ospfv3_default_originate_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_ospfv3_default_originate_get_serialize( + _param = self._v1_devices_device_id_versions_version_get_serialize( authorization=authorization, device_id=device_id, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33331,7 +35001,7 @@ def v1_devices_device_id_ospfv3_default_originate_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse", + '200': "V1DevicesDeviceIdVersionsVersionGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33345,10 +35015,11 @@ def v1_devices_device_id_ospfv3_default_originate_get_with_http_info( @validate_call - def v1_devices_device_id_ospfv3_default_originate_get_without_preload_content( + def v1_devices_device_id_versions_version_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], + version: Annotated[int, Field(strict=True, ge=0, description="8 bytes (base32 encoded) version number.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33362,13 +35033,16 @@ def v1_devices_device_id_ospfv3_default_originate_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_ospfv3_default_originate_get + """v1_devices_device_id_versions_version_get + Get device config for a specific version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) + :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) :type device_id: int + :param version: 8 bytes (base32 encoded) version number. (required) + :type version: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -33391,9 +35065,10 @@ def v1_devices_device_id_ospfv3_default_originate_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_ospfv3_default_originate_get_serialize( + _param = self._v1_devices_device_id_versions_version_get_serialize( authorization=authorization, device_id=device_id, + version=version, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33401,7 +35076,7 @@ def v1_devices_device_id_ospfv3_default_originate_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdOspfv3DefaultOriginateGetResponse", + '200': "V1DevicesDeviceIdVersionsVersionGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33410,10 +35085,11 @@ def v1_devices_device_id_ospfv3_default_originate_get_without_preload_content( return response_data.response - def _v1_devices_device_id_ospfv3_default_originate_get_serialize( + def _v1_devices_device_id_versions_version_get_serialize( self, authorization, device_id, + version, _request_auth, _content_type, _headers, @@ -33437,6 +35113,8 @@ def _v1_devices_device_id_ospfv3_default_originate_get_serialize( # process the path parameters if device_id is not None: _path_params['deviceId'] = device_id + if version is not None: + _path_params['version'] = version # process the query parameters # process the header parameters if authorization is not None: @@ -33461,7 +35139,7 @@ def _v1_devices_device_id_ospfv3_default_originate_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/ospfv3/defaultOriginate', + resource_path='/v1/devices/{deviceId}/versions/{version}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33478,10 +35156,11 @@ def _v1_devices_device_id_ospfv3_default_originate_get_serialize( @validate_call - def v1_devices_device_id_policy_applications_get( + def v1_devices_device_id_vrf_protocols_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, + vrf_name: Annotated[StrictStr, Field(description="Valid Configured Vrf Name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33494,15 +35173,16 @@ def v1_devices_device_id_policy_applications_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdPolicyApplicationsGetResponse: - """v1_devices_device_id_policy_applications_get + ) -> V1DevicesDeviceIdVrfProtocolsGetResponse: + """v1_devices_device_id_vrf_protocols_get - Get a list of builtin DPI applications able to be configured on a given device based on GNOS version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int + :param vrf_name: Valid Configured Vrf Name (required) + :type vrf_name: 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 @@ -33525,9 +35205,10 @@ def v1_devices_device_id_policy_applications_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_policy_applications_get_serialize( + _param = self._v1_devices_device_id_vrf_protocols_get_serialize( authorization=authorization, device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33535,7 +35216,7 @@ def v1_devices_device_id_policy_applications_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdPolicyApplicationsGetResponse", + '200': "V1DevicesDeviceIdVrfProtocolsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33549,10 +35230,11 @@ def v1_devices_device_id_policy_applications_get( @validate_call - def v1_devices_device_id_policy_applications_get_with_http_info( + def v1_devices_device_id_vrf_protocols_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, + vrf_name: Annotated[StrictStr, Field(description="Valid Configured Vrf Name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33565,15 +35247,16 @@ def v1_devices_device_id_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[V1DevicesDeviceIdPolicyApplicationsGetResponse]: - """v1_devices_device_id_policy_applications_get + ) -> ApiResponse[V1DevicesDeviceIdVrfProtocolsGetResponse]: + """v1_devices_device_id_vrf_protocols_get - Get a list of builtin DPI applications able to be configured on a given device based on GNOS version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int + :param vrf_name: Valid Configured Vrf Name (required) + :type vrf_name: 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 @@ -33596,9 +35279,10 @@ def v1_devices_device_id_policy_applications_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_policy_applications_get_serialize( + _param = self._v1_devices_device_id_vrf_protocols_get_serialize( authorization=authorization, device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33606,7 +35290,7 @@ def v1_devices_device_id_policy_applications_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdPolicyApplicationsGetResponse", + '200': "V1DevicesDeviceIdVrfProtocolsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33620,10 +35304,11 @@ def v1_devices_device_id_policy_applications_get_with_http_info( @validate_call - def v1_devices_device_id_policy_applications_get_without_preload_content( + def v1_devices_device_id_vrf_protocols_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, + vrf_name: Annotated[StrictStr, Field(description="Valid Configured Vrf Name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33637,14 +35322,15 @@ def v1_devices_device_id_policy_applications_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_policy_applications_get + """v1_devices_device_id_vrf_protocols_get - Get a list of builtin DPI applications able to be configured on a given device based on GNOS version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int + :param vrf_name: Valid Configured Vrf Name (required) + :type vrf_name: 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 @@ -33667,9 +35353,10 @@ def v1_devices_device_id_policy_applications_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_policy_applications_get_serialize( + _param = self._v1_devices_device_id_vrf_protocols_get_serialize( authorization=authorization, device_id=device_id, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33677,7 +35364,7 @@ def v1_devices_device_id_policy_applications_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdPolicyApplicationsGetResponse", + '200': "V1DevicesDeviceIdVrfProtocolsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33686,10 +35373,11 @@ def v1_devices_device_id_policy_applications_get_without_preload_content( return response_data.response - def _v1_devices_device_id_policy_applications_get_serialize( + def _v1_devices_device_id_vrf_protocols_get_serialize( self, authorization, device_id, + vrf_name, _request_auth, _content_type, _headers, @@ -33714,6 +35402,10 @@ def _v1_devices_device_id_policy_applications_get_serialize( if device_id is not None: _path_params['deviceId'] = device_id # process the query parameters + if vrf_name is not None: + + _query_params.append(('vrfName', vrf_name)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -33737,7 +35429,7 @@ def _v1_devices_device_id_policy_applications_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/policy/applications', + resource_path='/v1/devices/{deviceId}/vrf/protocols', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -33754,10 +35446,12 @@ def _v1_devices_device_id_policy_applications_get_serialize( @validate_call - def v1_devices_device_id_policy_zonepairs_get( + def v1_devices_device_id_vrrp_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, + group_id: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="VRRP configured group id")] = None, + interface_name: Annotated[Optional[StrictStr], Field(description="interface name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33770,15 +35464,19 @@ def v1_devices_device_id_policy_zonepairs_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdPolicyZonepairsGetResponse: - """v1_devices_device_id_policy_zonepairs_get + ) -> V1DevicesDeviceIdVrrpGetResponse: + """v1_devices_device_id_vrrp_get - Get a list of firewall zone pairs each with holding nested policy rule sets + Get VRRP monitoring table for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int + :param group_id: VRRP configured group id + :type group_id: int + :param interface_name: interface name + :type interface_name: 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 @@ -33801,9 +35499,11 @@ def v1_devices_device_id_policy_zonepairs_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_policy_zonepairs_get_serialize( + _param = self._v1_devices_device_id_vrrp_get_serialize( authorization=authorization, device_id=device_id, + group_id=group_id, + interface_name=interface_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33811,7 +35511,7 @@ def v1_devices_device_id_policy_zonepairs_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdPolicyZonepairsGetResponse", + '200': "V1DevicesDeviceIdVrrpGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33825,10 +35525,12 @@ def v1_devices_device_id_policy_zonepairs_get( @validate_call - def v1_devices_device_id_policy_zonepairs_get_with_http_info( + def v1_devices_device_id_vrrp_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, + group_id: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="VRRP configured group id")] = None, + interface_name: Annotated[Optional[StrictStr], Field(description="interface name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33841,15 +35543,19 @@ def v1_devices_device_id_policy_zonepairs_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[V1DevicesDeviceIdPolicyZonepairsGetResponse]: - """v1_devices_device_id_policy_zonepairs_get + ) -> ApiResponse[V1DevicesDeviceIdVrrpGetResponse]: + """v1_devices_device_id_vrrp_get - Get a list of firewall zone pairs each with holding nested policy rule sets + Get VRRP monitoring table for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int + :param group_id: VRRP configured group id + :type group_id: int + :param interface_name: interface name + :type interface_name: 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 @@ -33872,9 +35578,11 @@ def v1_devices_device_id_policy_zonepairs_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_policy_zonepairs_get_serialize( + _param = self._v1_devices_device_id_vrrp_get_serialize( authorization=authorization, device_id=device_id, + group_id=group_id, + interface_name=interface_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33882,7 +35590,7 @@ def v1_devices_device_id_policy_zonepairs_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdPolicyZonepairsGetResponse", + '200': "V1DevicesDeviceIdVrrpGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33896,10 +35604,12 @@ def v1_devices_device_id_policy_zonepairs_get_with_http_info( @validate_call - def v1_devices_device_id_policy_zonepairs_get_without_preload_content( + def v1_devices_device_id_vrrp_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], device_id: StrictInt, + group_id: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="VRRP configured group id")] = None, + interface_name: Annotated[Optional[StrictStr], Field(description="interface name")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -33913,14 +35623,18 @@ def v1_devices_device_id_policy_zonepairs_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_policy_zonepairs_get + """v1_devices_device_id_vrrp_get - Get a list of firewall zone pairs each with holding nested policy rule sets + Get VRRP monitoring table for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str :param device_id: (required) :type device_id: int + :param group_id: VRRP configured group id + :type group_id: int + :param interface_name: interface name + :type interface_name: 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 @@ -33943,9 +35657,11 @@ def v1_devices_device_id_policy_zonepairs_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_policy_zonepairs_get_serialize( + _param = self._v1_devices_device_id_vrrp_get_serialize( authorization=authorization, device_id=device_id, + group_id=group_id, + interface_name=interface_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -33953,7 +35669,7 @@ def v1_devices_device_id_policy_zonepairs_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdPolicyZonepairsGetResponse", + '200': "V1DevicesDeviceIdVrrpGetResponse", } response_data = self.api_client.call_api( *_param, @@ -33962,10 +35678,12 @@ def v1_devices_device_id_policy_zonepairs_get_without_preload_content( return response_data.response - def _v1_devices_device_id_policy_zonepairs_get_serialize( + def _v1_devices_device_id_vrrp_get_serialize( self, authorization, device_id, + group_id, + interface_name, _request_auth, _content_type, _headers, @@ -33990,6 +35708,14 @@ def _v1_devices_device_id_policy_zonepairs_get_serialize( if device_id is not None: _path_params['deviceId'] = device_id # process the query parameters + if group_id is not None: + + _query_params.append(('groupId', group_id)) + + if interface_name is not None: + + _query_params.append(('interfaceName', interface_name)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -34013,7 +35739,7 @@ def _v1_devices_device_id_policy_zonepairs_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/policy/zonepairs', + resource_path='/v1/devices/{deviceId}/vrrp', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34030,10 +35756,9 @@ def _v1_devices_device_id_policy_zonepairs_get_serialize( @validate_call - def v1_devices_device_id_slice_peers_get( + def v1_devices_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34046,14 +35771,13 @@ def v1_devices_device_id_slice_peers_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdSlicePeersGetResponse: - """v1_devices_device_id_slice_peers_get + ) -> V1DevicesGetResponse: + """v1_devices_get + Get devices for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34076,9 +35800,8 @@ def v1_devices_device_id_slice_peers_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_slice_peers_get_serialize( + _param = self._v1_devices_get_serialize( authorization=authorization, - device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34086,7 +35809,7 @@ def v1_devices_device_id_slice_peers_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdSlicePeersGetResponse", + '200': "V1DevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -34100,10 +35823,9 @@ def v1_devices_device_id_slice_peers_get( @validate_call - def v1_devices_device_id_slice_peers_get_with_http_info( + def v1_devices_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34116,14 +35838,13 @@ def v1_devices_device_id_slice_peers_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[V1DevicesDeviceIdSlicePeersGetResponse]: - """v1_devices_device_id_slice_peers_get + ) -> ApiResponse[V1DevicesGetResponse]: + """v1_devices_get + Get devices for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34146,9 +35867,8 @@ def v1_devices_device_id_slice_peers_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_slice_peers_get_serialize( + _param = self._v1_devices_get_serialize( authorization=authorization, - device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34156,7 +35876,7 @@ def v1_devices_device_id_slice_peers_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdSlicePeersGetResponse", + '200': "V1DevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -34170,10 +35890,9 @@ def v1_devices_device_id_slice_peers_get_with_http_info( @validate_call - def v1_devices_device_id_slice_peers_get_without_preload_content( + def v1_devices_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34187,13 +35906,12 @@ def v1_devices_device_id_slice_peers_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_slice_peers_get + """v1_devices_get + Get devices for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34216,9 +35934,8 @@ def v1_devices_device_id_slice_peers_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_slice_peers_get_serialize( + _param = self._v1_devices_get_serialize( authorization=authorization, - device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34226,7 +35943,7 @@ def v1_devices_device_id_slice_peers_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdSlicePeersGetResponse", + '200': "V1DevicesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -34235,10 +35952,9 @@ def v1_devices_device_id_slice_peers_get_without_preload_content( return response_data.response - def _v1_devices_device_id_slice_peers_get_serialize( + def _v1_devices_get_serialize( self, authorization, - device_id, _request_auth, _content_type, _headers, @@ -34260,8 +35976,6 @@ def _v1_devices_device_id_slice_peers_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: @@ -34286,7 +36000,7 @@ def _v1_devices_device_id_slice_peers_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/slice/peers', + resource_path='/v1/devices', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34303,10 +36017,10 @@ def _v1_devices_device_id_slice_peers_get_serialize( @validate_call - def v1_devices_device_id_twamp_core_get( + def v1_devices_inventory_approve_return_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34319,15 +36033,14 @@ def v1_devices_device_id_twamp_core_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdTwampCoreGetResponse: - """v1_devices_device_id_twamp_core_get + ) -> object: + """v1_devices_inventory_approve_return_post - Get core TWAMP neighbors for a given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param v1_devices_inventory_approve_return_post_request: (required) + :type v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34350,9 +36063,9 @@ def v1_devices_device_id_twamp_core_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_twamp_core_get_serialize( + _param = self._v1_devices_inventory_approve_return_post_serialize( authorization=authorization, - device_id=device_id, + v1_devices_inventory_approve_return_post_request=v1_devices_inventory_approve_return_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34360,7 +36073,7 @@ def v1_devices_device_id_twamp_core_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdTwampCoreGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -34374,10 +36087,10 @@ def v1_devices_device_id_twamp_core_get( @validate_call - def v1_devices_device_id_twamp_core_get_with_http_info( + def v1_devices_inventory_approve_return_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34390,15 +36103,14 @@ def v1_devices_device_id_twamp_core_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[V1DevicesDeviceIdTwampCoreGetResponse]: - """v1_devices_device_id_twamp_core_get + ) -> ApiResponse[object]: + """v1_devices_inventory_approve_return_post - Get core TWAMP neighbors for a given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param v1_devices_inventory_approve_return_post_request: (required) + :type v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34421,9 +36133,9 @@ def v1_devices_device_id_twamp_core_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_twamp_core_get_serialize( + _param = self._v1_devices_inventory_approve_return_post_serialize( authorization=authorization, - device_id=device_id, + v1_devices_inventory_approve_return_post_request=v1_devices_inventory_approve_return_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34431,7 +36143,7 @@ def v1_devices_device_id_twamp_core_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdTwampCoreGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -34445,10 +36157,10 @@ def v1_devices_device_id_twamp_core_get_with_http_info( @validate_call - def v1_devices_device_id_twamp_core_get_without_preload_content( + def v1_devices_inventory_approve_return_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, + v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34462,14 +36174,13 @@ def v1_devices_device_id_twamp_core_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_twamp_core_get + """v1_devices_inventory_approve_return_post - Get core TWAMP neighbors for a given device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int + :param v1_devices_inventory_approve_return_post_request: (required) + :type v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34492,9 +36203,9 @@ def v1_devices_device_id_twamp_core_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_twamp_core_get_serialize( + _param = self._v1_devices_inventory_approve_return_post_serialize( authorization=authorization, - device_id=device_id, + v1_devices_inventory_approve_return_post_request=v1_devices_inventory_approve_return_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34502,7 +36213,7 @@ def v1_devices_device_id_twamp_core_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdTwampCoreGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -34511,10 +36222,10 @@ def v1_devices_device_id_twamp_core_get_without_preload_content( return response_data.response - def _v1_devices_device_id_twamp_core_get_serialize( + def _v1_devices_inventory_approve_return_post_serialize( self, authorization, - device_id, + v1_devices_inventory_approve_return_post_request, _request_auth, _content_type, _headers, @@ -34536,14 +36247,14 @@ def _v1_devices_device_id_twamp_core_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_devices_inventory_approve_return_post_request is not None: + _body_params = v1_devices_inventory_approve_return_post_request # set the HTTP header `Accept` @@ -34554,6 +36265,19 @@ def _v1_devices_device_id_twamp_core_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] = [ @@ -34561,8 +36285,8 @@ def _v1_devices_device_id_twamp_core_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/devices/{deviceId}/twamp/core', + method='POST', + resource_path='/v1/devices/inventory/approve-return', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34579,10 +36303,10 @@ def _v1_devices_device_id_twamp_core_get_serialize( @validate_call - def v1_devices_device_id_versions_get( + def v1_devices_inventory_clear_new_flag_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34595,15 +36319,14 @@ def v1_devices_device_id_versions_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdVersionsGetResponse: - """v1_devices_device_id_versions_get + ) -> object: + """v1_devices_inventory_clear_new_flag_post - Get device config versions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) - :type device_id: int + :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 @@ -34626,9 +36349,9 @@ def v1_devices_device_id_versions_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_versions_get_serialize( + _param = self._v1_devices_inventory_clear_new_flag_post_serialize( authorization=authorization, - device_id=device_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34636,7 +36359,7 @@ def v1_devices_device_id_versions_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVersionsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -34650,10 +36373,10 @@ def v1_devices_device_id_versions_get( @validate_call - def v1_devices_device_id_versions_get_with_http_info( + def v1_devices_inventory_clear_new_flag_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34666,15 +36389,14 @@ def v1_devices_device_id_versions_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[V1DevicesDeviceIdVersionsGetResponse]: - """v1_devices_device_id_versions_get + ) -> ApiResponse[object]: + """v1_devices_inventory_clear_new_flag_post - Get device config versions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) - :type device_id: int + :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 @@ -34697,9 +36419,9 @@ def v1_devices_device_id_versions_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_versions_get_serialize( + _param = self._v1_devices_inventory_clear_new_flag_post_serialize( authorization=authorization, - device_id=device_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34707,7 +36429,7 @@ def v1_devices_device_id_versions_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVersionsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -34721,10 +36443,10 @@ def v1_devices_device_id_versions_get_with_http_info( @validate_call - def v1_devices_device_id_versions_get_without_preload_content( + def v1_devices_inventory_clear_new_flag_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34738,14 +36460,13 @@ def v1_devices_device_id_versions_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_versions_get + """v1_devices_inventory_clear_new_flag_post - Get device config versions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) - :type device_id: int + :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 @@ -34768,9 +36489,9 @@ def v1_devices_device_id_versions_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_versions_get_serialize( + _param = self._v1_devices_inventory_clear_new_flag_post_serialize( authorization=authorization, - device_id=device_id, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34778,7 +36499,7 @@ def v1_devices_device_id_versions_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVersionsGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -34787,10 +36508,10 @@ def v1_devices_device_id_versions_get_without_preload_content( return response_data.response - def _v1_devices_device_id_versions_get_serialize( + def _v1_devices_inventory_clear_new_flag_post_serialize( self, authorization, - device_id, + body, _request_auth, _content_type, _headers, @@ -34812,14 +36533,14 @@ def _v1_devices_device_id_versions_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if body is not None: + _body_params = body # set the HTTP header `Accept` @@ -34830,6 +36551,19 @@ def _v1_devices_device_id_versions_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] = [ @@ -34837,8 +36571,8 @@ def _v1_devices_device_id_versions_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/devices/{deviceId}/versions', + method='POST', + resource_path='/v1/devices/inventory/clear-new-flag', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -34855,11 +36589,10 @@ def _v1_devices_device_id_versions_get_serialize( @validate_call - def v1_devices_device_id_versions_version_get( + def v1_devices_inventory_clear_return_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], - version: Annotated[int, Field(strict=True, ge=0, description="8 bytes (base32 encoded) version number.")], + v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34872,17 +36605,14 @@ def v1_devices_device_id_versions_version_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdVersionsVersionGetResponse: - """v1_devices_device_id_versions_version_get + ) -> object: + """v1_devices_inventory_clear_return_post - Get device config for a specific version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) - :type device_id: int - :param version: 8 bytes (base32 encoded) version number. (required) - :type version: int + :param v1_devices_inventory_clear_return_post_request: (required) + :type v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34905,10 +36635,9 @@ def v1_devices_device_id_versions_version_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_versions_version_get_serialize( + _param = self._v1_devices_inventory_clear_return_post_serialize( authorization=authorization, - device_id=device_id, - version=version, + v1_devices_inventory_clear_return_post_request=v1_devices_inventory_clear_return_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34916,7 +36645,7 @@ def v1_devices_device_id_versions_version_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVersionsVersionGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -34930,11 +36659,10 @@ def v1_devices_device_id_versions_version_get( @validate_call - def v1_devices_device_id_versions_version_get_with_http_info( + def v1_devices_inventory_clear_return_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], - version: Annotated[int, Field(strict=True, ge=0, description="8 bytes (base32 encoded) version number.")], + v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -34947,17 +36675,14 @@ def v1_devices_device_id_versions_version_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[V1DevicesDeviceIdVersionsVersionGetResponse]: - """v1_devices_device_id_versions_version_get + ) -> ApiResponse[object]: + """v1_devices_inventory_clear_return_post - Get device config for a specific version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) - :type device_id: int - :param version: 8 bytes (base32 encoded) version number. (required) - :type version: int + :param v1_devices_inventory_clear_return_post_request: (required) + :type v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -34980,10 +36705,9 @@ def v1_devices_device_id_versions_version_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_versions_version_get_serialize( + _param = self._v1_devices_inventory_clear_return_post_serialize( authorization=authorization, - device_id=device_id, - version=version, + v1_devices_inventory_clear_return_post_request=v1_devices_inventory_clear_return_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -34991,7 +36715,7 @@ def v1_devices_device_id_versions_version_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVersionsVersionGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -35005,11 +36729,10 @@ def v1_devices_device_id_versions_version_get_with_http_info( @validate_call - def v1_devices_device_id_versions_version_get_without_preload_content( + def v1_devices_inventory_clear_return_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="16 bytes (base64 encoded) identifier for the device.")], - version: Annotated[int, Field(strict=True, ge=0, description="8 bytes (base32 encoded) version number.")], + v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35023,16 +36746,13 @@ def v1_devices_device_id_versions_version_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_versions_version_get + """v1_devices_inventory_clear_return_post - Get device config for a specific version :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: 16 bytes (base64 encoded) identifier for the device. (required) - :type device_id: int - :param version: 8 bytes (base32 encoded) version number. (required) - :type version: int + :param v1_devices_inventory_clear_return_post_request: (required) + :type v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35055,10 +36775,9 @@ def v1_devices_device_id_versions_version_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_versions_version_get_serialize( + _param = self._v1_devices_inventory_clear_return_post_serialize( authorization=authorization, - device_id=device_id, - version=version, + v1_devices_inventory_clear_return_post_request=v1_devices_inventory_clear_return_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35066,7 +36785,7 @@ def v1_devices_device_id_versions_version_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVersionsVersionGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -35075,11 +36794,10 @@ def v1_devices_device_id_versions_version_get_without_preload_content( return response_data.response - def _v1_devices_device_id_versions_version_get_serialize( + def _v1_devices_inventory_clear_return_post_serialize( self, authorization, - device_id, - version, + v1_devices_inventory_clear_return_post_request, _request_auth, _content_type, _headers, @@ -35101,16 +36819,14 @@ def _v1_devices_device_id_versions_version_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id - if version is not None: - _path_params['version'] = version # 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_devices_inventory_clear_return_post_request is not None: + _body_params = v1_devices_inventory_clear_return_post_request # set the HTTP header `Accept` @@ -35121,6 +36837,19 @@ def _v1_devices_device_id_versions_version_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] = [ @@ -35128,8 +36857,8 @@ def _v1_devices_device_id_versions_version_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/devices/{deviceId}/versions/{version}', + method='POST', + resource_path='/v1/devices/inventory/clear-return', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -35146,11 +36875,10 @@ def _v1_devices_device_id_versions_version_get_serialize( @validate_call - def v1_devices_device_id_vrf_protocols_get( + def v1_devices_inventory_enterprise_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - vrf_name: Annotated[StrictStr, Field(description="Valid Configured Vrf Name")], + v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35163,16 +36891,14 @@ def v1_devices_device_id_vrf_protocols_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdVrfProtocolsGetResponse: - """v1_devices_device_id_vrf_protocols_get + ) -> None: + """v1_devices_inventory_enterprise_put :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param vrf_name: Valid Configured Vrf Name (required) - :type vrf_name: str + :param v1_devices_inventory_enterprise_put_request: (required) + :type v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35195,10 +36921,9 @@ def v1_devices_device_id_vrf_protocols_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_vrf_protocols_get_serialize( + _param = self._v1_devices_inventory_enterprise_put_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, + v1_devices_inventory_enterprise_put_request=v1_devices_inventory_enterprise_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35206,7 +36931,7 @@ def v1_devices_device_id_vrf_protocols_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVrfProtocolsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -35220,11 +36945,10 @@ def v1_devices_device_id_vrf_protocols_get( @validate_call - def v1_devices_device_id_vrf_protocols_get_with_http_info( + def v1_devices_inventory_enterprise_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - vrf_name: Annotated[StrictStr, Field(description="Valid Configured Vrf Name")], + v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35237,16 +36961,14 @@ def v1_devices_device_id_vrf_protocols_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[V1DevicesDeviceIdVrfProtocolsGetResponse]: - """v1_devices_device_id_vrf_protocols_get + ) -> ApiResponse[None]: + """v1_devices_inventory_enterprise_put :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param vrf_name: Valid Configured Vrf Name (required) - :type vrf_name: str + :param v1_devices_inventory_enterprise_put_request: (required) + :type v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35269,10 +36991,9 @@ def v1_devices_device_id_vrf_protocols_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_vrf_protocols_get_serialize( + _param = self._v1_devices_inventory_enterprise_put_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, + v1_devices_inventory_enterprise_put_request=v1_devices_inventory_enterprise_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35280,7 +37001,7 @@ def v1_devices_device_id_vrf_protocols_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVrfProtocolsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -35294,11 +37015,10 @@ def v1_devices_device_id_vrf_protocols_get_with_http_info( @validate_call - def v1_devices_device_id_vrf_protocols_get_without_preload_content( + def v1_devices_inventory_enterprise_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - vrf_name: Annotated[StrictStr, Field(description="Valid Configured Vrf Name")], + v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35312,15 +37032,13 @@ def v1_devices_device_id_vrf_protocols_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_vrf_protocols_get + """v1_devices_inventory_enterprise_put :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param vrf_name: Valid Configured Vrf Name (required) - :type vrf_name: str + :param v1_devices_inventory_enterprise_put_request: (required) + :type v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35343,10 +37061,9 @@ def v1_devices_device_id_vrf_protocols_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_vrf_protocols_get_serialize( + _param = self._v1_devices_inventory_enterprise_put_serialize( authorization=authorization, - device_id=device_id, - vrf_name=vrf_name, + v1_devices_inventory_enterprise_put_request=v1_devices_inventory_enterprise_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35354,7 +37071,7 @@ def v1_devices_device_id_vrf_protocols_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVrfProtocolsGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -35363,11 +37080,10 @@ def v1_devices_device_id_vrf_protocols_get_without_preload_content( return response_data.response - def _v1_devices_device_id_vrf_protocols_get_serialize( + def _v1_devices_inventory_enterprise_put_serialize( self, authorization, - device_id, - vrf_name, + v1_devices_inventory_enterprise_put_request, _request_auth, _content_type, _headers, @@ -35389,28 +37105,30 @@ def _v1_devices_device_id_vrf_protocols_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters - if vrf_name is not None: - - _query_params.append(('vrfName', vrf_name)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_devices_inventory_enterprise_put_request is not None: + _body_params = v1_devices_inventory_enterprise_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] = [ @@ -35418,8 +37136,8 @@ def _v1_devices_device_id_vrf_protocols_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/devices/{deviceId}/vrf/protocols', + method='PUT', + resource_path='/v1/devices/inventory/enterprise', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -35436,12 +37154,10 @@ def _v1_devices_device_id_vrf_protocols_get_serialize( @validate_call - def v1_devices_device_id_vrrp_get( + def v1_devices_inventory_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - group_id: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="VRRP configured group id")] = None, - interface_name: Annotated[Optional[StrictStr], Field(description="interface name")] = None, + not_assigned: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35454,19 +37170,14 @@ def v1_devices_device_id_vrrp_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesDeviceIdVrrpGetResponse: - """v1_devices_device_id_vrrp_get + ) -> V1DevicesInventoryGetResponse: + """v1_devices_inventory_get - Get VRRP monitoring table for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param group_id: VRRP configured group id - :type group_id: int - :param interface_name: interface name - :type interface_name: str + :param not_assigned: + :type not_assigned: 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 @@ -35489,11 +37200,9 @@ def v1_devices_device_id_vrrp_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_vrrp_get_serialize( + _param = self._v1_devices_inventory_get_serialize( authorization=authorization, - device_id=device_id, - group_id=group_id, - interface_name=interface_name, + not_assigned=not_assigned, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35501,7 +37210,7 @@ def v1_devices_device_id_vrrp_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVrrpGetResponse", + '200': "V1DevicesInventoryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -35515,12 +37224,10 @@ def v1_devices_device_id_vrrp_get( @validate_call - def v1_devices_device_id_vrrp_get_with_http_info( + def v1_devices_inventory_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - group_id: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="VRRP configured group id")] = None, - interface_name: Annotated[Optional[StrictStr], Field(description="interface name")] = None, + not_assigned: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35533,19 +37240,14 @@ def v1_devices_device_id_vrrp_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[V1DevicesDeviceIdVrrpGetResponse]: - """v1_devices_device_id_vrrp_get + ) -> ApiResponse[V1DevicesInventoryGetResponse]: + """v1_devices_inventory_get - Get VRRP monitoring table for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param group_id: VRRP configured group id - :type group_id: int - :param interface_name: interface name - :type interface_name: str + :param not_assigned: + :type not_assigned: 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 @@ -35568,11 +37270,9 @@ def v1_devices_device_id_vrrp_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_vrrp_get_serialize( + _param = self._v1_devices_inventory_get_serialize( authorization=authorization, - device_id=device_id, - group_id=group_id, - interface_name=interface_name, + not_assigned=not_assigned, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35580,7 +37280,7 @@ def v1_devices_device_id_vrrp_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVrrpGetResponse", + '200': "V1DevicesInventoryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -35594,12 +37294,10 @@ def v1_devices_device_id_vrrp_get_with_http_info( @validate_call - def v1_devices_device_id_vrrp_get_without_preload_content( + def v1_devices_inventory_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: StrictInt, - group_id: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="VRRP configured group id")] = None, - interface_name: Annotated[Optional[StrictStr], Field(description="interface name")] = None, + not_assigned: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35613,18 +37311,13 @@ def v1_devices_device_id_vrrp_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_device_id_vrrp_get + """v1_devices_inventory_get - Get VRRP monitoring table for a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: (required) - :type device_id: int - :param group_id: VRRP configured group id - :type group_id: int - :param interface_name: interface name - :type interface_name: str + :param not_assigned: + :type not_assigned: 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 @@ -35647,11 +37340,9 @@ def v1_devices_device_id_vrrp_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_device_id_vrrp_get_serialize( + _param = self._v1_devices_inventory_get_serialize( authorization=authorization, - device_id=device_id, - group_id=group_id, - interface_name=interface_name, + not_assigned=not_assigned, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35659,7 +37350,7 @@ def v1_devices_device_id_vrrp_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesDeviceIdVrrpGetResponse", + '200': "V1DevicesInventoryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -35668,12 +37359,10 @@ def v1_devices_device_id_vrrp_get_without_preload_content( return response_data.response - def _v1_devices_device_id_vrrp_get_serialize( + def _v1_devices_inventory_get_serialize( self, authorization, - device_id, - group_id, - interface_name, + not_assigned, _request_auth, _content_type, _headers, @@ -35695,16 +37384,10 @@ def _v1_devices_device_id_vrrp_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters - if group_id is not None: - - _query_params.append(('groupId', group_id)) - - if interface_name is not None: + if not_assigned is not None: - _query_params.append(('interfaceName', interface_name)) + _query_params.append(('notAssigned', not_assigned)) # process the header parameters if authorization is not None: @@ -35729,7 +37412,7 @@ def _v1_devices_device_id_vrrp_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/{deviceId}/vrrp', + resource_path='/v1/devices/inventory', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -35746,9 +37429,10 @@ def _v1_devices_device_id_vrrp_get_serialize( @validate_call - def v1_devices_get( + def v1_devices_inventory_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_inventory_post_request: V1DevicesInventoryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35761,13 +37445,14 @@ def v1_devices_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesGetResponse: - """v1_devices_get + ) -> V1DevicesInventoryPostResponse: + """v1_devices_inventory_post - Get devices for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_devices_inventory_post_request: (required) + :type v1_devices_inventory_post_request: V1DevicesInventoryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35790,8 +37475,9 @@ def v1_devices_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_get_serialize( + _param = self._v1_devices_inventory_post_serialize( authorization=authorization, + v1_devices_inventory_post_request=v1_devices_inventory_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35799,7 +37485,7 @@ def v1_devices_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesGetResponse", + '200': "V1DevicesInventoryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -35813,9 +37499,10 @@ def v1_devices_get( @validate_call - def v1_devices_get_with_http_info( + def v1_devices_inventory_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_inventory_post_request: V1DevicesInventoryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35828,13 +37515,14 @@ def v1_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[V1DevicesGetResponse]: - """v1_devices_get + ) -> ApiResponse[V1DevicesInventoryPostResponse]: + """v1_devices_inventory_post - Get devices for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_devices_inventory_post_request: (required) + :type v1_devices_inventory_post_request: V1DevicesInventoryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35857,8 +37545,9 @@ def v1_devices_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_get_serialize( + _param = self._v1_devices_inventory_post_serialize( authorization=authorization, + v1_devices_inventory_post_request=v1_devices_inventory_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35866,7 +37555,7 @@ def v1_devices_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesGetResponse", + '200': "V1DevicesInventoryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -35880,9 +37569,10 @@ def v1_devices_get_with_http_info( @validate_call - def v1_devices_get_without_preload_content( + def v1_devices_inventory_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_inventory_post_request: V1DevicesInventoryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -35896,12 +37586,13 @@ def v1_devices_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_get + """v1_devices_inventory_post - Get devices for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_devices_inventory_post_request: (required) + :type v1_devices_inventory_post_request: V1DevicesInventoryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -35924,8 +37615,9 @@ def v1_devices_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_get_serialize( + _param = self._v1_devices_inventory_post_serialize( authorization=authorization, + v1_devices_inventory_post_request=v1_devices_inventory_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -35933,7 +37625,7 @@ def v1_devices_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesGetResponse", + '200': "V1DevicesInventoryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -35942,9 +37634,10 @@ def v1_devices_get_without_preload_content( return response_data.response - def _v1_devices_get_serialize( + def _v1_devices_inventory_post_serialize( self, authorization, + v1_devices_inventory_post_request, _request_auth, _content_type, _headers, @@ -35972,6 +37665,8 @@ def _v1_devices_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_devices_inventory_post_request is not None: + _body_params = v1_devices_inventory_post_request # set the HTTP header `Accept` @@ -35982,6 +37677,19 @@ def _v1_devices_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] = [ @@ -35989,8 +37697,8 @@ def _v1_devices_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/devices', + method='POST', + resource_path='/v1/devices/inventory', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -36007,10 +37715,10 @@ def _v1_devices_get_serialize( @validate_call - def v1_devices_inventory_approve_return_post( + def v1_devices_inventory_request_return_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest, + v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36024,13 +37732,13 @@ def v1_devices_inventory_approve_return_post( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> object: - """v1_devices_inventory_approve_return_post + """v1_devices_inventory_request_return_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_inventory_approve_return_post_request: (required) - :type v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest + :param v1_devices_inventory_request_return_post_request: (required) + :type v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36053,9 +37761,9 @@ def v1_devices_inventory_approve_return_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_approve_return_post_serialize( + _param = self._v1_devices_inventory_request_return_post_serialize( authorization=authorization, - v1_devices_inventory_approve_return_post_request=v1_devices_inventory_approve_return_post_request, + v1_devices_inventory_request_return_post_request=v1_devices_inventory_request_return_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36077,10 +37785,10 @@ def v1_devices_inventory_approve_return_post( @validate_call - def v1_devices_inventory_approve_return_post_with_http_info( + def v1_devices_inventory_request_return_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest, + v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36094,13 +37802,13 @@ def v1_devices_inventory_approve_return_post_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[object]: - """v1_devices_inventory_approve_return_post + """v1_devices_inventory_request_return_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_inventory_approve_return_post_request: (required) - :type v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest + :param v1_devices_inventory_request_return_post_request: (required) + :type v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36123,9 +37831,9 @@ def v1_devices_inventory_approve_return_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_approve_return_post_serialize( + _param = self._v1_devices_inventory_request_return_post_serialize( authorization=authorization, - v1_devices_inventory_approve_return_post_request=v1_devices_inventory_approve_return_post_request, + v1_devices_inventory_request_return_post_request=v1_devices_inventory_request_return_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36147,10 +37855,10 @@ def v1_devices_inventory_approve_return_post_with_http_info( @validate_call - def v1_devices_inventory_approve_return_post_without_preload_content( + def v1_devices_inventory_request_return_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest, + v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36164,13 +37872,13 @@ def v1_devices_inventory_approve_return_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_inventory_approve_return_post + """v1_devices_inventory_request_return_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_inventory_approve_return_post_request: (required) - :type v1_devices_inventory_approve_return_post_request: V1DevicesInventoryApproveReturnPostRequest + :param v1_devices_inventory_request_return_post_request: (required) + :type v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -36193,9 +37901,9 @@ def v1_devices_inventory_approve_return_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_approve_return_post_serialize( + _param = self._v1_devices_inventory_request_return_post_serialize( authorization=authorization, - v1_devices_inventory_approve_return_post_request=v1_devices_inventory_approve_return_post_request, + v1_devices_inventory_request_return_post_request=v1_devices_inventory_request_return_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36212,10 +37920,10 @@ def v1_devices_inventory_approve_return_post_without_preload_content( return response_data.response - def _v1_devices_inventory_approve_return_post_serialize( + def _v1_devices_inventory_request_return_post_serialize( self, authorization, - v1_devices_inventory_approve_return_post_request, + v1_devices_inventory_request_return_post_request, _request_auth, _content_type, _headers, @@ -36243,8 +37951,8 @@ def _v1_devices_inventory_approve_return_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_devices_inventory_approve_return_post_request is not None: - _body_params = v1_devices_inventory_approve_return_post_request + if v1_devices_inventory_request_return_post_request is not None: + _body_params = v1_devices_inventory_request_return_post_request # set the HTTP header `Accept` @@ -36276,7 +37984,7 @@ def _v1_devices_inventory_approve_return_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/devices/inventory/approve-return', + resource_path='/v1/devices/inventory/request-return', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -36293,10 +38001,10 @@ def _v1_devices_inventory_approve_return_post_serialize( @validate_call - def v1_devices_inventory_clear_new_flag_post( + def v1_devices_inventory_serial_num_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - body: Dict[str, Any], + device_serials: Optional[List[StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36309,14 +38017,14 @@ def v1_devices_inventory_clear_new_flag_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_devices_inventory_clear_new_flag_post + ) -> None: + """v1_devices_inventory_serial_num_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :param device_serials: + :type device_serials: 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 @@ -36339,9 +38047,9 @@ def v1_devices_inventory_clear_new_flag_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_clear_new_flag_post_serialize( + _param = self._v1_devices_inventory_serial_num_delete_serialize( authorization=authorization, - body=body, + device_serials=device_serials, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36349,7 +38057,7 @@ def v1_devices_inventory_clear_new_flag_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -36363,10 +38071,10 @@ def v1_devices_inventory_clear_new_flag_post( @validate_call - def v1_devices_inventory_clear_new_flag_post_with_http_info( + def v1_devices_inventory_serial_num_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - body: Dict[str, Any], + device_serials: Optional[List[StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36379,14 +38087,14 @@ def v1_devices_inventory_clear_new_flag_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_devices_inventory_clear_new_flag_post + ) -> ApiResponse[None]: + """v1_devices_inventory_serial_num_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :param device_serials: + :type device_serials: 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 @@ -36409,9 +38117,9 @@ def v1_devices_inventory_clear_new_flag_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_clear_new_flag_post_serialize( + _param = self._v1_devices_inventory_serial_num_delete_serialize( authorization=authorization, - body=body, + device_serials=device_serials, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36419,7 +38127,7 @@ def v1_devices_inventory_clear_new_flag_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -36433,10 +38141,10 @@ def v1_devices_inventory_clear_new_flag_post_with_http_info( @validate_call - def v1_devices_inventory_clear_new_flag_post_without_preload_content( + def v1_devices_inventory_serial_num_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - body: Dict[str, Any], + device_serials: Optional[List[StrictStr]] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36450,13 +38158,13 @@ def v1_devices_inventory_clear_new_flag_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_inventory_clear_new_flag_post + """v1_devices_inventory_serial_num_delete :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :param device_serials: + :type device_serials: 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 @@ -36479,9 +38187,9 @@ def v1_devices_inventory_clear_new_flag_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_clear_new_flag_post_serialize( + _param = self._v1_devices_inventory_serial_num_delete_serialize( authorization=authorization, - body=body, + device_serials=device_serials, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36489,7 +38197,7 @@ def v1_devices_inventory_clear_new_flag_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -36498,10 +38206,10 @@ def v1_devices_inventory_clear_new_flag_post_without_preload_content( return response_data.response - def _v1_devices_inventory_clear_new_flag_post_serialize( + def _v1_devices_inventory_serial_num_delete_serialize( self, authorization, - body, + device_serials, _request_auth, _content_type, _headers, @@ -36511,6 +38219,7 @@ def _v1_devices_inventory_clear_new_flag_post_serialize( _host = None _collection_formats: Dict[str, str] = { + 'deviceSerials': 'multi', } _path_params: Dict[str, str] = {} @@ -36524,36 +38233,18 @@ def _v1_devices_inventory_clear_new_flag_post_serialize( # process the path parameters # process the query parameters + if device_serials is not None: + + _query_params.append(('deviceSerials', device_serials)) + # 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] = [ @@ -36561,8 +38252,8 @@ def _v1_devices_inventory_clear_new_flag_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/devices/inventory/clear-new-flag', + method='DELETE', + resource_path='/v1/devices/inventory/serial-num', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -36579,10 +38270,9 @@ def _v1_devices_inventory_clear_new_flag_post_serialize( @validate_call - def v1_devices_inventory_clear_return_post( + def v1_devices_oauth_authorization_get( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest, + relay_state: Annotated[StrictStr, Field(description="Base64 encoded relay state containing OAuth parameters")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36595,14 +38285,13 @@ def v1_devices_inventory_clear_return_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_devices_inventory_clear_return_post + ) -> V1DevicesOauthAuthorizationGetResponse: + """v1_devices_oauth_authorization_get + Process OAuth authorization for device onboarding - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str - :param v1_devices_inventory_clear_return_post_request: (required) - :type v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest + :param relay_state: Base64 encoded relay state containing OAuth parameters (required) + :type relay_state: 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 @@ -36625,9 +38314,8 @@ def v1_devices_inventory_clear_return_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_clear_return_post_serialize( - authorization=authorization, - v1_devices_inventory_clear_return_post_request=v1_devices_inventory_clear_return_post_request, + _param = self._v1_devices_oauth_authorization_get_serialize( + relay_state=relay_state, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36635,7 +38323,10 @@ def v1_devices_inventory_clear_return_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DevicesOauthAuthorizationGetResponse", + '400': None, + '401': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -36649,10 +38340,9 @@ def v1_devices_inventory_clear_return_post( @validate_call - def v1_devices_inventory_clear_return_post_with_http_info( + def v1_devices_oauth_authorization_get_with_http_info( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest, + relay_state: Annotated[StrictStr, Field(description="Base64 encoded relay state containing OAuth parameters")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36665,14 +38355,13 @@ def v1_devices_inventory_clear_return_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_devices_inventory_clear_return_post + ) -> ApiResponse[V1DevicesOauthAuthorizationGetResponse]: + """v1_devices_oauth_authorization_get + Process OAuth authorization for device onboarding - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str - :param v1_devices_inventory_clear_return_post_request: (required) - :type v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest + :param relay_state: Base64 encoded relay state containing OAuth parameters (required) + :type relay_state: 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 @@ -36695,9 +38384,8 @@ def v1_devices_inventory_clear_return_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_clear_return_post_serialize( - authorization=authorization, - v1_devices_inventory_clear_return_post_request=v1_devices_inventory_clear_return_post_request, + _param = self._v1_devices_oauth_authorization_get_serialize( + relay_state=relay_state, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36705,7 +38393,10 @@ def v1_devices_inventory_clear_return_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DevicesOauthAuthorizationGetResponse", + '400': None, + '401': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -36719,10 +38410,9 @@ def v1_devices_inventory_clear_return_post_with_http_info( @validate_call - def v1_devices_inventory_clear_return_post_without_preload_content( + def v1_devices_oauth_authorization_get_without_preload_content( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest, + relay_state: Annotated[StrictStr, Field(description="Base64 encoded relay state containing OAuth parameters")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36736,13 +38426,12 @@ def v1_devices_inventory_clear_return_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_inventory_clear_return_post + """v1_devices_oauth_authorization_get + Process OAuth authorization for device onboarding - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str - :param v1_devices_inventory_clear_return_post_request: (required) - :type v1_devices_inventory_clear_return_post_request: V1DevicesInventoryClearReturnPostRequest + :param relay_state: Base64 encoded relay state containing OAuth parameters (required) + :type relay_state: 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 @@ -36765,9 +38454,8 @@ def v1_devices_inventory_clear_return_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_clear_return_post_serialize( - authorization=authorization, - v1_devices_inventory_clear_return_post_request=v1_devices_inventory_clear_return_post_request, + _param = self._v1_devices_oauth_authorization_get_serialize( + relay_state=relay_state, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36775,7 +38463,10 @@ def v1_devices_inventory_clear_return_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DevicesOauthAuthorizationGetResponse", + '400': None, + '401': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -36784,10 +38475,9 @@ def v1_devices_inventory_clear_return_post_without_preload_content( return response_data.response - def _v1_devices_inventory_clear_return_post_serialize( + def _v1_devices_oauth_authorization_get_serialize( self, - authorization, - v1_devices_inventory_clear_return_post_request, + relay_state, _request_auth, _content_type, _headers, @@ -36810,13 +38500,13 @@ def _v1_devices_inventory_clear_return_post_serialize( # process the path parameters # process the query parameters + if relay_state is not None: + + _query_params.append(('relayState', relay_state)) + # process the header parameters - if authorization is not None: - _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_devices_inventory_clear_return_post_request is not None: - _body_params = v1_devices_inventory_clear_return_post_request # set the HTTP header `Accept` @@ -36827,19 +38517,6 @@ def _v1_devices_inventory_clear_return_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] = [ @@ -36847,8 +38524,8 @@ def _v1_devices_inventory_clear_return_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/devices/inventory/clear-return', + method='GET', + resource_path='/v1/devices/oauth/authorization', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -36865,10 +38542,14 @@ def _v1_devices_inventory_clear_return_post_serialize( @validate_call - def v1_devices_inventory_enterprise_put( + def v1_devices_oauth_get( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest, + scope: Annotated[StrictStr, Field(description="OAuth scope containing device type, UUID, and hostname")], + state: Annotated[Optional[StrictStr], Field(description="OAuth state parameter")] = None, + code_challenge: Annotated[Optional[StrictStr], Field(description="PKCE code challenge")] = None, + code_challenge_method: Annotated[Optional[StrictStr], Field(description="PKCE code challenge method")] = None, + pt: Annotated[Optional[StrictStr], Field(description="Platform type")] = None, + bm: Annotated[Optional[StrictStr], Field(description="Boot mode")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36882,13 +38563,22 @@ def v1_devices_inventory_enterprise_put( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_devices_inventory_enterprise_put + """v1_devices_oauth_get + Redirect to OAuth authorization page for device onboarding - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str - :param v1_devices_inventory_enterprise_put_request: (required) - :type v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest + :param scope: OAuth scope containing device type, UUID, and hostname (required) + :type scope: str + :param state: OAuth state parameter + :type state: str + :param code_challenge: PKCE code challenge + :type code_challenge: str + :param code_challenge_method: PKCE code challenge method + :type code_challenge_method: str + :param pt: Platform type + :type pt: str + :param bm: Boot mode + :type bm: 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 @@ -36911,9 +38601,13 @@ def v1_devices_inventory_enterprise_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_enterprise_put_serialize( - authorization=authorization, - v1_devices_inventory_enterprise_put_request=v1_devices_inventory_enterprise_put_request, + _param = self._v1_devices_oauth_get_serialize( + scope=scope, + state=state, + code_challenge=code_challenge, + code_challenge_method=code_challenge_method, + pt=pt, + bm=bm, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36921,7 +38615,9 @@ def v1_devices_inventory_enterprise_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '302': None, + '400': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -36935,10 +38631,14 @@ def v1_devices_inventory_enterprise_put( @validate_call - def v1_devices_inventory_enterprise_put_with_http_info( + def v1_devices_oauth_get_with_http_info( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest, + scope: Annotated[StrictStr, Field(description="OAuth scope containing device type, UUID, and hostname")], + state: Annotated[Optional[StrictStr], Field(description="OAuth state parameter")] = None, + code_challenge: Annotated[Optional[StrictStr], Field(description="PKCE code challenge")] = None, + code_challenge_method: Annotated[Optional[StrictStr], Field(description="PKCE code challenge method")] = None, + pt: Annotated[Optional[StrictStr], Field(description="Platform type")] = None, + bm: Annotated[Optional[StrictStr], Field(description="Boot mode")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -36952,13 +38652,22 @@ def v1_devices_inventory_enterprise_put_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_devices_inventory_enterprise_put + """v1_devices_oauth_get + Redirect to OAuth authorization page for device onboarding - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str - :param v1_devices_inventory_enterprise_put_request: (required) - :type v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest + :param scope: OAuth scope containing device type, UUID, and hostname (required) + :type scope: str + :param state: OAuth state parameter + :type state: str + :param code_challenge: PKCE code challenge + :type code_challenge: str + :param code_challenge_method: PKCE code challenge method + :type code_challenge_method: str + :param pt: Platform type + :type pt: str + :param bm: Boot mode + :type bm: 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 @@ -36981,9 +38690,13 @@ def v1_devices_inventory_enterprise_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_enterprise_put_serialize( - authorization=authorization, - v1_devices_inventory_enterprise_put_request=v1_devices_inventory_enterprise_put_request, + _param = self._v1_devices_oauth_get_serialize( + scope=scope, + state=state, + code_challenge=code_challenge, + code_challenge_method=code_challenge_method, + pt=pt, + bm=bm, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -36991,7 +38704,9 @@ def v1_devices_inventory_enterprise_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '302': None, + '400': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -37005,10 +38720,14 @@ def v1_devices_inventory_enterprise_put_with_http_info( @validate_call - def v1_devices_inventory_enterprise_put_without_preload_content( + def v1_devices_oauth_get_without_preload_content( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest, + scope: Annotated[StrictStr, Field(description="OAuth scope containing device type, UUID, and hostname")], + state: Annotated[Optional[StrictStr], Field(description="OAuth state parameter")] = None, + code_challenge: Annotated[Optional[StrictStr], Field(description="PKCE code challenge")] = None, + code_challenge_method: Annotated[Optional[StrictStr], Field(description="PKCE code challenge method")] = None, + pt: Annotated[Optional[StrictStr], Field(description="Platform type")] = None, + bm: Annotated[Optional[StrictStr], Field(description="Boot mode")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37022,13 +38741,22 @@ def v1_devices_inventory_enterprise_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_inventory_enterprise_put + """v1_devices_oauth_get + Redirect to OAuth authorization page for device onboarding - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str - :param v1_devices_inventory_enterprise_put_request: (required) - :type v1_devices_inventory_enterprise_put_request: V1DevicesInventoryEnterprisePutRequest + :param scope: OAuth scope containing device type, UUID, and hostname (required) + :type scope: str + :param state: OAuth state parameter + :type state: str + :param code_challenge: PKCE code challenge + :type code_challenge: str + :param code_challenge_method: PKCE code challenge method + :type code_challenge_method: str + :param pt: Platform type + :type pt: str + :param bm: Boot mode + :type bm: 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 @@ -37051,9 +38779,13 @@ def v1_devices_inventory_enterprise_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_enterprise_put_serialize( - authorization=authorization, - v1_devices_inventory_enterprise_put_request=v1_devices_inventory_enterprise_put_request, + _param = self._v1_devices_oauth_get_serialize( + scope=scope, + state=state, + code_challenge=code_challenge, + code_challenge_method=code_challenge_method, + pt=pt, + bm=bm, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37061,7 +38793,9 @@ def v1_devices_inventory_enterprise_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '302': None, + '400': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -37070,10 +38804,14 @@ def v1_devices_inventory_enterprise_put_without_preload_content( return response_data.response - def _v1_devices_inventory_enterprise_put_serialize( + def _v1_devices_oauth_get_serialize( self, - authorization, - v1_devices_inventory_enterprise_put_request, + scope, + state, + code_challenge, + code_challenge_method, + pt, + bm, _request_auth, _content_type, _headers, @@ -37096,29 +38834,36 @@ def _v1_devices_inventory_enterprise_put_serialize( # process the path parameters # process the query parameters + if scope is not None: + + _query_params.append(('scope', scope)) + + if state is not None: + + _query_params.append(('state', state)) + + if code_challenge is not None: + + _query_params.append(('code_challenge', code_challenge)) + + if code_challenge_method is not None: + + _query_params.append(('code_challenge_method', code_challenge_method)) + + if pt is not None: + + _query_params.append(('pt', pt)) + + if bm is not None: + + _query_params.append(('bm', bm)) + # process the header parameters - if authorization is not None: - _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_devices_inventory_enterprise_put_request is not None: - _body_params = v1_devices_inventory_enterprise_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' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -37126,8 +38871,8 @@ def _v1_devices_inventory_enterprise_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/devices/inventory/enterprise', + method='GET', + resource_path='/v1/devices/oauth', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -37144,10 +38889,9 @@ def _v1_devices_inventory_enterprise_put_serialize( @validate_call - def v1_devices_inventory_get( + def v1_devices_oauth_post( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - not_assigned: Optional[StrictBool] = None, + v1_devices_oauth_post_request: V1DevicesOauthPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37160,14 +38904,13 @@ def v1_devices_inventory_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesInventoryGetResponse: - """v1_devices_inventory_get + ) -> V1DevicesOauthPostResponse: + """v1_devices_oauth_post + Process OAuth client credentials for device onboarding - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str - :param not_assigned: - :type not_assigned: bool + :param v1_devices_oauth_post_request: (required) + :type v1_devices_oauth_post_request: V1DevicesOauthPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37190,9 +38933,8 @@ def v1_devices_inventory_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_get_serialize( - authorization=authorization, - not_assigned=not_assigned, + _param = self._v1_devices_oauth_post_serialize( + v1_devices_oauth_post_request=v1_devices_oauth_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37200,7 +38942,9 @@ def v1_devices_inventory_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesInventoryGetResponse", + '200': "V1DevicesOauthPostResponse", + '400': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -37214,10 +38958,9 @@ def v1_devices_inventory_get( @validate_call - def v1_devices_inventory_get_with_http_info( + def v1_devices_oauth_post_with_http_info( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - not_assigned: Optional[StrictBool] = None, + v1_devices_oauth_post_request: V1DevicesOauthPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37230,14 +38973,13 @@ def v1_devices_inventory_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[V1DevicesInventoryGetResponse]: - """v1_devices_inventory_get + ) -> ApiResponse[V1DevicesOauthPostResponse]: + """v1_devices_oauth_post + Process OAuth client credentials for device onboarding - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str - :param not_assigned: - :type not_assigned: bool + :param v1_devices_oauth_post_request: (required) + :type v1_devices_oauth_post_request: V1DevicesOauthPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37260,9 +39002,8 @@ def v1_devices_inventory_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_get_serialize( - authorization=authorization, - not_assigned=not_assigned, + _param = self._v1_devices_oauth_post_serialize( + v1_devices_oauth_post_request=v1_devices_oauth_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37270,7 +39011,9 @@ def v1_devices_inventory_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesInventoryGetResponse", + '200': "V1DevicesOauthPostResponse", + '400': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -37284,10 +39027,9 @@ def v1_devices_inventory_get_with_http_info( @validate_call - def v1_devices_inventory_get_without_preload_content( + def v1_devices_oauth_post_without_preload_content( self, - authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - not_assigned: Optional[StrictBool] = None, + v1_devices_oauth_post_request: V1DevicesOauthPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37301,13 +39043,12 @@ def v1_devices_inventory_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_inventory_get + """v1_devices_oauth_post + Process OAuth client credentials for device onboarding - :param authorization: Bearer token. Format: Bearer (required) - :type authorization: str - :param not_assigned: - :type not_assigned: bool + :param v1_devices_oauth_post_request: (required) + :type v1_devices_oauth_post_request: V1DevicesOauthPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37330,9 +39071,8 @@ def v1_devices_inventory_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_get_serialize( - authorization=authorization, - not_assigned=not_assigned, + _param = self._v1_devices_oauth_post_serialize( + v1_devices_oauth_post_request=v1_devices_oauth_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37340,7 +39080,9 @@ def v1_devices_inventory_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesInventoryGetResponse", + '200': "V1DevicesOauthPostResponse", + '400': None, + '500': None, } response_data = self.api_client.call_api( *_param, @@ -37349,10 +39091,9 @@ def v1_devices_inventory_get_without_preload_content( return response_data.response - def _v1_devices_inventory_get_serialize( + def _v1_devices_oauth_post_serialize( self, - authorization, - not_assigned, + v1_devices_oauth_post_request, _request_auth, _content_type, _headers, @@ -37375,15 +39116,11 @@ def _v1_devices_inventory_get_serialize( # process the path parameters # process the query parameters - if not_assigned is not None: - - _query_params.append(('notAssigned', not_assigned)) - # process the header parameters - if authorization is not None: - _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_devices_oauth_post_request is not None: + _body_params = v1_devices_oauth_post_request # set the HTTP header `Accept` @@ -37394,6 +39131,19 @@ def _v1_devices_inventory_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] = [ @@ -37401,8 +39151,8 @@ def _v1_devices_inventory_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/devices/inventory', + method='POST', + resource_path='/v1/devices/oauth', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -37419,10 +39169,10 @@ def _v1_devices_inventory_get_serialize( @validate_call - def v1_devices_inventory_post( + def v1_devices_rma_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_post_request: V1DevicesInventoryPostRequest, + v1_devices_rma_post_request: V1DevicesRmaPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37435,14 +39185,14 @@ def v1_devices_inventory_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesInventoryPostResponse: - """v1_devices_inventory_post + ) -> object: + """v1_devices_rma_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_inventory_post_request: (required) - :type v1_devices_inventory_post_request: V1DevicesInventoryPostRequest + :param v1_devices_rma_post_request: (required) + :type v1_devices_rma_post_request: V1DevicesRmaPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37465,9 +39215,9 @@ def v1_devices_inventory_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_post_serialize( + _param = self._v1_devices_rma_post_serialize( authorization=authorization, - v1_devices_inventory_post_request=v1_devices_inventory_post_request, + v1_devices_rma_post_request=v1_devices_rma_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37475,7 +39225,7 @@ def v1_devices_inventory_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesInventoryPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -37489,10 +39239,10 @@ def v1_devices_inventory_post( @validate_call - def v1_devices_inventory_post_with_http_info( + def v1_devices_rma_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_post_request: V1DevicesInventoryPostRequest, + v1_devices_rma_post_request: V1DevicesRmaPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37505,14 +39255,14 @@ def v1_devices_inventory_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[V1DevicesInventoryPostResponse]: - """v1_devices_inventory_post + ) -> ApiResponse[object]: + """v1_devices_rma_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_inventory_post_request: (required) - :type v1_devices_inventory_post_request: V1DevicesInventoryPostRequest + :param v1_devices_rma_post_request: (required) + :type v1_devices_rma_post_request: V1DevicesRmaPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37535,9 +39285,9 @@ def v1_devices_inventory_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_post_serialize( + _param = self._v1_devices_rma_post_serialize( authorization=authorization, - v1_devices_inventory_post_request=v1_devices_inventory_post_request, + v1_devices_rma_post_request=v1_devices_rma_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37545,7 +39295,7 @@ def v1_devices_inventory_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesInventoryPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -37559,10 +39309,10 @@ def v1_devices_inventory_post_with_http_info( @validate_call - def v1_devices_inventory_post_without_preload_content( + def v1_devices_rma_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_post_request: V1DevicesInventoryPostRequest, + v1_devices_rma_post_request: V1DevicesRmaPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37576,13 +39326,13 @@ def v1_devices_inventory_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_inventory_post + """v1_devices_rma_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_inventory_post_request: (required) - :type v1_devices_inventory_post_request: V1DevicesInventoryPostRequest + :param v1_devices_rma_post_request: (required) + :type v1_devices_rma_post_request: V1DevicesRmaPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -37605,9 +39355,9 @@ def v1_devices_inventory_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_post_serialize( + _param = self._v1_devices_rma_post_serialize( authorization=authorization, - v1_devices_inventory_post_request=v1_devices_inventory_post_request, + v1_devices_rma_post_request=v1_devices_rma_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37615,7 +39365,7 @@ def v1_devices_inventory_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesInventoryPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -37624,10 +39374,10 @@ def v1_devices_inventory_post_without_preload_content( return response_data.response - def _v1_devices_inventory_post_serialize( + def _v1_devices_rma_post_serialize( self, authorization, - v1_devices_inventory_post_request, + v1_devices_rma_post_request, _request_auth, _content_type, _headers, @@ -37655,8 +39405,8 @@ def _v1_devices_inventory_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_devices_inventory_post_request is not None: - _body_params = v1_devices_inventory_post_request + if v1_devices_rma_post_request is not None: + _body_params = v1_devices_rma_post_request # set the HTTP header `Accept` @@ -37688,7 +39438,7 @@ def _v1_devices_inventory_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/devices/inventory', + resource_path='/v1/devices/rma', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -37705,10 +39455,12 @@ def _v1_devices_inventory_post_serialize( @validate_call - def v1_devices_inventory_request_return_post( + def v1_devices_routing_vrf_protocol_route_count_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest, + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + protocols: Annotated[List[StrictStr], Field(description="List of protocols names for which route count is needed")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37721,14 +39473,19 @@ def v1_devices_inventory_request_return_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_devices_inventory_request_return_post + ) -> V1DevicesRoutingVrfProtocolRouteCountGetResponse: + """v1_devices_routing_vrf_protocol_route_count_get + Get per VRF per protocol route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_inventory_request_return_post_request: (required) - :type v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param protocols: List of protocols names for which route count is needed (required) + :type protocols: List[str] + :param vrf_name: Valid configured VRF names (required) + :type vrf_name: 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 @@ -37751,9 +39508,11 @@ def v1_devices_inventory_request_return_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_request_return_post_serialize( + _param = self._v1_devices_routing_vrf_protocol_route_count_get_serialize( authorization=authorization, - v1_devices_inventory_request_return_post_request=v1_devices_inventory_request_return_post_request, + device_id=device_id, + protocols=protocols, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37761,7 +39520,7 @@ def v1_devices_inventory_request_return_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DevicesRoutingVrfProtocolRouteCountGetResponse", } response_data = self.api_client.call_api( *_param, @@ -37775,10 +39534,12 @@ def v1_devices_inventory_request_return_post( @validate_call - def v1_devices_inventory_request_return_post_with_http_info( + def v1_devices_routing_vrf_protocol_route_count_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest, + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + protocols: Annotated[List[StrictStr], Field(description="List of protocols names for which route count is needed")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37791,14 +39552,19 @@ def v1_devices_inventory_request_return_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_devices_inventory_request_return_post + ) -> ApiResponse[V1DevicesRoutingVrfProtocolRouteCountGetResponse]: + """v1_devices_routing_vrf_protocol_route_count_get + Get per VRF per protocol route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_inventory_request_return_post_request: (required) - :type v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param protocols: List of protocols names for which route count is needed (required) + :type protocols: List[str] + :param vrf_name: Valid configured VRF names (required) + :type vrf_name: 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 @@ -37821,9 +39587,11 @@ def v1_devices_inventory_request_return_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_request_return_post_serialize( + _param = self._v1_devices_routing_vrf_protocol_route_count_get_serialize( authorization=authorization, - v1_devices_inventory_request_return_post_request=v1_devices_inventory_request_return_post_request, + device_id=device_id, + protocols=protocols, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37831,7 +39599,7 @@ def v1_devices_inventory_request_return_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DevicesRoutingVrfProtocolRouteCountGetResponse", } response_data = self.api_client.call_api( *_param, @@ -37845,10 +39613,12 @@ def v1_devices_inventory_request_return_post_with_http_info( @validate_call - def v1_devices_inventory_request_return_post_without_preload_content( + def v1_devices_routing_vrf_protocol_route_count_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest, + device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], + protocols: Annotated[List[StrictStr], Field(description="List of protocols names for which route count is needed")], + vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -37862,13 +39632,18 @@ def v1_devices_inventory_request_return_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_inventory_request_return_post + """v1_devices_routing_vrf_protocol_route_count_get + Get per VRF per protocol route count :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_inventory_request_return_post_request: (required) - :type v1_devices_inventory_request_return_post_request: V1DevicesInventoryRequestReturnPostRequest + :param device_id: Valid configured device ID > 0 (required) + :type device_id: int + :param protocols: List of protocols names for which route count is needed (required) + :type protocols: List[str] + :param vrf_name: Valid configured VRF names (required) + :type vrf_name: 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 @@ -37891,9 +39666,11 @@ def v1_devices_inventory_request_return_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_request_return_post_serialize( + _param = self._v1_devices_routing_vrf_protocol_route_count_get_serialize( authorization=authorization, - v1_devices_inventory_request_return_post_request=v1_devices_inventory_request_return_post_request, + device_id=device_id, + protocols=protocols, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -37901,7 +39678,7 @@ def v1_devices_inventory_request_return_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1DevicesRoutingVrfProtocolRouteCountGetResponse", } response_data = self.api_client.call_api( *_param, @@ -37910,10 +39687,12 @@ def v1_devices_inventory_request_return_post_without_preload_content( return response_data.response - def _v1_devices_inventory_request_return_post_serialize( + def _v1_devices_routing_vrf_protocol_route_count_get_serialize( self, authorization, - v1_devices_inventory_request_return_post_request, + device_id, + protocols, + vrf_name, _request_auth, _content_type, _headers, @@ -37923,6 +39702,7 @@ def _v1_devices_inventory_request_return_post_serialize( _host = None _collection_formats: Dict[str, str] = { + 'protocols': 'multi', } _path_params: Dict[str, str] = {} @@ -37936,13 +39716,23 @@ def _v1_devices_inventory_request_return_post_serialize( # process the path parameters # process the query parameters + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + + if protocols is not None: + + _query_params.append(('protocols', protocols)) + + if vrf_name is not None: + + _query_params.append(('vrfName', vrf_name)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_devices_inventory_request_return_post_request is not None: - _body_params = v1_devices_inventory_request_return_post_request # set the HTTP header `Accept` @@ -37953,19 +39743,6 @@ def _v1_devices_inventory_request_return_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] = [ @@ -37973,8 +39750,8 @@ def _v1_devices_inventory_request_return_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/devices/inventory/request-return', + method='GET', + resource_path='/v1/devices/routing/vrf/protocol-route-count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -37991,10 +39768,10 @@ def _v1_devices_inventory_request_return_post_serialize( @validate_call - def v1_devices_inventory_serial_num_delete( + def v1_devices_running_version_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_serials: Optional[List[StrictStr]] = None, + v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -38007,14 +39784,14 @@ def v1_devices_inventory_serial_num_delete( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_devices_inventory_serial_num_delete + ) -> V1DevicesRunningVersionPostResponse: + """v1_devices_running_version_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_serials: - :type device_serials: List[str] + :param v1_devices_running_version_post_request: (required) + :type v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -38037,9 +39814,9 @@ def v1_devices_inventory_serial_num_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_serial_num_delete_serialize( + _param = self._v1_devices_running_version_post_serialize( authorization=authorization, - device_serials=device_serials, + v1_devices_running_version_post_request=v1_devices_running_version_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -38047,7 +39824,7 @@ def v1_devices_inventory_serial_num_delete( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DevicesRunningVersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -38061,10 +39838,10 @@ def v1_devices_inventory_serial_num_delete( @validate_call - def v1_devices_inventory_serial_num_delete_with_http_info( + def v1_devices_running_version_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_serials: Optional[List[StrictStr]] = None, + v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -38077,14 +39854,14 @@ def v1_devices_inventory_serial_num_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_devices_inventory_serial_num_delete + ) -> ApiResponse[V1DevicesRunningVersionPostResponse]: + """v1_devices_running_version_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_serials: - :type device_serials: List[str] + :param v1_devices_running_version_post_request: (required) + :type v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -38107,9 +39884,9 @@ def v1_devices_inventory_serial_num_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_serial_num_delete_serialize( + _param = self._v1_devices_running_version_post_serialize( authorization=authorization, - device_serials=device_serials, + v1_devices_running_version_post_request=v1_devices_running_version_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -38117,7 +39894,7 @@ def v1_devices_inventory_serial_num_delete_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DevicesRunningVersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -38131,10 +39908,10 @@ def v1_devices_inventory_serial_num_delete_with_http_info( @validate_call - def v1_devices_inventory_serial_num_delete_without_preload_content( + def v1_devices_running_version_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_serials: Optional[List[StrictStr]] = None, + v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -38148,13 +39925,13 @@ def v1_devices_inventory_serial_num_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_inventory_serial_num_delete + """v1_devices_running_version_post :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_serials: - :type device_serials: List[str] + :param v1_devices_running_version_post_request: (required) + :type v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -38177,9 +39954,9 @@ def v1_devices_inventory_serial_num_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_inventory_serial_num_delete_serialize( + _param = self._v1_devices_running_version_post_serialize( authorization=authorization, - device_serials=device_serials, + v1_devices_running_version_post_request=v1_devices_running_version_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -38187,7 +39964,7 @@ def v1_devices_inventory_serial_num_delete_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DevicesRunningVersionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -38196,10 +39973,10 @@ def v1_devices_inventory_serial_num_delete_without_preload_content( return response_data.response - def _v1_devices_inventory_serial_num_delete_serialize( + def _v1_devices_running_version_post_serialize( self, authorization, - device_serials, + v1_devices_running_version_post_request, _request_auth, _content_type, _headers, @@ -38209,7 +39986,6 @@ def _v1_devices_inventory_serial_num_delete_serialize( _host = None _collection_formats: Dict[str, str] = { - 'deviceSerials': 'multi', } _path_params: Dict[str, str] = {} @@ -38223,18 +39999,36 @@ def _v1_devices_inventory_serial_num_delete_serialize( # process the path parameters # process the query parameters - if device_serials is not None: - - _query_params.append(('deviceSerials', device_serials)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_devices_running_version_post_request is not None: + _body_params = v1_devices_running_version_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] = [ @@ -38242,8 +40036,8 @@ def _v1_devices_inventory_serial_num_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/devices/inventory/serial-num', + method='POST', + resource_path='/v1/devices/running/version', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -38260,9 +40054,10 @@ def _v1_devices_inventory_serial_num_delete_serialize( @validate_call - def v1_devices_oauth_authorization_get( + def v1_devices_session_status_post( self, - relay_state: Annotated[StrictStr, Field(description="Base64 encoded relay state containing OAuth parameters")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -38275,13 +40070,15 @@ def v1_devices_oauth_authorization_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesOauthAuthorizationGetResponse: - """v1_devices_oauth_authorization_get + ) -> V1DevicesSessionStatusPostResponse: + """v1_devices_session_status_post - Process OAuth authorization for device onboarding + Get all the BGP session states for the devices - :param relay_state: Base64 encoded relay state containing OAuth parameters (required) - :type relay_state: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_devices_session_status_post_request: (required) + :type v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -38304,8 +40101,9 @@ def v1_devices_oauth_authorization_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_oauth_authorization_get_serialize( - relay_state=relay_state, + _param = self._v1_devices_session_status_post_serialize( + authorization=authorization, + v1_devices_session_status_post_request=v1_devices_session_status_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -38313,10 +40111,7 @@ def v1_devices_oauth_authorization_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesOauthAuthorizationGetResponse", - '400': None, - '401': None, - '500': None, + '200': "V1DevicesSessionStatusPostResponse", } response_data = self.api_client.call_api( *_param, @@ -38330,9 +40125,10 @@ def v1_devices_oauth_authorization_get( @validate_call - def v1_devices_oauth_authorization_get_with_http_info( + def v1_devices_session_status_post_with_http_info( self, - relay_state: Annotated[StrictStr, Field(description="Base64 encoded relay state containing OAuth parameters")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -38345,13 +40141,15 @@ def v1_devices_oauth_authorization_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[V1DevicesOauthAuthorizationGetResponse]: - """v1_devices_oauth_authorization_get + ) -> ApiResponse[V1DevicesSessionStatusPostResponse]: + """v1_devices_session_status_post - Process OAuth authorization for device onboarding + Get all the BGP session states for the devices - :param relay_state: Base64 encoded relay state containing OAuth parameters (required) - :type relay_state: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_devices_session_status_post_request: (required) + :type v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -38374,8 +40172,9 @@ def v1_devices_oauth_authorization_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_oauth_authorization_get_serialize( - relay_state=relay_state, + _param = self._v1_devices_session_status_post_serialize( + authorization=authorization, + v1_devices_session_status_post_request=v1_devices_session_status_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -38383,10 +40182,7 @@ def v1_devices_oauth_authorization_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesOauthAuthorizationGetResponse", - '400': None, - '401': None, - '500': None, + '200': "V1DevicesSessionStatusPostResponse", } response_data = self.api_client.call_api( *_param, @@ -38400,9 +40196,10 @@ def v1_devices_oauth_authorization_get_with_http_info( @validate_call - def v1_devices_oauth_authorization_get_without_preload_content( + def v1_devices_session_status_post_without_preload_content( self, - relay_state: Annotated[StrictStr, Field(description="Base64 encoded relay state containing OAuth parameters")], + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -38416,12 +40213,14 @@ def v1_devices_oauth_authorization_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_oauth_authorization_get + """v1_devices_session_status_post - Process OAuth authorization for device onboarding + Get all the BGP session states for the devices - :param relay_state: Base64 encoded relay state containing OAuth parameters (required) - :type relay_state: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_devices_session_status_post_request: (required) + :type v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -38444,8 +40243,9 @@ def v1_devices_oauth_authorization_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_oauth_authorization_get_serialize( - relay_state=relay_state, + _param = self._v1_devices_session_status_post_serialize( + authorization=authorization, + v1_devices_session_status_post_request=v1_devices_session_status_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -38453,10 +40253,7 @@ def v1_devices_oauth_authorization_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesOauthAuthorizationGetResponse", - '400': None, - '401': None, - '500': None, + '200': "V1DevicesSessionStatusPostResponse", } response_data = self.api_client.call_api( *_param, @@ -38465,9 +40262,10 @@ def v1_devices_oauth_authorization_get_without_preload_content( return response_data.response - def _v1_devices_oauth_authorization_get_serialize( + def _v1_devices_session_status_post_serialize( self, - relay_state, + authorization, + v1_devices_session_status_post_request, _request_auth, _content_type, _headers, @@ -38490,13 +40288,13 @@ def _v1_devices_oauth_authorization_get_serialize( # process the path parameters # process the query parameters - if relay_state is not None: - - _query_params.append(('relayState', relay_state)) - # process the header parameters + if authorization is not None: + _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_devices_session_status_post_request is not None: + _body_params = v1_devices_session_status_post_request # set the HTTP header `Accept` @@ -38507,6 +40305,19 @@ def _v1_devices_oauth_authorization_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] = [ @@ -38514,8 +40325,8 @@ def _v1_devices_oauth_authorization_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/devices/oauth/authorization', + method='POST', + resource_path='/v1/devices/session-status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -38532,14 +40343,9 @@ def _v1_devices_oauth_authorization_get_serialize( @validate_call - def v1_devices_oauth_get( + def v1_devices_summary_get( self, - scope: Annotated[StrictStr, Field(description="OAuth scope containing device type, UUID, and hostname")], - state: Annotated[Optional[StrictStr], Field(description="OAuth state parameter")] = None, - code_challenge: Annotated[Optional[StrictStr], Field(description="PKCE code challenge")] = None, - code_challenge_method: Annotated[Optional[StrictStr], Field(description="PKCE code challenge method")] = None, - pt: Annotated[Optional[StrictStr], Field(description="Platform type")] = None, - bm: Annotated[Optional[StrictStr], Field(description="Boot mode")] = None, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -38552,23 +40358,13 @@ def v1_devices_oauth_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_devices_oauth_get + ) -> V1DevicesSummaryGetResponse: + """v1_devices_summary_get - Redirect to OAuth authorization page for device onboarding + Get devices summary for the specified enterprise - :param scope: OAuth scope containing device type, UUID, and hostname (required) - :type scope: str - :param state: OAuth state parameter - :type state: str - :param code_challenge: PKCE code challenge - :type code_challenge: str - :param code_challenge_method: PKCE code challenge method - :type code_challenge_method: str - :param pt: Platform type - :type pt: str - :param bm: Boot mode - :type bm: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -38591,13 +40387,8 @@ def v1_devices_oauth_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_oauth_get_serialize( - scope=scope, - state=state, - code_challenge=code_challenge, - code_challenge_method=code_challenge_method, - pt=pt, - bm=bm, + _param = self._v1_devices_summary_get_serialize( + authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -38605,9 +40396,7 @@ def v1_devices_oauth_get( ) _response_types_map: Dict[str, Optional[str]] = { - '302': None, - '400': None, - '500': None, + '200': "V1DevicesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -38621,14 +40410,9 @@ def v1_devices_oauth_get( @validate_call - def v1_devices_oauth_get_with_http_info( + def v1_devices_summary_get_with_http_info( self, - scope: Annotated[StrictStr, Field(description="OAuth scope containing device type, UUID, and hostname")], - state: Annotated[Optional[StrictStr], Field(description="OAuth state parameter")] = None, - code_challenge: Annotated[Optional[StrictStr], Field(description="PKCE code challenge")] = None, - code_challenge_method: Annotated[Optional[StrictStr], Field(description="PKCE code challenge method")] = None, - pt: Annotated[Optional[StrictStr], Field(description="Platform type")] = None, - bm: Annotated[Optional[StrictStr], Field(description="Boot mode")] = None, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -38641,23 +40425,13 @@ def v1_devices_oauth_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_devices_oauth_get + ) -> ApiResponse[V1DevicesSummaryGetResponse]: + """v1_devices_summary_get - Redirect to OAuth authorization page for device onboarding + Get devices summary for the specified enterprise - :param scope: OAuth scope containing device type, UUID, and hostname (required) - :type scope: str - :param state: OAuth state parameter - :type state: str - :param code_challenge: PKCE code challenge - :type code_challenge: str - :param code_challenge_method: PKCE code challenge method - :type code_challenge_method: str - :param pt: Platform type - :type pt: str - :param bm: Boot mode - :type bm: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -38680,13 +40454,8 @@ def v1_devices_oauth_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_oauth_get_serialize( - scope=scope, - state=state, - code_challenge=code_challenge, - code_challenge_method=code_challenge_method, - pt=pt, - bm=bm, + _param = self._v1_devices_summary_get_serialize( + authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -38694,9 +40463,7 @@ def v1_devices_oauth_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '302': None, - '400': None, - '500': None, + '200': "V1DevicesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -38710,14 +40477,9 @@ def v1_devices_oauth_get_with_http_info( @validate_call - def v1_devices_oauth_get_without_preload_content( + def v1_devices_summary_get_without_preload_content( self, - scope: Annotated[StrictStr, Field(description="OAuth scope containing device type, UUID, and hostname")], - state: Annotated[Optional[StrictStr], Field(description="OAuth state parameter")] = None, - code_challenge: Annotated[Optional[StrictStr], Field(description="PKCE code challenge")] = None, - code_challenge_method: Annotated[Optional[StrictStr], Field(description="PKCE code challenge method")] = None, - pt: Annotated[Optional[StrictStr], Field(description="Platform type")] = None, - bm: Annotated[Optional[StrictStr], Field(description="Boot mode")] = None, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -38731,22 +40493,12 @@ def v1_devices_oauth_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_oauth_get + """v1_devices_summary_get - Redirect to OAuth authorization page for device onboarding + Get devices summary for the specified enterprise - :param scope: OAuth scope containing device type, UUID, and hostname (required) - :type scope: str - :param state: OAuth state parameter - :type state: str - :param code_challenge: PKCE code challenge - :type code_challenge: str - :param code_challenge_method: PKCE code challenge method - :type code_challenge_method: str - :param pt: Platform type - :type pt: str - :param bm: Boot mode - :type bm: str + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -38769,13 +40521,8 @@ def v1_devices_oauth_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_oauth_get_serialize( - scope=scope, - state=state, - code_challenge=code_challenge, - code_challenge_method=code_challenge_method, - pt=pt, - bm=bm, + _param = self._v1_devices_summary_get_serialize( + authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -38783,9 +40530,7 @@ def v1_devices_oauth_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '302': None, - '400': None, - '500': None, + '200': "V1DevicesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -38794,14 +40539,9 @@ def v1_devices_oauth_get_without_preload_content( return response_data.response - def _v1_devices_oauth_get_serialize( + def _v1_devices_summary_get_serialize( self, - scope, - state, - code_challenge, - code_challenge_method, - pt, - bm, + authorization, _request_auth, _content_type, _headers, @@ -38824,35 +40564,20 @@ def _v1_devices_oauth_get_serialize( # process the path parameters # process the query parameters - if scope is not None: - - _query_params.append(('scope', scope)) - - if state is not None: - - _query_params.append(('state', state)) - - if code_challenge is not None: - - _query_params.append(('code_challenge', code_challenge)) - - if code_challenge_method is not None: - - _query_params.append(('code_challenge_method', code_challenge_method)) - - if pt is not None: - - _query_params.append(('pt', pt)) - - if bm is not None: - - _query_params.append(('bm', bm)) - # 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 @@ -38862,7 +40587,7 @@ def _v1_devices_oauth_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices/oauth', + resource_path='/v1/devices-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -38879,9 +40604,10 @@ def _v1_devices_oauth_get_serialize( @validate_call - def v1_devices_oauth_post( + def v1_devices_upgrade_cancel_put( self, - v1_devices_oauth_post_request: V1DevicesOauthPostRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -38894,13 +40620,14 @@ def v1_devices_oauth_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesOauthPostResponse: - """v1_devices_oauth_post + ) -> None: + """v1_devices_upgrade_cancel_put - Process OAuth client credentials for device onboarding - :param v1_devices_oauth_post_request: (required) - :type v1_devices_oauth_post_request: V1DevicesOauthPostRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_devices_upgrade_cancel_put_request: (required) + :type v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -38923,8 +40650,9 @@ def v1_devices_oauth_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_oauth_post_serialize( - v1_devices_oauth_post_request=v1_devices_oauth_post_request, + _param = self._v1_devices_upgrade_cancel_put_serialize( + authorization=authorization, + v1_devices_upgrade_cancel_put_request=v1_devices_upgrade_cancel_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -38932,9 +40660,7 @@ def v1_devices_oauth_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesOauthPostResponse", - '400': None, - '500': None, + '204': None, } response_data = self.api_client.call_api( *_param, @@ -38948,9 +40674,10 @@ def v1_devices_oauth_post( @validate_call - def v1_devices_oauth_post_with_http_info( + def v1_devices_upgrade_cancel_put_with_http_info( self, - v1_devices_oauth_post_request: V1DevicesOauthPostRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -38963,13 +40690,14 @@ def v1_devices_oauth_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[V1DevicesOauthPostResponse]: - """v1_devices_oauth_post + ) -> ApiResponse[None]: + """v1_devices_upgrade_cancel_put - Process OAuth client credentials for device onboarding - :param v1_devices_oauth_post_request: (required) - :type v1_devices_oauth_post_request: V1DevicesOauthPostRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_devices_upgrade_cancel_put_request: (required) + :type v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -38992,8 +40720,9 @@ def v1_devices_oauth_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_oauth_post_serialize( - v1_devices_oauth_post_request=v1_devices_oauth_post_request, + _param = self._v1_devices_upgrade_cancel_put_serialize( + authorization=authorization, + v1_devices_upgrade_cancel_put_request=v1_devices_upgrade_cancel_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -39001,9 +40730,7 @@ def v1_devices_oauth_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesOauthPostResponse", - '400': None, - '500': None, + '204': None, } response_data = self.api_client.call_api( *_param, @@ -39017,9 +40744,10 @@ def v1_devices_oauth_post_with_http_info( @validate_call - def v1_devices_oauth_post_without_preload_content( + def v1_devices_upgrade_cancel_put_without_preload_content( self, - v1_devices_oauth_post_request: V1DevicesOauthPostRequest, + authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -39033,12 +40761,13 @@ def v1_devices_oauth_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_oauth_post + """v1_devices_upgrade_cancel_put - Process OAuth client credentials for device onboarding - :param v1_devices_oauth_post_request: (required) - :type v1_devices_oauth_post_request: V1DevicesOauthPostRequest + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param v1_devices_upgrade_cancel_put_request: (required) + :type v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -39061,8 +40790,9 @@ def v1_devices_oauth_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_oauth_post_serialize( - v1_devices_oauth_post_request=v1_devices_oauth_post_request, + _param = self._v1_devices_upgrade_cancel_put_serialize( + authorization=authorization, + v1_devices_upgrade_cancel_put_request=v1_devices_upgrade_cancel_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -39070,9 +40800,7 @@ def v1_devices_oauth_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesOauthPostResponse", - '400': None, - '500': None, + '204': None, } response_data = self.api_client.call_api( *_param, @@ -39081,9 +40809,10 @@ def v1_devices_oauth_post_without_preload_content( return response_data.response - def _v1_devices_oauth_post_serialize( + def _v1_devices_upgrade_cancel_put_serialize( self, - v1_devices_oauth_post_request, + authorization, + v1_devices_upgrade_cancel_put_request, _request_auth, _content_type, _headers, @@ -39107,19 +40836,14 @@ def _v1_devices_oauth_post_serialize( # 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_devices_oauth_post_request is not None: - _body_params = v1_devices_oauth_post_request + if v1_devices_upgrade_cancel_put_request is not None: + _body_params = v1_devices_upgrade_cancel_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: @@ -39141,8 +40865,8 @@ def _v1_devices_oauth_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/devices/oauth', + method='PUT', + resource_path='/v1/devices/upgrade/cancel', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -39159,10 +40883,10 @@ def _v1_devices_oauth_post_serialize( @validate_call - def v1_devices_rma_post( + def v1_devices_upgrade_schedule_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_rma_post_request: V1DevicesRmaPostRequest, + v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -39175,14 +40899,14 @@ def v1_devices_rma_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_devices_rma_post + ) -> None: + """v1_devices_upgrade_schedule_put :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_rma_post_request: (required) - :type v1_devices_rma_post_request: V1DevicesRmaPostRequest + :param v1_devices_upgrade_schedule_put_request: (required) + :type v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -39205,9 +40929,9 @@ def v1_devices_rma_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_rma_post_serialize( + _param = self._v1_devices_upgrade_schedule_put_serialize( authorization=authorization, - v1_devices_rma_post_request=v1_devices_rma_post_request, + v1_devices_upgrade_schedule_put_request=v1_devices_upgrade_schedule_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -39215,7 +40939,7 @@ def v1_devices_rma_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -39229,10 +40953,10 @@ def v1_devices_rma_post( @validate_call - def v1_devices_rma_post_with_http_info( + def v1_devices_upgrade_schedule_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_rma_post_request: V1DevicesRmaPostRequest, + v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -39245,14 +40969,14 @@ def v1_devices_rma_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_devices_rma_post + ) -> ApiResponse[None]: + """v1_devices_upgrade_schedule_put :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_rma_post_request: (required) - :type v1_devices_rma_post_request: V1DevicesRmaPostRequest + :param v1_devices_upgrade_schedule_put_request: (required) + :type v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -39275,9 +40999,9 @@ def v1_devices_rma_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_rma_post_serialize( + _param = self._v1_devices_upgrade_schedule_put_serialize( authorization=authorization, - v1_devices_rma_post_request=v1_devices_rma_post_request, + v1_devices_upgrade_schedule_put_request=v1_devices_upgrade_schedule_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -39285,7 +41009,7 @@ def v1_devices_rma_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -39299,10 +41023,10 @@ def v1_devices_rma_post_with_http_info( @validate_call - def v1_devices_rma_post_without_preload_content( + def v1_devices_upgrade_schedule_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_rma_post_request: V1DevicesRmaPostRequest, + v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -39316,13 +41040,13 @@ def v1_devices_rma_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_rma_post + """v1_devices_upgrade_schedule_put :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_rma_post_request: (required) - :type v1_devices_rma_post_request: V1DevicesRmaPostRequest + :param v1_devices_upgrade_schedule_put_request: (required) + :type v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -39345,9 +41069,9 @@ def v1_devices_rma_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_rma_post_serialize( + _param = self._v1_devices_upgrade_schedule_put_serialize( authorization=authorization, - v1_devices_rma_post_request=v1_devices_rma_post_request, + v1_devices_upgrade_schedule_put_request=v1_devices_upgrade_schedule_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -39355,7 +41079,7 @@ def v1_devices_rma_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -39364,10 +41088,10 @@ def v1_devices_rma_post_without_preload_content( return response_data.response - def _v1_devices_rma_post_serialize( + def _v1_devices_upgrade_schedule_put_serialize( self, authorization, - v1_devices_rma_post_request, + v1_devices_upgrade_schedule_put_request, _request_auth, _content_type, _headers, @@ -39395,17 +41119,10 @@ def _v1_devices_rma_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_devices_rma_post_request is not None: - _body_params = v1_devices_rma_post_request + if v1_devices_upgrade_schedule_put_request is not None: + _body_params = v1_devices_upgrade_schedule_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: @@ -39427,8 +41144,8 @@ def _v1_devices_rma_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/devices/rma', + method='PUT', + resource_path='/v1/devices/upgrade/schedule', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -39445,12 +41162,11 @@ def _v1_devices_rma_post_serialize( @validate_call - def v1_devices_routing_vrf_protocol_route_count_get( + def v1_diagnostic_archive_create_device_id_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - protocols: Annotated[List[StrictStr], Field(description="List of protocols names for which route count is needed")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], + device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], + v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -39463,19 +41179,17 @@ def v1_devices_routing_vrf_protocol_route_count_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesRoutingVrfProtocolRouteCountGetResponse: - """v1_devices_routing_vrf_protocol_route_count_get + ) -> V1DiagnosticArchiveCreateDeviceIdPostResponse: + """v1_diagnostic_archive_create_device_id_post - Get per VRF per protocol route count + Create a device debug archive :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) + :param device_id: Valid Provisioned device ID (required) :type device_id: int - :param protocols: List of protocols names for which route count is needed (required) - :type protocols: List[str] - :param vrf_name: Valid configured VRF names (required) - :type vrf_name: str + :param v1_diagnostic_archive_create_device_id_post_request: (required) + :type v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -39498,11 +41212,10 @@ def v1_devices_routing_vrf_protocol_route_count_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_routing_vrf_protocol_route_count_get_serialize( + _param = self._v1_diagnostic_archive_create_device_id_post_serialize( authorization=authorization, device_id=device_id, - protocols=protocols, - vrf_name=vrf_name, + v1_diagnostic_archive_create_device_id_post_request=v1_diagnostic_archive_create_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -39510,7 +41223,7 @@ def v1_devices_routing_vrf_protocol_route_count_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesRoutingVrfProtocolRouteCountGetResponse", + '201': "V1DiagnosticArchiveCreateDeviceIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -39524,12 +41237,11 @@ def v1_devices_routing_vrf_protocol_route_count_get( @validate_call - def v1_devices_routing_vrf_protocol_route_count_get_with_http_info( + def v1_diagnostic_archive_create_device_id_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - protocols: Annotated[List[StrictStr], Field(description="List of protocols names for which route count is needed")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], + device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], + v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -39542,19 +41254,17 @@ def v1_devices_routing_vrf_protocol_route_count_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[V1DevicesRoutingVrfProtocolRouteCountGetResponse]: - """v1_devices_routing_vrf_protocol_route_count_get + ) -> ApiResponse[V1DiagnosticArchiveCreateDeviceIdPostResponse]: + """v1_diagnostic_archive_create_device_id_post - Get per VRF per protocol route count + Create a device debug archive :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) + :param device_id: Valid Provisioned device ID (required) :type device_id: int - :param protocols: List of protocols names for which route count is needed (required) - :type protocols: List[str] - :param vrf_name: Valid configured VRF names (required) - :type vrf_name: str + :param v1_diagnostic_archive_create_device_id_post_request: (required) + :type v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -39577,11 +41287,10 @@ def v1_devices_routing_vrf_protocol_route_count_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_routing_vrf_protocol_route_count_get_serialize( + _param = self._v1_diagnostic_archive_create_device_id_post_serialize( authorization=authorization, device_id=device_id, - protocols=protocols, - vrf_name=vrf_name, + v1_diagnostic_archive_create_device_id_post_request=v1_diagnostic_archive_create_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -39589,7 +41298,7 @@ def v1_devices_routing_vrf_protocol_route_count_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesRoutingVrfProtocolRouteCountGetResponse", + '201': "V1DiagnosticArchiveCreateDeviceIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -39603,12 +41312,11 @@ def v1_devices_routing_vrf_protocol_route_count_get_with_http_info( @validate_call - def v1_devices_routing_vrf_protocol_route_count_get_without_preload_content( + def v1_diagnostic_archive_create_device_id_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid configured device ID > 0")], - protocols: Annotated[List[StrictStr], Field(description="List of protocols names for which route count is needed")], - vrf_name: Annotated[StrictStr, Field(description="Valid configured VRF names")], + device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], + v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -39622,18 +41330,16 @@ def v1_devices_routing_vrf_protocol_route_count_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_routing_vrf_protocol_route_count_get + """v1_diagnostic_archive_create_device_id_post - Get per VRF per protocol route count + Create a device debug archive :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid configured device ID > 0 (required) + :param device_id: Valid Provisioned device ID (required) :type device_id: int - :param protocols: List of protocols names for which route count is needed (required) - :type protocols: List[str] - :param vrf_name: Valid configured VRF names (required) - :type vrf_name: str + :param v1_diagnostic_archive_create_device_id_post_request: (required) + :type v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -39656,11 +41362,10 @@ def v1_devices_routing_vrf_protocol_route_count_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_routing_vrf_protocol_route_count_get_serialize( + _param = self._v1_diagnostic_archive_create_device_id_post_serialize( authorization=authorization, device_id=device_id, - protocols=protocols, - vrf_name=vrf_name, + v1_diagnostic_archive_create_device_id_post_request=v1_diagnostic_archive_create_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -39668,7 +41373,7 @@ def v1_devices_routing_vrf_protocol_route_count_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesRoutingVrfProtocolRouteCountGetResponse", + '201': "V1DiagnosticArchiveCreateDeviceIdPostResponse", } response_data = self.api_client.call_api( *_param, @@ -39677,12 +41382,11 @@ def v1_devices_routing_vrf_protocol_route_count_get_without_preload_content( return response_data.response - def _v1_devices_routing_vrf_protocol_route_count_get_serialize( + def _v1_diagnostic_archive_create_device_id_post_serialize( self, authorization, device_id, - protocols, - vrf_name, + v1_diagnostic_archive_create_device_id_post_request, _request_auth, _content_type, _headers, @@ -39692,7 +41396,6 @@ def _v1_devices_routing_vrf_protocol_route_count_get_serialize( _host = None _collection_formats: Dict[str, str] = { - 'protocols': 'multi', } _path_params: Dict[str, str] = {} @@ -39705,24 +41408,16 @@ def _v1_devices_routing_vrf_protocol_route_count_get_serialize( _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)) - - if protocols is not None: - - _query_params.append(('protocols', protocols)) - - if vrf_name is not None: - - _query_params.append(('vrfName', vrf_name)) - + _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_diagnostic_archive_create_device_id_post_request is not None: + _body_params = v1_diagnostic_archive_create_device_id_post_request # set the HTTP header `Accept` @@ -39733,6 +41428,19 @@ def _v1_devices_routing_vrf_protocol_route_count_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] = [ @@ -39740,8 +41448,8 @@ def _v1_devices_routing_vrf_protocol_route_count_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/devices/routing/vrf/protocol-route-count', + method='POST', + resource_path='/v1/diagnostic/archive-create/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -39758,10 +41466,10 @@ def _v1_devices_routing_vrf_protocol_route_count_get_serialize( @validate_call - def v1_devices_running_version_post( + def v1_diagnostic_archive_delete_archive_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest, + archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -39774,14 +41482,15 @@ def v1_devices_running_version_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesRunningVersionPostResponse: - """v1_devices_running_version_post + ) -> None: + """v1_diagnostic_archive_delete_archive_id_delete + Delete a device debug archive :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_running_version_post_request: (required) - :type v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest + :param archive_id: Unique identifier for a specific archive (required) + :type archive_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -39804,9 +41513,9 @@ def v1_devices_running_version_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_running_version_post_serialize( + _param = self._v1_diagnostic_archive_delete_archive_id_delete_serialize( authorization=authorization, - v1_devices_running_version_post_request=v1_devices_running_version_post_request, + archive_id=archive_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -39814,7 +41523,7 @@ def v1_devices_running_version_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesRunningVersionPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -39828,10 +41537,10 @@ def v1_devices_running_version_post( @validate_call - def v1_devices_running_version_post_with_http_info( + def v1_diagnostic_archive_delete_archive_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest, + archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -39844,14 +41553,15 @@ def v1_devices_running_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[V1DevicesRunningVersionPostResponse]: - """v1_devices_running_version_post + ) -> ApiResponse[None]: + """v1_diagnostic_archive_delete_archive_id_delete + Delete a device debug archive :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_running_version_post_request: (required) - :type v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest + :param archive_id: Unique identifier for a specific archive (required) + :type archive_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -39874,9 +41584,9 @@ def v1_devices_running_version_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_running_version_post_serialize( + _param = self._v1_diagnostic_archive_delete_archive_id_delete_serialize( authorization=authorization, - v1_devices_running_version_post_request=v1_devices_running_version_post_request, + archive_id=archive_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -39884,7 +41594,7 @@ def v1_devices_running_version_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesRunningVersionPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -39898,10 +41608,10 @@ def v1_devices_running_version_post_with_http_info( @validate_call - def v1_devices_running_version_post_without_preload_content( + def v1_diagnostic_archive_delete_archive_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest, + archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -39915,13 +41625,14 @@ def v1_devices_running_version_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_running_version_post + """v1_diagnostic_archive_delete_archive_id_delete + Delete a device debug archive :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_running_version_post_request: (required) - :type v1_devices_running_version_post_request: V1DevicesRunningVersionPostRequest + :param archive_id: Unique identifier for a specific archive (required) + :type archive_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -39944,9 +41655,9 @@ def v1_devices_running_version_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_running_version_post_serialize( + _param = self._v1_diagnostic_archive_delete_archive_id_delete_serialize( authorization=authorization, - v1_devices_running_version_post_request=v1_devices_running_version_post_request, + archive_id=archive_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -39954,7 +41665,7 @@ def v1_devices_running_version_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesRunningVersionPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -39963,10 +41674,10 @@ def v1_devices_running_version_post_without_preload_content( return response_data.response - def _v1_devices_running_version_post_serialize( + def _v1_diagnostic_archive_delete_archive_id_delete_serialize( self, authorization, - v1_devices_running_version_post_request, + archive_id, _request_auth, _content_type, _headers, @@ -39988,37 +41699,17 @@ def _v1_devices_running_version_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if archive_id is not None: + _path_params['archiveId'] = archive_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_devices_running_version_post_request is not None: - _body_params = v1_devices_running_version_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] = [ @@ -40026,8 +41717,8 @@ def _v1_devices_running_version_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/devices/running/version', + method='DELETE', + resource_path='/v1/diagnostic/archive-delete/{archiveId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -40044,10 +41735,11 @@ def _v1_devices_running_version_post_serialize( @validate_call - def v1_devices_session_status_post( + def v1_diagnostic_archive_edit_archive_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest, + archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], + v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -40060,15 +41752,17 @@ def v1_devices_session_status_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesSessionStatusPostResponse: - """v1_devices_session_status_post + ) -> None: + """v1_diagnostic_archive_edit_archive_id_put - Get all the BGP session states for the devices + Edit metadata for a previously generated device debug archive :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_session_status_post_request: (required) - :type v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest + :param archive_id: Unique identifier for a specific archive (required) + :type archive_id: int + :param v1_diagnostic_archive_edit_archive_id_put_request: (required) + :type v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -40091,9 +41785,10 @@ def v1_devices_session_status_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_session_status_post_serialize( + _param = self._v1_diagnostic_archive_edit_archive_id_put_serialize( authorization=authorization, - v1_devices_session_status_post_request=v1_devices_session_status_post_request, + archive_id=archive_id, + v1_diagnostic_archive_edit_archive_id_put_request=v1_diagnostic_archive_edit_archive_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -40101,7 +41796,7 @@ def v1_devices_session_status_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesSessionStatusPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -40115,10 +41810,11 @@ def v1_devices_session_status_post( @validate_call - def v1_devices_session_status_post_with_http_info( + def v1_diagnostic_archive_edit_archive_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest, + archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], + v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -40131,15 +41827,17 @@ def v1_devices_session_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[V1DevicesSessionStatusPostResponse]: - """v1_devices_session_status_post + ) -> ApiResponse[None]: + """v1_diagnostic_archive_edit_archive_id_put - Get all the BGP session states for the devices + Edit metadata for a previously generated device debug archive :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_session_status_post_request: (required) - :type v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest + :param archive_id: Unique identifier for a specific archive (required) + :type archive_id: int + :param v1_diagnostic_archive_edit_archive_id_put_request: (required) + :type v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -40162,9 +41860,10 @@ def v1_devices_session_status_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_session_status_post_serialize( + _param = self._v1_diagnostic_archive_edit_archive_id_put_serialize( authorization=authorization, - v1_devices_session_status_post_request=v1_devices_session_status_post_request, + archive_id=archive_id, + v1_diagnostic_archive_edit_archive_id_put_request=v1_diagnostic_archive_edit_archive_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -40172,7 +41871,7 @@ def v1_devices_session_status_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesSessionStatusPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -40186,10 +41885,11 @@ def v1_devices_session_status_post_with_http_info( @validate_call - def v1_devices_session_status_post_without_preload_content( + def v1_diagnostic_archive_edit_archive_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest, + archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], + v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -40203,14 +41903,16 @@ def v1_devices_session_status_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_session_status_post + """v1_diagnostic_archive_edit_archive_id_put - Get all the BGP session states for the devices + Edit metadata for a previously generated device debug archive :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_session_status_post_request: (required) - :type v1_devices_session_status_post_request: V1DevicesSessionStatusPostRequest + :param archive_id: Unique identifier for a specific archive (required) + :type archive_id: int + :param v1_diagnostic_archive_edit_archive_id_put_request: (required) + :type v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -40233,9 +41935,10 @@ def v1_devices_session_status_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_session_status_post_serialize( + _param = self._v1_diagnostic_archive_edit_archive_id_put_serialize( authorization=authorization, - v1_devices_session_status_post_request=v1_devices_session_status_post_request, + archive_id=archive_id, + v1_diagnostic_archive_edit_archive_id_put_request=v1_diagnostic_archive_edit_archive_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -40243,7 +41946,7 @@ def v1_devices_session_status_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesSessionStatusPostResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -40252,10 +41955,11 @@ def v1_devices_session_status_post_without_preload_content( return response_data.response - def _v1_devices_session_status_post_serialize( + def _v1_diagnostic_archive_edit_archive_id_put_serialize( self, authorization, - v1_devices_session_status_post_request, + archive_id, + v1_diagnostic_archive_edit_archive_id_put_request, _request_auth, _content_type, _headers, @@ -40277,23 +41981,18 @@ def _v1_devices_session_status_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if archive_id is not None: + _path_params['archiveId'] = archive_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_devices_session_status_post_request is not None: - _body_params = v1_devices_session_status_post_request + if v1_diagnostic_archive_edit_archive_id_put_request is not None: + _body_params = v1_diagnostic_archive_edit_archive_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: @@ -40315,8 +42014,8 @@ def _v1_devices_session_status_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/devices/session-status', + method='PUT', + resource_path='/v1/diagnostic/archive-edit/{archiveId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -40333,9 +42032,10 @@ def _v1_devices_session_status_post_serialize( @validate_call - def v1_devices_summary_get( + def v1_diagnostic_archives_device_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -40348,13 +42048,15 @@ def v1_devices_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DevicesSummaryGetResponse: - """v1_devices_summary_get + ) -> V1DiagnosticArchivesDeviceIdGetResponse: + """v1_diagnostic_archives_device_id_get - Get devices summary for the specified enterprise + Get a list of device debug archive collections :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: Valid Provisioned 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 @@ -40377,8 +42079,9 @@ def v1_devices_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_summary_get_serialize( + _param = self._v1_diagnostic_archives_device_id_get_serialize( authorization=authorization, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -40386,7 +42089,7 @@ def v1_devices_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesSummaryGetResponse", + '200': "V1DiagnosticArchivesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -40400,9 +42103,10 @@ def v1_devices_summary_get( @validate_call - def v1_devices_summary_get_with_http_info( + def v1_diagnostic_archives_device_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -40415,13 +42119,15 @@ def v1_devices_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[V1DevicesSummaryGetResponse]: - """v1_devices_summary_get + ) -> ApiResponse[V1DiagnosticArchivesDeviceIdGetResponse]: + """v1_diagnostic_archives_device_id_get - Get devices summary for the specified enterprise + Get a list of device debug archive collections :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: Valid Provisioned 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 @@ -40444,8 +42150,9 @@ def v1_devices_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_summary_get_serialize( + _param = self._v1_diagnostic_archives_device_id_get_serialize( authorization=authorization, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -40453,7 +42160,7 @@ def v1_devices_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesSummaryGetResponse", + '200': "V1DiagnosticArchivesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -40467,9 +42174,10 @@ def v1_devices_summary_get_with_http_info( @validate_call - def v1_devices_summary_get_without_preload_content( + def v1_diagnostic_archives_device_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -40483,12 +42191,14 @@ def v1_devices_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_summary_get + """v1_diagnostic_archives_device_id_get - Get devices summary for the specified enterprise + Get a list of device debug archive collections :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param device_id: Valid Provisioned 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 @@ -40511,8 +42221,9 @@ def v1_devices_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_summary_get_serialize( + _param = self._v1_diagnostic_archives_device_id_get_serialize( authorization=authorization, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -40520,7 +42231,7 @@ def v1_devices_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DevicesSummaryGetResponse", + '200': "V1DiagnosticArchivesDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -40529,9 +42240,10 @@ def v1_devices_summary_get_without_preload_content( return response_data.response - def _v1_devices_summary_get_serialize( + def _v1_diagnostic_archives_device_id_get_serialize( self, authorization, + device_id, _request_auth, _content_type, _headers, @@ -40553,6 +42265,8 @@ def _v1_devices_summary_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if device_id is not None: + _path_params['deviceId'] = device_id # process the query parameters # process the header parameters if authorization is not None: @@ -40577,7 +42291,7 @@ def _v1_devices_summary_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/devices-summary', + resource_path='/v1/diagnostic/archives/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -40594,10 +42308,11 @@ def _v1_devices_summary_get_serialize( @validate_call - def v1_devices_upgrade_cancel_put( + def v1_diagnostic_bgp_reset_device_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest, + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -40611,13 +42326,16 @@ def v1_devices_upgrade_cancel_put( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_devices_upgrade_cancel_put + """v1_diagnostic_bgp_reset_device_id_put + Reset a BGP neighbor :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_upgrade_cancel_put_request: (required) - :type v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_bgp_reset_device_id_put_request: (required) + :type v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -40640,9 +42358,10 @@ def v1_devices_upgrade_cancel_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_upgrade_cancel_put_serialize( + _param = self._v1_diagnostic_bgp_reset_device_id_put_serialize( authorization=authorization, - v1_devices_upgrade_cancel_put_request=v1_devices_upgrade_cancel_put_request, + device_id=device_id, + v1_diagnostic_bgp_reset_device_id_put_request=v1_diagnostic_bgp_reset_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -40664,10 +42383,11 @@ def v1_devices_upgrade_cancel_put( @validate_call - def v1_devices_upgrade_cancel_put_with_http_info( + def v1_diagnostic_bgp_reset_device_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest, + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -40681,13 +42401,16 @@ def v1_devices_upgrade_cancel_put_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_devices_upgrade_cancel_put + """v1_diagnostic_bgp_reset_device_id_put + Reset a BGP neighbor :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_upgrade_cancel_put_request: (required) - :type v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_bgp_reset_device_id_put_request: (required) + :type v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -40710,9 +42433,10 @@ def v1_devices_upgrade_cancel_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_upgrade_cancel_put_serialize( + _param = self._v1_diagnostic_bgp_reset_device_id_put_serialize( authorization=authorization, - v1_devices_upgrade_cancel_put_request=v1_devices_upgrade_cancel_put_request, + device_id=device_id, + v1_diagnostic_bgp_reset_device_id_put_request=v1_diagnostic_bgp_reset_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -40734,10 +42458,11 @@ def v1_devices_upgrade_cancel_put_with_http_info( @validate_call - def v1_devices_upgrade_cancel_put_without_preload_content( + def v1_diagnostic_bgp_reset_device_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest, + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -40751,13 +42476,16 @@ def v1_devices_upgrade_cancel_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_upgrade_cancel_put + """v1_diagnostic_bgp_reset_device_id_put + Reset a BGP neighbor :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_upgrade_cancel_put_request: (required) - :type v1_devices_upgrade_cancel_put_request: V1DevicesUpgradeCancelPutRequest + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_bgp_reset_device_id_put_request: (required) + :type v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -40780,9 +42508,10 @@ def v1_devices_upgrade_cancel_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_upgrade_cancel_put_serialize( + _param = self._v1_diagnostic_bgp_reset_device_id_put_serialize( authorization=authorization, - v1_devices_upgrade_cancel_put_request=v1_devices_upgrade_cancel_put_request, + device_id=device_id, + v1_diagnostic_bgp_reset_device_id_put_request=v1_diagnostic_bgp_reset_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -40799,10 +42528,11 @@ def v1_devices_upgrade_cancel_put_without_preload_content( return response_data.response - def _v1_devices_upgrade_cancel_put_serialize( + def _v1_diagnostic_bgp_reset_device_id_put_serialize( self, authorization, - v1_devices_upgrade_cancel_put_request, + device_id, + v1_diagnostic_bgp_reset_device_id_put_request, _request_auth, _content_type, _headers, @@ -40824,14 +42554,16 @@ def _v1_devices_upgrade_cancel_put_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_devices_upgrade_cancel_put_request is not None: - _body_params = v1_devices_upgrade_cancel_put_request + if v1_diagnostic_bgp_reset_device_id_put_request is not None: + _body_params = v1_diagnostic_bgp_reset_device_id_put_request @@ -40856,7 +42588,7 @@ def _v1_devices_upgrade_cancel_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/v1/devices/upgrade/cancel', + resource_path='/v1/diagnostic/bgp-reset/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -40873,10 +42605,11 @@ def _v1_devices_upgrade_cancel_put_serialize( @validate_call - def v1_devices_upgrade_schedule_put( + def v1_diagnostic_clear_arp_device_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest, + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -40890,13 +42623,16 @@ def v1_devices_upgrade_schedule_put( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_devices_upgrade_schedule_put + """v1_diagnostic_clear_arp_device_id_put + Clear arp entries :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_upgrade_schedule_put_request: (required) - :type v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_clear_arp_device_id_put_request: (required) + :type v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -40919,9 +42655,10 @@ def v1_devices_upgrade_schedule_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_upgrade_schedule_put_serialize( + _param = self._v1_diagnostic_clear_arp_device_id_put_serialize( authorization=authorization, - v1_devices_upgrade_schedule_put_request=v1_devices_upgrade_schedule_put_request, + device_id=device_id, + v1_diagnostic_clear_arp_device_id_put_request=v1_diagnostic_clear_arp_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -40943,10 +42680,11 @@ def v1_devices_upgrade_schedule_put( @validate_call - def v1_devices_upgrade_schedule_put_with_http_info( + def v1_diagnostic_clear_arp_device_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest, + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -40960,13 +42698,16 @@ def v1_devices_upgrade_schedule_put_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_devices_upgrade_schedule_put + """v1_diagnostic_clear_arp_device_id_put + Clear arp entries :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_upgrade_schedule_put_request: (required) - :type v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_clear_arp_device_id_put_request: (required) + :type v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -40989,9 +42730,10 @@ def v1_devices_upgrade_schedule_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_upgrade_schedule_put_serialize( + _param = self._v1_diagnostic_clear_arp_device_id_put_serialize( authorization=authorization, - v1_devices_upgrade_schedule_put_request=v1_devices_upgrade_schedule_put_request, + device_id=device_id, + v1_diagnostic_clear_arp_device_id_put_request=v1_diagnostic_clear_arp_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -41013,10 +42755,11 @@ def v1_devices_upgrade_schedule_put_with_http_info( @validate_call - def v1_devices_upgrade_schedule_put_without_preload_content( + def v1_diagnostic_clear_arp_device_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest, + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -41030,13 +42773,16 @@ def v1_devices_upgrade_schedule_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_devices_upgrade_schedule_put + """v1_diagnostic_clear_arp_device_id_put + Clear arp entries :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_devices_upgrade_schedule_put_request: (required) - :type v1_devices_upgrade_schedule_put_request: V1DevicesUpgradeSchedulePutRequest + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_clear_arp_device_id_put_request: (required) + :type v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -41059,9 +42805,10 @@ def v1_devices_upgrade_schedule_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_devices_upgrade_schedule_put_serialize( + _param = self._v1_diagnostic_clear_arp_device_id_put_serialize( authorization=authorization, - v1_devices_upgrade_schedule_put_request=v1_devices_upgrade_schedule_put_request, + device_id=device_id, + v1_diagnostic_clear_arp_device_id_put_request=v1_diagnostic_clear_arp_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -41078,10 +42825,11 @@ def v1_devices_upgrade_schedule_put_without_preload_content( return response_data.response - def _v1_devices_upgrade_schedule_put_serialize( + def _v1_diagnostic_clear_arp_device_id_put_serialize( self, authorization, - v1_devices_upgrade_schedule_put_request, + device_id, + v1_diagnostic_clear_arp_device_id_put_request, _request_auth, _content_type, _headers, @@ -41103,14 +42851,16 @@ def _v1_devices_upgrade_schedule_put_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_devices_upgrade_schedule_put_request is not None: - _body_params = v1_devices_upgrade_schedule_put_request + if v1_diagnostic_clear_arp_device_id_put_request is not None: + _body_params = v1_diagnostic_clear_arp_device_id_put_request @@ -41135,7 +42885,7 @@ def _v1_devices_upgrade_schedule_put_serialize( return self.api_client.param_serialize( method='PUT', - resource_path='/v1/devices/upgrade/schedule', + resource_path='/v1/diagnostic/clear-arp/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -41152,11 +42902,10 @@ def _v1_devices_upgrade_schedule_put_serialize( @validate_call - def v1_diagnostic_archive_create_device_id_post( + def v1_diagnostic_gnmi_ping_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], - v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest, + device_id: Annotated[int, Field(strict=True, ge=0, description="Device Id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -41169,17 +42918,15 @@ def v1_diagnostic_archive_create_device_id_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticArchiveCreateDeviceIdPostResponse: - """v1_diagnostic_archive_create_device_id_post + ) -> V1DiagnosticGnmiPingGetResponse: + """v1_diagnostic_gnmi_ping_get - Create a device debug archive + perform GNMI ping test :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid Provisioned device ID (required) + :param device_id: Device Id (required) :type device_id: int - :param v1_diagnostic_archive_create_device_id_post_request: (required) - :type v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -41202,10 +42949,9 @@ def v1_diagnostic_archive_create_device_id_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archive_create_device_id_post_serialize( + _param = self._v1_diagnostic_gnmi_ping_get_serialize( authorization=authorization, device_id=device_id, - v1_diagnostic_archive_create_device_id_post_request=v1_diagnostic_archive_create_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -41213,7 +42959,7 @@ def v1_diagnostic_archive_create_device_id_post( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "V1DiagnosticArchiveCreateDeviceIdPostResponse", + '200': "V1DiagnosticGnmiPingGetResponse", } response_data = self.api_client.call_api( *_param, @@ -41227,11 +42973,10 @@ def v1_diagnostic_archive_create_device_id_post( @validate_call - def v1_diagnostic_archive_create_device_id_post_with_http_info( + def v1_diagnostic_gnmi_ping_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], - v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest, + device_id: Annotated[int, Field(strict=True, ge=0, description="Device Id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -41244,17 +42989,15 @@ def v1_diagnostic_archive_create_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[V1DiagnosticArchiveCreateDeviceIdPostResponse]: - """v1_diagnostic_archive_create_device_id_post + ) -> ApiResponse[V1DiagnosticGnmiPingGetResponse]: + """v1_diagnostic_gnmi_ping_get - Create a device debug archive + perform GNMI ping test :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid Provisioned device ID (required) + :param device_id: Device Id (required) :type device_id: int - :param v1_diagnostic_archive_create_device_id_post_request: (required) - :type v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -41277,10 +43020,9 @@ def v1_diagnostic_archive_create_device_id_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archive_create_device_id_post_serialize( + _param = self._v1_diagnostic_gnmi_ping_get_serialize( authorization=authorization, device_id=device_id, - v1_diagnostic_archive_create_device_id_post_request=v1_diagnostic_archive_create_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -41288,7 +43030,7 @@ def v1_diagnostic_archive_create_device_id_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "V1DiagnosticArchiveCreateDeviceIdPostResponse", + '200': "V1DiagnosticGnmiPingGetResponse", } response_data = self.api_client.call_api( *_param, @@ -41302,11 +43044,10 @@ def v1_diagnostic_archive_create_device_id_post_with_http_info( @validate_call - def v1_diagnostic_archive_create_device_id_post_without_preload_content( + def v1_diagnostic_gnmi_ping_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], - v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest, + device_id: Annotated[int, Field(strict=True, ge=0, description="Device Id")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -41320,16 +43061,14 @@ def v1_diagnostic_archive_create_device_id_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_archive_create_device_id_post + """v1_diagnostic_gnmi_ping_get - Create a device debug archive + perform GNMI ping test :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid Provisioned device ID (required) + :param device_id: Device Id (required) :type device_id: int - :param v1_diagnostic_archive_create_device_id_post_request: (required) - :type v1_diagnostic_archive_create_device_id_post_request: V1DiagnosticArchiveCreateDeviceIdPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -41352,10 +43091,9 @@ def v1_diagnostic_archive_create_device_id_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archive_create_device_id_post_serialize( + _param = self._v1_diagnostic_gnmi_ping_get_serialize( authorization=authorization, device_id=device_id, - v1_diagnostic_archive_create_device_id_post_request=v1_diagnostic_archive_create_device_id_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -41363,7 +43101,7 @@ def v1_diagnostic_archive_create_device_id_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "V1DiagnosticArchiveCreateDeviceIdPostResponse", + '200': "V1DiagnosticGnmiPingGetResponse", } response_data = self.api_client.call_api( *_param, @@ -41372,11 +43110,10 @@ def v1_diagnostic_archive_create_device_id_post_without_preload_content( return response_data.response - def _v1_diagnostic_archive_create_device_id_post_serialize( + def _v1_diagnostic_gnmi_ping_get_serialize( self, authorization, device_id, - v1_diagnostic_archive_create_device_id_post_request, _request_auth, _content_type, _headers, @@ -41398,16 +43135,16 @@ def _v1_diagnostic_archive_create_device_id_post_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters + 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_diagnostic_archive_create_device_id_post_request is not None: - _body_params = v1_diagnostic_archive_create_device_id_post_request # set the HTTP header `Accept` @@ -41418,19 +43155,6 @@ def _v1_diagnostic_archive_create_device_id_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -41438,8 +43162,8 @@ def _v1_diagnostic_archive_create_device_id_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/diagnostic/archive-create/{deviceId}', + method='GET', + resource_path='/v1/diagnostic/gnmi-ping', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -41456,10 +43180,11 @@ def _v1_diagnostic_archive_create_device_id_post_serialize( @validate_call - def v1_diagnostic_archive_delete_archive_id_delete( + def v1_diagnostic_interface_reset_device_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -41473,14 +43198,16 @@ def v1_diagnostic_archive_delete_archive_id_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_diagnostic_archive_delete_archive_id_delete + """v1_diagnostic_interface_reset_device_id_put - Delete a device debug archive + Reset an interface :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param archive_id: Unique identifier for a specific archive (required) - :type archive_id: int + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_interface_reset_device_id_put_request: (required) + :type v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -41503,9 +43230,10 @@ def v1_diagnostic_archive_delete_archive_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archive_delete_archive_id_delete_serialize( + _param = self._v1_diagnostic_interface_reset_device_id_put_serialize( authorization=authorization, - archive_id=archive_id, + device_id=device_id, + v1_diagnostic_interface_reset_device_id_put_request=v1_diagnostic_interface_reset_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -41527,10 +43255,11 @@ def v1_diagnostic_archive_delete_archive_id_delete( @validate_call - def v1_diagnostic_archive_delete_archive_id_delete_with_http_info( + def v1_diagnostic_interface_reset_device_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -41544,14 +43273,16 @@ def v1_diagnostic_archive_delete_archive_id_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_diagnostic_archive_delete_archive_id_delete + """v1_diagnostic_interface_reset_device_id_put - Delete a device debug archive + Reset an interface :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param archive_id: Unique identifier for a specific archive (required) - :type archive_id: int + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_interface_reset_device_id_put_request: (required) + :type v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -41574,9 +43305,10 @@ def v1_diagnostic_archive_delete_archive_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archive_delete_archive_id_delete_serialize( + _param = self._v1_diagnostic_interface_reset_device_id_put_serialize( authorization=authorization, - archive_id=archive_id, + device_id=device_id, + v1_diagnostic_interface_reset_device_id_put_request=v1_diagnostic_interface_reset_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -41598,10 +43330,11 @@ def v1_diagnostic_archive_delete_archive_id_delete_with_http_info( @validate_call - def v1_diagnostic_archive_delete_archive_id_delete_without_preload_content( + def v1_diagnostic_interface_reset_device_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -41615,14 +43348,16 @@ def v1_diagnostic_archive_delete_archive_id_delete_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_archive_delete_archive_id_delete + """v1_diagnostic_interface_reset_device_id_put - Delete a device debug archive + Reset an interface :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param archive_id: Unique identifier for a specific archive (required) - :type archive_id: int + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_interface_reset_device_id_put_request: (required) + :type v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -41645,9 +43380,10 @@ def v1_diagnostic_archive_delete_archive_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archive_delete_archive_id_delete_serialize( + _param = self._v1_diagnostic_interface_reset_device_id_put_serialize( authorization=authorization, - archive_id=archive_id, + device_id=device_id, + v1_diagnostic_interface_reset_device_id_put_request=v1_diagnostic_interface_reset_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -41664,10 +43400,11 @@ def v1_diagnostic_archive_delete_archive_id_delete_without_preload_content( return response_data.response - def _v1_diagnostic_archive_delete_archive_id_delete_serialize( + def _v1_diagnostic_interface_reset_device_id_put_serialize( self, authorization, - archive_id, + device_id, + v1_diagnostic_interface_reset_device_id_put_request, _request_auth, _content_type, _headers, @@ -41689,17 +43426,32 @@ def _v1_diagnostic_archive_delete_archive_id_delete_serialize( _body_params: Optional[bytes] = None # process the path parameters - if archive_id is not None: - _path_params['archiveId'] = archive_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_diagnostic_interface_reset_device_id_put_request is not None: + _body_params = v1_diagnostic_interface_reset_device_id_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' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -41707,8 +43459,8 @@ def _v1_diagnostic_archive_delete_archive_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/diagnostic/archive-delete/{archiveId}', + method='PUT', + resource_path='/v1/diagnostic/interface-reset/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -41725,11 +43477,10 @@ def _v1_diagnostic_archive_delete_archive_id_delete_serialize( @validate_call - def v1_diagnostic_archive_edit_archive_id_put( + def v1_diagnostic_otp_device_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], - v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest, + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -41742,17 +43493,15 @@ def v1_diagnostic_archive_edit_archive_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_diagnostic_archive_edit_archive_id_put + ) -> V1DiagnosticOtpDeviceIdGetResponse: + """v1_diagnostic_otp_device_id_get - Edit metadata for a previously generated device debug archive + Get a one-time passcode to access a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param archive_id: Unique identifier for a specific archive (required) - :type archive_id: int - :param v1_diagnostic_archive_edit_archive_id_put_request: (required) - :type v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest + :param device_id: Unique identifier for a specific device (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 @@ -41775,10 +43524,9 @@ def v1_diagnostic_archive_edit_archive_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archive_edit_archive_id_put_serialize( + _param = self._v1_diagnostic_otp_device_id_get_serialize( authorization=authorization, - archive_id=archive_id, - v1_diagnostic_archive_edit_archive_id_put_request=v1_diagnostic_archive_edit_archive_id_put_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -41786,7 +43534,7 @@ def v1_diagnostic_archive_edit_archive_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticOtpDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -41800,11 +43548,10 @@ def v1_diagnostic_archive_edit_archive_id_put( @validate_call - def v1_diagnostic_archive_edit_archive_id_put_with_http_info( + def v1_diagnostic_otp_device_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], - v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest, + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -41817,17 +43564,15 @@ def v1_diagnostic_archive_edit_archive_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[None]: - """v1_diagnostic_archive_edit_archive_id_put + ) -> ApiResponse[V1DiagnosticOtpDeviceIdGetResponse]: + """v1_diagnostic_otp_device_id_get - Edit metadata for a previously generated device debug archive + Get a one-time passcode to access a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param archive_id: Unique identifier for a specific archive (required) - :type archive_id: int - :param v1_diagnostic_archive_edit_archive_id_put_request: (required) - :type v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest + :param device_id: Unique identifier for a specific device (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 @@ -41850,10 +43595,9 @@ def v1_diagnostic_archive_edit_archive_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archive_edit_archive_id_put_serialize( + _param = self._v1_diagnostic_otp_device_id_get_serialize( authorization=authorization, - archive_id=archive_id, - v1_diagnostic_archive_edit_archive_id_put_request=v1_diagnostic_archive_edit_archive_id_put_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -41861,7 +43605,7 @@ def v1_diagnostic_archive_edit_archive_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticOtpDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -41875,11 +43619,10 @@ def v1_diagnostic_archive_edit_archive_id_put_with_http_info( @validate_call - def v1_diagnostic_archive_edit_archive_id_put_without_preload_content( + def v1_diagnostic_otp_device_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - archive_id: Annotated[StrictInt, Field(description="Unique identifier for a specific archive")], - v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest, + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -41893,16 +43636,14 @@ def v1_diagnostic_archive_edit_archive_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_archive_edit_archive_id_put + """v1_diagnostic_otp_device_id_get - Edit metadata for a previously generated device debug archive + Get a one-time passcode to access a device :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param archive_id: Unique identifier for a specific archive (required) - :type archive_id: int - :param v1_diagnostic_archive_edit_archive_id_put_request: (required) - :type v1_diagnostic_archive_edit_archive_id_put_request: V1DiagnosticArchiveEditArchiveIdPutRequest + :param device_id: Unique identifier for a specific device (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 @@ -41925,10 +43666,9 @@ def v1_diagnostic_archive_edit_archive_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archive_edit_archive_id_put_serialize( + _param = self._v1_diagnostic_otp_device_id_get_serialize( authorization=authorization, - archive_id=archive_id, - v1_diagnostic_archive_edit_archive_id_put_request=v1_diagnostic_archive_edit_archive_id_put_request, + device_id=device_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -41936,7 +43676,7 @@ def v1_diagnostic_archive_edit_archive_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticOtpDeviceIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -41945,11 +43685,10 @@ def v1_diagnostic_archive_edit_archive_id_put_without_preload_content( return response_data.response - def _v1_diagnostic_archive_edit_archive_id_put_serialize( + def _v1_diagnostic_otp_device_id_get_serialize( self, authorization, - archive_id, - v1_diagnostic_archive_edit_archive_id_put_request, + device_id, _request_auth, _content_type, _headers, @@ -41971,32 +43710,24 @@ def _v1_diagnostic_archive_edit_archive_id_put_serialize( _body_params: Optional[bytes] = None # process the path parameters - if archive_id is not None: - _path_params['archiveId'] = archive_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_diagnostic_archive_edit_archive_id_put_request is not None: - _body_params = v1_diagnostic_archive_edit_archive_id_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] = [ @@ -42004,8 +43735,8 @@ def _v1_diagnostic_archive_edit_archive_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/diagnostic/archive-edit/{archiveId}', + method='GET', + resource_path='/v1/diagnostic/otp/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -42022,10 +43753,10 @@ def _v1_diagnostic_archive_edit_archive_id_put_serialize( @validate_call - def v1_diagnostic_archives_device_id_get( + def v1_diagnostic_packetcapture_pcap_id_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], + pcap_id: Annotated[StrictInt, Field(description="Unique identifier for a specific packet capture")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -42038,15 +43769,15 @@ def v1_diagnostic_archives_device_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticArchivesDeviceIdGetResponse: - """v1_diagnostic_archives_device_id_get + ) -> V1DiagnosticPacketcapturePcapIdGetResponse: + """v1_diagnostic_packetcapture_pcap_id_get - Get a list of device debug archive collections + get a packet capture :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid Provisioned device ID (required) - :type device_id: int + :param pcap_id: Unique identifier for a specific packet capture (required) + :type pcap_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42069,9 +43800,9 @@ def v1_diagnostic_archives_device_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archives_device_id_get_serialize( + _param = self._v1_diagnostic_packetcapture_pcap_id_get_serialize( authorization=authorization, - device_id=device_id, + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -42079,7 +43810,7 @@ def v1_diagnostic_archives_device_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticArchivesDeviceIdGetResponse", + '200': "V1DiagnosticPacketcapturePcapIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -42093,10 +43824,10 @@ def v1_diagnostic_archives_device_id_get( @validate_call - def v1_diagnostic_archives_device_id_get_with_http_info( + def v1_diagnostic_packetcapture_pcap_id_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], + pcap_id: Annotated[StrictInt, Field(description="Unique identifier for a specific packet capture")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -42109,15 +43840,15 @@ def v1_diagnostic_archives_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[V1DiagnosticArchivesDeviceIdGetResponse]: - """v1_diagnostic_archives_device_id_get + ) -> ApiResponse[V1DiagnosticPacketcapturePcapIdGetResponse]: + """v1_diagnostic_packetcapture_pcap_id_get - Get a list of device debug archive collections + get a packet capture :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid Provisioned device ID (required) - :type device_id: int + :param pcap_id: Unique identifier for a specific packet capture (required) + :type pcap_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42140,9 +43871,9 @@ def v1_diagnostic_archives_device_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archives_device_id_get_serialize( + _param = self._v1_diagnostic_packetcapture_pcap_id_get_serialize( authorization=authorization, - device_id=device_id, + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -42150,7 +43881,7 @@ def v1_diagnostic_archives_device_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticArchivesDeviceIdGetResponse", + '200': "V1DiagnosticPacketcapturePcapIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -42164,10 +43895,10 @@ def v1_diagnostic_archives_device_id_get_with_http_info( @validate_call - def v1_diagnostic_archives_device_id_get_without_preload_content( + def v1_diagnostic_packetcapture_pcap_id_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Valid Provisioned device ID")], + pcap_id: Annotated[StrictInt, Field(description="Unique identifier for a specific packet capture")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -42181,14 +43912,14 @@ def v1_diagnostic_archives_device_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_archives_device_id_get + """v1_diagnostic_packetcapture_pcap_id_get - Get a list of device debug archive collections + get a packet capture :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid Provisioned device ID (required) - :type device_id: int + :param pcap_id: Unique identifier for a specific packet capture (required) + :type pcap_id: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42211,9 +43942,9 @@ def v1_diagnostic_archives_device_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_archives_device_id_get_serialize( + _param = self._v1_diagnostic_packetcapture_pcap_id_get_serialize( authorization=authorization, - device_id=device_id, + pcap_id=pcap_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -42221,7 +43952,7 @@ def v1_diagnostic_archives_device_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticArchivesDeviceIdGetResponse", + '200': "V1DiagnosticPacketcapturePcapIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -42230,10 +43961,10 @@ def v1_diagnostic_archives_device_id_get_without_preload_content( return response_data.response - def _v1_diagnostic_archives_device_id_get_serialize( + def _v1_diagnostic_packetcapture_pcap_id_get_serialize( self, authorization, - device_id, + pcap_id, _request_auth, _content_type, _headers, @@ -42255,8 +43986,8 @@ def _v1_diagnostic_archives_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 pcap_id is not None: + _path_params['pcapId'] = pcap_id # process the query parameters # process the header parameters if authorization is not None: @@ -42281,7 +44012,7 @@ def _v1_diagnostic_archives_device_id_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/diagnostic/archives/{deviceId}', + resource_path='/v1/diagnostic/packetcapture/{pcapId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -42298,11 +44029,10 @@ def _v1_diagnostic_archives_device_id_get_serialize( @validate_call - def v1_diagnostic_bgp_reset_device_id_put( + def v1_diagnostic_packetcapture_start_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest, + v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -42315,17 +44045,15 @@ def v1_diagnostic_bgp_reset_device_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_diagnostic_bgp_reset_device_id_put + ) -> V1DiagnosticPacketcaptureStartPostResponse: + """v1_diagnostic_packetcapture_start_post - Reset a BGP neighbor + Start packet capture :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_bgp_reset_device_id_put_request: (required) - :type v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest + :param v1_diagnostic_packetcapture_start_post_request: (required) + :type v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42348,10 +44076,9 @@ def v1_diagnostic_bgp_reset_device_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_bgp_reset_device_id_put_serialize( + _param = self._v1_diagnostic_packetcapture_start_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_bgp_reset_device_id_put_request=v1_diagnostic_bgp_reset_device_id_put_request, + v1_diagnostic_packetcapture_start_post_request=v1_diagnostic_packetcapture_start_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -42359,7 +44086,7 @@ def v1_diagnostic_bgp_reset_device_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '201': "V1DiagnosticPacketcaptureStartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -42373,11 +44100,10 @@ def v1_diagnostic_bgp_reset_device_id_put( @validate_call - def v1_diagnostic_bgp_reset_device_id_put_with_http_info( + def v1_diagnostic_packetcapture_start_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest, + v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -42390,17 +44116,15 @@ def v1_diagnostic_bgp_reset_device_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[None]: - """v1_diagnostic_bgp_reset_device_id_put + ) -> ApiResponse[V1DiagnosticPacketcaptureStartPostResponse]: + """v1_diagnostic_packetcapture_start_post - Reset a BGP neighbor + Start packet capture :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_bgp_reset_device_id_put_request: (required) - :type v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest + :param v1_diagnostic_packetcapture_start_post_request: (required) + :type v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42423,10 +44147,9 @@ def v1_diagnostic_bgp_reset_device_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_bgp_reset_device_id_put_serialize( + _param = self._v1_diagnostic_packetcapture_start_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_bgp_reset_device_id_put_request=v1_diagnostic_bgp_reset_device_id_put_request, + v1_diagnostic_packetcapture_start_post_request=v1_diagnostic_packetcapture_start_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -42434,7 +44157,7 @@ def v1_diagnostic_bgp_reset_device_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '201': "V1DiagnosticPacketcaptureStartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -42448,11 +44171,10 @@ def v1_diagnostic_bgp_reset_device_id_put_with_http_info( @validate_call - def v1_diagnostic_bgp_reset_device_id_put_without_preload_content( + def v1_diagnostic_packetcapture_start_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest, + v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -42466,16 +44188,14 @@ def v1_diagnostic_bgp_reset_device_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_bgp_reset_device_id_put + """v1_diagnostic_packetcapture_start_post - Reset a BGP neighbor + Start packet capture :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_bgp_reset_device_id_put_request: (required) - :type v1_diagnostic_bgp_reset_device_id_put_request: V1DiagnosticBgpResetDeviceIdPutRequest + :param v1_diagnostic_packetcapture_start_post_request: (required) + :type v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42498,10 +44218,9 @@ def v1_diagnostic_bgp_reset_device_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_bgp_reset_device_id_put_serialize( + _param = self._v1_diagnostic_packetcapture_start_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_bgp_reset_device_id_put_request=v1_diagnostic_bgp_reset_device_id_put_request, + v1_diagnostic_packetcapture_start_post_request=v1_diagnostic_packetcapture_start_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -42509,7 +44228,7 @@ def v1_diagnostic_bgp_reset_device_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '201': "V1DiagnosticPacketcaptureStartPostResponse", } response_data = self.api_client.call_api( *_param, @@ -42518,11 +44237,10 @@ def v1_diagnostic_bgp_reset_device_id_put_without_preload_content( return response_data.response - def _v1_diagnostic_bgp_reset_device_id_put_serialize( + def _v1_diagnostic_packetcapture_start_post_serialize( self, authorization, - device_id, - v1_diagnostic_bgp_reset_device_id_put_request, + v1_diagnostic_packetcapture_start_post_request, _request_auth, _content_type, _headers, @@ -42544,18 +44262,23 @@ def _v1_diagnostic_bgp_reset_device_id_put_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_diagnostic_bgp_reset_device_id_put_request is not None: - _body_params = v1_diagnostic_bgp_reset_device_id_put_request + if v1_diagnostic_packetcapture_start_post_request is not None: + _body_params = v1_diagnostic_packetcapture_start_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: @@ -42577,8 +44300,8 @@ def _v1_diagnostic_bgp_reset_device_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/diagnostic/bgp-reset/{deviceId}', + method='POST', + resource_path='/v1/diagnostic/packetcapture-start', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -42595,11 +44318,10 @@ def _v1_diagnostic_bgp_reset_device_id_put_serialize( @validate_call - def v1_diagnostic_clear_arp_device_id_put( + def v1_diagnostic_packetcapture_stop_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest, + v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -42613,16 +44335,14 @@ def v1_diagnostic_clear_arp_device_id_put( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_diagnostic_clear_arp_device_id_put + """v1_diagnostic_packetcapture_stop_post - Clear arp entries + Stop packet capture :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_clear_arp_device_id_put_request: (required) - :type v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest + :param v1_diagnostic_packetcapture_stop_post_request: (required) + :type v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42645,10 +44365,9 @@ def v1_diagnostic_clear_arp_device_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_clear_arp_device_id_put_serialize( + _param = self._v1_diagnostic_packetcapture_stop_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_clear_arp_device_id_put_request=v1_diagnostic_clear_arp_device_id_put_request, + v1_diagnostic_packetcapture_stop_post_request=v1_diagnostic_packetcapture_stop_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -42670,11 +44389,10 @@ def v1_diagnostic_clear_arp_device_id_put( @validate_call - def v1_diagnostic_clear_arp_device_id_put_with_http_info( + def v1_diagnostic_packetcapture_stop_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest, + v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -42688,16 +44406,14 @@ def v1_diagnostic_clear_arp_device_id_put_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_diagnostic_clear_arp_device_id_put + """v1_diagnostic_packetcapture_stop_post - Clear arp entries + Stop packet capture :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_clear_arp_device_id_put_request: (required) - :type v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest + :param v1_diagnostic_packetcapture_stop_post_request: (required) + :type v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42720,10 +44436,9 @@ def v1_diagnostic_clear_arp_device_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_clear_arp_device_id_put_serialize( + _param = self._v1_diagnostic_packetcapture_stop_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_clear_arp_device_id_put_request=v1_diagnostic_clear_arp_device_id_put_request, + v1_diagnostic_packetcapture_stop_post_request=v1_diagnostic_packetcapture_stop_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -42745,11 +44460,10 @@ def v1_diagnostic_clear_arp_device_id_put_with_http_info( @validate_call - def v1_diagnostic_clear_arp_device_id_put_without_preload_content( + def v1_diagnostic_packetcapture_stop_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest, + v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -42763,16 +44477,14 @@ def v1_diagnostic_clear_arp_device_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_clear_arp_device_id_put + """v1_diagnostic_packetcapture_stop_post - Clear arp entries + Stop packet capture :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_clear_arp_device_id_put_request: (required) - :type v1_diagnostic_clear_arp_device_id_put_request: V1DiagnosticClearArpDeviceIdPutRequest + :param v1_diagnostic_packetcapture_stop_post_request: (required) + :type v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42795,10 +44507,9 @@ def v1_diagnostic_clear_arp_device_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_clear_arp_device_id_put_serialize( + _param = self._v1_diagnostic_packetcapture_stop_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_clear_arp_device_id_put_request=v1_diagnostic_clear_arp_device_id_put_request, + v1_diagnostic_packetcapture_stop_post_request=v1_diagnostic_packetcapture_stop_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -42815,11 +44526,10 @@ def v1_diagnostic_clear_arp_device_id_put_without_preload_content( return response_data.response - def _v1_diagnostic_clear_arp_device_id_put_serialize( + def _v1_diagnostic_packetcapture_stop_post_serialize( self, authorization, - device_id, - v1_diagnostic_clear_arp_device_id_put_request, + v1_diagnostic_packetcapture_stop_post_request, _request_auth, _content_type, _headers, @@ -42841,16 +44551,14 @@ def _v1_diagnostic_clear_arp_device_id_put_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_diagnostic_clear_arp_device_id_put_request is not None: - _body_params = v1_diagnostic_clear_arp_device_id_put_request + if v1_diagnostic_packetcapture_stop_post_request is not None: + _body_params = v1_diagnostic_packetcapture_stop_post_request @@ -42874,8 +44582,8 @@ def _v1_diagnostic_clear_arp_device_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/diagnostic/clear-arp/{deviceId}', + method='POST', + resource_path='/v1/diagnostic/packetcapture-stop', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -42892,10 +44600,10 @@ def _v1_diagnostic_clear_arp_device_id_put_serialize( @validate_call - def v1_diagnostic_gnmi_ping_get( + def v1_diagnostic_ping_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[int, Field(strict=True, ge=0, description="Device Id")], + v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -42908,15 +44616,15 @@ def v1_diagnostic_gnmi_ping_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticGnmiPingGetResponse: - """v1_diagnostic_gnmi_ping_get + ) -> V1DiagnosticPingPostResponse: + """v1_diagnostic_ping_post - perform GNMI ping test + Trigger a diagnostic test :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Device Id (required) - :type device_id: int + :param v1_diagnostic_ping_post_request: (required) + :type v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -42939,9 +44647,9 @@ def v1_diagnostic_gnmi_ping_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_gnmi_ping_get_serialize( + _param = self._v1_diagnostic_ping_post_serialize( authorization=authorization, - device_id=device_id, + v1_diagnostic_ping_post_request=v1_diagnostic_ping_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -42949,7 +44657,7 @@ def v1_diagnostic_gnmi_ping_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticGnmiPingGetResponse", + '200': "V1DiagnosticPingPostResponse", } response_data = self.api_client.call_api( *_param, @@ -42963,10 +44671,10 @@ def v1_diagnostic_gnmi_ping_get( @validate_call - def v1_diagnostic_gnmi_ping_get_with_http_info( + def v1_diagnostic_ping_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[int, Field(strict=True, ge=0, description="Device Id")], + v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -42979,15 +44687,15 @@ def v1_diagnostic_gnmi_ping_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[V1DiagnosticGnmiPingGetResponse]: - """v1_diagnostic_gnmi_ping_get + ) -> ApiResponse[V1DiagnosticPingPostResponse]: + """v1_diagnostic_ping_post - perform GNMI ping test + Trigger a diagnostic test :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Device Id (required) - :type device_id: int + :param v1_diagnostic_ping_post_request: (required) + :type v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -43010,9 +44718,9 @@ def v1_diagnostic_gnmi_ping_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_gnmi_ping_get_serialize( + _param = self._v1_diagnostic_ping_post_serialize( authorization=authorization, - device_id=device_id, + v1_diagnostic_ping_post_request=v1_diagnostic_ping_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -43020,7 +44728,7 @@ def v1_diagnostic_gnmi_ping_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticGnmiPingGetResponse", + '200': "V1DiagnosticPingPostResponse", } response_data = self.api_client.call_api( *_param, @@ -43034,10 +44742,10 @@ def v1_diagnostic_gnmi_ping_get_with_http_info( @validate_call - def v1_diagnostic_gnmi_ping_get_without_preload_content( + def v1_diagnostic_ping_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[int, Field(strict=True, ge=0, description="Device Id")], + v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -43051,14 +44759,14 @@ def v1_diagnostic_gnmi_ping_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_gnmi_ping_get + """v1_diagnostic_ping_post - perform GNMI ping test + Trigger a diagnostic test :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Device Id (required) - :type device_id: int + :param v1_diagnostic_ping_post_request: (required) + :type v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -43081,9 +44789,9 @@ def v1_diagnostic_gnmi_ping_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_gnmi_ping_get_serialize( + _param = self._v1_diagnostic_ping_post_serialize( authorization=authorization, - device_id=device_id, + v1_diagnostic_ping_post_request=v1_diagnostic_ping_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -43091,7 +44799,7 @@ def v1_diagnostic_gnmi_ping_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticGnmiPingGetResponse", + '200': "V1DiagnosticPingPostResponse", } response_data = self.api_client.call_api( *_param, @@ -43100,10 +44808,10 @@ def v1_diagnostic_gnmi_ping_get_without_preload_content( return response_data.response - def _v1_diagnostic_gnmi_ping_get_serialize( + def _v1_diagnostic_ping_post_serialize( self, authorization, - device_id, + v1_diagnostic_ping_post_request, _request_auth, _content_type, _headers, @@ -43126,15 +44834,13 @@ def _v1_diagnostic_gnmi_ping_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_diagnostic_ping_post_request is not None: + _body_params = v1_diagnostic_ping_post_request # set the HTTP header `Accept` @@ -43145,6 +44851,19 @@ def _v1_diagnostic_gnmi_ping_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] = [ @@ -43152,8 +44871,8 @@ def _v1_diagnostic_gnmi_ping_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/diagnostic/gnmi-ping', + method='POST', + resource_path='/v1/diagnostic/ping', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -43170,11 +44889,11 @@ def _v1_diagnostic_gnmi_ping_get_serialize( @validate_call - def v1_diagnostic_interface_reset_device_id_put( + def v1_diagnostic_ping_stop_token_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest, + token: Annotated[StrictStr, Field(description="Identifier which was received in initial response")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -43188,16 +44907,16 @@ def v1_diagnostic_interface_reset_device_id_put( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_diagnostic_interface_reset_device_id_put + """v1_diagnostic_ping_stop_token_post - Reset an interface + Stop ping session :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_interface_reset_device_id_put_request: (required) - :type v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest + :param token: Identifier which was received in initial response (required) + :type token: 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 @@ -43220,10 +44939,10 @@ def v1_diagnostic_interface_reset_device_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_interface_reset_device_id_put_serialize( + _param = self._v1_diagnostic_ping_stop_token_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_interface_reset_device_id_put_request=v1_diagnostic_interface_reset_device_id_put_request, + token=token, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -43245,11 +44964,11 @@ def v1_diagnostic_interface_reset_device_id_put( @validate_call - def v1_diagnostic_interface_reset_device_id_put_with_http_info( + def v1_diagnostic_ping_stop_token_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest, + token: Annotated[StrictStr, Field(description="Identifier which was received in initial response")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -43263,16 +44982,16 @@ def v1_diagnostic_interface_reset_device_id_put_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_diagnostic_interface_reset_device_id_put + """v1_diagnostic_ping_stop_token_post - Reset an interface + Stop ping session :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_interface_reset_device_id_put_request: (required) - :type v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest + :param token: Identifier which was received in initial response (required) + :type token: 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 @@ -43295,10 +45014,10 @@ def v1_diagnostic_interface_reset_device_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_interface_reset_device_id_put_serialize( + _param = self._v1_diagnostic_ping_stop_token_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_interface_reset_device_id_put_request=v1_diagnostic_interface_reset_device_id_put_request, + token=token, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -43320,11 +45039,11 @@ def v1_diagnostic_interface_reset_device_id_put_with_http_info( @validate_call - def v1_diagnostic_interface_reset_device_id_put_without_preload_content( + def v1_diagnostic_ping_stop_token_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest, + token: Annotated[StrictStr, Field(description="Identifier which was received in initial response")], + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -43338,16 +45057,16 @@ def v1_diagnostic_interface_reset_device_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_interface_reset_device_id_put + """v1_diagnostic_ping_stop_token_post - Reset an interface + Stop ping session :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_interface_reset_device_id_put_request: (required) - :type v1_diagnostic_interface_reset_device_id_put_request: V1DiagnosticInterfaceResetDeviceIdPutRequest + :param token: Identifier which was received in initial response (required) + :type token: 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 @@ -43370,10 +45089,10 @@ def v1_diagnostic_interface_reset_device_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_interface_reset_device_id_put_serialize( + _param = self._v1_diagnostic_ping_stop_token_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_interface_reset_device_id_put_request=v1_diagnostic_interface_reset_device_id_put_request, + token=token, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -43390,11 +45109,11 @@ def v1_diagnostic_interface_reset_device_id_put_without_preload_content( return response_data.response - def _v1_diagnostic_interface_reset_device_id_put_serialize( + def _v1_diagnostic_ping_stop_token_post_serialize( self, authorization, - device_id, - v1_diagnostic_interface_reset_device_id_put_request, + token, + body, _request_auth, _content_type, _headers, @@ -43416,16 +45135,16 @@ def _v1_diagnostic_interface_reset_device_id_put_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id + if token is not None: + _path_params['token'] = token # 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_diagnostic_interface_reset_device_id_put_request is not None: - _body_params = v1_diagnostic_interface_reset_device_id_put_request + if body is not None: + _body_params = body @@ -43449,8 +45168,8 @@ def _v1_diagnostic_interface_reset_device_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/diagnostic/interface-reset/{deviceId}', + method='POST', + resource_path='/v1/diagnostic/ping-stop/{token}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -43467,10 +45186,11 @@ def _v1_diagnostic_interface_reset_device_id_put_serialize( @validate_call - def v1_diagnostic_otp_device_id_get( + def v1_diagnostic_reboot_device_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + device_id: Annotated[int, Field(strict=True, ge=0, description="Valid Provisioned device ID")], + v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -43483,15 +45203,17 @@ def v1_diagnostic_otp_device_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticOtpDeviceIdGetResponse: - """v1_diagnostic_otp_device_id_get + ) -> None: + """v1_diagnostic_reboot_device_id_put - Get a one-time passcode to access a device + Trigger a device reboot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) + :param device_id: Valid Provisioned device ID (required) :type device_id: int + :param v1_diagnostic_reboot_device_id_put_request: (required) + :type v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -43514,9 +45236,10 @@ def v1_diagnostic_otp_device_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_otp_device_id_get_serialize( + _param = self._v1_diagnostic_reboot_device_id_put_serialize( authorization=authorization, device_id=device_id, + v1_diagnostic_reboot_device_id_put_request=v1_diagnostic_reboot_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -43524,7 +45247,7 @@ def v1_diagnostic_otp_device_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticOtpDeviceIdGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -43538,10 +45261,11 @@ def v1_diagnostic_otp_device_id_get( @validate_call - def v1_diagnostic_otp_device_id_get_with_http_info( + def v1_diagnostic_reboot_device_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + device_id: Annotated[int, Field(strict=True, ge=0, description="Valid Provisioned device ID")], + v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -43554,15 +45278,17 @@ def v1_diagnostic_otp_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[V1DiagnosticOtpDeviceIdGetResponse]: - """v1_diagnostic_otp_device_id_get + ) -> ApiResponse[None]: + """v1_diagnostic_reboot_device_id_put - Get a one-time passcode to access a device + Trigger a device reboot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) + :param device_id: Valid Provisioned device ID (required) :type device_id: int + :param v1_diagnostic_reboot_device_id_put_request: (required) + :type v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -43585,9 +45311,10 @@ def v1_diagnostic_otp_device_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_otp_device_id_get_serialize( + _param = self._v1_diagnostic_reboot_device_id_put_serialize( authorization=authorization, device_id=device_id, + v1_diagnostic_reboot_device_id_put_request=v1_diagnostic_reboot_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -43595,7 +45322,7 @@ def v1_diagnostic_otp_device_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticOtpDeviceIdGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -43609,10 +45336,11 @@ def v1_diagnostic_otp_device_id_get_with_http_info( @validate_call - def v1_diagnostic_otp_device_id_get_without_preload_content( + def v1_diagnostic_reboot_device_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + device_id: Annotated[int, Field(strict=True, ge=0, description="Valid Provisioned device ID")], + v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -43626,14 +45354,16 @@ def v1_diagnostic_otp_device_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_otp_device_id_get + """v1_diagnostic_reboot_device_id_put - Get a one-time passcode to access a device + Trigger a device reboot :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) + :param device_id: Valid Provisioned device ID (required) :type device_id: int + :param v1_diagnostic_reboot_device_id_put_request: (required) + :type v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -43656,9 +45386,10 @@ def v1_diagnostic_otp_device_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_otp_device_id_get_serialize( + _param = self._v1_diagnostic_reboot_device_id_put_serialize( authorization=authorization, device_id=device_id, + v1_diagnostic_reboot_device_id_put_request=v1_diagnostic_reboot_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -43666,7 +45397,7 @@ def v1_diagnostic_otp_device_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticOtpDeviceIdGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -43675,10 +45406,11 @@ def v1_diagnostic_otp_device_id_get_without_preload_content( return response_data.response - def _v1_diagnostic_otp_device_id_get_serialize( + def _v1_diagnostic_reboot_device_id_put_serialize( self, authorization, device_id, + v1_diagnostic_reboot_device_id_put_request, _request_auth, _content_type, _headers, @@ -43708,16 +45440,24 @@ def _v1_diagnostic_otp_device_id_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_diagnostic_reboot_device_id_put_request is not None: + _body_params = v1_diagnostic_reboot_device_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] = [ @@ -43725,8 +45465,8 @@ def _v1_diagnostic_otp_device_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/diagnostic/otp/{deviceId}', + method='PUT', + resource_path='/v1/diagnostic/reboot/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -43743,10 +45483,11 @@ def _v1_diagnostic_otp_device_id_get_serialize( @validate_call - def v1_diagnostic_packetcapture_pcap_id_get( + def v1_diagnostic_reset_ipsec_session_device_id_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - pcap_id: Annotated[StrictInt, Field(description="Unique identifier for a specific packet capture")], + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -43759,15 +45500,17 @@ def v1_diagnostic_packetcapture_pcap_id_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticPacketcapturePcapIdGetResponse: - """v1_diagnostic_packetcapture_pcap_id_get + ) -> None: + """v1_diagnostic_reset_ipsec_session_device_id_put - get a packet capture + Reset IPSec sessions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param pcap_id: Unique identifier for a specific packet capture (required) - :type pcap_id: int + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_reset_ipsec_session_device_id_put_request: (required) + :type v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -43790,9 +45533,10 @@ def v1_diagnostic_packetcapture_pcap_id_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_packetcapture_pcap_id_get_serialize( + _param = self._v1_diagnostic_reset_ipsec_session_device_id_put_serialize( authorization=authorization, - pcap_id=pcap_id, + device_id=device_id, + v1_diagnostic_reset_ipsec_session_device_id_put_request=v1_diagnostic_reset_ipsec_session_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -43800,7 +45544,7 @@ def v1_diagnostic_packetcapture_pcap_id_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticPacketcapturePcapIdGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -43814,10 +45558,11 @@ def v1_diagnostic_packetcapture_pcap_id_get( @validate_call - def v1_diagnostic_packetcapture_pcap_id_get_with_http_info( + def v1_diagnostic_reset_ipsec_session_device_id_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - pcap_id: Annotated[StrictInt, Field(description="Unique identifier for a specific packet capture")], + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -43830,15 +45575,17 @@ def v1_diagnostic_packetcapture_pcap_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[V1DiagnosticPacketcapturePcapIdGetResponse]: - """v1_diagnostic_packetcapture_pcap_id_get + ) -> ApiResponse[None]: + """v1_diagnostic_reset_ipsec_session_device_id_put - get a packet capture + Reset IPSec sessions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param pcap_id: Unique identifier for a specific packet capture (required) - :type pcap_id: int + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_reset_ipsec_session_device_id_put_request: (required) + :type v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -43861,9 +45608,10 @@ def v1_diagnostic_packetcapture_pcap_id_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_packetcapture_pcap_id_get_serialize( + _param = self._v1_diagnostic_reset_ipsec_session_device_id_put_serialize( authorization=authorization, - pcap_id=pcap_id, + device_id=device_id, + v1_diagnostic_reset_ipsec_session_device_id_put_request=v1_diagnostic_reset_ipsec_session_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -43871,7 +45619,7 @@ def v1_diagnostic_packetcapture_pcap_id_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticPacketcapturePcapIdGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -43885,10 +45633,11 @@ def v1_diagnostic_packetcapture_pcap_id_get_with_http_info( @validate_call - def v1_diagnostic_packetcapture_pcap_id_get_without_preload_content( + def v1_diagnostic_reset_ipsec_session_device_id_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - pcap_id: Annotated[StrictInt, Field(description="Unique identifier for a specific packet capture")], + device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], + v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -43902,14 +45651,16 @@ def v1_diagnostic_packetcapture_pcap_id_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_packetcapture_pcap_id_get + """v1_diagnostic_reset_ipsec_session_device_id_put - get a packet capture + Reset IPSec sessions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param pcap_id: Unique identifier for a specific packet capture (required) - :type pcap_id: int + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param v1_diagnostic_reset_ipsec_session_device_id_put_request: (required) + :type v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -43932,9 +45683,10 @@ def v1_diagnostic_packetcapture_pcap_id_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_packetcapture_pcap_id_get_serialize( + _param = self._v1_diagnostic_reset_ipsec_session_device_id_put_serialize( authorization=authorization, - pcap_id=pcap_id, + device_id=device_id, + v1_diagnostic_reset_ipsec_session_device_id_put_request=v1_diagnostic_reset_ipsec_session_device_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -43942,7 +45694,7 @@ def v1_diagnostic_packetcapture_pcap_id_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticPacketcapturePcapIdGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -43951,10 +45703,11 @@ def v1_diagnostic_packetcapture_pcap_id_get_without_preload_content( return response_data.response - def _v1_diagnostic_packetcapture_pcap_id_get_serialize( + def _v1_diagnostic_reset_ipsec_session_device_id_put_serialize( self, authorization, - pcap_id, + device_id, + v1_diagnostic_reset_ipsec_session_device_id_put_request, _request_auth, _content_type, _headers, @@ -43976,24 +45729,32 @@ def _v1_diagnostic_packetcapture_pcap_id_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if pcap_id is not None: - _path_params['pcapId'] = pcap_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_diagnostic_reset_ipsec_session_device_id_put_request is not None: + _body_params = v1_diagnostic_reset_ipsec_session_device_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] = [ @@ -44001,8 +45762,8 @@ def _v1_diagnostic_packetcapture_pcap_id_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/diagnostic/packetcapture/{pcapId}', + method='PUT', + resource_path='/v1/diagnostic/reset-ipsec-session/{deviceId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -44019,10 +45780,10 @@ def _v1_diagnostic_packetcapture_pcap_id_get_serialize( @validate_call - def v1_diagnostic_packetcapture_start_post( + def v1_diagnostic_speedtest_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest, + v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -44035,15 +45796,15 @@ def v1_diagnostic_packetcapture_start_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticPacketcaptureStartPostResponse: - """v1_diagnostic_packetcapture_start_post + ) -> V1DiagnosticSpeedtestPostResponse: + """v1_diagnostic_speedtest_post - Start packet capture + Trigger Speedtest utility :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_packetcapture_start_post_request: (required) - :type v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest + :param v1_diagnostic_speedtest_post_request: (required) + :type v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -44066,9 +45827,9 @@ def v1_diagnostic_packetcapture_start_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_packetcapture_start_post_serialize( + _param = self._v1_diagnostic_speedtest_post_serialize( authorization=authorization, - v1_diagnostic_packetcapture_start_post_request=v1_diagnostic_packetcapture_start_post_request, + v1_diagnostic_speedtest_post_request=v1_diagnostic_speedtest_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -44076,7 +45837,7 @@ def v1_diagnostic_packetcapture_start_post( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "V1DiagnosticPacketcaptureStartPostResponse", + '200': "V1DiagnosticSpeedtestPostResponse", } response_data = self.api_client.call_api( *_param, @@ -44090,10 +45851,10 @@ def v1_diagnostic_packetcapture_start_post( @validate_call - def v1_diagnostic_packetcapture_start_post_with_http_info( + def v1_diagnostic_speedtest_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest, + v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -44106,15 +45867,15 @@ def v1_diagnostic_packetcapture_start_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[V1DiagnosticPacketcaptureStartPostResponse]: - """v1_diagnostic_packetcapture_start_post + ) -> ApiResponse[V1DiagnosticSpeedtestPostResponse]: + """v1_diagnostic_speedtest_post - Start packet capture + Trigger Speedtest utility :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_packetcapture_start_post_request: (required) - :type v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest + :param v1_diagnostic_speedtest_post_request: (required) + :type v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -44137,9 +45898,9 @@ def v1_diagnostic_packetcapture_start_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_packetcapture_start_post_serialize( + _param = self._v1_diagnostic_speedtest_post_serialize( authorization=authorization, - v1_diagnostic_packetcapture_start_post_request=v1_diagnostic_packetcapture_start_post_request, + v1_diagnostic_speedtest_post_request=v1_diagnostic_speedtest_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -44147,7 +45908,7 @@ def v1_diagnostic_packetcapture_start_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "V1DiagnosticPacketcaptureStartPostResponse", + '200': "V1DiagnosticSpeedtestPostResponse", } response_data = self.api_client.call_api( *_param, @@ -44161,10 +45922,10 @@ def v1_diagnostic_packetcapture_start_post_with_http_info( @validate_call - def v1_diagnostic_packetcapture_start_post_without_preload_content( + def v1_diagnostic_speedtest_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest, + v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -44178,14 +45939,14 @@ def v1_diagnostic_packetcapture_start_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_packetcapture_start_post + """v1_diagnostic_speedtest_post - Start packet capture + Trigger Speedtest utility :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_packetcapture_start_post_request: (required) - :type v1_diagnostic_packetcapture_start_post_request: V1DiagnosticPacketcaptureStartPostRequest + :param v1_diagnostic_speedtest_post_request: (required) + :type v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -44208,9 +45969,9 @@ def v1_diagnostic_packetcapture_start_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_packetcapture_start_post_serialize( + _param = self._v1_diagnostic_speedtest_post_serialize( authorization=authorization, - v1_diagnostic_packetcapture_start_post_request=v1_diagnostic_packetcapture_start_post_request, + v1_diagnostic_speedtest_post_request=v1_diagnostic_speedtest_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -44218,7 +45979,7 @@ def v1_diagnostic_packetcapture_start_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "V1DiagnosticPacketcaptureStartPostResponse", + '200': "V1DiagnosticSpeedtestPostResponse", } response_data = self.api_client.call_api( *_param, @@ -44227,10 +45988,10 @@ def v1_diagnostic_packetcapture_start_post_without_preload_content( return response_data.response - def _v1_diagnostic_packetcapture_start_post_serialize( + def _v1_diagnostic_speedtest_post_serialize( self, authorization, - v1_diagnostic_packetcapture_start_post_request, + v1_diagnostic_speedtest_post_request, _request_auth, _content_type, _headers, @@ -44258,8 +46019,8 @@ def _v1_diagnostic_packetcapture_start_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_diagnostic_packetcapture_start_post_request is not None: - _body_params = v1_diagnostic_packetcapture_start_post_request + if v1_diagnostic_speedtest_post_request is not None: + _body_params = v1_diagnostic_speedtest_post_request # set the HTTP header `Accept` @@ -44291,7 +46052,7 @@ def _v1_diagnostic_packetcapture_start_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/diagnostic/packetcapture-start', + resource_path='/v1/diagnostic/speedtest', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -44308,10 +46069,9 @@ def _v1_diagnostic_packetcapture_start_post_serialize( @validate_call - def v1_diagnostic_packetcapture_stop_post( + def v1_diagnostic_speedtest_providers_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -44324,15 +46084,13 @@ def v1_diagnostic_packetcapture_stop_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_diagnostic_packetcapture_stop_post + ) -> V1DiagnosticSpeedtestProvidersGetResponse: + """v1_diagnostic_speedtest_providers_get - Stop packet capture + Get list of supported speedtest service providers :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_packetcapture_stop_post_request: (required) - :type v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -44355,9 +46113,8 @@ def v1_diagnostic_packetcapture_stop_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_packetcapture_stop_post_serialize( + _param = self._v1_diagnostic_speedtest_providers_get_serialize( authorization=authorization, - v1_diagnostic_packetcapture_stop_post_request=v1_diagnostic_packetcapture_stop_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -44365,7 +46122,7 @@ def v1_diagnostic_packetcapture_stop_post( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticSpeedtestProvidersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -44379,10 +46136,9 @@ def v1_diagnostic_packetcapture_stop_post( @validate_call - def v1_diagnostic_packetcapture_stop_post_with_http_info( + def v1_diagnostic_speedtest_providers_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -44395,15 +46151,13 @@ def v1_diagnostic_packetcapture_stop_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_diagnostic_packetcapture_stop_post + ) -> ApiResponse[V1DiagnosticSpeedtestProvidersGetResponse]: + """v1_diagnostic_speedtest_providers_get - Stop packet capture + Get list of supported speedtest service providers :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_packetcapture_stop_post_request: (required) - :type v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -44426,9 +46180,8 @@ def v1_diagnostic_packetcapture_stop_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_packetcapture_stop_post_serialize( + _param = self._v1_diagnostic_speedtest_providers_get_serialize( authorization=authorization, - v1_diagnostic_packetcapture_stop_post_request=v1_diagnostic_packetcapture_stop_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -44436,7 +46189,7 @@ def v1_diagnostic_packetcapture_stop_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticSpeedtestProvidersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -44450,10 +46203,9 @@ def v1_diagnostic_packetcapture_stop_post_with_http_info( @validate_call - def v1_diagnostic_packetcapture_stop_post_without_preload_content( + def v1_diagnostic_speedtest_providers_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -44467,14 +46219,12 @@ def v1_diagnostic_packetcapture_stop_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_packetcapture_stop_post + """v1_diagnostic_speedtest_providers_get - Stop packet capture + Get list of supported speedtest service providers :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_packetcapture_stop_post_request: (required) - :type v1_diagnostic_packetcapture_stop_post_request: V1DiagnosticPacketcaptureStopPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -44497,9 +46247,8 @@ def v1_diagnostic_packetcapture_stop_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_packetcapture_stop_post_serialize( + _param = self._v1_diagnostic_speedtest_providers_get_serialize( authorization=authorization, - v1_diagnostic_packetcapture_stop_post_request=v1_diagnostic_packetcapture_stop_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -44507,7 +46256,7 @@ def v1_diagnostic_packetcapture_stop_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticSpeedtestProvidersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -44516,10 +46265,9 @@ def v1_diagnostic_packetcapture_stop_post_without_preload_content( return response_data.response - def _v1_diagnostic_packetcapture_stop_post_serialize( + def _v1_diagnostic_speedtest_providers_get_serialize( self, authorization, - v1_diagnostic_packetcapture_stop_post_request, _request_auth, _content_type, _headers, @@ -44547,24 +46295,16 @@ def _v1_diagnostic_packetcapture_stop_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_diagnostic_packetcapture_stop_post_request is not None: - _body_params = v1_diagnostic_packetcapture_stop_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] = [ @@ -44572,8 +46312,8 @@ def _v1_diagnostic_packetcapture_stop_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/diagnostic/packetcapture-stop', + method='GET', + resource_path='/v1/diagnostic/speedtest-providers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -44590,10 +46330,10 @@ def _v1_diagnostic_packetcapture_stop_post_serialize( @validate_call - def v1_diagnostic_ping_post( + def v1_diagnostic_speedtest_report_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest, + v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -44606,15 +46346,15 @@ def v1_diagnostic_ping_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticPingPostResponse: - """v1_diagnostic_ping_post + ) -> V1DiagnosticSpeedtestReportPutResponse: + """v1_diagnostic_speedtest_report_put - Trigger a diagnostic test + Generate a speedtest history report :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_ping_post_request: (required) - :type v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest + :param v1_diagnostic_speedtest_report_put_request: (required) + :type v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -44637,9 +46377,9 @@ def v1_diagnostic_ping_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_ping_post_serialize( + _param = self._v1_diagnostic_speedtest_report_put_serialize( authorization=authorization, - v1_diagnostic_ping_post_request=v1_diagnostic_ping_post_request, + v1_diagnostic_speedtest_report_put_request=v1_diagnostic_speedtest_report_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -44647,7 +46387,7 @@ def v1_diagnostic_ping_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticPingPostResponse", + '200': "V1DiagnosticSpeedtestReportPutResponse", } response_data = self.api_client.call_api( *_param, @@ -44661,10 +46401,10 @@ def v1_diagnostic_ping_post( @validate_call - def v1_diagnostic_ping_post_with_http_info( + def v1_diagnostic_speedtest_report_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest, + v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -44677,15 +46417,15 @@ def v1_diagnostic_ping_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[V1DiagnosticPingPostResponse]: - """v1_diagnostic_ping_post + ) -> ApiResponse[V1DiagnosticSpeedtestReportPutResponse]: + """v1_diagnostic_speedtest_report_put - Trigger a diagnostic test + Generate a speedtest history report :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_ping_post_request: (required) - :type v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest + :param v1_diagnostic_speedtest_report_put_request: (required) + :type v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -44708,9 +46448,9 @@ def v1_diagnostic_ping_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_ping_post_serialize( + _param = self._v1_diagnostic_speedtest_report_put_serialize( authorization=authorization, - v1_diagnostic_ping_post_request=v1_diagnostic_ping_post_request, + v1_diagnostic_speedtest_report_put_request=v1_diagnostic_speedtest_report_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -44718,7 +46458,7 @@ def v1_diagnostic_ping_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticPingPostResponse", + '200': "V1DiagnosticSpeedtestReportPutResponse", } response_data = self.api_client.call_api( *_param, @@ -44732,10 +46472,10 @@ def v1_diagnostic_ping_post_with_http_info( @validate_call - def v1_diagnostic_ping_post_without_preload_content( + def v1_diagnostic_speedtest_report_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest, + v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -44749,14 +46489,14 @@ def v1_diagnostic_ping_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_ping_post + """v1_diagnostic_speedtest_report_put - Trigger a diagnostic test + Generate a speedtest history report :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_ping_post_request: (required) - :type v1_diagnostic_ping_post_request: V1DiagnosticPingPostRequest + :param v1_diagnostic_speedtest_report_put_request: (required) + :type v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -44779,9 +46519,9 @@ def v1_diagnostic_ping_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_ping_post_serialize( + _param = self._v1_diagnostic_speedtest_report_put_serialize( authorization=authorization, - v1_diagnostic_ping_post_request=v1_diagnostic_ping_post_request, + v1_diagnostic_speedtest_report_put_request=v1_diagnostic_speedtest_report_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -44789,7 +46529,7 @@ def v1_diagnostic_ping_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticPingPostResponse", + '200': "V1DiagnosticSpeedtestReportPutResponse", } response_data = self.api_client.call_api( *_param, @@ -44798,10 +46538,10 @@ def v1_diagnostic_ping_post_without_preload_content( return response_data.response - def _v1_diagnostic_ping_post_serialize( + def _v1_diagnostic_speedtest_report_put_serialize( self, authorization, - v1_diagnostic_ping_post_request, + v1_diagnostic_speedtest_report_put_request, _request_auth, _content_type, _headers, @@ -44829,8 +46569,8 @@ def _v1_diagnostic_ping_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_diagnostic_ping_post_request is not None: - _body_params = v1_diagnostic_ping_post_request + if v1_diagnostic_speedtest_report_put_request is not None: + _body_params = v1_diagnostic_speedtest_report_put_request # set the HTTP header `Accept` @@ -44861,8 +46601,8 @@ def _v1_diagnostic_ping_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/diagnostic/ping', + method='PUT', + resource_path='/v1/diagnostic/speedtest-report', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -44879,11 +46619,12 @@ def _v1_diagnostic_ping_post_serialize( @validate_call - def v1_diagnostic_ping_stop_token_post( + def v1_diagnostic_speedtest_servers_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - token: Annotated[StrictStr, Field(description="Identifier which was received in initial response")], - body: Dict[str, Any], + device_id: Annotated[int, Field(strict=True, ge=0, description="Unique identifier for a specific device")], + provider: Annotated[StrictStr, Field(description="supported provider for speedtest utility")], + vrf_name: Annotated[StrictStr, Field(description="Configured Wan Circuit Name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -44896,17 +46637,19 @@ def v1_diagnostic_ping_stop_token_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_diagnostic_ping_stop_token_post + ) -> V1DiagnosticSpeedtestServersGetResponse: + """v1_diagnostic_speedtest_servers_get - Stop ping session + Get list of servers for a provider :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param token: Identifier which was received in initial response (required) - :type token: str - :param body: (required) - :type body: object + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param provider: supported provider for speedtest utility (required) + :type provider: str + :param vrf_name: Configured Wan Circuit Name (required) + :type vrf_name: 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 @@ -44929,10 +46672,11 @@ def v1_diagnostic_ping_stop_token_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_ping_stop_token_post_serialize( + _param = self._v1_diagnostic_speedtest_servers_get_serialize( authorization=authorization, - token=token, - body=body, + device_id=device_id, + provider=provider, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -44940,7 +46684,7 @@ def v1_diagnostic_ping_stop_token_post( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticSpeedtestServersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -44954,11 +46698,12 @@ def v1_diagnostic_ping_stop_token_post( @validate_call - def v1_diagnostic_ping_stop_token_post_with_http_info( + def v1_diagnostic_speedtest_servers_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - token: Annotated[StrictStr, Field(description="Identifier which was received in initial response")], - body: Dict[str, Any], + device_id: Annotated[int, Field(strict=True, ge=0, description="Unique identifier for a specific device")], + provider: Annotated[StrictStr, Field(description="supported provider for speedtest utility")], + vrf_name: Annotated[StrictStr, Field(description="Configured Wan Circuit Name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -44971,17 +46716,19 @@ def v1_diagnostic_ping_stop_token_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_diagnostic_ping_stop_token_post + ) -> ApiResponse[V1DiagnosticSpeedtestServersGetResponse]: + """v1_diagnostic_speedtest_servers_get - Stop ping session + Get list of servers for a provider :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param token: Identifier which was received in initial response (required) - :type token: str - :param body: (required) - :type body: object + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param provider: supported provider for speedtest utility (required) + :type provider: str + :param vrf_name: Configured Wan Circuit Name (required) + :type vrf_name: 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 @@ -45004,10 +46751,11 @@ def v1_diagnostic_ping_stop_token_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_ping_stop_token_post_serialize( + _param = self._v1_diagnostic_speedtest_servers_get_serialize( authorization=authorization, - token=token, - body=body, + device_id=device_id, + provider=provider, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -45015,7 +46763,7 @@ def v1_diagnostic_ping_stop_token_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticSpeedtestServersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -45029,11 +46777,12 @@ def v1_diagnostic_ping_stop_token_post_with_http_info( @validate_call - def v1_diagnostic_ping_stop_token_post_without_preload_content( + def v1_diagnostic_speedtest_servers_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - token: Annotated[StrictStr, Field(description="Identifier which was received in initial response")], - body: Dict[str, Any], + device_id: Annotated[int, Field(strict=True, ge=0, description="Unique identifier for a specific device")], + provider: Annotated[StrictStr, Field(description="supported provider for speedtest utility")], + vrf_name: Annotated[StrictStr, Field(description="Configured Wan Circuit Name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -45047,16 +46796,18 @@ def v1_diagnostic_ping_stop_token_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_ping_stop_token_post + """v1_diagnostic_speedtest_servers_get - Stop ping session + Get list of servers for a provider :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param token: Identifier which was received in initial response (required) - :type token: str - :param body: (required) - :type body: object + :param device_id: Unique identifier for a specific device (required) + :type device_id: int + :param provider: supported provider for speedtest utility (required) + :type provider: str + :param vrf_name: Configured Wan Circuit Name (required) + :type vrf_name: 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 @@ -45079,10 +46830,11 @@ def v1_diagnostic_ping_stop_token_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_ping_stop_token_post_serialize( + _param = self._v1_diagnostic_speedtest_servers_get_serialize( authorization=authorization, - token=token, - body=body, + device_id=device_id, + provider=provider, + vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -45090,7 +46842,7 @@ def v1_diagnostic_ping_stop_token_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticSpeedtestServersGetResponse", } response_data = self.api_client.call_api( *_param, @@ -45099,11 +46851,12 @@ def v1_diagnostic_ping_stop_token_post_without_preload_content( return response_data.response - def _v1_diagnostic_ping_stop_token_post_serialize( + def _v1_diagnostic_speedtest_servers_get_serialize( self, authorization, - token, - body, + device_id, + provider, + vrf_name, _request_auth, _content_type, _headers, @@ -45125,32 +46878,34 @@ def _v1_diagnostic_ping_stop_token_post_serialize( _body_params: Optional[bytes] = None # process the path parameters - if token is not None: - _path_params['token'] = token # process the query parameters + if device_id is not None: + + _query_params.append(('deviceId', device_id)) + + if provider is not None: + + _query_params.append(('provider', provider)) + + if vrf_name is not None: + + _query_params.append(('vrfName', vrf_name)) + # 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] = [ @@ -45158,8 +46913,8 @@ def _v1_diagnostic_ping_stop_token_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/diagnostic/ping-stop/{token}', + method='GET', + resource_path='/v1/diagnostic/speedtest-servers', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -45176,11 +46931,10 @@ def _v1_diagnostic_ping_stop_token_post_serialize( @validate_call - def v1_diagnostic_reboot_device_id_put( + def v1_diagnostic_traceroute_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[int, Field(strict=True, ge=0, description="Valid Provisioned device ID")], - v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest, + v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -45193,17 +46947,15 @@ def v1_diagnostic_reboot_device_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_diagnostic_reboot_device_id_put + ) -> V1DiagnosticTraceroutePostResponse: + """v1_diagnostic_traceroute_post - Trigger a device reboot + Trigger a diagnostic test :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid Provisioned device ID (required) - :type device_id: int - :param v1_diagnostic_reboot_device_id_put_request: (required) - :type v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest + :param v1_diagnostic_traceroute_post_request: (required) + :type v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -45226,10 +46978,9 @@ def v1_diagnostic_reboot_device_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_reboot_device_id_put_serialize( + _param = self._v1_diagnostic_traceroute_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_reboot_device_id_put_request=v1_diagnostic_reboot_device_id_put_request, + v1_diagnostic_traceroute_post_request=v1_diagnostic_traceroute_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -45237,7 +46988,7 @@ def v1_diagnostic_reboot_device_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticTraceroutePostResponse", } response_data = self.api_client.call_api( *_param, @@ -45251,11 +47002,10 @@ def v1_diagnostic_reboot_device_id_put( @validate_call - def v1_diagnostic_reboot_device_id_put_with_http_info( + def v1_diagnostic_traceroute_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[int, Field(strict=True, ge=0, description="Valid Provisioned device ID")], - v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest, + v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -45268,17 +47018,15 @@ def v1_diagnostic_reboot_device_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[None]: - """v1_diagnostic_reboot_device_id_put + ) -> ApiResponse[V1DiagnosticTraceroutePostResponse]: + """v1_diagnostic_traceroute_post - Trigger a device reboot + Trigger a diagnostic test :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid Provisioned device ID (required) - :type device_id: int - :param v1_diagnostic_reboot_device_id_put_request: (required) - :type v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest + :param v1_diagnostic_traceroute_post_request: (required) + :type v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -45301,10 +47049,9 @@ def v1_diagnostic_reboot_device_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_reboot_device_id_put_serialize( + _param = self._v1_diagnostic_traceroute_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_reboot_device_id_put_request=v1_diagnostic_reboot_device_id_put_request, + v1_diagnostic_traceroute_post_request=v1_diagnostic_traceroute_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -45312,7 +47059,7 @@ def v1_diagnostic_reboot_device_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticTraceroutePostResponse", } response_data = self.api_client.call_api( *_param, @@ -45326,11 +47073,10 @@ def v1_diagnostic_reboot_device_id_put_with_http_info( @validate_call - def v1_diagnostic_reboot_device_id_put_without_preload_content( + def v1_diagnostic_traceroute_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[int, Field(strict=True, ge=0, description="Valid Provisioned device ID")], - v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest, + v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -45344,16 +47090,14 @@ def v1_diagnostic_reboot_device_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_reboot_device_id_put + """v1_diagnostic_traceroute_post - Trigger a device reboot + Trigger a diagnostic test :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Valid Provisioned device ID (required) - :type device_id: int - :param v1_diagnostic_reboot_device_id_put_request: (required) - :type v1_diagnostic_reboot_device_id_put_request: V1DiagnosticRebootDeviceIdPutRequest + :param v1_diagnostic_traceroute_post_request: (required) + :type v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -45376,10 +47120,9 @@ def v1_diagnostic_reboot_device_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_reboot_device_id_put_serialize( + _param = self._v1_diagnostic_traceroute_post_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_reboot_device_id_put_request=v1_diagnostic_reboot_device_id_put_request, + v1_diagnostic_traceroute_post_request=v1_diagnostic_traceroute_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -45387,7 +47130,7 @@ def v1_diagnostic_reboot_device_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1DiagnosticTraceroutePostResponse", } response_data = self.api_client.call_api( *_param, @@ -45396,11 +47139,10 @@ def v1_diagnostic_reboot_device_id_put_without_preload_content( return response_data.response - def _v1_diagnostic_reboot_device_id_put_serialize( + def _v1_diagnostic_traceroute_post_serialize( self, authorization, - device_id, - v1_diagnostic_reboot_device_id_put_request, + v1_diagnostic_traceroute_post_request, _request_auth, _content_type, _headers, @@ -45422,18 +47164,23 @@ def _v1_diagnostic_reboot_device_id_put_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_diagnostic_reboot_device_id_put_request is not None: - _body_params = v1_diagnostic_reboot_device_id_put_request + if v1_diagnostic_traceroute_post_request is not None: + _body_params = v1_diagnostic_traceroute_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: @@ -45455,8 +47202,8 @@ def _v1_diagnostic_reboot_device_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/diagnostic/reboot/{deviceId}', + method='POST', + resource_path='/v1/diagnostic/traceroute', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -45473,11 +47220,10 @@ def _v1_diagnostic_reboot_device_id_put_serialize( @validate_call - def v1_diagnostic_reset_ipsec_session_device_id_put( + def v1_edges_hardware_assigned_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest, + enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -45490,17 +47236,14 @@ def v1_diagnostic_reset_ipsec_session_device_id_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_diagnostic_reset_ipsec_session_device_id_put + ) -> V1EdgesHardwareAssignedGetResponse: + """v1_edges_hardware_assigned_get - Reset IPSec sessions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_reset_ipsec_session_device_id_put_request: (required) - :type v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest + :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 @@ -45523,10 +47266,9 @@ def v1_diagnostic_reset_ipsec_session_device_id_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_reset_ipsec_session_device_id_put_serialize( + _param = self._v1_edges_hardware_assigned_get_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_reset_ipsec_session_device_id_put_request=v1_diagnostic_reset_ipsec_session_device_id_put_request, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -45534,7 +47276,7 @@ def v1_diagnostic_reset_ipsec_session_device_id_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1EdgesHardwareAssignedGetResponse", } response_data = self.api_client.call_api( *_param, @@ -45548,11 +47290,10 @@ def v1_diagnostic_reset_ipsec_session_device_id_put( @validate_call - def v1_diagnostic_reset_ipsec_session_device_id_put_with_http_info( + def v1_edges_hardware_assigned_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest, + enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -45565,17 +47306,14 @@ def v1_diagnostic_reset_ipsec_session_device_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[None]: - """v1_diagnostic_reset_ipsec_session_device_id_put + ) -> ApiResponse[V1EdgesHardwareAssignedGetResponse]: + """v1_edges_hardware_assigned_get - Reset IPSec sessions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_reset_ipsec_session_device_id_put_request: (required) - :type v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest + :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 @@ -45598,10 +47336,9 @@ def v1_diagnostic_reset_ipsec_session_device_id_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_reset_ipsec_session_device_id_put_serialize( + _param = self._v1_edges_hardware_assigned_get_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_reset_ipsec_session_device_id_put_request=v1_diagnostic_reset_ipsec_session_device_id_put_request, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -45609,7 +47346,7 @@ def v1_diagnostic_reset_ipsec_session_device_id_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1EdgesHardwareAssignedGetResponse", } response_data = self.api_client.call_api( *_param, @@ -45623,11 +47360,10 @@ def v1_diagnostic_reset_ipsec_session_device_id_put_with_http_info( @validate_call - def v1_diagnostic_reset_ipsec_session_device_id_put_without_preload_content( + def v1_edges_hardware_assigned_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[StrictInt, Field(description="Unique identifier for a specific device")], - v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest, + enterprise_id: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -45641,16 +47377,13 @@ def v1_diagnostic_reset_ipsec_session_device_id_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_reset_ipsec_session_device_id_put + """v1_edges_hardware_assigned_get - Reset IPSec sessions :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param v1_diagnostic_reset_ipsec_session_device_id_put_request: (required) - :type v1_diagnostic_reset_ipsec_session_device_id_put_request: V1DiagnosticResetIpsecSessionDeviceIdPutRequest + :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 @@ -45673,10 +47406,9 @@ def v1_diagnostic_reset_ipsec_session_device_id_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_reset_ipsec_session_device_id_put_serialize( + _param = self._v1_edges_hardware_assigned_get_serialize( authorization=authorization, - device_id=device_id, - v1_diagnostic_reset_ipsec_session_device_id_put_request=v1_diagnostic_reset_ipsec_session_device_id_put_request, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -45684,7 +47416,7 @@ def v1_diagnostic_reset_ipsec_session_device_id_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1EdgesHardwareAssignedGetResponse", } response_data = self.api_client.call_api( *_param, @@ -45693,11 +47425,10 @@ def v1_diagnostic_reset_ipsec_session_device_id_put_without_preload_content( return response_data.response - def _v1_diagnostic_reset_ipsec_session_device_id_put_serialize( + def _v1_edges_hardware_assigned_get_serialize( self, authorization, - device_id, - v1_diagnostic_reset_ipsec_session_device_id_put_request, + enterprise_id, _request_auth, _content_type, _headers, @@ -45719,32 +47450,26 @@ def _v1_diagnostic_reset_ipsec_session_device_id_put_serialize( _body_params: Optional[bytes] = None # process the path parameters - if device_id is not None: - _path_params['deviceId'] = device_id # process the query parameters + if enterprise_id is not None: + + _query_params.append(('enterpriseId', enterprise_id)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_diagnostic_reset_ipsec_session_device_id_put_request is not None: - _body_params = v1_diagnostic_reset_ipsec_session_device_id_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] = [ @@ -45752,8 +47477,8 @@ def _v1_diagnostic_reset_ipsec_session_device_id_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/diagnostic/reset-ipsec-session/{deviceId}', + method='GET', + resource_path='/v1/edges-hardware/assigned', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -45770,10 +47495,9 @@ def _v1_diagnostic_reset_ipsec_session_device_id_put_serialize( @validate_call - def v1_diagnostic_speedtest_post( + def v1_edges_hardware_unassigned_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -45786,15 +47510,12 @@ def v1_diagnostic_speedtest_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticSpeedtestPostResponse: - """v1_diagnostic_speedtest_post + ) -> V1EdgesHardwareUnassignedGetResponse: + """v1_edges_hardware_unassigned_get - Trigger Speedtest utility :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_speedtest_post_request: (required) - :type v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -45817,9 +47538,8 @@ def v1_diagnostic_speedtest_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_post_serialize( + _param = self._v1_edges_hardware_unassigned_get_serialize( authorization=authorization, - v1_diagnostic_speedtest_post_request=v1_diagnostic_speedtest_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -45827,7 +47547,7 @@ def v1_diagnostic_speedtest_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestPostResponse", + '200': "V1EdgesHardwareUnassignedGetResponse", } response_data = self.api_client.call_api( *_param, @@ -45841,10 +47561,9 @@ def v1_diagnostic_speedtest_post( @validate_call - def v1_diagnostic_speedtest_post_with_http_info( + def v1_edges_hardware_unassigned_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -45857,15 +47576,12 @@ def v1_diagnostic_speedtest_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[V1DiagnosticSpeedtestPostResponse]: - """v1_diagnostic_speedtest_post + ) -> ApiResponse[V1EdgesHardwareUnassignedGetResponse]: + """v1_edges_hardware_unassigned_get - Trigger Speedtest utility :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_speedtest_post_request: (required) - :type v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -45888,9 +47604,8 @@ def v1_diagnostic_speedtest_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_post_serialize( + _param = self._v1_edges_hardware_unassigned_get_serialize( authorization=authorization, - v1_diagnostic_speedtest_post_request=v1_diagnostic_speedtest_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -45898,7 +47613,7 @@ def v1_diagnostic_speedtest_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestPostResponse", + '200': "V1EdgesHardwareUnassignedGetResponse", } response_data = self.api_client.call_api( *_param, @@ -45912,10 +47627,9 @@ def v1_diagnostic_speedtest_post_with_http_info( @validate_call - def v1_diagnostic_speedtest_post_without_preload_content( + def v1_edges_hardware_unassigned_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -45929,14 +47643,11 @@ def v1_diagnostic_speedtest_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_speedtest_post + """v1_edges_hardware_unassigned_get - Trigger Speedtest utility :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_speedtest_post_request: (required) - :type v1_diagnostic_speedtest_post_request: V1DiagnosticSpeedtestPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -45959,9 +47670,8 @@ def v1_diagnostic_speedtest_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_post_serialize( + _param = self._v1_edges_hardware_unassigned_get_serialize( authorization=authorization, - v1_diagnostic_speedtest_post_request=v1_diagnostic_speedtest_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -45969,7 +47679,7 @@ def v1_diagnostic_speedtest_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestPostResponse", + '200': "V1EdgesHardwareUnassignedGetResponse", } response_data = self.api_client.call_api( *_param, @@ -45978,10 +47688,9 @@ def v1_diagnostic_speedtest_post_without_preload_content( return response_data.response - def _v1_diagnostic_speedtest_post_serialize( + def _v1_edges_hardware_unassigned_get_serialize( self, authorization, - v1_diagnostic_speedtest_post_request, _request_auth, _content_type, _headers, @@ -46009,8 +47718,6 @@ def _v1_diagnostic_speedtest_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_diagnostic_speedtest_post_request is not None: - _body_params = v1_diagnostic_speedtest_post_request # set the HTTP header `Accept` @@ -46021,19 +47728,6 @@ def _v1_diagnostic_speedtest_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] = [ @@ -46041,8 +47735,8 @@ def _v1_diagnostic_speedtest_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/diagnostic/speedtest', + method='GET', + resource_path='/v1/edges-hardware/unassigned', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -46059,9 +47753,12 @@ def _v1_diagnostic_speedtest_post_serialize( @validate_call - def v1_diagnostic_speedtest_providers_get( + def v1_edges_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: Optional[StrictInt] = None, + is_requested: Optional[StrictBool] = None, + upgrade_summary: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -46074,13 +47771,18 @@ def v1_diagnostic_speedtest_providers_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticSpeedtestProvidersGetResponse: - """v1_diagnostic_speedtest_providers_get + ) -> V1EdgesSummaryGetResponse: + """v1_edges_summary_get - Get list of supported speedtest service providers :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: + :type enterprise_id: int + :param is_requested: + :type is_requested: bool + :param upgrade_summary: + :type upgrade_summary: 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 @@ -46103,8 +47805,11 @@ def v1_diagnostic_speedtest_providers_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_providers_get_serialize( + _param = self._v1_edges_summary_get_serialize( authorization=authorization, + enterprise_id=enterprise_id, + is_requested=is_requested, + upgrade_summary=upgrade_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -46112,7 +47817,7 @@ def v1_diagnostic_speedtest_providers_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestProvidersGetResponse", + '200': "V1EdgesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -46126,9 +47831,12 @@ def v1_diagnostic_speedtest_providers_get( @validate_call - def v1_diagnostic_speedtest_providers_get_with_http_info( + def v1_edges_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: Optional[StrictInt] = None, + is_requested: Optional[StrictBool] = None, + upgrade_summary: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -46141,13 +47849,18 @@ def v1_diagnostic_speedtest_providers_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[V1DiagnosticSpeedtestProvidersGetResponse]: - """v1_diagnostic_speedtest_providers_get + ) -> ApiResponse[V1EdgesSummaryGetResponse]: + """v1_edges_summary_get - Get list of supported speedtest service providers :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: + :type enterprise_id: int + :param is_requested: + :type is_requested: bool + :param upgrade_summary: + :type upgrade_summary: 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 @@ -46170,8 +47883,11 @@ def v1_diagnostic_speedtest_providers_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_providers_get_serialize( + _param = self._v1_edges_summary_get_serialize( authorization=authorization, + enterprise_id=enterprise_id, + is_requested=is_requested, + upgrade_summary=upgrade_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -46179,7 +47895,7 @@ def v1_diagnostic_speedtest_providers_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestProvidersGetResponse", + '200': "V1EdgesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -46193,9 +47909,12 @@ def v1_diagnostic_speedtest_providers_get_with_http_info( @validate_call - def v1_diagnostic_speedtest_providers_get_without_preload_content( + def v1_edges_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: Optional[StrictInt] = None, + is_requested: Optional[StrictBool] = None, + upgrade_summary: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -46209,12 +47928,17 @@ def v1_diagnostic_speedtest_providers_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_speedtest_providers_get + """v1_edges_summary_get - Get list of supported speedtest service providers :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: + :type enterprise_id: int + :param is_requested: + :type is_requested: bool + :param upgrade_summary: + :type upgrade_summary: 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 @@ -46237,8 +47961,11 @@ def v1_diagnostic_speedtest_providers_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_providers_get_serialize( + _param = self._v1_edges_summary_get_serialize( authorization=authorization, + enterprise_id=enterprise_id, + is_requested=is_requested, + upgrade_summary=upgrade_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -46246,7 +47973,7 @@ def v1_diagnostic_speedtest_providers_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestProvidersGetResponse", + '200': "V1EdgesSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -46255,9 +47982,12 @@ def v1_diagnostic_speedtest_providers_get_without_preload_content( return response_data.response - def _v1_diagnostic_speedtest_providers_get_serialize( + def _v1_edges_summary_get_serialize( self, authorization, + enterprise_id, + is_requested, + upgrade_summary, _request_auth, _content_type, _headers, @@ -46280,6 +48010,18 @@ def _v1_diagnostic_speedtest_providers_get_serialize( # process the path parameters # process the query parameters + if enterprise_id is not None: + + _query_params.append(('enterpriseId', enterprise_id)) + + if is_requested is not None: + + _query_params.append(('isRequested', is_requested)) + + if upgrade_summary is not None: + + _query_params.append(('upgradeSummary', upgrade_summary)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -46303,7 +48045,7 @@ def _v1_diagnostic_speedtest_providers_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/diagnostic/speedtest-providers', + resource_path='/v1/edges-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -46320,10 +48062,10 @@ def _v1_diagnostic_speedtest_providers_get_serialize( @validate_call - def v1_diagnostic_speedtest_report_put( + def v1_edges_summary_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest, + v1_edges_summary_post_request: V1EdgesSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -46336,15 +48078,14 @@ def v1_diagnostic_speedtest_report_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticSpeedtestReportPutResponse: - """v1_diagnostic_speedtest_report_put + ) -> V1EdgesSummaryPostResponse: + """v1_edges_summary_post - Generate a speedtest history report :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_speedtest_report_put_request: (required) - :type v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest + :param v1_edges_summary_post_request: (required) + :type v1_edges_summary_post_request: V1EdgesSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -46367,9 +48108,9 @@ def v1_diagnostic_speedtest_report_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_report_put_serialize( + _param = self._v1_edges_summary_post_serialize( authorization=authorization, - v1_diagnostic_speedtest_report_put_request=v1_diagnostic_speedtest_report_put_request, + v1_edges_summary_post_request=v1_edges_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -46377,7 +48118,7 @@ def v1_diagnostic_speedtest_report_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestReportPutResponse", + '200': "V1EdgesSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -46391,10 +48132,10 @@ def v1_diagnostic_speedtest_report_put( @validate_call - def v1_diagnostic_speedtest_report_put_with_http_info( + def v1_edges_summary_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest, + v1_edges_summary_post_request: V1EdgesSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -46407,15 +48148,14 @@ def v1_diagnostic_speedtest_report_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[V1DiagnosticSpeedtestReportPutResponse]: - """v1_diagnostic_speedtest_report_put + ) -> ApiResponse[V1EdgesSummaryPostResponse]: + """v1_edges_summary_post - Generate a speedtest history report :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_speedtest_report_put_request: (required) - :type v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest + :param v1_edges_summary_post_request: (required) + :type v1_edges_summary_post_request: V1EdgesSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -46438,9 +48178,9 @@ def v1_diagnostic_speedtest_report_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_report_put_serialize( + _param = self._v1_edges_summary_post_serialize( authorization=authorization, - v1_diagnostic_speedtest_report_put_request=v1_diagnostic_speedtest_report_put_request, + v1_edges_summary_post_request=v1_edges_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -46448,7 +48188,7 @@ def v1_diagnostic_speedtest_report_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestReportPutResponse", + '200': "V1EdgesSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -46462,10 +48202,10 @@ def v1_diagnostic_speedtest_report_put_with_http_info( @validate_call - def v1_diagnostic_speedtest_report_put_without_preload_content( + def v1_edges_summary_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest, + v1_edges_summary_post_request: V1EdgesSummaryPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -46479,14 +48219,13 @@ def v1_diagnostic_speedtest_report_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_speedtest_report_put + """v1_edges_summary_post - Generate a speedtest history report :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_speedtest_report_put_request: (required) - :type v1_diagnostic_speedtest_report_put_request: V1DiagnosticSpeedtestReportPutRequest + :param v1_edges_summary_post_request: (required) + :type v1_edges_summary_post_request: V1EdgesSummaryPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -46509,9 +48248,9 @@ def v1_diagnostic_speedtest_report_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_report_put_serialize( + _param = self._v1_edges_summary_post_serialize( authorization=authorization, - v1_diagnostic_speedtest_report_put_request=v1_diagnostic_speedtest_report_put_request, + v1_edges_summary_post_request=v1_edges_summary_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -46519,7 +48258,7 @@ def v1_diagnostic_speedtest_report_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestReportPutResponse", + '200': "V1EdgesSummaryPostResponse", } response_data = self.api_client.call_api( *_param, @@ -46528,10 +48267,10 @@ def v1_diagnostic_speedtest_report_put_without_preload_content( return response_data.response - def _v1_diagnostic_speedtest_report_put_serialize( + def _v1_edges_summary_post_serialize( self, authorization, - v1_diagnostic_speedtest_report_put_request, + v1_edges_summary_post_request, _request_auth, _content_type, _headers, @@ -46559,8 +48298,8 @@ def _v1_diagnostic_speedtest_report_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_diagnostic_speedtest_report_put_request is not None: - _body_params = v1_diagnostic_speedtest_report_put_request + if v1_edges_summary_post_request is not None: + _body_params = v1_edges_summary_post_request # set the HTTP header `Accept` @@ -46591,8 +48330,8 @@ def _v1_diagnostic_speedtest_report_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/diagnostic/speedtest-report', + method='POST', + resource_path='/v1/edges-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -46609,12 +48348,9 @@ def _v1_diagnostic_speedtest_report_put_serialize( @validate_call - def v1_diagnostic_speedtest_servers_get( + def v1_enterprise_allocation_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[int, Field(strict=True, ge=0, description="Unique identifier for a specific device")], - provider: Annotated[StrictStr, Field(description="supported provider for speedtest utility")], - vrf_name: Annotated[StrictStr, Field(description="Configured Wan Circuit Name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -46627,19 +48363,13 @@ def v1_diagnostic_speedtest_servers_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticSpeedtestServersGetResponse: - """v1_diagnostic_speedtest_servers_get + ) -> V1EnterpriseAllocationGetResponse: + """v1_enterprise_allocation_get - Get list of servers for a provider + Get all allocation for the given enterprise on a given month :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param provider: supported provider for speedtest utility (required) - :type provider: str - :param vrf_name: Configured Wan Circuit Name (required) - :type vrf_name: 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 @@ -46662,11 +48392,8 @@ def v1_diagnostic_speedtest_servers_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_servers_get_serialize( + _param = self._v1_enterprise_allocation_get_serialize( authorization=authorization, - device_id=device_id, - provider=provider, - vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -46674,7 +48401,7 @@ def v1_diagnostic_speedtest_servers_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestServersGetResponse", + '200': "V1EnterpriseAllocationGetResponse", } response_data = self.api_client.call_api( *_param, @@ -46688,12 +48415,9 @@ def v1_diagnostic_speedtest_servers_get( @validate_call - def v1_diagnostic_speedtest_servers_get_with_http_info( + def v1_enterprise_allocation_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[int, Field(strict=True, ge=0, description="Unique identifier for a specific device")], - provider: Annotated[StrictStr, Field(description="supported provider for speedtest utility")], - vrf_name: Annotated[StrictStr, Field(description="Configured Wan Circuit Name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -46706,19 +48430,13 @@ def v1_diagnostic_speedtest_servers_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[V1DiagnosticSpeedtestServersGetResponse]: - """v1_diagnostic_speedtest_servers_get + ) -> ApiResponse[V1EnterpriseAllocationGetResponse]: + """v1_enterprise_allocation_get - Get list of servers for a provider + Get all allocation for the given enterprise on a given month :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param provider: supported provider for speedtest utility (required) - :type provider: str - :param vrf_name: Configured Wan Circuit Name (required) - :type vrf_name: 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 @@ -46741,11 +48459,8 @@ def v1_diagnostic_speedtest_servers_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_servers_get_serialize( + _param = self._v1_enterprise_allocation_get_serialize( authorization=authorization, - device_id=device_id, - provider=provider, - vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -46753,7 +48468,7 @@ def v1_diagnostic_speedtest_servers_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestServersGetResponse", + '200': "V1EnterpriseAllocationGetResponse", } response_data = self.api_client.call_api( *_param, @@ -46767,12 +48482,9 @@ def v1_diagnostic_speedtest_servers_get_with_http_info( @validate_call - def v1_diagnostic_speedtest_servers_get_without_preload_content( + def v1_enterprise_allocation_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - device_id: Annotated[int, Field(strict=True, ge=0, description="Unique identifier for a specific device")], - provider: Annotated[StrictStr, Field(description="supported provider for speedtest utility")], - vrf_name: Annotated[StrictStr, Field(description="Configured Wan Circuit Name")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -46786,18 +48498,12 @@ def v1_diagnostic_speedtest_servers_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_speedtest_servers_get + """v1_enterprise_allocation_get - Get list of servers for a provider + Get all allocation for the given enterprise on a given month :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param device_id: Unique identifier for a specific device (required) - :type device_id: int - :param provider: supported provider for speedtest utility (required) - :type provider: str - :param vrf_name: Configured Wan Circuit Name (required) - :type vrf_name: 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 @@ -46820,11 +48526,8 @@ def v1_diagnostic_speedtest_servers_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_speedtest_servers_get_serialize( + _param = self._v1_enterprise_allocation_get_serialize( authorization=authorization, - device_id=device_id, - provider=provider, - vrf_name=vrf_name, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -46832,7 +48535,7 @@ def v1_diagnostic_speedtest_servers_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticSpeedtestServersGetResponse", + '200': "V1EnterpriseAllocationGetResponse", } response_data = self.api_client.call_api( *_param, @@ -46841,12 +48544,9 @@ def v1_diagnostic_speedtest_servers_get_without_preload_content( return response_data.response - def _v1_diagnostic_speedtest_servers_get_serialize( + def _v1_enterprise_allocation_get_serialize( self, authorization, - device_id, - provider, - vrf_name, _request_auth, _content_type, _headers, @@ -46869,18 +48569,6 @@ def _v1_diagnostic_speedtest_servers_get_serialize( # process the path parameters # process the query parameters - if device_id is not None: - - _query_params.append(('deviceId', device_id)) - - if provider is not None: - - _query_params.append(('provider', provider)) - - if vrf_name is not None: - - _query_params.append(('vrfName', vrf_name)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -46904,7 +48592,7 @@ def _v1_diagnostic_speedtest_servers_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/diagnostic/speedtest-servers', + resource_path='/v1/enterprise/allocation', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -46921,10 +48609,9 @@ def _v1_diagnostic_speedtest_servers_get_serialize( @validate_call - def v1_diagnostic_traceroute_post( + def v1_enterprise_configuration_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -46937,15 +48624,13 @@ def v1_diagnostic_traceroute_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1DiagnosticTraceroutePostResponse: - """v1_diagnostic_traceroute_post + ) -> V1EnterpriseConfigurationGetResponse: + """v1_enterprise_configuration_get - Trigger a diagnostic test + Get enterprise-level information relevant to device configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_traceroute_post_request: (required) - :type v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -46968,9 +48653,8 @@ def v1_diagnostic_traceroute_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_traceroute_post_serialize( + _param = self._v1_enterprise_configuration_get_serialize( authorization=authorization, - v1_diagnostic_traceroute_post_request=v1_diagnostic_traceroute_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -46978,7 +48662,7 @@ def v1_diagnostic_traceroute_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticTraceroutePostResponse", + '200': "V1EnterpriseConfigurationGetResponse", } response_data = self.api_client.call_api( *_param, @@ -46992,10 +48676,9 @@ def v1_diagnostic_traceroute_post( @validate_call - def v1_diagnostic_traceroute_post_with_http_info( + def v1_enterprise_configuration_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -47008,15 +48691,13 @@ def v1_diagnostic_traceroute_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[V1DiagnosticTraceroutePostResponse]: - """v1_diagnostic_traceroute_post + ) -> ApiResponse[V1EnterpriseConfigurationGetResponse]: + """v1_enterprise_configuration_get - Trigger a diagnostic test + Get enterprise-level information relevant to device configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_traceroute_post_request: (required) - :type v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -47039,9 +48720,8 @@ def v1_diagnostic_traceroute_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_traceroute_post_serialize( + _param = self._v1_enterprise_configuration_get_serialize( authorization=authorization, - v1_diagnostic_traceroute_post_request=v1_diagnostic_traceroute_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -47049,7 +48729,7 @@ def v1_diagnostic_traceroute_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticTraceroutePostResponse", + '200': "V1EnterpriseConfigurationGetResponse", } response_data = self.api_client.call_api( *_param, @@ -47063,10 +48743,9 @@ def v1_diagnostic_traceroute_post_with_http_info( @validate_call - def v1_diagnostic_traceroute_post_without_preload_content( + def v1_enterprise_configuration_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -47080,14 +48759,12 @@ def v1_diagnostic_traceroute_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_diagnostic_traceroute_post + """v1_enterprise_configuration_get - Trigger a diagnostic test + Get enterprise-level information relevant to device configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_diagnostic_traceroute_post_request: (required) - :type v1_diagnostic_traceroute_post_request: V1DiagnosticTraceroutePostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -47110,9 +48787,8 @@ def v1_diagnostic_traceroute_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_diagnostic_traceroute_post_serialize( + _param = self._v1_enterprise_configuration_get_serialize( authorization=authorization, - v1_diagnostic_traceroute_post_request=v1_diagnostic_traceroute_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -47120,7 +48796,7 @@ def v1_diagnostic_traceroute_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1DiagnosticTraceroutePostResponse", + '200': "V1EnterpriseConfigurationGetResponse", } response_data = self.api_client.call_api( *_param, @@ -47129,10 +48805,9 @@ def v1_diagnostic_traceroute_post_without_preload_content( return response_data.response - def _v1_diagnostic_traceroute_post_serialize( + def _v1_enterprise_configuration_get_serialize( self, authorization, - v1_diagnostic_traceroute_post_request, _request_auth, _content_type, _headers, @@ -47160,8 +48835,6 @@ def _v1_diagnostic_traceroute_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_diagnostic_traceroute_post_request is not None: - _body_params = v1_diagnostic_traceroute_post_request # set the HTTP header `Accept` @@ -47172,19 +48845,6 @@ def _v1_diagnostic_traceroute_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] = [ @@ -47192,8 +48852,8 @@ def _v1_diagnostic_traceroute_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/diagnostic/traceroute', + method='GET', + resource_path='/v1/enterprise/configuration', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -47210,10 +48870,10 @@ def _v1_diagnostic_traceroute_post_serialize( @validate_call - def v1_edges_hardware_assigned_get( + def v1_enterprise_configuration_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Optional[StrictInt] = None, + v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -47226,14 +48886,15 @@ def v1_edges_hardware_assigned_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1EdgesHardwareAssignedGetResponse: - """v1_edges_hardware_assigned_get + ) -> object: + """v1_enterprise_configuration_put + Update enterprise-level information relevant to device configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: - :type enterprise_id: int + :param v1_enterprise_configuration_put_request: (required) + :type v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -47256,9 +48917,9 @@ def v1_edges_hardware_assigned_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_hardware_assigned_get_serialize( + _param = self._v1_enterprise_configuration_put_serialize( authorization=authorization, - enterprise_id=enterprise_id, + v1_enterprise_configuration_put_request=v1_enterprise_configuration_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -47266,7 +48927,7 @@ def v1_edges_hardware_assigned_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesHardwareAssignedGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -47280,10 +48941,10 @@ def v1_edges_hardware_assigned_get( @validate_call - def v1_edges_hardware_assigned_get_with_http_info( + def v1_enterprise_configuration_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Optional[StrictInt] = None, + v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -47296,14 +48957,15 @@ def v1_edges_hardware_assigned_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[V1EdgesHardwareAssignedGetResponse]: - """v1_edges_hardware_assigned_get + ) -> ApiResponse[object]: + """v1_enterprise_configuration_put + Update enterprise-level information relevant to device configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: - :type enterprise_id: int + :param v1_enterprise_configuration_put_request: (required) + :type v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -47326,9 +48988,9 @@ def v1_edges_hardware_assigned_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_hardware_assigned_get_serialize( + _param = self._v1_enterprise_configuration_put_serialize( authorization=authorization, - enterprise_id=enterprise_id, + v1_enterprise_configuration_put_request=v1_enterprise_configuration_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -47336,7 +48998,7 @@ def v1_edges_hardware_assigned_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesHardwareAssignedGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -47350,10 +49012,10 @@ def v1_edges_hardware_assigned_get_with_http_info( @validate_call - def v1_edges_hardware_assigned_get_without_preload_content( + def v1_enterprise_configuration_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Optional[StrictInt] = None, + v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -47367,13 +49029,14 @@ def v1_edges_hardware_assigned_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_edges_hardware_assigned_get + """v1_enterprise_configuration_put + Update enterprise-level information relevant to device configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: - :type enterprise_id: int + :param v1_enterprise_configuration_put_request: (required) + :type v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -47396,9 +49059,9 @@ def v1_edges_hardware_assigned_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_hardware_assigned_get_serialize( + _param = self._v1_enterprise_configuration_put_serialize( authorization=authorization, - enterprise_id=enterprise_id, + v1_enterprise_configuration_put_request=v1_enterprise_configuration_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -47406,7 +49069,7 @@ def v1_edges_hardware_assigned_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesHardwareAssignedGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -47415,10 +49078,10 @@ def v1_edges_hardware_assigned_get_without_preload_content( return response_data.response - def _v1_edges_hardware_assigned_get_serialize( + def _v1_enterprise_configuration_put_serialize( self, authorization, - enterprise_id, + v1_enterprise_configuration_put_request, _request_auth, _content_type, _headers, @@ -47441,15 +49104,13 @@ def _v1_edges_hardware_assigned_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 # process the form parameters # process the body parameter + if v1_enterprise_configuration_put_request is not None: + _body_params = v1_enterprise_configuration_put_request # set the HTTP header `Accept` @@ -47460,6 +49121,19 @@ def _v1_edges_hardware_assigned_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] = [ @@ -47467,8 +49141,8 @@ def _v1_edges_hardware_assigned_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/edges-hardware/assigned', + method='PUT', + resource_path='/v1/enterprise/configuration', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -47485,9 +49159,10 @@ def _v1_edges_hardware_assigned_get_serialize( @validate_call - def v1_edges_hardware_unassigned_get( + def v1_enterprise_contract_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -47500,12 +49175,15 @@ def v1_edges_hardware_unassigned_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1EdgesHardwareUnassignedGetResponse: - """v1_edges_hardware_unassigned_get + ) -> object: + """v1_enterprise_contract_put + 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. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_enterprise_contract_put_request: (required) + :type v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -47528,8 +49206,9 @@ def v1_edges_hardware_unassigned_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_hardware_unassigned_get_serialize( + _param = self._v1_enterprise_contract_put_serialize( authorization=authorization, + v1_enterprise_contract_put_request=v1_enterprise_contract_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -47537,7 +49216,7 @@ def v1_edges_hardware_unassigned_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesHardwareUnassignedGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -47551,9 +49230,10 @@ def v1_edges_hardware_unassigned_get( @validate_call - def v1_edges_hardware_unassigned_get_with_http_info( + def v1_enterprise_contract_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -47566,12 +49246,15 @@ def v1_edges_hardware_unassigned_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[V1EdgesHardwareUnassignedGetResponse]: - """v1_edges_hardware_unassigned_get + ) -> ApiResponse[object]: + """v1_enterprise_contract_put + 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. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_enterprise_contract_put_request: (required) + :type v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -47594,8 +49277,9 @@ def v1_edges_hardware_unassigned_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_hardware_unassigned_get_serialize( + _param = self._v1_enterprise_contract_put_serialize( authorization=authorization, + v1_enterprise_contract_put_request=v1_enterprise_contract_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -47603,7 +49287,7 @@ def v1_edges_hardware_unassigned_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesHardwareUnassignedGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -47617,9 +49301,10 @@ def v1_edges_hardware_unassigned_get_with_http_info( @validate_call - def v1_edges_hardware_unassigned_get_without_preload_content( + def v1_enterprise_contract_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -47633,11 +49318,14 @@ def v1_edges_hardware_unassigned_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_edges_hardware_unassigned_get + """v1_enterprise_contract_put + 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. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param v1_enterprise_contract_put_request: (required) + :type v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -47660,8 +49348,9 @@ def v1_edges_hardware_unassigned_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_hardware_unassigned_get_serialize( + _param = self._v1_enterprise_contract_put_serialize( authorization=authorization, + v1_enterprise_contract_put_request=v1_enterprise_contract_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -47669,7 +49358,7 @@ def v1_edges_hardware_unassigned_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesHardwareUnassignedGetResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -47678,9 +49367,10 @@ def v1_edges_hardware_unassigned_get_without_preload_content( return response_data.response - def _v1_edges_hardware_unassigned_get_serialize( + def _v1_enterprise_contract_put_serialize( self, authorization, + v1_enterprise_contract_put_request, _request_auth, _content_type, _headers, @@ -47708,6 +49398,8 @@ def _v1_edges_hardware_unassigned_get_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter + if v1_enterprise_contract_put_request is not None: + _body_params = v1_enterprise_contract_put_request # set the HTTP header `Accept` @@ -47718,6 +49410,19 @@ def _v1_edges_hardware_unassigned_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] = [ @@ -47725,8 +49430,8 @@ def _v1_edges_hardware_unassigned_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/edges-hardware/unassigned', + method='PUT', + resource_path='/v1/enterprise/contract', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -47743,12 +49448,9 @@ def _v1_edges_hardware_unassigned_get_serialize( @validate_call - def v1_edges_summary_get( + def v1_enterprise_snapshot_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Optional[StrictInt] = None, - is_requested: Optional[StrictBool] = None, - upgrade_summary: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -47761,18 +49463,13 @@ def v1_edges_summary_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1EdgesSummaryGetResponse: - """v1_edges_summary_get + ) -> V1EnterpriseSnapshotGetResponse: + """v1_enterprise_snapshot_get + Get a all of the device snapshots for every device in an enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: - :type enterprise_id: int - :param is_requested: - :type is_requested: bool - :param upgrade_summary: - :type upgrade_summary: 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 @@ -47795,11 +49492,8 @@ def v1_edges_summary_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_summary_get_serialize( + _param = self._v1_enterprise_snapshot_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, - is_requested=is_requested, - upgrade_summary=upgrade_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -47807,7 +49501,7 @@ def v1_edges_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesSummaryGetResponse", + '200': "V1EnterpriseSnapshotGetResponse", } response_data = self.api_client.call_api( *_param, @@ -47821,12 +49515,9 @@ def v1_edges_summary_get( @validate_call - def v1_edges_summary_get_with_http_info( + def v1_enterprise_snapshot_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Optional[StrictInt] = None, - is_requested: Optional[StrictBool] = None, - upgrade_summary: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -47839,18 +49530,13 @@ def v1_edges_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[V1EdgesSummaryGetResponse]: - """v1_edges_summary_get + ) -> ApiResponse[V1EnterpriseSnapshotGetResponse]: + """v1_enterprise_snapshot_get + Get a all of the device snapshots for every device in an enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: - :type enterprise_id: int - :param is_requested: - :type is_requested: bool - :param upgrade_summary: - :type upgrade_summary: 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 @@ -47873,11 +49559,8 @@ def v1_edges_summary_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_summary_get_serialize( + _param = self._v1_enterprise_snapshot_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, - is_requested=is_requested, - upgrade_summary=upgrade_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -47885,7 +49568,7 @@ def v1_edges_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesSummaryGetResponse", + '200': "V1EnterpriseSnapshotGetResponse", } response_data = self.api_client.call_api( *_param, @@ -47899,12 +49582,9 @@ def v1_edges_summary_get_with_http_info( @validate_call - def v1_edges_summary_get_without_preload_content( + def v1_enterprise_snapshot_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Optional[StrictInt] = None, - is_requested: Optional[StrictBool] = None, - upgrade_summary: Optional[StrictBool] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -47918,17 +49598,12 @@ def v1_edges_summary_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_edges_summary_get + """v1_enterprise_snapshot_get + Get a all of the device snapshots for every device in an enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: - :type enterprise_id: int - :param is_requested: - :type is_requested: bool - :param upgrade_summary: - :type upgrade_summary: 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 @@ -47951,11 +49626,8 @@ def v1_edges_summary_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_summary_get_serialize( + _param = self._v1_enterprise_snapshot_get_serialize( authorization=authorization, - enterprise_id=enterprise_id, - is_requested=is_requested, - upgrade_summary=upgrade_summary, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -47963,7 +49635,7 @@ def v1_edges_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesSummaryGetResponse", + '200': "V1EnterpriseSnapshotGetResponse", } response_data = self.api_client.call_api( *_param, @@ -47972,12 +49644,9 @@ def v1_edges_summary_get_without_preload_content( return response_data.response - def _v1_edges_summary_get_serialize( + def _v1_enterprise_snapshot_get_serialize( self, authorization, - enterprise_id, - is_requested, - upgrade_summary, _request_auth, _content_type, _headers, @@ -48000,18 +49669,6 @@ def _v1_edges_summary_get_serialize( # process the path parameters # process the query parameters - if enterprise_id is not None: - - _query_params.append(('enterpriseId', enterprise_id)) - - if is_requested is not None: - - _query_params.append(('isRequested', is_requested)) - - if upgrade_summary is not None: - - _query_params.append(('upgradeSummary', upgrade_summary)) - # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -48035,7 +49692,7 @@ def _v1_edges_summary_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/edges-summary', + resource_path='/v1/enterprise/snapshot', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -48052,10 +49709,10 @@ def _v1_edges_summary_get_serialize( @validate_call - def v1_edges_summary_post( + def v1_enterprises_enterprise_id_admin_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_edges_summary_post_request: V1EdgesSummaryPostRequest, + enterprise_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -48068,14 +49725,15 @@ def v1_edges_summary_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1EdgesSummaryPostResponse: - """v1_edges_summary_post + ) -> V1EnterprisesEnterpriseIdAdminGetResponse: + """v1_enterprises_enterprise_id_admin_get + Get the admin account for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_edges_summary_post_request: (required) - :type v1_edges_summary_post_request: V1EdgesSummaryPostRequest + :param enterprise_id: (required) + :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 @@ -48098,9 +49756,9 @@ def v1_edges_summary_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_summary_post_serialize( + _param = self._v1_enterprises_enterprise_id_admin_get_serialize( authorization=authorization, - v1_edges_summary_post_request=v1_edges_summary_post_request, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -48108,7 +49766,7 @@ def v1_edges_summary_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesSummaryPostResponse", + '200': "V1EnterprisesEnterpriseIdAdminGetResponse", } response_data = self.api_client.call_api( *_param, @@ -48122,10 +49780,10 @@ def v1_edges_summary_post( @validate_call - def v1_edges_summary_post_with_http_info( + def v1_enterprises_enterprise_id_admin_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_edges_summary_post_request: V1EdgesSummaryPostRequest, + enterprise_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -48138,14 +49796,15 @@ def v1_edges_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[V1EdgesSummaryPostResponse]: - """v1_edges_summary_post + ) -> ApiResponse[V1EnterprisesEnterpriseIdAdminGetResponse]: + """v1_enterprises_enterprise_id_admin_get + Get the admin account for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_edges_summary_post_request: (required) - :type v1_edges_summary_post_request: V1EdgesSummaryPostRequest + :param enterprise_id: (required) + :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 @@ -48168,9 +49827,9 @@ def v1_edges_summary_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_summary_post_serialize( + _param = self._v1_enterprises_enterprise_id_admin_get_serialize( authorization=authorization, - v1_edges_summary_post_request=v1_edges_summary_post_request, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -48178,7 +49837,7 @@ def v1_edges_summary_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesSummaryPostResponse", + '200': "V1EnterprisesEnterpriseIdAdminGetResponse", } response_data = self.api_client.call_api( *_param, @@ -48192,10 +49851,10 @@ def v1_edges_summary_post_with_http_info( @validate_call - def v1_edges_summary_post_without_preload_content( + def v1_enterprises_enterprise_id_admin_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_edges_summary_post_request: V1EdgesSummaryPostRequest, + enterprise_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -48209,13 +49868,14 @@ def v1_edges_summary_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_edges_summary_post + """v1_enterprises_enterprise_id_admin_get + Get the admin account for an enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_edges_summary_post_request: (required) - :type v1_edges_summary_post_request: V1EdgesSummaryPostRequest + :param enterprise_id: (required) + :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 @@ -48238,9 +49898,9 @@ def v1_edges_summary_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_edges_summary_post_serialize( + _param = self._v1_enterprises_enterprise_id_admin_get_serialize( authorization=authorization, - v1_edges_summary_post_request=v1_edges_summary_post_request, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -48248,7 +49908,7 @@ def v1_edges_summary_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EdgesSummaryPostResponse", + '200': "V1EnterprisesEnterpriseIdAdminGetResponse", } response_data = self.api_client.call_api( *_param, @@ -48257,10 +49917,10 @@ def v1_edges_summary_post_without_preload_content( return response_data.response - def _v1_edges_summary_post_serialize( + def _v1_enterprises_enterprise_id_admin_get_serialize( self, authorization, - v1_edges_summary_post_request, + enterprise_id, _request_auth, _content_type, _headers, @@ -48282,14 +49942,14 @@ def _v1_edges_summary_post_serialize( _body_params: Optional[bytes] = None # process the path parameters + if enterprise_id is not None: + _path_params['enterpriseId'] = enterprise_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_edges_summary_post_request is not None: - _body_params = v1_edges_summary_post_request # set the HTTP header `Accept` @@ -48300,19 +49960,6 @@ def _v1_edges_summary_post_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -48320,8 +49967,8 @@ def _v1_edges_summary_post_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/edges-summary', + method='GET', + resource_path='/v1/enterprises/{enterpriseId}/admin', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -48338,9 +49985,10 @@ def _v1_edges_summary_post_serialize( @validate_call - def v1_enterprise_allocation_get( + def v1_enterprises_enterprise_id_delete( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -48353,13 +50001,15 @@ def v1_enterprise_allocation_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1EnterpriseAllocationGetResponse: - """v1_enterprise_allocation_get + ) -> None: + """v1_enterprises_enterprise_id_delete - Get all allocation for the given enterprise on a given month + Delete a specific enterprise by ID (you must manage this tenant). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: (required) + :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 @@ -48382,8 +50032,9 @@ def v1_enterprise_allocation_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_allocation_get_serialize( + _param = self._v1_enterprises_enterprise_id_delete_serialize( authorization=authorization, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -48391,7 +50042,7 @@ def v1_enterprise_allocation_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterpriseAllocationGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -48405,9 +50056,10 @@ def v1_enterprise_allocation_get( @validate_call - def v1_enterprise_allocation_get_with_http_info( + def v1_enterprises_enterprise_id_delete_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -48420,13 +50072,15 @@ def v1_enterprise_allocation_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[V1EnterpriseAllocationGetResponse]: - """v1_enterprise_allocation_get + ) -> ApiResponse[None]: + """v1_enterprises_enterprise_id_delete - Get all allocation for the given enterprise on a given month + Delete a specific enterprise by ID (you must manage this tenant). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: (required) + :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 @@ -48449,8 +50103,9 @@ def v1_enterprise_allocation_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_allocation_get_serialize( + _param = self._v1_enterprises_enterprise_id_delete_serialize( authorization=authorization, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -48458,7 +50113,7 @@ def v1_enterprise_allocation_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterpriseAllocationGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -48472,9 +50127,10 @@ def v1_enterprise_allocation_get_with_http_info( @validate_call - def v1_enterprise_allocation_get_without_preload_content( + def v1_enterprises_enterprise_id_delete_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -48488,12 +50144,14 @@ def v1_enterprise_allocation_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprise_allocation_get + """v1_enterprises_enterprise_id_delete - Get all allocation for the given enterprise on a given month + Delete a specific enterprise by ID (you must manage this tenant). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: (required) + :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 @@ -48516,8 +50174,9 @@ def v1_enterprise_allocation_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_allocation_get_serialize( + _param = self._v1_enterprises_enterprise_id_delete_serialize( authorization=authorization, + enterprise_id=enterprise_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -48525,7 +50184,7 @@ def v1_enterprise_allocation_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterpriseAllocationGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -48534,9 +50193,10 @@ def v1_enterprise_allocation_get_without_preload_content( return response_data.response - def _v1_enterprise_allocation_get_serialize( + def _v1_enterprises_enterprise_id_delete_serialize( self, authorization, + enterprise_id, _request_auth, _content_type, _headers, @@ -48558,6 +50218,8 @@ def _v1_enterprise_allocation_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if enterprise_id is not None: + _path_params['enterpriseId'] = enterprise_id # process the query parameters # process the header parameters if authorization is not None: @@ -48566,13 +50228,6 @@ def _v1_enterprise_allocation_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 @@ -48581,8 +50236,8 @@ def _v1_enterprise_allocation_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/enterprise/allocation', + method='DELETE', + resource_path='/v1/enterprises/{enterpriseId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -48599,9 +50254,11 @@ def _v1_enterprise_allocation_get_serialize( @validate_call - def v1_enterprise_configuration_get( + def v1_enterprises_enterprise_id_device_status_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: Annotated[int, Field(strict=True, ge=0)], + role: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -48614,13 +50271,16 @@ def v1_enterprise_configuration_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1EnterpriseConfigurationGetResponse: - """v1_enterprise_configuration_get + ) -> V1EnterprisesEnterpriseIdDeviceStatusGetResponse: + """v1_enterprises_enterprise_id_device_status_get - Get enterprise-level information relevant to device configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: (required) + :type enterprise_id: int + :param role: + :type role: 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 @@ -48643,8 +50303,10 @@ def v1_enterprise_configuration_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_configuration_get_serialize( + _param = self._v1_enterprises_enterprise_id_device_status_get_serialize( authorization=authorization, + enterprise_id=enterprise_id, + role=role, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -48652,7 +50314,7 @@ def v1_enterprise_configuration_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterpriseConfigurationGetResponse", + '200': "V1EnterprisesEnterpriseIdDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -48666,9 +50328,11 @@ def v1_enterprise_configuration_get( @validate_call - def v1_enterprise_configuration_get_with_http_info( + def v1_enterprises_enterprise_id_device_status_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: Annotated[int, Field(strict=True, ge=0)], + role: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -48681,13 +50345,16 @@ def v1_enterprise_configuration_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[V1EnterpriseConfigurationGetResponse]: - """v1_enterprise_configuration_get + ) -> ApiResponse[V1EnterprisesEnterpriseIdDeviceStatusGetResponse]: + """v1_enterprises_enterprise_id_device_status_get - Get enterprise-level information relevant to device configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: (required) + :type enterprise_id: int + :param role: + :type role: 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 @@ -48710,8 +50377,10 @@ def v1_enterprise_configuration_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_configuration_get_serialize( + _param = self._v1_enterprises_enterprise_id_device_status_get_serialize( authorization=authorization, + enterprise_id=enterprise_id, + role=role, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -48719,7 +50388,7 @@ def v1_enterprise_configuration_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterpriseConfigurationGetResponse", + '200': "V1EnterprisesEnterpriseIdDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -48733,9 +50402,11 @@ def v1_enterprise_configuration_get_with_http_info( @validate_call - def v1_enterprise_configuration_get_without_preload_content( + def v1_enterprises_enterprise_id_device_status_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + enterprise_id: Annotated[int, Field(strict=True, ge=0)], + role: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -48749,12 +50420,15 @@ def v1_enterprise_configuration_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprise_configuration_get + """v1_enterprises_enterprise_id_device_status_get - Get enterprise-level information relevant to device configuration :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param enterprise_id: (required) + :type enterprise_id: int + :param role: + :type role: 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 @@ -48777,8 +50451,10 @@ def v1_enterprise_configuration_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_configuration_get_serialize( + _param = self._v1_enterprises_enterprise_id_device_status_get_serialize( authorization=authorization, + enterprise_id=enterprise_id, + role=role, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -48786,7 +50462,7 @@ def v1_enterprise_configuration_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterpriseConfigurationGetResponse", + '200': "V1EnterprisesEnterpriseIdDeviceStatusGetResponse", } response_data = self.api_client.call_api( *_param, @@ -48795,9 +50471,11 @@ def v1_enterprise_configuration_get_without_preload_content( return response_data.response - def _v1_enterprise_configuration_get_serialize( + def _v1_enterprises_enterprise_id_device_status_get_serialize( self, authorization, + enterprise_id, + role, _request_auth, _content_type, _headers, @@ -48819,7 +50497,13 @@ def _v1_enterprise_configuration_get_serialize( _body_params: Optional[bytes] = None # process the path parameters + if enterprise_id is not None: + _path_params['enterpriseId'] = enterprise_id # process the query parameters + if role is not None: + + _query_params.append(('role', role)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization @@ -48843,7 +50527,7 @@ def _v1_enterprise_configuration_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/enterprise/configuration', + resource_path='/v1/enterprises/{enterpriseId}/device-status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -48860,10 +50544,10 @@ def _v1_enterprise_configuration_get_serialize( @validate_call - def v1_enterprise_configuration_put( + def v1_enterprises_eula_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -48876,15 +50560,15 @@ def v1_enterprise_configuration_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_enterprise_configuration_put + ) -> None: + """v1_enterprises_eula_post - Update enterprise-level information relevant to device configuration + Accept End User License Agreement for the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_enterprise_configuration_put_request: (required) - :type v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest + :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 @@ -48907,9 +50591,9 @@ def v1_enterprise_configuration_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_configuration_put_serialize( + _param = self._v1_enterprises_eula_post_serialize( authorization=authorization, - v1_enterprise_configuration_put_request=v1_enterprise_configuration_put_request, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -48917,7 +50601,7 @@ def v1_enterprise_configuration_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -48931,10 +50615,10 @@ def v1_enterprise_configuration_put( @validate_call - def v1_enterprise_configuration_put_with_http_info( + def v1_enterprises_eula_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -48947,15 +50631,15 @@ def v1_enterprise_configuration_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_enterprise_configuration_put + ) -> ApiResponse[None]: + """v1_enterprises_eula_post - Update enterprise-level information relevant to device configuration + Accept End User License Agreement for the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_enterprise_configuration_put_request: (required) - :type v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest + :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 @@ -48978,9 +50662,9 @@ def v1_enterprise_configuration_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_configuration_put_serialize( + _param = self._v1_enterprises_eula_post_serialize( authorization=authorization, - v1_enterprise_configuration_put_request=v1_enterprise_configuration_put_request, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -48988,7 +50672,7 @@ def v1_enterprise_configuration_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -49002,10 +50686,10 @@ def v1_enterprise_configuration_put_with_http_info( @validate_call - def v1_enterprise_configuration_put_without_preload_content( + def v1_enterprises_eula_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest, + body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -49019,14 +50703,14 @@ def v1_enterprise_configuration_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprise_configuration_put + """v1_enterprises_eula_post - Update enterprise-level information relevant to device configuration + Accept End User License Agreement for the enterprise. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_enterprise_configuration_put_request: (required) - :type v1_enterprise_configuration_put_request: V1EnterpriseConfigurationPutRequest + :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 @@ -49049,9 +50733,9 @@ def v1_enterprise_configuration_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_configuration_put_serialize( + _param = self._v1_enterprises_eula_post_serialize( authorization=authorization, - v1_enterprise_configuration_put_request=v1_enterprise_configuration_put_request, + body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -49059,7 +50743,7 @@ def v1_enterprise_configuration_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -49068,10 +50752,10 @@ def v1_enterprise_configuration_put_without_preload_content( return response_data.response - def _v1_enterprise_configuration_put_serialize( + def _v1_enterprises_eula_post_serialize( self, authorization, - v1_enterprise_configuration_put_request, + body, _request_auth, _content_type, _headers, @@ -49099,17 +50783,10 @@ def _v1_enterprise_configuration_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_enterprise_configuration_put_request is not None: - _body_params = v1_enterprise_configuration_put_request + 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: @@ -49131,8 +50808,8 @@ def _v1_enterprise_configuration_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/enterprise/configuration', + method='POST', + resource_path='/v1/enterprises/eula', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -49149,10 +50826,10 @@ def _v1_enterprise_configuration_put_serialize( @validate_call - def v1_enterprise_contract_put( + def v1_enterprises_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest, + enterprise_ids: Annotated[Optional[List[StrictInt]], Field(description="Lists enterprises")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -49165,15 +50842,15 @@ def v1_enterprise_contract_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> object: - """v1_enterprise_contract_put + ) -> V1EnterprisesGetResponse: + """v1_enterprises_get - Update an enterprise to use a new monthly or term-based contract + Get specific enterprises by their IDs with detailed information. Query just your own enterprise Id for more detailed info. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_enterprise_contract_put_request: (required) - :type v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest + :param enterprise_ids: Lists enterprises + :type enterprise_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 @@ -49196,9 +50873,9 @@ def v1_enterprise_contract_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_contract_put_serialize( + _param = self._v1_enterprises_get_serialize( authorization=authorization, - v1_enterprise_contract_put_request=v1_enterprise_contract_put_request, + enterprise_ids=enterprise_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -49206,7 +50883,7 @@ def v1_enterprise_contract_put( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1EnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -49220,10 +50897,10 @@ def v1_enterprise_contract_put( @validate_call - def v1_enterprise_contract_put_with_http_info( + def v1_enterprises_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest, + enterprise_ids: Annotated[Optional[List[StrictInt]], Field(description="Lists enterprises")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -49236,15 +50913,15 @@ def v1_enterprise_contract_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_enterprise_contract_put + ) -> ApiResponse[V1EnterprisesGetResponse]: + """v1_enterprises_get - Update an enterprise to use a new monthly or term-based contract + Get specific enterprises by their IDs with detailed information. Query just your own enterprise Id for more detailed info. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_enterprise_contract_put_request: (required) - :type v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest + :param enterprise_ids: Lists enterprises + :type enterprise_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 @@ -49267,9 +50944,9 @@ def v1_enterprise_contract_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_contract_put_serialize( + _param = self._v1_enterprises_get_serialize( authorization=authorization, - v1_enterprise_contract_put_request=v1_enterprise_contract_put_request, + enterprise_ids=enterprise_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -49277,7 +50954,7 @@ def v1_enterprise_contract_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1EnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -49291,10 +50968,10 @@ def v1_enterprise_contract_put_with_http_info( @validate_call - def v1_enterprise_contract_put_without_preload_content( + def v1_enterprises_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest, + enterprise_ids: Annotated[Optional[List[StrictInt]], Field(description="Lists enterprises")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -49308,14 +50985,14 @@ def v1_enterprise_contract_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprise_contract_put + """v1_enterprises_get - Update an enterprise to use a new monthly or term-based contract + Get specific enterprises by their IDs with detailed information. Query just your own enterprise Id for more detailed info. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_enterprise_contract_put_request: (required) - :type v1_enterprise_contract_put_request: V1EnterpriseContractPutRequest + :param enterprise_ids: Lists enterprises + :type enterprise_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 @@ -49338,9 +51015,9 @@ def v1_enterprise_contract_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_contract_put_serialize( + _param = self._v1_enterprises_get_serialize( authorization=authorization, - v1_enterprise_contract_put_request=v1_enterprise_contract_put_request, + enterprise_ids=enterprise_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -49348,7 +51025,7 @@ def v1_enterprise_contract_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", + '200': "V1EnterprisesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -49357,10 +51034,10 @@ def v1_enterprise_contract_put_without_preload_content( return response_data.response - def _v1_enterprise_contract_put_serialize( + def _v1_enterprises_get_serialize( self, authorization, - v1_enterprise_contract_put_request, + enterprise_ids, _request_auth, _content_type, _headers, @@ -49370,6 +51047,7 @@ def _v1_enterprise_contract_put_serialize( _host = None _collection_formats: Dict[str, str] = { + 'enterpriseIds': 'multi', } _path_params: Dict[str, str] = {} @@ -49383,13 +51061,15 @@ def _v1_enterprise_contract_put_serialize( # process the path parameters # process the query parameters + if enterprise_ids is not None: + + _query_params.append(('enterpriseIds', enterprise_ids)) + # process the header parameters if authorization is not None: _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_enterprise_contract_put_request is not None: - _body_params = v1_enterprise_contract_put_request # set the HTTP header `Accept` @@ -49400,19 +51080,6 @@ def _v1_enterprise_contract_put_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -49420,8 +51087,8 @@ def _v1_enterprise_contract_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/enterprise/contract', + method='GET', + resource_path='/v1/enterprises', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -49438,9 +51105,10 @@ def _v1_enterprise_contract_put_serialize( @validate_call - def v1_enterprise_snapshot_get( + def v1_enterprises_managed_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + type: Annotated[StrictStr, Field(description="msp or enterprise")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -49453,13 +51121,15 @@ def v1_enterprise_snapshot_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1EnterpriseSnapshotGetResponse: - """v1_enterprise_snapshot_get + ) -> V1EnterprisesManagedGetResponse: + """v1_enterprises_managed_get - Get a all of the device snapshots for every device in an enterprise + 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. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param type: msp or enterprise (required) + :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 @@ -49482,8 +51152,9 @@ def v1_enterprise_snapshot_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_snapshot_get_serialize( + _param = self._v1_enterprises_managed_get_serialize( authorization=authorization, + type=type, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -49491,7 +51162,7 @@ def v1_enterprise_snapshot_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterpriseSnapshotGetResponse", + '200': "V1EnterprisesManagedGetResponse", } response_data = self.api_client.call_api( *_param, @@ -49505,9 +51176,10 @@ def v1_enterprise_snapshot_get( @validate_call - def v1_enterprise_snapshot_get_with_http_info( + def v1_enterprises_managed_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + type: Annotated[StrictStr, Field(description="msp or enterprise")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -49520,13 +51192,15 @@ def v1_enterprise_snapshot_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[V1EnterpriseSnapshotGetResponse]: - """v1_enterprise_snapshot_get + ) -> ApiResponse[V1EnterprisesManagedGetResponse]: + """v1_enterprises_managed_get - Get a all of the device snapshots for every device in an enterprise + 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. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param type: msp or enterprise (required) + :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 @@ -49549,8 +51223,9 @@ def v1_enterprise_snapshot_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_snapshot_get_serialize( + _param = self._v1_enterprises_managed_get_serialize( authorization=authorization, + type=type, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -49558,7 +51233,7 @@ def v1_enterprise_snapshot_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterpriseSnapshotGetResponse", + '200': "V1EnterprisesManagedGetResponse", } response_data = self.api_client.call_api( *_param, @@ -49572,9 +51247,10 @@ def v1_enterprise_snapshot_get_with_http_info( @validate_call - def v1_enterprise_snapshot_get_without_preload_content( + def v1_enterprises_managed_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], + type: Annotated[StrictStr, Field(description="msp or enterprise")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -49588,12 +51264,14 @@ def v1_enterprise_snapshot_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprise_snapshot_get + """v1_enterprises_managed_get - Get a all of the device snapshots for every device in an enterprise + 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. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str + :param type: msp or enterprise (required) + :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 @@ -49616,8 +51294,9 @@ def v1_enterprise_snapshot_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprise_snapshot_get_serialize( + _param = self._v1_enterprises_managed_get_serialize( authorization=authorization, + type=type, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -49625,7 +51304,7 @@ def v1_enterprise_snapshot_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterpriseSnapshotGetResponse", + '200': "V1EnterprisesManagedGetResponse", } response_data = self.api_client.call_api( *_param, @@ -49634,9 +51313,10 @@ def v1_enterprise_snapshot_get_without_preload_content( return response_data.response - def _v1_enterprise_snapshot_get_serialize( + def _v1_enterprises_managed_get_serialize( self, authorization, + type, _request_auth, _content_type, _headers, @@ -49659,6 +51339,10 @@ def _v1_enterprise_snapshot_get_serialize( # process the path parameters # 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 @@ -49682,7 +51366,7 @@ def _v1_enterprise_snapshot_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/enterprise/snapshot', + resource_path='/v1/enterprises/managed', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -49699,10 +51383,10 @@ def _v1_enterprise_snapshot_get_serialize( @validate_call - def v1_enterprises_enterprise_id_admin_get( + def v1_enterprises_patch( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, + v1_enterprises_patch_request: V1EnterprisesPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -49715,15 +51399,15 @@ def v1_enterprises_enterprise_id_admin_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1EnterprisesEnterpriseIdAdminGetResponse: - """v1_enterprises_enterprise_id_admin_get + ) -> None: + """v1_enterprises_patch - Get the admin account for an enterprise. + Updates all relevent enterprise information. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int + :param v1_enterprises_patch_request: (required) + :type v1_enterprises_patch_request: V1EnterprisesPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -49746,9 +51430,9 @@ def v1_enterprises_enterprise_id_admin_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_enterprise_id_admin_get_serialize( + _param = self._v1_enterprises_patch_serialize( authorization=authorization, - enterprise_id=enterprise_id, + v1_enterprises_patch_request=v1_enterprises_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -49756,7 +51440,7 @@ def v1_enterprises_enterprise_id_admin_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesEnterpriseIdAdminGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -49770,10 +51454,10 @@ def v1_enterprises_enterprise_id_admin_get( @validate_call - def v1_enterprises_enterprise_id_admin_get_with_http_info( + def v1_enterprises_patch_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, + v1_enterprises_patch_request: V1EnterprisesPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -49786,15 +51470,15 @@ def v1_enterprises_enterprise_id_admin_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[V1EnterprisesEnterpriseIdAdminGetResponse]: - """v1_enterprises_enterprise_id_admin_get + ) -> ApiResponse[None]: + """v1_enterprises_patch - Get the admin account for an enterprise. + Updates all relevent enterprise information. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int + :param v1_enterprises_patch_request: (required) + :type v1_enterprises_patch_request: V1EnterprisesPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -49817,9 +51501,9 @@ def v1_enterprises_enterprise_id_admin_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_enterprise_id_admin_get_serialize( + _param = self._v1_enterprises_patch_serialize( authorization=authorization, - enterprise_id=enterprise_id, + v1_enterprises_patch_request=v1_enterprises_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -49827,7 +51511,7 @@ def v1_enterprises_enterprise_id_admin_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesEnterpriseIdAdminGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -49841,10 +51525,10 @@ def v1_enterprises_enterprise_id_admin_get_with_http_info( @validate_call - def v1_enterprises_enterprise_id_admin_get_without_preload_content( + def v1_enterprises_patch_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, + v1_enterprises_patch_request: V1EnterprisesPatchRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -49858,14 +51542,14 @@ def v1_enterprises_enterprise_id_admin_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprises_enterprise_id_admin_get + """v1_enterprises_patch - Get the admin account for an enterprise. + Updates all relevent enterprise information. :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int + :param v1_enterprises_patch_request: (required) + :type v1_enterprises_patch_request: V1EnterprisesPatchRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -49888,9 +51572,9 @@ def v1_enterprises_enterprise_id_admin_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_enterprise_id_admin_get_serialize( + _param = self._v1_enterprises_patch_serialize( authorization=authorization, - enterprise_id=enterprise_id, + v1_enterprises_patch_request=v1_enterprises_patch_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -49898,7 +51582,7 @@ def v1_enterprises_enterprise_id_admin_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesEnterpriseIdAdminGetResponse", + '204': None, } response_data = self.api_client.call_api( *_param, @@ -49907,10 +51591,10 @@ def v1_enterprises_enterprise_id_admin_get_without_preload_content( return response_data.response - def _v1_enterprises_enterprise_id_admin_get_serialize( + def _v1_enterprises_patch_serialize( self, authorization, - enterprise_id, + v1_enterprises_patch_request, _request_auth, _content_type, _headers, @@ -49932,24 +51616,30 @@ def _v1_enterprises_enterprise_id_admin_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if enterprise_id is not None: - _path_params['enterpriseId'] = enterprise_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_enterprises_patch_request is not None: + _body_params = v1_enterprises_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] = [ @@ -49957,8 +51647,8 @@ def _v1_enterprises_enterprise_id_admin_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/enterprises/{enterpriseId}/admin', + method='PATCH', + resource_path='/v1/enterprises', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -49975,10 +51665,10 @@ def _v1_enterprises_enterprise_id_admin_get_serialize( @validate_call - def v1_enterprises_enterprise_id_delete( + def v1_enterprises_put( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, + v1_enterprises_put_request: V1EnterprisesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -49992,14 +51682,14 @@ def v1_enterprises_enterprise_id_delete( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> None: - """v1_enterprises_enterprise_id_delete + """v1_enterprises_put - Delete a specific enterprise by ID (you must manage this tenant). + 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). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int + :param v1_enterprises_put_request: (required) + :type v1_enterprises_put_request: V1EnterprisesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -50022,9 +51712,9 @@ def v1_enterprises_enterprise_id_delete( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_enterprise_id_delete_serialize( + _param = self._v1_enterprises_put_serialize( authorization=authorization, - enterprise_id=enterprise_id, + v1_enterprises_put_request=v1_enterprises_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -50046,10 +51736,10 @@ def v1_enterprises_enterprise_id_delete( @validate_call - def v1_enterprises_enterprise_id_delete_with_http_info( + def v1_enterprises_put_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, + v1_enterprises_put_request: V1EnterprisesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -50063,14 +51753,14 @@ def v1_enterprises_enterprise_id_delete_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[None]: - """v1_enterprises_enterprise_id_delete + """v1_enterprises_put - Delete a specific enterprise by ID (you must manage this tenant). + 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). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int + :param v1_enterprises_put_request: (required) + :type v1_enterprises_put_request: V1EnterprisesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -50093,9 +51783,9 @@ def v1_enterprises_enterprise_id_delete_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_enterprise_id_delete_serialize( + _param = self._v1_enterprises_put_serialize( authorization=authorization, - enterprise_id=enterprise_id, + v1_enterprises_put_request=v1_enterprises_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -50117,10 +51807,10 @@ def v1_enterprises_enterprise_id_delete_with_http_info( @validate_call - def v1_enterprises_enterprise_id_delete_without_preload_content( + def v1_enterprises_put_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: StrictInt, + v1_enterprises_put_request: V1EnterprisesPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -50134,14 +51824,14 @@ def v1_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_enterprises_enterprise_id_delete + """v1_enterprises_put - Delete a specific enterprise by ID (you must manage this tenant). + 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). :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int + :param v1_enterprises_put_request: (required) + :type v1_enterprises_put_request: V1EnterprisesPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -50164,9 +51854,9 @@ def v1_enterprises_enterprise_id_delete_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_enterprise_id_delete_serialize( + _param = self._v1_enterprises_put_serialize( authorization=authorization, - enterprise_id=enterprise_id, + v1_enterprises_put_request=v1_enterprises_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -50183,10 +51873,10 @@ def v1_enterprises_enterprise_id_delete_without_preload_content( return response_data.response - def _v1_enterprises_enterprise_id_delete_serialize( + def _v1_enterprises_put_serialize( self, authorization, - enterprise_id, + v1_enterprises_put_request, _request_auth, _content_type, _headers, @@ -50208,17 +51898,30 @@ def _v1_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 # 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_enterprises_put_request is not None: + _body_params = v1_enterprises_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' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -50226,8 +51929,8 @@ def _v1_enterprises_enterprise_id_delete_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/enterprises/{enterpriseId}', + method='PUT', + resource_path='/v1/enterprises', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -50244,11 +51947,10 @@ def _v1_enterprises_enterprise_id_delete_serialize( @validate_call - def v1_enterprises_enterprise_id_device_status_get( + def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_id: Annotated[int, Field(strict=True, ge=0)], - role: Optional[StrictStr] = None, + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -50261,16 +51963,15 @@ def v1_enterprises_enterprise_id_device_status_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1EnterprisesEnterpriseIdDeviceStatusGetResponse: - """v1_enterprises_enterprise_id_device_status_get + ) -> V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse: + """v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post + Get b2b extranet peering service sites usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int - :param role: - :type role: 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -50293,10 +51994,9 @@ def v1_enterprises_enterprise_id_device_status_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_enterprise_id_device_status_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( authorization=authorization, - enterprise_id=enterprise_id, - role=role, + 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, @@ -50304,7 +52004,7 @@ def v1_enterprises_enterprise_id_device_status_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesEnterpriseIdDeviceStatusGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", } response_data = self.api_client.call_api( *_param, @@ -50318,11 +52018,10 @@ def v1_enterprises_enterprise_id_device_status_get( @validate_call - def v1_enterprises_enterprise_id_device_status_get_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 ")], - enterprise_id: Annotated[int, Field(strict=True, ge=0)], - role: Optional[StrictStr] = None, + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -50335,16 +52034,15 @@ def v1_enterprises_enterprise_id_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[V1EnterprisesEnterpriseIdDeviceStatusGetResponse]: - """v1_enterprises_enterprise_id_device_status_get + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse]: + """v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post + Get b2b extranet peering service sites usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int - :param role: - :type role: 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -50367,10 +52065,9 @@ def v1_enterprises_enterprise_id_device_status_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_enterprise_id_device_status_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( authorization=authorization, - enterprise_id=enterprise_id, - role=role, + 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, @@ -50378,7 +52075,7 @@ def v1_enterprises_enterprise_id_device_status_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesEnterpriseIdDeviceStatusGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", } response_data = self.api_client.call_api( *_param, @@ -50392,11 +52089,10 @@ def v1_enterprises_enterprise_id_device_status_get_with_http_info( @validate_call - def v1_enterprises_enterprise_id_device_status_get_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 ")], - enterprise_id: Annotated[int, Field(strict=True, ge=0)], - role: Optional[StrictStr] = None, + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -50410,15 +52106,14 @@ def v1_enterprises_enterprise_id_device_status_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprises_enterprise_id_device_status_get + """v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post + Get b2b extranet peering service sites usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_id: (required) - :type enterprise_id: int - :param role: - :type role: 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -50441,10 +52136,9 @@ def v1_enterprises_enterprise_id_device_status_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_enterprise_id_device_status_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( authorization=authorization, - enterprise_id=enterprise_id, - role=role, + 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, @@ -50452,7 +52146,7 @@ def v1_enterprises_enterprise_id_device_status_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesEnterpriseIdDeviceStatusGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", } response_data = self.api_client.call_api( *_param, @@ -50461,11 +52155,10 @@ def v1_enterprises_enterprise_id_device_status_get_without_preload_content( return response_data.response - def _v1_enterprises_enterprise_id_device_status_get_serialize( + def _v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( self, authorization, - enterprise_id, - role, + v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, _request_auth, _content_type, _headers, @@ -50487,18 +52180,14 @@ def _v1_enterprises_enterprise_id_device_status_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if enterprise_id is not None: - _path_params['enterpriseId'] = enterprise_id # process the query parameters - if role is not None: - - _query_params.append(('role', role)) - # 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` @@ -50509,6 +52198,19 @@ def _v1_enterprises_enterprise_id_device_status_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] = [ @@ -50516,8 +52218,8 @@ def _v1_enterprises_enterprise_id_device_status_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/enterprises/{enterpriseId}/device-status', + method='POST', + resource_path='/v1/extranet-b2b-monitoring/peering-service/bandwidth-usage', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -50534,10 +52236,10 @@ def _v1_enterprises_enterprise_id_device_status_get_serialize( @validate_call - def v1_enterprises_eula_post( + def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - body: Dict[str, Any], + v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -50550,15 +52252,15 @@ def v1_enterprises_eula_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_enterprises_eula_post + ) -> V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse: + """v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post - Accept End User License Agreement for the enterprise. + Get b2b extranet peering service top consumers usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :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 @@ -50581,9 +52283,9 @@ def v1_enterprises_eula_post( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_eula_post_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( authorization=authorization, - body=body, + 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, @@ -50591,7 +52293,7 @@ def v1_enterprises_eula_post( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -50605,10 +52307,10 @@ def v1_enterprises_eula_post( @validate_call - def v1_enterprises_eula_post_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 ")], - body: Dict[str, Any], + v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -50621,15 +52323,15 @@ def v1_enterprises_eula_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_enterprises_eula_post + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse]: + """v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post - Accept End User License Agreement for the enterprise. + Get b2b extranet peering service top consumers usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :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 @@ -50652,9 +52354,9 @@ def v1_enterprises_eula_post_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_eula_post_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( authorization=authorization, - body=body, + 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, @@ -50662,7 +52364,7 @@ def v1_enterprises_eula_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -50676,10 +52378,10 @@ def v1_enterprises_eula_post_with_http_info( @validate_call - def v1_enterprises_eula_post_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 ")], - body: Dict[str, Any], + v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -50693,14 +52395,14 @@ def v1_enterprises_eula_post_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprises_eula_post + """v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post - Accept End User License Agreement for the enterprise. + Get b2b extranet peering service top consumers usage stats :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param body: (required) - :type body: object + :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 @@ -50723,9 +52425,9 @@ def v1_enterprises_eula_post_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_eula_post_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( authorization=authorization, - body=body, + 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, @@ -50733,7 +52435,7 @@ def v1_enterprises_eula_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", } response_data = self.api_client.call_api( *_param, @@ -50742,10 +52444,10 @@ def v1_enterprises_eula_post_without_preload_content( return response_data.response - def _v1_enterprises_eula_post_serialize( + def _v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_serialize( self, authorization, - body, + v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request, _request_auth, _content_type, _headers, @@ -50773,10 +52475,17 @@ def _v1_enterprises_eula_post_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if body is not None: - _body_params = body + 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` + 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: @@ -50799,7 +52508,7 @@ def _v1_enterprises_eula_post_serialize( return self.api_client.param_serialize( method='POST', - resource_path='/v1/enterprises/eula', + resource_path='/v1/extranet-b2b-monitoring/peering-service/consumers-usage/top', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -50816,10 +52525,10 @@ def _v1_enterprises_eula_post_serialize( @validate_call - def v1_enterprises_get( + def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - enterprise_ids: Annotated[Optional[List[StrictInt]], Field(description="Lists enterprises")] = None, + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -50832,15 +52541,15 @@ def v1_enterprises_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1EnterprisesGetResponse: - """v1_enterprises_get + ) -> V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse: + """v1_extranet_b2b_monitoring_peering_service_consumption_overview_post - Get specific enterprises by their IDs with detailed information. Query just your own enterprise Id for more detailed info. + Get b2b extranet peering consumption overview :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_ids: Lists enterprises - :type enterprise_ids: List[int] + :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 @@ -50863,9 +52572,9 @@ def v1_enterprises_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( authorization=authorization, - enterprise_ids=enterprise_ids, + 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, @@ -50873,7 +52582,7 @@ def v1_enterprises_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -50887,10 +52596,10 @@ def v1_enterprises_get( @validate_call - def v1_enterprises_get_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 ")], - enterprise_ids: Annotated[Optional[List[StrictInt]], Field(description="Lists enterprises")] = None, + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -50903,15 +52612,15 @@ def v1_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[V1EnterprisesGetResponse]: - """v1_enterprises_get + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse]: + """v1_extranet_b2b_monitoring_peering_service_consumption_overview_post - Get specific enterprises by their IDs with detailed information. Query just your own enterprise Id for more detailed info. + Get b2b extranet peering consumption overview :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_ids: Lists enterprises - :type enterprise_ids: List[int] + :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 @@ -50934,9 +52643,9 @@ def v1_enterprises_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( authorization=authorization, - enterprise_ids=enterprise_ids, + 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, @@ -50944,7 +52653,7 @@ def v1_enterprises_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -50958,10 +52667,10 @@ def v1_enterprises_get_with_http_info( @validate_call - def v1_enterprises_get_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 ")], - enterprise_ids: Annotated[Optional[List[StrictInt]], Field(description="Lists enterprises")] = None, + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -50975,14 +52684,14 @@ def v1_enterprises_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprises_get + """v1_extranet_b2b_monitoring_peering_service_consumption_overview_post - Get specific enterprises by their IDs with detailed information. Query just your own enterprise Id for more detailed info. + Get b2b extranet peering consumption overview :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param enterprise_ids: Lists enterprises - :type enterprise_ids: List[int] + :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 @@ -51005,9 +52714,9 @@ def v1_enterprises_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( authorization=authorization, - enterprise_ids=enterprise_ids, + 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, @@ -51015,7 +52724,7 @@ def v1_enterprises_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", } response_data = self.api_client.call_api( *_param, @@ -51024,10 +52733,10 @@ def v1_enterprises_get_without_preload_content( return response_data.response - def _v1_enterprises_get_serialize( + def _v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_serialize( self, authorization, - enterprise_ids, + v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request, _request_auth, _content_type, _headers, @@ -51037,7 +52746,6 @@ def _v1_enterprises_get_serialize( _host = None _collection_formats: Dict[str, str] = { - 'enterpriseIds': 'multi', } _path_params: Dict[str, str] = {} @@ -51051,15 +52759,13 @@ def _v1_enterprises_get_serialize( # process the path parameters # process the query parameters - if enterprise_ids is not None: - - _query_params.append(('enterpriseIds', enterprise_ids)) - # 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` @@ -51070,6 +52776,19 @@ def _v1_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] = [ @@ -51077,8 +52796,8 @@ def _v1_enterprises_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/enterprises', + method='POST', + resource_path='/v1/extranet-b2b-monitoring/peering-service/consumption-overview', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -51095,10 +52814,10 @@ def _v1_enterprises_get_serialize( @validate_call - def v1_enterprises_managed_get( + def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - type: Annotated[StrictStr, Field(description="msp or enterprise")], + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -51111,15 +52830,15 @@ def v1_enterprises_managed_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1EnterprisesManagedGetResponse: - """v1_enterprises_managed_get + ) -> V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse: + """v1_extranet_b2b_monitoring_peering_service_service_customer_list_post - Get enterprises managed by your tenant, filtered by enterprise type. + Get b2b extranet peering service customer list within a time window :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param type: msp or enterprise (required) - :type type: 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -51142,9 +52861,9 @@ def v1_enterprises_managed_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_managed_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( authorization=authorization, - type=type, + 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, @@ -51152,7 +52871,7 @@ def v1_enterprises_managed_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesManagedGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", } response_data = self.api_client.call_api( *_param, @@ -51166,10 +52885,10 @@ def v1_enterprises_managed_get( @validate_call - def v1_enterprises_managed_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 ")], - type: Annotated[StrictStr, Field(description="msp or enterprise")], + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -51182,15 +52901,15 @@ def v1_enterprises_managed_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[V1EnterprisesManagedGetResponse]: - """v1_enterprises_managed_get + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse]: + """v1_extranet_b2b_monitoring_peering_service_service_customer_list_post - Get enterprises managed by your tenant, filtered by enterprise type. + Get b2b extranet peering service customer list within a time window :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param type: msp or enterprise (required) - :type type: 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -51213,9 +52932,9 @@ def v1_enterprises_managed_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_managed_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( authorization=authorization, - type=type, + 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, @@ -51223,7 +52942,7 @@ def v1_enterprises_managed_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesManagedGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", } response_data = self.api_client.call_api( *_param, @@ -51237,10 +52956,10 @@ def v1_enterprises_managed_get_with_http_info( @validate_call - def v1_enterprises_managed_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 ")], - type: Annotated[StrictStr, Field(description="msp or enterprise")], + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -51254,14 +52973,14 @@ def v1_enterprises_managed_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprises_managed_get + """v1_extranet_b2b_monitoring_peering_service_service_customer_list_post - Get enterprises managed by your tenant, filtered by enterprise type. + Get b2b extranet peering service customer list within a time window :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param type: msp or enterprise (required) - :type type: 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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -51284,9 +53003,9 @@ def v1_enterprises_managed_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_managed_get_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( authorization=authorization, - type=type, + 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, @@ -51294,7 +53013,7 @@ def v1_enterprises_managed_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1EnterprisesManagedGetResponse", + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", } response_data = self.api_client.call_api( *_param, @@ -51303,10 +53022,10 @@ def v1_enterprises_managed_get_without_preload_content( return response_data.response - def _v1_enterprises_managed_get_serialize( + def _v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_serialize( self, authorization, - type, + v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request, _request_auth, _content_type, _headers, @@ -51329,15 +53048,13 @@ def _v1_enterprises_managed_get_serialize( # process the path parameters # 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_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` @@ -51348,6 +53065,19 @@ def _v1_enterprises_managed_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] = [ @@ -51355,8 +53085,8 @@ def _v1_enterprises_managed_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/enterprises/managed', + 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, @@ -51373,10 +53103,10 @@ def _v1_enterprises_managed_get_serialize( @validate_call - def v1_enterprises_patch( + def v1_extranet_b2b_monitoring_peering_service_service_health_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_enterprises_patch_request: V1EnterprisesPatchRequest, + v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -51389,15 +53119,15 @@ def v1_enterprises_patch( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_enterprises_patch + ) -> V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse: + """v1_extranet_b2b_monitoring_peering_service_service_health_post - Updates all relevent enterprise information. + 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 v1_enterprises_patch_request: (required) - :type v1_enterprises_patch_request: V1EnterprisesPatchRequest + :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 @@ -51420,9 +53150,9 @@ def v1_enterprises_patch( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_patch_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( authorization=authorization, - v1_enterprises_patch_request=v1_enterprises_patch_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, @@ -51430,7 +53160,7 @@ def v1_enterprises_patch( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", } response_data = self.api_client.call_api( *_param, @@ -51444,10 +53174,10 @@ def v1_enterprises_patch( @validate_call - def v1_enterprises_patch_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 ")], - v1_enterprises_patch_request: V1EnterprisesPatchRequest, + v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -51460,15 +53190,15 @@ def v1_enterprises_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_enterprises_patch + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse]: + """v1_extranet_b2b_monitoring_peering_service_service_health_post - Updates all relevent enterprise information. + 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 v1_enterprises_patch_request: (required) - :type v1_enterprises_patch_request: V1EnterprisesPatchRequest + :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 @@ -51491,9 +53221,9 @@ def v1_enterprises_patch_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_patch_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( authorization=authorization, - v1_enterprises_patch_request=v1_enterprises_patch_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, @@ -51501,7 +53231,7 @@ def v1_enterprises_patch_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", } response_data = self.api_client.call_api( *_param, @@ -51515,10 +53245,10 @@ def v1_enterprises_patch_with_http_info( @validate_call - def v1_enterprises_patch_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 ")], - v1_enterprises_patch_request: V1EnterprisesPatchRequest, + v1_extranet_b2b_monitoring_peering_service_service_health_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -51532,14 +53262,14 @@ def v1_enterprises_patch_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprises_patch + """v1_extranet_b2b_monitoring_peering_service_service_health_post - Updates all relevent enterprise information. + 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 v1_enterprises_patch_request: (required) - :type v1_enterprises_patch_request: V1EnterprisesPatchRequest + :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 @@ -51562,9 +53292,9 @@ def v1_enterprises_patch_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_patch_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( authorization=authorization, - v1_enterprises_patch_request=v1_enterprises_patch_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, @@ -51572,7 +53302,7 @@ def v1_enterprises_patch_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", } response_data = self.api_client.call_api( *_param, @@ -51581,10 +53311,10 @@ def v1_enterprises_patch_without_preload_content( return response_data.response - def _v1_enterprises_patch_serialize( + def _v1_extranet_b2b_monitoring_peering_service_service_health_post_serialize( self, authorization, - v1_enterprises_patch_request, + v1_extranet_b2b_monitoring_peering_service_service_health_post_request, _request_auth, _content_type, _headers, @@ -51612,10 +53342,17 @@ def _v1_enterprises_patch_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_enterprises_patch_request is not None: - _body_params = v1_enterprises_patch_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` + 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: @@ -51637,8 +53374,8 @@ def _v1_enterprises_patch_serialize( ] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/enterprises', + method='POST', + resource_path='/v1/extranet-b2b-monitoring/peering-service/service-health', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -51655,10 +53392,10 @@ def _v1_enterprises_patch_serialize( @validate_call - def v1_enterprises_put( + def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_enterprises_put_request: V1EnterprisesPutRequest, + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -51671,15 +53408,15 @@ def v1_enterprises_put( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> None: - """v1_enterprises_put + ) -> V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse: + """v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post - Create a new enterprise with company details, account type, and admin user. + Get b2b extranet peering service overtime consumption :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_enterprises_put_request: (required) - :type v1_enterprises_put_request: V1EnterprisesPutRequest + :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 @@ -51702,9 +53439,9 @@ def v1_enterprises_put( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_put_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( authorization=authorization, - v1_enterprises_put_request=v1_enterprises_put_request, + 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, @@ -51712,7 +53449,7 @@ def v1_enterprises_put( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -51726,10 +53463,10 @@ def v1_enterprises_put( @validate_call - def v1_enterprises_put_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 ")], - v1_enterprises_put_request: V1EnterprisesPutRequest, + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -51742,15 +53479,15 @@ def v1_enterprises_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_enterprises_put + ) -> ApiResponse[V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse]: + """v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post - Create a new enterprise with company details, account type, and admin user. + Get b2b extranet peering service overtime consumption :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_enterprises_put_request: (required) - :type v1_enterprises_put_request: V1EnterprisesPutRequest + :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 @@ -51773,9 +53510,9 @@ def v1_enterprises_put_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_put_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( authorization=authorization, - v1_enterprises_put_request=v1_enterprises_put_request, + 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, @@ -51783,7 +53520,7 @@ def v1_enterprises_put_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -51797,10 +53534,10 @@ def v1_enterprises_put_with_http_info( @validate_call - def v1_enterprises_put_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 ")], - v1_enterprises_put_request: V1EnterprisesPutRequest, + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -51814,14 +53551,14 @@ def v1_enterprises_put_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_enterprises_put + """v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post - Create a new enterprise with company details, account type, and admin user. + Get b2b extranet peering service overtime consumption :param authorization: Bearer token. Format: Bearer (required) :type authorization: str - :param v1_enterprises_put_request: (required) - :type v1_enterprises_put_request: V1EnterprisesPutRequest + :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 @@ -51844,9 +53581,9 @@ def v1_enterprises_put_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_enterprises_put_serialize( + _param = self._v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( authorization=authorization, - v1_enterprises_put_request=v1_enterprises_put_request, + 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, @@ -51854,7 +53591,7 @@ def v1_enterprises_put_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '204': None, + '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", } response_data = self.api_client.call_api( *_param, @@ -51863,10 +53600,10 @@ def v1_enterprises_put_without_preload_content( return response_data.response - def _v1_enterprises_put_serialize( + def _v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_serialize( self, authorization, - v1_enterprises_put_request, + v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request, _request_auth, _content_type, _headers, @@ -51894,10 +53631,17 @@ def _v1_enterprises_put_serialize( _header_params['Authorization'] = authorization # process the form parameters # process the body parameter - if v1_enterprises_put_request is not None: - _body_params = v1_enterprises_put_request + 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` + 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: @@ -51919,8 +53663,8 @@ def _v1_enterprises_put_serialize( ] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/enterprises', + 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, @@ -51937,10 +53681,10 @@ def _v1_enterprises_put_serialize( @validate_call - def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post( + def v1_extranet_public_vif_check_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, + v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -51953,15 +53697,15 @@ 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 + ) -> V1ExtranetPublicVifCheckPostResponse: + """v1_extranet_public_vif_check_post - Get b2b extranet peering service sites usage stats + Check Public Vif service :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 v1_extranet_public_vif_check_post_request: (required) + :type v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -51984,9 +53728,9 @@ 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_public_vif_check_post_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request=v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, + v1_extranet_public_vif_check_post_request=v1_extranet_public_vif_check_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -51994,7 +53738,7 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", + '200': "V1ExtranetPublicVifCheckPostResponse", } response_data = self.api_client.call_api( *_param, @@ -52008,10 +53752,10 @@ 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_public_vif_check_post_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, + v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52024,15 +53768,15 @@ 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[V1ExtranetPublicVifCheckPostResponse]: + """v1_extranet_public_vif_check_post - Get b2b extranet peering service sites usage stats + Check Public Vif service :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 v1_extranet_public_vif_check_post_request: (required) + :type v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -52055,9 +53799,9 @@ 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_public_vif_check_post_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request=v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, + v1_extranet_public_vif_check_post_request=v1_extranet_public_vif_check_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52065,7 +53809,7 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_with_http_in ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", + '200': "V1ExtranetPublicVifCheckPostResponse", } response_data = self.api_client.call_api( *_param, @@ -52079,10 +53823,10 @@ 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_public_vif_check_post_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request: V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostRequest, + v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52096,14 +53840,14 @@ 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_public_vif_check_post - Get b2b extranet peering service sites usage stats + Check Public Vif service :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 v1_extranet_public_vif_check_post_request: (required) + :type v1_extranet_public_vif_check_post_request: V1ExtranetPublicVifCheckPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -52126,9 +53870,9 @@ 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_public_vif_check_post_serialize( authorization=authorization, - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request=v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, + v1_extranet_public_vif_check_post_request=v1_extranet_public_vif_check_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52136,7 +53880,7 @@ def v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_without_prel ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse", + '200': "V1ExtranetPublicVifCheckPostResponse", } response_data = self.api_client.call_api( *_param, @@ -52145,10 +53889,10 @@ 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_public_vif_check_post_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_request, + v1_extranet_public_vif_check_post_request, _request_auth, _content_type, _headers, @@ -52176,8 +53920,8 @@ def _v1_extranet_b2b_monitoring_peering_service_bandwidth_usage_post_serialize( _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 + 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` @@ -52209,7 +53953,7 @@ 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', + resource_path='/v1/extranet-public-vif/check', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -52226,10 +53970,9 @@ 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_public_vif_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request: V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52242,15 +53985,13 @@ 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 + ) -> V1ExtranetPublicVifGetResponse: + """v1_extranet_public_vif_get - Get b2b extranet peering service top consumers usage stats + Get Public Vif summary :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -52273,9 +54014,8 @@ 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_public_vif_get_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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52283,7 +54023,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", + '200': "V1ExtranetPublicVifGetResponse", } response_data = self.api_client.call_api( *_param, @@ -52297,10 +54037,9 @@ 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_public_vif_get_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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52313,15 +54052,13 @@ 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[V1ExtranetPublicVifGetResponse]: + """v1_extranet_public_vif_get - Get b2b extranet peering service top consumers usage stats + Get Public Vif summary :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -52344,9 +54081,8 @@ 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_public_vif_get_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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52354,7 +54090,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_with_htt ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", + '200': "V1ExtranetPublicVifGetResponse", } response_data = self.api_client.call_api( *_param, @@ -52368,10 +54104,9 @@ 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_public_vif_get_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, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52385,14 +54120,12 @@ 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_public_vif_get - Get b2b extranet peering service top consumers usage stats + Get Public Vif summary :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 _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -52415,9 +54148,8 @@ 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_public_vif_get_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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52425,7 +54157,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_without_ ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse", + '200': "V1ExtranetPublicVifGetResponse", } response_data = self.api_client.call_api( *_param, @@ -52434,10 +54166,9 @@ 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_public_vif_get_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_request, _request_auth, _content_type, _headers, @@ -52465,8 +54196,6 @@ def _v1_extranet_b2b_monitoring_peering_service_consumers_usage_top_post_seriali _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` @@ -52477,19 +54206,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] = [ @@ -52497,8 +54213,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='GET', + resource_path='/v1/extranet-public-vif', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -52515,10 +54231,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_public_vif_id_delete( 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)], @@ -52531,15 +54247,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 + ) -> object: + """v1_extranet_public_vif_id_delete - Get b2b extranet peering consumption overview + Delete Public Vif service :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 @@ -52562,9 +54278,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_public_vif_id_delete_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, @@ -52572,7 +54288,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -52586,10 +54302,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_public_vif_id_delete_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)], @@ -52602,15 +54318,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[object]: + """v1_extranet_public_vif_id_delete - Get b2b extranet peering consumption overview + Delete Public Vif service :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 @@ -52633,9 +54349,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_public_vif_id_delete_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, @@ -52643,7 +54359,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_with_ht ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -52657,10 +54373,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_public_vif_id_delete_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)], @@ -52674,14 +54390,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_public_vif_id_delete - Get b2b extranet peering consumption overview + Delete Public Vif service :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 @@ -52704,9 +54420,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_public_vif_id_delete_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, @@ -52714,7 +54430,7 @@ def v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_without ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostResponse", + '200': "object", } response_data = self.api_client.call_api( *_param, @@ -52723,10 +54439,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_public_vif_id_delete_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_consumption_overview_post_request, + id, _request_auth, _content_type, _headers, @@ -52748,14 +54464,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` @@ -52766,19 +54482,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] = [ @@ -52786,8 +54489,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='DELETE', + resource_path='/v1/extranet-public-vif/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -52804,10 +54507,10 @@ 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_public_vif_id_get( 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="Public VIF producer policy")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52820,15 +54523,15 @@ 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 + ) -> V1ExtranetPublicVifIdGetResponse: + """v1_extranet_public_vif_id_get - Get b2b extranet peering service customer list within a time window + Get Public Vif service :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: Public VIF producer policy (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 @@ -52851,9 +54554,9 @@ 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_public_vif_id_get_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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52861,7 +54564,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", + '200': "V1ExtranetPublicVifIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -52875,10 +54578,10 @@ 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_public_vif_id_get_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="Public VIF producer policy")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52891,15 +54594,15 @@ 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[V1ExtranetPublicVifIdGetResponse]: + """v1_extranet_public_vif_id_get - Get b2b extranet peering service customer list within a time window + Get Public Vif service :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: Public VIF producer policy (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 @@ -52922,9 +54625,9 @@ 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_public_vif_id_get_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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -52932,7 +54635,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_with_h ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", + '200': "V1ExtranetPublicVifIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -52946,10 +54649,10 @@ 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_public_vif_id_get_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="Public VIF producer policy")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -52963,14 +54666,14 @@ 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_public_vif_id_get - Get b2b extranet peering service customer list within a time window + Get Public Vif service :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: Public VIF producer policy (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 @@ -52993,9 +54696,9 @@ 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_public_vif_id_get_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, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53003,7 +54706,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_withou ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostResponse", + '200': "V1ExtranetPublicVifIdGetResponse", } response_data = self.api_client.call_api( *_param, @@ -53012,10 +54715,10 @@ 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_public_vif_id_get_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_request, + id, _request_auth, _content_type, _headers, @@ -53037,14 +54740,14 @@ 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 # set the HTTP header `Accept` @@ -53055,19 +54758,6 @@ def _v1_extranet_b2b_monitoring_peering_service_service_customer_list_post_seria ] ) - # 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] = [ @@ -53075,8 +54765,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='GET', + resource_path='/v1/extranet-public-vif/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -53093,10 +54783,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_public_vif_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="Public VIF producer service id")], + v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53109,15 +54800,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 + ) -> V1ExtranetPublicVifIdPutResponse: + """v1_extranet_public_vif_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 Public Vif service :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: Public VIF producer service id (required) + :type id: int + :param v1_extranet_public_vif_id_put_request: (required) + :type v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -53140,9 +54833,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_public_vif_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_public_vif_id_put_request=v1_extranet_public_vif_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53150,7 +54844,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", + '200': "V1ExtranetPublicVifIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -53164,10 +54858,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_public_vif_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="Public VIF producer service id")], + v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53180,15 +54875,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[V1ExtranetPublicVifIdPutResponse]: + """v1_extranet_public_vif_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 Public Vif service :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: Public VIF producer service id (required) + :type id: int + :param v1_extranet_public_vif_id_put_request: (required) + :type v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -53211,9 +54908,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_public_vif_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_public_vif_id_put_request=v1_extranet_public_vif_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53221,7 +54919,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post_with_http_inf ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", + '200': "V1ExtranetPublicVifIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -53235,10 +54933,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_public_vif_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="Public VIF producer service id")], + v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53252,14 +54951,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_public_vif_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 Public Vif service :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: Public VIF producer service id (required) + :type id: int + :param v1_extranet_public_vif_id_put_request: (required) + :type v1_extranet_public_vif_id_put_request: V1ExtranetPublicVifIdPutRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -53282,9 +54983,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_public_vif_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_public_vif_id_put_request=v1_extranet_public_vif_id_put_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53292,7 +54994,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_health_post_without_prelo ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostResponse", + '200': "V1ExtranetPublicVifIdPutResponse", } response_data = self.api_client.call_api( *_param, @@ -53301,10 +55003,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_public_vif_id_put_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_service_health_post_request, + id, + v1_extranet_public_vif_id_put_request, _request_auth, _content_type, _headers, @@ -53326,14 +55029,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_public_vif_id_put_request is not None: + _body_params = v1_extranet_public_vif_id_put_request # set the HTTP header `Accept` @@ -53364,8 +55069,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-public-vif/{id}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -53382,10 +55087,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_public_vif_post( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request: V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest, + v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53398,15 +55103,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 + ) -> V1ExtranetPublicVifPostResponse: + """v1_extranet_public_vif_post - Get b2b extranet peering service overtime consumption + Create Public Vif service :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 v1_extranet_public_vif_post_request: (required) + :type v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -53429,9 +55134,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_public_vif_post_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, + v1_extranet_public_vif_post_request=v1_extranet_public_vif_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53439,7 +55144,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", + '200': "V1ExtranetPublicVifPostResponse", } response_data = self.api_client.call_api( *_param, @@ -53453,10 +55158,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_public_vif_post_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, + v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53469,15 +55174,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[V1ExtranetPublicVifPostResponse]: + """v1_extranet_public_vif_post - Get b2b extranet peering service overtime consumption + Create Public Vif service :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 v1_extranet_public_vif_post_request: (required) + :type v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -53500,9 +55205,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_public_vif_post_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, + v1_extranet_public_vif_post_request=v1_extranet_public_vif_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53510,7 +55215,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", + '200': "V1ExtranetPublicVifPostResponse", } response_data = self.api_client.call_api( *_param, @@ -53524,10 +55229,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_public_vif_post_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, + v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -53541,14 +55246,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_public_vif_post - Get b2b extranet peering service overtime consumption + Create Public Vif service :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 v1_extranet_public_vif_post_request: (required) + :type v1_extranet_public_vif_post_request: V1ExtranetPublicVifPostRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -53571,9 +55276,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_public_vif_post_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, + v1_extranet_public_vif_post_request=v1_extranet_public_vif_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -53581,7 +55286,7 @@ def v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostResponse", + '200': "V1ExtranetPublicVifPostResponse", } response_data = self.api_client.call_api( *_param, @@ -53590,10 +55295,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_public_vif_post_serialize( self, authorization, - v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_post_request, + v1_extranet_public_vif_post_request, _request_auth, _content_type, _headers, @@ -53621,8 +55326,8 @@ def _v1_extranet_b2b_monitoring_peering_service_service_overtime_consumption_pos _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 + if v1_extranet_public_vif_post_request is not None: + _body_params = v1_extranet_public_vif_post_request # set the HTTP header `Accept` @@ -53654,7 +55359,7 @@ 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', + resource_path='/v1/extranet-public-vif', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -90593,6 +92298,267 @@ def _v1_logs_post_serialize( + @validate_call + def v1_msp_managed_enterprise_contract_info_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, + ) -> V1MspManagedEnterpriseContractInfoGetResponse: + """v1_msp_managed_enterprise_contract_info_get + + 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 _request_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_msp_managed_enterprise_contract_info_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': "V1MspManagedEnterpriseContractInfoGetResponse", + } + 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_msp_managed_enterprise_contract_info_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[V1MspManagedEnterpriseContractInfoGetResponse]: + """v1_msp_managed_enterprise_contract_info_get + + 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 _request_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_msp_managed_enterprise_contract_info_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': "V1MspManagedEnterpriseContractInfoGetResponse", + } + 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_msp_managed_enterprise_contract_info_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_msp_managed_enterprise_contract_info_get + + 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 _request_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_msp_managed_enterprise_contract_info_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': "V1MspManagedEnterpriseContractInfoGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_msp_managed_enterprise_contract_info_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/msp/managed-enterprise-contract-info', + 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_nat_entries_device_id_get( self, @@ -92837,7 +94803,268 @@ 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_policy_route_tag_sets_tag_detail_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': "V1PolicyRouteTagSetsTagDetailGetResponse", + } + 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_policy_route_tag_sets_tag_detail_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[V1PolicyRouteTagSetsTagDetailGetResponse]: + """v1_policy_route_tag_sets_tag_detail_get + + Get all the route tags summary for the the enterprise + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param _request_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_policy_route_tag_sets_tag_detail_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': "V1PolicyRouteTagSetsTagDetailGetResponse", + } + 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_policy_route_tag_sets_tag_detail_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_policy_route_tag_sets_tag_detail_get + + Get all the route tags summary for the the enterprise + + :param authorization: Bearer token. Format: Bearer (required) + :type authorization: str + :param _request_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_policy_route_tag_sets_tag_detail_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': "V1PolicyRouteTagSetsTagDetailGetResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _v1_policy_route_tag_sets_tag_detail_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/policy/route-tag-sets/tag-detail', + 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_policy_route_tag_sets_tags_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, + ) -> V1PolicyRouteTagSetsTagsGetResponse: + """v1_policy_route_tag_sets_tags_get + + Get all the route tags for 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_policy_route_tag_sets_tags_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -92846,7 +95073,7 @@ def v1_policy_route_tag_sets_tag_detail_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagDetailGetResponse", + '200': "V1PolicyRouteTagSetsTagsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92860,7 +95087,7 @@ def v1_policy_route_tag_sets_tag_detail_get( @validate_call - def v1_policy_route_tag_sets_tag_detail_get_with_http_info( + def v1_policy_route_tag_sets_tags_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -92875,10 +95102,10 @@ def v1_policy_route_tag_sets_tag_detail_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1PolicyRouteTagSetsTagDetailGetResponse]: - """v1_policy_route_tag_sets_tag_detail_get + ) -> ApiResponse[V1PolicyRouteTagSetsTagsGetResponse]: + """v1_policy_route_tag_sets_tags_get - Get all the route tags summary for the the enterprise + Get all the route tags for the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -92904,7 +95131,7 @@ def v1_policy_route_tag_sets_tag_detail_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tag_detail_get_serialize( + _param = self._v1_policy_route_tag_sets_tags_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -92913,7 +95140,7 @@ def v1_policy_route_tag_sets_tag_detail_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagDetailGetResponse", + '200': "V1PolicyRouteTagSetsTagsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92927,7 +95154,7 @@ def v1_policy_route_tag_sets_tag_detail_get_with_http_info( @validate_call - def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( + def v1_policy_route_tag_sets_tags_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -92943,9 +95170,9 @@ def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_policy_route_tag_sets_tag_detail_get + """v1_policy_route_tag_sets_tags_get - Get all the route tags summary for the the enterprise + Get all the route tags for the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -92971,7 +95198,7 @@ def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tag_detail_get_serialize( + _param = self._v1_policy_route_tag_sets_tags_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -92980,7 +95207,7 @@ def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagDetailGetResponse", + '200': "V1PolicyRouteTagSetsTagsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -92989,7 +95216,7 @@ def v1_policy_route_tag_sets_tag_detail_get_without_preload_content( return response_data.response - def _v1_policy_route_tag_sets_tag_detail_get_serialize( + def _v1_policy_route_tag_sets_tags_get_serialize( self, authorization, _request_auth, @@ -93037,7 +95264,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/policy/route-tag-sets/tags', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -93054,7 +95281,7 @@ def _v1_policy_route_tag_sets_tag_detail_get_serialize( @validate_call - def v1_policy_route_tag_sets_tags_get( + def v1_policy_route_tag_sets_tags_summary_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93069,10 +95296,10 @@ def v1_policy_route_tag_sets_tags_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1PolicyRouteTagSetsTagsGetResponse: - """v1_policy_route_tag_sets_tags_get + ) -> V1PolicyRouteTagSetsTagsSummaryGetResponse: + """v1_policy_route_tag_sets_tags_summary_get - Get all the route tags for the enterprise + Get all the route tags summary for the the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93098,7 +95325,7 @@ def v1_policy_route_tag_sets_tags_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tags_get_serialize( + _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93107,7 +95334,7 @@ def v1_policy_route_tag_sets_tags_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsGetResponse", + '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93121,7 +95348,7 @@ def v1_policy_route_tag_sets_tags_get( @validate_call - def v1_policy_route_tag_sets_tags_get_with_http_info( + def v1_policy_route_tag_sets_tags_summary_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93136,10 +95363,10 @@ def v1_policy_route_tag_sets_tags_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1PolicyRouteTagSetsTagsGetResponse]: - """v1_policy_route_tag_sets_tags_get + ) -> ApiResponse[V1PolicyRouteTagSetsTagsSummaryGetResponse]: + """v1_policy_route_tag_sets_tags_summary_get - Get all the route tags for the enterprise + Get all the route tags summary for the the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93165,7 +95392,7 @@ def v1_policy_route_tag_sets_tags_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tags_get_serialize( + _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93174,7 +95401,7 @@ def v1_policy_route_tag_sets_tags_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsGetResponse", + '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93188,7 +95415,7 @@ def v1_policy_route_tag_sets_tags_get_with_http_info( @validate_call - def v1_policy_route_tag_sets_tags_get_without_preload_content( + def v1_policy_route_tag_sets_tags_summary_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93204,9 +95431,9 @@ def v1_policy_route_tag_sets_tags_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_policy_route_tag_sets_tags_get + """v1_policy_route_tag_sets_tags_summary_get - Get all the route tags for the enterprise + Get all the route tags summary for the the enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93232,7 +95459,7 @@ def v1_policy_route_tag_sets_tags_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_policy_route_tag_sets_tags_get_serialize( + _param = self._v1_policy_route_tag_sets_tags_summary_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93241,7 +95468,7 @@ def v1_policy_route_tag_sets_tags_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsGetResponse", + '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93250,7 +95477,7 @@ def v1_policy_route_tag_sets_tags_get_without_preload_content( return response_data.response - def _v1_policy_route_tag_sets_tags_get_serialize( + def _v1_policy_route_tag_sets_tags_summary_get_serialize( self, authorization, _request_auth, @@ -93298,7 +95525,7 @@ def _v1_policy_route_tag_sets_tags_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/policy/route-tag-sets/tags', + resource_path='/v1/policy/route-tag-sets/tags-summary', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -93315,7 +95542,7 @@ def _v1_policy_route_tag_sets_tags_get_serialize( @validate_call - def v1_policy_route_tag_sets_tags_summary_get( + def v1_presharedkey_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93330,10 +95557,10 @@ 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 + ) -> V1PresharedkeyGetResponse: + """v1_presharedkey_get - Get all the route tags summary for the the enterprise + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93359,7 +95586,7 @@ 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_presharedkey_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93368,7 +95595,7 @@ def v1_policy_route_tag_sets_tags_summary_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", + '200': "V1PresharedkeyGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93382,7 +95609,7 @@ 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_presharedkey_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93397,10 +95624,10 @@ 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[V1PresharedkeyGetResponse]: + """v1_presharedkey_get - Get all the route tags summary for the the enterprise + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93426,7 +95653,7 @@ 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_presharedkey_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93435,7 +95662,7 @@ def v1_policy_route_tag_sets_tags_summary_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", + '200': "V1PresharedkeyGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93449,7 +95676,7 @@ 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_presharedkey_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93465,9 +95692,9 @@ 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_presharedkey_get - Get all the route tags summary for the the enterprise + Get all domain categories from the DPI engine :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93493,7 +95720,7 @@ 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_presharedkey_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93502,7 +95729,7 @@ def v1_policy_route_tag_sets_tags_summary_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PolicyRouteTagSetsTagsSummaryGetResponse", + '200': "V1PresharedkeyGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93511,7 +95738,7 @@ 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_presharedkey_get_serialize( self, authorization, _request_auth, @@ -93559,7 +95786,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/presharedkey', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -93576,7 +95803,7 @@ def _v1_policy_route_tag_sets_tags_summary_get_serialize( @validate_call - def v1_presharedkey_get( + def v1_qos_circuit_profiles_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93591,10 +95818,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 + ) -> V1QosCircuitProfilesGetResponse: + """v1_qos_circuit_profiles_get - Get all domain categories from the DPI engine + Returns a list of QoS profiles for circuits with associated queues & attributes :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93620,7 +95847,7 @@ def v1_presharedkey_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_presharedkey_get_serialize( + _param = self._v1_qos_circuit_profiles_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93629,7 +95856,7 @@ def v1_presharedkey_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PresharedkeyGetResponse", + '200': "V1QosCircuitProfilesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93643,7 +95870,7 @@ def v1_presharedkey_get( @validate_call - def v1_presharedkey_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[ @@ -93658,10 +95885,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[V1QosCircuitProfilesGetResponse]: + """v1_qos_circuit_profiles_get - Get all domain categories from the DPI engine + Returns a list of QoS profiles for circuits with associated queues & attributes :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93687,7 +95914,7 @@ def v1_presharedkey_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_presharedkey_get_serialize( + _param = self._v1_qos_circuit_profiles_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93696,7 +95923,7 @@ def v1_presharedkey_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1PresharedkeyGetResponse", + '200': "V1QosCircuitProfilesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93710,7 +95937,7 @@ def v1_presharedkey_get_with_http_info( @validate_call - def v1_presharedkey_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[ @@ -93726,133 +95953,6 @@ 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 - - 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_presharedkey_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': "V1PresharedkeyGetResponse", - } - response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout - ) - return response_data.response - - - def _v1_presharedkey_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/presharedkey', - 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_qos_circuit_profiles_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, - ) -> V1QosCircuitProfilesGetResponse: """v1_qos_circuit_profiles_get Returns a list of QoS profiles for circuits with associated queues & attributes @@ -93896,6 +95996,133 @@ def v1_qos_circuit_profiles_get( *_param, _request_timeout=_request_timeout ) + return response_data.response + + + def _v1_qos_circuit_profiles_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/qos/circuit-profiles', + 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_regions_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, + ) -> V1RegionsGetResponse: + """v1_regions_get + + Get regions used 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_regions_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': "V1RegionsGetResponse", + } + 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, @@ -93904,7 +96131,7 @@ def v1_qos_circuit_profiles_get( @validate_call - def v1_qos_circuit_profiles_get_with_http_info( + def v1_regions_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93919,10 +96146,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[V1RegionsGetResponse]: + """v1_regions_get - Returns a list of QoS profiles for circuits with associated queues & attributes + Get regions used for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -93948,7 +96175,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_regions_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -93957,7 +96184,7 @@ def v1_qos_circuit_profiles_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1QosCircuitProfilesGetResponse", + '200': "V1RegionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -93971,7 +96198,7 @@ def v1_qos_circuit_profiles_get_with_http_info( @validate_call - def v1_qos_circuit_profiles_get_without_preload_content( + def v1_regions_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -93987,9 +96214,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_regions_get - Returns a list of QoS profiles for circuits with associated queues & attributes + Get regions used for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -94015,7 +96242,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_regions_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -94024,7 +96251,7 @@ def v1_qos_circuit_profiles_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1QosCircuitProfilesGetResponse", + '200': "V1RegionsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94033,7 +96260,7 @@ def v1_qos_circuit_profiles_get_without_preload_content( return response_data.response - def _v1_qos_circuit_profiles_get_serialize( + def _v1_regions_get_serialize( self, authorization, _request_auth, @@ -94081,7 +96308,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/regions', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -94098,9 +96325,11 @@ def _v1_qos_circuit_profiles_get_serialize( @validate_call - def v1_regions_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)], @@ -94113,13 +96342,16 @@ 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 + ) -> V1SearchGetResponse: + """v1_search_get - Get regions used for the current 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 @@ -94142,8 +96374,10 @@ def v1_regions_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_regions_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, @@ -94151,7 +96385,7 @@ def v1_regions_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1RegionsGetResponse", + '200': "V1SearchGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94165,9 +96399,11 @@ def v1_regions_get( @validate_call - def v1_regions_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)], @@ -94180,13 +96416,16 @@ 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[V1SearchGetResponse]: + """v1_search_get - Get regions used for the current 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 @@ -94209,8 +96448,10 @@ def v1_regions_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_regions_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, @@ -94218,7 +96459,7 @@ def v1_regions_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1RegionsGetResponse", + '200': "V1SearchGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94232,9 +96473,11 @@ def v1_regions_get_with_http_info( @validate_call - def v1_regions_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)], @@ -94248,12 +96491,15 @@ 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_search_get - Get regions used for the current 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 @@ -94276,8 +96522,10 @@ def v1_regions_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_regions_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, @@ -94285,7 +96533,7 @@ def v1_regions_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1RegionsGetResponse", + '200': "V1SearchGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94294,9 +96542,11 @@ def v1_regions_get_without_preload_content( return response_data.response - def _v1_regions_get_serialize( + def _v1_search_get_serialize( self, authorization, + max_results, + search, _request_auth, _content_type, _headers, @@ -94319,6 +96569,14 @@ def _v1_regions_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 @@ -94342,7 +96600,7 @@ def _v1_regions_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/regions', + resource_path='/v1/search', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -94359,11 +96617,10 @@ def _v1_regions_get_serialize( @validate_call - def v1_search_get( + def v1_site_details_sitelists_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_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94376,16 +96633,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 + ) -> V1SiteDetailsSitelistsPostResponse: + """v1_site_details_sitelists_post + Get a list of site list references for a 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_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 @@ -94408,10 +96664,9 @@ def v1_search_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_search_get_serialize( + _param = self._v1_site_details_sitelists_post_serialize( authorization=authorization, - max_results=max_results, - search=search, + v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94419,7 +96674,7 @@ def v1_search_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SearchGetResponse", + '200': "V1SiteDetailsSitelistsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -94433,11 +96688,10 @@ def v1_search_get( @validate_call - def v1_search_get_with_http_info( + def v1_site_details_sitelists_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_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94450,16 +96704,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[V1SiteDetailsSitelistsPostResponse]: + """v1_site_details_sitelists_post + Get a list of site list references for a 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_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 @@ -94482,10 +96735,9 @@ def v1_search_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_search_get_serialize( + _param = self._v1_site_details_sitelists_post_serialize( authorization=authorization, - max_results=max_results, - search=search, + v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94493,7 +96745,7 @@ def v1_search_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SearchGetResponse", + '200': "V1SiteDetailsSitelistsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -94507,11 +96759,10 @@ def v1_search_get_with_http_info( @validate_call - def v1_search_get_without_preload_content( + def v1_site_details_sitelists_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_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94525,15 +96776,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_site_details_sitelists_post + Get a list of site list references for a 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_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 @@ -94556,10 +96806,9 @@ def v1_search_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_search_get_serialize( + _param = self._v1_site_details_sitelists_post_serialize( authorization=authorization, - max_results=max_results, - search=search, + v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94567,7 +96816,7 @@ def v1_search_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SearchGetResponse", + '200': "V1SiteDetailsSitelistsPostResponse", } response_data = self.api_client.call_api( *_param, @@ -94576,11 +96825,10 @@ def v1_search_get_without_preload_content( return response_data.response - def _v1_search_get_serialize( + def _v1_site_details_sitelists_post_serialize( self, authorization, - max_results, - search, + v1_site_details_sitelists_post_request, _request_auth, _content_type, _headers, @@ -94603,19 +96851,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_site_details_sitelists_post_request is not None: + _body_params = v1_site_details_sitelists_post_request # set the HTTP header `Accept` @@ -94626,6 +96868,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] = [ @@ -94633,8 +96888,8 @@ def _v1_search_get_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/search', + method='POST', + resource_path='/v1/site/details/sitelists', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -94651,10 +96906,10 @@ def _v1_search_get_serialize( @validate_call - def v1_site_details_sitelists_post( + def v1_site_id_details_interfaces_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94667,15 +96922,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 + ) -> V1SiteIdDetailsInterfacesGetResponse: + """v1_site_id_details_interfaces_get - Get a list of site list references for a site + Get a list of a site's interfaces, loopback listed first :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 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 @@ -94698,9 +96953,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_site_id_details_interfaces_get_serialize( authorization=authorization, - v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94708,7 +96963,7 @@ def v1_site_details_sitelists_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteDetailsSitelistsPostResponse", + '200': "V1SiteIdDetailsInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94722,10 +96977,10 @@ def v1_site_details_sitelists_post( @validate_call - def v1_site_details_sitelists_post_with_http_info( + def v1_site_id_details_interfaces_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94738,15 +96993,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[V1SiteIdDetailsInterfacesGetResponse]: + """v1_site_id_details_interfaces_get - Get a list of site list references for a site + Get a list of a site's interfaces, loopback listed first :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 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 @@ -94769,9 +97024,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_site_id_details_interfaces_get_serialize( authorization=authorization, - v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94779,7 +97034,7 @@ def v1_site_details_sitelists_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteDetailsSitelistsPostResponse", + '200': "V1SiteIdDetailsInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94793,10 +97048,10 @@ def v1_site_details_sitelists_post_with_http_info( @validate_call - def v1_site_details_sitelists_post_without_preload_content( + def v1_site_id_details_interfaces_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - v1_site_details_sitelists_post_request: V1SiteDetailsSitelistsPostRequest, + id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94810,14 +97065,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_site_id_details_interfaces_get - Get a list of site list references for a site + Get a list of a site's interfaces, loopback listed first :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 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 @@ -94840,9 +97095,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_site_id_details_interfaces_get_serialize( authorization=authorization, - v1_site_details_sitelists_post_request=v1_site_details_sitelists_post_request, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94850,7 +97105,7 @@ def v1_site_details_sitelists_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteDetailsSitelistsPostResponse", + '200': "V1SiteIdDetailsInterfacesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -94859,10 +97114,10 @@ def v1_site_details_sitelists_post_without_preload_content( return response_data.response - def _v1_site_details_sitelists_post_serialize( + def _v1_site_id_details_interfaces_get_serialize( self, authorization, - v1_site_details_sitelists_post_request, + id, _request_auth, _content_type, _headers, @@ -94884,14 +97139,14 @@ def _v1_site_details_sitelists_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_site_details_sitelists_post_request is not None: - _body_params = v1_site_details_sitelists_post_request # set the HTTP header `Accept` @@ -94902,19 +97157,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] = [ @@ -94922,8 +97164,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/site/{id}/details/interfaces', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -94940,10 +97182,9 @@ def _v1_site_details_sitelists_post_serialize( @validate_call - def v1_site_id_details_interfaces_get( + def v1_sites_details_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], - id: StrictInt, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -94956,15 +97197,13 @@ def v1_site_id_details_interfaces_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SiteIdDetailsInterfacesGetResponse: - """v1_site_id_details_interfaces_get + ) -> V1SitesDetailsGetResponse: + """v1_sites_details_get - Get a list of a site's interfaces, loopback listed first + Get a list of sites with aggregated values and site wide status :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 @@ -94987,9 +97226,8 @@ def v1_site_id_details_interfaces_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_site_id_details_interfaces_get_serialize( + _param = self._v1_sites_details_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -94997,7 +97235,7 @@ def v1_site_id_details_interfaces_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteIdDetailsInterfacesGetResponse", + '200': "V1SitesDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95011,10 +97249,9 @@ def v1_site_id_details_interfaces_get( @validate_call - def v1_site_id_details_interfaces_get_with_http_info( + def v1_sites_details_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)], @@ -95027,15 +97264,13 @@ def v1_site_id_details_interfaces_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SiteIdDetailsInterfacesGetResponse]: - """v1_site_id_details_interfaces_get + ) -> ApiResponse[V1SitesDetailsGetResponse]: + """v1_sites_details_get - Get a list of a site's interfaces, loopback listed first + Get a list of sites with aggregated values and site wide status :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 @@ -95058,9 +97293,8 @@ def v1_site_id_details_interfaces_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_site_id_details_interfaces_get_serialize( + _param = self._v1_sites_details_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95068,7 +97302,7 @@ def v1_site_id_details_interfaces_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteIdDetailsInterfacesGetResponse", + '200': "V1SitesDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95082,10 +97316,9 @@ def v1_site_id_details_interfaces_get_with_http_info( @validate_call - def v1_site_id_details_interfaces_get_without_preload_content( + def v1_sites_details_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)], @@ -95099,14 +97332,12 @@ def v1_site_id_details_interfaces_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_site_id_details_interfaces_get + """v1_sites_details_get - Get a list of a site's interfaces, loopback listed first + Get a list of sites with aggregated values and site wide status :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 @@ -95129,9 +97360,8 @@ def v1_site_id_details_interfaces_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_site_id_details_interfaces_get_serialize( + _param = self._v1_sites_details_get_serialize( authorization=authorization, - id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -95139,7 +97369,7 @@ def v1_site_id_details_interfaces_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SiteIdDetailsInterfacesGetResponse", + '200': "V1SitesDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95148,10 +97378,9 @@ def v1_site_id_details_interfaces_get_without_preload_content( return response_data.response - def _v1_site_id_details_interfaces_get_serialize( + def _v1_sites_details_get_serialize( self, authorization, - id, _request_auth, _content_type, _headers, @@ -95173,8 +97402,6 @@ def _v1_site_id_details_interfaces_get_serialize( _body_params: Optional[bytes] = None # process the path parameters - if id is not None: - _path_params['id'] = id # process the query parameters # process the header parameters if authorization is not None: @@ -95199,7 +97426,7 @@ def _v1_site_id_details_interfaces_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/site/{id}/details/interfaces', + resource_path='/v1/sites/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -95216,7 +97443,7 @@ def _v1_site_id_details_interfaces_get_serialize( @validate_call - def v1_sites_details_get( + def v1_sites_get( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95231,10 +97458,10 @@ def v1_sites_details_get( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> V1SitesDetailsGetResponse: - """v1_sites_details_get + ) -> V1SitesGetResponse: + """v1_sites_get - Get a list of sites with aggregated values and site wide status + Get sites for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95260,7 +97487,7 @@ def v1_sites_details_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_details_get_serialize( + _param = self._v1_sites_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95269,7 +97496,7 @@ def v1_sites_details_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesDetailsGetResponse", + '200': "V1SitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95283,7 +97510,7 @@ def v1_sites_details_get( @validate_call - def v1_sites_details_get_with_http_info( + def v1_sites_get_with_http_info( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95298,10 +97525,10 @@ def v1_sites_details_get_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[V1SitesDetailsGetResponse]: - """v1_sites_details_get + ) -> ApiResponse[V1SitesGetResponse]: + """v1_sites_get - Get a list of sites with aggregated values and site wide status + Get sites for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95327,7 +97554,7 @@ def v1_sites_details_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_details_get_serialize( + _param = self._v1_sites_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95336,7 +97563,7 @@ def v1_sites_details_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesDetailsGetResponse", + '200': "V1SitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95350,7 +97577,7 @@ def v1_sites_details_get_with_http_info( @validate_call - def v1_sites_details_get_without_preload_content( + def v1_sites_get_without_preload_content( self, authorization: Annotated[StrictStr, Field(description="Bearer token. Format: Bearer ")], _request_timeout: Union[ @@ -95366,9 +97593,9 @@ def v1_sites_details_get_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """v1_sites_details_get + """v1_sites_get - Get a list of sites with aggregated values and site wide status + Get sites for the current enterprise :param authorization: Bearer token. Format: Bearer (required) :type authorization: str @@ -95394,7 +97621,7 @@ def v1_sites_details_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_details_get_serialize( + _param = self._v1_sites_get_serialize( authorization=authorization, _request_auth=_request_auth, _content_type=_content_type, @@ -95403,7 +97630,7 @@ def v1_sites_details_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesDetailsGetResponse", + '200': "V1SitesGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95412,7 +97639,7 @@ def v1_sites_details_get_without_preload_content( return response_data.response - def _v1_sites_details_get_serialize( + def _v1_sites_get_serialize( self, authorization, _request_auth, @@ -95460,7 +97687,7 @@ def _v1_sites_details_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/sites/details', + resource_path='/v1/sites', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -95477,9 +97704,12 @@ def _v1_sites_details_get_serialize( @validate_call - def v1_sites_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)], @@ -95492,13 +97722,19 @@ 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 + ) -> V1SitesMapDetailsGetResponse: + """v1_sites_map_details_get - Get sites 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 @@ -95521,8 +97757,11 @@ def v1_sites_get( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_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, @@ -95530,7 +97769,7 @@ def v1_sites_get( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesGetResponse", + '200': "V1SitesMapDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95544,9 +97783,12 @@ def v1_sites_get( @validate_call - def v1_sites_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)], @@ -95559,13 +97801,19 @@ 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[V1SitesMapDetailsGetResponse]: + """v1_sites_map_details_get - Get sites 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 @@ -95588,8 +97836,11 @@ def v1_sites_get_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_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, @@ -95597,7 +97848,7 @@ def v1_sites_get_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesGetResponse", + '200': "V1SitesMapDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95611,9 +97862,12 @@ def v1_sites_get_with_http_info( @validate_call - def v1_sites_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)], @@ -95627,12 +97881,18 @@ 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_map_details_get - Get sites 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 @@ -95655,8 +97915,11 @@ def v1_sites_get_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._v1_sites_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, @@ -95664,7 +97927,7 @@ def v1_sites_get_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "V1SitesGetResponse", + '200': "V1SitesMapDetailsGetResponse", } response_data = self.api_client.call_api( *_param, @@ -95673,9 +97936,12 @@ def v1_sites_get_without_preload_content( return response_data.response - def _v1_sites_get_serialize( + def _v1_sites_map_details_get_serialize( self, authorization, + lan_segment_ids, + site_ids, + site_list_ids, _request_auth, _content_type, _headers, @@ -95685,6 +97951,9 @@ def _v1_sites_get_serialize( _host = None _collection_formats: Dict[str, str] = { + 'lanSegmentIds': 'multi', + 'siteIds': 'multi', + 'siteListIds': 'multi', } _path_params: Dict[str, str] = {} @@ -95698,6 +97967,18 @@ def _v1_sites_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 @@ -95721,7 +98002,7 @@ def _v1_sites_get_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v1/sites', + resource_path='/v1/sites/map/details', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/graphiant_sdk/api_client.py b/graphiant_sdk/api_client.py index be8a24ff..6c5d9f92 100644 --- a/graphiant_sdk/api_client.py +++ b/graphiant_sdk/api_client.py @@ -91,7 +91,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/26.4.0/python' + self.user_agent = 'OpenAPI-Generator/26.5.0/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/graphiant_sdk/configuration.py b/graphiant_sdk/configuration.py index 18d3a166..32747141 100644 --- a/graphiant_sdk/configuration.py +++ b/graphiant_sdk/configuration.py @@ -554,7 +554,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: 26.4.0".\ + "SDK Package Version: 26.5.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/graphiant_sdk/models/__init__.py b/graphiant_sdk/models/__init__.py index f3e2759d..31f31e21 100644 --- a/graphiant_sdk/models/__init__.py +++ b/graphiant_sdk/models/__init__.py @@ -79,6 +79,8 @@ from graphiant_sdk.models.auditmon_histogram import AuditmonHistogram from graphiant_sdk.models.auditmon_selector import AuditmonSelector from graphiant_sdk.models.auth_permissions import AuthPermissions +from graphiant_sdk.models.common_billing_contract import CommonBillingContract +from graphiant_sdk.models.common_billing_time_period import CommonBillingTimePeriod from graphiant_sdk.models.common_page_info import CommonPageInfo from graphiant_sdk.models.common_page_request import CommonPageRequest from graphiant_sdk.models.common_permissions import CommonPermissions @@ -309,11 +311,13 @@ 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_sites_map import ManaV2LanSegmentSitesMap from graphiant_sdk.models.mana_v2_latency_bandwidth import ManaV2LatencyBandwidth from graphiant_sdk.models.mana_v2_lldp_neighbor import ManaV2LldpNeighbor from graphiant_sdk.models.mana_v2_location import ManaV2Location from graphiant_sdk.models.mana_v2_ma_csec_configuration import ManaV2MaCsecConfiguration from graphiant_sdk.models.mana_v2_mana_configuration import ManaV2ManaConfiguration +from graphiant_sdk.models.mana_v2_managed_enterprise_contract_info import ManaV2ManagedEnterpriseContractInfo from graphiant_sdk.models.mana_v2_nat_policy_ruleset_config_nullable_rule import ManaV2NATPolicyRulesetConfigNullableRule from graphiant_sdk.models.mana_v2_nat_policy_ruleset_config_nullable_rule_rule import ManaV2NATPolicyRulesetConfigNullableRuleRule from graphiant_sdk.models.mana_v2_nat_policy_ruleset_rule import ManaV2NATPolicyRulesetRule @@ -471,6 +475,18 @@ 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_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 from graphiant_sdk.models.mana_v2_region import ManaV2Region @@ -508,6 +524,9 @@ from graphiant_sdk.models.mana_v2_single_route_tag_route_tag_element import ManaV2SingleRouteTagRouteTagElement from graphiant_sdk.models.mana_v2_site import ManaV2Site from graphiant_sdk.models.mana_v2_site_device_stub import ManaV2SiteDeviceStub +from graphiant_sdk.models.mana_v2_site_device_summary import ManaV2SiteDeviceSummary +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation +from graphiant_sdk.models.mana_v2_site_lan_segment_device_buckets import ManaV2SiteLanSegmentDeviceBuckets from graphiant_sdk.models.mana_v2_site_list import ManaV2SiteList from graphiant_sdk.models.mana_v2_site_list_entry import ManaV2SiteListEntry from graphiant_sdk.models.mana_v2_site_list_site_entry import ManaV2SiteListSiteEntry @@ -738,12 +757,9 @@ 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 @@ -753,11 +769,7 @@ 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 +989,14 @@ 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_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 @@ -1152,6 +1172,7 @@ from graphiant_sdk.models.v1_lldp_interface_id_vendors_get_response import V1LldpInterfaceIdVendorsGetResponse 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_msp_managed_enterprise_contract_info_get_response import V1MspManagedEnterpriseContractInfoGetResponse from graphiant_sdk.models.v1_nat_entries_device_id_get_response import V1NatEntriesDeviceIdGetResponse from graphiant_sdk.models.v1_nat_utilization_device_id_get_response import V1NatUtilizationDeviceIdGetResponse from graphiant_sdk.models.v1_onboarding_cloudinit_get_response import V1OnboardingCloudinitGetResponse @@ -1173,6 +1194,7 @@ from graphiant_sdk.models.v1_site_id_details_interfaces_get_response import V1SiteIdDetailsInterfacesGetResponse from graphiant_sdk.models.v1_sites_details_get_response import V1SitesDetailsGetResponse from graphiant_sdk.models.v1_sites_get_response import V1SitesGetResponse +from graphiant_sdk.models.v1_sites_map_details_get_response import V1SitesMapDetailsGetResponse 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_sites_site_id_circuits_get_response import V1SitesSiteIdCircuitsGetResponse diff --git a/graphiant_sdk/models/alertservice_alert_record.py b/graphiant_sdk/models/alertservice_alert_record.py index 70d6cd99..ce8c933d 100644 --- a/graphiant_sdk/models/alertservice_alert_record.py +++ b/graphiant_sdk/models/alertservice_alert_record.py @@ -29,35 +29,35 @@ 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") - 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") + 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]}) 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") - 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)") + 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"]}) __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( 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 fc871f4d..82e58c8c 100644 --- a/graphiant_sdk/models/alertservice_allow_alert_notifcation_list_record.py +++ b/graphiant_sdk/models/alertservice_allow_alert_notifcation_list_record.py @@ -27,19 +27,19 @@ class AlertserviceAllowAlertNotifcationListRecord(BaseModel): """ AlertserviceAllowAlertNotifcationListRecord """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["createTime", "deviceInterface", "deviceName", "enterpriseName", "entityId", "isWanCircuit", "noteText", "peerDeviceInterface", "peerDeviceName", "ruleId", "ruleName", "siteName", "vrfId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/alertservice_create_integration_body.py b/graphiant_sdk/models/alertservice_create_integration_body.py index 6fd04b7f..ed074b64 100644 --- a/graphiant_sdk/models/alertservice_create_integration_body.py +++ b/graphiant_sdk/models/alertservice_create_integration_body.py @@ -29,13 +29,13 @@ class AlertserviceCreateIntegrationBody(BaseModel): """ AlertserviceCreateIntegrationBody """ # noqa: E501 - created_by: Optional[StrictStr] = Field(default=None, description="ID of the user who created the integration", alias="createdBy") + 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_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdOn") details: Optional[AlertserviceIntegrationDetails] = None - 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") + 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"]}) __properties: ClassVar[List[str]] = ["createdBy", "createdOn", "details", "enterprise", "integrationType", "isActive", "nickName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/alertservice_integration.py b/graphiant_sdk/models/alertservice_integration.py index f6f17c02..3236d882 100644 --- a/graphiant_sdk/models/alertservice_integration.py +++ b/graphiant_sdk/models/alertservice_integration.py @@ -28,15 +28,15 @@ class AlertserviceIntegration(BaseModel): """ AlertserviceIntegration """ # noqa: E501 - created_by: Optional[StrictStr] = Field(default=None, alias="createdBy") - created_on: Optional[StrictStr] = Field(default=None, alias="createdOn") + 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"]}) details: Optional[AlertserviceIntegrationDetails] = None - 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 + 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"]}) __properties: ClassVar[List[str]] = ["createdBy", "createdOn", "details", "enterpriseId", "id", "isActive", "lastScanned", "nickName", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/alertservice_integration_details.py b/graphiant_sdk/models/alertservice_integration_details.py index ca6c883c..6a858b4a 100644 --- a/graphiant_sdk/models/alertservice_integration_details.py +++ b/graphiant_sdk/models/alertservice_integration_details.py @@ -28,10 +28,10 @@ class AlertserviceIntegrationDetails(BaseModel): """ AlertserviceIntegrationDetails """ # noqa: E501 - 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") + 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"]}) zendesk_details: Optional[AlertserviceZendeskDetails] = Field(default=None, alias="zendeskDetails") __properties: ClassVar[List[str]] = ["opsgenieKey", "opsrampDetails", "pagerdutyRoutingKey", "webhookUrl", "zendeskDetails"] diff --git a/graphiant_sdk/models/alertservice_notification_body.py b/graphiant_sdk/models/alertservice_notification_body.py index f10c17b6..5951cdb6 100644 --- a/graphiant_sdk/models/alertservice_notification_body.py +++ b/graphiant_sdk/models/alertservice_notification_body.py @@ -28,12 +28,12 @@ class AlertserviceNotificationBody(BaseModel): """ AlertserviceNotificationBody """ # noqa: E501 - 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") + 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"]}) 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") diff --git a/graphiant_sdk/models/alertservice_notification_record.py b/graphiant_sdk/models/alertservice_notification_record.py index a50a8a1d..4d79cb53 100644 --- a/graphiant_sdk/models/alertservice_notification_record.py +++ b/graphiant_sdk/models/alertservice_notification_record.py @@ -29,13 +29,13 @@ class AlertserviceNotificationRecord(BaseModel): """ AlertserviceNotificationRecord """ # noqa: E501 - 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)") + 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"]}) 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["alertType", "muteCount", "name", "notificationBody", "notificationId", "ruleId", "timesTriggered"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/alertservice_rule_record.py b/graphiant_sdk/models/alertservice_rule_record.py index 83b34a67..b517eded 100644 --- a/graphiant_sdk/models/alertservice_rule_record.py +++ b/graphiant_sdk/models/alertservice_rule_record.py @@ -27,15 +27,15 @@ class AlertserviceRuleRecord(BaseModel): """ AlertserviceRuleRecord """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["alarmClear", "alarmSet", "allowCount", "category", "enabled", "plane", "priority", "ruleId", "ruleName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/alertservice_time_window.py b/graphiant_sdk/models/alertservice_time_window.py index a3060cd7..c049b63c 100644 --- a/graphiant_sdk/models/alertservice_time_window.py +++ b/graphiant_sdk/models/alertservice_time_window.py @@ -29,7 +29,7 @@ class AlertserviceTimeWindow(BaseModel): """ AlertserviceTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) 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"] diff --git a/graphiant_sdk/models/alertservice_update_integration_body.py b/graphiant_sdk/models/alertservice_update_integration_body.py index 5558f0cd..17bd02b1 100644 --- a/graphiant_sdk/models/alertservice_update_integration_body.py +++ b/graphiant_sdk/models/alertservice_update_integration_body.py @@ -29,11 +29,11 @@ class AlertserviceUpdateIntegrationBody(BaseModel): AlertserviceUpdateIntegrationBody """ # noqa: E501 details: Optional[AlertserviceIntegrationDetails] = None - 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") + 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"]}) __properties: ClassVar[List[str]] = ["details", "enterprise", "integrationType", "isActive", "nickName", "updatedBy"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/alertservice_zendesk_details.py b/graphiant_sdk/models/alertservice_zendesk_details.py index 4e59e202..4c94722a 100644 --- a/graphiant_sdk/models/alertservice_zendesk_details.py +++ b/graphiant_sdk/models/alertservice_zendesk_details.py @@ -27,10 +27,10 @@ class AlertserviceZendeskDetails(BaseModel): """ AlertserviceZendeskDetails """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["zendeskApiToken", "zendeskAssigneeId", "zendeskBaseUrl", "zendeskEmail"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assistant_assistant_conversation.py b/graphiant_sdk/models/assistant_assistant_conversation.py index 87d53058..f4680b58 100644 --- a/graphiant_sdk/models/assistant_assistant_conversation.py +++ b/graphiant_sdk/models/assistant_assistant_conversation.py @@ -27,10 +27,10 @@ class AssistantAssistantConversation(BaseModel): """ AssistantAssistantConversation """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["conversationHeader", "conversationId", "conversationRecentTimestamp", "enableContextHistory"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assistant_assistant_question.py b/graphiant_sdk/models/assistant_assistant_question.py index 03096090..9f1b992e 100644 --- a/graphiant_sdk/models/assistant_assistant_question.py +++ b/graphiant_sdk/models/assistant_assistant_question.py @@ -27,10 +27,10 @@ class AssistantAssistantQuestion(BaseModel): """ AssistantAssistantQuestion """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["conversationId", "questionLanguage", "questionText", "questionTimestamp"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assistant_assistant_response.py b/graphiant_sdk/models/assistant_assistant_response.py index 6c964ac3..368c39bc 100644 --- a/graphiant_sdk/models/assistant_assistant_response.py +++ b/graphiant_sdk/models/assistant_assistant_response.py @@ -29,15 +29,15 @@ class AssistantAssistantResponse(BaseModel): """ AssistantAssistantResponse """ # noqa: E501 - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) 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") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["conversationId", "dataframeDictionary", "originalQuestion", "responseId", "responseLanguage", "responseText", "responseTimestamp", "responseType", "visualizationSummary"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assistant_dataframe_dictionary.py b/graphiant_sdk/models/assistant_dataframe_dictionary.py index ebb646fa..19a9e38c 100644 --- a/graphiant_sdk/models/assistant_dataframe_dictionary.py +++ b/graphiant_sdk/models/assistant_dataframe_dictionary.py @@ -28,8 +28,8 @@ 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") - y_axis: Optional[StrictStr] = Field(default=None, alias="yAxis") + 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"]}) __properties: ClassVar[List[str]] = ["dataframeDictionaryMap", "xAxis", "yAxis"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assistant_time_window.py b/graphiant_sdk/models/assistant_time_window.py index 4f83f5c7..796203a1 100644 --- a/graphiant_sdk/models/assistant_time_window.py +++ b/graphiant_sdk/models/assistant_time_window.py @@ -29,7 +29,7 @@ class AssistantTimeWindow(BaseModel): """ AssistantTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) 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"] diff --git a/graphiant_sdk/models/assurance_app_id_record.py b/graphiant_sdk/models/assurance_app_id_record.py index c1f68553..72504f12 100644 --- a/graphiant_sdk/models/assurance_app_id_record.py +++ b/graphiant_sdk/models/assurance_app_id_record.py @@ -29,32 +29,32 @@ class AssuranceAppIdRecord(BaseModel): """ AssuranceAppIdRecord """ # noqa: E501 - 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") + 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"]}) 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] = None - classfication_field: Optional[StrictStr] = Field(default=None, alias="classficationField") - classification_field: Optional[StrictStr] = Field(default=None, alias="classificationField") + 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"]}) clients: Optional[List[StrictStr]] = None exchange_service: Optional[List[AssuranceExchangeServiceIdentifier]] = Field(default=None, alias="exchangeService") - first_seen: Optional[StrictInt] = Field(default=None, alias="firstSeen") + first_seen: Optional[StrictInt] = Field(default=None, alias="firstSeen", json_schema_extra={"examples": [1234567891011]}) flex_algo: Optional[List[AssuranceFlexAlgoIdentifier]] = Field(default=None, alias="flexAlgo") - 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 + 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"]}) region_list: Optional[List[StrictStr]] = Field(default=None, alias="regionList") - 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") + 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"]}) site_list: Optional[List[StrictStr]] = Field(default=None, alias="siteList") - threat_score: Optional[StrictInt] = Field(default=None, alias="threatScore") + threat_score: Optional[StrictInt] = Field(default=None, alias="threatScore", json_schema_extra={"examples": [1234567891011]}) 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"] diff --git a/graphiant_sdk/models/assurance_app_name_record.py b/graphiant_sdk/models/assurance_app_name_record.py index 0c20af65..9914bab9 100644 --- a/graphiant_sdk/models/assurance_app_name_record.py +++ b/graphiant_sdk/models/assurance_app_name_record.py @@ -30,22 +30,22 @@ class AssuranceAppNameRecord(BaseModel): """ AssuranceAppNameRecord """ # noqa: E501 - 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: Optional[StrictInt] = Field(default=None, alias="appId") + 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]}) app_id_records: Optional[List[AssuranceAppIdRecord]] = Field(default=None, alias="appIdRecords") - 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") + 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]}) 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") - recommendation: Optional[StrictStr] = None - risk_status: Optional[StrictStr] = Field(default=None, alias="riskStatus") - threat_score: Optional[StrictInt] = Field(default=None, alias="threatScore") + 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"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_bucket_app.py b/graphiant_sdk/models/assurance_bucket_app.py index 02abebe7..398bb31e 100644 --- a/graphiant_sdk/models/assurance_bucket_app.py +++ b/graphiant_sdk/models/assurance_bucket_app.py @@ -29,12 +29,12 @@ class AssuranceBucketApp(BaseModel): """ AssuranceBucketApp """ # noqa: E501 - 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") + 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]}) 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") + is_domain: Optional[StrictBool] = Field(default=None, alias="isDomain", json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["appName", "builtinAppId", "customAppId", "exchangeService", "flexAlgo", "isDomain"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_bucket_app_server.py b/graphiant_sdk/models/assurance_bucket_app_server.py index 57bdee00..7de60e7a 100644 --- a/graphiant_sdk/models/assurance_bucket_app_server.py +++ b/graphiant_sdk/models/assurance_bucket_app_server.py @@ -27,11 +27,11 @@ class AssuranceBucketAppServer(BaseModel): """ AssuranceBucketAppServer """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["appName", "appServerKey", "serverIp", "serverPort", "serverProtocol"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_bucket_details.py b/graphiant_sdk/models/assurance_bucket_details.py index 60f094e2..284cfb82 100644 --- a/graphiant_sdk/models/assurance_bucket_details.py +++ b/graphiant_sdk/models/assurance_bucket_details.py @@ -30,19 +30,19 @@ class AssuranceBucketDetails(BaseModel): """ AssuranceBucketDetails """ # noqa: E501 - 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_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_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") - 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 + 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"]}) trend_value_list: Optional[List[AssuranceTrendValue]] = Field(default=None, alias="trendValueList") - unique_app_count: Optional[StrictInt] = Field(default=None, alias="uniqueAppCount") + unique_app_count: Optional[StrictInt] = Field(default=None, alias="uniqueAppCount", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["appCountThreatHigh", "appCountThreatLow", "appCountThreatMedium", "appIdRecords", "appNameRecords", "bucketNameToDisplay", "description", "displayIpPort", "flowCount", "newIpHint", "recommendation", "trendValueList", "uniqueAppCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_bucket_stats.py b/graphiant_sdk/models/assurance_bucket_stats.py index c7043152..fe641104 100644 --- a/graphiant_sdk/models/assurance_bucket_stats.py +++ b/graphiant_sdk/models/assurance_bucket_stats.py @@ -27,10 +27,10 @@ class AssuranceBucketStats(BaseModel): """ AssuranceBucketStats """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["prevUniqueAppCount", "prevUniqueThreatCount", "uniqueAppCount", "uniqueThreatCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_bucket_stats_with_id.py b/graphiant_sdk/models/assurance_bucket_stats_with_id.py index ebe265ce..9a9d74fb 100644 --- a/graphiant_sdk/models/assurance_bucket_stats_with_id.py +++ b/graphiant_sdk/models/assurance_bucket_stats_with_id.py @@ -27,10 +27,10 @@ class AssuranceBucketStatsWithId(BaseModel): """ AssuranceBucketStatsWithId """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["assuranceBucket", "bucketNameToDisplay", "prevUniqueAppCount", "uniqueAppCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_bucket_summary.py b/graphiant_sdk/models/assurance_bucket_summary.py index ca61803c..a4e71091 100644 --- a/graphiant_sdk/models/assurance_bucket_summary.py +++ b/graphiant_sdk/models/assurance_bucket_summary.py @@ -29,14 +29,14 @@ class AssuranceBucketSummary(BaseModel): """ AssuranceBucketSummary """ # noqa: E501 - 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") + 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"]}) 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") - is_terminal: Optional[StrictBool] = Field(default=None, alias="isTerminal") + 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]}) parent_bucket_list: Optional[List[StrictStr]] = Field(default=None, alias="parentBucketList") __properties: ClassVar[List[str]] = ["assuranceBucket", "bucketColor", "bucketNameToDisplay", "bucketStats", "childBucketList", "childBucketStatsList", "isRoot", "isTerminal", "parentBucketList"] diff --git a/graphiant_sdk/models/assurance_classified_application.py b/graphiant_sdk/models/assurance_classified_application.py index 047aca15..49e37960 100644 --- a/graphiant_sdk/models/assurance_classified_application.py +++ b/graphiant_sdk/models/assurance_classified_application.py @@ -27,8 +27,8 @@ class AssuranceClassifiedApplication(BaseModel): """ AssuranceClassifiedApplication """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName") - classification_entry_id: Optional[StrictStr] = Field(default=None, alias="classificationEntryId") + 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"]}) 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") diff --git a/graphiant_sdk/models/assurance_client_session.py b/graphiant_sdk/models/assurance_client_session.py index 1f2df365..8f9c7a04 100644 --- a/graphiant_sdk/models/assurance_client_session.py +++ b/graphiant_sdk/models/assurance_client_session.py @@ -32,29 +32,30 @@ class AssuranceClientSession(BaseModel): """ AssuranceClientSession """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName") - bucket: Optional[StrictStr] = None + 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"]}) client_endpoint: Optional[AssuranceClientSessionEndpointDetails] = Field(default=None, alias="clientEndpoint") - client_flex_algo: Optional[StrictStr] = Field(default=None, alias="clientFlexAlgo") - client_ip: Optional[StrictStr] = Field(default=None, alias="clientIp") + 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_links: Optional[List[AssuranceClientSessionEndpointLink]] = Field(default=None, alias="clientLinks") - client_username: Optional[StrictStr] = Field(default=None, alias="clientUsername") + 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"]}) 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") + risk_status: Optional[StrictStr] = Field(default=None, alias="riskStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) 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") + server_ip: Optional[StrictStr] = Field(default=None, alias="serverIp", json_schema_extra={"examples": ["example string"]}) server_links: Optional[List[AssuranceClientSessionEndpointLink]] = Field(default=None, alias="serverLinks") - 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", "firstSeenTs", "lanSegment", "lastSeenTs", "localDiaLinks", "popLinks", "remoteDiaLinks", "riskStatus", "serverEndpoint", "serverFlexAlgos", "serverIp", "serverLinks", "serverPort", "sessionId", "sla", "slaClass"] + 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"]}) + __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, @@ -161,6 +162,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "clientIp": obj.get("clientIp"), "clientLinks": [AssuranceClientSessionEndpointLink.from_dict(_item) for _item in obj["clientLinks"]] if obj.get("clientLinks") is not None else None, "clientUsername": obj.get("clientUsername"), + "exchangeServiceName": obj.get("exchangeServiceName"), "firstSeenTs": GoogleProtobufTimestamp.from_dict(obj["firstSeenTs"]) if obj.get("firstSeenTs") is not None else None, "lanSegment": obj.get("lanSegment"), "lastSeenTs": GoogleProtobufTimestamp.from_dict(obj["lastSeenTs"]) if obj.get("lastSeenTs") is not None else None, diff --git a/graphiant_sdk/models/assurance_client_session_dia_link.py b/graphiant_sdk/models/assurance_client_session_dia_link.py index efedda5f..bdd492af 100644 --- a/graphiant_sdk/models/assurance_client_session_dia_link.py +++ b/graphiant_sdk/models/assurance_client_session_dia_link.py @@ -27,7 +27,7 @@ class AssuranceClientSessionDiaLink(BaseModel): """ AssuranceClientSessionDiaLink """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["circuitName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_client_session_endpoint_details.py b/graphiant_sdk/models/assurance_client_session_endpoint_details.py index c897e8e7..63054be5 100644 --- a/graphiant_sdk/models/assurance_client_session_endpoint_details.py +++ b/graphiant_sdk/models/assurance_client_session_endpoint_details.py @@ -32,13 +32,13 @@ class AssuranceClientSessionEndpointDetails(BaseModel): """ # noqa: E501 circuits: Optional[List[StrictStr]] = None edges: Optional[List[AssuranceEdge]] = None - is_gateway: Optional[StrictBool] = Field(default=None, alias="isGateway") + is_gateway: Optional[StrictBool] = Field(default=None, alias="isGateway", json_schema_extra={"examples": [True]}) 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") - total_uplink_usage: Optional[StrictInt] = Field(default=None, alias="totalUplinkUsage") + 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]}) __properties: ClassVar[List[str]] = ["circuits", "edges", "isGateway", "jitter", "latency", "loss", "site", "totalDownlinkUsage", "totalUplinkUsage"] model_config = ConfigDict( 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 fc355fd5..4185d076 100644 --- a/graphiant_sdk/models/assurance_client_session_endpoint_details_statistics.py +++ b/graphiant_sdk/models/assurance_client_session_endpoint_details_statistics.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +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 @@ -27,9 +27,9 @@ class AssuranceClientSessionEndpointDetailsStatistics(BaseModel): """ AssuranceClientSessionEndpointDetailsStatistics """ # noqa: E501 - avg: Optional[Union[StrictFloat, StrictInt]] = None - max: Optional[Union[StrictFloat, StrictInt]] = None - min: Optional[Union[StrictFloat, StrictInt]] = None + 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]}) __properties: ClassVar[List[str]] = ["avg", "max", "min"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_client_session_endpoint_link.py b/graphiant_sdk/models/assurance_client_session_endpoint_link.py index b2f7ca74..768dd144 100644 --- a/graphiant_sdk/models/assurance_client_session_endpoint_link.py +++ b/graphiant_sdk/models/assurance_client_session_endpoint_link.py @@ -27,11 +27,11 @@ class AssuranceClientSessionEndpointLink(BaseModel): """ AssuranceClientSessionEndpointLink """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["circuitName", "jitter", "latency", "loss", "popName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_client_session_pop_link.py b/graphiant_sdk/models/assurance_client_session_pop_link.py index 8cf54329..0d462c1d 100644 --- a/graphiant_sdk/models/assurance_client_session_pop_link.py +++ b/graphiant_sdk/models/assurance_client_session_pop_link.py @@ -27,11 +27,11 @@ class AssuranceClientSessionPopLink(BaseModel): """ AssuranceClientSessionPopLink """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["firstPopName", "jitter", "latency", "loss", "secondPopName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_dns_proxy_entry.py b/graphiant_sdk/models/assurance_dns_proxy_entry.py index 047e69e5..637563b1 100644 --- a/graphiant_sdk/models/assurance_dns_proxy_entry.py +++ b/graphiant_sdk/models/assurance_dns_proxy_entry.py @@ -27,12 +27,12 @@ class AssuranceDnsProxyEntry(BaseModel): """ AssuranceDnsProxyEntry """ # noqa: E501 - dnsproxy_entry_id: StrictStr = Field(description="dns proxy table entry id (required)", alias="dnsproxyEntryId") + dnsproxy_entry_id: StrictStr = Field(description="dns proxy table entry id (required)", alias="dnsproxyEntryId", json_schema_extra={"examples": ["example string"]}) ip_list: List[StrictStr] = Field(alias="ipList") - name: StrictStr = Field(description="name of the entry (required)") - name_text: StrictStr = Field(description="user defined name of the record (required)", alias="nameText") + 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"]}) port_list: List[StrictStr] = Field(alias="portList") - protocol: StrictStr = Field(description="protocol to exclude (required)") + protocol: StrictStr = Field(description="protocol to exclude (required)", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["dnsproxyEntryId", "ipList", "name", "nameText", "portList", "protocol"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_edge.py b/graphiant_sdk/models/assurance_edge.py index 55d8e488..9f1da07b 100644 --- a/graphiant_sdk/models/assurance_edge.py +++ b/graphiant_sdk/models/assurance_edge.py @@ -27,8 +27,8 @@ class AssuranceEdge(BaseModel): """ AssuranceEdge """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "deviceName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_enterprise_summary.py b/graphiant_sdk/models/assurance_enterprise_summary.py index 0fd77ead..796ccdfd 100644 --- a/graphiant_sdk/models/assurance_enterprise_summary.py +++ b/graphiant_sdk/models/assurance_enterprise_summary.py @@ -27,12 +27,12 @@ class AssuranceEnterpriseSummary(BaseModel): """ AssuranceEnterpriseSummary """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["flowsAnalyzed", "gapScore", "prevGapScore", "riskBin", "threatCount", "uniqueAppsCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_exchange_service_identifier.py b/graphiant_sdk/models/assurance_exchange_service_identifier.py index 95c15ea2..436e0b5c 100644 --- a/graphiant_sdk/models/assurance_exchange_service_identifier.py +++ b/graphiant_sdk/models/assurance_exchange_service_identifier.py @@ -27,8 +27,8 @@ class AssuranceExchangeServiceIdentifier(BaseModel): """ AssuranceExchangeServiceIdentifier """ # noqa: E501 - exchange_service_id: Optional[StrictInt] = Field(default=None, alias="exchangeServiceId") - exchange_service_name: Optional[StrictStr] = Field(default=None, alias="exchangeServiceName") + 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"]}) __properties: ClassVar[List[str]] = ["exchangeServiceId", "exchangeServiceName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_flex_algo_identifier.py b/graphiant_sdk/models/assurance_flex_algo_identifier.py index 085d8756..21e11320 100644 --- a/graphiant_sdk/models/assurance_flex_algo_identifier.py +++ b/graphiant_sdk/models/assurance_flex_algo_identifier.py @@ -27,8 +27,8 @@ class AssuranceFlexAlgoIdentifier(BaseModel): """ AssuranceFlexAlgoIdentifier """ # noqa: E501 - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") - flex_algo_name: Optional[StrictStr] = Field(default=None, alias="flexAlgoName") + 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"]}) __properties: ClassVar[List[str]] = ["flexAlgoId", "flexAlgoName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_geolocation.py b/graphiant_sdk/models/assurance_geolocation.py index 593f5bf5..e6713539 100644 --- a/graphiant_sdk/models/assurance_geolocation.py +++ b/graphiant_sdk/models/assurance_geolocation.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +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 @@ -27,8 +27,8 @@ class AssuranceGeolocation(BaseModel): """ AssuranceGeolocation """ # noqa: E501 - lat: Optional[Union[StrictFloat, StrictInt]] = None - long: Optional[Union[StrictFloat, StrictInt]] = None + 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]}) __properties: ClassVar[List[str]] = ["lat", "long"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_region.py b/graphiant_sdk/models/assurance_region.py index 3279953c..ffe9210f 100644 --- a/graphiant_sdk/models/assurance_region.py +++ b/graphiant_sdk/models/assurance_region.py @@ -27,9 +27,9 @@ class AssuranceRegion(BaseModel): """ AssuranceRegion """ # noqa: E501 - region_id: Optional[StrictInt] = Field(default=None, alias="regionId") - region_iso_code: Optional[StrictStr] = Field(default=None, alias="regionIsoCode") - region_name: Optional[StrictStr] = Field(default=None, alias="regionName") + 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"]}) __properties: ClassVar[List[str]] = ["regionId", "regionIsoCode", "regionName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_score_bucket_count.py b/graphiant_sdk/models/assurance_score_bucket_count.py index c61da7c2..fcc128f2 100644 --- a/graphiant_sdk/models/assurance_score_bucket_count.py +++ b/graphiant_sdk/models/assurance_score_bucket_count.py @@ -27,9 +27,9 @@ class AssuranceScoreBucketCount(BaseModel): """ AssuranceScoreBucketCount """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["currScore", "maxScore", "scoreBucketId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_site.py b/graphiant_sdk/models/assurance_site.py index d7cab183..238e70de 100644 --- a/graphiant_sdk/models/assurance_site.py +++ b/graphiant_sdk/models/assurance_site.py @@ -27,10 +27,11 @@ class AssuranceSite(BaseModel): """ AssuranceSite """ # noqa: E501 - region_id: Optional[StrictInt] = Field(default=None, alias="regionId") - site_id: Optional[StrictInt] = Field(default=None, alias="siteId") - site_name: Optional[StrictStr] = Field(default=None, alias="siteName") - __properties: ClassVar[List[str]] = ["regionId", "siteId", "siteName"] + 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"]}) + __properties: ClassVar[List[str]] = ["regionId", "siteEnterpriseName", "siteId", "siteName"] model_config = ConfigDict( validate_by_name=True, @@ -84,6 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "regionId": obj.get("regionId"), + "siteEnterpriseName": obj.get("siteEnterpriseName"), "siteId": obj.get("siteId"), "siteName": obj.get("siteName") }) diff --git a/graphiant_sdk/models/assurance_time_window.py b/graphiant_sdk/models/assurance_time_window.py index f088c395..3f84cdaa 100644 --- a/graphiant_sdk/models/assurance_time_window.py +++ b/graphiant_sdk/models/assurance_time_window.py @@ -29,7 +29,7 @@ class AssuranceTimeWindow(BaseModel): """ AssuranceTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) 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"] diff --git a/graphiant_sdk/models/assurance_topology_edge.py b/graphiant_sdk/models/assurance_topology_edge.py index b7095103..474b60c5 100644 --- a/graphiant_sdk/models/assurance_topology_edge.py +++ b/graphiant_sdk/models/assurance_topology_edge.py @@ -28,9 +28,9 @@ class AssuranceTopologyEdge(BaseModel): """ AssuranceTopologyEdge """ # noqa: E501 - destination_node_id: Optional[StrictStr] = Field(default=None, alias="destinationNodeId") + destination_node_id: Optional[StrictStr] = Field(default=None, alias="destinationNodeId", json_schema_extra={"examples": ["example string"]}) performance: Optional[List[AssuranceTopologyEdgeLinkPerformance]] = None - source_node_id: Optional[StrictStr] = Field(default=None, alias="sourceNodeId") + source_node_id: Optional[StrictStr] = Field(default=None, alias="sourceNodeId", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["destinationNodeId", "performance", "sourceNodeId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_topology_edge_link_performance.py b/graphiant_sdk/models/assurance_topology_edge_link_performance.py index 380cd1aa..d0f8a43a 100644 --- a/graphiant_sdk/models/assurance_topology_edge_link_performance.py +++ b/graphiant_sdk/models/assurance_topology_edge_link_performance.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +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 @@ -27,9 +27,9 @@ class AssuranceTopologyEdgeLinkPerformance(BaseModel): """ AssuranceTopologyEdgeLinkPerformance """ # noqa: E501 - jitter: Optional[Union[StrictFloat, StrictInt]] = None - latency: Optional[Union[StrictFloat, StrictInt]] = None - loss: Optional[Union[StrictFloat, StrictInt]] = None + 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]}) __properties: ClassVar[List[str]] = ["jitter", "latency", "loss"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_topology_node.py b/graphiant_sdk/models/assurance_topology_node.py index c266d4ee..0a74197c 100644 --- a/graphiant_sdk/models/assurance_topology_node.py +++ b/graphiant_sdk/models/assurance_topology_node.py @@ -28,11 +28,11 @@ class AssuranceTopologyNode(BaseModel): """ AssuranceTopologyNode """ # noqa: E501 - active: Optional[StrictBool] = None + active: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) location: Optional[AssuranceGeolocation] = None - name: Optional[StrictStr] = None - node_id: Optional[StrictStr] = Field(default=None, alias="nodeId") - node_type: Optional[StrictStr] = Field(default=None, alias="nodeType") + 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"]}) __properties: ClassVar[List[str]] = ["active", "location", "name", "nodeId", "nodeType"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_trend_value.py b/graphiant_sdk/models/assurance_trend_value.py index 4bdfd36a..ed365056 100644 --- a/graphiant_sdk/models/assurance_trend_value.py +++ b/graphiant_sdk/models/assurance_trend_value.py @@ -27,9 +27,9 @@ class AssuranceTrendValue(BaseModel): """ AssuranceTrendValue """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["endTime", "flowCount", "startTime"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/assurance_user_report.py b/graphiant_sdk/models/assurance_user_report.py index 40bc5052..80dd06ef 100644 --- a/graphiant_sdk/models/assurance_user_report.py +++ b/graphiant_sdk/models/assurance_user_report.py @@ -28,13 +28,13 @@ 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") + created_on: Optional[StrictInt] = Field(default=None, alias="createdOn", json_schema_extra={"examples": [1234567891011]}) email_list: Optional[List[StrictStr]] = Field(default=None, alias="emailList") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["createdBy", "createdOn", "emailList", "enterpriseId", "reportId", "reportName", "reportType", "timePeriod"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/audit_activity_item.py b/graphiant_sdk/models/audit_activity_item.py index c1bdf0d6..c81be1de 100644 --- a/graphiant_sdk/models/audit_activity_item.py +++ b/graphiant_sdk/models/audit_activity_item.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,9 +27,9 @@ class AuditActivityItem(BaseModel): """ AuditActivityItem """ # noqa: E501 - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None - type: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["id", "name", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/audit_audit_entry.py b/graphiant_sdk/models/audit_audit_entry.py index 76326153..d8917d7c 100644 --- a/graphiant_sdk/models/audit_audit_entry.py +++ b/graphiant_sdk/models/audit_audit_entry.py @@ -29,16 +29,16 @@ class AuditAuditEntry(BaseModel): """ AuditAuditEntry """ # noqa: E501 - activity: Optional[StrictStr] = None - actor: Optional[StrictStr] = None - category: Optional[StrictStr] = None + 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"]}) end: Optional[GoogleProtobufTimestamp] = None failed_target_results: Optional[List[AuditTargetResult]] = Field(default=None, alias="failedTargetResults") - info: Optional[StrictStr] = None - reason: Optional[StrictStr] = None - service: Optional[StrictStr] = None + 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"]}) start: Optional[GoogleProtobufTimestamp] = None - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) targets: Optional[List[AuditTargetResult]] = None __properties: ClassVar[List[str]] = ["activity", "actor", "category", "end", "failedTargetResults", "info", "reason", "service", "start", "status", "targets"] diff --git a/graphiant_sdk/models/audit_target.py b/graphiant_sdk/models/audit_target.py index aa4164e8..c1667b38 100644 --- a/graphiant_sdk/models/audit_target.py +++ b/graphiant_sdk/models/audit_target.py @@ -28,8 +28,8 @@ class AuditTarget(BaseModel): """ AuditTarget """ # noqa: E501 - id: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - name: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/audit_target_result.py b/graphiant_sdk/models/audit_target_result.py index 699a67bf..23e74c7e 100644 --- a/graphiant_sdk/models/audit_target_result.py +++ b/graphiant_sdk/models/audit_target_result.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.audit_target import AuditTarget from typing import Optional, Set @@ -28,8 +28,8 @@ class AuditTargetResult(BaseModel): """ AuditTargetResult """ # noqa: E501 - reason: Optional[StrictStr] = None - status: Optional[StrictStr] = None + reason: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) target: Optional[AuditTarget] = None __properties: ClassVar[List[str]] = ["reason", "status", "target"] diff --git a/graphiant_sdk/models/auditmon_activity_details.py b/graphiant_sdk/models/auditmon_activity_details.py index 65ac89ec..1419de10 100644 --- a/graphiant_sdk/models/auditmon_activity_details.py +++ b/graphiant_sdk/models/auditmon_activity_details.py @@ -30,24 +30,24 @@ class AuditmonActivityDetails(BaseModel): """ AuditmonActivityDetails """ # noqa: E501 - action: Optional[StrictStr] = None + action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) attributes: Optional[List[AuditActivityItem]] = None - category: Optional[StrictStr] = None - disable_auto_timeout: Optional[StrictBool] = Field(default=None, alias="disableAutoTimeout") + 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]}) end_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="endTs") - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") - id: Optional[StrictStr] = None - initiator_type: Optional[StrictStr] = Field(default=None, alias="initiatorType") + 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"]}) job_entities: Optional[List[AuditActivityItem]] = Field(default=None, alias="jobEntities") - job_type: Optional[StrictStr] = Field(default=None, alias="jobType") - original_enterprise_id: Optional[StrictInt] = Field(default=None, alias="originalEnterpriseId") + 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]}) start_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTs") - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) targets: Optional[List[AuditmonActivityDetailsTarget]] = None - 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") + 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"]}) __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( diff --git a/graphiant_sdk/models/auditmon_activity_details_target.py b/graphiant_sdk/models/auditmon_activity_details_target.py index 0daef6a5..d692a93b 100644 --- a/graphiant_sdk/models/auditmon_activity_details_target.py +++ b/graphiant_sdk/models/auditmon_activity_details_target.py @@ -30,13 +30,13 @@ class AuditmonActivityDetailsTarget(BaseModel): """ AuditmonActivityDetailsTarget """ # noqa: E501 - detailed_failure_reason: Optional[StrictStr] = Field(default=None, alias="detailedFailureReason") + detailed_failure_reason: Optional[StrictStr] = Field(default=None, alias="detailedFailureReason", json_schema_extra={"examples": ["example string"]}) end_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="endTs") events: Optional[List[AuditmonActivityDetailsTargetEvent]] = None - failure_reason: Optional[StrictStr] = Field(default=None, alias="failureReason") + failure_reason: Optional[StrictStr] = Field(default=None, alias="failureReason", json_schema_extra={"examples": ["example string"]}) ids: Optional[List[AuditActivityItem]] = None start_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTs") - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["detailedFailureReason", "endTs", "events", "failureReason", "ids", "startTs", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/auditmon_activity_details_target_event.py b/graphiant_sdk/models/auditmon_activity_details_target_event.py index 2e6c6cc9..80754f0a 100644 --- a/graphiant_sdk/models/auditmon_activity_details_target_event.py +++ b/graphiant_sdk/models/auditmon_activity_details_target_event.py @@ -28,9 +28,9 @@ class AuditmonActivityDetailsTargetEvent(BaseModel): """ AuditmonActivityDetailsTargetEvent """ # noqa: E501 - state: Optional[StrictStr] = None - state_id: Optional[StrictInt] = Field(default=None, alias="stateId") - trace_session_id: Optional[StrictStr] = Field(default=None, alias="traceSessionId") + 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"]}) ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["state", "stateId", "traceSessionId", "ts"] diff --git a/graphiant_sdk/models/auditmon_activity_logs_selector.py b/graphiant_sdk/models/auditmon_activity_logs_selector.py index 27790971..8b821136 100644 --- a/graphiant_sdk/models/auditmon_activity_logs_selector.py +++ b/graphiant_sdk/models/auditmon_activity_logs_selector.py @@ -29,11 +29,11 @@ class AuditmonActivityLogsSelector(BaseModel): AuditmonActivityLogsSelector """ # noqa: E501 device_ids: Optional[List[StrictInt]] = Field(default=None, alias="deviceIds") - id: Optional[StrictStr] = None - in_progress: Optional[StrictBool] = Field(default=None, alias="inProgress") + 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]}) job_entity: Optional[AuditActivityItem] = Field(default=None, alias="jobEntity") target_ids: Optional[List[AuditActivityItem]] = Field(default=None, alias="targetIds") - type: Optional[StrictStr] = None + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["deviceIds", "id", "inProgress", "jobEntity", "targetIds", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/auditmon_audit_log.py b/graphiant_sdk/models/auditmon_audit_log.py index 834e48d5..0ea01623 100644 --- a/graphiant_sdk/models/auditmon_audit_log.py +++ b/graphiant_sdk/models/auditmon_audit_log.py @@ -29,14 +29,14 @@ class AuditmonAuditLog(BaseModel): """ AuditmonAuditLog """ # noqa: E501 - action: Optional[StrictStr] = None - activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") - category: Optional[StrictStr] = None + 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"]}) entity: Optional[AuditActivityItem] = None - job_type: Optional[StrictStr] = Field(default=None, alias="jobType") + job_type: Optional[StrictStr] = Field(default=None, alias="jobType", json_schema_extra={"examples": ["ENUM_VALUE"]}) target: Optional[AuditActivityItem] = None ts: Optional[GoogleProtobufTimestamp] = None - user: Optional[StrictStr] = None + user: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["action", "activityId", "category", "entity", "jobType", "target", "ts", "user"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/auditmon_histogram.py b/graphiant_sdk/models/auditmon_histogram.py index b40d4ff9..31f2665d 100644 --- a/graphiant_sdk/models/auditmon_histogram.py +++ b/graphiant_sdk/models/auditmon_histogram.py @@ -29,7 +29,7 @@ class AuditmonHistogram(BaseModel): """ AuditmonHistogram """ # noqa: E501 - count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["count", "ts"] diff --git a/graphiant_sdk/models/auditmon_selector.py b/graphiant_sdk/models/auditmon_selector.py index 5d7f9174..5bca0f5e 100644 --- a/graphiant_sdk/models/auditmon_selector.py +++ b/graphiant_sdk/models/auditmon_selector.py @@ -27,7 +27,7 @@ class AuditmonSelector(BaseModel): """ AuditmonSelector """ # noqa: E501 - var_field: Optional[StrictStr] = Field(default=None, description="Field to search", alias="field") + var_field: Optional[StrictStr] = Field(default=None, description="Field to search", alias="field", json_schema_extra={"examples": ["AuditFieldId"]}) values: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["field", "values"] diff --git a/graphiant_sdk/models/auth_permissions.py b/graphiant_sdk/models/auth_permissions.py index dd0eef36..702e5e03 100644 --- a/graphiant_sdk/models/auth_permissions.py +++ b/graphiant_sdk/models/auth_permissions.py @@ -27,22 +27,22 @@ class AuthPermissions(BaseModel): """ AuthPermissions """ # noqa: E501 - 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 + 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"]}) __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') diff --git a/graphiant_sdk/models/common_billing_contract.py b/graphiant_sdk/models/common_billing_contract.py new file mode 100644 index 00000000..6074dae5 --- /dev/null +++ b/graphiant_sdk/models/common_billing_contract.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +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]}) + 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, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CommonBillingContract 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 expiration_date + if self.expiration_date: + _dict['expirationDate'] = self.expiration_date.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CommonBillingContract from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "contractedCredits": obj.get("contractedCredits"), + "expirationDate": CommonBillingTimePeriod.from_dict(obj["expirationDate"]) if obj.get("expirationDate") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/common_billing_time_period.py b/graphiant_sdk/models/common_billing_time_period.py new file mode 100644 index 00000000..2efc18b4 --- /dev/null +++ b/graphiant_sdk/models/common_billing_time_period.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing 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]}) + __properties: ClassVar[List[str]] = ["month", "year"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CommonBillingTimePeriod 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 CommonBillingTimePeriod from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "month": obj.get("month"), + "year": obj.get("year") + }) + return _obj + + diff --git a/graphiant_sdk/models/common_page_info.py b/graphiant_sdk/models/common_page_info.py index 49878580..2b91c80d 100644 --- a/graphiant_sdk/models/common_page_info.py +++ b/graphiant_sdk/models/common_page_info.py @@ -28,13 +28,13 @@ 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["currentPage", "endCursor", "hasNextPage", "hasPrevPage", "startCursor", "totalPages", "totalRecords"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/common_page_request.py b/graphiant_sdk/models/common_page_request.py index 41b1337d..71eab655 100644 --- a/graphiant_sdk/models/common_page_request.py +++ b/graphiant_sdk/models/common_page_request.py @@ -28,11 +28,11 @@ class CommonPageRequest(BaseModel): """ CommonPageRequest """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["after", "before", "first", "last", "token"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/common_permissions.py b/graphiant_sdk/models/common_permissions.py index 1792f95d..5449d0fb 100644 --- a/graphiant_sdk/models/common_permissions.py +++ b/graphiant_sdk/models/common_permissions.py @@ -27,25 +27,25 @@ class CommonPermissions(BaseModel): """ CommonPermissions """ # noqa: E501 - 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") + 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"]}) __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( diff --git a/graphiant_sdk/models/common_user.py b/graphiant_sdk/models/common_user.py index 626aac97..51cb9d0c 100644 --- a/graphiant_sdk/models/common_user.py +++ b/graphiant_sdk/models/common_user.py @@ -28,16 +28,16 @@ class CommonUser(BaseModel): """ CommonUser """ # noqa: E501 - email: Optional[StrictStr] = None - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") - first_name: Optional[StrictStr] = Field(default=None, alias="firstName") + 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"]}) last_active_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastActiveAt") - 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 + 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]}) __properties: ClassVar[List[str]] = ["email", "enterpriseId", "firstName", "lastActiveAt", "lastName", "mfaFactor", "phoneNumber", "timeZone", "userId", "verified"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/common_user_info.py b/graphiant_sdk/models/common_user_info.py index db650d64..6a254550 100644 --- a/graphiant_sdk/models/common_user_info.py +++ b/graphiant_sdk/models/common_user_info.py @@ -28,12 +28,12 @@ class CommonUserInfo(BaseModel): """ CommonUserInfo """ # noqa: E501 - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") - exp: Optional[StrictInt] = None - original_enterprise_id: Optional[StrictInt] = Field(default=None, alias="originalEnterpriseId") + 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]}) permissions: Optional[CommonPermissions] = None - time_zone: Optional[StrictStr] = Field(default=None, alias="timeZone") - user_id: Optional[StrictStr] = Field(default=None, alias="userId") + 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"]}) __properties: ClassVar[List[str]] = ["enterpriseId", "exp", "originalEnterpriseId", "permissions", "timeZone", "userId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/config_worker_job_status.py b/graphiant_sdk/models/config_worker_job_status.py index cab48488..53e8f1de 100644 --- a/graphiant_sdk/models/config_worker_job_status.py +++ b/graphiant_sdk/models/config_worker_job_status.py @@ -30,10 +30,10 @@ 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] = 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") + 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"]}) __properties: ClassVar[List[str]] = ["completedAt", "createdAt", "error", "errorCount", "jobId", "jobState"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_archive.py b/graphiant_sdk/models/diagnostic_tools_archive.py index bce4e2a5..35c80616 100644 --- a/graphiant_sdk/models/diagnostic_tools_archive.py +++ b/graphiant_sdk/models/diagnostic_tools_archive.py @@ -28,15 +28,15 @@ class DiagnosticToolsArchive(BaseModel): """ DiagnosticToolsArchive """ # noqa: E501 - 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") + 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"]}) created: Optional[GoogleProtobufTimestamp] = None - 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") + 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"]}) __properties: ClassVar[List[str]] = ["archiveFileName", "archiveId", "archiveUrl", "created", "creator", "description", "progress", "status", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_arp_entry.py b/graphiant_sdk/models/diagnostic_tools_arp_entry.py index effd9ff9..d8bdefc0 100644 --- a/graphiant_sdk/models/diagnostic_tools_arp_entry.py +++ b/graphiant_sdk/models/diagnostic_tools_arp_entry.py @@ -29,8 +29,8 @@ class DiagnosticToolsArpEntry(BaseModel): DiagnosticToolsArpEntry """ # noqa: E501 address: Optional[DiagnosticToolsArpEntryAddress] = None - 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") + 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"]}) __properties: ClassVar[List[str]] = ["address", "allEntry", "interfaceName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_diagnostic_params.py b/graphiant_sdk/models/diagnostic_tools_diagnostic_params.py index c22d94d4..e876050a 100644 --- a/graphiant_sdk/models/diagnostic_tools_diagnostic_params.py +++ b/graphiant_sdk/models/diagnostic_tools_diagnostic_params.py @@ -28,15 +28,15 @@ class DiagnosticToolsDiagnosticParams(BaseModel): """ DiagnosticToolsDiagnosticParams """ # noqa: E501 - 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") + 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"]}) 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") + vrf_name: StrictStr = Field(description="configure VRF Name (required)", alias="vrfName", json_schema_extra={"examples": ["finance"]}) __properties: ClassVar[List[str]] = ["destAddress", "hopStatsCount", "interface", "payloadSize", "port", "probeCount", "srcAddress", "tos", "vrfName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_hop_info.py b/graphiant_sdk/models/diagnostic_tools_hop_info.py index d2b30ed2..fe67a12c 100644 --- a/graphiant_sdk/models/diagnostic_tools_hop_info.py +++ b/graphiant_sdk/models/diagnostic_tools_hop_info.py @@ -29,9 +29,9 @@ class DiagnosticToolsHopInfo(BaseModel): """ DiagnosticToolsHopInfo """ # noqa: E501 - 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") + 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]}) stats: Optional[DiagnosticToolsHopStats] = None __properties: ClassVar[List[str]] = ["hostAddress", "pathMtu", "roundTripTime", "stats"] diff --git a/graphiant_sdk/models/diagnostic_tools_hop_stats.py b/graphiant_sdk/models/diagnostic_tools_hop_stats.py index 7e84a618..1418ce82 100644 --- a/graphiant_sdk/models/diagnostic_tools_hop_stats.py +++ b/graphiant_sdk/models/diagnostic_tools_hop_stats.py @@ -28,12 +28,12 @@ class DiagnosticToolsHopStats(BaseModel): """ DiagnosticToolsHopStats """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["avgTime", "maxTime", "minTime", "rxPackets", "stdDevTime", "txPackets"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_p_cap_filter.py b/graphiant_sdk/models/diagnostic_tools_p_cap_filter.py index 1785e8c4..1140a2ac 100644 --- a/graphiant_sdk/models/diagnostic_tools_p_cap_filter.py +++ b/graphiant_sdk/models/diagnostic_tools_p_cap_filter.py @@ -30,8 +30,8 @@ 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") - protocol: Optional[StrictStr] = Field(default=None, description="Filters the packet capture for the specified protocol") + 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"]}) source: Optional[DiagnosticToolsPrefixPort] = None __properties: ClassVar[List[str]] = ["destination", "dscp", "protocol", "source"] diff --git a/graphiant_sdk/models/diagnostic_tools_ping_result.py b/graphiant_sdk/models/diagnostic_tools_ping_result.py index 81080f1e..8bf68b88 100644 --- a/graphiant_sdk/models/diagnostic_tools_ping_result.py +++ b/graphiant_sdk/models/diagnostic_tools_ping_result.py @@ -28,12 +28,12 @@ class DiagnosticToolsPingResult(BaseModel): """ DiagnosticToolsPingResult """ # noqa: E501 - 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") + 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]}) 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") - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["avgLoss", "avgTime", "completedTime", "maxTime", "minTime", "result"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_prefix_port.py b/graphiant_sdk/models/diagnostic_tools_prefix_port.py index 7c418d27..8577e6e0 100644 --- a/graphiant_sdk/models/diagnostic_tools_prefix_port.py +++ b/graphiant_sdk/models/diagnostic_tools_prefix_port.py @@ -28,8 +28,8 @@ 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") - prefix: Optional[StrictStr] = Field(default=None, description="Filters the capture for the specified prefix") + 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"]}) __properties: ClassVar[List[str]] = ["port", "prefix"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_route_lookup_result.py b/graphiant_sdk/models/diagnostic_tools_route_lookup_result.py index 6cf67261..df1158ef 100644 --- a/graphiant_sdk/models/diagnostic_tools_route_lookup_result.py +++ b/graphiant_sdk/models/diagnostic_tools_route_lookup_result.py @@ -27,9 +27,9 @@ class DiagnosticToolsRouteLookupResult(BaseModel): """ DiagnosticToolsRouteLookupResult """ # noqa: E501 - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["nexthopAddress", "outgoingInterface", "prefix"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_speedtest_params.py b/graphiant_sdk/models/diagnostic_tools_speedtest_params.py index 5002f897..eef81191 100644 --- a/graphiant_sdk/models/diagnostic_tools_speedtest_params.py +++ b/graphiant_sdk/models/diagnostic_tools_speedtest_params.py @@ -28,10 +28,10 @@ class DiagnosticToolsSpeedtestParams(BaseModel): """ DiagnosticToolsSpeedtestParams """ # noqa: E501 - provider: StrictStr = Field(description="Speedtest provider name (required)") - server_id: Optional[StrictStr] = Field(default=None, description="This is fetched using GetSpeedtestServers API", alias="serverId") + 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"]}) target: DiagnosticToolsTargetType - token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup") + token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["provider", "serverId", "target", "token"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_speedtest_result.py b/graphiant_sdk/models/diagnostic_tools_speedtest_result.py index 56ed1fbc..edcc8694 100644 --- a/graphiant_sdk/models/diagnostic_tools_speedtest_result.py +++ b/graphiant_sdk/models/diagnostic_tools_speedtest_result.py @@ -29,15 +29,15 @@ 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") + 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]}) 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") - 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)") + 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"]}) 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") + upload_speed: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Upload speed in Mbps (required)", alias="uploadSpeed", json_schema_extra={"examples": [21]}) __properties: ClassVar[List[str]] = ["avgPingTime", "dateTime", "downloadSpeed", "isp", "maxPingTime", "minPingTime", "result", "serverDetails", "uploadSpeed"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_speedtest_server.py b/graphiant_sdk/models/diagnostic_tools_speedtest_server.py index 0704fa9b..17a5c057 100644 --- a/graphiant_sdk/models/diagnostic_tools_speedtest_server.py +++ b/graphiant_sdk/models/diagnostic_tools_speedtest_server.py @@ -27,12 +27,12 @@ class DiagnosticToolsSpeedtestServer(BaseModel): """ DiagnosticToolsSpeedtestServer """ # noqa: E501 - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["country", "host", "id", "ipAddress", "location", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_target_type.py b/graphiant_sdk/models/diagnostic_tools_target_type.py index d4598314..1e2ab088 100644 --- a/graphiant_sdk/models/diagnostic_tools_target_type.py +++ b/graphiant_sdk/models/diagnostic_tools_target_type.py @@ -27,8 +27,8 @@ class DiagnosticToolsTargetType(BaseModel): """ DiagnosticToolsTargetType """ # noqa: E501 - interface: Optional[StrictStr] = Field(default=None, description="Source Interface name") - vrf_name: Optional[StrictStr] = Field(default=None, description="Configured VRF Name", alias="vrfName") + 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"]}) __properties: ClassVar[List[str]] = ["interface", "vrfName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/diagnostic_tools_traceroute_result.py b/graphiant_sdk/models/diagnostic_tools_traceroute_result.py index a61694e6..1e63b25b 100644 --- a/graphiant_sdk/models/diagnostic_tools_traceroute_result.py +++ b/graphiant_sdk/models/diagnostic_tools_traceroute_result.py @@ -31,11 +31,11 @@ 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") - 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)") + 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"]}) stopped_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="stoppedTime") __properties: ClassVar[List[str]] = ["hops", "maxLatency", "maxLatencyHost", "maxPathMtu", "minPathMtu", "result", "stoppedTime"] diff --git a/graphiant_sdk/models/google_protobuf_duration.py b/graphiant_sdk/models/google_protobuf_duration.py index dd968c94..93a5d6e4 100644 --- a/graphiant_sdk/models/google_protobuf_duration.py +++ b/graphiant_sdk/models/google_protobuf_duration.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class GoogleProtobufDuration(BaseModel): """ GoogleProtobufDuration """ # noqa: E501 - nanos: Optional[StrictInt] = None - seconds: Optional[StrictInt] = None + nanos: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + seconds: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["nanos", "seconds"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/google_protobuf_timestamp.py b/graphiant_sdk/models/google_protobuf_timestamp.py index 14ab8b03..0cd1c69e 100644 --- a/graphiant_sdk/models/google_protobuf_timestamp.py +++ b/graphiant_sdk/models/google_protobuf_timestamp.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class GoogleProtobufTimestamp(BaseModel): """ GoogleProtobufTimestamp """ # noqa: E501 - nanos: Optional[StrictInt] = None - seconds: Optional[StrictInt] = None + nanos: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + seconds: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["nanos", "seconds"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/iam_counts.py b/graphiant_sdk/models/iam_counts.py index a38c5354..3cd05b3e 100644 --- a/graphiant_sdk/models/iam_counts.py +++ b/graphiant_sdk/models/iam_counts.py @@ -27,19 +27,19 @@ class IamCounts(BaseModel): """ IamCounts """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["activeDownCount", "activeUpCount", "deactivatedDownCount", "downSitesCount", "emptySitesCount", "impairedSitesCount", "stagingDownCount", "stagingUpCount", "totalCustomers", "totalEdges", "totalMsps", "totalSites", "upSitesCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/iam_customer.py b/graphiant_sdk/models/iam_customer.py index 1d3d00c1..801f7108 100644 --- a/graphiant_sdk/models/iam_customer.py +++ b/graphiant_sdk/models/iam_customer.py @@ -28,13 +28,13 @@ class IamCustomer(BaseModel): """ IamCustomer """ # noqa: E501 - admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail") - company_name: Optional[StrictStr] = Field(default=None, alias="companyName") + 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"]}) counts: Optional[IamCounts] = None - 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") + 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"]}) __properties: ClassVar[List[str]] = ["adminEmail", "companyName", "counts", "description", "enterpriseId", "impersonationEnabled", "marketplaceId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/iam_enterprise.py b/graphiant_sdk/models/iam_enterprise.py index 34ddfd87..a563e6d3 100644 --- a/graphiant_sdk/models/iam_enterprise.py +++ b/graphiant_sdk/models/iam_enterprise.py @@ -30,26 +30,26 @@ class IamEnterprise(BaseModel): """ IamEnterprise """ # noqa: E501 - 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") + 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"]}) counts: Optional[IamCounts] = None - credit_limit: Optional[StrictInt] = Field(default=None, alias="creditLimit") + credit_limit: Optional[StrictInt] = Field(default=None, alias="creditLimit", json_schema_extra={"examples": [123]}) customers: Optional[Dict[str, IamCustomer]] = None - description: Optional[StrictStr] = None - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + 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]}) eula_agreement_date: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="eulaAgreementDate") - 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") + 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"]}) __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( diff --git a/graphiant_sdk/models/iam_enterprise_permissions.py b/graphiant_sdk/models/iam_enterprise_permissions.py index 1e7cb76c..17fa69ee 100644 --- a/graphiant_sdk/models/iam_enterprise_permissions.py +++ b/graphiant_sdk/models/iam_enterprise_permissions.py @@ -28,7 +28,7 @@ class IamEnterprisePermissions(BaseModel): """ IamEnterprisePermissions """ # noqa: E501 - group_type: Optional[StrictStr] = Field(default=None, description=" (required)", alias="groupType") + group_type: Optional[StrictStr] = Field(default=None, description=" (required)", alias="groupType", json_schema_extra={"examples": ["ENUM_VALUE"]}) permissions: Optional[CommonPermissions] = None __properties: ClassVar[List[str]] = ["groupType", "permissions"] diff --git a/graphiant_sdk/models/iam_failed_user.py b/graphiant_sdk/models/iam_failed_user.py index 6be9499c..c63e59d0 100644 --- a/graphiant_sdk/models/iam_failed_user.py +++ b/graphiant_sdk/models/iam_failed_user.py @@ -27,8 +27,8 @@ class IamFailedUser(BaseModel): """ IamFailedUser """ # noqa: E501 - reason: Optional[StrictStr] = None - user_id: Optional[StrictStr] = Field(default=None, alias="userId") + 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"]}) __properties: ClassVar[List[str]] = ["reason", "userId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/iam_group.py b/graphiant_sdk/models/iam_group.py index 14588790..658f4b9f 100644 --- a/graphiant_sdk/models/iam_group.py +++ b/graphiant_sdk/models/iam_group.py @@ -29,15 +29,15 @@ class IamGroup(BaseModel): """ IamGroup """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) 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") - id: Optional[StrictStr] = None - name: Optional[StrictStr] = None + 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"]}) permissions: Optional[CommonPermissions] = None - time_window_end: Optional[StrictInt] = Field(default=None, alias="timeWindowEnd") - time_window_start: Optional[StrictInt] = Field(default=None, alias="timeWindowStart") + 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]}) __properties: ClassVar[List[str]] = ["description", "enterpriseIds", "enterprisePermissions", "groupType", "id", "name", "permissions", "timeWindowEnd", "timeWindowStart"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_app_bandwidth_stats.py b/graphiant_sdk/models/ipfix_app_bandwidth_stats.py index aacf8c4a..e6fc8d19 100644 --- a/graphiant_sdk/models/ipfix_app_bandwidth_stats.py +++ b/graphiant_sdk/models/ipfix_app_bandwidth_stats.py @@ -28,9 +28,9 @@ class IpfixAppBandwidthStats(BaseModel): """ IpfixAppBandwidthStats """ # noqa: E501 - dl_bw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Bandwidth in kilo bits per second", alias="dlBw") + dl_bw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Bandwidth in kilo bits per second", alias="dlBw", json_schema_extra={"examples": [123.45]}) ts: Optional[GoogleProtobufTimestamp] = None - ul_bw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Bandwidth in kilo bits per second", alias="ulBw") + ul_bw: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Bandwidth in kilo bits per second", alias="ulBw", json_schema_extra={"examples": [123.45]}) __properties: ClassVar[List[str]] = ["dlBw", "ts", "ulBw"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_app_flow_table.py b/graphiant_sdk/models/ipfix_app_flow_table.py index b6d31393..a1a7db36 100644 --- a/graphiant_sdk/models/ipfix_app_flow_table.py +++ b/graphiant_sdk/models/ipfix_app_flow_table.py @@ -29,21 +29,21 @@ class IpfixAppFlowTable(BaseModel): """ IpfixAppFlowTable """ # noqa: E501 - 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") + 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]}) ts: Optional[GoogleProtobufTimestamp] = None - 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") + 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]}) __properties: ClassVar[List[str]] = ["destIp", "destPort", "dlCircuitName", "dlUsage", "egressLocalCoreRegion", "ingressLocalCoreRegion", "lanSegment", "protocol", "remoteCoreRegion", "slaClass", "srcIp", "srcPort", "ts", "ulCircuitName", "ulUsage"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_app_incidents_data.py b/graphiant_sdk/models/ipfix_app_incidents_data.py index 4879a66c..379684ae 100644 --- a/graphiant_sdk/models/ipfix_app_incidents_data.py +++ b/graphiant_sdk/models/ipfix_app_incidents_data.py @@ -29,8 +29,8 @@ 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") - app_status: Optional[StrictStr] = Field(default=None, alias="appStatus") + 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"]}) ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["appCount", "appStatus", "ts"] diff --git a/graphiant_sdk/models/ipfix_app_state_summary_count.py b/graphiant_sdk/models/ipfix_app_state_summary_count.py index c9340297..958851cf 100644 --- a/graphiant_sdk/models/ipfix_app_state_summary_count.py +++ b/graphiant_sdk/models/ipfix_app_state_summary_count.py @@ -33,8 +33,8 @@ 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") - average_qoe: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageQoe") + 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]}) 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"] diff --git a/graphiant_sdk/models/ipfix_app_topology_selector.py b/graphiant_sdk/models/ipfix_app_topology_selector.py index 63096fb6..80efe252 100644 --- a/graphiant_sdk/models/ipfix_app_topology_selector.py +++ b/graphiant_sdk/models/ipfix_app_topology_selector.py @@ -28,9 +28,9 @@ 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") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["appId", "appName", "slaClass"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_app_utilization_summary.py b/graphiant_sdk/models/ipfix_app_utilization_summary.py index e8c7898e..1f245b8a 100644 --- a/graphiant_sdk/models/ipfix_app_utilization_summary.py +++ b/graphiant_sdk/models/ipfix_app_utilization_summary.py @@ -28,9 +28,9 @@ class IpfixAppUtilizationSummary(BaseModel): """ IpfixAppUtilizationSummary """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["appId", "appName", "usage"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_app_visualization.py b/graphiant_sdk/models/ipfix_app_visualization.py index df319677..712337e6 100644 --- a/graphiant_sdk/models/ipfix_app_visualization.py +++ b/graphiant_sdk/models/ipfix_app_visualization.py @@ -29,11 +29,11 @@ class IpfixAppVisualization(BaseModel): """ IpfixAppVisualization """ # noqa: E501 - app_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appId") - app_name: Optional[StrictStr] = Field(default=None, alias="appName") + 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"]}) 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") + current_status: Optional[StrictStr] = Field(default=None, description="current status of the app.", alias="currentStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["appId", "appName", "circuitAvailability", "circuitMap", "currentStatus"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_circuit_metrics.py b/graphiant_sdk/models/ipfix_circuit_metrics.py index 16401294..a3f37016 100644 --- a/graphiant_sdk/models/ipfix_circuit_metrics.py +++ b/graphiant_sdk/models/ipfix_circuit_metrics.py @@ -28,11 +28,11 @@ class IpfixCircuitMetrics(BaseModel): """ IpfixCircuitMetrics """ # noqa: E501 - name: Optional[StrictStr] = Field(default=None, description="circuit name") - sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass") + 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"]}) stats: Optional[IpfixTwampMetrics] = None - 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") + 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]}) __properties: ClassVar[List[str]] = ["name", "slaClass", "stats", "usage", "usagePct"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_client_usage_summary.py b/graphiant_sdk/models/ipfix_client_usage_summary.py index 4588ae8b..214a576f 100644 --- a/graphiant_sdk/models/ipfix_client_usage_summary.py +++ b/graphiant_sdk/models/ipfix_client_usage_summary.py @@ -27,8 +27,8 @@ class IpfixClientUsageSummary(BaseModel): """ IpfixClientUsageSummary """ # noqa: E501 - client_ip_address: Optional[StrictStr] = Field(default=None, alias="clientIpAddress") - usage: Optional[StrictInt] = Field(default=None, description="data used in kilo bytes") + 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]}) __properties: ClassVar[List[str]] = ["clientIpAddress", "usage"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_connection_map.py b/graphiant_sdk/models/ipfix_connection_map.py index e040a5c4..9486978b 100644 --- a/graphiant_sdk/models/ipfix_connection_map.py +++ b/graphiant_sdk/models/ipfix_connection_map.py @@ -30,7 +30,7 @@ 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") + name: Optional[StrictStr] = Field(default=None, description="the name of the connection", json_schema_extra={"examples": ["Site 1"]}) __properties: ClassVar[List[str]] = ["connections", "connectionsV2", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_entity_usage.py b/graphiant_sdk/models/ipfix_entity_usage.py index 60d11293..26d8e15f 100644 --- a/graphiant_sdk/models/ipfix_entity_usage.py +++ b/graphiant_sdk/models/ipfix_entity_usage.py @@ -27,9 +27,9 @@ class IpfixEntityUsage(BaseModel): """ IpfixEntityUsage """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["id", "name", "usage"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_nat_entry.py b/graphiant_sdk/models/ipfix_nat_entry.py index 719fc201..026b6864 100644 --- a/graphiant_sdk/models/ipfix_nat_entry.py +++ b/graphiant_sdk/models/ipfix_nat_entry.py @@ -28,18 +28,18 @@ class IpfixNatEntry(BaseModel): """ IpfixNatEntry """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["destinationIpAddress", "destinationPort", "insideGlobalIpAddress", "insideGlobalPort", "insideLocalIpAddress", "insideLocalPort", "natType", "outsideGlobalIpAddress", "outsideGlobalPort", "preDestinationIpAddress", "preDestinationPort", "vrfId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_nat_entry_filter.py b/graphiant_sdk/models/ipfix_nat_entry_filter.py index a9aef4da..d08c6e7a 100644 --- a/graphiant_sdk/models/ipfix_nat_entry_filter.py +++ b/graphiant_sdk/models/ipfix_nat_entry_filter.py @@ -28,13 +28,13 @@ class IpfixNatEntryFilter(BaseModel): """ IpfixNatEntryFilter """ # noqa: E501 - 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") + 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]}) 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"] diff --git a/graphiant_sdk/models/ipfix_nat_usage.py b/graphiant_sdk/models/ipfix_nat_usage.py index f96d7d94..c2f28018 100644 --- a/graphiant_sdk/models/ipfix_nat_usage.py +++ b/graphiant_sdk/models/ipfix_nat_usage.py @@ -28,11 +28,11 @@ class IpfixNatUsage(BaseModel): """ IpfixNatUsage """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["currentCount", "currentCountExtranet", "currentCountPat", "currentCountStatic", "maxCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/ipfix_network_topology.py b/graphiant_sdk/models/ipfix_network_topology.py index 95561d7d..9589dba9 100644 --- a/graphiant_sdk/models/ipfix_network_topology.py +++ b/graphiant_sdk/models/ipfix_network_topology.py @@ -35,7 +35,7 @@ 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") + flows: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Application flow count", json_schema_extra={"examples": [123]}) nodes: Optional[List[ManaV2ConnectivityGraphNode]] = None time_window: Optional[StatsmonTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["circuitStatus", "delta", "edges", "flows", "nodes", "timeWindow"] diff --git a/graphiant_sdk/models/ipfix_stats.py b/graphiant_sdk/models/ipfix_stats.py index 85a68717..4ae01b9c 100644 --- a/graphiant_sdk/models/ipfix_stats.py +++ b/graphiant_sdk/models/ipfix_stats.py @@ -28,8 +28,8 @@ class IpfixStats(BaseModel): """ IpfixStats """ # noqa: E501 - 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") + 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]}) ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["avgUsage", "peakUsage", "ts"] diff --git a/graphiant_sdk/models/ipfix_time_window.py b/graphiant_sdk/models/ipfix_time_window.py index a03e7d6e..6afcc520 100644 --- a/graphiant_sdk/models/ipfix_time_window.py +++ b/graphiant_sdk/models/ipfix_time_window.py @@ -29,7 +29,7 @@ class IpfixTimeWindow(BaseModel): """ IpfixTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) 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"] diff --git a/graphiant_sdk/models/ipfix_twamp_metrics.py b/graphiant_sdk/models/ipfix_twamp_metrics.py index 7246e042..183a1745 100644 --- a/graphiant_sdk/models/ipfix_twamp_metrics.py +++ b/graphiant_sdk/models/ipfix_twamp_metrics.py @@ -27,12 +27,12 @@ class IpfixTwampMetrics(BaseModel): """ IpfixTwampMetrics """ # noqa: E501 - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["healthAvg", "jitter", "latency", "loss", "mos", "status"] model_config = ConfigDict( 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 978124fe..c8414947 100644 --- a/graphiant_sdk/models/mana_v2_allocation_conversion_holder_bin.py +++ b/graphiant_sdk/models/mana_v2_allocation_conversion_holder_bin.py @@ -27,12 +27,12 @@ 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["allocationUpperBound", "coreConversionFactor", "coreConversionRate", "gwConversionFactor", "gwConversionRate", "isPrivate"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_app.py b/graphiant_sdk/models/mana_v2_app.py index 86b9e098..ee8ea5f7 100644 --- a/graphiant_sdk/models/mana_v2_app.py +++ b/graphiant_sdk/models/mana_v2_app.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_app_identifier import ManaV2AppIdentifier from typing import Optional, Set @@ -28,9 +28,9 @@ class ManaV2App(BaseModel): """ ManaV2App """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) identifier: Optional[ManaV2AppIdentifier] = None - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["description", "identifier", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_app_identifier.py b/graphiant_sdk/models/mana_v2_app_identifier.py index 9768e1e5..325eeeaa 100644 --- a/graphiant_sdk/models/mana_v2_app_identifier.py +++ b/graphiant_sdk/models/mana_v2_app_identifier.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,8 +27,8 @@ class ManaV2AppIdentifier(BaseModel): """ ManaV2AppIdentifier """ # noqa: E501 - id: Optional[StrictInt] = None - type: Optional[StrictStr] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["id", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_app_list_config.py b/graphiant_sdk/models/mana_v2_app_list_config.py index 521c41ab..45d0b9b7 100644 --- a/graphiant_sdk/models/mana_v2_app_list_config.py +++ b/graphiant_sdk/models/mana_v2_app_list_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_app_identifier import ManaV2AppIdentifier from typing import Optional, Set @@ -29,8 +29,8 @@ class ManaV2AppListConfig(BaseModel): ManaV2AppListConfig """ # noqa: E501 apps: Optional[List[ManaV2AppIdentifier]] = None - description: Optional[StrictStr] = None - name: Optional[StrictStr] = 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"]}) __properties: ClassVar[List[str]] = ["apps", "description", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_application_match_config.py b/graphiant_sdk/models/mana_v2_application_match_config.py index 6b2fa611..fc10642f 100644 --- a/graphiant_sdk/models/mana_v2_application_match_config.py +++ b/graphiant_sdk/models/mana_v2_application_match_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,8 +27,8 @@ class ManaV2ApplicationMatchConfig(BaseModel): """ ManaV2ApplicationMatchConfig """ # noqa: E501 - builtin: Optional[StrictStr] = None - custom: Optional[StrictStr] = None + builtin: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + custom: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["builtin", "custom"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_application_profile.py b/graphiant_sdk/models/mana_v2_application_profile.py index f2748af9..6ba0ddd5 100644 --- a/graphiant_sdk/models/mana_v2_application_profile.py +++ b/graphiant_sdk/models/mana_v2_application_profile.py @@ -17,8 +17,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictInt -from typing import Any, ClassVar, Dict, List +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -27,9 +27,10 @@ class ManaV2ApplicationProfile(BaseModel): """ ManaV2ApplicationProfile """ # noqa: E501 + port_range: Optional[StrictStr] = Field(default=None, description="Port Range", alias="portRange", json_schema_extra={"examples": ["example string"]}) ports: List[StrictInt] - protocol: StrictInt = Field(description="Protocol for the application profile (required)") - __properties: ClassVar[List[str]] = ["ports", "protocol"] + protocol: StrictInt = Field(description="Protocol for the application profile (required)", json_schema_extra={"examples": [123]}) + __properties: ClassVar[List[str]] = ["portRange", "ports", "protocol"] model_config = ConfigDict( validate_by_name=True, @@ -82,6 +83,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ + "portRange": obj.get("portRange"), "ports": obj.get("ports"), "protocol": obj.get("protocol") }) diff --git a/graphiant_sdk/models/mana_v2_assurance_config.py b/graphiant_sdk/models/mana_v2_assurance_config.py index e2dbf01b..13c1dd5e 100644 --- a/graphiant_sdk/models/mana_v2_assurance_config.py +++ b/graphiant_sdk/models/mana_v2_assurance_config.py @@ -29,11 +29,11 @@ class ManaV2AssuranceConfig(BaseModel): ManaV2AssuranceConfig """ # noqa: E501 apps: Optional[List[ManaV2BucketApp]] = None - flex_algo: Optional[StrictStr] = Field(default=None, alias="flexAlgo") + flex_algo: Optional[StrictStr] = Field(default=None, alias="flexAlgo", json_schema_extra={"examples": ["example string"]}) lan_names: Optional[List[StrictStr]] = Field(default=None, alias="lanNames") - name: Optional[StrictStr] = None - site_list_id: Optional[StrictInt] = Field(default=None, alias="siteListId") - use_all_sites: Optional[StrictBool] = Field(default=None, alias="useAllSites") + 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]}) __properties: ClassVar[List[str]] = ["apps", "flexAlgo", "lanNames", "name", "siteListId", "useAllSites"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_aws_advance_settings.py b/graphiant_sdk/models/mana_v2_aws_advance_settings.py index d48eb367..8eefd7a2 100644 --- a/graphiant_sdk/models/mana_v2_aws_advance_settings.py +++ b/graphiant_sdk/models/mana_v2_aws_advance_settings.py @@ -27,12 +27,12 @@ class ManaV2AwsAdvanceSettings(BaseModel): """ ManaV2AwsAdvanceSettings """ # noqa: E501 - address_family: Optional[StrictStr] = Field(default=None, alias="addressFamily") + address_family: Optional[StrictStr] = Field(default=None, alias="addressFamily", json_schema_extra={"examples": ["ENUM_VALUE"]}) allowed_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="allowedPrefixes") - 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") + 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]}) __properties: ClassVar[List[str]] = ["addressFamily", "allowedPrefixes", "amazonBgpRouterIp", "bgpAuthKey", "customerBgpRouterIp", "isJumbo"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_aws_credentials.py b/graphiant_sdk/models/mana_v2_aws_credentials.py index e8b78337..8812b542 100644 --- a/graphiant_sdk/models/mana_v2_aws_credentials.py +++ b/graphiant_sdk/models/mana_v2_aws_credentials.py @@ -27,8 +27,8 @@ class ManaV2AwsCredentials(BaseModel): """ ManaV2AwsCredentials """ # noqa: E501 - access_key_id: Optional[StrictStr] = Field(default=None, alias="accessKeyId") - secret_access_key: Optional[StrictStr] = Field(default=None, alias="secretAccessKey") + 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"]}) __properties: ClassVar[List[str]] = ["accessKeyId", "secretAccessKey"] model_config = ConfigDict( 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 e9680a63..5bfa353f 100644 --- a/graphiant_sdk/models/mana_v2_aws_direct_connect_gateway.py +++ b/graphiant_sdk/models/mana_v2_aws_direct_connect_gateway.py @@ -29,9 +29,9 @@ class ManaV2AwsDirectConnectGateway(BaseModel): """ ManaV2AwsDirectConnectGateway """ # noqa: E501 - asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - id: Optional[StrictStr] = None - name: Optional[StrictStr] = None + 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"]}) transit_gateways: Optional[List[ManaV2AwsTransitGateway]] = Field(default=None, alias="transitGateways") __properties: ClassVar[List[str]] = ["asn", "id", "name", "transitGateways"] diff --git a/graphiant_sdk/models/mana_v2_aws_gateway_details.py b/graphiant_sdk/models/mana_v2_aws_gateway_details.py index b5a24a95..31d5c1e9 100644 --- a/graphiant_sdk/models/mana_v2_aws_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_aws_gateway_details.py @@ -29,7 +29,7 @@ class ManaV2AwsGatewayDetails(BaseModel): """ ManaV2AwsGatewayDetails """ # noqa: E501 - account_id: Optional[StrictStr] = Field(default=None, alias="accountId") + account_id: Optional[StrictStr] = Field(default=None, alias="accountId", json_schema_extra={"examples": ["example string"]}) 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"] 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 5d02826f..a5bd87b1 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 @@ -31,9 +31,9 @@ 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") + customer_asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="customerAsn", json_schema_extra={"examples": [123]}) gateway: Optional[ManaV2AwsDirectConnectGateway] = None - region: Optional[StrictStr] = None + region: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["credentials", "customerAsn", "gateway", "region"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_aws_transit_gateway.py b/graphiant_sdk/models/mana_v2_aws_transit_gateway.py index 344b6b17..8545471a 100644 --- a/graphiant_sdk/models/mana_v2_aws_transit_gateway.py +++ b/graphiant_sdk/models/mana_v2_aws_transit_gateway.py @@ -29,8 +29,8 @@ class ManaV2AwsTransitGateway(BaseModel): """ ManaV2AwsTransitGateway """ # noqa: E501 - asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - id: Optional[StrictStr] = None + 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"]}) vpcs: Optional[List[ManaV2AWSTransitGatewayVpc]] = None __properties: ClassVar[List[str]] = ["asn", "id", "vpcs"] 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 fc02d337..908b8038 100644 --- a/graphiant_sdk/models/mana_v2_aws_transit_gateway_vpc.py +++ b/graphiant_sdk/models/mana_v2_aws_transit_gateway_vpc.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_subnet import ManaV2Subnet from typing import Optional, Set @@ -28,7 +28,7 @@ class ManaV2AWSTransitGatewayVpc(BaseModel): """ ManaV2AWSTransitGatewayVpc """ # noqa: E501 - id: Optional[StrictStr] = None + id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) subnets: Optional[List[ManaV2Subnet]] = None __properties: ClassVar[List[str]] = ["id", "subnets"] diff --git a/graphiant_sdk/models/mana_v2_azure_gateway_details.py b/graphiant_sdk/models/mana_v2_azure_gateway_details.py index 997c512a..db50cc40 100644 --- a/graphiant_sdk/models/mana_v2_azure_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_azure_gateway_details.py @@ -28,9 +28,9 @@ class ManaV2AzureGatewayDetails(BaseModel): """ ManaV2AzureGatewayDetails """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["msPeeringVlanId", "routingPolicy", "serviceKey"] model_config = ConfigDict( 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 19531fd1..2abe744b 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 @@ -28,10 +28,10 @@ class ManaV2B2BExtranetServiceCustomerMatchDetailsCustomer(BaseModel): """ ManaV2B2BExtranetServiceCustomerMatchDetailsCustomer """ # noqa: E501 - company_name: Optional[StrictStr] = Field(default=None, alias="companyName") + company_name: Optional[StrictStr] = Field(default=None, alias="companyName", json_schema_extra={"examples": ["example string"]}) emails: Optional[List[StrictStr]] = None - id: Optional[StrictInt] = None - num_sites: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numSites") + 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]}) __properties: ClassVar[List[str]] = ["companyName", "emails", "id", "numSites"] model_config = ConfigDict( 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 79ca6bfa..a63758fd 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 @@ -27,9 +27,9 @@ class ManaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix(BaseModel): """ ManaV2B2BExtranetServiceCustomerMatchDetailsProducerPrefix """ # noqa: E501 - customer_translated_prefix: Optional[StrictStr] = Field(default=None, alias="customerTranslatedPrefix") - prefix: Optional[StrictStr] = None - tag: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["customerTranslatedPrefix", "prefix", "tag"] model_config = ConfigDict( 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 0dee1290..6010e3c0 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 @@ -27,11 +27,11 @@ class ManaV2B2BExtranetServiceCustomerMatchDetailsService(BaseModel): """ ManaV2B2BExtranetServiceCustomerMatchDetailsService """ # noqa: E501 - company_name: Optional[StrictStr] = Field(default=None, alias="companyName") + company_name: Optional[StrictStr] = Field(default=None, alias="companyName", json_schema_extra={"examples": ["example string"]}) 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") + 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"]}) __properties: ClassVar[List[str]] = ["companyName", "contactEmail", "description", "id", "serviceName"] model_config = ConfigDict( 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 d17e2a2e..75624c20 100644 --- a/graphiant_sdk/models/mana_v2_b2b_application_customer_summary.py +++ b/graphiant_sdk/models/mana_v2_b2b_application_customer_summary.py @@ -28,11 +28,11 @@ class ManaV2B2bApplicationCustomerSummary(BaseModel): """ ManaV2B2bApplicationCustomerSummary """ # noqa: E501 - 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 + 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"]}) updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["adminEmail", "enterpriseId", "id", "name", "status", "updatedAt"] diff --git a/graphiant_sdk/models/mana_v2_b2b_extranet_application.py b/graphiant_sdk/models/mana_v2_b2b_extranet_application.py index dbbca4ae..b491b36f 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_application.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_application.py @@ -30,16 +30,16 @@ class ManaV2B2bExtranetApplication(BaseModel): ManaV2B2bExtranetApplication """ # noqa: E501 created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - 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 + 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"]}) server_ip_address: Optional[List[StrictStr]] = Field(default=None, alias="serverIpAddress") - 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 + 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"]}) 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"] 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 19dfc001..4cfbf47a 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_application_invite.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_application_invite.py @@ -28,11 +28,11 @@ class ManaV2B2bExtranetApplicationInvite(BaseModel): """ ManaV2B2bExtranetApplicationInvite """ # noqa: E501 - 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") + 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]}) service_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="servicePrefixes") __properties: ClassVar[List[str]] = ["adminEmail", "consumerBurstSize", "consumerBwSite", "enterpriseId", "maximumSiteCount", "servicePrefixes"] 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 67122419..bacd8c05 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 @@ -28,12 +28,12 @@ class ManaV2B2bExtranetApplicationInviteResponse(BaseModel): """ ManaV2B2bExtranetApplicationInviteResponse """ # noqa: E501 - 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") + 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]}) service_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="servicePrefixes") __properties: ClassVar[List[str]] = ["adminEmail", "consumerBurstSize", "consumerBwSite", "enterpriseId", "id", "maximumSiteCount", "servicePrefixes"] 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 16054efc..bc65dabe 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_consumers_summary.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_consumers_summary.py @@ -29,17 +29,17 @@ class ManaV2B2bExtranetConsumersSummary(BaseModel): """ ManaV2B2bExtranetConsumersSummary """ # noqa: E501 - b2b_status: Optional[StrictStr] = Field(default=None, alias="b2bStatus") + b2b_status: Optional[StrictStr] = Field(default=None, alias="b2bStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - 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 + 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"]}) __properties: ClassVar[List[str]] = ["b2bStatus", "createdAt", "id", "numEdges", "numSegments", "numSites", "providerName", "publisherName", "serviceName", "status", "type"] model_config = ConfigDict( 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 a2fca441..c0adcf31 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 @@ -29,12 +29,12 @@ class ManaV2B2bExtranetCustomerMatchServicesSummary(BaseModel): """ ManaV2B2bExtranetCustomerMatchServicesSummary """ # 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 - status: Optional[StrictStr] = None - type: Optional[StrictStr] = None + 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"]}) updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["id", "lanSegment", "matchedCustomers", "name", "status", "type", "updatedAt"] 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 98f32b52..5799b93d 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 @@ -30,11 +30,11 @@ class ManaV2B2bExtranetCustomerServicesSummary(BaseModel): ManaV2B2bExtranetCustomerServicesSummary """ # 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 + 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"]}) updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["adminEmails", "id", "matchedServices", "name", "status", "type", "updatedAt"] 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 900a7aed..db17c8dc 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 @@ -30,10 +30,10 @@ class ManaV2B2bExtranetMatchServiceToCustomer(BaseModel): """ ManaV2B2bExtranetMatchServiceToCustomer """ # noqa: E501 - id: StrictInt = Field(description="ID of the service being subscribed by the customer (required)") - lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment") + 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]}) 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") + 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]}) service_prefixes: List[ManaV2B2bExtranetPrefixTag] = Field(alias="servicePrefixes") __properties: ClassVar[List[str]] = ["id", "lanSegment", "nat", "numCustomers", "servicePrefixes"] 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 8aa4e1c1..0fa4ba26 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 @@ -28,7 +28,7 @@ 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") + lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["consumerPrefixes", "lanSegment"] model_config = ConfigDict( 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 a0d98bce..3265a630 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 @@ -29,7 +29,7 @@ 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") + 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]}) __properties: ClassVar[List[str]] = ["adminEmail", "maximumNumberOfSites"] model_config = ConfigDict( 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 fe9eb976..1daea291 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 @@ -29,7 +29,7 @@ class ManaV2B2bExtranetPeeringServicePolicyResponse(BaseModel): ManaV2B2bExtranetPeeringServicePolicyResponse """ # noqa: E501 policy: Optional[ManaV2B2bExtranetPeeringServiceProducerPolicy] = None - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["policy", "serviceName"] model_config = ConfigDict( 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 9133650f..166051c1 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 @@ -30,12 +30,12 @@ class ManaV2B2bExtranetPeeringServiceProducerPolicy(BaseModel): """ ManaV2B2bExtranetPeeringServiceProducerPolicy """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="Description for the service") + description: Optional[StrictStr] = Field(default=None, description="Description for the service", json_schema_extra={"examples": ["example string"]}) 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") + service_lan_segment: StrictInt = Field(description="LAN segment ID for the service (required)", alias="serviceLanSegment", json_schema_extra={"examples": [1234567891011]}) site: List[ManaV2B2bSiteInformation] - type: StrictStr = Field(description="Type of the service whether it is application or peering (required)") + type: StrictStr = Field(description="Type of the service whether it is application or peering (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["description", "globalObjectOps", "prefixTags", "serviceLanSegment", "site", "type"] model_config = ConfigDict( 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 b84a8207..233c6529 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_policy_response.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_policy_response.py @@ -30,10 +30,10 @@ class ManaV2B2bExtranetPolicyResponse(BaseModel): """ ManaV2B2bExtranetPolicyResponse """ # noqa: E501 - dns_name: Optional[StrictStr] = Field(default=None, alias="dnsName") + dns_name: Optional[StrictStr] = Field(default=None, alias="dnsName", json_schema_extra={"examples": ["example string"]}) inbound_security_rules: Optional[List[ManaV2SecurityPolicyRule]] = Field(default=None, alias="inboundSecurityRules") policy: Optional[ManaV2B2bExtranetProducerPolicy] = None - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) traffic_rules: Optional[List[ManaV2TrafficPolicyRule]] = Field(default=None, alias="trafficRules") __properties: ClassVar[List[str]] = ["dnsName", "inboundSecurityRules", "policy", "serviceName", "trafficRules"] 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 b5baa27f..cb8f8c7c 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_prefix_tag.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_prefix_tag.py @@ -27,8 +27,8 @@ class ManaV2B2bExtranetPrefixTag(BaseModel): """ ManaV2B2bExtranetPrefixTag """ # noqa: E501 - prefix: StrictStr = Field(description="Prefix advertised by the service (required)") - tag: Optional[StrictStr] = Field(default=None, description="Tag for the prefix") + 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"]}) __properties: ClassVar[List[str]] = ["prefix", "tag"] model_config = ConfigDict( 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 673e5291..4fb75a2f 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_producer_policy.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_producer_policy.py @@ -33,19 +33,19 @@ class ManaV2B2bExtranetProducerPolicy(BaseModel): """ ManaV2B2bExtranetProducerPolicy """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="Description for the service") + description: Optional[StrictStr] = Field(default=None, description="Description for the service", json_schema_extra={"examples": ["example string"]}) 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") + service_lan_segment: StrictInt = Field(description="LAN segment for the service (required)", alias="serviceLanSegment", json_schema_extra={"examples": [1234567891011]}) service_prefixes: List[StrictStr] = Field(alias="servicePrefixes") sites: List[ManaV2B2bSiteInformation] sla: Optional[ManaV2SlaInformation] = None - 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") + 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]}) __properties: ClassVar[List[str]] = ["description", "globalObjectDeviceSummaries", "globalObjectSummaries", "natPools", "prefixTags", "profiles", "serviceLanSegment", "servicePrefixes", "sites", "sla", "status", "type", "unmatchedCustomers"] model_config = ConfigDict( 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 7b3f673e..8c067420 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 @@ -30,7 +30,7 @@ class ManaV2B2bExtranetServiceCustomerMatchDetails(BaseModel): """ ManaV2B2bExtranetServiceCustomerMatchDetails """ # noqa: E501 - consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId") + consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId", json_schema_extra={"examples": [1234567891011]}) 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") 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 bb690045..3c947378 100644 --- a/graphiant_sdk/models/mana_v2_b2b_extranet_status_summary.py +++ b/graphiant_sdk/models/mana_v2_b2b_extranet_status_summary.py @@ -29,10 +29,10 @@ class ManaV2B2bExtranetStatusSummary(BaseModel): ManaV2B2bExtranetStatusSummary """ # noqa: E501 created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - 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 + 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"]}) __properties: ClassVar[List[str]] = ["createdAt", "deviceId", "deviceStatus", "location", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_b2b_nat.py b/graphiant_sdk/models/mana_v2_b2b_nat.py index db3a2ea0..bfcfba61 100644 --- a/graphiant_sdk/models/mana_v2_b2b_nat.py +++ b/graphiant_sdk/models/mana_v2_b2b_nat.py @@ -27,8 +27,8 @@ class ManaV2B2bNat(BaseModel): """ ManaV2B2bNat """ # noqa: E501 - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["outsideNatPrefix", "prefix"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_b2b_site_information.py b/graphiant_sdk/models/mana_v2_b2b_site_information.py index f2391bdb..b7031006 100644 --- a/graphiant_sdk/models/mana_v2_b2b_site_information.py +++ b/graphiant_sdk/models/mana_v2_b2b_site_information.py @@ -28,8 +28,8 @@ 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") - bw_allocation_sites: Optional[StrictInt] = Field(default=None, description="Total Bandwidth allocation for the service on these sites", alias="bwAllocationSites") + 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]}) 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") diff --git a/graphiant_sdk/models/mana_v2_bandwidth_info.py b/graphiant_sdk/models/mana_v2_bandwidth_info.py index 143608a5..57a61abd 100644 --- a/graphiant_sdk/models/mana_v2_bandwidth_info.py +++ b/graphiant_sdk/models/mana_v2_bandwidth_info.py @@ -27,11 +27,11 @@ 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["combinedCredits", "coreBandwidth", "coreCredits", "gwBandwidth", "gwCredits"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bfd_instance.py b/graphiant_sdk/models/mana_v2_bfd_instance.py index e8a5416a..622c66fa 100644 --- a/graphiant_sdk/models/mana_v2_bfd_instance.py +++ b/graphiant_sdk/models/mana_v2_bfd_instance.py @@ -28,9 +28,9 @@ class ManaV2BfdInstance(BaseModel): """ ManaV2BfdInstance """ # noqa: E501 - 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 + 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]}) __properties: ClassVar[List[str]] = ["enabled", "minimumInterval", "multiplier"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bfd_instance_config.py b/graphiant_sdk/models/mana_v2_bfd_instance_config.py index 7fcb0bdf..ae00ab86 100644 --- a/graphiant_sdk/models/mana_v2_bfd_instance_config.py +++ b/graphiant_sdk/models/mana_v2_bfd_instance_config.py @@ -28,9 +28,9 @@ class ManaV2BfdInstanceConfig(BaseModel): """ ManaV2BfdInstanceConfig """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["enabled", "localMultiplier", "minimumInterval"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bfd_neighbor.py b/graphiant_sdk/models/mana_v2_bfd_neighbor.py index 154f95b3..9dd1c80e 100644 --- a/graphiant_sdk/models/mana_v2_bfd_neighbor.py +++ b/graphiant_sdk/models/mana_v2_bfd_neighbor.py @@ -30,19 +30,19 @@ class ManaV2BfdNeighbor(BaseModel): """ ManaV2BfdNeighbor """ # noqa: E501 - 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 + 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"]}) last_updated: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastUpdated") - 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 + 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"]}) time_in_state: Optional[GoogleProtobufDuration] = Field(default=None, alias="timeInState") - up: Optional[StrictBool] = None + up: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["desiredMinimumTxInterval", "ifIndex", "interface", "lastUpdated", "localDiag", "peerAddress", "remoteDiag", "requiredMinimumRxInterval", "segmentName", "sourceAddress", "state", "timeInState", "up"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bgp_aggregation.py b/graphiant_sdk/models/mana_v2_bgp_aggregation.py index 56bb3076..85bd393f 100644 --- a/graphiant_sdk/models/mana_v2_bgp_aggregation.py +++ b/graphiant_sdk/models/mana_v2_bgp_aggregation.py @@ -27,10 +27,10 @@ class ManaV2BgpAggregation(BaseModel): """ ManaV2BgpAggregation """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["asSet", "id", "prefix", "summaryOnly"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bgp_aggregations_config.py b/graphiant_sdk/models/mana_v2_bgp_aggregations_config.py index d190937e..5a1a91f3 100644 --- a/graphiant_sdk/models/mana_v2_bgp_aggregations_config.py +++ b/graphiant_sdk/models/mana_v2_bgp_aggregations_config.py @@ -27,9 +27,9 @@ class ManaV2BgpAggregationsConfig(BaseModel): """ ManaV2BgpAggregationsConfig """ # noqa: E501 - as_set: Optional[StrictBool] = Field(default=None, alias="asSet") - prefix: Optional[StrictStr] = None - summary_only: Optional[StrictBool] = Field(default=None, alias="summaryOnly") + 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]}) __properties: ClassVar[List[str]] = ["asSet", "prefix", "summaryOnly"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bgp_connection.py b/graphiant_sdk/models/mana_v2_bgp_connection.py index 47b99ec7..823bc7ac 100644 --- a/graphiant_sdk/models/mana_v2_bgp_connection.py +++ b/graphiant_sdk/models/mana_v2_bgp_connection.py @@ -28,12 +28,12 @@ class ManaV2BgpConnection(BaseModel): """ ManaV2BgpConnection """ # noqa: E501 - 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 + 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"]}) time_since_last_oper_change: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="timeSinceLastOperChange") - up: Optional[StrictBool] = None + up: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["localAddress", "operStatus", "remoteAddress", "state", "timeSinceLastOperChange", "up"] model_config = ConfigDict( 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 c2fe54e7..c839e570 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 @@ -30,11 +30,11 @@ 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") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["lastOperStatusChange", "localAddress", "operStatus", "peerAsn", "remoteAddress", "state"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bgp_instance.py b/graphiant_sdk/models/mana_v2_bgp_instance.py index 2ca6e600..29285aac 100644 --- a/graphiant_sdk/models/mana_v2_bgp_instance.py +++ b/graphiant_sdk/models/mana_v2_bgp_instance.py @@ -28,9 +28,9 @@ class ManaV2BgpInstance(BaseModel): """ ManaV2BgpInstance """ # noqa: E501 - asn: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - id: Optional[StrictInt] = None - router_id: Optional[StrictStr] = Field(default=None, alias="routerId") + 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"]}) __properties: ClassVar[List[str]] = ["asn", "id", "routerId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bgp_instance_config.py b/graphiant_sdk/models/mana_v2_bgp_instance_config.py index a6f9c105..641ca208 100644 --- a/graphiant_sdk/models/mana_v2_bgp_instance_config.py +++ b/graphiant_sdk/models/mana_v2_bgp_instance_config.py @@ -29,9 +29,9 @@ 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)]] = None - route_server: Optional[StrictBool] = Field(default=None, alias="routeServer") - router_id: Optional[StrictStr] = Field(default=None, alias="routerId") + 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"]}) __properties: ClassVar[List[str]] = ["addressFamilies", "asn", "routeServer", "routerId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bgp_multipath.py b/graphiant_sdk/models/mana_v2_bgp_multipath.py index 95d60433..cbc6e356 100644 --- a/graphiant_sdk/models/mana_v2_bgp_multipath.py +++ b/graphiant_sdk/models/mana_v2_bgp_multipath.py @@ -27,8 +27,8 @@ class ManaV2BgpMultipath(BaseModel): """ ManaV2BgpMultipath """ # noqa: E501 - enabled: Optional[StrictBool] = None - vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId") + 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]}) __properties: ClassVar[List[str]] = ["enabled", "vrfId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bgp_multipath_config.py b/graphiant_sdk/models/mana_v2_bgp_multipath_config.py index 9db9b005..a108dc0c 100644 --- a/graphiant_sdk/models/mana_v2_bgp_multipath_config.py +++ b/graphiant_sdk/models/mana_v2_bgp_multipath_config.py @@ -27,8 +27,8 @@ class ManaV2BgpMultipathConfig(BaseModel): """ ManaV2BgpMultipathConfig """ # noqa: E501 - enabled: Optional[StrictBool] = None - vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId") + 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]}) __properties: ClassVar[List[str]] = ["enabled", "vrfId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bgp_neighbor.py b/graphiant_sdk/models/mana_v2_bgp_neighbor.py index 5336de33..e41dbe03 100644 --- a/graphiant_sdk/models/mana_v2_bgp_neighbor.py +++ b/graphiant_sdk/models/mana_v2_bgp_neighbor.py @@ -34,29 +34,29 @@ 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") - as_override: Optional[StrictBool] = Field(default=None, alias="asOverride") + 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]}) bfd: Optional[ManaV2BfdInstance] = None bfd_neighbor: Optional[ManaV2BfdNeighbor] = Field(default=None, alias="bfdNeighbor") - 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") + 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"]}) dynamic_neighbor_peers: Optional[List[ManaV2BgpDynamicNeighborOperPeer]] = Field(default=None, alias="dynamicNeighborPeers") - 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 + 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"]}) time_since_last_oper_change: Optional[GoogleProtobufDuration] = Field(default=None, alias="timeSinceLastOperChange") - up: Optional[StrictBool] = None + up: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) __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( 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 a9e50676..d42dc493 100644 --- a/graphiant_sdk/models/mana_v2_bgp_neighbor_address_family.py +++ b/graphiant_sdk/models/mana_v2_bgp_neighbor_address_family.py @@ -27,10 +27,10 @@ class ManaV2BgpNeighborAddressFamily(BaseModel): """ ManaV2BgpNeighborAddressFamily """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["addressFamily", "id", "inboundPolicy", "outboundPolicy"] model_config = ConfigDict( 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 7b84f9e3..51c2c79e 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 @@ -28,7 +28,7 @@ class ManaV2BgpNeighborAddressFamilyConfig(BaseModel): """ ManaV2BgpNeighborAddressFamilyConfig """ # noqa: E501 - address_family: Optional[StrictStr] = Field(default=None, alias="addressFamily") + address_family: Optional[StrictStr] = Field(default=None, alias="addressFamily", json_schema_extra={"examples": ["ENUM_VALUE"]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_bgp_neighbor_config.py b/graphiant_sdk/models/mana_v2_bgp_neighbor_config.py index 681c99e5..479291ce 100644 --- a/graphiant_sdk/models/mana_v2_bgp_neighbor_config.py +++ b/graphiant_sdk/models/mana_v2_bgp_neighbor_config.py @@ -39,23 +39,23 @@ 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") + as_override: Optional[StrictBool] = Field(default=None, alias="asOverride", json_schema_extra={"examples": [True]}) bfd: Optional[ManaV2NullableBfdInstanceConfig] = None - default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate") + default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate", json_schema_extra={"examples": ["ENUM_VALUE"]}) ebgp_multihop_ttl: Optional[ManaV2NullableEbgpConfig] = Field(default=None, alias="ebgpMultihopTtl") - enabled: Optional[StrictBool] = None - hold_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="holdTimer") + 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]}) 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") + keepalive_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="keepaliveTimer", json_schema_extra={"examples": [123]}) keepalive_timer_value: Optional[ManaV2NullableKeepAliveTimer] = Field(default=None, alias="keepaliveTimerValue") - local_address: Optional[StrictStr] = Field(default=None, alias="localAddress") + local_address: Optional[StrictStr] = Field(default=None, alias="localAddress", json_schema_extra={"examples": ["example string"]}) 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") - 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") + 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]}) __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( diff --git a/graphiant_sdk/models/mana_v2_bgp_redistribute.py b/graphiant_sdk/models/mana_v2_bgp_redistribute.py index 3b9b0654..5f4c73ca 100644 --- a/graphiant_sdk/models/mana_v2_bgp_redistribute.py +++ b/graphiant_sdk/models/mana_v2_bgp_redistribute.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,11 +27,11 @@ class ManaV2BgpRedistribute(BaseModel): """ ManaV2BgpRedistribute """ # noqa: E501 - bgp: Optional[StrictBool] = None - connected: Optional[StrictBool] = None - dia: Optional[StrictBool] = None - ospfv2: Optional[StrictBool] = None - static: Optional[StrictBool] = None + 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]}) __properties: ClassVar[List[str]] = ["bgp", "connected", "dia", "ospfv2", "static"] model_config = ConfigDict( 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 151e8c0b..dd2e2c02 100644 --- a/graphiant_sdk/models/mana_v2_bgp_redistribute_protocol_config.py +++ b/graphiant_sdk/models/mana_v2_bgp_redistribute_protocol_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class ManaV2BgpRedistributeProtocolConfig(BaseModel): """ ManaV2BgpRedistributeProtocolConfig """ # noqa: E501 - enabled: Optional[StrictBool] = None + enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bucket_app.py b/graphiant_sdk/models/mana_v2_bucket_app.py index 4440cbe1..106293a2 100644 --- a/graphiant_sdk/models/mana_v2_bucket_app.py +++ b/graphiant_sdk/models/mana_v2_bucket_app.py @@ -28,13 +28,13 @@ class ManaV2BucketApp(BaseModel): """ ManaV2BucketApp """ # noqa: E501 - 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 + 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"]}) servers: Optional[List[ManaV2BucketAppServer]] = None - use_all_servers: Optional[StrictBool] = Field(default=None, alias="useAllServers") + use_all_servers: Optional[StrictBool] = Field(default=None, alias="useAllServers", json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["bucketId", "builtinAppId", "customAppId", "isDomain", "name", "servers", "useAllServers"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_bucket_app_server.py b/graphiant_sdk/models/mana_v2_bucket_app_server.py index 98c2642c..8ec26892 100644 --- a/graphiant_sdk/models/mana_v2_bucket_app_server.py +++ b/graphiant_sdk/models/mana_v2_bucket_app_server.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,9 +27,9 @@ class ManaV2BucketAppServer(BaseModel): """ ManaV2BucketAppServer """ # noqa: E501 - ip: Optional[StrictStr] = None - port: Optional[StrictInt] = None - protocol: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["ip", "port", "protocol"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_circuit.py b/graphiant_sdk/models/mana_v2_circuit.py index 51f07bcf..90983348 100644 --- a/graphiant_sdk/models/mana_v2_circuit.py +++ b/graphiant_sdk/models/mana_v2_circuit.py @@ -39,29 +39,29 @@ 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] = None - circuit_type: Optional[StrictStr] = Field(default=None, alias="circuitType") - connection_type: Optional[StrictStr] = Field(default=None, alias="connectionType") + 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"]}) core_logical_interfaces_v2: Optional[List[ManaV2CircuitInterface]] = Field(default=None, alias="coreLogicalInterfacesV2") - 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 + 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"]}) pat_addresses: Optional[List[StrictStr]] = Field(default=None, alias="patAddresses") - private_ip: Optional[StrictStr] = Field(default=None, alias="privateIp") + private_ip: Optional[StrictStr] = Field(default=None, alias="privateIp", json_schema_extra={"examples": ["example string"]}) profile: Optional[ManaV2QoSProfile] = None - 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") + 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]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_circuit_config.py b/graphiant_sdk/models/mana_v2_circuit_config.py index a6b3fc70..480c1cd2 100644 --- a/graphiant_sdk/models/mana_v2_circuit_config.py +++ b/graphiant_sdk/models/mana_v2_circuit_config.py @@ -38,21 +38,21 @@ 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] = 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 + 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"]}) pat_addresses: Optional[ManaV2NullableIpList] = Field(default=None, alias="patAddresses") - qos_profile: Optional[StrictStr] = Field(default=None, alias="qosProfile") - qos_profile_type: Optional[StrictStr] = Field(default=None, alias="qosProfileType") + 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"]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_circuit_interface.py b/graphiant_sdk/models/mana_v2_circuit_interface.py index 5a0a202c..6f887dcf 100644 --- a/graphiant_sdk/models/mana_v2_circuit_interface.py +++ b/graphiant_sdk/models/mana_v2_circuit_interface.py @@ -27,11 +27,11 @@ class ManaV2CircuitInterface(BaseModel): """ ManaV2CircuitInterface """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["adminStatus", "id", "index", "name", "operStatus"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_community_type.py b/graphiant_sdk/models/mana_v2_community_type.py index d48ba73a..1e1085b2 100644 --- a/graphiant_sdk/models/mana_v2_community_type.py +++ b/graphiant_sdk/models/mana_v2_community_type.py @@ -27,7 +27,7 @@ class ManaV2CommunityType(BaseModel): """ ManaV2CommunityType """ # noqa: E501 - additive: Optional[StrictBool] = None + additive: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) community_list: Optional[List[StrictStr]] = Field(default=None, alias="communityList") __properties: ClassVar[List[str]] = ["additive", "communityList"] diff --git a/graphiant_sdk/models/mana_v2_configuration_metadata.py b/graphiant_sdk/models/mana_v2_configuration_metadata.py index 6199d662..634d82ea 100644 --- a/graphiant_sdk/models/mana_v2_configuration_metadata.py +++ b/graphiant_sdk/models/mana_v2_configuration_metadata.py @@ -27,9 +27,9 @@ class ManaV2ConfigurationMetadata(BaseModel): """ ManaV2ConfigurationMetadata """ # noqa: E501 - commit_confirm: Optional[StrictBool] = Field(default=None, alias="commitConfirm") - description: Optional[StrictStr] = None - name: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["commitConfirm", "description", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_connectivity_graph_edge.py b/graphiant_sdk/models/mana_v2_connectivity_graph_edge.py index 39cc06ac..635de0dc 100644 --- a/graphiant_sdk/models/mana_v2_connectivity_graph_edge.py +++ b/graphiant_sdk/models/mana_v2_connectivity_graph_edge.py @@ -29,10 +29,10 @@ class ManaV2ConnectivityGraphEdge(BaseModel): """ ManaV2ConnectivityGraphEdge """ # noqa: E501 - a: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - b: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + 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]}) connections: Optional[ManaV2GraphiantConnections] = None - quality: Optional[StrictStr] = None + quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["a", "b", "connections", "quality"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_connectivity_graph_node.py b/graphiant_sdk/models/mana_v2_connectivity_graph_node.py index fb06ffa4..aa909056 100644 --- a/graphiant_sdk/models/mana_v2_connectivity_graph_node.py +++ b/graphiant_sdk/models/mana_v2_connectivity_graph_node.py @@ -30,11 +30,11 @@ class ManaV2ConnectivityGraphNode(BaseModel): ManaV2ConnectivityGraphNode """ # noqa: E501 connections: Optional[ManaV2GraphiantConnections] = None - 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 + 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"]}) __properties: ClassVar[List[str]] = ["connections", "id", "name", "overrideRegion", "region", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_consumer.py b/graphiant_sdk/models/mana_v2_consumer.py index 3d20e274..dc062815 100644 --- a/graphiant_sdk/models/mana_v2_consumer.py +++ b/graphiant_sdk/models/mana_v2_consumer.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,8 +27,8 @@ class ManaV2Consumer(BaseModel): """ ManaV2Consumer """ # noqa: E501 - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) vrfs: Optional[List[StrictInt]] = None __properties: ClassVar[List[str]] = ["id", "name", "vrfs"] diff --git a/graphiant_sdk/models/mana_v2_consumer_device_information.py b/graphiant_sdk/models/mana_v2_consumer_device_information.py index aa77fb38..286279ae 100644 --- a/graphiant_sdk/models/mana_v2_consumer_device_information.py +++ b/graphiant_sdk/models/mana_v2_consumer_device_information.py @@ -28,10 +28,10 @@ class ManaV2ConsumerDeviceInformation(BaseModel): """ ManaV2ConsumerDeviceInformation """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) last_updated: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastUpdated") - site: Optional[StrictInt] = None - status: Optional[StrictStr] = None + site: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["deviceId", "lastUpdated", "site", "status"] model_config = ConfigDict( 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 7d744569..8a00162b 100644 --- a/graphiant_sdk/models/mana_v2_contractual_bandwidth_consumption_summary.py +++ b/graphiant_sdk/models/mana_v2_contractual_bandwidth_consumption_summary.py @@ -29,9 +29,9 @@ 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["expirationDate", "totalConsumedCredits", "totalContractedCredits", "totalRemainingCredits"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_core_device_config.py b/graphiant_sdk/models/mana_v2_core_device_config.py index 694ceaa9..e6ab258d 100644 --- a/graphiant_sdk/models/mana_v2_core_device_config.py +++ b/graphiant_sdk/models/mana_v2_core_device_config.py @@ -41,12 +41,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") - name: Optional[StrictStr] = 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"]}) prefix_sets: Optional[Dict[str, ManaV2NullablePrefixSetConfig]] = Field(default=None, alias="prefixSets") prometheus: Optional[ManaV2PrometheusConfig] = None - region: Optional[StrictStr] = None - region_name: Optional[StrictStr] = Field(default=None, alias="regionName") + 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"]}) route_policies: Optional[Dict[str, ManaV2NullableRoutingPolicyConfig]] = Field(default=None, alias="routePolicies") site: Optional[ManaV2NewSite] = None traffic_policy: Optional[ManaV2ForwardingPolicyConfig] = Field(default=None, alias="trafficPolicy") diff --git a/graphiant_sdk/models/mana_v2_core_interface_config.py b/graphiant_sdk/models/mana_v2_core_interface_config.py index b26fc6c6..1698efcb 100644 --- a/graphiant_sdk/models/mana_v2_core_interface_config.py +++ b/graphiant_sdk/models/mana_v2_core_interface_config.py @@ -29,17 +29,17 @@ class ManaV2CoreInterfaceConfig(BaseModel): """ ManaV2CoreInterfaceConfig """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") - alias: Optional[StrictStr] = None - description: Optional[StrictStr] = None - duplex: Optional[StrictStr] = None + 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"]}) ipv4: Optional[ManaV2InterfaceIpConfig] = None ipv6: Optional[ManaV2InterfaceIpConfig] = 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["adminStatus", "alias", "description", "duplex", "ipv4", "ipv6", "maxTransmissionUnit", "mplsEnabled", "tcpMssV4", "tcpMssV6", "xTalkFilter"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_core_link_cost.py b/graphiant_sdk/models/mana_v2_core_link_cost.py index 2b13c76d..ab8ed1d1 100644 --- a/graphiant_sdk/models/mana_v2_core_link_cost.py +++ b/graphiant_sdk/models/mana_v2_core_link_cost.py @@ -30,7 +30,7 @@ class ManaV2CoreLinkCost(BaseModel): ManaV2CoreLinkCost """ # noqa: E501 dynamic: Optional[ManaV2LatencyBandwidth] = None - static: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + static: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["dynamic", "static"] model_config = ConfigDict( 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 fc04ada7..efffd2b7 100644 --- a/graphiant_sdk/models/mana_v2_core_vlan_interface_config.py +++ b/graphiant_sdk/models/mana_v2_core_vlan_interface_config.py @@ -38,7 +38,7 @@ 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") + vlan_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="vlanId", json_schema_extra={"examples": [123]}) wan: Optional[ManaV2InterfaceWanConfig] = None __properties: ClassVar[List[str]] = ["coreNeighbor", "default", "gatewayNeighbor", "interface", "interfaceType", "vlanId", "wan"] diff --git a/graphiant_sdk/models/mana_v2_customer_match_info.py b/graphiant_sdk/models/mana_v2_customer_match_info.py index 44e17174..5fc8b0b5 100644 --- a/graphiant_sdk/models/mana_v2_customer_match_info.py +++ b/graphiant_sdk/models/mana_v2_customer_match_info.py @@ -29,13 +29,13 @@ class ManaV2CustomerMatchInfo(BaseModel): """ ManaV2CustomerMatchInfo """ # noqa: E501 - customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") - customer_name: Optional[StrictStr] = Field(default=None, alias="customerName") + 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"]}) emails: Optional[List[StrictStr]] = None - 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 + 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"]}) updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["customerId", "customerName", "emails", "matchId", "matchedServices", "peerType", "status", "updatedAt"] diff --git a/graphiant_sdk/models/mana_v2_device.py b/graphiant_sdk/models/mana_v2_device.py index d7352ef1..83a11310 100644 --- a/graphiant_sdk/models/mana_v2_device.py +++ b/graphiant_sdk/models/mana_v2_device.py @@ -49,52 +49,52 @@ class ManaV2Device(BaseModel): ManaV2Device """ # noqa: E501 bgp: Optional[ManaV2BgpInstance] = None - bgp_enabled: Optional[StrictBool] = Field(default=None, alias="bgpEnabled") + bgp_enabled: Optional[StrictBool] = Field(default=None, alias="bgpEnabled", json_schema_extra={"examples": [True]}) 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") + dhcp_server_enabled: Optional[StrictBool] = Field(default=None, alias="dhcpServerEnabled", json_schema_extra={"examples": [True]}) dns: Optional[ManaV2Dns] = None - gdi: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - hostname: Optional[StrictStr] = None - id: Optional[StrictInt] = 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]}) interfaces: Optional[List[ManaV2Interface]] = None - internal_state: Optional[StrictStr] = Field(default=None, alias="internalState") - ipfix_enabled: Optional[StrictBool] = Field(default=None, alias="ipfixEnabled") + 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]}) 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") + lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled", json_schema_extra={"examples": [True]}) local_route_tag: Optional[ManaV2RouteTag] = Field(default=None, alias="localRouteTag") - local_web_server_password: Optional[StrictStr] = Field(default=None, alias="localWebServerPassword") + local_web_server_password: Optional[StrictStr] = Field(default=None, alias="localWebServerPassword", json_schema_extra={"examples": ["example string"]}) location: Optional[ManaV2Location] = None - maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode") + maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode", json_schema_extra={"examples": [True]}) nat_policy: Optional[ManaV2NatPolicy] = Field(default=None, alias="natPolicy") - notes: Optional[StrictStr] = None + notes: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) ntp: Optional[ManaV2Ntp] = None - oper_staled: Optional[StrictBool] = Field(default=None, alias="operStaled") + oper_staled: Optional[StrictBool] = Field(default=None, alias="operStaled", json_schema_extra={"examples": [True]}) 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") - ospfv3_enabled: Optional[StrictBool] = Field(default=None, alias="ospfv3Enabled") - platform: Optional[StrictStr] = None + 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"]}) prefix_sets: Optional[List[ManaV2PrefixSet]] = Field(default=None, alias="prefixSets") - reboot_reason: Optional[StrictStr] = Field(default=None, alias="rebootReason") + reboot_reason: Optional[StrictStr] = Field(default=None, alias="rebootReason", json_schema_extra={"examples": ["example string"]}) region: Optional[ManaV2Region] = None region_override: Optional[ManaV2Region] = Field(default=None, alias="regionOverride") - role: Optional[StrictStr] = None + role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) routing_policies: Optional[List[ManaV2RoutingPolicy]] = Field(default=None, alias="routingPolicies") segments: Optional[List[ManaV2Vrf]] = None - serial_number: Optional[StrictStr] = Field(default=None, alias="serialNumber") + serial_number: Optional[StrictStr] = Field(default=None, alias="serialNumber", json_schema_extra={"examples": ["example string"]}) 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") - static_routes_enabled: Optional[StrictBool] = Field(default=None, alias="staticRoutesEnabled") - status: Optional[StrictStr] = 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"]}) traffic_policy: Optional[ManaV2ForwardingPolicy] = Field(default=None, alias="trafficPolicy") uptime: Optional[GoogleProtobufDuration] = None - vrrp_enabled: Optional[StrictBool] = Field(default=None, alias="vrrpEnabled") + vrrp_enabled: Optional[StrictBool] = Field(default=None, alias="vrrpEnabled", json_schema_extra={"examples": [True]}) __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( diff --git a/graphiant_sdk/models/mana_v2_device_filter.py b/graphiant_sdk/models/mana_v2_device_filter.py index 4701ed36..7415ca69 100644 --- a/graphiant_sdk/models/mana_v2_device_filter.py +++ b/graphiant_sdk/models/mana_v2_device_filter.py @@ -27,10 +27,10 @@ class ManaV2DeviceFilter(BaseModel): """ ManaV2DeviceFilter """ # noqa: E501 - hostname: Optional[StrictStr] = None - list: Optional[StrictStr] = None - role: Optional[StrictStr] = None - site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + 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]}) __properties: ClassVar[List[str]] = ["hostname", "list", "role", "siteId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_device_snapshot.py b/graphiant_sdk/models/mana_v2_device_snapshot.py index ddd6c201..bd08acf4 100644 --- a/graphiant_sdk/models/mana_v2_device_snapshot.py +++ b/graphiant_sdk/models/mana_v2_device_snapshot.py @@ -31,12 +31,12 @@ class ManaV2DeviceSnapshot(BaseModel): ManaV2DeviceSnapshot """ # noqa: E501 author: Optional[CommonUserInfo] = None - category: Optional[StrictStr] = None + category: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) created_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdOn") data: Optional[ManaV2DeviceSnapshotData] = None - golden: Optional[StrictBool] = None - id: Optional[StrictInt] = None - name: Optional[StrictStr] = Field(default=None, description="name for the snapshot") + 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"]}) __properties: ClassVar[List[str]] = ["author", "category", "createdOn", "data", "golden", "id", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_device_snapshot_data.py b/graphiant_sdk/models/mana_v2_device_snapshot_data.py index b8563d37..cef0d241 100644 --- a/graphiant_sdk/models/mana_v2_device_snapshot_data.py +++ b/graphiant_sdk/models/mana_v2_device_snapshot_data.py @@ -28,20 +28,20 @@ class ManaV2DeviceSnapshotData(BaseModel): """ ManaV2DeviceSnapshotData """ # noqa: E501 - 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") + 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]}) bgp_neighbor_ip_list: Optional[List[StrictStr]] = Field(default=None, alias="bgpNeighborIpList") - 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") + 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]}) ospf_neighbor_ip_list: Optional[List[StrictStr]] = Field(default=None, alias="ospfNeighborIpList") - ospf_session_count: Optional[StrictInt] = Field(default=None, alias="ospfSessionCount") + ospf_session_count: Optional[StrictInt] = Field(default=None, alias="ospfSessionCount", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["OSPFInstalledRouteCount", "T2SessionCount", "TWAMPSessionCount", "bfdSessionCount", "bgpNeighborIpList", "bgpSessionCount", "deviceRole", "failedServicesCount", "graphnosVersion", "installedLabels", "ipsecSessionCount", "ongoingAlerts", "ospfNeighborIpList", "ospfSessionCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_device_snapshot_list.py b/graphiant_sdk/models/mana_v2_device_snapshot_list.py index 95390735..c0156fa2 100644 --- a/graphiant_sdk/models/mana_v2_device_snapshot_list.py +++ b/graphiant_sdk/models/mana_v2_device_snapshot_list.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_device_snapshot import ManaV2DeviceSnapshot from typing import Optional, Set @@ -28,7 +28,7 @@ class ManaV2DeviceSnapshotList(BaseModel): """ ManaV2DeviceSnapshotList """ # noqa: E501 - count: Optional[StrictInt] = None + count: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) snapshots: Optional[List[ManaV2DeviceSnapshot]] = None __properties: ClassVar[List[str]] = ["count", "snapshots"] diff --git a/graphiant_sdk/models/mana_v2_dhcp_lease.py b/graphiant_sdk/models/mana_v2_dhcp_lease.py index 9763a736..2fce61c4 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_lease.py +++ b/graphiant_sdk/models/mana_v2_dhcp_lease.py @@ -29,10 +29,10 @@ class ManaV2DhcpLease(BaseModel): ManaV2DhcpLease """ # noqa: E501 ends_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="endsAt") - 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 + 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"]}) __properties: ClassVar[List[str]] = ["endsAt", "id", "ipAddress", "macAddress", "vrf"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_dhcp_relay.py b/graphiant_sdk/models/mana_v2_dhcp_relay.py index b571e3c8..cb75146b 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_relay.py +++ b/graphiant_sdk/models/mana_v2_dhcp_relay.py @@ -29,7 +29,7 @@ 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] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["dhcpv4Relays", "dhcpv6Relays", "id"] model_config = ConfigDict( 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 8e2cd2b0..080ac514 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,8 +27,8 @@ class ManaV2DhcpServerDnsParametersConfig(BaseModel): """ ManaV2DhcpServerDnsParametersConfig """ # noqa: E501 - primary: Optional[StrictStr] = None - secondary: Optional[StrictStr] = None + primary: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + secondary: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["primary", "secondary"] model_config = ConfigDict( 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 ef01a938..7734cb2b 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_server_ip_range.py +++ b/graphiant_sdk/models/mana_v2_dhcp_server_ip_range.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,8 +27,8 @@ class ManaV2DhcpServerIpRange(BaseModel): """ ManaV2DhcpServerIpRange """ # noqa: E501 - end: Optional[StrictStr] = None - start: Optional[StrictStr] = None + end: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + start: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["end", "start"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_dhcp_server_pool.py b/graphiant_sdk/models/mana_v2_dhcp_server_pool.py index 4a6dae1f..492b0a4e 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_server_pool.py +++ b/graphiant_sdk/models/mana_v2_dhcp_server_pool.py @@ -32,23 +32,23 @@ class ManaV2DhcpServerPool(BaseModel): """ ManaV2DhcpServerPool """ # noqa: E501 - 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") + 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]}) leases: Optional[List[ManaV2DhcpLease]] = None - 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 + 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"]}) 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") - utilization: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + 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]}) __properties: ClassVar[List[str]] = ["defaultLeaseTimeSecs", "description", "domainName", "gateway", "id", "interface", "ipPrefix", "ipVersion", "leases", "maxLeaseTimeSecs", "minLeaseTimeSecs", "name", "nameservers", "ranges", "staticLeases", "totalAddresses", "utilization"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_dhcp_static_lease.py b/graphiant_sdk/models/mana_v2_dhcp_static_lease.py index bc497f89..a523d3a5 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_static_lease.py +++ b/graphiant_sdk/models/mana_v2_dhcp_static_lease.py @@ -27,11 +27,11 @@ class ManaV2DhcpStaticLease(BaseModel): """ ManaV2DhcpStaticLease """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["hostname", "id", "ipAddress", "macAddress", "vrf"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_dhcp_subnet_config.py b/graphiant_sdk/models/mana_v2_dhcp_subnet_config.py index 95f659f7..d6794df1 100644 --- a/graphiant_sdk/models/mana_v2_dhcp_subnet_config.py +++ b/graphiant_sdk/models/mana_v2_dhcp_subnet_config.py @@ -32,18 +32,18 @@ class ManaV2DhcpSubnetConfig(BaseModel): """ ManaV2DhcpSubnetConfig """ # noqa: E501 - 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") + 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"]}) domain_name_server: Optional[ManaV2DhcpServerDnsParametersConfig] = Field(default=None, alias="domainNameServer") - interface: Optional[StrictStr] = None - ip_gateway: Optional[StrictStr] = Field(default=None, alias="ipGateway") - ip_prefix: Optional[StrictStr] = Field(default=None, alias="ipPrefix") + 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"]}) 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") - min_lease_time_secs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minLeaseTimeSecs") - name: Optional[StrictStr] = 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"]}) 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"] 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 7e05cf29..4a5f2462 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 @@ -27,9 +27,9 @@ class ManaV2DhcpSubnetStaticLeaseConfig(BaseModel): """ ManaV2DhcpSubnetStaticLeaseConfig """ # noqa: E501 - hostname: Optional[StrictStr] = None - ip_address: Optional[StrictStr] = Field(default=None, alias="ipAddress") - mac_address: Optional[StrictStr] = Field(default=None, alias="macAddress") + 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"]}) __properties: ClassVar[List[str]] = ["hostname", "ipAddress", "macAddress"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_dhcpip_range_config.py b/graphiant_sdk/models/mana_v2_dhcpip_range_config.py index bb6ef85b..a75318be 100644 --- a/graphiant_sdk/models/mana_v2_dhcpip_range_config.py +++ b/graphiant_sdk/models/mana_v2_dhcpip_range_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,8 +27,8 @@ class ManaV2DhcpipRangeConfig(BaseModel): """ ManaV2DhcpipRangeConfig """ # noqa: E501 - end: Optional[StrictStr] = None - start: Optional[StrictStr] = None + end: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + start: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["end", "start"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_dns.py b/graphiant_sdk/models/mana_v2_dns.py index e48c12c7..5536dff2 100644 --- a/graphiant_sdk/models/mana_v2_dns.py +++ b/graphiant_sdk/models/mana_v2_dns.py @@ -33,7 +33,7 @@ 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] = None + mode: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_dns_config_dynamic.py b/graphiant_sdk/models/mana_v2_dns_config_dynamic.py index 1d25479b..41c2ea74 100644 --- a/graphiant_sdk/models/mana_v2_dns_config_dynamic.py +++ b/graphiant_sdk/models/mana_v2_dns_config_dynamic.py @@ -27,8 +27,8 @@ class ManaV2DNSConfigDynamic(BaseModel): """ ManaV2DNSConfigDynamic """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") + 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"]}) __properties: ClassVar[List[str]] = ["circuitName", "interfaceName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_dns_servers.py b/graphiant_sdk/models/mana_v2_dns_servers.py index c86b9d29..40e2e6ba 100644 --- a/graphiant_sdk/models/mana_v2_dns_servers.py +++ b/graphiant_sdk/models/mana_v2_dns_servers.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,8 +27,8 @@ class ManaV2DnsServers(BaseModel): """ ManaV2DnsServers """ # noqa: E501 - primary: Optional[StrictStr] = None - secondary: Optional[StrictStr] = None + primary: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + secondary: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["primary", "secondary"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_dnsip_address.py b/graphiant_sdk/models/mana_v2_dnsip_address.py index 8291a317..737de62b 100644 --- a/graphiant_sdk/models/mana_v2_dnsip_address.py +++ b/graphiant_sdk/models/mana_v2_dnsip_address.py @@ -27,13 +27,13 @@ class ManaV2DnsipAddress(BaseModel): """ ManaV2DnsipAddress """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["circuitName", "interfaceName", "ipv4", "ipv6", "source", "stale", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_domain_category.py b/graphiant_sdk/models/mana_v2_domain_category.py index 03dc9015..c9251eec 100644 --- a/graphiant_sdk/models/mana_v2_domain_category.py +++ b/graphiant_sdk/models/mana_v2_domain_category.py @@ -27,10 +27,10 @@ class ManaV2DomainCategory(BaseModel): """ ManaV2DomainCategory """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="Optional longer text describing what sites or traffic belong in this category.") - id: Optional[StrictInt] = Field(default=None, description="Stable identifier for this domain category in the content-filter catalog.") - name: Optional[StrictStr] = Field(default=None, description="Human-readable name of the domain category.") - type: Optional[StrictStr] = Field(default=None, description="Optional category classifier or grouping hint from the catalog (e.g. vendor-specific type).") + 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"]}) __properties: ClassVar[List[str]] = ["description", "id", "name", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_dpi_application_config.py b/graphiant_sdk/models/mana_v2_dpi_application_config.py index 5e830f96..b789d180 100644 --- a/graphiant_sdk/models/mana_v2_dpi_application_config.py +++ b/graphiant_sdk/models/mana_v2_dpi_application_config.py @@ -30,21 +30,21 @@ class ManaV2DpiApplicationConfig(BaseModel): """ ManaV2DpiApplicationConfig """ # noqa: E501 - description: Optional[StrictStr] = None - destination_network: Optional[StrictStr] = Field(default=None, alias="destinationNetwork") - destination_network_list: Optional[StrictStr] = Field(default=None, alias="destinationNetworkList") + 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_networks: Optional[ManaV2IpNetworkListConfig] = Field(default=None, alias="destinationNetworks") - 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_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_ports: Optional[ManaV2L4PortListConfig] = Field(default=None, alias="destinationPorts") - 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") + 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"]}) source_networks: Optional[ManaV2IpNetworkListConfig] = Field(default=None, alias="sourceNetworks") - 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_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_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"] diff --git a/graphiant_sdk/models/mana_v2_dpi_custom_application.py b/graphiant_sdk/models/mana_v2_dpi_custom_application.py index 3dfba5d1..aae249c0 100644 --- a/graphiant_sdk/models/mana_v2_dpi_custom_application.py +++ b/graphiant_sdk/models/mana_v2_dpi_custom_application.py @@ -28,18 +28,18 @@ class ManaV2DpiCustomApplication(BaseModel): """ ManaV2DpiCustomApplication """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["description", "destinationNetwork", "destinationNetworkList", "destinationPort", "destinationPortList", "id", "ipProtocol", "name", "sourceNetwork", "sourceNetworkList", "sourcePort", "sourcePortList"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_dscp.py b/graphiant_sdk/models/mana_v2_dscp.py index 3ccc89c0..a518bfea 100644 --- a/graphiant_sdk/models/mana_v2_dscp.py +++ b/graphiant_sdk/models/mana_v2_dscp.py @@ -28,7 +28,7 @@ class ManaV2Dscp(BaseModel): """ ManaV2Dscp """ # noqa: E501 - code_point: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="codePoint") + code_point: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="codePoint", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["codePoint"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_dynamic_dns_servers.py b/graphiant_sdk/models/mana_v2_dynamic_dns_servers.py index 6d706d43..f5fecbdb 100644 --- a/graphiant_sdk/models/mana_v2_dynamic_dns_servers.py +++ b/graphiant_sdk/models/mana_v2_dynamic_dns_servers.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_dnsip_addresses import ManaV2DnsipAddresses from typing import Optional, Set @@ -28,7 +28,7 @@ class ManaV2DynamicDnsServers(BaseModel): """ ManaV2DynamicDnsServers """ # noqa: E501 - circuit: Optional[StrictStr] = None + circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) servers: Optional[Dict[str, ManaV2DnsipAddresses]] = None __properties: ClassVar[List[str]] = ["circuit", "servers"] diff --git a/graphiant_sdk/models/mana_v2_edge_device_config.py b/graphiant_sdk/models/mana_v2_edge_device_config.py index 6c571e73..01c0901c 100644 --- a/graphiant_sdk/models/mana_v2_edge_device_config.py +++ b/graphiant_sdk/models/mana_v2_edge_device_config.py @@ -45,28 +45,28 @@ class ManaV2EdgeDeviceConfig(BaseModel): """ ManaV2EdgeDeviceConfig """ # noqa: E501 - bgp_enabled: Optional[StrictBool] = Field(default=None, alias="bgpEnabled") + bgp_enabled: Optional[StrictBool] = Field(default=None, alias="bgpEnabled", json_schema_extra={"examples": [True]}) 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") + dhcp_server_enabled: Optional[StrictBool] = Field(default=None, alias="dhcpServerEnabled", json_schema_extra={"examples": [True]}) dns: Optional[ManaV2NullableDnsConfig] = None interfaces: Optional[Dict[str, ManaV2NullableInterfaceConfig]] = None - ipfix_enabled: Optional[StrictBool] = Field(default=None, alias="ipfixEnabled") + ipfix_enabled: Optional[StrictBool] = Field(default=None, alias="ipfixEnabled", json_schema_extra={"examples": [True]}) 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") + lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled", json_schema_extra={"examples": [True]}) local_route_tag: Optional[ManaV2NullableRouteTagSet] = Field(default=None, alias="localRouteTag") - local_web_server_password: Optional[StrictStr] = Field(default=None, alias="localWebServerPassword") + local_web_server_password: Optional[StrictStr] = Field(default=None, alias="localWebServerPassword", json_schema_extra={"examples": ["example string"]}) location: Optional[ManaV2Location] = None - maintenance_mode: Optional[StrictBool] = Field(default=None, alias="maintenanceMode") - name: Optional[StrictStr] = 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"]}) 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") - ospfv3_enabled: Optional[StrictBool] = Field(default=None, alias="ospfv3Enabled") + 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]}) prefix_sets: Optional[Dict[str, ManaV2NullablePrefixSetConfig]] = Field(default=None, alias="prefixSets") - region: Optional[StrictStr] = None - region_name: Optional[StrictStr] = Field(default=None, alias="regionName") + 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"]}) route_policies: Optional[Dict[str, ManaV2NullableRoutingPolicyConfig]] = Field(default=None, alias="routePolicies") segments: Optional[Dict[str, ManaV2VrfConfig]] = None site: Optional[ManaV2NewSite] = None @@ -74,9 +74,9 @@ 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") + static_routes_enabled: Optional[StrictBool] = Field(default=None, alias="staticRoutesEnabled", json_schema_extra={"examples": [True]}) traffic_policy: Optional[ManaV2ForwardingPolicyConfig] = Field(default=None, alias="trafficPolicy") - vrrp_enabled: Optional[StrictBool] = Field(default=None, alias="vrrpEnabled") + vrrp_enabled: Optional[StrictBool] = Field(default=None, alias="vrrpEnabled", json_schema_extra={"examples": [True]}) __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( diff --git a/graphiant_sdk/models/mana_v2_enterprise_configuration.py b/graphiant_sdk/models/mana_v2_enterprise_configuration.py index 24ac59d6..3427b03e 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_configuration.py +++ b/graphiant_sdk/models/mana_v2_enterprise_configuration.py @@ -27,8 +27,8 @@ class ManaV2EnterpriseConfiguration(BaseModel): """ ManaV2EnterpriseConfiguration """ # noqa: E501 - encryption: Optional[StrictStr] = None - use_encryption: Optional[StrictBool] = Field(default=None, alias="useEncryption") + 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]}) __properties: ClassVar[List[str]] = ["encryption", "useEncryption"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_enterprise_prefix_set.py b/graphiant_sdk/models/mana_v2_enterprise_prefix_set.py index 0ee47f59..d33e67b0 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_prefix_set.py +++ b/graphiant_sdk/models/mana_v2_enterprise_prefix_set.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,11 +28,11 @@ class ManaV2EnterprisePrefixSet(BaseModel): """ ManaV2EnterprisePrefixSet """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) entries: Optional[List[ManaV2EnterprisePrefixSetEntry]] = None - id: Optional[StrictInt] = None - mode: Optional[StrictStr] = None - name: Optional[StrictStr] = 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"]}) __properties: ClassVar[List[str]] = ["description", "entries", "id", "mode", "name"] model_config = ConfigDict( 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 8f4f6a8c..0f9da3ce 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_data.py +++ b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_data.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,9 +28,9 @@ class ManaV2EnterprisePrefixSetData(BaseModel): """ ManaV2EnterprisePrefixSetData """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) entries: Optional[List[ManaV2EnterprisePrefixSetDataEntry]] = None - mode: Optional[StrictStr] = None + mode: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["description", "entries", "mode"] model_config = ConfigDict( 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 4ff279ce..edb4403b 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 @@ -28,10 +28,10 @@ class ManaV2EnterprisePrefixSetDataEntry(BaseModel): """ ManaV2EnterprisePrefixSetDataEntry """ # noqa: E501 - 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 + 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]}) __properties: ClassVar[List[str]] = ["ipPrefix", "maskLower", "maskUpper", "seq"] model_config = ConfigDict( 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 9688d3c9..11ff133f 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_entry.py +++ b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_entry.py @@ -28,10 +28,10 @@ class ManaV2EnterprisePrefixSetEntry(BaseModel): """ ManaV2EnterprisePrefixSetEntry """ # noqa: E501 - 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 + 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]}) __properties: ClassVar[List[str]] = ["ipPrefix", "maskLower", "maskUpper", "seq"] model_config = ConfigDict( 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 c7122ee2..c92667f8 100644 --- a/graphiant_sdk/models/mana_v2_enterprise_prefix_set_input.py +++ b/graphiant_sdk/models/mana_v2_enterprise_prefix_set_input.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,11 +28,11 @@ class ManaV2EnterprisePrefixSetInput(BaseModel): """ ManaV2EnterprisePrefixSetInput """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) entries: Optional[Dict[str, ManaV2EnterprisePrefixSetInputEntry]] = None - id: Optional[StrictInt] = None - mode: Optional[StrictStr] = None - name: Optional[StrictStr] = 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"]}) __properties: ClassVar[List[str]] = ["description", "entries", "id", "mode", "name"] model_config = ConfigDict( 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 0b9f5455..5f060ed3 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 @@ -28,10 +28,10 @@ class ManaV2EnterprisePrefixSetInputEntry(BaseModel): """ ManaV2EnterprisePrefixSetInputEntry """ # noqa: E501 - 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 + 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]}) __properties: ClassVar[List[str]] = ["ipPrefix", "maskLower", "maskUpper", "seq"] model_config = ConfigDict( 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 c7abfad0..e779b068 100644 --- a/graphiant_sdk/models/mana_v2_extranet_auto_reverse_routes.py +++ b/graphiant_sdk/models/mana_v2_extranet_auto_reverse_routes.py @@ -27,7 +27,7 @@ class ManaV2ExtranetAutoReverseRoutes(BaseModel): """ ManaV2ExtranetAutoReverseRoutes """ # noqa: E501 - auto_propagate: Optional[StrictBool] = Field(default=None, alias="autoPropagate") + auto_propagate: Optional[StrictBool] = Field(default=None, alias="autoPropagate", json_schema_extra={"examples": [True]}) excluded_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="excludedPrefixes") __properties: ClassVar[List[str]] = ["autoPropagate", "excludedPrefixes"] 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 878520da..3d7d41d2 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 @@ -28,7 +28,7 @@ class ManaV2ExtranetConsumerLanSegmentPolicy(BaseModel): """ ManaV2ExtranetConsumerLanSegmentPolicy """ # noqa: E501 - consumer_lan_segment: Optional[StrictInt] = Field(default=None, alias="consumerLanSegment") + consumer_lan_segment: Optional[StrictInt] = Field(default=None, alias="consumerLanSegment", json_schema_extra={"examples": [1234567891011]}) restricted_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="restrictedPrefixes") rules: Optional[List[ManaV2ExtranetConsumerNatRule]] = None __properties: ClassVar[List[str]] = ["consumerLanSegment", "restrictedPrefixes", "rules"] 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 752223e7..2fac4799 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 @@ -30,7 +30,7 @@ class ManaV2ExtranetConsumerLanSegmentPolicyResponse(BaseModel): """ ManaV2ExtranetConsumerLanSegmentPolicyResponse """ # noqa: E501 - consumer_lan_segment: Optional[StrictInt] = Field(default=None, alias="consumerLanSegment") + consumer_lan_segment: Optional[StrictInt] = Field(default=None, alias="consumerLanSegment", json_schema_extra={"examples": [1234567891011]}) 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") 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 c84f1aa9..b8428075 100644 --- a/graphiant_sdk/models/mana_v2_extranet_consumer_nat_rule.py +++ b/graphiant_sdk/models/mana_v2_extranet_consumer_nat_rule.py @@ -27,8 +27,8 @@ 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") - service_prefix: StrictStr = Field(description="Service prefix for the NAT rule (required)", alias="servicePrefix") + 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"]}) __properties: ClassVar[List[str]] = ["outsideNatPrefix", "servicePrefix"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_extranet_device_status.py b/graphiant_sdk/models/mana_v2_extranet_device_status.py index 2093b0d4..31f9c896 100644 --- a/graphiant_sdk/models/mana_v2_extranet_device_status.py +++ b/graphiant_sdk/models/mana_v2_extranet_device_status.py @@ -27,10 +27,10 @@ class ManaV2ExtranetDeviceStatus(BaseModel): """ ManaV2ExtranetDeviceStatus """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "siteName", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_extranet_policy.py b/graphiant_sdk/models/mana_v2_extranet_policy.py index 7dd4de81..4eed5da7 100644 --- a/graphiant_sdk/models/mana_v2_extranet_policy.py +++ b/graphiant_sdk/models/mana_v2_extranet_policy.py @@ -36,17 +36,17 @@ 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") - description: Optional[StrictStr] = None + 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"]}) host_prefix_set: Optional[ManaV2EnterprisePrefixSet] = Field(default=None, alias="hostPrefixSet") - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) manual: Optional[ManaV2ExtranetManualReverseRoutes] = None - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) 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] = None + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_extranet_policy_input.py b/graphiant_sdk/models/mana_v2_extranet_policy_input.py index 2ffa4bec..9eb43722 100644 --- a/graphiant_sdk/models/mana_v2_extranet_policy_input.py +++ b/graphiant_sdk/models/mana_v2_extranet_policy_input.py @@ -33,15 +33,15 @@ class ManaV2ExtranetPolicyInput(BaseModel): """ # noqa: E501 auto: Optional[ManaV2ExtranetAutoReverseRoutes] = None branches: Optional[ManaV2PolicyTargetInput] = None - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) host_prefix_set: Optional[ManaV2EnterprisePrefixSetInput] = Field(default=None, alias="hostPrefixSet") manual: Optional[ManaV2ExtranetManualReverseRoutes] = None - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) shared_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="sharedPrefixes") - shared_segment: Optional[StrictInt] = Field(default=None, alias="sharedSegment") + shared_segment: Optional[StrictInt] = Field(default=None, alias="sharedSegment", json_schema_extra={"examples": [1234567891011]}) source: Optional[ManaV2PolicyTargetInput] = None target_segments: Optional[List[StrictInt]] = Field(default=None, alias="targetSegments") - type: Optional[StrictStr] = None + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["auto", "branches", "description", "hostPrefixSet", "manual", "name", "sharedPrefixes", "sharedSegment", "source", "targetSegments", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_firewall_zone_pair.py b/graphiant_sdk/models/mana_v2_firewall_zone_pair.py index eaf7d7ed..212f8378 100644 --- a/graphiant_sdk/models/mana_v2_firewall_zone_pair.py +++ b/graphiant_sdk/models/mana_v2_firewall_zone_pair.py @@ -28,8 +28,8 @@ class ManaV2FirewallZonePair(BaseModel): """ ManaV2FirewallZonePair """ # noqa: E501 - inside: Optional[StrictStr] = None - outside: Optional[StrictStr] = None + inside: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + outside: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) security_rulesets: Optional[List[ManaV2SecurityPolicyRuleset]] = Field(default=None, alias="securityRulesets") __properties: ClassVar[List[str]] = ["inside", "outside", "securityRulesets"] diff --git a/graphiant_sdk/models/mana_v2_forwarding_policy_match.py b/graphiant_sdk/models/mana_v2_forwarding_policy_match.py index ed695dbb..a5af6bf3 100644 --- a/graphiant_sdk/models/mana_v2_forwarding_policy_match.py +++ b/graphiant_sdk/models/mana_v2_forwarding_policy_match.py @@ -30,18 +30,18 @@ class ManaV2ForwardingPolicyMatch(BaseModel): """ ManaV2ForwardingPolicyMatch """ # noqa: E501 - 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") + 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]}) 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") - 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") + 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]}) 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"] 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 42ef39b4..90abef9b 100644 --- a/graphiant_sdk/models/mana_v2_forwarding_policy_match_config.py +++ b/graphiant_sdk/models/mana_v2_forwarding_policy_match_config.py @@ -39,15 +39,15 @@ 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") + destination_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destinationPort", json_schema_extra={"examples": [123]}) 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") - ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol") + 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[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") + source_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="sourcePort", json_schema_extra={"examples": [123]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_gateway_details.py b/graphiant_sdk/models/mana_v2_gateway_details.py index d325410f..43886a14 100644 --- a/graphiant_sdk/models/mana_v2_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_gateway_details.py @@ -34,13 +34,13 @@ class ManaV2GatewayDetails(BaseModel): """ # noqa: E501 aws: Optional[ManaV2AwsGatewayDetails] = None azure: Optional[ManaV2AzureGatewayDetails] = None - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) 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") - speed: Optional[StrictStr] = None - vrf_id: Optional[StrictInt] = Field(default=None, alias="vrfId") + 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]}) __properties: ClassVar[List[str]] = ["aws", "azure", "description", "gcp", "ipsecGateway", "oci", "regionId", "speed", "vrfId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_gateway_summary.py b/graphiant_sdk/models/mana_v2_gateway_summary.py index e521a7bf..260c7ea8 100644 --- a/graphiant_sdk/models/mana_v2_gateway_summary.py +++ b/graphiant_sdk/models/mana_v2_gateway_summary.py @@ -31,13 +31,13 @@ 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") - 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 + 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"]}) updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") __properties: ClassVar[List[str]] = ["createdAt", "gatewayDeviceSummary", "graphiantRegion", "id", "name", "speed", "status", "supportStatus", "type", "updatedAt"] 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 78931342..95af5388 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 @@ -27,10 +27,10 @@ class ManaV2GatewaySummaryGatewayDeviceSummary(BaseModel): """ ManaV2GatewaySummaryGatewayDeviceSummary """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["deviceId", "hostname", "interfaceId", "maintenanceMode"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_gcp_gateway_details.py b/graphiant_sdk/models/mana_v2_gcp_gateway_details.py index a82d85ca..0640426b 100644 --- a/graphiant_sdk/models/mana_v2_gcp_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_gcp_gateway_details.py @@ -27,9 +27,9 @@ class ManaV2GcpGatewayDetails(BaseModel): """ ManaV2GcpGatewayDetails """ # noqa: E501 - description: Optional[StrictStr] = None - pairing_key: Optional[StrictStr] = Field(default=None, alias="pairingKey") - routing_policy: Optional[StrictStr] = Field(default=None, alias="routingPolicy") + 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"]}) __properties: ClassVar[List[str]] = ["description", "pairingKey", "routingPolicy"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_global_app_config.py b/graphiant_sdk/models/mana_v2_global_app_config.py index d72ebc37..ab00e213 100644 --- a/graphiant_sdk/models/mana_v2_global_app_config.py +++ b/graphiant_sdk/models/mana_v2_global_app_config.py @@ -28,13 +28,13 @@ class ManaV2GlobalAppConfig(BaseModel): """ ManaV2GlobalAppConfig """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) 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") - name: Optional[StrictStr] = None + 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"]}) port_ranges: Optional[List[ManaV2GlobalAppPortRange]] = Field(default=None, alias="portRanges") - url: Optional[StrictStr] = None + url: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["description", "ipLists", "ipPrefixes", "ipProtocol", "name", "portRanges", "url"] model_config = ConfigDict( 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 a6b5cdf4..ae056bb4 100644 --- a/graphiant_sdk/models/mana_v2_global_app_port_range.py +++ b/graphiant_sdk/models/mana_v2_global_app_port_range.py @@ -28,8 +28,8 @@ class ManaV2GlobalAppPortRange(BaseModel): """ ManaV2GlobalAppPortRange """ # noqa: E501 - lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + 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]}) __properties: ClassVar[List[str]] = ["lower", "upper"] model_config = ConfigDict( 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 8a12620c..9da97ebc 100644 --- a/graphiant_sdk/models/mana_v2_global_bandwidth_consumption_summary.py +++ b/graphiant_sdk/models/mana_v2_global_bandwidth_consumption_summary.py @@ -27,11 +27,11 @@ 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["allocatedMonthlyCredits", "consumedMonthlyCredits", "priorAllocatedMonthlyCredits", "priorConsumedMonthlyCredits", "recommendedMonthlyCredits"] model_config = ConfigDict( 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 e68dd618..7fedf8c5 100644 --- a/graphiant_sdk/models/mana_v2_global_content_filter_config.py +++ b/graphiant_sdk/models/mana_v2_global_content_filter_config.py @@ -29,10 +29,10 @@ 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.") + name: Optional[StrictStr] = Field(default=None, description="Display name for this global content filter configuration.", json_schema_extra={"examples": ["example string"]}) rules: Optional[List[ManaV2GlobalContentFilterRule]] = None - site_list_id: Optional[StrictInt] = Field(default=None, description="Site list whose members this content filter applies to; omit the oneof when no site scope is set.", alias="siteListId") - use_all_sites: Optional[StrictBool] = Field(default=None, description="When true, the filter applies to all sites in the tenant (must be the constant true).", alias="useAllSites") + 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]}) __properties: ClassVar[List[str]] = ["lanNames", "name", "rules", "siteListId", "useAllSites"] model_config = ConfigDict( 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 f1fadd77..bf6a49c9 100644 --- a/graphiant_sdk/models/mana_v2_global_content_filter_rule.py +++ b/graphiant_sdk/models/mana_v2_global_content_filter_rule.py @@ -27,7 +27,7 @@ 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") + 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]}) exception_wildcards: Optional[List[StrictStr]] = Field(default=None, alias="exceptionWildcards") __properties: ClassVar[List[str]] = ["domainCategoryId", "exceptionWildcards"] 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 47c143db..55cfb32e 100644 --- a/graphiant_sdk/models/mana_v2_global_object_device_status.py +++ b/graphiant_sdk/models/mana_v2_global_object_device_status.py @@ -28,12 +28,12 @@ class ManaV2GlobalObjectDeviceStatus(BaseModel): """ ManaV2GlobalObjectDeviceStatus """ # noqa: E501 - 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 + 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"]}) status_since: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="statusSince") __properties: ClassVar[List[str]] = ["deviceId", "errorMessage", "hostname", "internalState", "siteName", "status", "statusSince"] 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 2dbb45bb..7b11b15f 100644 --- a/graphiant_sdk/models/mana_v2_global_object_operation_config.py +++ b/graphiant_sdk/models/mana_v2_global_object_operation_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -29,7 +29,7 @@ class ManaV2GlobalObjectOperationConfig(BaseModel): ManaV2GlobalObjectOperationConfig """ # noqa: E501 interface: Optional[ManaV2NullableSiteInterfaceName] = None - operation: Optional[StrictStr] = None + operation: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["interface", "operation"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_global_object_summary.py b/graphiant_sdk/models/mana_v2_global_object_summary.py index f15c6bcc..080cdc8b 100644 --- a/graphiant_sdk/models/mana_v2_global_object_summary.py +++ b/graphiant_sdk/models/mana_v2_global_object_summary.py @@ -28,20 +28,20 @@ class ManaV2GlobalObjectSummary(BaseModel): """ ManaV2GlobalObjectSummary """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["attachPoint", "id", "ipVersion", "name", "numAttachedDevices", "numAttachedSites", "numFailures", "numInSyncDevices", "numOverrideDevices", "numPolicies", "numPrefixes", "numRules", "numStatements", "trafficPolicyType"] model_config = ConfigDict( 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 f692f8d8..07f87f66 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 @@ -30,7 +30,7 @@ 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") + region_id: Optional[StrictInt] = Field(default=None, alias="regionId", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["emails", "ipsecGatewayDetails", "regionId"] model_config = ConfigDict( 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 1300a212..4a60df9d 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 @@ -31,11 +31,11 @@ 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") - keepalive_timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="keepaliveTimer") + 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[ManaV2NullableMd5Password] = 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") + 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]}) __properties: ClassVar[List[str]] = ["addressFamilies", "holdTimer", "keepaliveTimer", "md5Password", "peerAsn", "sendCommunity"] model_config = ConfigDict( 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 f8096abc..cd08c9d6 100644 --- a/graphiant_sdk/models/mana_v2_i_psec_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_i_psec_gateway_details.py @@ -30,16 +30,16 @@ class ManaV2IPsecGatewayDetails(BaseModel): """ ManaV2IPsecGatewayDetails """ # noqa: E501 - 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") + 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"]}) routing: Optional[ManaV2IpsecRoutingConfig] = None - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") + tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss", json_schema_extra={"examples": [123]}) tunnel1: Optional[ManaV2IPsecGatewayTunnelDetails] = None tunnel2: Optional[ManaV2IPsecGatewayTunnelDetails] = None - vpn_profile: Optional[StrictStr] = Field(default=None, alias="vpnProfile") + vpn_profile: Optional[StrictStr] = Field(default=None, alias="vpnProfile", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["destinationAddress", "ikeInitiator", "mtu", "name", "remoteIkePeerIdentity", "routing", "tcpMss", "tunnel1", "tunnel2", "vpnProfile"] model_config = ConfigDict( 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 c524c34b..bd1fec8c 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 @@ -27,10 +27,10 @@ class ManaV2IPsecGatewayTunnelDetails(BaseModel): """ ManaV2IPsecGatewayTunnelDetails """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["insideIpv4Cidr", "insideIpv6Cidr", "localIkePeerIdentity", "psk"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_i_psec_profile.py b/graphiant_sdk/models/mana_v2_i_psec_profile.py index 4aa6c4e7..6b68340c 100644 --- a/graphiant_sdk/models/mana_v2_i_psec_profile.py +++ b/graphiant_sdk/models/mana_v2_i_psec_profile.py @@ -28,19 +28,19 @@ class ManaV2IPsecProfile(BaseModel): """ ManaV2IPsecProfile """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["antiReplayWindowSize", "dpdInterval", "esn", "id", "ikeDhGroup", "ikeEncryptionAlg", "ikeIntegrity", "ipsecEncryptionAlg", "ipsecIntegrity", "name", "perfectForwardSecrecy", "reauthInterval", "rekeyInterval"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_i_psec_tunnel.py b/graphiant_sdk/models/mana_v2_i_psec_tunnel.py index 81fc1574..d93e8e43 100644 --- a/graphiant_sdk/models/mana_v2_i_psec_tunnel.py +++ b/graphiant_sdk/models/mana_v2_i_psec_tunnel.py @@ -29,23 +29,23 @@ class ManaV2IPsecTunnel(BaseModel): """ ManaV2IPsecTunnel """ # noqa: E501 - 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") + 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"]}) routing: Optional[ManaV2IpsecRoutingConfig] = None - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") - vpn_profile: Optional[StrictStr] = Field(default=None, alias="vpnProfile") + 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"]}) __properties: ClassVar[List[str]] = ["destinationAddress", "ikeInitiator", "ipsecLabel", "lan", "localAddressV4", "localAddressV6", "localCircuit", "localIkePeerIdentity", "mtu", "name", "presharedKey", "remoteAddressV4", "remoteAddressV6", "remoteIkePeerIdentity", "routing", "tcpMss", "vpnProfile"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_interface.py b/graphiant_sdk/models/mana_v2_interface.py index faf52ba1..eb2a5ab7 100644 --- a/graphiant_sdk/models/mana_v2_interface.py +++ b/graphiant_sdk/models/mana_v2_interface.py @@ -35,41 +35,41 @@ class ManaV2Interface(BaseModel): """ ManaV2Interface """ # noqa: E501 - alias: Optional[StrictStr] = None - circuit: Optional[StrictStr] = None - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + 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"]}) 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") - 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 + 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]}) 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] = None - lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled") + 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]}) macsec: Optional[ManaV2InterfaceMaCsec] = None - max_transmission_unit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxTransmissionUnit") - name: Optional[StrictStr] = 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"]}) oper_updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="operUpdatedAt") - phy_address: Optional[StrictStr] = Field(default=None, alias="phyAddress") - protocol: Optional[StrictStr] = None - security_zone: Optional[StrictStr] = Field(default=None, alias="securityZone") + 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"]}) 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") + speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="speedMbps", json_schema_extra={"examples": [123]}) subinterfaces: Optional[List[ManaV2InterfaceVlan]] = None - 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") + 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"]}) __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( diff --git a/graphiant_sdk/models/mana_v2_interface_address.py b/graphiant_sdk/models/mana_v2_interface_address.py index a4cf3ee0..0de48d29 100644 --- a/graphiant_sdk/models/mana_v2_interface_address.py +++ b/graphiant_sdk/models/mana_v2_interface_address.py @@ -29,11 +29,11 @@ class ManaV2InterfaceAddress(BaseModel): """ ManaV2InterfaceAddress """ # noqa: E501 - address: Optional[StrictStr] = None - dhcp_client: Optional[StrictBool] = Field(default=None, alias="dhcpClient") + 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]}) dhcp_relay: Optional[ManaV2DhcpRelay] = Field(default=None, alias="dhcpRelay") - dhcp_server: Optional[StrictBool] = Field(default=None, alias="dhcpServer") - origin: Optional[StrictStr] = None + 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"]}) vrrp_group: Optional[ManaV2VrrpGroup] = Field(default=None, alias="vrrpGroup") __properties: ClassVar[List[str]] = ["address", "dhcpClient", "dhcpRelay", "dhcpServer", "origin", "vrrpGroup"] diff --git a/graphiant_sdk/models/mana_v2_interface_config.py b/graphiant_sdk/models/mana_v2_interface_config.py index 952c4383..07c4db71 100644 --- a/graphiant_sdk/models/mana_v2_interface_config.py +++ b/graphiant_sdk/models/mana_v2_interface_config.py @@ -34,25 +34,25 @@ class ManaV2InterfaceConfig(BaseModel): """ ManaV2InterfaceConfig """ # noqa: E501 - 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 + 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"]}) ipsec: Optional[ManaV2InterfaceIPsecConfig] = None ipv4: Optional[ManaV2InterfaceIpConfig] = None ipv6: Optional[ManaV2InterfaceIpConfig] = None - lan: Optional[StrictStr] = None - lldp_enabled: Optional[StrictBool] = Field(default=None, alias="lldpEnabled") - loopback: Optional[StrictBool] = 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]}) macsec: Optional[ManaV2NullableMaCsecConfiguration] = None - 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 + 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]}) subinterfaces: Optional[Dict[str, ManaV2NullableInterfaceVlanConfig]] = None - 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") + 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]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_interface_core_config.py b/graphiant_sdk/models/mana_v2_interface_core_config.py index cdac158a..962a5d78 100644 --- a/graphiant_sdk/models/mana_v2_interface_core_config.py +++ b/graphiant_sdk/models/mana_v2_interface_core_config.py @@ -40,15 +40,15 @@ class ManaV2InterfaceCoreConfig(BaseModel): """ ManaV2InterfaceCoreConfig """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") - alias: Optional[StrictStr] = None - circuit: Optional[StrictStr] = None + 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"]}) 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") + create_link_local_address: Optional[StrictBool] = Field(default=None, alias="createLinkLocalAddress", json_schema_extra={"examples": [True]}) default: Optional[Dict[str, Any]] = None - description: Optional[StrictStr] = None - duplex: Optional[StrictStr] = 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"]}) dynamic: Optional[ManaV2LatencyBandwidth] = None flex_algos: Optional[ManaV2InterfaceCoreFlexAlgoConfig] = Field(default=None, alias="flexAlgos") gateway_neighbor: Optional[ManaV2InterfaceCoreToGatewayPeerConfig] = Field(default=None, alias="gatewayNeighbor") @@ -57,27 +57,27 @@ class ManaV2InterfaceCoreConfig(BaseModel): ipsec: Optional[ManaV2InterfaceIPsecConfig] = None ipv4: Optional[ManaV2InterfaceIpConfig] = None ipv6: Optional[ManaV2InterfaceIpConfig] = None - 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") + 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]}) 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") - 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 + 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]}) subinterfaces: Optional[Dict[str, ManaV2NullableCoreInterfaceVlanConfig]] = None - 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") + 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"]}) 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") + x_talk_filter: Optional[StrictBool] = Field(default=None, alias="xTalkFilter", json_schema_extra={"examples": [True]}) __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( 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 d2b83e4b..55cddc43 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 @@ -30,8 +30,8 @@ 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") - type: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["Cost", "ospfCost", "peerHostname", "type"] model_config = ConfigDict( 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 677c248e..4fe8aed4 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2InterfaceCoreToGatewayPeerConfig(BaseModel): """ ManaV2InterfaceCoreToGatewayPeerConfig """ # noqa: E501 - type: Optional[StrictStr] = None + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_interface_dhcp_config.py b/graphiant_sdk/models/mana_v2_interface_dhcp_config.py index 71bdf77c..885fcc54 100644 --- a/graphiant_sdk/models/mana_v2_interface_dhcp_config.py +++ b/graphiant_sdk/models/mana_v2_interface_dhcp_config.py @@ -28,7 +28,7 @@ class ManaV2InterfaceDhcpConfig(BaseModel): """ ManaV2InterfaceDhcpConfig """ # noqa: E501 - dhcp_client: Optional[StrictBool] = Field(default=None, alias="dhcpClient") + dhcp_client: Optional[StrictBool] = Field(default=None, alias="dhcpClient", json_schema_extra={"examples": [True]}) dhcp_relay: Optional[ManaV2DhcpRelayConfig] = Field(default=None, alias="dhcpRelay") __properties: ClassVar[List[str]] = ["dhcpClient", "dhcpRelay"] diff --git a/graphiant_sdk/models/mana_v2_interface_i_psec.py b/graphiant_sdk/models/mana_v2_interface_i_psec.py index 446ecfd0..9a0d35bd 100644 --- a/graphiant_sdk/models/mana_v2_interface_i_psec.py +++ b/graphiant_sdk/models/mana_v2_interface_i_psec.py @@ -29,32 +29,32 @@ class ManaV2InterfaceIPsec(BaseModel): """ ManaV2InterfaceIPsec """ # noqa: E501 - 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 + 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]}) established_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="establishedTime") - 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") + 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]}) __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( 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 46d9b9f2..ca5d8cd4 100644 --- a/graphiant_sdk/models/mana_v2_interface_i_psec_config.py +++ b/graphiant_sdk/models/mana_v2_interface_i_psec_config.py @@ -28,25 +28,25 @@ class ManaV2InterfaceIPsecConfig(BaseModel): """ ManaV2InterfaceIPsecConfig """ # noqa: E501 - 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") + 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"]}) __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( diff --git a/graphiant_sdk/models/mana_v2_interface_lagvlan_config.py b/graphiant_sdk/models/mana_v2_interface_lagvlan_config.py index ede01be2..754edb68 100644 --- a/graphiant_sdk/models/mana_v2_interface_lagvlan_config.py +++ b/graphiant_sdk/models/mana_v2_interface_lagvlan_config.py @@ -29,13 +29,13 @@ class ManaV2InterfaceLagvlanConfig(BaseModel): """ ManaV2InterfaceLagvlanConfig """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") - alias: Optional[StrictStr] = None - description: Optional[StrictStr] = None + 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"]}) ipv4: Optional[ManaV2InterfaceIpConfig] = None ipv6: Optional[ManaV2InterfaceIpConfig] = None - segment: Optional[StrictStr] = None - vlan: Optional[Annotated[int, Field(strict=True, ge=0)]] = 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]}) __properties: ClassVar[List[str]] = ["adminStatus", "alias", "description", "ipv4", "ipv6", "segment", "vlan"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_interface_ma_csec.py b/graphiant_sdk/models/mana_v2_interface_ma_csec.py index 7ded070e..25729145 100644 --- a/graphiant_sdk/models/mana_v2_interface_ma_csec.py +++ b/graphiant_sdk/models/mana_v2_interface_ma_csec.py @@ -29,13 +29,13 @@ class ManaV2InterfaceMaCsec(BaseModel): """ ManaV2InterfaceMaCsec """ # noqa: E501 - enabled: Optional[StrictBool] = None - encryption_enforcement_mode: Optional[StrictStr] = Field(default=None, alias="encryptionEnforcementMode") - key_server_priority: Optional[StrictInt] = Field(default=None, alias="keyServerPriority") + 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]}) 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") - transparent_vlan: Optional[StrictBool] = Field(default=None, alias="transparentVlan") + 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]}) __properties: ClassVar[List[str]] = ["enabled", "encryptionEnforcementMode", "keyServerPriority", "pskConfigurations", "sakConfigurations", "splitSakConfigByLagMember", "transparentVlan"] model_config = ConfigDict( 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 45598012..c5dc6bd6 100644 --- a/graphiant_sdk/models/mana_v2_interface_sfp_optical_strength.py +++ b/graphiant_sdk/models/mana_v2_interface_sfp_optical_strength.py @@ -28,11 +28,11 @@ class ManaV2InterfaceSfpOpticalStrength(BaseModel): """ ManaV2InterfaceSfpOpticalStrength """ # noqa: E501 - 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 + 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]}) __properties: ClassVar[List[str]] = ["index", "rxPower", "txBias", "txPower", "voltage"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_interface_tunnel.py b/graphiant_sdk/models/mana_v2_interface_tunnel.py index 50974028..7af682ee 100644 --- a/graphiant_sdk/models/mana_v2_interface_tunnel.py +++ b/graphiant_sdk/models/mana_v2_interface_tunnel.py @@ -29,21 +29,21 @@ class ManaV2InterfaceTunnel(BaseModel): """ ManaV2InterfaceTunnel """ # noqa: E501 - anti_replay_w_size: Optional[StrictInt] = Field(default=None, alias="antiReplayWSize") + anti_replay_w_size: Optional[StrictInt] = Field(default=None, alias="antiReplayWSize", json_schema_extra={"examples": [123]}) established_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="establishedTime") - local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit") + local_circuit: Optional[StrictStr] = Field(default=None, alias="localCircuit", json_schema_extra={"examples": ["example string"]}) local_interface: Optional[ManaV2Interface] = Field(default=None, alias="localInterface") - 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 + 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"]}) rekey_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="rekeyTime") - 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") + 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"]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_interface_vlan.py b/graphiant_sdk/models/mana_v2_interface_vlan.py index 53a70d74..52bc9530 100644 --- a/graphiant_sdk/models/mana_v2_interface_vlan.py +++ b/graphiant_sdk/models/mana_v2_interface_vlan.py @@ -30,31 +30,31 @@ class ManaV2InterfaceVlan(BaseModel): """ ManaV2InterfaceVlan """ # noqa: E501 - alias: Optional[StrictStr] = None - circuit: Optional[StrictStr] = None + alias: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + circuit: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) config_updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="configUpdatedAt") - 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 + 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]}) ipv4: Optional[ManaV2InterfaceAddress] = None ipv6: Optional[ManaV2InterfaceAddress] = None ipv6_addresses: Optional[List[ManaV2InterfaceAddress]] = Field(default=None, alias="ipv6Addresses") - 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 + 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"]}) oper_updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="operUpdatedAt") - 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 + 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]}) __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( diff --git a/graphiant_sdk/models/mana_v2_interface_vlan_config.py b/graphiant_sdk/models/mana_v2_interface_vlan_config.py index 38e421ee..5027786b 100644 --- a/graphiant_sdk/models/mana_v2_interface_vlan_config.py +++ b/graphiant_sdk/models/mana_v2_interface_vlan_config.py @@ -32,22 +32,22 @@ class ManaV2InterfaceVlanConfig(BaseModel): """ ManaV2InterfaceVlanConfig """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") - alias: Optional[StrictStr] = None - circuit: Optional[StrictStr] = None - description: Optional[StrictStr] = None + 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"]}) ipv4: Optional[ManaV2InterfaceIpConfig] = None ipv6: Optional[ManaV2InterfaceIpConfig] = None - 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") + 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]}) 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)]] = None + vlan: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_interface_wan_config.py b/graphiant_sdk/models/mana_v2_interface_wan_config.py index 0b6d0d1f..1367e672 100644 --- a/graphiant_sdk/models/mana_v2_interface_wan_config.py +++ b/graphiant_sdk/models/mana_v2_interface_wan_config.py @@ -29,8 +29,8 @@ class ManaV2InterfaceWanConfig(BaseModel): ManaV2InterfaceWanConfig """ # noqa: E501 gw: Optional[ManaV2NullableInterfaceIpConfig] = None - type: Optional[StrictStr] = None - vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName") + 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"]}) __properties: ClassVar[List[str]] = ["gw", "type", "vrfName"] model_config = ConfigDict( 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 1cc9ea3c..9bb41bbe 100644 --- a/graphiant_sdk/models/mana_v2_internet_access_bandwidth_info.py +++ b/graphiant_sdk/models/mana_v2_internet_access_bandwidth_info.py @@ -27,8 +27,8 @@ 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") - internet_credits: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Additional credits to support the provided DIA bandwidth", alias="internetCredits") + 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]}) __properties: ClassVar[List[str]] = ["internetBandwidth", "internetCredits"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ip_firewall_policy.py b/graphiant_sdk/models/mana_v2_ip_firewall_policy.py index 606083d2..62b7d577 100644 --- a/graphiant_sdk/models/mana_v2_ip_firewall_policy.py +++ b/graphiant_sdk/models/mana_v2_ip_firewall_policy.py @@ -28,9 +28,9 @@ class ManaV2IpFirewallPolicy(BaseModel): """ ManaV2IpFirewallPolicy """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["blockLandAttacks", "sessionLimit", "urpf"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ip_network_list.py b/graphiant_sdk/models/mana_v2_ip_network_list.py index df866e04..3bab0956 100644 --- a/graphiant_sdk/models/mana_v2_ip_network_list.py +++ b/graphiant_sdk/models/mana_v2_ip_network_list.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,8 +27,8 @@ class ManaV2IpNetworkList(BaseModel): """ ManaV2IpNetworkList """ # noqa: E501 - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) networks: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["id", "name", "networks"] 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 535a21ad..392d5029 100644 --- a/graphiant_sdk/models/mana_v2_ip_network_list_config.py +++ b/graphiant_sdk/models/mana_v2_ip_network_list_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2IpNetworkListConfig(BaseModel): """ ManaV2IpNetworkListConfig """ # noqa: E501 - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) networks: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["name", "networks"] diff --git a/graphiant_sdk/models/mana_v2_ipfix_exporter.py b/graphiant_sdk/models/mana_v2_ipfix_exporter.py index 7b08e717..cd697183 100644 --- a/graphiant_sdk/models/mana_v2_ipfix_exporter.py +++ b/graphiant_sdk/models/mana_v2_ipfix_exporter.py @@ -28,21 +28,21 @@ class ManaV2IpfixExporter(BaseModel): """ ManaV2IpfixExporter """ # noqa: E501 - 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 + 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]}) monitored_segments: Optional[List[StrictStr]] = Field(default=None, alias="monitoredSegments") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["destinationAddress", "destinationPort", "errorMessage", "globalId", "id", "monitoredSegments", "name", "sampleMode", "sampleRate", "sourceAddress", "sourceInterface", "sourceSegment", "status", "vrfId", "vrfName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ipfix_exporter_config.py b/graphiant_sdk/models/mana_v2_ipfix_exporter_config.py index 0e0cce4f..ff771835 100644 --- a/graphiant_sdk/models/mana_v2_ipfix_exporter_config.py +++ b/graphiant_sdk/models/mana_v2_ipfix_exporter_config.py @@ -28,16 +28,16 @@ class ManaV2IpfixExporterConfig(BaseModel): """ ManaV2IpfixExporterConfig """ # noqa: E501 - 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") + 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]}) monitored_segments: Optional[List[StrictStr]] = Field(default=None, alias="monitoredSegments") - 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") + 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]}) __properties: ClassVar[List[str]] = ["destinationAddress", "destinationPort", "globalId", "isGlobalSync", "monitoredSegments", "name", "sampleMode", "sampleRate", "sourceInterfaceName", "vrfId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ipsec_connection.py b/graphiant_sdk/models/mana_v2_ipsec_connection.py index cf2d19f8..0f497e05 100644 --- a/graphiant_sdk/models/mana_v2_ipsec_connection.py +++ b/graphiant_sdk/models/mana_v2_ipsec_connection.py @@ -29,12 +29,12 @@ class ManaV2IpsecConnection(BaseModel): """ ManaV2IpsecConnection """ # noqa: E501 - dest_ip: Optional[StrictStr] = Field(default=None, alias="destIp") - dest_port: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="destPort") + 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]}) last_established_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastEstablishedTime") - 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") + 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]}) __properties: ClassVar[List[str]] = ["destIp", "destPort", "lastEstablishedTime", "quality", "sourceIp", "sourcePort"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_l4_port_list.py b/graphiant_sdk/models/mana_v2_l4_port_list.py index 1606831b..ce24da4d 100644 --- a/graphiant_sdk/models/mana_v2_l4_port_list.py +++ b/graphiant_sdk/models/mana_v2_l4_port_list.py @@ -28,8 +28,8 @@ class ManaV2L4PortList(BaseModel): """ ManaV2L4PortList """ # noqa: E501 - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) ports: Optional[List[Annotated[int, Field(strict=True, ge=0)]]] = None __properties: ClassVar[List[str]] = ["id", "name", "ports"] 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 29441780..2e85c59d 100644 --- a/graphiant_sdk/models/mana_v2_l4_port_list_config.py +++ b/graphiant_sdk/models/mana_v2_l4_port_list_config.py @@ -28,7 +28,7 @@ class ManaV2L4PortListConfig(BaseModel): """ ManaV2L4PortListConfig """ # noqa: E501 - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) ports: Optional[List[Annotated[int, Field(strict=True, ge=0)]]] = None __properties: ClassVar[List[str]] = ["name", "ports"] diff --git a/graphiant_sdk/models/mana_v2_lacp_config.py b/graphiant_sdk/models/mana_v2_lacp_config.py index bb823a5d..d471f9b1 100644 --- a/graphiant_sdk/models/mana_v2_lacp_config.py +++ b/graphiant_sdk/models/mana_v2_lacp_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,8 +27,8 @@ class ManaV2LacpConfig(BaseModel): """ ManaV2LacpConfig """ # noqa: E501 - mode: Optional[StrictStr] = None - timer: Optional[StrictStr] = None + mode: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + timer: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["mode", "timer"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_lag_interface.py b/graphiant_sdk/models/mana_v2_lag_interface.py index 189b14ae..9b13e7ff 100644 --- a/graphiant_sdk/models/mana_v2_lag_interface.py +++ b/graphiant_sdk/models/mana_v2_lag_interface.py @@ -29,10 +29,10 @@ class ManaV2LagInterface(BaseModel): """ ManaV2LagInterface """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) 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") + minimum_members: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="minimumMembers", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["id", "lacpConfig", "members", "minimumMembers"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_lag_interface_config.py b/graphiant_sdk/models/mana_v2_lag_interface_config.py index dca6df74..3c45e115 100644 --- a/graphiant_sdk/models/mana_v2_lag_interface_config.py +++ b/graphiant_sdk/models/mana_v2_lag_interface_config.py @@ -33,17 +33,17 @@ class ManaV2LagInterfaceConfig(BaseModel): """ ManaV2LagInterfaceConfig """ # noqa: E501 - admin_status: Optional[StrictBool] = Field(default=None, alias="adminStatus") - alias: Optional[StrictStr] = None - description: Optional[StrictStr] = None + 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"]}) 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") - mtu: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - segment: Optional[StrictStr] = 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"]}) subinterfaces: Optional[Dict[str, ManaV2NullableInterfaceLagvlanConfig]] = None __properties: ClassVar[List[str]] = ["adminStatus", "alias", "description", "ipv4", "ipv6", "lacp", "lagMembers", "macsec", "minimumMembers", "mtu", "segment", "subinterfaces"] diff --git a/graphiant_sdk/models/mana_v2_lan_segment_sites_map.py b/graphiant_sdk/models/mana_v2_lan_segment_sites_map.py new file mode 100644 index 00000000..bf71e618 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_lan_segment_sites_map.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 +from typing import Any, ClassVar, Dict, List, Optional +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): + """ + ManaV2LanSegmentSitesMap + """ # noqa: E501 + site_ids: Optional[Dict[str, ManaV2SiteLanSegmentDeviceBuckets]] = Field(default=None, alias="siteIds") + site_list_ids: Optional[Dict[str, ManaV2SiteLanSegmentDeviceBuckets]] = Field(default=None, alias="siteListIds") + __properties: ClassVar[List[str]] = ["siteIds", "siteListIds"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2LanSegmentSitesMap 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 site_ids (dict) + _field_dict = {} + if self.site_ids: + for _key_site_ids in self.site_ids: + if self.site_ids[_key_site_ids]: + _field_dict[_key_site_ids] = self.site_ids[_key_site_ids].to_dict() + _dict['siteIds'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each value in site_list_ids (dict) + _field_dict = {} + if self.site_list_ids: + for _key_site_list_ids in self.site_list_ids: + if self.site_list_ids[_key_site_list_ids]: + _field_dict[_key_site_list_ids] = self.site_list_ids[_key_site_list_ids].to_dict() + _dict['siteListIds'] = _field_dict + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2LanSegmentSitesMap from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "siteIds": dict( + (_k, ManaV2SiteLanSegmentDeviceBuckets.from_dict(_v)) + for _k, _v in obj["siteIds"].items() + ) + if obj.get("siteIds") is not None + else None, + "siteListIds": dict( + (_k, ManaV2SiteLanSegmentDeviceBuckets.from_dict(_v)) + for _k, _v in obj["siteListIds"].items() + ) + if obj.get("siteListIds") is not None + else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_latency_bandwidth.py b/graphiant_sdk/models/mana_v2_latency_bandwidth.py index 8a642754..af2d9754 100644 --- a/graphiant_sdk/models/mana_v2_latency_bandwidth.py +++ b/graphiant_sdk/models/mana_v2_latency_bandwidth.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class ManaV2LatencyBandwidth(BaseModel): """ ManaV2LatencyBandwidth """ # noqa: E501 - bandwidth: Optional[StrictInt] = None - latency: Optional[StrictInt] = None + bandwidth: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + latency: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["bandwidth", "latency"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_lldp_neighbor.py b/graphiant_sdk/models/mana_v2_lldp_neighbor.py index 02ff7492..8067dfbe 100644 --- a/graphiant_sdk/models/mana_v2_lldp_neighbor.py +++ b/graphiant_sdk/models/mana_v2_lldp_neighbor.py @@ -27,13 +27,13 @@ class ManaV2LldpNeighbor(BaseModel): """ ManaV2LldpNeighbor """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["id", "interface", "ipAddress", "macAddress", "port", "systemName", "vendor"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_location.py b/graphiant_sdk/models/mana_v2_location.py index 109677c2..2460556e 100644 --- a/graphiant_sdk/models/mana_v2_location.py +++ b/graphiant_sdk/models/mana_v2_location.py @@ -27,17 +27,17 @@ class ManaV2Location(BaseModel): """ ManaV2Location """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["addressLine1", "addressLine2", "city", "country", "countryCode", "latitude", "longitude", "notes", "provinceCode", "state", "stateCode"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ma_csec_configuration.py b/graphiant_sdk/models/mana_v2_ma_csec_configuration.py index 745e2f07..6ee398fe 100644 --- a/graphiant_sdk/models/mana_v2_ma_csec_configuration.py +++ b/graphiant_sdk/models/mana_v2_ma_csec_configuration.py @@ -31,16 +31,16 @@ class ManaV2MaCsecConfiguration(BaseModel): """ ManaV2MaCsecConfiguration """ # noqa: E501 - enabled: StrictBool = Field(description="Whether MACsec is enabled or disabled (required)") - encryption_enforcement_mode: StrictStr = Field(description="The encryption enforcement mode (required)", alias="encryptionEnforcementMode") + 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"]}) 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") + 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]}) 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") - transparent_vlan: Optional[StrictBool] = Field(default=None, description="Whether transparent VLAN is enabled or disabled", alias="transparentVlan") + 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]}) __properties: ClassVar[List[str]] = ["enabled", "encryptionEnforcementMode", "globalSakConfiguration", "keyServerPriority", "pskConfigurations", "pskConfigurationsByNickname", "sakConfigurations", "sakConfigurationsByLagMemberInterfaceId", "splitSakConfigByLagMember", "transparentVlan"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_managed_enterprise_contract_info.py b/graphiant_sdk/models/mana_v2_managed_enterprise_contract_info.py new file mode 100644 index 00000000..d16f2fd2 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_managed_enterprise_contract_info.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +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 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]}) + 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"]}) + __properties: ClassVar[List[str]] = ["consumedCredits", "enterpriseContract", "enterpriseId", "enterpriseName"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2ManagedEnterpriseContractInfo 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 enterprise_contract + if self.enterprise_contract: + _dict['enterpriseContract'] = self.enterprise_contract.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2ManagedEnterpriseContractInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumedCredits": obj.get("consumedCredits"), + "enterpriseContract": CommonBillingContract.from_dict(obj["enterpriseContract"]) if obj.get("enterpriseContract") is not None else None, + "enterpriseId": obj.get("enterpriseId"), + "enterpriseName": obj.get("enterpriseName") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_nat_policy_ruleset.py b/graphiant_sdk/models/mana_v2_nat_policy_ruleset.py index de276e9c..b0d34e3e 100644 --- a/graphiant_sdk/models/mana_v2_nat_policy_ruleset.py +++ b/graphiant_sdk/models/mana_v2_nat_policy_ruleset.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,9 +28,9 @@ class ManaV2NatPolicyRuleset(BaseModel): """ ManaV2NatPolicyRuleset """ # noqa: E501 - description: Optional[StrictStr] = None - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None + 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"]}) rules: Optional[List[ManaV2NATPolicyRulesetRule]] = None __properties: ClassVar[List[str]] = ["description", "id", "name", "rules"] 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 147ffecb..fadd9d9d 100644 --- a/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config.py +++ b/graphiant_sdk/models/mana_v2_nat_policy_ruleset_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,8 +28,8 @@ class ManaV2NatPolicyRulesetConfig(BaseModel): """ ManaV2NatPolicyRulesetConfig """ # noqa: E501 - description: Optional[StrictStr] = None - name: Optional[StrictStr] = 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"]}) rules: Optional[Dict[str, ManaV2NATPolicyRulesetConfigNullableRule]] = None __properties: ClassVar[List[str]] = ["description", "name", "rules"] 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 214bb982..ef0f2e8a 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 @@ -27,15 +27,15 @@ class ManaV2NATPolicyRulesetConfigNullableRuleRule(BaseModel): """ ManaV2NATPolicyRulesetConfigNullableRuleRule """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["advertisePreNatPrefixes", "description", "name", "originalDstIpPrefix", "originalSrcIpPrefix", "seq", "translatedDstIpPrefix", "translatedSrcIpPrefix", "type"] model_config = ConfigDict( 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 c25af2f7..e9c0c3ac 100644 --- a/graphiant_sdk/models/mana_v2_nat_policy_ruleset_rule.py +++ b/graphiant_sdk/models/mana_v2_nat_policy_ruleset_rule.py @@ -28,17 +28,17 @@ class ManaV2NATPolicyRulesetRule(BaseModel): """ ManaV2NATPolicyRulesetRule """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["advertisePreNatPrefixes", "description", "id", "index", "name", "originalDstIpPrefix", "originalSrcIpPrefix", "seq", "translatedDstIpPrefix", "translatedSrcIpPrefix", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_network_slice.py b/graphiant_sdk/models/mana_v2_network_slice.py index 09ce91c7..b196665a 100644 --- a/graphiant_sdk/models/mana_v2_network_slice.py +++ b/graphiant_sdk/models/mana_v2_network_slice.py @@ -28,9 +28,9 @@ class ManaV2NetworkSlice(BaseModel): """ ManaV2NetworkSlice """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) peers: Optional[List[ManaV2NetworkSlicePeer]] = None - slice_index: Optional[StrictInt] = Field(default=None, alias="sliceIndex") + slice_index: Optional[StrictInt] = Field(default=None, alias="sliceIndex", json_schema_extra={"examples": [123]}) tags: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["id", "peers", "sliceIndex", "tags"] diff --git a/graphiant_sdk/models/mana_v2_network_slice_peer.py b/graphiant_sdk/models/mana_v2_network_slice_peer.py index 36e8e045..caab7583 100644 --- a/graphiant_sdk/models/mana_v2_network_slice_peer.py +++ b/graphiant_sdk/models/mana_v2_network_slice_peer.py @@ -31,12 +31,12 @@ class ManaV2NetworkSlicePeer(BaseModel): ManaV2NetworkSlicePeer """ # noqa: E501 bgp_connection: Optional[ManaV2BgpConnection] = Field(default=None, alias="bgpConnection") - 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 + 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"]}) ipsec_connection: Optional[ManaV2InterfaceTunnel] = Field(default=None, alias="ipsecConnection") - state: Optional[StrictStr] = None + state: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) wan_addresses: Optional[List[StrictStr]] = Field(default=None, alias="wanAddresses") __properties: ClassVar[List[str]] = ["bgpConnection", "connectionQuality", "deviceId", "gdi", "hostname", "ipsecConnection", "state", "wanAddresses"] diff --git a/graphiant_sdk/models/mana_v2_new_site.py b/graphiant_sdk/models/mana_v2_new_site.py index 718c63b0..accbfdfb 100644 --- a/graphiant_sdk/models/mana_v2_new_site.py +++ b/graphiant_sdk/models/mana_v2_new_site.py @@ -34,8 +34,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] = None - notes: Optional[StrictStr] = 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"]}) 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") 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 09483277..e4fa580d 100644 --- a/graphiant_sdk/models/mana_v2_notify_filter_profile_include.py +++ b/graphiant_sdk/models/mana_v2_notify_filter_profile_include.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,9 +27,9 @@ class ManaV2NotifyFilterProfileInclude(BaseModel): """ ManaV2NotifyFilterProfileInclude """ # noqa: E501 - id: Optional[StrictInt] = None - include: Optional[StrictBool] = None - subtree: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["id", "include", "subtree"] model_config = ConfigDict( 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 67798006..0251cb4d 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class ManaV2NotifyFilterProfileIncludeConfig(BaseModel): """ ManaV2NotifyFilterProfileIncludeConfig """ # noqa: E501 - enabled: Optional[StrictBool] = None + enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ntp.py b/graphiant_sdk/models/mana_v2_ntp.py index 9227a129..290c5e15 100644 --- a/graphiant_sdk/models/mana_v2_ntp.py +++ b/graphiant_sdk/models/mana_v2_ntp.py @@ -28,11 +28,11 @@ class ManaV2Ntp(BaseModel): ManaV2Ntp """ # noqa: E501 domains: Optional[List[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 - status: Optional[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"]}) __properties: ClassVar[List[str]] = ["domains", "errorMessage", "globalId", "id", "name", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ntp_config.py b/graphiant_sdk/models/mana_v2_ntp_config.py index ba416e5a..247d9d5d 100644 --- a/graphiant_sdk/models/mana_v2_ntp_config.py +++ b/graphiant_sdk/models/mana_v2_ntp_config.py @@ -28,9 +28,9 @@ class ManaV2NtpConfig(BaseModel): ManaV2NtpConfig """ # noqa: E501 domains: Optional[List[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 + 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"]}) __properties: ClassVar[List[str]] = ["domains", "globalId", "isGlobalSync", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_address.py b/graphiant_sdk/models/mana_v2_nullable_address.py index 48259744..15df2526 100644 --- a/graphiant_sdk/models/mana_v2_nullable_address.py +++ b/graphiant_sdk/models/mana_v2_nullable_address.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableAddress(BaseModel): """ ManaV2NullableAddress """ # noqa: E501 - address: Optional[StrictStr] = None + address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["address"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_administrative_distance.py b/graphiant_sdk/models/mana_v2_nullable_administrative_distance.py index a4f4eec3..2355bc3f 100644 --- a/graphiant_sdk/models/mana_v2_nullable_administrative_distance.py +++ b/graphiant_sdk/models/mana_v2_nullable_administrative_distance.py @@ -28,7 +28,7 @@ class ManaV2NullableAdministrativeDistance(BaseModel): """ ManaV2NullableAdministrativeDistance """ # noqa: E501 - distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["distance"] model_config = ConfigDict( 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 94f1d8b1..21f79df6 100644 --- a/graphiant_sdk/models/mana_v2_nullable_allow_as_in.py +++ b/graphiant_sdk/models/mana_v2_nullable_allow_as_in.py @@ -28,7 +28,7 @@ class ManaV2NullableAllowAsIn(BaseModel): """ ManaV2NullableAllowAsIn """ # noqa: E501 - count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["count"] model_config = ConfigDict( 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 ec5dc36c..60d1e57f 100644 --- a/graphiant_sdk/models/mana_v2_nullable_as_path_prepend.py +++ b/graphiant_sdk/models/mana_v2_nullable_as_path_prepend.py @@ -28,7 +28,7 @@ class ManaV2NullableAsPathPrepend(BaseModel): """ ManaV2NullableAsPathPrepend """ # noqa: E501 - repeat: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + repeat: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["repeat"] model_config = ConfigDict( 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 d979e9c3..ef583c21 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 @@ -27,7 +27,7 @@ class ManaV2NullableBgpSetNextHop(BaseModel): """ ManaV2NullableBgpSetNextHop """ # noqa: E501 - next_hop: Optional[StrictStr] = Field(default=None, alias="nextHop") + next_hop: Optional[StrictStr] = Field(default=None, alias="nextHop", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["nextHop"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_call_policy.py b/graphiant_sdk/models/mana_v2_nullable_call_policy.py index 119db4f1..f6a2f8b5 100644 --- a/graphiant_sdk/models/mana_v2_nullable_call_policy.py +++ b/graphiant_sdk/models/mana_v2_nullable_call_policy.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableCallPolicy(BaseModel): """ ManaV2NullableCallPolicy """ # noqa: E501 - policy: Optional[StrictStr] = None + policy: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["policy"] model_config = ConfigDict( 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 241efc8e..34761390 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 @@ -27,7 +27,7 @@ class ManaV2NullableDestinationNetworkMatchConfig(BaseModel): """ ManaV2NullableDestinationNetworkMatchConfig """ # noqa: E501 - destination_network: Optional[StrictStr] = Field(default=None, alias="destinationNetwork") + destination_network: Optional[StrictStr] = Field(default=None, alias="destinationNetwork", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["destinationNetwork"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_ebgp_config.py b/graphiant_sdk/models/mana_v2_nullable_ebgp_config.py index ab975282..8a12e374 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ebgp_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_ebgp_config.py @@ -28,7 +28,7 @@ class ManaV2NullableEbgpConfig(BaseModel): """ ManaV2NullableEbgpConfig """ # noqa: E501 - multi_hop: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="multiHop") + multi_hop: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="multiHop", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["multiHop"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_gateway_config.py b/graphiant_sdk/models/mana_v2_nullable_gateway_config.py index 791e8d22..940b9787 100644 --- a/graphiant_sdk/models/mana_v2_nullable_gateway_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_gateway_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableGatewayConfig(BaseModel): """ ManaV2NullableGatewayConfig """ # noqa: E501 - address: Optional[StrictStr] = None + address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["address"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_hold_timer.py b/graphiant_sdk/models/mana_v2_nullable_hold_timer.py index 0a5d9b5d..f194e8b5 100644 --- a/graphiant_sdk/models/mana_v2_nullable_hold_timer.py +++ b/graphiant_sdk/models/mana_v2_nullable_hold_timer.py @@ -28,7 +28,7 @@ class ManaV2NullableHoldTimer(BaseModel): """ ManaV2NullableHoldTimer """ # noqa: E501 - timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["timer"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_interface_name.py b/graphiant_sdk/models/mana_v2_nullable_interface_name.py index a99c0eac..5789bb6f 100644 --- a/graphiant_sdk/models/mana_v2_nullable_interface_name.py +++ b/graphiant_sdk/models/mana_v2_nullable_interface_name.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableInterfaceName(BaseModel): """ ManaV2NullableInterfaceName """ # noqa: E501 - interface: Optional[StrictStr] = None + interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( 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 914aaf39..f6b99a08 100644 --- a/graphiant_sdk/models/mana_v2_nullable_interface_priority_decrement.py +++ b/graphiant_sdk/models/mana_v2_nullable_interface_priority_decrement.py @@ -28,8 +28,8 @@ class ManaV2NullableInterfacePriorityDecrement(BaseModel): """ ManaV2NullableInterfacePriorityDecrement """ # noqa: E501 - interface: Optional[StrictStr] = None - priority_decrement: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="priorityDecrement") + 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]}) __properties: ClassVar[List[str]] = ["interface", "priorityDecrement"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_ip_protocol.py b/graphiant_sdk/models/mana_v2_nullable_ip_protocol.py index f72dc483..976b46c2 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ip_protocol.py +++ b/graphiant_sdk/models/mana_v2_nullable_ip_protocol.py @@ -27,7 +27,7 @@ class ManaV2NullableIpProtocol(BaseModel): """ ManaV2NullableIpProtocol """ # noqa: E501 - ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol") + ip_protocol: Optional[StrictStr] = Field(default=None, alias="ipProtocol", json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["ipProtocol"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_ipv4_address.py b/graphiant_sdk/models/mana_v2_nullable_ipv4_address.py index 27813dbe..e5fcdaba 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ipv4_address.py +++ b/graphiant_sdk/models/mana_v2_nullable_ipv4_address.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableIPv4Address(BaseModel): """ ManaV2NullableIPv4Address """ # noqa: E501 - address: Optional[StrictStr] = None + address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["address"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_ipv6_address.py b/graphiant_sdk/models/mana_v2_nullable_ipv6_address.py index 913f3fec..4965eade 100644 --- a/graphiant_sdk/models/mana_v2_nullable_ipv6_address.py +++ b/graphiant_sdk/models/mana_v2_nullable_ipv6_address.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableIPv6Address(BaseModel): """ ManaV2NullableIPv6Address """ # noqa: E501 - address: Optional[StrictStr] = None + address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["address"] model_config = ConfigDict( 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 361fe2bb..0477f98d 100644 --- a/graphiant_sdk/models/mana_v2_nullable_keep_alive_timer.py +++ b/graphiant_sdk/models/mana_v2_nullable_keep_alive_timer.py @@ -28,7 +28,7 @@ class ManaV2NullableKeepAliveTimer(BaseModel): """ ManaV2NullableKeepAliveTimer """ # noqa: E501 - timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + timer: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["timer"] model_config = ConfigDict( 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 cf358133..cd7a25bf 100644 --- a/graphiant_sdk/models/mana_v2_nullable_lag_member_interface.py +++ b/graphiant_sdk/models/mana_v2_nullable_lag_member_interface.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class ManaV2NullableLagMemberInterface(BaseModel): """ ManaV2NullableLagMemberInterface """ # noqa: E501 - interface: Optional[StrictInt] = None + interface: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_local_preferance.py b/graphiant_sdk/models/mana_v2_nullable_local_preferance.py index ed6b4c89..e398341d 100644 --- a/graphiant_sdk/models/mana_v2_nullable_local_preferance.py +++ b/graphiant_sdk/models/mana_v2_nullable_local_preferance.py @@ -28,7 +28,7 @@ class ManaV2NullableLocalPreferance(BaseModel): """ ManaV2NullableLocalPreferance """ # noqa: E501 - local_pref: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localPref") + local_pref: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="localPref", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["localPref"] model_config = ConfigDict( 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 c0380519..658be2bc 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 @@ -27,7 +27,7 @@ class ManaV2NullableMaCsecRekeyInterval(BaseModel): """ ManaV2NullableMaCsecRekeyInterval """ # noqa: E501 - rekey_interval: Optional[StrictInt] = Field(default=None, alias="rekeyInterval") + rekey_interval: Optional[StrictInt] = Field(default=None, alias="rekeyInterval", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["rekeyInterval"] model_config = ConfigDict( 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 352d0f66..71a71d18 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 @@ -27,7 +27,7 @@ class ManaV2NullableMaCsecReplayProtectionWindowSize(BaseModel): """ ManaV2NullableMaCsecReplayProtectionWindowSize """ # noqa: E501 - replay_protection_window_size: Optional[StrictInt] = Field(default=None, alias="replayProtectionWindowSize") + replay_protection_window_size: Optional[StrictInt] = Field(default=None, alias="replayProtectionWindowSize", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["replayProtectionWindowSize"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_max_prefix.py b/graphiant_sdk/models/mana_v2_nullable_max_prefix.py index 5d9ea80b..7e3548c3 100644 --- a/graphiant_sdk/models/mana_v2_nullable_max_prefix.py +++ b/graphiant_sdk/models/mana_v2_nullable_max_prefix.py @@ -28,7 +28,7 @@ class ManaV2NullableMaxPrefix(BaseModel): """ ManaV2NullableMaxPrefix """ # noqa: E501 - max_prefix: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxPrefix") + max_prefix: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="maxPrefix", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["maxPrefix"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_md5_password.py b/graphiant_sdk/models/mana_v2_nullable_md5_password.py index e203d7ea..a1585ae9 100644 --- a/graphiant_sdk/models/mana_v2_nullable_md5_password.py +++ b/graphiant_sdk/models/mana_v2_nullable_md5_password.py @@ -27,7 +27,7 @@ class ManaV2NullableMd5Password(BaseModel): """ ManaV2NullableMd5Password """ # noqa: E501 - md5_password: Optional[StrictStr] = Field(default=None, alias="md5Password") + md5_password: Optional[StrictStr] = Field(default=None, alias="md5Password", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["md5Password"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_meter_rates.py b/graphiant_sdk/models/mana_v2_nullable_meter_rates.py index 8808a099..a82ee0f3 100644 --- a/graphiant_sdk/models/mana_v2_nullable_meter_rates.py +++ b/graphiant_sdk/models/mana_v2_nullable_meter_rates.py @@ -28,7 +28,7 @@ class ManaV2NullableMeterRates(BaseModel): """ ManaV2NullableMeterRates """ # noqa: E501 - rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + rate: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["rate"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_metric.py b/graphiant_sdk/models/mana_v2_nullable_metric.py index cc5c604d..59f7f8da 100644 --- a/graphiant_sdk/models/mana_v2_nullable_metric.py +++ b/graphiant_sdk/models/mana_v2_nullable_metric.py @@ -28,8 +28,8 @@ class ManaV2NullableMetric(BaseModel): """ ManaV2NullableMetric """ # noqa: E501 - absolute: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - modifier: Optional[StrictInt] = None + 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]}) __properties: ClassVar[List[str]] = ["absolute", "modifier"] model_config = ConfigDict( 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 a3de6952..770629a6 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableNatPolicyRulesetName(BaseModel): """ ManaV2NullableNatPolicyRulesetName """ # noqa: E501 - ruleset: Optional[StrictStr] = None + ruleset: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["ruleset"] model_config = ConfigDict( 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 22cbe1c8..f664cd4c 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 @@ -28,7 +28,7 @@ class ManaV2NullableOspfAdminDistanceValue(BaseModel): """ ManaV2NullableOspfAdminDistanceValue """ # noqa: E501 - admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="adminDistance") + admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="adminDistance", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["adminDistance"] model_config = ConfigDict( 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 3845040f..8afcb610 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 @@ -28,7 +28,7 @@ class ManaV2NullableOspfDeadIntervalValue(BaseModel): """ ManaV2NullableOspfDeadIntervalValue """ # noqa: E501 - dead_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deadInterval") + dead_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deadInterval", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["deadInterval"] model_config = ConfigDict( 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 a8a1954f..de091c1a 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 @@ -28,7 +28,7 @@ class ManaV2NullableOspfHelloIntervalValue(BaseModel): """ ManaV2NullableOspfHelloIntervalValue """ # noqa: E501 - hello_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="helloInterval") + hello_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="helloInterval", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["helloInterval"] model_config = ConfigDict( 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 9b7031da..451a9eac 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 @@ -28,7 +28,7 @@ class ManaV2NullableOspfRetransmitIntervalValue(BaseModel): """ ManaV2NullableOspfRetransmitIntervalValue """ # noqa: E501 - retransmit_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="retransmitInterval") + retransmit_interval: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="retransmitInterval", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["retransmitInterval"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_policy_name.py b/graphiant_sdk/models/mana_v2_nullable_policy_name.py index 03345b74..9f0945fd 100644 --- a/graphiant_sdk/models/mana_v2_nullable_policy_name.py +++ b/graphiant_sdk/models/mana_v2_nullable_policy_name.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullablePolicyName(BaseModel): """ ManaV2NullablePolicyName """ # noqa: E501 - policy: Optional[StrictStr] = None + policy: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["policy"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_prefix_set.py b/graphiant_sdk/models/mana_v2_nullable_prefix_set.py index 4dc57785..0639238c 100644 --- a/graphiant_sdk/models/mana_v2_nullable_prefix_set.py +++ b/graphiant_sdk/models/mana_v2_nullable_prefix_set.py @@ -27,7 +27,7 @@ class ManaV2NullablePrefixSet(BaseModel): """ ManaV2NullablePrefixSet """ # noqa: E501 - prefix_set: Optional[StrictStr] = Field(default=None, alias="prefixSet") + prefix_set: Optional[StrictStr] = Field(default=None, alias="prefixSet", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["prefixSet"] model_config = ConfigDict( 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 9cb3ea96..249aa4f9 100644 --- a/graphiant_sdk/models/mana_v2_nullable_protocol_route_type.py +++ b/graphiant_sdk/models/mana_v2_nullable_protocol_route_type.py @@ -27,7 +27,7 @@ class ManaV2NullableProtocolRouteType(BaseModel): """ ManaV2NullableProtocolRouteType """ # noqa: E501 - route_type: Optional[StrictStr] = Field(default=None, alias="routeType") + route_type: Optional[StrictStr] = Field(default=None, alias="routeType", json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["routeType"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_routing_protocol.py b/graphiant_sdk/models/mana_v2_nullable_routing_protocol.py index cb4897a2..1d8b026a 100644 --- a/graphiant_sdk/models/mana_v2_nullable_routing_protocol.py +++ b/graphiant_sdk/models/mana_v2_nullable_routing_protocol.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableRoutingProtocol(BaseModel): """ ManaV2NullableRoutingProtocol """ # noqa: E501 - protocol: Optional[StrictStr] = None + protocol: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["protocol"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_session_limit.py b/graphiant_sdk/models/mana_v2_nullable_session_limit.py index d05f1189..bc73bb82 100644 --- a/graphiant_sdk/models/mana_v2_nullable_session_limit.py +++ b/graphiant_sdk/models/mana_v2_nullable_session_limit.py @@ -28,7 +28,7 @@ class ManaV2NullableSessionLimit(BaseModel): """ ManaV2NullableSessionLimit """ # noqa: E501 - limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["limit"] model_config = ConfigDict( 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 c4b8e016..1d78b8fa 100644 --- a/graphiant_sdk/models/mana_v2_nullable_set_circuit_config.py +++ b/graphiant_sdk/models/mana_v2_nullable_set_circuit_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableSetCircuitConfig(BaseModel): """ ManaV2NullableSetCircuitConfig """ # noqa: E501 - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( 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 0d2fc88f..0947199e 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 @@ -27,8 +27,8 @@ class ManaV2NullableSetCircuitLabelConfig(BaseModel): """ ManaV2NullableSetCircuitLabelConfig """ # noqa: E501 - ipsec_label: Optional[StrictStr] = Field(default=None, alias="ipsecLabel") - label: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["ipsecLabel", "label"] model_config = ConfigDict( 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 7aea8051..e7041d20 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 @@ -27,7 +27,7 @@ class ManaV2NullableSetSlaClassConfig(BaseModel): """ ManaV2NullableSetSlaClassConfig """ # noqa: E501 - var_class: Optional[StrictStr] = Field(default=None, alias="class") + var_class: Optional[StrictStr] = Field(default=None, alias="class", json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["class"] model_config = ConfigDict( 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 692f9fad..96c3fe2a 100644 --- a/graphiant_sdk/models/mana_v2_nullable_site_interface_name.py +++ b/graphiant_sdk/models/mana_v2_nullable_site_interface_name.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableSiteInterfaceName(BaseModel): """ ManaV2NullableSiteInterfaceName """ # noqa: E501 - interface: Optional[StrictStr] = None + interface: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( 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 ad6ae64c..956be3db 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableSnmpCommunityConfigValue(BaseModel): """ ManaV2NullableSnmpCommunityConfigValue """ # noqa: E501 - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["name"] model_config = ConfigDict( 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 a6a8626a..3e21b834 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableSnmpEngineEndpointsAddress(BaseModel): """ ManaV2NullableSnmpEngineEndpointsAddress """ # noqa: E501 - address: Optional[StrictStr] = None + address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["address"] model_config = ConfigDict( 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 d65834bd..fc804e10 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 @@ -27,7 +27,7 @@ class ManaV2NullableSourceNetworkMatchConfig(BaseModel): """ ManaV2NullableSourceNetworkMatchConfig """ # noqa: E501 - source_network: Optional[StrictStr] = Field(default=None, alias="sourceNetwork") + source_network: Optional[StrictStr] = Field(default=None, alias="sourceNetwork", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["sourceNetwork"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_stale_purge.py b/graphiant_sdk/models/mana_v2_nullable_stale_purge.py index df0de6d7..735fcb4f 100644 --- a/graphiant_sdk/models/mana_v2_nullable_stale_purge.py +++ b/graphiant_sdk/models/mana_v2_nullable_stale_purge.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class ManaV2NullableStalePurge(BaseModel): """ ManaV2NullableStalePurge """ # noqa: E501 - stale: Optional[StrictBool] = None + stale: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["stale"] model_config = ConfigDict( 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 e4f71fd4..d98437e3 100644 --- a/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v4.py +++ b/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v4.py @@ -28,7 +28,7 @@ class ManaV2NullableTcpMssV4(BaseModel): """ ManaV2NullableTcpMssV4 """ # noqa: E501 - tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4") + tcp_mss_v4: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV4", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["tcpMssV4"] model_config = ConfigDict( 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 c9a7a364..0016436f 100644 --- a/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v6.py +++ b/graphiant_sdk/models/mana_v2_nullable_tcp_mss_v6.py @@ -28,7 +28,7 @@ class ManaV2NullableTcpMssV6(BaseModel): """ ManaV2NullableTcpMssV6 """ # noqa: E501 - tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6") + tcp_mss_v6: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMssV6", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["tcpMssV6"] model_config = ConfigDict( 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 3250ab8c..b3c04e59 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class ManaV2NullableTrafficPolicyRulesetName(BaseModel): """ ManaV2NullableTrafficPolicyRulesetName """ # noqa: E501 - ruleset: Optional[StrictStr] = None + ruleset: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["ruleset"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_nullable_weight.py b/graphiant_sdk/models/mana_v2_nullable_weight.py index 5df27e6e..4e122a0f 100644 --- a/graphiant_sdk/models/mana_v2_nullable_weight.py +++ b/graphiant_sdk/models/mana_v2_nullable_weight.py @@ -28,7 +28,7 @@ class ManaV2NullableWeight(BaseModel): """ ManaV2NullableWeight """ # noqa: E501 - weight: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + weight: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["weight"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_oci_gateway_details.py b/graphiant_sdk/models/mana_v2_oci_gateway_details.py index c202f932..179d3f76 100644 --- a/graphiant_sdk/models/mana_v2_oci_gateway_details.py +++ b/graphiant_sdk/models/mana_v2_oci_gateway_details.py @@ -27,9 +27,9 @@ class ManaV2OciGatewayDetails(BaseModel): """ ManaV2OciGatewayDetails """ # noqa: E501 - description: Optional[StrictStr] = None - fast_connect_ocid: Optional[StrictStr] = Field(default=None, alias="fastConnectOcid") - routing_policy: Optional[StrictStr] = Field(default=None, alias="routingPolicy") + 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"]}) __properties: ClassVar[List[str]] = ["description", "fastConnectOcid", "routingPolicy"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_osp_fv2_process.py b/graphiant_sdk/models/mana_v2_osp_fv2_process.py index e8a70046..049fbfd2 100644 --- a/graphiant_sdk/models/mana_v2_osp_fv2_process.py +++ b/graphiant_sdk/models/mana_v2_osp_fv2_process.py @@ -30,13 +30,13 @@ 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") + 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]}) areas: Optional[List[ManaV2OspfArea]] = None - auto_router_id: Optional[StrictBool] = Field(default=None, alias="autoRouterId") - default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate") - id: Optional[StrictInt] = 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]}) redistributed_protocols: Optional[List[ManaV2OspfRedistribute]] = Field(default=None, alias="redistributedProtocols") - router_id: Optional[StrictStr] = Field(default=None, alias="routerId") + router_id: Optional[StrictStr] = Field(default=None, alias="routerId", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["adminDistance", "areas", "autoRouterId", "defaultOriginate", "id", "redistributedProtocols", "routerId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_osp_fv3_process.py b/graphiant_sdk/models/mana_v2_osp_fv3_process.py index 50793c17..e4a28805 100644 --- a/graphiant_sdk/models/mana_v2_osp_fv3_process.py +++ b/graphiant_sdk/models/mana_v2_osp_fv3_process.py @@ -30,13 +30,13 @@ 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") + 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]}) areas: Optional[List[ManaV2OspfArea]] = None - default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate") - id: Optional[StrictInt] = 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]}) redistributed_protocols: Optional[List[ManaV2OspfRedistribute]] = Field(default=None, alias="redistributedProtocols") - router_id: Optional[StrictStr] = Field(default=None, alias="routerId") - version: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + 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]}) __properties: ClassVar[List[str]] = ["adminDistance", "areas", "defaultOriginate", "id", "redistributedProtocols", "routerId", "version"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ospf_area.py b/graphiant_sdk/models/mana_v2_ospf_area.py index 99da420d..45f73cf8 100644 --- a/graphiant_sdk/models/mana_v2_ospf_area.py +++ b/graphiant_sdk/models/mana_v2_ospf_area.py @@ -30,13 +30,13 @@ class ManaV2OspfArea(BaseModel): """ ManaV2OspfArea """ # noqa: E501 - area_id: Optional[StrictStr] = Field(default=None, alias="areaId") + area_id: Optional[StrictStr] = Field(default=None, alias="areaId", json_schema_extra={"examples": ["example string"]}) bfd: Optional[ManaV2BfdInstance] = None bfd_neighbors: Optional[List[ManaV2BfdNeighbor]] = Field(default=None, alias="bfdNeighbors") - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) interfaces: Optional[List[ManaV2OspfInterface]] = None - name: Optional[StrictStr] = None - type: Optional[StrictStr] = 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"]}) __properties: ClassVar[List[str]] = ["areaId", "bfd", "bfdNeighbors", "id", "interfaces", "name", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ospf_area_config.py b/graphiant_sdk/models/mana_v2_ospf_area_config.py index d561a8f2..451e6c24 100644 --- a/graphiant_sdk/models/mana_v2_ospf_area_config.py +++ b/graphiant_sdk/models/mana_v2_ospf_area_config.py @@ -28,10 +28,10 @@ class ManaV2OspfAreaConfig(BaseModel): """ ManaV2OspfAreaConfig """ # noqa: E501 - area_id: Optional[StrictStr] = Field(default=None, alias="areaId") + area_id: Optional[StrictStr] = Field(default=None, alias="areaId", json_schema_extra={"examples": ["example string"]}) interfaces: Optional[Dict[str, ManaV2NullableOspfInterfaceConfig]] = None - name: Optional[StrictStr] = None - type: Optional[StrictStr] = 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"]}) __properties: ClassVar[List[str]] = ["areaId", "interfaces", "name", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ospf_interface.py b/graphiant_sdk/models/mana_v2_ospf_interface.py index 8d1b29f9..d55d91a9 100644 --- a/graphiant_sdk/models/mana_v2_ospf_interface.py +++ b/graphiant_sdk/models/mana_v2_ospf_interface.py @@ -32,21 +32,21 @@ 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)]] = 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 + 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"]}) __properties: ClassVar[List[str]] = ["bfd", "bfdNeighbors", "cost", "deadInterval", "deadIntervalValue", "drPriority", "helloInterval", "helloIntervalValue", "id", "ifIndex", "interface", "maxTransmissionUnit", "mtuIgnore", "prefixSid", "retransmitInterval", "retransmitIntervalValue", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ospf_interface_config.py b/graphiant_sdk/models/mana_v2_ospf_interface_config.py index 59f42802..45ad2890 100644 --- a/graphiant_sdk/models/mana_v2_ospf_interface_config.py +++ b/graphiant_sdk/models/mana_v2_ospf_interface_config.py @@ -33,16 +33,16 @@ class ManaV2OspfInterfaceConfig(BaseModel): ManaV2OspfInterfaceConfig """ # noqa: E501 bfd: Optional[ManaV2NullableBfdInstanceConfig] = None - cost: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + cost: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) 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") + dr_priority: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="drPriority", json_schema_extra={"examples": [123]}) hello_interval_value: Optional[ManaV2NullableOspfHelloIntervalValue] = Field(default=None, alias="helloIntervalValue") - 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") + 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]}) retransmit_interval_value: Optional[ManaV2NullableOspfRetransmitIntervalValue] = Field(default=None, alias="retransmitIntervalValue") - type: Optional[StrictStr] = None + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["bfd", "cost", "deadIntervalValue", "drPriority", "helloIntervalValue", "interfaceName", "mtu", "mtuIgnore", "prefixSid", "retransmitIntervalValue", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_ospf_process_config.py b/graphiant_sdk/models/mana_v2_ospf_process_config.py index 73e03010..fa007cb9 100644 --- a/graphiant_sdk/models/mana_v2_ospf_process_config.py +++ b/graphiant_sdk/models/mana_v2_ospf_process_config.py @@ -33,10 +33,10 @@ 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] = None - default_originate: Optional[StrictStr] = Field(default=None, alias="defaultOriginate") - manual: Optional[StrictStr] = None - name: Optional[StrictStr] = 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"]}) redistribution: Optional[Dict[str, ManaV2NullableOspfRedistributeProtocolConfig]] = None __properties: ClassVar[List[str]] = ["addressFamilies", "adminDistance", "areas", "auto", "defaultOriginate", "manual", "name", "redistribution"] diff --git a/graphiant_sdk/models/mana_v2_ospf_redistribute.py b/graphiant_sdk/models/mana_v2_ospf_redistribute.py index 781e74d1..f16b17fe 100644 --- a/graphiant_sdk/models/mana_v2_ospf_redistribute.py +++ b/graphiant_sdk/models/mana_v2_ospf_redistribute.py @@ -28,9 +28,9 @@ class ManaV2OspfRedistribute(BaseModel): """ ManaV2OspfRedistribute """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["metric", "metricType", "redistType"] model_config = ConfigDict( 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 1839cef5..696835e8 100644 --- a/graphiant_sdk/models/mana_v2_ospf_redistribute_protocol_config.py +++ b/graphiant_sdk/models/mana_v2_ospf_redistribute_protocol_config.py @@ -28,9 +28,9 @@ class ManaV2OspfRedistributeProtocolConfig(BaseModel): """ ManaV2OspfRedistributeProtocolConfig """ # noqa: E501 - metric: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - metric_type: Optional[StrictStr] = Field(default=None, alias="metricType") - type: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["metric", "metricType", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_overlay_filters.py b/graphiant_sdk/models/mana_v2_overlay_filters.py index 89354cd7..0363cb61 100644 --- a/graphiant_sdk/models/mana_v2_overlay_filters.py +++ b/graphiant_sdk/models/mana_v2_overlay_filters.py @@ -27,8 +27,8 @@ class ManaV2OverlayFilters(BaseModel): """ ManaV2OverlayFilters """ # noqa: E501 - inbound_filter: Optional[StrictStr] = Field(default=None, alias="inboundFilter") - outbound_filter: Optional[StrictStr] = Field(default=None, alias="outboundFilter") + 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"]}) __properties: ClassVar[List[str]] = ["inboundFilter", "outboundFilter"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_policer.py b/graphiant_sdk/models/mana_v2_policer.py index 3662f96c..3930de8c 100644 --- a/graphiant_sdk/models/mana_v2_policer.py +++ b/graphiant_sdk/models/mana_v2_policer.py @@ -27,8 +27,8 @@ class ManaV2Policer(BaseModel): """ ManaV2Policer """ # noqa: E501 - burst_size: StrictInt = Field(description="Burst size for the policer (required)", alias="burstSize") - bw: StrictInt = Field(description="Bandwidth for the policer (required)") + 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]}) __properties: ClassVar[List[str]] = ["burstSize", "bw"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_policy_match.py b/graphiant_sdk/models/mana_v2_policy_match.py index 7b54fe0a..8ab2a08b 100644 --- a/graphiant_sdk/models/mana_v2_policy_match.py +++ b/graphiant_sdk/models/mana_v2_policy_match.py @@ -28,12 +28,12 @@ class ManaV2PolicyMatch(BaseModel): """ ManaV2PolicyMatch """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["destinationPort", "destinationPrefix", "icmpType", "protocol", "sourcePort", "sourcePrefix"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_port_range.py b/graphiant_sdk/models/mana_v2_port_range.py index b0831933..6f34b6be 100644 --- a/graphiant_sdk/models/mana_v2_port_range.py +++ b/graphiant_sdk/models/mana_v2_port_range.py @@ -28,8 +28,8 @@ class ManaV2PortRange(BaseModel): """ ManaV2PortRange """ # noqa: E501 - lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + 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]}) __properties: ClassVar[List[str]] = ["lower", "upper"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_port_range_config.py b/graphiant_sdk/models/mana_v2_port_range_config.py index 6ead4e2a..681d8966 100644 --- a/graphiant_sdk/models/mana_v2_port_range_config.py +++ b/graphiant_sdk/models/mana_v2_port_range_config.py @@ -28,8 +28,8 @@ class ManaV2PortRangeConfig(BaseModel): """ ManaV2PortRangeConfig """ # noqa: E501 - lower: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - upper: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + 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]}) __properties: ClassVar[List[str]] = ["lower", "upper"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_prefix_set.py b/graphiant_sdk/models/mana_v2_prefix_set.py index 83d7b5a3..bb8731b7 100644 --- a/graphiant_sdk/models/mana_v2_prefix_set.py +++ b/graphiant_sdk/models/mana_v2_prefix_set.py @@ -30,16 +30,16 @@ class ManaV2PrefixSet(BaseModel): """ ManaV2PrefixSet """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) entries: Optional[List[ManaV2PrefixSetEntry]] = None - 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 + 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"]}) policies: Optional[List[ManaV2PrefixSetPolicy]] = None - policy_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="policyCount") - status: Optional[StrictStr] = 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"]}) __properties: ClassVar[List[str]] = ["description", "entries", "errorMessage", "globalId", "id", "mode", "name", "policies", "policyCount", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_prefix_set_config.py b/graphiant_sdk/models/mana_v2_prefix_set_config.py index 773b5c52..97b7f7fc 100644 --- a/graphiant_sdk/models/mana_v2_prefix_set_config.py +++ b/graphiant_sdk/models/mana_v2_prefix_set_config.py @@ -28,12 +28,12 @@ class ManaV2PrefixSetConfig(BaseModel): """ ManaV2PrefixSetConfig """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) entries: Optional[Dict[str, ManaV2PrefixSetConfigNullableEntry]] = None - 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 + 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"]}) __properties: ClassVar[List[str]] = ["description", "entries", "globalId", "isGlobalSync", "mode", "name"] model_config = ConfigDict( 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 8ff466f2..ae69d8d9 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 @@ -28,10 +28,10 @@ class ManaV2PrefixSetConfigNullableEntryEntry(BaseModel): """ ManaV2PrefixSetConfigNullableEntryEntry """ # noqa: E501 - 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 + 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]}) __properties: ClassVar[List[str]] = ["ipPrefix", "maskLower", "maskUpper", "seq"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_prefix_set_entry.py b/graphiant_sdk/models/mana_v2_prefix_set_entry.py index 1b961428..1db5b6f6 100644 --- a/graphiant_sdk/models/mana_v2_prefix_set_entry.py +++ b/graphiant_sdk/models/mana_v2_prefix_set_entry.py @@ -28,11 +28,11 @@ class ManaV2PrefixSetEntry(BaseModel): """ ManaV2PrefixSetEntry """ # noqa: E501 - 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 + 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]}) __properties: ClassVar[List[str]] = ["id", "ipPrefix", "maskLower", "maskUpper", "seq"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_prefix_set_policy.py b/graphiant_sdk/models/mana_v2_prefix_set_policy.py index d9871949..fa66635d 100644 --- a/graphiant_sdk/models/mana_v2_prefix_set_policy.py +++ b/graphiant_sdk/models/mana_v2_prefix_set_policy.py @@ -27,9 +27,9 @@ class ManaV2PrefixSetPolicy(BaseModel): """ ManaV2PrefixSetPolicy """ # noqa: E501 - attach_point: Optional[StrictStr] = Field(default=None, alias="attachPoint") - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["attachPoint", "id", "name"] model_config = ConfigDict( 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 0248a78a..19757118 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 @@ -28,10 +28,10 @@ class ManaV2PrometheusRemoteWriteSinkConfig(BaseModel): """ ManaV2PrometheusRemoteWriteSinkConfig """ # noqa: E501 - description: Optional[StrictStr] = None - host: Optional[StrictStr] = None - path: Optional[StrictStr] = None - port: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + 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]}) __properties: ClassVar[List[str]] = ["description", "host", "path", "port"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_prometheus_rule_config.py b/graphiant_sdk/models/mana_v2_prometheus_rule_config.py index be8c6116..c2ce6d1b 100644 --- a/graphiant_sdk/models/mana_v2_prometheus_rule_config.py +++ b/graphiant_sdk/models/mana_v2_prometheus_rule_config.py @@ -28,12 +28,12 @@ class ManaV2PrometheusRuleConfig(BaseModel): """ ManaV2PrometheusRuleConfig """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["alert", "expression", "name", "severity", "template", "triggerSeconds"] model_config = ConfigDict( 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 d5b3a65c..27de4705 100644 --- a/graphiant_sdk/models/mana_v2_prometheus_rule_group_config.py +++ b/graphiant_sdk/models/mana_v2_prometheus_rule_group_config.py @@ -29,9 +29,9 @@ class ManaV2PrometheusRuleGroupConfig(BaseModel): """ ManaV2PrometheusRuleGroupConfig """ # noqa: E501 - description: Optional[StrictStr] = None - interval_seconds: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="intervalSeconds") - name: Optional[StrictStr] = None + 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"]}) rules: Optional[Dict[str, ManaV2NullablePrometheusRuleConfig]] = None __properties: ClassVar[List[str]] = ["description", "intervalSeconds", "name", "rules"] 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 abbe3921..40631c88 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 @@ -28,8 +28,8 @@ class ManaV2PrometheusSysDbMonitorConfig(BaseModel): """ ManaV2PrometheusSysDbMonitorConfig """ # noqa: E501 - interval_seconds: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="intervalSeconds") - name: Optional[StrictStr] = None + 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"]}) xpaths: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["intervalSeconds", "name", "xpaths"] diff --git a/graphiant_sdk/models/mana_v2_psk_configuration.py b/graphiant_sdk/models/mana_v2_psk_configuration.py index 25ab46a9..027db3e5 100644 --- a/graphiant_sdk/models/mana_v2_psk_configuration.py +++ b/graphiant_sdk/models/mana_v2_psk_configuration.py @@ -28,12 +28,12 @@ class ManaV2PskConfiguration(BaseModel): """ ManaV2PskConfiguration """ # noqa: E501 - 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)") + 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"]}) 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") + 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]}) __properties: ClassVar[List[str]] = ["cak", "cakCryptographicAlgorithm", "ckn", "nickname", "startTime", "useXpnForCipherSuite"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_public_vif.py b/graphiant_sdk/models/mana_v2_public_vif.py new file mode 100644 index 00000000..a23ae5f0 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif.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, StrictStr +from typing import Any, ClassVar, Dict, List +from graphiant_sdk.models.mana_v2_public_vif_dynamic import ManaV2PublicVifDynamic +from graphiant_sdk.models.mana_v2_public_vif_fixed import ManaV2PublicVifFixed +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ManaV2PublicVif(BaseModel): + """ + ManaV2PublicVif + """ # noqa: E501 + covering_prefixes: ManaV2PublicVifDynamic = Field(alias="coveringPrefixes") + fixed_prefixes: ManaV2PublicVifFixed = Field(alias="fixedPrefixes") + type: StrictStr = Field(description="Type of Public VIF dynamic/fixed (required)", json_schema_extra={"examples": ["ENUM_VALUE"]}) + __properties: ClassVar[List[str]] = ["coveringPrefixes", "fixedPrefixes", "type"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVif 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 covering_prefixes + if self.covering_prefixes: + _dict['coveringPrefixes'] = self.covering_prefixes.to_dict() + # override the default output from pydantic by calling `to_dict()` of fixed_prefixes + if self.fixed_prefixes: + _dict['fixedPrefixes'] = self.fixed_prefixes.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2PublicVif from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "coveringPrefixes": ManaV2PublicVifDynamic.from_dict(obj["coveringPrefixes"]) if obj.get("coveringPrefixes") is not None else None, + "fixedPrefixes": ManaV2PublicVifFixed.from_dict(obj["fixedPrefixes"]) if obj.get("fixedPrefixes") is not None else None, + "type": obj.get("type") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_consumer_lan_segment.py b/graphiant_sdk/models/mana_v2_public_vif_consumer_lan_segment.py new file mode 100644 index 00000000..c6c21ac9 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_consumer_lan_segment.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ManaV2PublicVifConsumerLanSegment(BaseModel): + """ + ManaV2PublicVifConsumerLanSegment + """ # noqa: E501 + allowed_prefixes: List[StrictStr] = Field(alias="allowedPrefixes") + service_lan_segment: StrictInt = Field(description="LAN segment ID for the service (required)", alias="serviceLanSegment", json_schema_extra={"examples": [1234567891011]}) + __properties: ClassVar[List[str]] = ["allowedPrefixes", "serviceLanSegment"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifConsumerLanSegment 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 ManaV2PublicVifConsumerLanSegment from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowedPrefixes": obj.get("allowedPrefixes"), + "serviceLanSegment": obj.get("serviceLanSegment") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_consumer_lan_segment_response.py b/graphiant_sdk/models/mana_v2_public_vif_consumer_lan_segment_response.py new file mode 100644 index 00000000..bcc24a7e --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_consumer_lan_segment_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 + + +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_security_policy_rule import ManaV2SecurityPolicyRule +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 ManaV2PublicVifConsumerLanSegmentResponse(BaseModel): + """ + ManaV2PublicVifConsumerLanSegmentResponse + """ # noqa: E501 + allowed_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="allowedPrefixes") + outbound_security_rules: Optional[List[ManaV2SecurityPolicyRule]] = Field(default=None, alias="outboundSecurityRules") + service_lan_segment: Optional[StrictInt] = Field(default=None, description="LAN segment ID for the service", alias="serviceLanSegment", json_schema_extra={"examples": [1234567891011]}) + traffic_rules: Optional[List[ManaV2TrafficPolicyRule]] = Field(default=None, alias="trafficRules") + __properties: ClassVar[List[str]] = ["allowedPrefixes", "outboundSecurityRules", "serviceLanSegment", "trafficRules"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifConsumerLanSegmentResponse 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 outbound_security_rules (list) + _items = [] + if self.outbound_security_rules: + for _item_outbound_security_rules in self.outbound_security_rules: + if _item_outbound_security_rules: + _items.append(_item_outbound_security_rules.to_dict()) + _dict['outboundSecurityRules'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in traffic_rules (list) + _items = [] + if self.traffic_rules: + for _item_traffic_rules in self.traffic_rules: + if _item_traffic_rules: + _items.append(_item_traffic_rules.to_dict()) + _dict['trafficRules'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2PublicVifConsumerLanSegmentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "allowedPrefixes": obj.get("allowedPrefixes"), + "outboundSecurityRules": [ManaV2SecurityPolicyRule.from_dict(_item) for _item in obj["outboundSecurityRules"]] if obj.get("outboundSecurityRules") is not None else None, + "serviceLanSegment": obj.get("serviceLanSegment"), + "trafficRules": [ManaV2TrafficPolicyRule.from_dict(_item) for _item in obj["trafficRules"]] if obj.get("trafficRules") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_consumer_policy.py b/graphiant_sdk/models/mana_v2_public_vif_consumer_policy.py new file mode 100644 index 00000000..ab5aacf9 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_consumer_policy.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment import ManaV2PublicVifConsumerLanSegment +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ManaV2PublicVifConsumerPolicy(BaseModel): + """ + ManaV2PublicVifConsumerPolicy + """ # noqa: E501 + lan_segments: List[ManaV2PublicVifConsumerLanSegment] = Field(alias="lanSegments") + sites: ManaV2SiteInformation + __properties: ClassVar[List[str]] = ["lanSegments", "sites"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifConsumerPolicy 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 lan_segments (list) + _items = [] + if self.lan_segments: + for _item_lan_segments in self.lan_segments: + if _item_lan_segments: + _items.append(_item_lan_segments.to_dict()) + _dict['lanSegments'] = _items + # override the default output from pydantic by calling `to_dict()` of sites + if self.sites: + _dict['sites'] = self.sites.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2PublicVifConsumerPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "lanSegments": [ManaV2PublicVifConsumerLanSegment.from_dict(_item) for _item in obj["lanSegments"]] if obj.get("lanSegments") is not None else None, + "sites": ManaV2SiteInformation.from_dict(obj["sites"]) if obj.get("sites") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_consumer_policy_response.py b/graphiant_sdk/models/mana_v2_public_vif_consumer_policy_response.py new file mode 100644 index 00000000..109ae0c4 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_consumer_policy_response.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 +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment_response import ManaV2PublicVifConsumerLanSegmentResponse +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ManaV2PublicVifConsumerPolicyResponse(BaseModel): + """ + ManaV2PublicVifConsumerPolicyResponse + """ # noqa: E501 + consumer_service_id: Optional[StrictInt] = Field(default=None, alias="consumerServiceId", json_schema_extra={"examples": [1234567891011]}) + lan_segments: Optional[List[ManaV2PublicVifConsumerLanSegmentResponse]] = Field(default=None, alias="lanSegments") + sites: Optional[ManaV2SiteInformation] = None + __properties: ClassVar[List[str]] = ["consumerServiceId", "lanSegments", "sites"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifConsumerPolicyResponse 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 lan_segments (list) + _items = [] + if self.lan_segments: + for _item_lan_segments in self.lan_segments: + if _item_lan_segments: + _items.append(_item_lan_segments.to_dict()) + _dict['lanSegments'] = _items + # override the default output from pydantic by calling `to_dict()` of sites + if self.sites: + _dict['sites'] = self.sites.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2PublicVifConsumerPolicyResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerServiceId": obj.get("consumerServiceId"), + "lanSegments": [ManaV2PublicVifConsumerLanSegmentResponse.from_dict(_item) for _item in obj["lanSegments"]] if obj.get("lanSegments") is not None else None, + "sites": ManaV2SiteInformation.from_dict(obj["sites"]) if obj.get("sites") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_device.py b/graphiant_sdk/models/mana_v2_public_vif_device.py new file mode 100644 index 00000000..28df9183 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_device.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 +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ManaV2PublicVifDevice(BaseModel): + """ + ManaV2PublicVifDevice + """ # noqa: E501 + consumer_burst_size: Annotated[int, Field(strict=True, ge=0)] = Field(description="Maximum Burst size per device (required)", alias="consumerBurstSize", json_schema_extra={"examples": [123]}) + consumer_bw_site: Annotated[int, Field(strict=True, ge=0)] = Field(description="Maximum Bandwidth allocation per device (required)", alias="consumerBwSite", json_schema_extra={"examples": [123]}) + nat_pools: List[StrictStr] = Field(alias="natPools") + __properties: ClassVar[List[str]] = ["consumerBurstSize", "consumerBwSite", "natPools"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifDevice 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 ManaV2PublicVifDevice from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerBurstSize": obj.get("consumerBurstSize"), + "consumerBwSite": obj.get("consumerBwSite"), + "natPools": obj.get("natPools") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_dynamic.py b/graphiant_sdk/models/mana_v2_public_vif_dynamic.py new file mode 100644 index 00000000..19274fc7 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_dynamic.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, 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 ManaV2PublicVifDynamic(BaseModel): + """ + ManaV2PublicVifDynamic + """ # noqa: E501 + entries: Optional[List[StrictStr]] = None + __properties: ClassVar[List[str]] = ["entries"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifDynamic 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 ManaV2PublicVifDynamic from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "entries": obj.get("entries") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_fixed.py b/graphiant_sdk/models/mana_v2_public_vif_fixed.py new file mode 100644 index 00000000..f61c87ed --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_fixed.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_public_vif_fixed_nat import ManaV2PublicVifFixedNat +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ManaV2PublicVifFixed(BaseModel): + """ + ManaV2PublicVifFixed + """ # noqa: E501 + entries: Optional[List[ManaV2PublicVifFixedNat]] = None + __properties: ClassVar[List[str]] = ["entries"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifFixed 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 entries (list) + _items = [] + if self.entries: + for _item_entries in self.entries: + if _item_entries: + _items.append(_item_entries.to_dict()) + _dict['entries'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2PublicVifFixed from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "entries": [ManaV2PublicVifFixedNat.from_dict(_item) for _item in obj["entries"]] if obj.get("entries") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_fixed_nat.py b/graphiant_sdk/models/mana_v2_public_vif_fixed_nat.py new file mode 100644 index 00000000..8178da59 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_fixed_nat.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class ManaV2PublicVifFixedNat(BaseModel): + """ + ManaV2PublicVifFixedNat + """ # noqa: E501 + outside_nat_prefix: Optional[StrictStr] = Field(default=None, alias="outsideNatPrefix", json_schema_extra={"examples": ["example string"]}) + service_prefix: Optional[StrictStr] = Field(default=None, alias="servicePrefix", json_schema_extra={"examples": ["example string"]}) + __properties: ClassVar[List[str]] = ["outsideNatPrefix", "servicePrefix"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifFixedNat 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 ManaV2PublicVifFixedNat 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"), + "servicePrefix": obj.get("servicePrefix") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_producer_policy.py b/graphiant_sdk/models/mana_v2_public_vif_producer_policy.py new file mode 100644 index 00000000..8a558254 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_producer_policy.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The 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_application_profile import ManaV2ApplicationProfile +from graphiant_sdk.models.mana_v2_public_vif import ManaV2PublicVif +from graphiant_sdk.models.mana_v2_public_vif_device import ManaV2PublicVifDevice +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation +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 ManaV2PublicVifProducerPolicy(BaseModel): + """ + ManaV2PublicVifProducerPolicy + """ # noqa: E501 + devices: Dict[str, ManaV2PublicVifDevice] + profiles: Optional[List[ManaV2ApplicationProfile]] = None + service_lan_segment: StrictInt = Field(description="LAN segment ID for the service (required)", alias="serviceLanSegment", json_schema_extra={"examples": [1234567891011]}) + service_name: Optional[StrictStr] = Field(default=None, description="Public VIF service name (local_extranet_producer_service.name)", alias="serviceName", json_schema_extra={"examples": ["example string"]}) + sites: ManaV2SiteInformation + sla: Optional[ManaV2SlaInformation] = None + vifs: ManaV2PublicVif + __properties: ClassVar[List[str]] = ["devices", "profiles", "serviceLanSegment", "serviceName", "sites", "sla", "vifs"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifProducerPolicy 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 devices (dict) + _field_dict = {} + if self.devices: + for _key_devices in self.devices: + if self.devices[_key_devices]: + _field_dict[_key_devices] = self.devices[_key_devices].to_dict() + _dict['devices'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each item in profiles (list) + _items = [] + if self.profiles: + for _item_profiles in self.profiles: + if _item_profiles: + _items.append(_item_profiles.to_dict()) + _dict['profiles'] = _items + # override the default output from pydantic by calling `to_dict()` of sites + if self.sites: + _dict['sites'] = self.sites.to_dict() + # override the default output from pydantic by calling `to_dict()` of sla + if self.sla: + _dict['sla'] = self.sla.to_dict() + # override the default output from pydantic by calling `to_dict()` of vifs + if self.vifs: + _dict['vifs'] = self.vifs.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2PublicVifProducerPolicy from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "devices": dict( + (_k, ManaV2PublicVifDevice.from_dict(_v)) + for _k, _v in obj["devices"].items() + ) + if obj.get("devices") is not None + else None, + "profiles": [ManaV2ApplicationProfile.from_dict(_item) for _item in obj["profiles"]] if obj.get("profiles") is not None else None, + "serviceLanSegment": obj.get("serviceLanSegment"), + "serviceName": obj.get("serviceName"), + "sites": ManaV2SiteInformation.from_dict(obj["sites"]) if obj.get("sites") is not None else None, + "sla": ManaV2SlaInformation.from_dict(obj["sla"]) if obj.get("sla") is not None else None, + "vifs": ManaV2PublicVif.from_dict(obj["vifs"]) if obj.get("vifs") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_producer_policy_response.py b/graphiant_sdk/models/mana_v2_public_vif_producer_policy_response.py new file mode 100644 index 00000000..347aed54 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_producer_policy_response.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The 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_application_profile import ManaV2ApplicationProfile +from graphiant_sdk.models.mana_v2_public_vif import ManaV2PublicVif +from graphiant_sdk.models.mana_v2_public_vif_device import ManaV2PublicVifDevice +from graphiant_sdk.models.mana_v2_security_policy_rule import ManaV2SecurityPolicyRule +from graphiant_sdk.models.mana_v2_site_information import ManaV2SiteInformation +from graphiant_sdk.models.mana_v2_sla_information import ManaV2SlaInformation +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 ManaV2PublicVifProducerPolicyResponse(BaseModel): + """ + ManaV2PublicVifProducerPolicyResponse + """ # noqa: E501 + devices: Optional[Dict[str, ManaV2PublicVifDevice]] = None + inbound_security_rules: Optional[List[ManaV2SecurityPolicyRule]] = Field(default=None, alias="inboundSecurityRules") + profiles: Optional[List[ManaV2ApplicationProfile]] = None + service_lan_segment: Optional[StrictInt] = Field(default=None, description="LAN segment ID for the service", alias="serviceLanSegment", json_schema_extra={"examples": [1234567891011]}) + service_name: Optional[StrictStr] = Field(default=None, description="Public VIF service name (local_extranet_producer_service.name)", alias="serviceName", json_schema_extra={"examples": ["example string"]}) + sites: Optional[ManaV2SiteInformation] = None + sla: Optional[ManaV2SlaInformation] = None + traffic_rules: Optional[List[ManaV2TrafficPolicyRule]] = Field(default=None, alias="trafficRules") + vifs: Optional[ManaV2PublicVif] = None + __properties: ClassVar[List[str]] = ["devices", "inboundSecurityRules", "profiles", "serviceLanSegment", "serviceName", "sites", "sla", "trafficRules", "vifs"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifProducerPolicyResponse 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 devices (dict) + _field_dict = {} + if self.devices: + for _key_devices in self.devices: + if self.devices[_key_devices]: + _field_dict[_key_devices] = self.devices[_key_devices].to_dict() + _dict['devices'] = _field_dict + # override the default output from pydantic by calling `to_dict()` of each item in inbound_security_rules (list) + _items = [] + if self.inbound_security_rules: + for _item_inbound_security_rules in self.inbound_security_rules: + if _item_inbound_security_rules: + _items.append(_item_inbound_security_rules.to_dict()) + _dict['inboundSecurityRules'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in profiles (list) + _items = [] + if self.profiles: + for _item_profiles in self.profiles: + if _item_profiles: + _items.append(_item_profiles.to_dict()) + _dict['profiles'] = _items + # override the default output from pydantic by calling `to_dict()` of sites + if self.sites: + _dict['sites'] = self.sites.to_dict() + # override the default output from pydantic by calling `to_dict()` of sla + if self.sla: + _dict['sla'] = self.sla.to_dict() + # override the default output from pydantic by calling `to_dict()` of each item in traffic_rules (list) + _items = [] + if self.traffic_rules: + for _item_traffic_rules in self.traffic_rules: + if _item_traffic_rules: + _items.append(_item_traffic_rules.to_dict()) + _dict['trafficRules'] = _items + # override the default output from pydantic by calling `to_dict()` of vifs + if self.vifs: + _dict['vifs'] = self.vifs.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2PublicVifProducerPolicyResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "devices": dict( + (_k, ManaV2PublicVifDevice.from_dict(_v)) + for _k, _v in obj["devices"].items() + ) + if obj.get("devices") is not None + else None, + "inboundSecurityRules": [ManaV2SecurityPolicyRule.from_dict(_item) for _item in obj["inboundSecurityRules"]] if obj.get("inboundSecurityRules") is not None else None, + "profiles": [ManaV2ApplicationProfile.from_dict(_item) for _item in obj["profiles"]] if obj.get("profiles") is not None else None, + "serviceLanSegment": obj.get("serviceLanSegment"), + "serviceName": obj.get("serviceName"), + "sites": ManaV2SiteInformation.from_dict(obj["sites"]) if obj.get("sites") is not None else None, + "sla": ManaV2SlaInformation.from_dict(obj["sla"]) if obj.get("sla") is not None else None, + "trafficRules": [ManaV2TrafficPolicyRule.from_dict(_item) for _item in obj["trafficRules"]] if obj.get("trafficRules") is not None else None, + "vifs": ManaV2PublicVif.from_dict(obj["vifs"]) if obj.get("vifs") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_public_vif_summary.py b/graphiant_sdk/models/mana_v2_public_vif_summary.py new file mode 100644 index 00000000..9ad9c016 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_public_vif_summary.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.google_protobuf_timestamp import GoogleProtobufTimestamp +from 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"]}) + 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"]}) + __properties: ClassVar[List[str]] = ["id", "serviceName", "updatedAt", "userName"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2PublicVifSummary 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 ManaV2PublicVifSummary 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"), + "serviceName": obj.get("serviceName"), + "updatedAt": GoogleProtobufTimestamp.from_dict(obj["updatedAt"]) if obj.get("updatedAt") is not None else None, + "userName": obj.get("userName") + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_qo_s_profile.py b/graphiant_sdk/models/mana_v2_qo_s_profile.py index 41f415d6..6fd94a98 100644 --- a/graphiant_sdk/models/mana_v2_qo_s_profile.py +++ b/graphiant_sdk/models/mana_v2_qo_s_profile.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,8 +28,8 @@ class ManaV2QoSProfile(BaseModel): """ ManaV2QoSProfile """ # noqa: E501 - kind: Optional[StrictStr] = None - profile: Optional[StrictStr] = None + kind: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + profile: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) queues: Optional[List[ManaV2QoSProfileQueue]] = None __properties: ClassVar[List[str]] = ["kind", "profile", "queues"] 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 70f77216..5720f712 100644 --- a/graphiant_sdk/models/mana_v2_qo_s_profile_queue.py +++ b/graphiant_sdk/models/mana_v2_qo_s_profile_queue.py @@ -28,9 +28,9 @@ class ManaV2QoSProfileQueue(BaseModel): """ ManaV2QoSProfileQueue """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["bandwidthPercent", "defaultQueue", "slaClass"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_region.py b/graphiant_sdk/models/mana_v2_region.py index 98a76839..c3edb345 100644 --- a/graphiant_sdk/models/mana_v2_region.py +++ b/graphiant_sdk/models/mana_v2_region.py @@ -29,10 +29,10 @@ class ManaV2Region(BaseModel): ManaV2Region """ # noqa: E501 coordinates: Optional[ManaV2RegionCoordinates] = None - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None - region_iso_code: Optional[StrictStr] = Field(default=None, alias="regionIsoCode") - unavailable: Optional[StrictBool] = None + 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]}) __properties: ClassVar[List[str]] = ["coordinates", "id", "name", "regionIsoCode", "unavailable"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_region_coordinates.py b/graphiant_sdk/models/mana_v2_region_coordinates.py index eeb5d6c1..35bf022f 100644 --- a/graphiant_sdk/models/mana_v2_region_coordinates.py +++ b/graphiant_sdk/models/mana_v2_region_coordinates.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +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 @@ -27,8 +27,8 @@ class ManaV2RegionCoordinates(BaseModel): """ ManaV2RegionCoordinates """ # noqa: E501 - latitude: Optional[Union[StrictFloat, StrictInt]] = None - longitude: Optional[Union[StrictFloat, StrictInt]] = None + 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]}) __properties: ClassVar[List[str]] = ["latitude", "longitude"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_regional_allocation.py b/graphiant_sdk/models/mana_v2_regional_allocation.py index e3430ca0..4bce9125 100644 --- a/graphiant_sdk/models/mana_v2_regional_allocation.py +++ b/graphiant_sdk/models/mana_v2_regional_allocation.py @@ -27,13 +27,13 @@ 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") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["allocationCore", "allocationGw", "allocationInternet", "creditCore", "creditGw", "regionId", "regionName"] model_config = ConfigDict( 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 1d7f9640..e74551c4 100644 --- a/graphiant_sdk/models/mana_v2_regional_bandwidth_consumption_summary.py +++ b/graphiant_sdk/models/mana_v2_regional_bandwidth_consumption_summary.py @@ -30,9 +30,9 @@ 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") - 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") + 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]}) internet_consumption: Optional[ManaV2InternetAccessBandwidthInfo] = Field(default=None, alias="internetConsumption") usage: Optional[ManaV2BandwidthInfo] = None __properties: ClassVar[List[str]] = ["allocation", "consumedCredits", "coreConversionFactor", "gwConversionFactor", "internetConsumption", "usage"] diff --git a/graphiant_sdk/models/mana_v2_route_tag.py b/graphiant_sdk/models/mana_v2_route_tag.py index 8387a8ec..9835b033 100644 --- a/graphiant_sdk/models/mana_v2_route_tag.py +++ b/graphiant_sdk/models/mana_v2_route_tag.py @@ -27,9 +27,9 @@ class ManaV2RouteTag(BaseModel): """ ManaV2RouteTag """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["levelOne", "levelTwo", "levelZero"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_route_tag_device.py b/graphiant_sdk/models/mana_v2_route_tag_device.py index e86fcab8..d26e7e92 100644 --- a/graphiant_sdk/models/mana_v2_route_tag_device.py +++ b/graphiant_sdk/models/mana_v2_route_tag_device.py @@ -28,9 +28,9 @@ class ManaV2RouteTagDevice(BaseModel): """ ManaV2RouteTagDevice """ # noqa: E501 - 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") + 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]}) tag: Optional[ManaV2RouteTag] = None __properties: ClassVar[List[str]] = ["deviceId", "locationId", "siteId", "tag"] diff --git a/graphiant_sdk/models/mana_v2_route_tag_element.py b/graphiant_sdk/models/mana_v2_route_tag_element.py index 739fbffa..0707d085 100644 --- a/graphiant_sdk/models/mana_v2_route_tag_element.py +++ b/graphiant_sdk/models/mana_v2_route_tag_element.py @@ -27,10 +27,10 @@ class ManaV2RouteTagElement(BaseModel): """ ManaV2RouteTagElement """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) next_set: Optional[List[ManaV2RouteTagElement]] = Field(default=None, alias="nextSet") - tag: Optional[StrictStr] = None - tag_value: Optional[StrictInt] = Field(default=None, alias="tagValue") + 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]}) __properties: ClassVar[List[str]] = ["id", "nextSet", "tag", "tagValue"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_route_tag_id.py b/graphiant_sdk/models/mana_v2_route_tag_id.py index ffe754bd..4380e586 100644 --- a/graphiant_sdk/models/mana_v2_route_tag_id.py +++ b/graphiant_sdk/models/mana_v2_route_tag_id.py @@ -27,9 +27,9 @@ class ManaV2RouteTagId(BaseModel): """ ManaV2RouteTagId """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["levelOne", "levelTwo", "levelZero"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_route_tag_summary.py b/graphiant_sdk/models/mana_v2_route_tag_summary.py index f4222170..fa5a78a6 100644 --- a/graphiant_sdk/models/mana_v2_route_tag_summary.py +++ b/graphiant_sdk/models/mana_v2_route_tag_summary.py @@ -27,13 +27,13 @@ class ManaV2RouteTagSummary(BaseModel): """ ManaV2RouteTagSummary """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["deviceCount", "levelOne", "levelOneTag", "levelTwo", "levelTwoTag", "levelZero", "levelZeroTag"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_routing_policy.py b/graphiant_sdk/models/mana_v2_routing_policy.py index 2c2179ce..b99a4e61 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy.py +++ b/graphiant_sdk/models/mana_v2_routing_policy.py @@ -28,15 +28,15 @@ class ManaV2RoutingPolicy(BaseModel): """ ManaV2RoutingPolicy """ # noqa: E501 - 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 + 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"]}) statements: Optional[List[ManaV2RoutingPolicyStatement]] = None - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["attachPoint", "defaultAction", "description", "errorMessage", "globalId", "id", "name", "statements", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_routing_policy_config.py b/graphiant_sdk/models/mana_v2_routing_policy_config.py index 8a59f944..26a39b5b 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_config.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_config.py @@ -28,12 +28,12 @@ class ManaV2RoutingPolicyConfig(BaseModel): """ ManaV2RoutingPolicyConfig """ # noqa: E501 - 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 + 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"]}) statements: Optional[Dict[str, ManaV2RoutingPolicyConfigNullableStatement]] = None __properties: ClassVar[List[str]] = ["attachPoint", "defaultAction", "description", "globalId", "isGlobalSync", "name", "statements"] 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 bbc8e7f0..7149b92c 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 @@ -32,7 +32,7 @@ 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)]] = None + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["actions", "matches", "seq"] model_config = ConfigDict( 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 9575827f..784d3a26 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 @@ -43,8 +43,8 @@ class ManaV2RoutingPolicyConfigNullableStatementStatementNullableActionAction(Ba communities: Optional[ManaV2NullableCommunities] = None local_pref: Optional[ManaV2NullableLocalPreferance] = Field(default=None, alias="localPref") metric: Optional[ManaV2NullableMetric] = None - result: Optional[StrictStr] = None - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = 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]}) weight: Optional[ManaV2NullableWeight] = None __properties: ClassVar[List[str]] = ["administrativeDistance", "aspathPrepend", "bgpSetNextHop", "callPolicy", "communities", "localPref", "metric", "result", "seq", "weight"] 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 7227e00c..3c656703 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 @@ -39,7 +39,7 @@ 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)]] = None + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) source_interface: Optional[ManaV2NullableInterfaceName] = Field(default=None, alias="sourceInterface") source_protocol: Optional[ManaV2NullableRoutingProtocol] = Field(default=None, alias="sourceProtocol") stale: Optional[ManaV2NullableStalePurge] = None diff --git a/graphiant_sdk/models/mana_v2_routing_policy_statement.py b/graphiant_sdk/models/mana_v2_routing_policy_statement.py index f548c2bc..c73b8222 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_statement.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_statement.py @@ -31,9 +31,9 @@ class ManaV2RoutingPolicyStatement(BaseModel): ManaV2RoutingPolicyStatement """ # noqa: E501 actions: Optional[List[ManaV2RoutingPolicyStatementAction]] = None - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) matches: Optional[List[ManaV2RoutingPolicyStatementMatch]] = None - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["actions", "id", "matches", "seq"] model_config = ConfigDict( 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 9104712d..06e0ecc7 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_statement_action.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_statement_action.py @@ -29,18 +29,18 @@ class ManaV2RoutingPolicyStatementAction(BaseModel): """ ManaV2RoutingPolicyStatementAction """ # noqa: E501 - 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") + 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"]}) community: Optional[ManaV2CommunityType] = None - 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 + 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]}) __properties: ClassVar[List[str]] = ["administrativeDistance", "aspathPrepend", "bgpSetNextHop", "callPolicy", "community", "id", "localPref", "metricAbsolute", "metricModifier", "result", "seq", "weight"] model_config = ConfigDict( 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 7a172730..50c79e6d 100644 --- a/graphiant_sdk/models/mana_v2_routing_policy_statement_match.py +++ b/graphiant_sdk/models/mana_v2_routing_policy_statement_match.py @@ -30,14 +30,14 @@ class ManaV2RoutingPolicyStatementMatch(BaseModel): ManaV2RoutingPolicyStatementMatch """ # noqa: E501 community: Optional[List[StrictStr]] = None - id: Optional[StrictInt] = None - prefix_set: Optional[StrictStr] = Field(default=None, alias="prefixSet") - protocol_route_type: Optional[StrictStr] = Field(default=None, alias="protocolRouteType") + 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"]}) route_tag: Optional[ManaV2RouteTag] = Field(default=None, alias="routeTag") - 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") + 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]}) __properties: ClassVar[List[str]] = ["community", "id", "prefixSet", "protocolRouteType", "routeTag", "seq", "sourceInterface", "sourceProtocol", "stalePurge"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_sak_configuration.py b/graphiant_sdk/models/mana_v2_sak_configuration.py index 6251a114..5d4c2d0a 100644 --- a/graphiant_sdk/models/mana_v2_sak_configuration.py +++ b/graphiant_sdk/models/mana_v2_sak_configuration.py @@ -29,12 +29,12 @@ class ManaV2SakConfiguration(BaseModel): """ ManaV2SakConfiguration """ # noqa: E501 - 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") + 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]}) 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") - replay_protection_window_size: Optional[StrictInt] = Field(default=None, alias="replayProtectionWindowSize") + 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]}) __properties: ClassVar[List[str]] = ["cipherSuite", "lagMemberInterfaceId", "nullableRekeyInterval", "nullableReplayProtectionWindowSize", "rekeyInterval", "replayProtectionWindowSize"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_security_policy_rule.py b/graphiant_sdk/models/mana_v2_security_policy_rule.py index 197872df..1a55a9c1 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_rule.py +++ b/graphiant_sdk/models/mana_v2_security_policy_rule.py @@ -29,11 +29,11 @@ class ManaV2SecurityPolicyRule(BaseModel): """ ManaV2SecurityPolicyRule """ # noqa: E501 - action: Optional[StrictStr] = None - implicit: Optional[StrictBool] = None + action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + implicit: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) match: Optional[ManaV2PolicyMatch] = None - policy_rule_index: Optional[StrictInt] = Field(default=None, alias="policyRuleIndex") - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = 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]}) __properties: ClassVar[List[str]] = ["action", "implicit", "match", "policyRuleIndex", "seq"] model_config = ConfigDict( 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 e0898b81..98cf8e23 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_rule_row.py +++ b/graphiant_sdk/models/mana_v2_security_policy_rule_row.py @@ -31,7 +31,7 @@ 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") + vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["device", "securityPolicyRule", "vrfName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_security_policy_ruleset.py b/graphiant_sdk/models/mana_v2_security_policy_ruleset.py index 410722fb..d4a21f49 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_ruleset.py +++ b/graphiant_sdk/models/mana_v2_security_policy_ruleset.py @@ -29,14 +29,14 @@ class ManaV2SecurityPolicyRuleset(BaseModel): """ ManaV2SecurityPolicyRuleset """ # noqa: E501 - 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 + 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"]}) rules: Optional[List[ManaV2SecurityPolicyRulesetRule]] = None - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["description", "errorMessage", "globalId", "id", "index", "name", "rules", "status"] model_config = ConfigDict( 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 979c29f7..0d5742a5 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_ruleset_config.py +++ b/graphiant_sdk/models/mana_v2_security_policy_ruleset_config.py @@ -28,10 +28,10 @@ class ManaV2SecurityPolicyRulesetConfig(BaseModel): """ ManaV2SecurityPolicyRulesetConfig """ # noqa: E501 - 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 + 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"]}) rules: Optional[Dict[str, ManaV2SecurityPolicyRulesetConfigNullableRule]] = None __properties: ClassVar[List[str]] = ["description", "globalId", "isGlobalSync", "name", "rules"] 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 59182286..18ff59b2 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 @@ -30,14 +30,14 @@ class ManaV2SecurityPolicyRulesetConfigNullableRuleRule(BaseModel): """ ManaV2SecurityPolicyRulesetConfigNullableRuleRule """ # noqa: E501 - action: Optional[StrictStr] = None - description: Optional[StrictStr] = None + 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[ManaV2NullableMeterRates] = Field(default=None, alias="downlinkBurstRate") downlink_policer_rate: Optional[ManaV2NullableMeterRates] = Field(default=None, alias="downlinkPolicerRate") - logging: Optional[StrictBool] = None + logging: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) match: Optional[ManaV2ForwardingPolicyMatchConfig] = None - name: Optional[StrictStr] = None - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = 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[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"] 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 bf50affb..b2783fe9 100644 --- a/graphiant_sdk/models/mana_v2_security_policy_ruleset_rule.py +++ b/graphiant_sdk/models/mana_v2_security_policy_ruleset_rule.py @@ -29,18 +29,18 @@ class ManaV2SecurityPolicyRulesetRule(BaseModel): """ ManaV2SecurityPolicyRulesetRule """ # noqa: E501 - 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 + 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]}) match: Optional[ManaV2ForwardingPolicyMatch] = None - 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") + 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]}) __properties: ClassVar[List[str]] = ["action", "description", "downlinkBurstRate", "downlinkPolicerRate", "id", "index", "logging", "match", "name", "seq", "uplinkBurstRate", "uplinkPolicerRate"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_security_zone.py b/graphiant_sdk/models/mana_v2_security_zone.py index 513870bb..5a74a05c 100644 --- a/graphiant_sdk/models/mana_v2_security_zone.py +++ b/graphiant_sdk/models/mana_v2_security_zone.py @@ -27,10 +27,10 @@ class ManaV2SecurityZone(BaseModel): """ ManaV2SecurityZone """ # noqa: E501 - inside: Optional[StrictStr] = None - outside: Optional[StrictStr] = None - ruleset: Optional[StrictStr] = None - tcp_protection: Optional[StrictBool] = Field(default=None, alias="tcpProtection") + 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]}) __properties: ClassVar[List[str]] = ["inside", "outside", "ruleset", "tcpProtection"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_security_zone_config.py b/graphiant_sdk/models/mana_v2_security_zone_config.py index 33ed2973..06bdfb02 100644 --- a/graphiant_sdk/models/mana_v2_security_zone_config.py +++ b/graphiant_sdk/models/mana_v2_security_zone_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,7 +28,7 @@ class ManaV2SecurityZoneConfig(BaseModel): """ ManaV2SecurityZoneConfig """ # noqa: E501 - inside: Optional[StrictStr] = None + inside: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) pairs: Optional[Dict[str, ManaV2NullableSecurityZonePairConfig]] = None __properties: ClassVar[List[str]] = ["inside", "pairs"] 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 5973aa2e..a0df8a2a 100644 --- a/graphiant_sdk/models/mana_v2_security_zone_pair_config.py +++ b/graphiant_sdk/models/mana_v2_security_zone_pair_config.py @@ -27,9 +27,9 @@ class ManaV2SecurityZonePairConfig(BaseModel): """ ManaV2SecurityZonePairConfig """ # noqa: E501 - outside: Optional[StrictStr] = None - ruleset: Optional[StrictStr] = None - tcp_protection: Optional[StrictBool] = Field(default=None, alias="tcpProtection") + 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]}) __properties: ClassVar[List[str]] = ["outside", "ruleset", "tcpProtection"] model_config = ConfigDict( 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 02705f6d..a0a58d1d 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 @@ -27,9 +27,9 @@ class ManaV2SingleRouteTagRouteTagElement(BaseModel): """ ManaV2SingleRouteTagRouteTagElement """ # noqa: E501 - id: Optional[StrictInt] = None - tag: Optional[StrictStr] = None - tag_value: Optional[StrictInt] = Field(default=None, alias="tagValue") + 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]}) __properties: ClassVar[List[str]] = ["id", "tag", "tagValue"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_site.py b/graphiant_sdk/models/mana_v2_site.py index 37136444..951b4d83 100644 --- a/graphiant_sdk/models/mana_v2_site.py +++ b/graphiant_sdk/models/mana_v2_site.py @@ -32,18 +32,18 @@ class ManaV2Site(BaseModel): """ ManaV2Site """ # noqa: E501 - address: Optional[StrictStr] = None + address: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) 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") - id: Optional[StrictInt] = 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]}) location: Optional[ManaV2Location] = None - name: Optional[StrictStr] = None - notes: Optional[StrictStr] = None - policy_reference_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="policyReferenceCount") + 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]}) policy_tag: Optional[ManaV2SingleRouteTag] = Field(default=None, alias="policyTag") - 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") + 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]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_site_device_stub.py b/graphiant_sdk/models/mana_v2_site_device_stub.py index ec9a85cf..5408c80c 100644 --- a/graphiant_sdk/models/mana_v2_site_device_stub.py +++ b/graphiant_sdk/models/mana_v2_site_device_stub.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,8 +27,8 @@ class ManaV2SiteDeviceStub(BaseModel): """ ManaV2SiteDeviceStub """ # noqa: E501 - hostname: Optional[StrictStr] = None - id: Optional[StrictInt] = None + hostname: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["hostname", "id"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_site_device_summary.py b/graphiant_sdk/models/mana_v2_site_device_summary.py new file mode 100644 index 00000000..6c245daf --- /dev/null +++ b/graphiant_sdk/models/mana_v2_site_device_summary.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_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"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2SiteDeviceSummary 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 ManaV2SiteDeviceSummary 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/mana_v2_site_information.py b/graphiant_sdk/models/mana_v2_site_information.py new file mode 100644 index 00000000..52e21804 --- /dev/null +++ b/graphiant_sdk/models/mana_v2_site_information.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing 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): + """ + ManaV2SiteInformation + """ # noqa: E501 + site_lists: Optional[List[StrictInt]] = Field(default=None, alias="siteLists") + sites: Optional[List[StrictInt]] = None + __properties: ClassVar[List[str]] = ["siteLists", "sites"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2SiteInformation 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 ManaV2SiteInformation from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "siteLists": obj.get("siteLists"), + "sites": obj.get("sites") + }) + return _obj + + 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 new file mode 100644 index 00000000..42dc484d --- /dev/null +++ b/graphiant_sdk/models/mana_v2_site_lan_segment_device_buckets.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 + + +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_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): + """ + ManaV2SiteLanSegmentDeviceBuckets + """ # noqa: E501 + lan_segment_exists: Optional[List[ManaV2SiteDeviceSummary]] = Field(default=None, alias="lanSegmentExists") + lan_segment_missing: Optional[List[ManaV2SiteDeviceSummary]] = Field(default=None, alias="lanSegmentMissing") + __properties: ClassVar[List[str]] = ["lanSegmentExists", "lanSegmentMissing"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ManaV2SiteLanSegmentDeviceBuckets 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 lan_segment_exists (list) + _items = [] + if self.lan_segment_exists: + for _item_lan_segment_exists in self.lan_segment_exists: + if _item_lan_segment_exists: + _items.append(_item_lan_segment_exists.to_dict()) + _dict['lanSegmentExists'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in lan_segment_missing (list) + _items = [] + if self.lan_segment_missing: + for _item_lan_segment_missing in self.lan_segment_missing: + if _item_lan_segment_missing: + _items.append(_item_lan_segment_missing.to_dict()) + _dict['lanSegmentMissing'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ManaV2SiteLanSegmentDeviceBuckets from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "lanSegmentExists": [ManaV2SiteDeviceSummary.from_dict(_item) for _item in obj["lanSegmentExists"]] if obj.get("lanSegmentExists") is not None else None, + "lanSegmentMissing": [ManaV2SiteDeviceSummary.from_dict(_item) for _item in obj["lanSegmentMissing"]] if obj.get("lanSegmentMissing") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/mana_v2_site_list.py b/graphiant_sdk/models/mana_v2_site_list.py index 9d179554..6570a113 100644 --- a/graphiant_sdk/models/mana_v2_site_list.py +++ b/graphiant_sdk/models/mana_v2_site_list.py @@ -28,10 +28,10 @@ class ManaV2SiteList(BaseModel): """ ManaV2SiteList """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["name", "policyCount", "siteCount", "siteListId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_site_list_entry.py b/graphiant_sdk/models/mana_v2_site_list_entry.py index 900a4965..18f27664 100644 --- a/graphiant_sdk/models/mana_v2_site_list_entry.py +++ b/graphiant_sdk/models/mana_v2_site_list_entry.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,7 +28,7 @@ class ManaV2SiteListEntry(BaseModel): """ ManaV2SiteListEntry """ # noqa: E501 - regular: Optional[StrictInt] = None + regular: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) tag: Optional[ManaV2RouteTagId] = None __properties: ClassVar[List[str]] = ["regular", "tag"] 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 734403fb..a8b9e8fd 100644 --- a/graphiant_sdk/models/mana_v2_site_list_site_entry.py +++ b/graphiant_sdk/models/mana_v2_site_list_site_entry.py @@ -30,8 +30,8 @@ class ManaV2SiteListSiteEntry(BaseModel): ManaV2SiteListSiteEntry """ # noqa: E501 created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - edge_references: Optional[StrictInt] = Field(default=None, alias="edgeReferences") - site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + 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"]}) tag: Optional[List[ManaV2RouteTagId]] = None __properties: ClassVar[List[str]] = ["createdAt", "edgeReferences", "siteName", "tag"] 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 17315806..a5dbaa29 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 @@ -31,23 +31,23 @@ class ManaV2SiteToSiteIPsec(BaseModel): ManaV2SiteToSiteIPsec """ # noqa: E501 bgp: Optional[ManaV2SiteToSiteIPsecIPsecBgpRoutes] = None - 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") + 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"]}) static: Optional[ManaV2SiteToSiteIPsecIPsecStaticRoutes] = None - tcp_mss: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="tcpMss") - vpn_profile: Optional[StrictStr] = Field(default=None, alias="vpnProfile") + 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"]}) __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( 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 1266dcec..ab440917 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 @@ -30,11 +30,11 @@ 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["addressFamilies", "holdTimer", "keepaliveTimer", "md5Password", "peerAsn", "sendCommunity"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_sla_conformance.py b/graphiant_sdk/models/mana_v2_sla_conformance.py index c0f98156..74734cdb 100644 --- a/graphiant_sdk/models/mana_v2_sla_conformance.py +++ b/graphiant_sdk/models/mana_v2_sla_conformance.py @@ -27,9 +27,9 @@ class ManaV2SlaConformance(BaseModel): """ ManaV2SlaConformance """ # noqa: E501 - dampening_factor: Optional[StrictInt] = Field(default=None, alias="dampeningFactor") - duration: Optional[StrictInt] = None - interval: Optional[StrictInt] = None + 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]}) __properties: ClassVar[List[str]] = ["dampeningFactor", "duration", "interval"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_sla_information.py b/graphiant_sdk/models/mana_v2_sla_information.py index 645cad27..5b1cafb7 100644 --- a/graphiant_sdk/models/mana_v2_sla_information.py +++ b/graphiant_sdk/models/mana_v2_sla_information.py @@ -27,9 +27,9 @@ class ManaV2SlaInformation(BaseModel): """ ManaV2SlaInformation """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["backupCircuit", "class", "primaryCircuit"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_snmp.py b/graphiant_sdk/models/mana_v2_snmp.py index a47e4efe..19506591 100644 --- a/graphiant_sdk/models/mana_v2_snmp.py +++ b/graphiant_sdk/models/mana_v2_snmp.py @@ -35,33 +35,33 @@ class ManaV2Snmp(BaseModel): ManaV2Snmp """ # noqa: E501 communities: Optional[List[ManaV2SnmpCommunity]] = None - 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_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_endpoints: Optional[List[ManaV2SnmpEngineEndpoint]] = Field(default=None, alias="engineEndpoints") - 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 + 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"]}) notify_filter_profiles: Optional[List[ManaV2SnmpNotifyFilterProfile]] = Field(default=None, alias="notifyFilterProfiles") - snmp_version: Optional[StrictStr] = Field(default=None, alias="snmpVersion") - status: Optional[StrictStr] = None + 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"]}) 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") - v3_enabled: Optional[StrictBool] = Field(default=None, alias="v3Enabled") + 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]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_snmp_community.py b/graphiant_sdk/models/mana_v2_snmp_community.py index d0f7fecf..00f02c80 100644 --- a/graphiant_sdk/models/mana_v2_snmp_community.py +++ b/graphiant_sdk/models/mana_v2_snmp_community.py @@ -27,8 +27,8 @@ class ManaV2SnmpCommunity(BaseModel): """ ManaV2SnmpCommunity """ # noqa: E501 - community_string: Optional[StrictStr] = Field(default=None, alias="communityString") - id: Optional[StrictInt] = None + 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]}) __properties: ClassVar[List[str]] = ["communityString", "id"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_snmp_config.py b/graphiant_sdk/models/mana_v2_snmp_config.py index fc6cb513..29df2374 100644 --- a/graphiant_sdk/models/mana_v2_snmp_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_config.py @@ -36,31 +36,31 @@ class ManaV2SnmpConfig(BaseModel): ManaV2SnmpConfig """ # noqa: E501 communities: Optional[Dict[str, ManaV2NullableSnmpCommunityConfigValue]] = None - engine_authen_traps: Optional[StrictBool] = Field(default=None, alias="engineAuthenTraps") - engine_enabled: Optional[StrictBool] = Field(default=None, alias="engineEnabled") + 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_endpoints: Optional[Dict[str, ManaV2NullableSnmpEngineEndpointConfigValue]] = Field(default=None, alias="engineEndpoints") - 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 + 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"]}) notify_filter_profiles: Optional[Dict[str, ManaV2NullableSnmpNotifyFilterProfileConfigValue]] = Field(default=None, alias="notifyFilterProfiles") - snmp_version: Optional[StrictStr] = Field(default=None, alias="snmpVersion") + snmp_version: Optional[StrictStr] = Field(default=None, alias="snmpVersion", json_schema_extra={"examples": ["ENUM_VALUE"]}) 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") - v3_enabled: Optional[StrictBool] = Field(default=None, alias="v3Enabled") + 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]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_snmp_engine_endpoint.py b/graphiant_sdk/models/mana_v2_snmp_engine_endpoint.py index 651de997..63f0443e 100644 --- a/graphiant_sdk/models/mana_v2_snmp_engine_endpoint.py +++ b/graphiant_sdk/models/mana_v2_snmp_engine_endpoint.py @@ -28,12 +28,12 @@ class ManaV2SnmpEngineEndpoint(BaseModel): ManaV2SnmpEngineEndpoint """ # noqa: E501 addresses: Optional[List[StrictStr]] = None - 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 + 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"]}) __properties: ClassVar[List[str]] = ["addresses", "autoIpv4", "autoIpv6", "id", "interfaceName", "lanSegment", "name"] model_config = ConfigDict( 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 a0dc45ba..cfa5ed02 100644 --- a/graphiant_sdk/models/mana_v2_snmp_engine_endpoint_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_engine_endpoint_config.py @@ -29,11 +29,11 @@ class ManaV2SnmpEngineEndpointConfig(BaseModel): ManaV2SnmpEngineEndpointConfig """ # noqa: E501 addresses: Optional[Dict[str, ManaV2NullableSnmpEngineEndpointsAddress]] = None - 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 + 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"]}) __properties: ClassVar[List[str]] = ["addresses", "autoIpv4", "autoIpv6", "interface", "lanSegment", "name"] model_config = ConfigDict( 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 c8de4929..6eb66def 100644 --- a/graphiant_sdk/models/mana_v2_snmp_notify_filter_profile.py +++ b/graphiant_sdk/models/mana_v2_snmp_notify_filter_profile.py @@ -28,9 +28,9 @@ class ManaV2SnmpNotifyFilterProfile(BaseModel): """ ManaV2SnmpNotifyFilterProfile """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) include_exclude_list: Optional[List[ManaV2NotifyFilterProfileInclude]] = Field(default=None, alias="includeExcludeList") - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["id", "includeExcludeList", "name"] model_config = ConfigDict( 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 7d0b96db..5b82562c 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 @@ -29,7 +29,7 @@ class ManaV2SnmpNotifyFilterProfileConfig(BaseModel): ManaV2SnmpNotifyFilterProfileConfig """ # noqa: E501 include_exclude_list: Optional[Dict[str, ManaV2NotifyFilterProfileIncludeConfig]] = Field(default=None, alias="includeExcludeList") - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["includeExcludeList", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_snmp_target.py b/graphiant_sdk/models/mana_v2_snmp_target.py index 6ab88f0d..1f70cf5c 100644 --- a/graphiant_sdk/models/mana_v2_snmp_target.py +++ b/graphiant_sdk/models/mana_v2_snmp_target.py @@ -27,17 +27,17 @@ class ManaV2SnmpTarget(BaseModel): """ ManaV2SnmpTarget """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["community", "id", "name", "notifyFilterProfile", "notifyType", "sourceIp", "targetIp", "targetType", "usmSecurityLevel", "usmUserName", "vrfName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_snmp_target_config.py b/graphiant_sdk/models/mana_v2_snmp_target_config.py index 037b636a..56018ccd 100644 --- a/graphiant_sdk/models/mana_v2_snmp_target_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_target_config.py @@ -27,16 +27,16 @@ class ManaV2SnmpTargetConfig(BaseModel): """ ManaV2SnmpTargetConfig """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["community", "lanSegment", "name", "notifyFilterProfile", "notifyType", "sourceIp", "targetIp", "targetType", "usmSecurityLevel", "usmUserName"] model_config = ConfigDict( 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 5f256196..30e1500a 100644 --- a/graphiant_sdk/models/mana_v2_snmp_usm_local_user.py +++ b/graphiant_sdk/models/mana_v2_snmp_usm_local_user.py @@ -27,12 +27,12 @@ class ManaV2SnmpUsmLocalUser(BaseModel): """ ManaV2SnmpUsmLocalUser """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["authPassphrase", "authProtocol", "encryptionPassphrase", "encryptionProtocol", "id", "name"] model_config = ConfigDict( 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 27c17d05..4838746d 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 @@ -27,11 +27,11 @@ class ManaV2SnmpUsmLocalUserConfig(BaseModel): """ ManaV2SnmpUsmLocalUserConfig """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["authPassphrase", "authProtocol", "encryptionPassphrase", "encryptionProtocol", "name"] model_config = ConfigDict( 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 b8481743..b51ede2d 100644 --- a/graphiant_sdk/models/mana_v2_snmp_usm_remote_user.py +++ b/graphiant_sdk/models/mana_v2_snmp_usm_remote_user.py @@ -27,12 +27,12 @@ class ManaV2SnmpUsmRemoteUser(BaseModel): """ ManaV2SnmpUsmRemoteUser """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["authLocKey", "authProtocol", "encryptionLocKey", "encryptionProtocol", "id", "name"] model_config = ConfigDict( 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 69b37df0..17ef1463 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 @@ -27,11 +27,11 @@ class ManaV2SnmpUsmRemoteUserConfig(BaseModel): """ ManaV2SnmpUsmRemoteUserConfig """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["authLocKey", "authProtocol", "encryptionLocKey", "encryptionProtocol", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_snmp_vacm_group.py b/graphiant_sdk/models/mana_v2_snmp_vacm_group.py index 865a3781..76c8fb05 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_group.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_group.py @@ -32,8 +32,8 @@ class ManaV2SnmpVacmGroup(BaseModel): """ # noqa: E501 accesses: Optional[List[ManaV2SnmpVacmGroupAccess]] = None group_members: Optional[List[ManaV2SnmpVacmGroupMember]] = Field(default=None, alias="groupMembers") - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) views: Optional[List[ManaV2SnmpVacmView]] = None __properties: ClassVar[List[str]] = ["accesses", "groupMembers", "id", "name", "views"] 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 e533a0da..8955196b 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_group_access.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_group_access.py @@ -27,13 +27,13 @@ class ManaV2SnmpVacmGroupAccess(BaseModel): """ ManaV2SnmpVacmGroupAccess """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["context", "groupContextMatch", "id", "name", "readView", "securityLevel", "writeView"] model_config = ConfigDict( 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 c1b9f0f1..74cd9d17 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 @@ -27,13 +27,13 @@ class ManaV2SnmpVacmGroupAccessConfig(BaseModel): """ ManaV2SnmpVacmGroupAccessConfig """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["context", "contextMatch", "name", "readView", "securityLevel", "securityModel", "writeView"] model_config = ConfigDict( 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 c5a52df4..f4c763cd 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_group_member.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_group_member.py @@ -27,11 +27,11 @@ class ManaV2SnmpVacmGroupMember(BaseModel): """ ManaV2SnmpVacmGroupMember """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["id", "securityModel", "securityName", "snmpCommunity", "type"] model_config = ConfigDict( 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 9d3d6073..a65bb646 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 @@ -27,10 +27,10 @@ class ManaV2SnmpVacmGroupMemberConfig(BaseModel): """ ManaV2SnmpVacmGroupMemberConfig """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["community", "securityModel", "securityName", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_snmp_vacm_view.py b/graphiant_sdk/models/mana_v2_snmp_vacm_view.py index d903bf83..3e27bf07 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_view.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_view.py @@ -28,9 +28,9 @@ class ManaV2SnmpVacmView(BaseModel): """ ManaV2SnmpVacmView """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) include_exclude: Optional[List[ManaV2SnmpVacmViewInclude]] = Field(default=None, alias="includeExclude") - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["id", "includeExclude", "name"] model_config = ConfigDict( 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 25770d7a..abdf035e 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_view_config.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_view_config.py @@ -29,7 +29,7 @@ class ManaV2SnmpVacmViewConfig(BaseModel): ManaV2SnmpVacmViewConfig """ # noqa: E501 include_exclude_list: Optional[Dict[str, ManaV2SnmpVacmViewIncludeConfig]] = Field(default=None, alias="includeExcludeList") - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["includeExcludeList", "name"] model_config = ConfigDict( 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 e66d0db8..008ec789 100644 --- a/graphiant_sdk/models/mana_v2_snmp_vacm_view_include.py +++ b/graphiant_sdk/models/mana_v2_snmp_vacm_view_include.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,9 +27,9 @@ class ManaV2SnmpVacmViewInclude(BaseModel): """ ManaV2SnmpVacmViewInclude """ # noqa: E501 - id: Optional[StrictInt] = None - include: Optional[StrictBool] = None - name: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["id", "include", "name"] model_config = ConfigDict( 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 6b8ffcf4..c4ee108a 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class ManaV2SnmpVacmViewIncludeConfig(BaseModel): """ ManaV2SnmpVacmViewIncludeConfig """ # noqa: E501 - enabled: Optional[StrictBool] = None + enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_static_route.py b/graphiant_sdk/models/mana_v2_static_route.py index c4b64f97..c8481365 100644 --- a/graphiant_sdk/models/mana_v2_static_route.py +++ b/graphiant_sdk/models/mana_v2_static_route.py @@ -29,12 +29,12 @@ class ManaV2StaticRoute(BaseModel): """ ManaV2StaticRoute """ # noqa: E501 - administrative_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="administrativeDistance") - description: Optional[StrictStr] = None - id: Optional[StrictInt] = None + 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]}) next_hop: Optional[ManaV2StaticRouteNexthop] = Field(default=None, alias="nextHop") next_hops: Optional[List[ManaV2StaticRouteNexthop]] = Field(default=None, alias="nextHops") - prefix: Optional[StrictStr] = None + prefix: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["administrativeDistance", "description", "id", "nextHop", "nextHops", "prefix"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_static_route_config.py b/graphiant_sdk/models/mana_v2_static_route_config.py index 44dd3034..17c8c607 100644 --- a/graphiant_sdk/models/mana_v2_static_route_config.py +++ b/graphiant_sdk/models/mana_v2_static_route_config.py @@ -30,11 +30,11 @@ class ManaV2StaticRouteConfig(BaseModel): """ ManaV2StaticRouteConfig """ # noqa: E501 - admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="adminDistance") + admin_distance: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="adminDistance", json_schema_extra={"examples": [123]}) administrative_distance: Optional[ManaV2NullableAdministrativeDistance] = Field(default=None, alias="administrativeDistance") - 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") + 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]}) 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"] diff --git a/graphiant_sdk/models/mana_v2_static_route_nexthop.py b/graphiant_sdk/models/mana_v2_static_route_nexthop.py index 75085243..0e010d70 100644 --- a/graphiant_sdk/models/mana_v2_static_route_nexthop.py +++ b/graphiant_sdk/models/mana_v2_static_route_nexthop.py @@ -28,13 +28,13 @@ class ManaV2StaticRouteNexthop(BaseModel): """ ManaV2StaticRouteNexthop """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["circuit", "id", "metric", "nextHopAddress", "nexthop", "outgoingInterface", "thirdPartyIpsecTunnel"] model_config = ConfigDict( 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 8dda2fc5..1ad9dd32 100644 --- a/graphiant_sdk/models/mana_v2_static_route_nexthop_config.py +++ b/graphiant_sdk/models/mana_v2_static_route_nexthop_config.py @@ -27,11 +27,11 @@ class ManaV2StaticRouteNexthopConfig(BaseModel): """ ManaV2StaticRouteNexthopConfig """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["address", "circuit", "interface", "nextHopAddress", "thirdPartyIpsecTunnel"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_subnet.py b/graphiant_sdk/models/mana_v2_subnet.py index 8512960d..72b16d18 100644 --- a/graphiant_sdk/models/mana_v2_subnet.py +++ b/graphiant_sdk/models/mana_v2_subnet.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,8 +27,8 @@ class ManaV2Subnet(BaseModel): """ ManaV2Subnet """ # noqa: E501 - cidr: Optional[StrictStr] = None - id: Optional[StrictStr] = None + cidr: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["cidr", "id"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_syslog_collector.py b/graphiant_sdk/models/mana_v2_syslog_collector.py index 6af83502..7956f1e3 100644 --- a/graphiant_sdk/models/mana_v2_syslog_collector.py +++ b/graphiant_sdk/models/mana_v2_syslog_collector.py @@ -28,19 +28,19 @@ class ManaV2SyslogCollector(BaseModel): """ ManaV2SyslogCollector """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["destinationHost", "destinationPort", "enabled", "errorMessage", "globalId", "id", "name", "severity", "sourceInterface", "status", "transport", "vrfId", "vrfName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_syslog_collector_config.py b/graphiant_sdk/models/mana_v2_syslog_collector_config.py index 1f5aa0d0..d9c0b0ab 100644 --- a/graphiant_sdk/models/mana_v2_syslog_collector_config.py +++ b/graphiant_sdk/models/mana_v2_syslog_collector_config.py @@ -28,16 +28,16 @@ class ManaV2SyslogCollectorConfig(BaseModel): """ ManaV2SyslogCollectorConfig """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["enabled", "globalId", "host", "interfaceName", "isGlobalSync", "name", "port", "severity", "transport", "vrfId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_time_period.py b/graphiant_sdk/models/mana_v2_time_period.py index a148427d..04d25930 100644 --- a/graphiant_sdk/models/mana_v2_time_period.py +++ b/graphiant_sdk/models/mana_v2_time_period.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class ManaV2TimePeriod(BaseModel): """ ManaV2TimePeriod """ # noqa: E501 - month: Optional[StrictInt] = None - year: Optional[StrictInt] = None + month: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) + year: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["month", "year"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_action.py b/graphiant_sdk/models/mana_v2_traffic_policy_action.py index 99c3ef60..e5baa3da 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_action.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_action.py @@ -27,10 +27,10 @@ class ManaV2TrafficPolicyAction(BaseModel): """ ManaV2TrafficPolicyAction """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["backup", "class", "primary", "result"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_rule.py b/graphiant_sdk/models/mana_v2_traffic_policy_rule.py index 272f0bdc..5332bad5 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_rule.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_rule.py @@ -32,8 +32,8 @@ class ManaV2TrafficPolicyRule(BaseModel): """ # noqa: E501 action: Optional[ManaV2TrafficPolicyAction] = None match: Optional[ManaV2PolicyMatch] = None - policy_rule_index: Optional[StrictInt] = Field(default=None, alias="policyRuleIndex") - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = 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]}) __properties: ClassVar[List[str]] = ["action", "match", "policyRuleIndex", "seq"] model_config = ConfigDict( 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 5129ebbc..f9943918 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_rule_row.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_rule_row.py @@ -31,7 +31,7 @@ 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") + vrf_name: Optional[StrictStr] = Field(default=None, alias="vrfName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["device", "trafficPolicyRule", "vrfName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset.py b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset.py index c2dab0bb..5e52f1b0 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset.py @@ -29,14 +29,14 @@ class ManaV2TrafficPolicyRuleset(BaseModel): """ ManaV2TrafficPolicyRuleset """ # noqa: E501 - 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 + 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"]}) rules: Optional[List[ManaV2TrafficPolicyRulesetRule]] = None - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["description", "errorMessage", "globalId", "id", "index", "name", "rules", "status"] model_config = ConfigDict( 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 28693e9e..232f2c02 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_config.py @@ -28,10 +28,10 @@ class ManaV2TrafficPolicyRulesetConfig(BaseModel): """ ManaV2TrafficPolicyRulesetConfig """ # noqa: E501 - 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 + 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"]}) rules: Optional[Dict[str, ManaV2TrafficPolicyRulesetConfigNullableRule]] = None __properties: ClassVar[List[str]] = ["description", "globalId", "isGlobalSync", "name", "rules"] 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 820a7b11..6b4349f9 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 @@ -31,10 +31,10 @@ class ManaV2TrafficPolicyRulesetConfigNullableRuleRule(BaseModel): ManaV2TrafficPolicyRulesetConfigNullableRuleRule """ # noqa: E501 action: Optional[ManaV2TrafficPolicyRulesetConfigNullableRuleRuleAction] = None - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) match: Optional[ManaV2ForwardingPolicyMatchConfig] = None - name: Optional[StrictStr] = None - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = 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]}) __properties: ClassVar[List[str]] = ["action", "description", "match", "name", "seq"] model_config = ConfigDict( 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 477acb00..37b79318 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 @@ -33,8 +33,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] = None - logging: Optional[StrictBool] = None + 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[ManaV2NullableSetCircuitConfig] = Field(default=None, alias="primaryCircuit") primary_circuit_label: Optional[ManaV2NullableSetCircuitLabelConfig] = Field(default=None, alias="primaryCircuitLabel") remark: Optional[ManaV2NullableSetDscpConfig] = None 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 5eefdf9c..dff4724e 100644 --- a/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_rule.py +++ b/graphiant_sdk/models/mana_v2_traffic_policy_ruleset_rule.py @@ -31,12 +31,12 @@ class ManaV2TrafficPolicyRulesetRule(BaseModel): ManaV2TrafficPolicyRulesetRule """ # noqa: E501 action: Optional[ManaV2TrafficPolicyRulesetRuleAction] = None - description: Optional[StrictStr] = None - id: Optional[StrictInt] = None - index: Optional[Annotated[int, Field(strict=True, ge=0)]] = 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]}) match: Optional[ManaV2ForwardingPolicyMatch] = None - name: Optional[StrictStr] = None - seq: Optional[Annotated[int, Field(strict=True, ge=0)]] = 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]}) __properties: ClassVar[List[str]] = ["action", "description", "id", "index", "match", "name", "seq"] model_config = ConfigDict( 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 aff58d85..14b14ada 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 @@ -28,14 +28,14 @@ class ManaV2TrafficPolicyRulesetRuleAction(BaseModel): """ ManaV2TrafficPolicyRulesetRuleAction """ # noqa: E501 - 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") + 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"]}) remark: Optional[ManaV2Dscp] = None - sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass") + sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass", json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["backupCircuit", "backupCircuitLabel", "egress", "logging", "primaryCircuit", "primaryCircuitLabel", "remark", "slaClass"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_udp_flow_table.py b/graphiant_sdk/models/mana_v2_udp_flow_table.py index c0271d57..570ebe81 100644 --- a/graphiant_sdk/models/mana_v2_udp_flow_table.py +++ b/graphiant_sdk/models/mana_v2_udp_flow_table.py @@ -28,8 +28,8 @@ class ManaV2UdpFlowTable(BaseModel): """ ManaV2UdpFlowTable """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["expiry", "unidirectionalFlowLimit"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_vacm_group_config.py b/graphiant_sdk/models/mana_v2_vacm_group_config.py index e0c95099..417050c0 100644 --- a/graphiant_sdk/models/mana_v2_vacm_group_config.py +++ b/graphiant_sdk/models/mana_v2_vacm_group_config.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -31,7 +31,7 @@ class ManaV2VacmGroupConfig(BaseModel): """ # noqa: E501 accesses: Optional[Dict[str, ManaV2NullableSnmpVacmGroupAccessValue]] = None members: Optional[Dict[str, ManaV2NullableSnmpVacmGroupMemberValue]] = None - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["accesses", "members", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_vendor_detail.py b/graphiant_sdk/models/mana_v2_vendor_detail.py index bf3e364b..75021213 100644 --- a/graphiant_sdk/models/mana_v2_vendor_detail.py +++ b/graphiant_sdk/models/mana_v2_vendor_detail.py @@ -27,8 +27,8 @@ class ManaV2VendorDetail(BaseModel): """ ManaV2VendorDetail """ # noqa: E501 - name: Optional[StrictStr] = None - neighbor_count: Optional[StrictInt] = Field(default=None, alias="neighborCount") + 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]}) __properties: ClassVar[List[str]] = ["name", "neighborCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_version_metadata.py b/graphiant_sdk/models/mana_v2_version_metadata.py index 2d07c4ab..93541b3e 100644 --- a/graphiant_sdk/models/mana_v2_version_metadata.py +++ b/graphiant_sdk/models/mana_v2_version_metadata.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,9 +27,9 @@ class ManaV2VersionMetadata(BaseModel): """ ManaV2VersionMetadata """ # noqa: E501 - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None - version: Optional[StrictInt] = None + 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]}) __properties: ClassVar[List[str]] = ["id", "name", "version"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_vrf.py b/graphiant_sdk/models/mana_v2_vrf.py index 7413248c..60be167c 100644 --- a/graphiant_sdk/models/mana_v2_vrf.py +++ b/graphiant_sdk/models/mana_v2_vrf.py @@ -42,23 +42,23 @@ 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] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) dhcp_subnets: Optional[List[ManaV2DhcpServerPool]] = Field(default=None, alias="dhcpSubnets") - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") - function: Optional[StrictStr] = None - id: Optional[StrictInt] = None + 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]}) ipfix_exporters: Optional[List[ManaV2IpfixExporter]] = Field(default=None, alias="ipfixExporters") - name: Optional[StrictStr] = None - nat_ruleset: Optional[StrictStr] = Field(default=None, alias="natRuleset") + 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"]}) 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] = None - route_distinguisher: Optional[StrictStr] = Field(default=None, alias="routeDistinguisher") + 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"]}) 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") + traffic_ruleset: Optional[StrictStr] = Field(default=None, alias="trafficRuleset", json_schema_extra={"examples": ["example string"]}) __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( diff --git a/graphiant_sdk/models/mana_v2_vrrp_group.py b/graphiant_sdk/models/mana_v2_vrrp_group.py index 37797dee..9bd42799 100644 --- a/graphiant_sdk/models/mana_v2_vrrp_group.py +++ b/graphiant_sdk/models/mana_v2_vrrp_group.py @@ -29,20 +29,20 @@ class ManaV2VrrpGroup(BaseModel): """ ManaV2VrrpGroup """ # noqa: E501 - 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 + 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]}) group_members: Optional[List[ManaV2VRRPGroupMember]] = Field(default=None, alias="groupMembers") - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None - preempt: Optional[StrictBool] = None - priority: Optional[StrictInt] = None - state: Optional[StrictStr] = None + 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"]}) tracked_interfaces: Optional[List[ManaV2VRRPGroupInterfacePriorityDecrement]] = Field(default=None, alias="trackedInterfaces") - virtual_ip_address: Optional[StrictStr] = Field(default=None, alias="virtualIpAddress") - virtual_mac_address: Optional[StrictStr] = Field(default=None, alias="virtualMacAddress") + 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"]}) __properties: ClassVar[List[str]] = ["acceptMode", "allowInterOperability", "description", "effectivePriority", "enabled", "groupMembers", "id", "name", "preempt", "priority", "state", "trackedInterfaces", "virtualIpAddress", "virtualMacAddress"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_vrrp_group_config.py b/graphiant_sdk/models/mana_v2_vrrp_group_config.py index 98bc89d8..0400f086 100644 --- a/graphiant_sdk/models/mana_v2_vrrp_group_config.py +++ b/graphiant_sdk/models/mana_v2_vrrp_group_config.py @@ -29,15 +29,15 @@ class ManaV2VrrpGroupConfig(BaseModel): """ ManaV2VrrpGroupConfig """ # noqa: E501 - 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 + 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]}) tracked_interfaces: Optional[List[ManaV2NullableInterfacePriorityDecrement]] = Field(default=None, alias="trackedInterfaces") - 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") + 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]}) __properties: ClassVar[List[str]] = ["acceptMode", "allowInterOperability", "description", "enabled", "preempt", "priority", "trackedInterfaces", "virtualIp", "virtualRouterId"] model_config = ConfigDict( 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 662bd22c..add00351 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 @@ -28,8 +28,8 @@ class ManaV2VRRPGroupInterfacePriorityDecrement(BaseModel): """ ManaV2VRRPGroupInterfacePriorityDecrement """ # noqa: E501 - interface: Optional[StrictStr] = None - priority_decrement: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="priorityDecrement") + 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]}) __properties: ClassVar[List[str]] = ["interface", "priorityDecrement"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_vrrp_group_member.py b/graphiant_sdk/models/mana_v2_vrrp_group_member.py index ee54fc8b..bfbc6547 100644 --- a/graphiant_sdk/models/mana_v2_vrrp_group_member.py +++ b/graphiant_sdk/models/mana_v2_vrrp_group_member.py @@ -27,15 +27,15 @@ class ManaV2VRRPGroupMember(BaseModel): """ ManaV2VRRPGroupMember """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["circuit", "deviceId", "effectivePriority", "hostname", "interface", "lan", "localIpAddress", "priority", "state"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_zone.py b/graphiant_sdk/models/mana_v2_zone.py index 03ae2528..a84cc00f 100644 --- a/graphiant_sdk/models/mana_v2_zone.py +++ b/graphiant_sdk/models/mana_v2_zone.py @@ -27,9 +27,9 @@ class ManaV2Zone(BaseModel): """ ManaV2Zone """ # noqa: E501 - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["enterpriseId", "id", "name"] model_config = ConfigDict( 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 d29ffc43..2aecedab 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 @@ -28,9 +28,9 @@ class ManaV2ZoneFirewallIpPolicyConfig(BaseModel): """ ManaV2ZoneFirewallIpPolicyConfig """ # noqa: E501 - block_land_attacks: Optional[StrictBool] = Field(default=None, alias="blockLandAttacks") + block_land_attacks: Optional[StrictBool] = Field(default=None, alias="blockLandAttacks", json_schema_extra={"examples": [True]}) session_limit: Optional[ManaV2NullableSessionLimit] = Field(default=None, alias="sessionLimit") - urpf: Optional[StrictStr] = None + urpf: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["blockLandAttacks", "sessionLimit", "urpf"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2_zone_firewall_policy.py b/graphiant_sdk/models/mana_v2_zone_firewall_policy.py index 7aebac58..cb35d602 100644 --- a/graphiant_sdk/models/mana_v2_zone_firewall_policy.py +++ b/graphiant_sdk/models/mana_v2_zone_firewall_policy.py @@ -31,7 +31,7 @@ class ManaV2ZoneFirewallPolicy(BaseModel): """ # noqa: E501 ip: Optional[ManaV2IpFirewallPolicy] = None udp: Optional[ManaV2UdpFlowTable] = None - zone_name: Optional[StrictStr] = Field(default=None, alias="zoneName") + zone_name: Optional[StrictStr] = Field(default=None, alias="zoneName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["ip", "udp", "zoneName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/mana_v2device_snapshot_row.py b/graphiant_sdk/models/mana_v2device_snapshot_row.py index 4419b47d..bb23a300 100644 --- a/graphiant_sdk/models/mana_v2device_snapshot_row.py +++ b/graphiant_sdk/models/mana_v2device_snapshot_row.py @@ -30,11 +30,11 @@ class ManaV2deviceSnapshotRow(BaseModel): """ ManaV2deviceSnapshotRow """ # noqa: E501 - 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") + 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]}) snapshots: Optional[List[ManaV2DeviceSnapshot]] = None uptime: Optional[GoogleProtobufDuration] = None __properties: ClassVar[List[str]] = ["deviceId", "hostname", "region", "site", "snapshotCount", "snapshots", "uptime"] diff --git a/graphiant_sdk/models/mana_v2topology_device.py b/graphiant_sdk/models/mana_v2topology_device.py index 24f724cb..6d848dd8 100644 --- a/graphiant_sdk/models/mana_v2topology_device.py +++ b/graphiant_sdk/models/mana_v2topology_device.py @@ -29,20 +29,20 @@ class ManaV2topologyDevice(BaseModel): """ ManaV2topologyDevice """ # noqa: E501 - 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") + 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]}) uptime: Optional[GoogleProtobufDuration] = None - vrrp_interface: Optional[StrictStr] = Field(default=None, alias="vrrpInterface") - vrrp_state: Optional[StrictStr] = Field(default=None, alias="vrrpState") + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "hostname", "location", "maintenanceMode", "managementIp", "model", "role", "serialNumber", "siteId", "softwareVersion", "stagingMode", "uptime", "vrrpInterface", "vrrpState"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/onboarding_cloud_init_configuration.py b/graphiant_sdk/models/onboarding_cloud_init_configuration.py index f7436e6f..de4f49f0 100644 --- a/graphiant_sdk/models/onboarding_cloud_init_configuration.py +++ b/graphiant_sdk/models/onboarding_cloud_init_configuration.py @@ -28,11 +28,11 @@ class OnboardingCloudInitConfiguration(BaseModel): """ OnboardingCloudInitConfiguration """ # noqa: E501 - device_type: Optional[StrictStr] = Field(default=None, alias="deviceType") - dns_servers: Optional[StrictStr] = Field(default=None, alias="dnsServers") - hostname: Optional[StrictStr] = None + 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"]}) interfaces: Optional[List[OnboardingInterface]] = None - local_web_password: Optional[StrictStr] = Field(default=None, alias="localWebPassword") + local_web_password: Optional[StrictStr] = Field(default=None, alias="localWebPassword", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["deviceType", "dnsServers", "hostname", "interfaces", "localWebPassword"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/onboarding_cloud_init_token.py b/graphiant_sdk/models/onboarding_cloud_init_token.py index 8b5bccd8..52b861cd 100644 --- a/graphiant_sdk/models/onboarding_cloud_init_token.py +++ b/graphiant_sdk/models/onboarding_cloud_init_token.py @@ -30,10 +30,10 @@ class OnboardingCloudInitToken(BaseModel): OnboardingCloudInitToken """ # noqa: E501 cloudinit_config: Optional[OnboardingCloudInitConfiguration] = Field(default=None, alias="cloudinitConfig") - 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 + 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"]}) token: Optional[OnboardingCloudInitTokenToken] = None __properties: ClassVar[List[str]] = ["cloudinitConfig", "deviceId", "deviceSerial", "name", "role", "token"] diff --git a/graphiant_sdk/models/onboarding_cloud_init_token_token.py b/graphiant_sdk/models/onboarding_cloud_init_token_token.py index 1793541e..93cc7eae 100644 --- a/graphiant_sdk/models/onboarding_cloud_init_token_token.py +++ b/graphiant_sdk/models/onboarding_cloud_init_token_token.py @@ -30,7 +30,7 @@ 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] = None + token: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["createdByTs", "expiryByTs", "token"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/onboarding_hardware_inventory.py b/graphiant_sdk/models/onboarding_hardware_inventory.py index 5442c2e2..b062828c 100644 --- a/graphiant_sdk/models/onboarding_hardware_inventory.py +++ b/graphiant_sdk/models/onboarding_hardware_inventory.py @@ -30,20 +30,20 @@ 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") - 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 + 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"]}) __properties: ClassVar[List[str]] = ["assignedOn", "createdOn", "deviceModel", "deviceSerial", "ekCert", "enterpriseId", "enterpriseName", "gekPub", "isCore", "isNew", "isRequested", "parentEnterpriseId", "parentEnterpriseName", "role", "useOauth", "uuid"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/onboarding_interface.py b/graphiant_sdk/models/onboarding_interface.py index b287b140..839d2b60 100644 --- a/graphiant_sdk/models/onboarding_interface.py +++ b/graphiant_sdk/models/onboarding_interface.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.onboarding_ip import OnboardingIp from typing import Optional, Set @@ -30,8 +30,8 @@ class OnboardingInterface(BaseModel): """ # noqa: E501 ipv4: Optional[OnboardingIp] = None ipv6: Optional[OnboardingIp] = None - name: Optional[StrictStr] = None - type: Optional[StrictStr] = 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"]}) __properties: ClassVar[List[str]] = ["ipv4", "ipv6", "name", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/onboarding_ip.py b/graphiant_sdk/models/onboarding_ip.py index 49f4bf2d..ac96b2fb 100644 --- a/graphiant_sdk/models/onboarding_ip.py +++ b/graphiant_sdk/models/onboarding_ip.py @@ -27,9 +27,9 @@ class OnboardingIp(BaseModel): """ OnboardingIp """ # noqa: E501 - gateway_addr: Optional[StrictStr] = Field(default=None, alias="gatewayAddr") - ip_addr: Optional[StrictStr] = Field(default=None, alias="ipAddr") - type: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["gatewayAddr", "ipAddr", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/onboarding_onboarding_summary.py b/graphiant_sdk/models/onboarding_onboarding_summary.py index 3c1c3a7b..79fb7600 100644 --- a/graphiant_sdk/models/onboarding_onboarding_summary.py +++ b/graphiant_sdk/models/onboarding_onboarding_summary.py @@ -29,13 +29,13 @@ class OnboardingOnboardingSummary(BaseModel): """ OnboardingOnboardingSummary """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") - discovered_location: Optional[StrictStr] = Field(default=None, alias="discoveredLocation") + 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"]}) first_appeared_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="firstAppearedOn") - 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 + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "discoveredLocation", "firstAppearedOn", "ipDetected", "isNew", "state", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/pokedex_device_history_info.py b/graphiant_sdk/models/pokedex_device_history_info.py index 0bb12864..6ad052c2 100644 --- a/graphiant_sdk/models/pokedex_device_history_info.py +++ b/graphiant_sdk/models/pokedex_device_history_info.py @@ -29,12 +29,12 @@ class PokedexDeviceHistoryInfo(BaseModel): """ PokedexDeviceHistoryInfo """ # noqa: E501 - 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 + 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"]}) event_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="eventTime") - ipaddress: Optional[StrictStr] = None - tt_identity: Optional[StrictStr] = Field(default=None, alias="ttIdentity") + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "enterpriseId", "event", "eventTime", "ipaddress", "ttIdentity"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/pokedex_device_mapping_info.py b/graphiant_sdk/models/pokedex_device_mapping_info.py index e1bf79e6..d140e3ab 100644 --- a/graphiant_sdk/models/pokedex_device_mapping_info.py +++ b/graphiant_sdk/models/pokedex_device_mapping_info.py @@ -30,11 +30,11 @@ 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") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["connectTime", "deviceId", "enterpriseId", "hostname", "ipaddress", "ttIdentity"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routing_afi_route_count.py b/graphiant_sdk/models/routing_afi_route_count.py index 2be68589..90a360c8 100644 --- a/graphiant_sdk/models/routing_afi_route_count.py +++ b/graphiant_sdk/models/routing_afi_route_count.py @@ -27,8 +27,8 @@ class RoutingAfiRouteCount(BaseModel): """ RoutingAfiRouteCount """ # noqa: E501 - ipv4: Optional[StrictInt] = Field(default=None, description="IPv4 route count") - ipv6: Optional[StrictInt] = Field(default=None, description="IPv6 route count") + 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]}) __properties: ClassVar[List[str]] = ["ipv4", "ipv6"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routing_arp_entry.py b/graphiant_sdk/models/routing_arp_entry.py index b9f7966c..f54f8cd2 100644 --- a/graphiant_sdk/models/routing_arp_entry.py +++ b/graphiant_sdk/models/routing_arp_entry.py @@ -27,10 +27,10 @@ class RoutingArpEntry(BaseModel): """ RoutingArpEntry """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["interfaceName", "ipv4Address", "macAddress", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routing_ospf_interface.py b/graphiant_sdk/models/routing_ospf_interface.py index c2d74222..36990347 100644 --- a/graphiant_sdk/models/routing_ospf_interface.py +++ b/graphiant_sdk/models/routing_ospf_interface.py @@ -27,16 +27,16 @@ class RoutingOspfInterface(BaseModel): """ RoutingOspfInterface """ # noqa: E501 - 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)") + 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"]}) neighbors: Optional[List[StrictStr]] = None - state: Optional[StrictStr] = Field(default=None, description="interface state (required)") - wait_timer: Optional[StrictStr] = Field(default=None, description="Timer in seconds (required)", alias="waitTimer") + 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"]}) __properties: ClassVar[List[str]] = ["bdrIpAddr", "bdrRouterId", "drIpAddr", "drRouterId", "helloInterval", "helloTimer", "name", "neighbors", "state", "waitTimer"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routing_ospf_nbr.py b/graphiant_sdk/models/routing_ospf_nbr.py index 9ea99ec2..31c1d1b7 100644 --- a/graphiant_sdk/models/routing_ospf_nbr.py +++ b/graphiant_sdk/models/routing_ospf_nbr.py @@ -29,12 +29,12 @@ class RoutingOspfNbr(BaseModel): """ RoutingOspfNbr """ # noqa: E501 - 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") + 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]}) last_state_change: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastStateChange") - router_id: Optional[StrictStr] = Field(default=None, description="Router ID (required)", alias="routerId") - state: Optional[StrictStr] = Field(default=None, description="interface state (required)") + 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"]}) __properties: ClassVar[List[str]] = ["address", "cost", "deadTimer", "lastStateChange", "routerId", "state"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routing_ospf_network_lsa.py b/graphiant_sdk/models/routing_ospf_network_lsa.py index 8481483f..3eeec952 100644 --- a/graphiant_sdk/models/routing_ospf_network_lsa.py +++ b/graphiant_sdk/models/routing_ospf_network_lsa.py @@ -29,7 +29,7 @@ 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") + network_mask: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="networkMask", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["attachedRouters", "networkMask"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routing_ospf_next_hop.py b/graphiant_sdk/models/routing_ospf_next_hop.py index a00a6cac..2ef06649 100644 --- a/graphiant_sdk/models/routing_ospf_next_hop.py +++ b/graphiant_sdk/models/routing_ospf_next_hop.py @@ -29,12 +29,12 @@ class RoutingOspfNextHop(BaseModel): """ RoutingOspfNextHop """ # noqa: E501 - egress_interface: Optional[StrictStr] = Field(default=None, description="Interface name (required)", alias="egressInterface") + egress_interface: Optional[StrictStr] = Field(default=None, description="Interface name (required)", alias="egressInterface", json_schema_extra={"examples": ["ATTInterface"]}) 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)") - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["egressInterface", "lastModified", "metric", "nextHop", "tag", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routing_ospf_route.py b/graphiant_sdk/models/routing_ospf_route.py index 8011988b..af77885c 100644 --- a/graphiant_sdk/models/routing_ospf_route.py +++ b/graphiant_sdk/models/routing_ospf_route.py @@ -28,7 +28,7 @@ class RoutingOspfRoute(BaseModel): """ RoutingOspfRoute """ # noqa: E501 - ip_prefix: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 Prefix (required)", alias="ipPrefix") + ip_prefix: Optional[StrictStr] = Field(default=None, description="IPv4 or IPv6 Prefix (required)", alias="ipPrefix", json_schema_extra={"examples": ["131.1.0.0/16"]}) path: Optional[List[RoutingOspfNextHop]] = None __properties: ClassVar[List[str]] = ["ipPrefix", "path"] diff --git a/graphiant_sdk/models/routing_ospf_router_lsa_link.py b/graphiant_sdk/models/routing_ospf_router_lsa_link.py index 7ab3e907..e61f0432 100644 --- a/graphiant_sdk/models/routing_ospf_router_lsa_link.py +++ b/graphiant_sdk/models/routing_ospf_router_lsa_link.py @@ -29,10 +29,10 @@ class RoutingOspfRouterLsaLink(BaseModel): """ RoutingOspfRouterLsaLink """ # noqa: E501 - 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 + 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]}) tos_metric: Optional[RoutingOspflsaTosMetric] = Field(default=None, alias="tosMetric") __properties: ClassVar[List[str]] = ["linkData", "linkId", "linkType", "metric", "tosMetric"] diff --git a/graphiant_sdk/models/routing_ospf_statistics.py b/graphiant_sdk/models/routing_ospf_statistics.py index 683f400e..eb539098 100644 --- a/graphiant_sdk/models/routing_ospf_statistics.py +++ b/graphiant_sdk/models/routing_ospf_statistics.py @@ -28,8 +28,8 @@ class RoutingOspfStatistics(BaseModel): """ RoutingOspfStatistics """ # noqa: E501 - discontinuity_time: Optional[StrictStr] = Field(default=None, alias="discontinuityTime") - route_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="routeCount") + 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]}) __properties: ClassVar[List[str]] = ["discontinuityTime", "routeCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routing_ospf_summary_lsa.py b/graphiant_sdk/models/routing_ospf_summary_lsa.py index 15931a62..353b3c85 100644 --- a/graphiant_sdk/models/routing_ospf_summary_lsa.py +++ b/graphiant_sdk/models/routing_ospf_summary_lsa.py @@ -29,7 +29,7 @@ class RoutingOspfSummaryLsa(BaseModel): """ RoutingOspfSummaryLsa """ # noqa: E501 - network_mask: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="networkMask") + network_mask: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="networkMask", json_schema_extra={"examples": [123]}) tos_metric: Optional[RoutingOspflsaTosMetric] = Field(default=None, alias="tosMetric") __properties: ClassVar[List[str]] = ["networkMask", "tosMetric"] diff --git a/graphiant_sdk/models/routing_ospfas_external_lsa.py b/graphiant_sdk/models/routing_ospfas_external_lsa.py index 21e088b1..5c73b0f1 100644 --- a/graphiant_sdk/models/routing_ospfas_external_lsa.py +++ b/graphiant_sdk/models/routing_ospfas_external_lsa.py @@ -29,11 +29,11 @@ class RoutingOspfasExternalLsa(BaseModel): """ RoutingOspfasExternalLsa """ # noqa: E501 - 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 + 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]}) tos_metric: Optional[RoutingOspflsaTosMetric] = Field(default=None, alias="tosMetric") __properties: ClassVar[List[str]] = ["forwardingAddress", "metric", "metricType", "networkMask", "tag", "tosMetric"] diff --git a/graphiant_sdk/models/routing_ospflsa.py b/graphiant_sdk/models/routing_ospflsa.py index 4951c2f9..97dac5dd 100644 --- a/graphiant_sdk/models/routing_ospflsa.py +++ b/graphiant_sdk/models/routing_ospflsa.py @@ -32,17 +32,17 @@ class RoutingOspflsa(BaseModel): """ RoutingOspflsa """ # noqa: E501 - 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)") + 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]}) 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)") - 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") + 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"]}) 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") + sequence_number: Optional[StrictStr] = Field(default=None, description="LSA sequence number (required)", alias="sequenceNumber", json_schema_extra={"examples": ["0x80000001"]}) summary_lsa: Optional[RoutingOspfSummaryLsa] = Field(default=None, alias="summaryLsa") - type: Optional[StrictStr] = Field(default=None, description="Type of LSA (required)") + type: Optional[StrictStr] = Field(default=None, description="Type of LSA (required)", json_schema_extra={"examples": ["Router"]}) __properties: ClassVar[List[str]] = ["advertisingRouter", "age", "asexternalLsa", "checksum", "length", "linkId", "networkLsa", "routerLsa", "sequenceNumber", "summaryLsa", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routing_ospflsa_tos_metric.py b/graphiant_sdk/models/routing_ospflsa_tos_metric.py index bf9f9b6c..18565856 100644 --- a/graphiant_sdk/models/routing_ospflsa_tos_metric.py +++ b/graphiant_sdk/models/routing_ospflsa_tos_metric.py @@ -28,8 +28,8 @@ class RoutingOspflsaTosMetric(BaseModel): """ RoutingOspflsaTosMetric """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["tos", "tosMetric"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routing_prefix_filter.py b/graphiant_sdk/models/routing_prefix_filter.py index 75dd6440..84e8dc55 100644 --- a/graphiant_sdk/models/routing_prefix_filter.py +++ b/graphiant_sdk/models/routing_prefix_filter.py @@ -28,13 +28,13 @@ 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") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["asPath", "extCommunity", "interfaceName", "nextHop", "prefix", "rd", "srcProto", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routing_vrrp_entry.py b/graphiant_sdk/models/routing_vrrp_entry.py index 1ad879ea..71183b8c 100644 --- a/graphiant_sdk/models/routing_vrrp_entry.py +++ b/graphiant_sdk/models/routing_vrrp_entry.py @@ -28,17 +28,17 @@ class RoutingVrrpEntry(BaseModel): """ RoutingVrrpEntry """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["addressFamily", "advertisementRcvd", "advertisementSent", "effectivePriority", "groupId", "isOwner", "masterTransition", "newMasterReason", "priorityZeroPktsRcvd", "priorityZeroPktsSent", "state"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routingbgp_counter.py b/graphiant_sdk/models/routingbgp_counter.py index fa75e7b6..04fd8770 100644 --- a/graphiant_sdk/models/routingbgp_counter.py +++ b/graphiant_sdk/models/routingbgp_counter.py @@ -28,12 +28,12 @@ class RoutingbgpCounter(BaseModel): """ RoutingbgpCounter """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["gracefulRestart", "localAsNumber", "localIpAddress", "localRouterId", "peerRouterId", "upTime"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/routingprefix.py b/graphiant_sdk/models/routingprefix.py index a9962541..1aa9d9c4 100644 --- a/graphiant_sdk/models/routingprefix.py +++ b/graphiant_sdk/models/routingprefix.py @@ -28,9 +28,9 @@ class Routingprefix(BaseModel): """ Routingprefix """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["afiSafiName", "prefixRcvd", "prefixSent"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/search_edge_summary.py b/graphiant_sdk/models/search_edge_summary.py index 11c8f486..3bb1ef82 100644 --- a/graphiant_sdk/models/search_edge_summary.py +++ b/graphiant_sdk/models/search_edge_summary.py @@ -32,36 +32,37 @@ class SearchEdgeSummary(BaseModel): SearchEdgeSummary """ # noqa: E501 assigned_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="assignedOn") - canary_mode: Optional[StrictStr] = Field(default=None, alias="canaryMode") + canary_mode: Optional[StrictStr] = Field(default=None, alias="canaryMode", json_schema_extra={"examples": ["ENUM_VALUE"]}) connected_regions: Optional[List[StrictStr]] = Field(default=None, alias="connectedRegions") - 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") + 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"]}) first_appeared_on: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="firstAppearedOn") - 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") + 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"]}) last_booted_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastBootedAt") location: Optional[ManaV2Location] = None - 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") + 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]}) 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", "lastBootedAt", "location", "model", "overrideRegion", "parentEnterpriseName", "portalStatus", "region", "role", "serialNum", "site", "siteId", "stale", "status", "swName", "swVersion", "ttConnCount", "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, @@ -142,6 +143,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isHardware": obj.get("isHardware"), "isNew": obj.get("isNew"), "isRequested": obj.get("isRequested"), + "isRequestedStatus": obj.get("isRequestedStatus"), "lastBootedAt": GoogleProtobufTimestamp.from_dict(obj["lastBootedAt"]) if obj.get("lastBootedAt") is not None else None, "location": ManaV2Location.from_dict(obj["location"]) if obj.get("location") is not None else None, "model": obj.get("model"), diff --git a/graphiant_sdk/models/search_search_filter.py b/graphiant_sdk/models/search_search_filter.py index e0520a87..402cb07d 100644 --- a/graphiant_sdk/models/search_search_filter.py +++ b/graphiant_sdk/models/search_search_filter.py @@ -27,9 +27,9 @@ class SearchSearchFilter(BaseModel): """ SearchSearchFilter """ # noqa: E501 - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["role", "siteName", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/search_search_result.py b/graphiant_sdk/models/search_search_result.py index b5b554bc..cc91a76a 100644 --- a/graphiant_sdk/models/search_search_result.py +++ b/graphiant_sdk/models/search_search_result.py @@ -28,9 +28,9 @@ class SearchSearchResult(BaseModel): """ SearchSearchResult """ # noqa: E501 - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["context", "id", "result"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_backbonehealth_control_plane.py b/graphiant_sdk/models/statsmon_backbonehealth_control_plane.py index 3010c011..e94315a2 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_control_plane.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_control_plane.py @@ -30,7 +30,7 @@ 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] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["controlTransitions", "managementTransitions", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_backbonehealth_data_plane.py b/graphiant_sdk/models/statsmon_backbonehealth_data_plane.py index 49bd0b54..f71d69cc 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_data_plane.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_data_plane.py @@ -31,7 +31,7 @@ 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] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["downTransitions", "sessionSlas", "status"] model_config = ConfigDict( 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 2c39cb52..c5408193 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 @@ -28,8 +28,8 @@ class StatsmonBackbonehealthGetQOEMatrixResponseDevicesSummary(BaseModel): """ StatsmonBackbonehealthGetQOEMatrixResponseDevicesSummary """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + 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"]}) region: Optional[StatsmonTroubleshootingRegion] = None __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "region"] 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 bb5a329d..99c498a9 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 @@ -30,11 +30,11 @@ class StatsmonBackbonehealthGetQOEMatrixResponseQoeSessionSummary(BaseModel): StatsmonBackbonehealthGetQOEMatrixResponseQoeSessionSummary """ # noqa: E501 box: Optional[List[StatsmonBackbonehealthGetQOEMatrixResponseQoeSessionSummaryQoeSessionBox]] = None - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) device_region: Optional[StatsmonTroubleshootingRegion] = Field(default=None, alias="deviceRegion") - peer_device_id: Optional[StrictInt] = Field(default=None, alias="peerDeviceId") + peer_device_id: Optional[StrictInt] = Field(default=None, alias="peerDeviceId", json_schema_extra={"examples": [1234567891011]}) peer_device_region: Optional[StatsmonTroubleshootingRegion] = Field(default=None, alias="peerDeviceRegion") - session_name: Optional[StrictStr] = Field(default=None, alias="sessionName") + session_name: Optional[StrictStr] = Field(default=None, alias="sessionName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["box", "deviceId", "deviceRegion", "peerDeviceId", "peerDeviceRegion", "sessionName"] model_config = ConfigDict( 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 82d53781..0666e7d0 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 @@ -28,13 +28,13 @@ class StatsmonBackbonehealthGetQOEMatrixResponseQoeSessionSummaryQoeSessionBox(B """ StatsmonBackbonehealthGetQOEMatrixResponseQoeSessionSummaryQoeSessionBox """ # noqa: E501 - delay_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="delayValue") + delay_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="delayValue", json_schema_extra={"examples": [123.45]}) end_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="endTime") - jitter_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="jitterValue") - loss_value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="lossValue") + 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]}) start_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTime") - status: Optional[StrictStr] = None - value: Optional[Union[StrictFloat, StrictInt]] = None + 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]}) __properties: ClassVar[List[str]] = ["delayValue", "endTime", "jitterValue", "lossValue", "startTime", "status", "value"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_backbonehealth_system_plane.py b/graphiant_sdk/models/statsmon_backbonehealth_system_plane.py index deedc9c5..68a30c20 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_system_plane.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_system_plane.py @@ -39,7 +39,7 @@ 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] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) temperature_series: Optional[List[StatsmonTroubleshootingSystemStat]] = Field(default=None, alias="temperatureSeries") __properties: ClassVar[List[str]] = ["cpu", "crashes", "disk", "lastCrash", "maintenanceWindows", "memory", "overheating", "status", "temperatureSeries"] diff --git a/graphiant_sdk/models/statsmon_backbonehealth_transitions.py b/graphiant_sdk/models/statsmon_backbonehealth_transitions.py index 159e249f..4966ddda 100644 --- a/graphiant_sdk/models/statsmon_backbonehealth_transitions.py +++ b/graphiant_sdk/models/statsmon_backbonehealth_transitions.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.statsmon_troubleshooting_system_stat import StatsmonTroubleshootingSystemStat from typing import Optional, Set @@ -28,7 +28,7 @@ class StatsmonBackbonehealthTransitions(BaseModel): """ StatsmonBackbonehealthTransitions """ # noqa: E501 - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) transitions: Optional[List[StatsmonTroubleshootingSystemStat]] = None __properties: ClassVar[List[str]] = ["name", "transitions"] 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 a6757108..279fb6bb 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 @@ -34,11 +34,11 @@ 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["bwusageRoleSummary", "bwusageTopRegions", "minTime", "percentChanged", "providerCount", "regionCount", "siteCount", "usageKbps"] model_config = ConfigDict( 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 521d6565..363b6348 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_region.py @@ -28,10 +28,10 @@ class StatsmonBandwidthtrackerBwUsageByRegion(BaseModel): """ StatsmonBandwidthtrackerBwUsageByRegion """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["regionId", "regionName", "siteCount", "usageKbps"] model_config = ConfigDict( 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 df103d25..763e2b1c 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 @@ -30,10 +30,10 @@ 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["bwusageTopSites", "edgeusageKbps", "percentChanged", "siteCount", "totusageKbps"] model_config = ConfigDict( 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 5ad24386..3b0cb508 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 @@ -28,9 +28,9 @@ class StatsmonBandwidthtrackerBwUsageByRoleSummary(BaseModel): """ StatsmonBandwidthtrackerBwUsageByRoleSummary """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["roleId", "roleName", "usageKbps"] model_config = ConfigDict( 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 e88ec034..213ed62e 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_by_site.py @@ -28,12 +28,12 @@ class StatsmonBandwidthtrackerBwUsageBySite(BaseModel): """ StatsmonBandwidthtrackerBwUsageBySite """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["edgeCount", "locationId", "locationName", "siteId", "siteName", "usageKbps"] model_config = ConfigDict( 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 979f99fe..8164f564 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 @@ -28,11 +28,11 @@ class StatsmonBandwidthtrackerBwUsageBySiteEdgeProvider(BaseModel): """ StatsmonBandwidthtrackerBwUsageBySiteEdgeProvider """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "providerId", "providerName", "usageKbps"] model_config = ConfigDict( 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 dc43de1d..95e3ef5f 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 @@ -28,9 +28,9 @@ class StatsmonBandwidthtrackerBwUsageBySiteProvider(BaseModel): """ StatsmonBandwidthtrackerBwUsageBySiteProvider """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["providerId", "providerName", "usageKbps"] model_config = ConfigDict( 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 0bf554cb..ed69e123 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 @@ -30,9 +30,9 @@ 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["bwuageRegion", "edgeCount", "providerCount", "usageKbps"] model_config = ConfigDict( 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 a25c1caf..5e0f22d1 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 @@ -30,8 +30,8 @@ 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") - region_name: Optional[StrictStr] = Field(default=None, alias="regionName") + 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"]}) __properties: ClassVar[List[str]] = ["bwusageRoleSummary", "regionId", "regionName"] model_config = ConfigDict( 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 9b85faf0..becce45f 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 @@ -28,9 +28,9 @@ class StatsmonBandwidthtrackerBwUsageByTopSites(BaseModel): """ StatsmonBandwidthtrackerBwUsageByTopSites """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["siteId", "siteName", "usageKbps"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart.py b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart.py index fb47c7a1..87262d26 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart.py @@ -29,7 +29,7 @@ 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") + percentile_usage_kbps: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="percentileUsageKbps", json_schema_extra={"examples": [123.45]}) __properties: ClassVar[List[str]] = ["bwusageChart", "percentileUsageKbps"] model_config = ConfigDict( 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 2bf48f96..333150d6 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart_value.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_chart_value.py @@ -29,9 +29,9 @@ class StatsmonBandwidthtrackerBwUsageChartValue(BaseModel): """ StatsmonBandwidthtrackerBwUsageChartValue """ # noqa: E501 - 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") + 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]}) start_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTime") __properties: ClassVar[List[str]] = ["avgValue", "duration", "maxValue", "startTime"] 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 d10d948f..e24c4875 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_csv_record.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_bw_usage_csv_record.py @@ -28,13 +28,13 @@ class StatsmonBandwidthtrackerBwUsageCsvRecord(BaseModel): """ StatsmonBandwidthtrackerBwUsageCsvRecord """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["cloudProviderName", "deviceId", "enterpriseId", "regionName", "serviceType", "siteId", "usageKbps"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_bandwidthtracker_time_window.py b/graphiant_sdk/models/statsmon_bandwidthtracker_time_window.py index 440820df..7c99cb26 100644 --- a/graphiant_sdk/models/statsmon_bandwidthtracker_time_window.py +++ b/graphiant_sdk/models/statsmon_bandwidthtracker_time_window.py @@ -29,7 +29,7 @@ class StatsmonBandwidthtrackerTimeWindow(BaseModel): """ StatsmonBandwidthtrackerTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) 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"] diff --git a/graphiant_sdk/models/statsmon_circuit_incidents.py b/graphiant_sdk/models/statsmon_circuit_incidents.py index 08d7959f..a99d07b9 100644 --- a/graphiant_sdk/models/statsmon_circuit_incidents.py +++ b/graphiant_sdk/models/statsmon_circuit_incidents.py @@ -28,8 +28,8 @@ class StatsmonCircuitIncidents(BaseModel): """ StatsmonCircuitIncidents """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["numFairIncidents", "numPoorIncidents"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_circuits_incidents.py b/graphiant_sdk/models/statsmon_circuits_incidents.py index 05757180..004da142 100644 --- a/graphiant_sdk/models/statsmon_circuits_incidents.py +++ b/graphiant_sdk/models/statsmon_circuits_incidents.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.statsmon_circuits_incidents_data import StatsmonCircuitsIncidentsData from typing import Optional, Set @@ -29,7 +29,7 @@ class StatsmonCircuitsIncidents(BaseModel): StatsmonCircuitsIncidents """ # noqa: E501 data: Optional[List[StatsmonCircuitsIncidentsData]] = None - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["data", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_circuits_incidents_data.py b/graphiant_sdk/models/statsmon_circuits_incidents_data.py index 889ca303..20b85eaf 100644 --- a/graphiant_sdk/models/statsmon_circuits_incidents_data.py +++ b/graphiant_sdk/models/statsmon_circuits_incidents_data.py @@ -30,7 +30,7 @@ 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") + 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"]}) total_incidents: Optional[StatsmonCircuitIncidents] = Field(default=None, alias="totalIncidents") ts: Optional[GoogleProtobufTimestamp] = None ul_incidents: Optional[StatsmonCircuitIncidents] = Field(default=None, alias="ulIncidents") diff --git a/graphiant_sdk/models/statsmon_extranet_edge_status.py b/graphiant_sdk/models/statsmon_extranet_edge_status.py index 82278542..33d1ae17 100644 --- a/graphiant_sdk/models/statsmon_extranet_edge_status.py +++ b/graphiant_sdk/models/statsmon_extranet_edge_status.py @@ -29,11 +29,11 @@ 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") - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["createdAt", "disconnectedReason", "hostname", "id", "siteName", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_extranet_prefix_health.py b/graphiant_sdk/models/statsmon_extranet_prefix_health.py index 5e66986b..f21aaa8c 100644 --- a/graphiant_sdk/models/statsmon_extranet_prefix_health.py +++ b/graphiant_sdk/models/statsmon_extranet_prefix_health.py @@ -27,7 +27,7 @@ class StatsmonExtranetPrefixHealth(BaseModel): """ StatsmonExtranetPrefixHealth """ # noqa: E501 - health: Optional[StrictStr] = Field(default=None, description="the health status of the prefix (Healthy, Impaired, Down)") + health: Optional[StrictStr] = Field(default=None, description="the health status of the prefix (Healthy, Impaired, Down)", json_schema_extra={"examples": ["Impaired"]}) missing_prefixes: Optional[List[StrictStr]] = Field(default=None, alias="missingPrefixes") __properties: ClassVar[List[str]] = ["health", "missingPrefixes"] diff --git a/graphiant_sdk/models/statsmon_extranet_server_status.py b/graphiant_sdk/models/statsmon_extranet_server_status.py index 93d66818..bd10c7dd 100644 --- a/graphiant_sdk/models/statsmon_extranet_server_status.py +++ b/graphiant_sdk/models/statsmon_extranet_server_status.py @@ -27,8 +27,8 @@ class StatsmonExtranetServerStatus(BaseModel): """ StatsmonExtranetServerStatus """ # noqa: E501 - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["address", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_extranet_service_health.py b/graphiant_sdk/models/statsmon_extranet_service_health.py index af6407e7..479667f6 100644 --- a/graphiant_sdk/models/statsmon_extranet_service_health.py +++ b/graphiant_sdk/models/statsmon_extranet_service_health.py @@ -28,9 +28,9 @@ class StatsmonExtranetServiceHealth(BaseModel): """ StatsmonExtranetServiceHealth """ # noqa: E501 - customer_name: Optional[StrictStr] = Field(default=None, description="the name of the customer", alias="customerName") + customer_name: Optional[StrictStr] = Field(default=None, description="the name of the customer", alias="customerName", json_schema_extra={"examples": ["Customer 1"]}) 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") + 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"]}) producer_prefix_health: Optional[StatsmonExtranetPrefixHealth] = Field(default=None, alias="producerPrefixHealth") __properties: ClassVar[List[str]] = ["customerName", "customerPrefixHealth", "overallHealth", "producerPrefixHealth"] diff --git a/graphiant_sdk/models/statsmon_extranet_site_status.py b/graphiant_sdk/models/statsmon_extranet_site_status.py index 2433c545..abb4ef51 100644 --- a/graphiant_sdk/models/statsmon_extranet_site_status.py +++ b/graphiant_sdk/models/statsmon_extranet_site_status.py @@ -28,9 +28,9 @@ class StatsmonExtranetSiteStatus(BaseModel): """ StatsmonExtranetSiteStatus """ # noqa: E501 - 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)") + 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"]}) statuses: Optional[List[StatsmonExtranetServerStatus]] = None __properties: ClassVar[List[str]] = ["id", "name", "status", "statuses"] diff --git a/graphiant_sdk/models/statsmon_time_window.py b/graphiant_sdk/models/statsmon_time_window.py index a34b6e4c..8196db2f 100644 --- a/graphiant_sdk/models/statsmon_time_window.py +++ b/graphiant_sdk/models/statsmon_time_window.py @@ -29,7 +29,7 @@ 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") + 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]}) 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"] diff --git a/graphiant_sdk/models/statsmon_troubleshooting_circuit_filter.py b/graphiant_sdk/models/statsmon_troubleshooting_circuit_filter.py index 9bc35609..c325dc8b 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_circuit_filter.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_circuit_filter.py @@ -27,7 +27,7 @@ class StatsmonTroubleshootingCircuitFilter(BaseModel): """ StatsmonTroubleshootingCircuitFilter """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["circuitName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_troubleshooting_control_plane.py b/graphiant_sdk/models/statsmon_troubleshooting_control_plane.py index a4a6bed7..7829a4d2 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_control_plane.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_control_plane.py @@ -30,7 +30,7 @@ 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] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["controlTransitions", "managementTransitions", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_troubleshooting_data_plane.py b/graphiant_sdk/models/statsmon_troubleshooting_data_plane.py index 3707c235..b408c188 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_data_plane.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_data_plane.py @@ -31,7 +31,7 @@ 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] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["downTransitions", "sessionSlas", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_troubleshooting_device_filter.py b/graphiant_sdk/models/statsmon_troubleshooting_device_filter.py index c8197f85..79fded46 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_device_filter.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_device_filter.py @@ -27,8 +27,8 @@ class StatsmonTroubleshootingDeviceFilter(BaseModel): """ StatsmonTroubleshootingDeviceFilter """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "deviceName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_troubleshooting_edge_status.py b/graphiant_sdk/models/statsmon_troubleshooting_edge_status.py index b7b5c07c..27fdba3a 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_edge_status.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_edge_status.py @@ -27,9 +27,9 @@ class StatsmonTroubleshootingEdgeStatus(BaseModel): """ StatsmonTroubleshootingEdgeStatus """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "deviceStatus"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_troubleshooting_issue.py b/graphiant_sdk/models/statsmon_troubleshooting_issue.py index 76558d36..ba5a9acc 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_issue.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_issue.py @@ -28,19 +28,19 @@ class StatsmonTroubleshootingIssue(BaseModel): """ StatsmonTroubleshootingIssue """ # noqa: E501 - alert_id: Optional[StrictStr] = Field(default=None, alias="alertId") - allow_listed: Optional[StrictBool] = Field(default=None, alias="allowListed") - component: Optional[StrictStr] = None + 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"]}) end_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="endTime") - 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 + 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"]}) start_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="startTime") - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["alertId", "allowListed", "component", "endTime", "entity", "issue", "muteListed", "notificationCreated", "plane", "reason", "severity", "startTime", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_troubleshooting_lan_segment_filter.py b/graphiant_sdk/models/statsmon_troubleshooting_lan_segment_filter.py index 8875b40c..860f6d39 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_lan_segment_filter.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_lan_segment_filter.py @@ -27,7 +27,7 @@ class StatsmonTroubleshootingLanSegmentFilter(BaseModel): """ StatsmonTroubleshootingLanSegmentFilter """ # noqa: E501 - lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment") + lan_segment: Optional[StrictStr] = Field(default=None, alias="lanSegment", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["lanSegment"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_troubleshooting_last_crash.py b/graphiant_sdk/models/statsmon_troubleshooting_last_crash.py index f3acf05c..e0b12c4f 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_last_crash.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_last_crash.py @@ -28,8 +28,8 @@ class StatsmonTroubleshootingLastCrash(BaseModel): """ StatsmonTroubleshootingLastCrash """ # noqa: E501 - crash_details: Optional[StrictStr] = Field(default=None, alias="crashDetails") - reason: Optional[StrictStr] = None + 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"]}) up_since_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="upSinceTs") __properties: ClassVar[List[str]] = ["crashDetails", "reason", "upSinceTs"] diff --git a/graphiant_sdk/models/statsmon_troubleshooting_region.py b/graphiant_sdk/models/statsmon_troubleshooting_region.py index 613938ed..5143876a 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_region.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_region.py @@ -27,8 +27,8 @@ class StatsmonTroubleshootingRegion(BaseModel): """ StatsmonTroubleshootingRegion """ # noqa: E501 - region_id: Optional[StrictInt] = Field(default=None, alias="regionId") - region_name: Optional[StrictStr] = Field(default=None, alias="regionName") + 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"]}) __properties: ClassVar[List[str]] = ["regionId", "regionName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_troubleshooting_session_sla.py b/graphiant_sdk/models/statsmon_troubleshooting_session_sla.py index 087611b7..447cac34 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_session_sla.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_session_sla.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.statsmon_troubleshooting_sla_value import StatsmonTroubleshootingSlaValue from typing import Optional, Set @@ -28,7 +28,7 @@ class StatsmonTroubleshootingSessionSla(BaseModel): """ StatsmonTroubleshootingSessionSla """ # noqa: E501 - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) values: Optional[List[StatsmonTroubleshootingSlaValue]] = None __properties: ClassVar[List[str]] = ["name", "values"] diff --git a/graphiant_sdk/models/statsmon_troubleshooting_site_filter.py b/graphiant_sdk/models/statsmon_troubleshooting_site_filter.py index 78373e4f..dd32fc91 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_site_filter.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_site_filter.py @@ -27,8 +27,8 @@ class StatsmonTroubleshootingSiteFilter(BaseModel): """ StatsmonTroubleshootingSiteFilter """ # noqa: E501 - site_id: Optional[StrictInt] = Field(default=None, alias="siteId") - site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + 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"]}) __properties: ClassVar[List[str]] = ["siteId", "siteName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_troubleshooting_sla_value.py b/graphiant_sdk/models/statsmon_troubleshooting_sla_value.py index a90891c0..2ddd9802 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_sla_value.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_sla_value.py @@ -28,12 +28,12 @@ class StatsmonTroubleshootingSlaValue(BaseModel): """ StatsmonTroubleshootingSlaValue """ # noqa: E501 - 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 + 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"]}) time: Optional[GoogleProtobufTimestamp] = None - value: Optional[Union[StrictFloat, StrictInt]] = None + value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [123.45]}) __properties: ClassVar[List[str]] = ["delayValue", "jitterValue", "lossValue", "status", "time", "value"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_troubleshooting_system_plane.py b/graphiant_sdk/models/statsmon_troubleshooting_system_plane.py index d28fe953..e85abb6d 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_system_plane.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_system_plane.py @@ -38,7 +38,7 @@ 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] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) 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"] diff --git a/graphiant_sdk/models/statsmon_troubleshooting_system_stat.py b/graphiant_sdk/models/statsmon_troubleshooting_system_stat.py index c160c36d..eff4e084 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_system_stat.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_system_stat.py @@ -28,10 +28,10 @@ class StatsmonTroubleshootingSystemStat(BaseModel): """ StatsmonTroubleshootingSystemStat """ # noqa: E501 - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") - peer_name: Optional[StrictStr] = Field(default=None, alias="peerName") + 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"]}) time: Optional[GoogleProtobufTimestamp] = None - value: Optional[Union[StrictFloat, StrictInt]] = None + value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [123.45]}) __properties: ClassVar[List[str]] = ["interfaceName", "peerName", "time", "value"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_troubleshooting_time_window.py b/graphiant_sdk/models/statsmon_troubleshooting_time_window.py index 16c344ca..4d093962 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_time_window.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_time_window.py @@ -29,7 +29,7 @@ class StatsmonTroubleshootingTimeWindow(BaseModel): """ StatsmonTroubleshootingTimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) 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"] diff --git a/graphiant_sdk/models/statsmon_troubleshooting_transitions.py b/graphiant_sdk/models/statsmon_troubleshooting_transitions.py index e321db23..a19f0581 100644 --- a/graphiant_sdk/models/statsmon_troubleshooting_transitions.py +++ b/graphiant_sdk/models/statsmon_troubleshooting_transitions.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.statsmon_troubleshooting_system_stat import StatsmonTroubleshootingSystemStat from typing import Optional, Set @@ -28,7 +28,7 @@ class StatsmonTroubleshootingTransitions(BaseModel): """ StatsmonTroubleshootingTransitions """ # noqa: E501 - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) transitions: Optional[List[StatsmonTroubleshootingSystemStat]] = None __properties: ClassVar[List[str]] = ["name", "transitions"] diff --git a/graphiant_sdk/models/statsmon_v2_bfd_stats_selector.py b/graphiant_sdk/models/statsmon_v2_bfd_stats_selector.py index d90fa678..9d6bfe8f 100644 --- a/graphiant_sdk/models/statsmon_v2_bfd_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_bfd_stats_selector.py @@ -28,9 +28,9 @@ class StatsmonV2BfdStatsSelector(BaseModel): """ StatsmonV2BfdStatsSelector """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["ifIndex", "peerAddress", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_bgp_stats_selector.py b/graphiant_sdk/models/statsmon_v2_bgp_stats_selector.py index 07b9a916..2fcad107 100644 --- a/graphiant_sdk/models/statsmon_v2_bgp_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_bgp_stats_selector.py @@ -27,9 +27,9 @@ class StatsmonV2BgpStatsSelector(BaseModel): """ StatsmonV2BgpStatsSelector """ # noqa: E501 - peer_address: Optional[StrictStr] = Field(default=None, alias="peerAddress") - type: Optional[StrictStr] = None - vrf: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["peerAddress", "type", "vrf"] model_config = ConfigDict( 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 38ba16ea..a8ca4de0 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_bandwidth_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_bandwidth_stats_selector.py @@ -28,8 +28,8 @@ class StatsmonV2CircuitBandwidthStatsSelector(BaseModel): """ StatsmonV2CircuitBandwidthStatsSelector """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + 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]}) __properties: ClassVar[List[str]] = ["circuitName", "deviceId"] model_config = ConfigDict( 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 1315c814..412d0bf7 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_incidents_data_sample.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_incidents_data_sample.py @@ -30,7 +30,7 @@ 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") + 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"]}) total_incidents: Optional[StatsmonV2CircuitIncidentsDataSampleIncidents] = Field(default=None, alias="totalIncidents") ts: Optional[GoogleProtobufTimestamp] = None ul_incidents: Optional[StatsmonV2CircuitIncidentsDataSampleIncidents] = Field(default=None, alias="ulIncidents") 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 f4d3cfb5..8ce487f2 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 @@ -28,8 +28,8 @@ class StatsmonV2CircuitIncidentsDataSampleIncidents(BaseModel): """ StatsmonV2CircuitIncidentsDataSampleIncidents """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["numFairIncidents", "numPoorIncidents"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_circuit_incidents_selector.py b/graphiant_sdk/models/statsmon_v2_circuit_incidents_selector.py index f371e19c..baa3fb5c 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_incidents_selector.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_incidents_selector.py @@ -27,7 +27,7 @@ class StatsmonV2CircuitIncidentsSelector(BaseModel): """ StatsmonV2CircuitIncidentsSelector """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["circuitName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_circuit_summary.py b/graphiant_sdk/models/statsmon_v2_circuit_summary.py index dcd49750..57122fe6 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_summary.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_summary.py @@ -28,31 +28,31 @@ 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") - 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") + 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]}) __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( diff --git a/graphiant_sdk/models/statsmon_v2_circuit_utilization_selector.py b/graphiant_sdk/models/statsmon_v2_circuit_utilization_selector.py index 6a23978f..bf3c14fb 100644 --- a/graphiant_sdk/models/statsmon_v2_circuit_utilization_selector.py +++ b/graphiant_sdk/models/statsmon_v2_circuit_utilization_selector.py @@ -27,7 +27,7 @@ class StatsmonV2CircuitUtilizationSelector(BaseModel): """ StatsmonV2CircuitUtilizationSelector """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") + circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["circuitName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_connection.py b/graphiant_sdk/models/statsmon_v2_connection.py index 96e8caaf..1eac8450 100644 --- a/graphiant_sdk/models/statsmon_v2_connection.py +++ b/graphiant_sdk/models/statsmon_v2_connection.py @@ -28,16 +28,16 @@ class StatsmonV2Connection(BaseModel): """ StatsmonV2Connection """ # noqa: E501 - 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 + 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"]}) last_established_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastEstablishedTime") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["active", "circuitCarrier", "circuitName", "destinationIp", "hostname", "lastEstablishedTime", "lastResort", "quality", "sourceIp", "sourcePublicIp"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_device_segments.py b/graphiant_sdk/models/statsmon_v2_device_segments.py index aa770a30..3bf4189e 100644 --- a/graphiant_sdk/models/statsmon_v2_device_segments.py +++ b/graphiant_sdk/models/statsmon_v2_device_segments.py @@ -28,7 +28,7 @@ class StatsmonV2DeviceSegments(BaseModel): """ StatsmonV2DeviceSegments """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) vrf_routes: Optional[List[StatsmonV2VrfRoutes]] = Field(default=None, alias="vrfRoutes") __properties: ClassVar[List[str]] = ["deviceId", "vrfRoutes"] diff --git a/graphiant_sdk/models/statsmon_v2_edge.py b/graphiant_sdk/models/statsmon_v2_edge.py index a359f3c7..cffb41eb 100644 --- a/graphiant_sdk/models/statsmon_v2_edge.py +++ b/graphiant_sdk/models/statsmon_v2_edge.py @@ -30,12 +30,12 @@ class StatsmonV2Edge(BaseModel): """ StatsmonV2Edge """ # noqa: E501 - a: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - b: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + 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]}) circuits_info: Optional[List[StatsmonV2EdgeedgeCircuitInfo]] = Field(default=None, alias="circuitsInfo") connections: Optional[List[StatsmonV2Connection]] = None - name: Optional[StrictStr] = None - quality: Optional[StrictStr] = 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"]}) __properties: ClassVar[List[str]] = ["a", "b", "circuitsInfo", "connections", "name", "quality"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_edgeedge_circuit_info.py b/graphiant_sdk/models/statsmon_v2_edgeedge_circuit_info.py index 0aa0a456..7c9b31b3 100644 --- a/graphiant_sdk/models/statsmon_v2_edgeedge_circuit_info.py +++ b/graphiant_sdk/models/statsmon_v2_edgeedge_circuit_info.py @@ -28,15 +28,15 @@ class StatsmonV2EdgeedgeCircuitInfo(BaseModel): """ StatsmonV2EdgeedgeCircuitInfo """ # noqa: E501 - 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") + 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"]}) uptime: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["circuitCarrier", "circuitName", "deviceHostname", "interfaceName", "label", "lastResortCircuit", "quality", "sourceIp", "sourcePublicIp", "uptime"] diff --git a/graphiant_sdk/models/statsmon_v2_interface_stats_selector.py b/graphiant_sdk/models/statsmon_v2_interface_stats_selector.py index bf425cea..ede66d24 100644 --- a/graphiant_sdk/models/statsmon_v2_interface_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_interface_stats_selector.py @@ -27,8 +27,8 @@ class StatsmonV2InterfaceStatsSelector(BaseModel): """ StatsmonV2InterfaceStatsSelector """ # noqa: E501 - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") - type: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["interfaceName", "type"] model_config = ConfigDict( 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 83b2ac4c..c098ae2c 100644 --- a/graphiant_sdk/models/statsmon_v2_ip_sec_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_ip_sec_stats_selector.py @@ -27,8 +27,8 @@ class StatsmonV2IpSecStatsSelector(BaseModel): """ StatsmonV2IpSecStatsSelector """ # noqa: E501 - peer_gdi: Optional[StrictStr] = Field(default=None, alias="peerGdi") - type: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["peerGdi", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_node.py b/graphiant_sdk/models/statsmon_v2_node.py index f7de9bf5..41217d75 100644 --- a/graphiant_sdk/models/statsmon_v2_node.py +++ b/graphiant_sdk/models/statsmon_v2_node.py @@ -33,12 +33,12 @@ 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)]] = None - name: Optional[StrictStr] = 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"]}) node_info: Optional[StatsmonV2NodeDeviceInfo] = Field(default=None, alias="nodeInfo") - preferred_region_name: Optional[StrictStr] = Field(default=None, alias="preferredRegionName") - quality: Optional[StrictStr] = None - type: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["circuitInfo", "connections", "id", "name", "nodeInfo", "preferredRegionName", "quality", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_node_circuit_info.py b/graphiant_sdk/models/statsmon_v2_node_circuit_info.py index 21e4d3e8..ab109908 100644 --- a/graphiant_sdk/models/statsmon_v2_node_circuit_info.py +++ b/graphiant_sdk/models/statsmon_v2_node_circuit_info.py @@ -28,22 +28,22 @@ class StatsmonV2NodeCircuitInfo(BaseModel): """ StatsmonV2NodeCircuitInfo """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["averageDownlinkUtilization", "averageUplinkUtilization", "circuitCarrier", "circuitName", "connectedRegionName", "currentDownlinkUtilization", "currentUplinkUtilization", "deviceId", "interfaceName", "jitter", "label", "lastResort", "latency", "loss", "qoe", "quality"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_node_connection.py b/graphiant_sdk/models/statsmon_v2_node_connection.py index 2f1ea4c3..2d32b450 100644 --- a/graphiant_sdk/models/statsmon_v2_node_connection.py +++ b/graphiant_sdk/models/statsmon_v2_node_connection.py @@ -28,16 +28,16 @@ class StatsmonV2NodeConnection(BaseModel): """ StatsmonV2NodeConnection """ # noqa: E501 - 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 + 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"]}) last_established_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="lastEstablishedTime") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["active", "circuitCarrier", "circuitName", "destinationIp", "hostname", "lastEstablishedTime", "lastResort", "quality", "sourceIp", "sourcePublicIp"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_node_device_info.py b/graphiant_sdk/models/statsmon_v2_node_device_info.py index 0133386f..b7c20be2 100644 --- a/graphiant_sdk/models/statsmon_v2_node_device_info.py +++ b/graphiant_sdk/models/statsmon_v2_node_device_info.py @@ -28,21 +28,21 @@ class StatsmonV2NodeDeviceInfo(BaseModel): """ StatsmonV2NodeDeviceInfo """ # noqa: E501 - 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 + 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]}) uptime: Optional[GoogleProtobufDuration] = None __properties: ClassVar[List[str]] = ["controlQuality", "cpu", "dataQuality", "deviceId", "hostname", "location", "maintenanceMode", "memory", "mgmtIp", "model", "portalQuality", "serialNumber", "softwareVersion", "stagingMode", "temperature", "uptime"] diff --git a/graphiant_sdk/models/statsmon_v2_policy_stats_selector.py b/graphiant_sdk/models/statsmon_v2_policy_stats_selector.py index df1a2ed7..50ba7334 100644 --- a/graphiant_sdk/models/statsmon_v2_policy_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_policy_stats_selector.py @@ -28,8 +28,8 @@ class StatsmonV2PolicyStatsSelector(BaseModel): """ StatsmonV2PolicyStatsSelector """ # noqa: E501 - index: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - type: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["index", "type"] model_config = ConfigDict( 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 cb63a6d1..229a99a4 100644 --- a/graphiant_sdk/models/statsmon_v2_queue_instant_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_queue_instant_stats_selector.py @@ -27,9 +27,9 @@ class StatsmonV2QueueInstantStatsSelector(BaseModel): """ StatsmonV2QueueInstantStatsSelector """ # noqa: E501 - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") - sla_class: Optional[StrictStr] = Field(default=None, alias="slaClass") - type: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["interfaceName", "slaClass", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_queue_utilization.py b/graphiant_sdk/models/statsmon_v2_queue_utilization.py index 794da376..806bacfe 100644 --- a/graphiant_sdk/models/statsmon_v2_queue_utilization.py +++ b/graphiant_sdk/models/statsmon_v2_queue_utilization.py @@ -28,12 +28,12 @@ class StatsmonV2QueueUtilization(BaseModel): """ StatsmonV2QueueUtilization """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["allocatedPct", "defaultQueue", "excessWeight", "slaClass", "utilizationKbps", "utilizationPct"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_stats_sample.py b/graphiant_sdk/models/statsmon_v2_stats_sample.py index 0d871e7f..1654190a 100644 --- a/graphiant_sdk/models/statsmon_v2_stats_sample.py +++ b/graphiant_sdk/models/statsmon_v2_stats_sample.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,9 +28,9 @@ class StatsmonV2StatsSample(BaseModel): """ StatsmonV2StatsSample """ # noqa: E501 - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) ts: Optional[GoogleProtobufTimestamp] = None - value: Optional[Union[StrictFloat, StrictInt]] = None + value: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, json_schema_extra={"examples": [123.45]}) __properties: ClassVar[List[str]] = ["status", "ts", "value"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_system_stats_selector.py b/graphiant_sdk/models/statsmon_v2_system_stats_selector.py index 3a331f11..d82003db 100644 --- a/graphiant_sdk/models/statsmon_v2_system_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_system_stats_selector.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class StatsmonV2SystemStatsSelector(BaseModel): """ StatsmonV2SystemStatsSelector """ # noqa: E501 - type: Optional[StrictStr] = None + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_time_window.py b/graphiant_sdk/models/statsmon_v2_time_window.py index eb830f3f..8c27e34c 100644 --- a/graphiant_sdk/models/statsmon_v2_time_window.py +++ b/graphiant_sdk/models/statsmon_v2_time_window.py @@ -29,7 +29,7 @@ class StatsmonV2TimeWindow(BaseModel): """ StatsmonV2TimeWindow """ # noqa: E501 - bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec") + bucket_size_sec: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="bucketSizeSec", json_schema_extra={"examples": [123]}) 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"] diff --git a/graphiant_sdk/models/statsmon_v2_twamp_stats_selector.py b/graphiant_sdk/models/statsmon_v2_twamp_stats_selector.py index e5246b37..9538bf64 100644 --- a/graphiant_sdk/models/statsmon_v2_twamp_stats_selector.py +++ b/graphiant_sdk/models/statsmon_v2_twamp_stats_selector.py @@ -28,10 +28,10 @@ class StatsmonV2TwampStatsSelector(BaseModel): """ StatsmonV2TwampStatsSelector """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["circuitName", "deviceId", "interfaceName", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_twamp_visual_selector.py b/graphiant_sdk/models/statsmon_v2_twamp_visual_selector.py index d25955b3..ed7476a5 100644 --- a/graphiant_sdk/models/statsmon_v2_twamp_visual_selector.py +++ b/graphiant_sdk/models/statsmon_v2_twamp_visual_selector.py @@ -27,9 +27,9 @@ class StatsmonV2TwampVisualSelector(BaseModel): """ StatsmonV2TwampVisualSelector """ # noqa: E501 - circuit_name: Optional[StrictStr] = Field(default=None, alias="circuitName") - core_location: Optional[StrictStr] = Field(default=None, alias="coreLocation") - type: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["circuitName", "coreLocation", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/statsmon_v2_vrf_route.py b/graphiant_sdk/models/statsmon_v2_vrf_route.py index ea138af5..9c4f3839 100644 --- a/graphiant_sdk/models/statsmon_v2_vrf_route.py +++ b/graphiant_sdk/models/statsmon_v2_vrf_route.py @@ -27,10 +27,10 @@ class StatsmonV2VrfRoute(BaseModel): """ StatsmonV2VrfRoute """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["ipv4Routes", "ipv6Routes", "totalRoutes", "vrfName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/syslogmon_histogram.py b/graphiant_sdk/models/syslogmon_histogram.py index dd0bc21a..fc91a5f3 100644 --- a/graphiant_sdk/models/syslogmon_histogram.py +++ b/graphiant_sdk/models/syslogmon_histogram.py @@ -29,7 +29,7 @@ class SyslogmonHistogram(BaseModel): """ SyslogmonHistogram """ # noqa: E501 - count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None + count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, json_schema_extra={"examples": [123]}) ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["count", "ts"] diff --git a/graphiant_sdk/models/syslogmon_log.py b/graphiant_sdk/models/syslogmon_log.py index 207a7534..76300512 100644 --- a/graphiant_sdk/models/syslogmon_log.py +++ b/graphiant_sdk/models/syslogmon_log.py @@ -29,11 +29,11 @@ class SyslogmonLog(BaseModel): """ SyslogmonLog """ # noqa: E501 - 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 + 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"]}) ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["deviceId", "facility", "hostname", "level", "message", "ts"] diff --git a/graphiant_sdk/models/syslogmon_syslogs_selector.py b/graphiant_sdk/models/syslogmon_syslogs_selector.py index ad9ed63d..d483f8f9 100644 --- a/graphiant_sdk/models/syslogmon_syslogs_selector.py +++ b/graphiant_sdk/models/syslogmon_syslogs_selector.py @@ -27,7 +27,7 @@ class SyslogmonSyslogsSelector(BaseModel): """ SyslogmonSyslogsSelector """ # noqa: E501 - var_field: Optional[StrictStr] = Field(default=None, alias="field") + var_field: Optional[StrictStr] = Field(default=None, alias="field", json_schema_extra={"examples": ["ENUM_VALUE"]}) values: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["field", "values"] diff --git a/graphiant_sdk/models/upgrade_gcs_release_category.py b/graphiant_sdk/models/upgrade_gcs_release_category.py index 6fa73ff1..60fd740a 100644 --- a/graphiant_sdk/models/upgrade_gcs_release_category.py +++ b/graphiant_sdk/models/upgrade_gcs_release_category.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,8 +27,8 @@ class UpgradeGcsReleaseCategory(BaseModel): """ UpgradeGcsReleaseCategory """ # noqa: E501 - content: Optional[StrictStr] = None - title: Optional[StrictStr] = None + content: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) + title: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["content", "title"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/upgrade_gcs_release_details.py b/graphiant_sdk/models/upgrade_gcs_release_details.py index 5c96fd3a..819609e7 100644 --- a/graphiant_sdk/models/upgrade_gcs_release_details.py +++ b/graphiant_sdk/models/upgrade_gcs_release_details.py @@ -30,7 +30,7 @@ class UpgradeGcsReleaseDetails(BaseModel): UpgradeGcsReleaseDetails """ # noqa: E501 category: Optional[List[UpgradeGcsReleaseCategory]] = None - major: Optional[StrictBool] = None + major: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) release_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="releaseTs") __properties: ClassVar[List[str]] = ["category", "major", "releaseTs"] diff --git a/graphiant_sdk/models/upgrade_inventory_key.py b/graphiant_sdk/models/upgrade_inventory_key.py index b2776fb4..58be1f49 100644 --- a/graphiant_sdk/models/upgrade_inventory_key.py +++ b/graphiant_sdk/models/upgrade_inventory_key.py @@ -28,8 +28,8 @@ class UpgradeInventoryKey(BaseModel): """ UpgradeInventoryKey """ # noqa: E501 - model: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - version: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["model", "version"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/upgrade_monthly_recurrence.py b/graphiant_sdk/models/upgrade_monthly_recurrence.py index 89bf56ea..7d6030c0 100644 --- a/graphiant_sdk/models/upgrade_monthly_recurrence.py +++ b/graphiant_sdk/models/upgrade_monthly_recurrence.py @@ -28,9 +28,9 @@ class UpgradeMonthlyRecurrence(BaseModel): """ UpgradeMonthlyRecurrence """ # noqa: E501 - var_date: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Calendar day of month (1–31) for fixed-date monthly recurrence; optional if ordinal and weekday are set.", alias="date") - ordinal: Optional[StrictStr] = Field(default=None, description="For nth-weekday-of-month style recurrence; use together with weekday, or use date instead.") - weekday: Optional[StrictStr] = Field(default=None, description="Weekday paired with ordinal for monthly nth-weekday recurrence; optional if date is set.") + 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"]}) __properties: ClassVar[List[str]] = ["date", "ordinal", "weekday"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/upgrade_release_summary.py b/graphiant_sdk/models/upgrade_release_summary.py index c9246076..43a26216 100644 --- a/graphiant_sdk/models/upgrade_release_summary.py +++ b/graphiant_sdk/models/upgrade_release_summary.py @@ -31,8 +31,8 @@ class UpgradeReleaseSummary(BaseModel): """ # noqa: E501 eos_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="eosTs") key: Optional[UpgradeInventoryKey] = None - name: Optional[StrictStr] = None - release: Optional[StrictStr] = 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"]}) release_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="releaseTs") __properties: ClassVar[List[str]] = ["eosTs", "key", "name", "release", "releaseTs"] diff --git a/graphiant_sdk/models/upgrade_rollout.py b/graphiant_sdk/models/upgrade_rollout.py index be3b6802..9936cb87 100644 --- a/graphiant_sdk/models/upgrade_rollout.py +++ b/graphiant_sdk/models/upgrade_rollout.py @@ -31,11 +31,11 @@ class UpgradeRollout(BaseModel): UpgradeRollout """ # noqa: E501 devices: Optional[List[UpgradeRolloutDevice]] = None - has_failed: Optional[StrictBool] = Field(default=None, description="True if any device in the rollout has a failed upgrade state.", alias="hasFailed") - id: Optional[StrictInt] = Field(default=None, description="Server-assigned rollout identifier.") + 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]}) 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") + num_devices: Optional[StrictInt] = Field(default=None, description="Count of devices associated with the rollout.", alias="numDevices", json_schema_extra={"examples": [3]}) rollout_config: Optional[UpgradeRolloutConfig] = Field(default=None, alias="rolloutConfig") __properties: ClassVar[List[str]] = ["devices", "hasFailed", "id", "lastRunTs", "nextRunTs", "numDevices", "rolloutConfig"] diff --git a/graphiant_sdk/models/upgrade_rollout_config.py b/graphiant_sdk/models/upgrade_rollout_config.py index 58f6ef08..9a410ba3 100644 --- a/graphiant_sdk/models/upgrade_rollout_config.py +++ b/graphiant_sdk/models/upgrade_rollout_config.py @@ -28,11 +28,11 @@ class UpgradeRolloutConfig(BaseModel): """ UpgradeRolloutConfig """ # noqa: E501 - action: StrictStr = Field(description="Upgrade action to perform (e.g. install+activate, install only, activate, auto-upgrade). (required)") - description: Optional[StrictStr] = Field(default=None, description="Optional longer description of the rollout.") + 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"]}) device_ids: Optional[List[StrictInt]] = Field(default=None, alias="deviceIds") - name: StrictStr = Field(description="Human-readable rollout name unique within the enterprise. (required)") - release: StrictStr = Field(description="Target software release for devices in this rollout. (required)") + 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"]}) schedule: Optional[UpgradeRecurringSchedule] = None __properties: ClassVar[List[str]] = ["action", "description", "deviceIds", "name", "release", "schedule"] diff --git a/graphiant_sdk/models/upgrade_rollout_device.py b/graphiant_sdk/models/upgrade_rollout_device.py index d6d48960..cb5ec26c 100644 --- a/graphiant_sdk/models/upgrade_rollout_device.py +++ b/graphiant_sdk/models/upgrade_rollout_device.py @@ -27,8 +27,8 @@ class UpgradeRolloutDevice(BaseModel): """ UpgradeRolloutDevice """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, description="Device identifier. (required)", alias="deviceId") - hostname: Optional[StrictStr] = Field(default=None, description="Device hostname for display.") + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "hostname"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/upgrade_running_sw_version.py b/graphiant_sdk/models/upgrade_running_sw_version.py index a820e2dc..4da0cd80 100644 --- a/graphiant_sdk/models/upgrade_running_sw_version.py +++ b/graphiant_sdk/models/upgrade_running_sw_version.py @@ -28,7 +28,7 @@ class UpgradeRunningSwVersion(BaseModel): """ UpgradeRunningSwVersion """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) version: Optional[UpgradeSwVersion] = None __properties: ClassVar[List[str]] = ["deviceId", "version"] diff --git a/graphiant_sdk/models/upgrade_schedule.py b/graphiant_sdk/models/upgrade_schedule.py index 4486c48a..3b6be42f 100644 --- a/graphiant_sdk/models/upgrade_schedule.py +++ b/graphiant_sdk/models/upgrade_schedule.py @@ -30,11 +30,11 @@ class UpgradeSchedule(BaseModel): """ UpgradeSchedule """ # noqa: E501 - 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 + 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"]}) ts: Optional[GoogleProtobufTimestamp] = None version: Optional[UpgradeSwVersion] = None __properties: ClassVar[List[str]] = ["action", "deviceId", "downloadProgress", "failureReason", "state", "ts", "version"] diff --git a/graphiant_sdk/models/upgrade_sw_version.py b/graphiant_sdk/models/upgrade_sw_version.py index b77099b7..2f96224d 100644 --- a/graphiant_sdk/models/upgrade_sw_version.py +++ b/graphiant_sdk/models/upgrade_sw_version.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,9 +27,9 @@ class UpgradeSwVersion(BaseModel): """ UpgradeSwVersion """ # noqa: E501 - name: Optional[StrictStr] = None - release: Optional[StrictStr] = None - version: Optional[StrictStr] = 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"]}) + version: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["name", "release", "version"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/upgrade_upgrade_canary_profile.py b/graphiant_sdk/models/upgrade_upgrade_canary_profile.py index 7af50b20..f5e92b28 100644 --- a/graphiant_sdk/models/upgrade_upgrade_canary_profile.py +++ b/graphiant_sdk/models/upgrade_upgrade_canary_profile.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.upgrade_upgrade_occurrence import UpgradeUpgradeOccurrence from typing import Optional, Set @@ -28,10 +28,10 @@ class UpgradeUpgradeCanaryProfile(BaseModel): """ UpgradeUpgradeCanaryProfile """ # noqa: E501 - action: Optional[StrictStr] = None - name: Optional[StrictStr] = None + action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) occurrence: Optional[UpgradeUpgradeOccurrence] = None - release: Optional[StrictStr] = None + release: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["action", "name", "occurrence", "release"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/upgrade_upgrade_occurrence.py b/graphiant_sdk/models/upgrade_upgrade_occurrence.py index 11748a47..d3697314 100644 --- a/graphiant_sdk/models/upgrade_upgrade_occurrence.py +++ b/graphiant_sdk/models/upgrade_upgrade_occurrence.py @@ -27,12 +27,12 @@ class UpgradeUpgradeOccurrence(BaseModel): """ UpgradeUpgradeOccurrence """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["dayOfWeek", "hour", "minute", "occurrenceInMonth", "ordinal", "weekday"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/upgrade_upgrade_summary.py b/graphiant_sdk/models/upgrade_upgrade_summary.py index d056e80a..7e539a87 100644 --- a/graphiant_sdk/models/upgrade_upgrade_summary.py +++ b/graphiant_sdk/models/upgrade_upgrade_summary.py @@ -30,17 +30,17 @@ class UpgradeUpgradeSummary(BaseModel): """ UpgradeUpgradeSummary """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") - end_of_life: Optional[StrictBool] = Field(default=None, alias="endOfLife") + 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]}) 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") - rollout_name: Optional[StrictStr] = Field(default=None, alias="rolloutName") + 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"]}) running_version: Optional[UpgradeSwVersion] = Field(default=None, alias="runningVersion") schedule: Optional[UpgradeSchedule] = None - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["deviceId", "endOfLife", "lastDiscoveredTs", "lastRunningVersion", "lastUpgradeTs", "readyForActivationVersion", "rolloutId", "rolloutName", "runningVersion", "schedule", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/upgrade_weekly_recurrence.py b/graphiant_sdk/models/upgrade_weekly_recurrence.py index 517d2887..0e20522b 100644 --- a/graphiant_sdk/models/upgrade_weekly_recurrence.py +++ b/graphiant_sdk/models/upgrade_weekly_recurrence.py @@ -28,8 +28,8 @@ class UpgradeWeeklyRecurrence(BaseModel): """ UpgradeWeeklyRecurrence """ # noqa: E501 - interval: Annotated[int, Field(strict=True, ge=0)] = Field(description="Which occurrence of the weekday in the month applies for weekly-style recurrence (1–52, aligned with schedule validation). (required)") - weekday: StrictStr = Field(description="Day of week for the weekly recurrence. (required)") + 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"]}) __properties: ClassVar[List[str]] = ["interval", "weekday"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/upgrade_yearly_recurrence.py b/graphiant_sdk/models/upgrade_yearly_recurrence.py index 83860f99..684e006d 100644 --- a/graphiant_sdk/models/upgrade_yearly_recurrence.py +++ b/graphiant_sdk/models/upgrade_yearly_recurrence.py @@ -28,10 +28,10 @@ class UpgradeYearlyRecurrence(BaseModel): """ UpgradeYearlyRecurrence """ # noqa: E501 - var_date: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Calendar day (1–31) for fixed month+date yearly recurrence.", alias="date") - month: Annotated[int, Field(strict=True, ge=0)] = Field(description="Month of year (1–12) for yearly recurrence. (required)") - ordinal: Optional[StrictStr] = Field(default=None, description="For nth-weekday-in-month yearly recurrence; use with weekday, or use month + date.") - weekday: Optional[StrictStr] = Field(default=None, description="Weekday paired with ordinal for yearly recurrence.") + 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"]}) __properties: ClassVar[List[str]] = ["date", "month", "ordinal", "weekday"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_account_email_patch_request.py b/graphiant_sdk/models/v1_account_email_patch_request.py index dcf4b251..6bf97e3f 100644 --- a/graphiant_sdk/models/v1_account_email_patch_request.py +++ b/graphiant_sdk/models/v1_account_email_patch_request.py @@ -27,7 +27,7 @@ class V1AccountEmailPatchRequest(BaseModel): """ V1AccountEmailPatchRequest """ # noqa: E501 - email: StrictStr = Field(description=" (required)") + email: StrictStr = Field(description=" (required)", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["email"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_account_info_patch_request.py b/graphiant_sdk/models/v1_account_info_patch_request.py index a7fa7191..470c68f3 100644 --- a/graphiant_sdk/models/v1_account_info_patch_request.py +++ b/graphiant_sdk/models/v1_account_info_patch_request.py @@ -27,9 +27,9 @@ class V1AccountInfoPatchRequest(BaseModel): """ V1AccountInfoPatchRequest """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["firstName", "lastName", "timeZone"] model_config = ConfigDict( 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 a71d2f7f..0ab22a9a 100644 --- a/graphiant_sdk/models/v1_account_mfa_confirmation_post_request.py +++ b/graphiant_sdk/models/v1_account_mfa_confirmation_post_request.py @@ -27,10 +27,10 @@ class V1AccountMfaConfirmationPostRequest(BaseModel): """ V1AccountMfaConfirmationPostRequest """ # noqa: E501 - code: StrictStr = Field(description=" (required)") - confirmed: StrictBool = Field(description=" (required)") - id: StrictStr = Field(description=" (required)") - type: StrictStr = Field(description=" (required)") + 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"]}) __properties: ClassVar[List[str]] = ["code", "confirmed", "id", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_account_mfa_get_response.py b/graphiant_sdk/models/v1_account_mfa_get_response.py index c72c0d80..519350ab 100644 --- a/graphiant_sdk/models/v1_account_mfa_get_response.py +++ b/graphiant_sdk/models/v1_account_mfa_get_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class V1AccountMfaGetResponse(BaseModel): """ V1AccountMfaGetResponse """ # noqa: E501 - type: Optional[StrictStr] = None + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_account_mfa_put_request.py b/graphiant_sdk/models/v1_account_mfa_put_request.py index 1894b7a5..b9876ae9 100644 --- a/graphiant_sdk/models/v1_account_mfa_put_request.py +++ b/graphiant_sdk/models/v1_account_mfa_put_request.py @@ -27,8 +27,8 @@ class V1AccountMfaPutRequest(BaseModel): """ V1AccountMfaPutRequest """ # noqa: E501 - phone_number: Optional[StrictStr] = Field(default=None, alias="phoneNumber") - type: StrictStr = Field(description=" (required)") + 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"]}) __properties: ClassVar[List[str]] = ["phoneNumber", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_account_mfa_put_response.py b/graphiant_sdk/models/v1_account_mfa_put_response.py index 769547e8..a25fb341 100644 --- a/graphiant_sdk/models/v1_account_mfa_put_response.py +++ b/graphiant_sdk/models/v1_account_mfa_put_response.py @@ -27,10 +27,10 @@ class V1AccountMfaPutResponse(BaseModel): """ V1AccountMfaPutResponse """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["confirmed", "id", "qrCode", "sharedSecret"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_account_password_patch_request.py b/graphiant_sdk/models/v1_account_password_patch_request.py index c2eec889..f57e68ad 100644 --- a/graphiant_sdk/models/v1_account_password_patch_request.py +++ b/graphiant_sdk/models/v1_account_password_patch_request.py @@ -27,8 +27,8 @@ class V1AccountPasswordPatchRequest(BaseModel): """ V1AccountPasswordPatchRequest """ # noqa: E501 - old_password: StrictStr = Field(description=" (required)", alias="oldPassword") - password: StrictStr = Field(description=" (required)") + 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"]}) __properties: ClassVar[List[str]] = ["oldPassword", "password"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_activity_logs_post_request.py b/graphiant_sdk/models/v1_activity_logs_post_request.py index e039a3f7..2d31bd05 100644 --- a/graphiant_sdk/models/v1_activity_logs_post_request.py +++ b/graphiant_sdk/models/v1_activity_logs_post_request.py @@ -31,8 +31,8 @@ class V1ActivityLogsPostRequest(BaseModel): """ V1ActivityLogsPostRequest """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") - num_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numLogs") + 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]}) old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") selector: Optional[AuditmonActivityLogsSelector] = None diff --git a/graphiant_sdk/models/v1_activity_logs_post_response.py b/graphiant_sdk/models/v1_activity_logs_post_response.py index 2fe72feb..658f9125 100644 --- a/graphiant_sdk/models/v1_activity_logs_post_response.py +++ b/graphiant_sdk/models/v1_activity_logs_post_response.py @@ -30,11 +30,11 @@ class V1ActivityLogsPostResponse(BaseModel): """ V1ActivityLogsPostResponse """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) 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") + total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs", json_schema_extra={"examples": [12345678910]}) __properties: ClassVar[List[str]] = ["cursorRef", "details", "filterEntities", "filterJobTypes", "totalLogs"] model_config = ConfigDict( 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 5599e1c0..edf27d03 100644 --- a/graphiant_sdk/models/v1_apps_app_summary_post_request.py +++ b/graphiant_sdk/models/v1_apps_app_summary_post_request.py @@ -28,8 +28,8 @@ class V1AppsAppSummaryPostRequest(BaseModel): """ V1AppsAppSummaryPostRequest """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") - is_dia: Optional[StrictBool] = Field(default=None, alias="isDia") + 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]}) time_window: Optional[IpfixTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "isDia", "timeWindow"] diff --git a/graphiant_sdk/models/v1_apps_bandwidth_post_request.py b/graphiant_sdk/models/v1_apps_bandwidth_post_request.py index 9b0bedaa..84f9c897 100644 --- a/graphiant_sdk/models/v1_apps_bandwidth_post_request.py +++ b/graphiant_sdk/models/v1_apps_bandwidth_post_request.py @@ -29,13 +29,13 @@ class V1AppsBandwidthPostRequest(BaseModel): """ V1AppsBandwidthPostRequest """ # noqa: E501 - 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") + 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"]}) time_window: Optional[StatsmonTimeWindow] = Field(default=None, alias="timeWindow") - ul_circuit_name: Optional[StrictStr] = Field(default=None, alias="ulCircuitName") + ul_circuit_name: Optional[StrictStr] = Field(default=None, alias="ulCircuitName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["appId", "deviceId", "dlCircuitName", "isDia", "slaClass", "timeWindow", "ulCircuitName"] model_config = ConfigDict( 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 d8e1df89..e70864ba 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 @@ -29,7 +29,7 @@ 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") + 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]}) time_window: Optional[IpfixTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["numApps", "timeWindow"] 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 7c8073ba..af85483f 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 @@ -29,7 +29,7 @@ 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") + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["appsUtilization", "totalCount"] model_config = ConfigDict( 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 ece40738..4d525e99 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 @@ -29,7 +29,7 @@ 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") + 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]}) time_window: Optional[IpfixTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["numApps", "timeWindow"] 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 51462cd6..597832d3 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 @@ -29,7 +29,7 @@ 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") + total_count: Optional[StrictInt] = Field(default=None, alias="totalCount", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["appsUtilization", "totalCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_apps_visualization_post_request.py b/graphiant_sdk/models/v1_apps_visualization_post_request.py index 212a1d1e..ada3387a 100644 --- a/graphiant_sdk/models/v1_apps_visualization_post_request.py +++ b/graphiant_sdk/models/v1_apps_visualization_post_request.py @@ -28,10 +28,10 @@ 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") - 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") + 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"]}) time_window: Optional[StatsmonTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["circuitName", "deviceId", "isDia", "slaClass", "timeWindow"] diff --git a/graphiant_sdk/models/v1_apps_visualization_post_response.py b/graphiant_sdk/models/v1_apps_visualization_post_response.py index f772b53d..2552aceb 100644 --- a/graphiant_sdk/models/v1_apps_visualization_post_response.py +++ b/graphiant_sdk/models/v1_apps_visualization_post_response.py @@ -30,9 +30,9 @@ 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") + apps_on_device_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="appsOnDeviceCount", json_schema_extra={"examples": [123]}) apps_visualization: Optional[List[IpfixAppVisualization]] = Field(default=None, alias="appsVisualization") - average_qoe: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageQoe") + average_qoe: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="averageQoe", json_schema_extra={"examples": [123.45]}) __properties: ClassVar[List[str]] = ["appHealth", "appsOnDeviceCount", "appsVisualization", "averageQoe"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_audit_logs_post_request.py b/graphiant_sdk/models/v1_audit_logs_post_request.py index 46871de2..250d7358 100644 --- a/graphiant_sdk/models/v1_audit_logs_post_request.py +++ b/graphiant_sdk/models/v1_audit_logs_post_request.py @@ -30,9 +30,9 @@ class V1AuditLogsPostRequest(BaseModel): """ V1AuditLogsPostRequest """ # noqa: E501 - 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") + 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]}) old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") selectors: Optional[List[AuditmonSelector]] = None diff --git a/graphiant_sdk/models/v1_audit_logs_post_response.py b/graphiant_sdk/models/v1_audit_logs_post_response.py index b66d1f35..c5846aab 100644 --- a/graphiant_sdk/models/v1_audit_logs_post_response.py +++ b/graphiant_sdk/models/v1_audit_logs_post_response.py @@ -30,10 +30,10 @@ class V1AuditLogsPostResponse(BaseModel): """ V1AuditLogsPostResponse """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) 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") + total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs", json_schema_extra={"examples": [12345678910]}) __properties: ClassVar[List[str]] = ["cursorRef", "histogram", "logs", "totalLogs"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_auth_error_post_response.py b/graphiant_sdk/models/v1_auth_error_post_response.py index d9a7a457..31c15e02 100644 --- a/graphiant_sdk/models/v1_auth_error_post_response.py +++ b/graphiant_sdk/models/v1_auth_error_post_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr +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 @@ -27,9 +27,9 @@ class V1AuthErrorPostResponse(BaseModel): """ V1AuthErrorPostResponse """ # noqa: E501 - auth: StrictBool + auth: StrictBool = Field(json_schema_extra={"examples": [False]}) token: Optional[StrictStr] - error: StrictStr + error: StrictStr = Field(json_schema_extra={"examples": ["email not provided"]}) __properties: ClassVar[List[str]] = ["auth", "token", "error"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_auth_gcs_post_request.py b/graphiant_sdk/models/v1_auth_gcs_post_request.py index bbc8a128..ff9a961f 100644 --- a/graphiant_sdk/models/v1_auth_gcs_post_request.py +++ b/graphiant_sdk/models/v1_auth_gcs_post_request.py @@ -27,8 +27,8 @@ class V1AuthGcsPostRequest(BaseModel): """ V1AuthGcsPostRequest """ # noqa: E501 - gcs_name: StrictStr = Field(alias="gcsName") - api_key: StrictStr = Field(alias="apiKey") + 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"]}) __properties: ClassVar[List[str]] = ["gcsName", "apiKey"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_auth_get_response.py b/graphiant_sdk/models/v1_auth_get_response.py index f68f60e2..ed1838ca 100644 --- a/graphiant_sdk/models/v1_auth_get_response.py +++ b/graphiant_sdk/models/v1_auth_get_response.py @@ -27,10 +27,10 @@ class V1AuthGetResponse(BaseModel): """ V1AuthGetResponse """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["cert", "entryPoint", "iamType", "issuer"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_auth_login_post_request.py b/graphiant_sdk/models/v1_auth_login_post_request.py index 60c072e9..c171d96c 100644 --- a/graphiant_sdk/models/v1_auth_login_post_request.py +++ b/graphiant_sdk/models/v1_auth_login_post_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List from typing import Optional, Set from typing_extensions import Self @@ -27,8 +27,8 @@ class V1AuthLoginPostRequest(BaseModel): """ V1AuthLoginPostRequest """ # noqa: E501 - username: StrictStr - password: StrictStr + username: StrictStr = Field(json_schema_extra={"examples": ["user@example.com"]}) + password: StrictStr = Field(json_schema_extra={"examples": ["password123"]}) __properties: ClassVar[List[str]] = ["username", "password"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_auth_login_post_response.py b/graphiant_sdk/models/v1_auth_login_post_response.py index fce59b02..8c1e1972 100644 --- a/graphiant_sdk/models/v1_auth_login_post_response.py +++ b/graphiant_sdk/models/v1_auth_login_post_response.py @@ -27,13 +27,13 @@ class V1AuthLoginPostResponse(BaseModel): """ V1AuthLoginPostResponse """ # noqa: E501 - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["auth", "token", "accountType", "email", "mfaType", "stateToken", "status"] @field_validator('account_type') 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 03a54231..b0571626 100644 --- a/graphiant_sdk/models/v1_auth_login_pre_get_response.py +++ b/graphiant_sdk/models/v1_auth_login_pre_get_response.py @@ -27,11 +27,11 @@ class V1AuthLoginPreGetResponse(BaseModel): """ V1AuthLoginPreGetResponse """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["method", "email", "iam", "relayState", "entryPoint"] @field_validator('method') 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 b3ef7eb3..fcf65804 100644 --- a/graphiant_sdk/models/v1_auth_login_temp_post_request.py +++ b/graphiant_sdk/models/v1_auth_login_temp_post_request.py @@ -27,9 +27,9 @@ class V1AuthLoginTempPostRequest(BaseModel): """ V1AuthLoginTempPostRequest """ # noqa: E501 - email: StrictStr - temp_password: StrictStr = Field(alias="tempPassword") - match_id: Union[StrictFloat, StrictInt] = Field(alias="matchId") + 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]}) __properties: ClassVar[List[str]] = ["email", "tempPassword", "matchId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_auth_mfa_post500_response.py b/graphiant_sdk/models/v1_auth_mfa_post500_response.py index 2f639165..2be123b7 100644 --- a/graphiant_sdk/models/v1_auth_mfa_post500_response.py +++ b/graphiant_sdk/models/v1_auth_mfa_post500_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class V1AuthMfaPost500Response(BaseModel): """ V1AuthMfaPost500Response """ # noqa: E501 - error: Optional[StrictStr] = None + error: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["Internal error"]}) __properties: ClassVar[List[str]] = ["error"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_auth_mfa_post_request.py b/graphiant_sdk/models/v1_auth_mfa_post_request.py index 01c62549..553bea59 100644 --- a/graphiant_sdk/models/v1_auth_mfa_post_request.py +++ b/graphiant_sdk/models/v1_auth_mfa_post_request.py @@ -27,10 +27,10 @@ class V1AuthMfaPostRequest(BaseModel): """ V1AuthMfaPostRequest """ # noqa: E501 - email: StrictStr - mfa_type: StrictStr = Field(alias="mfaType") - code: StrictStr - state_token: Optional[StrictStr] = Field(default=None, alias="stateToken") + 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"]}) __properties: ClassVar[List[str]] = ["email", "mfaType", "code", "stateToken"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_auth_patch_request.py b/graphiant_sdk/models/v1_auth_patch_request.py index bc3cb9e7..632bfc43 100644 --- a/graphiant_sdk/models/v1_auth_patch_request.py +++ b/graphiant_sdk/models/v1_auth_patch_request.py @@ -27,10 +27,10 @@ class V1AuthPatchRequest(BaseModel): """ V1AuthPatchRequest """ # noqa: E501 - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["cert", "entryPoint", "iamType", "issuer"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_auth_put_request.py b/graphiant_sdk/models/v1_auth_put_request.py index 0bc4f61a..dffde94e 100644 --- a/graphiant_sdk/models/v1_auth_put_request.py +++ b/graphiant_sdk/models/v1_auth_put_request.py @@ -27,10 +27,10 @@ class V1AuthPutRequest(BaseModel): """ V1AuthPutRequest """ # noqa: E501 - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["cert", "entryPoint", "iamType", "issuer"] model_config = ConfigDict( 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 2779a029..6d2fc260 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 @@ -27,7 +27,7 @@ class V1AuthRefreshGetEntryPointResponse(BaseModel): """ V1AuthRefreshGetEntryPointResponse """ # noqa: E501 - entry_point: Optional[StrictStr] = Field(default=None, alias="entryPoint") + entry_point: Optional[StrictStr] = Field(default=None, alias="entryPoint", json_schema_extra={"examples": ["https://saml.example.com/sso"]}) __properties: ClassVar[List[str]] = ["entryPoint"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_auth_user_get_response.py b/graphiant_sdk/models/v1_auth_user_get_response.py index c5d2abb4..f955080e 100644 --- a/graphiant_sdk/models/v1_auth_user_get_response.py +++ b/graphiant_sdk/models/v1_auth_user_get_response.py @@ -28,10 +28,10 @@ class V1AuthUserGetResponse(BaseModel): """ V1AuthUserGetResponse """ # noqa: E501 - user_id: StrictStr = Field(description="User identifier", alias="userId") - enterprise_id: StrictInt = Field(description="Enterprise identifier", alias="enterpriseId") + 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]}) permissions: AuthPermissions - time_zone: StrictStr = Field(description="User timezone", alias="timeZone") + time_zone: StrictStr = Field(description="User timezone", alias="timeZone", json_schema_extra={"examples": ["America/New_York"]}) __properties: ClassVar[List[str]] = ["userId", "enterpriseId", "permissions", "timeZone"] model_config = ConfigDict( 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 0ba1ac91..9c22cd77 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 @@ -38,9 +38,9 @@ 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] = None - status: Optional[StrictStr] = None - sw_version: Optional[StrictStr] = Field(default=None, alias="swVersion") + 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"]}) 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") 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 56d97436..7b2ff250 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 @@ -28,11 +28,11 @@ class V1BackboneHealthEtWanMatrixGetResponseDeviceEtWanSummary(BaseModel): """ V1BackboneHealthEtWanMatrixGetResponseDeviceEtWanSummary """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") - provider: Optional[StrictStr] = None + 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"]}) region: Optional[StatsmonTroubleshootingRegion] = None - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "provider", "region", "status"] model_config = ConfigDict( 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 acb99002..cdb35e76 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.statsmon_troubleshooting_region import StatsmonTroubleshootingRegion from typing import Optional, Set @@ -29,7 +29,7 @@ class V1BackboneHealthEtWanMatrixGetResponseRegionStatus(BaseModel): V1BackboneHealthEtWanMatrixGetResponseRegionStatus """ # noqa: E501 region: Optional[StatsmonTroubleshootingRegion] = None - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["region", "status"] model_config = ConfigDict( 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 d9677e1a..34b0bfa9 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 @@ -28,8 +28,8 @@ class V1BackboneHealthEtetSlaMatrixGetResponseDevicesSummary(BaseModel): """ V1BackboneHealthEtetSlaMatrixGetResponseDevicesSummary """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") + 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"]}) region: Optional[StatsmonTroubleshootingRegion] = None __properties: ClassVar[List[str]] = ["deviceId", "deviceName", "region"] 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 4ed82e4b..4890caa7 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 @@ -30,7 +30,7 @@ class V1BackboneHealthEtetSlaMatrixGetResponseRegionStatus(BaseModel): """ # noqa: E501 peer_region: Optional[StatsmonTroubleshootingRegion] = Field(default=None, alias="peerRegion") region: Optional[StatsmonTroubleshootingRegion] = None - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["peerRegion", "region", "status"] model_config = ConfigDict( 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 68adc158..f03d816a 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 @@ -28,20 +28,20 @@ class V1BackboneHealthEtetSlaMatrixGetResponseSlaSummary(BaseModel): """ V1BackboneHealthEtetSlaMatrixGetResponseSlaSummary """ # noqa: E501 - 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") + 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"]}) peer_region: Optional[StatsmonTroubleshootingRegion] = Field(default=None, alias="peerRegion") region: Optional[StatsmonTroubleshootingRegion] = None - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["delayStatus", "delayValue", "deviceId", "deviceName", "jitterStatus", "jitterValue", "lossStatus", "lossValue", "mosValue", "peerDeviceId", "peerDeviceName", "peerRegion", "region", "status"] model_config = ConfigDict( 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 a5b2c9d5..ca75d363 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 @@ -27,20 +27,20 @@ class V1BackboneHealthOverviewPostRequestDimensions(BaseModel): """ V1BackboneHealthOverviewPostRequestDimensions """ # noqa: E501 - 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 + 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]}) __properties: ClassVar[List[str]] = ["certificateExpiry", "coreConnectivity", "coreCoreSlaPerformance", "coreWanPerformance", "cpu", "crashes", "creditExpiry", "disk", "fanSpeed", "licenseExpiry", "memory", "odpConnectivity", "t2Connectivity", "temperature"] model_config = ConfigDict( 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 3a10e61b..9486e56f 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 @@ -28,15 +28,15 @@ class V1BackboneHealthOverviewPostResponseDeviceSummary(BaseModel): """ V1BackboneHealthOverviewPostResponseDeviceSummary """ # noqa: E501 - 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") + 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"]}) region: Optional[StatsmonTroubleshootingRegion] = None - selected_status: Optional[StrictStr] = Field(default=None, alias="selectedStatus") - system_status: Optional[StrictStr] = Field(default=None, alias="systemStatus") + 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"]}) __properties: ClassVar[List[str]] = ["controlStatus", "dataStatus", "deviceId", "deviceName", "deviceRole", "overallStatus", "region", "selectedStatus", "systemStatus"] model_config = ConfigDict( 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 1b0c35bd..e3033a21 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 @@ -27,8 +27,8 @@ class V1BackboneHealthTopDevicesByAlertsPostResponseDeviceCountsDeviceCount(Base """ V1BackboneHealthTopDevicesByAlertsPostResponseDeviceCountsDeviceCount """ # noqa: E501 - device_name: Optional[StrictStr] = Field(default=None, alias="deviceName") - num_alerts: Optional[StrictInt] = Field(default=None, alias="numAlerts") + 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]}) __properties: ClassVar[List[str]] = ["deviceName", "numAlerts"] model_config = ConfigDict( 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 02b8063f..7db3b38b 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 @@ -29,7 +29,7 @@ class V1BwtrackerRegionEdgeChartPostRequest(BaseModel): """ V1BwtrackerRegionEdgeChartPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] 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 26ef2537..2ec8c8f8 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 @@ -29,7 +29,7 @@ class V1BwtrackerRegionEdgeCsvPostRequest(BaseModel): """ V1BwtrackerRegionEdgeCsvPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] 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 3cc7978d..d6d708ae 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 @@ -29,7 +29,7 @@ class V1BwtrackerRegionEdgeDetailsPostRequest(BaseModel): """ V1BwtrackerRegionEdgeDetailsPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] 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 549d2c9d..63c217d4 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 @@ -29,7 +29,7 @@ class V1BwtrackerRegionEdgeSummaryPostRequest(BaseModel): """ V1BwtrackerRegionEdgeSummaryPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] 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 5f9351cc..184b750f 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 @@ -29,7 +29,7 @@ class V1BwtrackerRegionGatewayChartPostRequest(BaseModel): """ V1BwtrackerRegionGatewayChartPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] 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 0c9e059c..1137e577 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 @@ -29,7 +29,7 @@ class V1BwtrackerRegionGatewayCsvPostRequest(BaseModel): """ V1BwtrackerRegionGatewayCsvPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] 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 68e6718d..13ec3960 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 @@ -29,7 +29,7 @@ class V1BwtrackerRegionGatewayDetailsPostRequest(BaseModel): """ V1BwtrackerRegionGatewayDetailsPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] 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 99163d9e..8bd141ac 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 @@ -29,7 +29,7 @@ class V1BwtrackerRegionGatewaySummaryPostRequest(BaseModel): """ V1BwtrackerRegionGatewaySummaryPostRequest """ # noqa: E501 - region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId") + region_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="regionId", json_schema_extra={"examples": [12345678910]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "timeWindow"] 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 fd941563..693c6b14 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 @@ -29,8 +29,8 @@ class V1BwtrackerRegionSiteChartPostRequest(BaseModel): """ V1BwtrackerRegionSiteChartPostRequest """ # noqa: E501 - 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") + 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]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] 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 9612b9d4..cabeed70 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 @@ -29,8 +29,8 @@ class V1BwtrackerRegionSiteDetailsPostRequest(BaseModel): """ V1BwtrackerRegionSiteDetailsPostRequest """ # noqa: E501 - 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") + 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]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] 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 34484e9b..2903f732 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 @@ -29,8 +29,8 @@ class V1BwtrackerRegionSiteGatewayChartPostRequest(BaseModel): """ V1BwtrackerRegionSiteGatewayChartPostRequest """ # noqa: E501 - 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") + 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]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] 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 ca0666bf..4133aa81 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 @@ -29,8 +29,8 @@ class V1BwtrackerRegionSiteGatewayDetailsPostRequest(BaseModel): """ V1BwtrackerRegionSiteGatewayDetailsPostRequest """ # noqa: E501 - 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") + 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]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] 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 5ca9857d..0fb700f8 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 @@ -29,8 +29,8 @@ class V1BwtrackerRegionSiteGatewaySummaryPostRequest(BaseModel): """ V1BwtrackerRegionSiteGatewaySummaryPostRequest """ # noqa: E501 - 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") + 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]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] 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 daae0732..c772d022 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 @@ -29,8 +29,8 @@ class V1BwtrackerRegionSiteSummaryPostRequest(BaseModel): """ V1BwtrackerRegionSiteSummaryPostRequest """ # noqa: E501 - 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") + 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]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] 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 781f7886..6aec3f18 100644 --- a/graphiant_sdk/models/v1_bwtracker_site_csv_post_request.py +++ b/graphiant_sdk/models/v1_bwtracker_site_csv_post_request.py @@ -29,8 +29,8 @@ class V1BwtrackerSiteCsvPostRequest(BaseModel): """ V1BwtrackerSiteCsvPostRequest """ # noqa: E501 - 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") + 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]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] 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 e3aebc89..7f06e991 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 @@ -29,8 +29,8 @@ class V1BwtrackerSiteGatewayCsvPostRequest(BaseModel): """ V1BwtrackerSiteGatewayCsvPostRequest """ # noqa: E501 - 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") + 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]}) time_window: Optional[StatsmonBandwidthtrackerTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["regionId", "siteId", "timeWindow"] 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 1c769658..838e9224 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_assurance_config import ManaV2AssuranceConfig from typing import Optional, Set @@ -29,7 +29,7 @@ class V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponseAssurance(Bas V1DataAssuranceAssurancesApplicationsBucketAppNameGetResponseAssurance """ # noqa: E501 configs: Optional[ManaV2AssuranceConfig] = None - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["configs", "id"] model_config = ConfigDict( 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 9f27d539..c38e2372 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 @@ -32,10 +32,10 @@ class V1DataAssuranceAssurancesGlobalGetResponseRow(BaseModel): V1DataAssuranceAssurancesGlobalGetResponseRow """ # noqa: E501 apps: Optional[List[V1DataAssuranceAssurancesGlobalGetResponseRowAppEntry]] = None - assurance_id: Optional[StrictInt] = Field(default=None, alias="assuranceId") - assurance_name: Optional[StrictStr] = Field(default=None, alias="assuranceName") + 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"]}) created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - flex_algo: Optional[StrictStr] = Field(default=None, alias="flexAlgo") + flex_algo: Optional[StrictStr] = Field(default=None, alias="flexAlgo", json_schema_extra={"examples": ["example string"]}) lans: Optional[List[V1DataAssuranceAssurancesGlobalGetResponseRowLanEntry]] = None sites: Optional[List[V1DataAssuranceAssurancesGlobalGetResponseRowSiteEntry]] = None updated_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="updatedAt") 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 b41f5fff..a415bfba 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 @@ -27,7 +27,7 @@ class V1DataAssuranceAssurancesGlobalGetResponseRowAppEntry(BaseModel): """ V1DataAssuranceAssurancesGlobalGetResponseRowAppEntry """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName") + app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["appName"] model_config = ConfigDict( 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 902c36f3..9246110c 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 @@ -27,7 +27,7 @@ class V1DataAssuranceAssurancesGlobalGetResponseRowLanEntry(BaseModel): """ V1DataAssuranceAssurancesGlobalGetResponseRowLanEntry """ # noqa: E501 - lan_name: Optional[StrictStr] = Field(default=None, alias="lanName") + lan_name: Optional[StrictStr] = Field(default=None, alias="lanName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["lanName"] model_config = ConfigDict( 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 e54c8bd1..a9b63d9d 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 @@ -27,7 +27,7 @@ class V1DataAssuranceAssurancesGlobalGetResponseRowSiteEntry(BaseModel): """ V1DataAssuranceAssurancesGlobalGetResponseRowSiteEntry """ # noqa: E501 - site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + site_name: Optional[StrictStr] = Field(default=None, alias="siteName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["siteName"] model_config = ConfigDict( 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 750517d2..7459fc70 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 @@ -28,7 +28,7 @@ class V1DataAssuranceAssurancesGlobalIdPutRequest(BaseModel): """ V1DataAssuranceAssurancesGlobalIdPutRequest """ # noqa: E501 - app_removal_reason: Optional[StrictStr] = Field(default=None, alias="appRemovalReason") + app_removal_reason: Optional[StrictStr] = Field(default=None, alias="appRemovalReason", json_schema_extra={"examples": ["example string"]}) config: Optional[ManaV2AssuranceConfig] = None __properties: ClassVar[List[str]] = ["appRemovalReason", "config"] 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 6ef2fcd7..f598bffa 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 @@ -27,7 +27,7 @@ class V1DataAssuranceAssurancesGlobalPostResponse(BaseModel): """ V1DataAssuranceAssurancesGlobalPostResponse """ # noqa: E501 - assurance_id: Optional[StrictInt] = Field(default=None, alias="assuranceId") + assurance_id: Optional[StrictInt] = Field(default=None, alias="assuranceId", json_schema_extra={"examples": [1234567891011]}) unsynced_device_names: Optional[List[StrictStr]] = Field(default=None, alias="unsyncedDeviceNames") __properties: ClassVar[List[str]] = ["assuranceId", "unsyncedDeviceNames"] 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 30df2c67..ba406220 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,9 +27,9 @@ class V1DataAssuranceFlexAlgosGetResponseEntry(BaseModel): """ V1DataAssuranceFlexAlgosGetResponseEntry """ # noqa: E501 - description: Optional[StrictStr] = None - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["description", "id", "name"] model_config = ConfigDict( 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 3350b588..ea7e4ac2 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 @@ -30,7 +30,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["nbrs", "pageInfo", "token"] model_config = ConfigDict( 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 cf64bb83..36552a0a 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 @@ -27,9 +27,9 @@ class V1DeviceRoutingBgpNbrsDetailsGetResponse(BaseModel): """ V1DeviceRoutingBgpNbrsDetailsGetResponse """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["ebgpMultiHopTtl", "holdTimer", "keepAliveTimer"] model_config = ConfigDict( 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 0bd8990e..a8a18be6 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 @@ -30,7 +30,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["nbrs", "pageInfo", "token"] model_config = ConfigDict( 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 f5f1259c..e157800d 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 @@ -31,7 +31,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["interfaces", "pageInfo", "token"] model_config = ConfigDict( 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 3a583a6b..1b5202a6 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 @@ -30,7 +30,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["nbrs", "pageInfo", "token"] model_config = ConfigDict( 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 e410fa30..de3c74fc 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 @@ -31,7 +31,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["lsas", "pageInfo", "token"] model_config = ConfigDict( 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 73511135..e182ca6d 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 @@ -31,7 +31,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["nbrs", "pageInfo", "token"] model_config = ConfigDict( 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 45ae4887..c871c8dc 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 @@ -30,7 +30,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["areas", "pageInfo", "token"] model_config = ConfigDict( 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 9fdd6f6d..99eaed24 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 @@ -31,7 +31,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["lsas", "pageInfo", "token"] model_config = ConfigDict( 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 7911c3b8..203b8361 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 @@ -31,7 +31,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["pageInfo", "routes", "token"] model_config = ConfigDict( 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 7fb115f1..c8feb3c3 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 @@ -31,7 +31,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["interfaces", "pageInfo", "token"] model_config = ConfigDict( 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 82f41609..fdd6c94b 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 @@ -31,7 +31,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["lsas", "pageInfo", "token"] model_config = ConfigDict( 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 93701d3c..3caa5260 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 @@ -31,7 +31,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["nbrs", "pageInfo", "token"] model_config = ConfigDict( 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 d6856f42..9891f328 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 @@ -30,7 +30,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["areas", "pageInfo", "token"] model_config = ConfigDict( 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 ea1257e2..d499f5ef 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 @@ -31,7 +31,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["lsas", "pageInfo", "token"] model_config = ConfigDict( 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 75ad2588..f930b0a4 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 @@ -31,7 +31,7 @@ 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.") + 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"]}) __properties: ClassVar[List[str]] = ["pageInfo", "routes", "token"] model_config = ConfigDict( 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 ecce80d0..c026ad5c 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 @@ -27,8 +27,8 @@ class V1DeviceRoutingRibRouteCountPostResponseRouteCount(BaseModel): """ V1DeviceRoutingRibRouteCountPostResponseRouteCount """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["routeCount", "vrfName"] model_config = ConfigDict( 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 ab8374cf..4097295c 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 @@ -27,7 +27,7 @@ class V1DeviceRoutingVrfBgpRouteCountPostRequest(BaseModel): """ V1DeviceRoutingVrfBgpRouteCountPostRequest """ # noqa: E501 - device_id: StrictInt = Field(description="Valid configured device ID > 0 (required)", alias="deviceId") + device_id: StrictInt = Field(description="Valid configured device ID > 0 (required)", alias="deviceId", json_schema_extra={"examples": [1000000]}) vrf_name: List[StrictStr] = Field(alias="vrfName") __properties: ClassVar[List[str]] = ["deviceId", "vrfName"] 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 696c5d1e..434f787d 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 @@ -27,8 +27,8 @@ class V1DeviceRoutingVrfBgpRouteCountPostResponseRouteCount(BaseModel): """ V1DeviceRoutingVrfBgpRouteCountPostResponseRouteCount """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["routeCount", "vrfName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_device_snapshot_post_request.py b/graphiant_sdk/models/v1_device_snapshot_post_request.py index 8d234f85..535e1464 100644 --- a/graphiant_sdk/models/v1_device_snapshot_post_request.py +++ b/graphiant_sdk/models/v1_device_snapshot_post_request.py @@ -27,10 +27,10 @@ class V1DeviceSnapshotPostRequest(BaseModel): """ V1DeviceSnapshotPostRequest """ # noqa: E501 - category: Optional[StrictStr] = None - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") - golden: Optional[StrictBool] = None - name: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["category", "deviceId", "golden", "name"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_device_snapshot_put_request.py b/graphiant_sdk/models/v1_device_snapshot_put_request.py index b7efa8dc..9a3bb8fe 100644 --- a/graphiant_sdk/models/v1_device_snapshot_put_request.py +++ b/graphiant_sdk/models/v1_device_snapshot_put_request.py @@ -27,9 +27,9 @@ class V1DeviceSnapshotPutRequest(BaseModel): """ V1DeviceSnapshotPutRequest """ # noqa: E501 - golden: Optional[StrictBool] = None - name: Optional[StrictStr] = None - snapshot_id: Optional[StrictInt] = Field(default=None, alias="snapshotId") + 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]}) __properties: ClassVar[List[str]] = ["golden", "name", "snapshotId"] model_config = ConfigDict( 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 3d6479db..ae5b0893 100644 --- a/graphiant_sdk/models/v1_device_status_history_post_request.py +++ b/graphiant_sdk/models/v1_device_status_history_post_request.py @@ -29,7 +29,7 @@ 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] = None + role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["deviceIds", "role"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_device_status_post_request.py b/graphiant_sdk/models/v1_device_status_post_request.py index 3d42b9df..a7a95988 100644 --- a/graphiant_sdk/models/v1_device_status_post_request.py +++ b/graphiant_sdk/models/v1_device_status_post_request.py @@ -29,7 +29,7 @@ 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] = None + role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["deviceIds", "role"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_devices_bringup_put_request.py b/graphiant_sdk/models/v1_devices_bringup_put_request.py index ab44caff..81695d33 100644 --- a/graphiant_sdk/models/v1_devices_bringup_put_request.py +++ b/graphiant_sdk/models/v1_devices_bringup_put_request.py @@ -29,7 +29,7 @@ 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] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["deviceIds", "status"] model_config = ConfigDict( 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 29851c51..8f92cf19 100644 --- a/graphiant_sdk/models/v1_devices_bringup_token_post_request.py +++ b/graphiant_sdk/models/v1_devices_bringup_token_post_request.py @@ -28,9 +28,9 @@ class V1DevicesBringupTokenPostRequest(BaseModel): """ V1DevicesBringupTokenPostRequest """ # noqa: E501 - role: Optional[StrictStr] = None + role: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) valid_till_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="validTillTs") - validity_sec: Optional[StrictInt] = Field(default=None, alias="validitySec") + validity_sec: Optional[StrictInt] = Field(default=None, alias="validitySec", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["role", "validTillTs", "validitySec"] model_config = ConfigDict( 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 0f26325f..76b4c9f4 100644 --- a/graphiant_sdk/models/v1_devices_bringup_token_post_response.py +++ b/graphiant_sdk/models/v1_devices_bringup_token_post_response.py @@ -28,7 +28,7 @@ class V1DevicesBringupTokenPostResponse(BaseModel): """ V1DevicesBringupTokenPostResponse """ # noqa: E501 - access_token: Optional[StrictStr] = Field(default=None, alias="accessToken") + access_token: Optional[StrictStr] = Field(default=None, alias="accessToken", json_schema_extra={"examples": ["example string"]}) valid_till_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="validTillTs") __properties: ClassVar[List[str]] = ["accessToken", "validTillTs"] 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 64c9217d..23337b07 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 @@ -27,10 +27,10 @@ class V1DevicesDeviceIdCandidateCircuitsGetResponseCircuitInfo(BaseModel): """ V1DevicesDeviceIdCandidateCircuitsGetResponseCircuitInfo """ # noqa: E501 - circuit: Optional[StrictStr] = None - interface: Optional[StrictStr] = None - loopback_interface: Optional[StrictStr] = Field(default=None, alias="loopbackInterface") - vrf: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["circuit", "interface", "loopbackInterface", "vrf"] model_config = ConfigDict( 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 5380f8cd..d1a12ab2 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 @@ -27,9 +27,9 @@ class V1DevicesDeviceIdCircuitsVrfAssociationsGetResponseVrfAssociations(BaseMod """ V1DevicesDeviceIdCircuitsVrfAssociationsGetResponseVrfAssociations """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["interfaceName", "loopbackInterfaceName", "vrfName"] model_config = ConfigDict( 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 fd3707d9..fbaca6be 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 @@ -32,10 +32,10 @@ class V1DevicesDeviceIdConfigPutRequest(BaseModel): """ # noqa: E501 configuration_metadata: Optional[ManaV2ConfigurationMetadata] = Field(default=None, alias="configurationMetadata") core: Optional[ManaV2CoreDeviceConfig] = None - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) edge: Optional[ManaV2EdgeDeviceConfig] = None - local_web_server_password: Optional[StrictStr] = Field(default=None, alias="localWebServerPassword") - replace: Optional[StrictBool] = 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]}) __properties: ClassVar[List[str]] = ["configurationMetadata", "core", "description", "edge", "localWebServerPassword", "replace"] model_config = ConfigDict( 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 1ac81a79..d4572570 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 @@ -27,8 +27,8 @@ class V1DevicesDeviceIdConfigPutResponse(BaseModel): """ V1DevicesDeviceIdConfigPutResponse """ # noqa: E501 - job_id: Optional[StrictInt] = Field(default=None, alias="jobId") - workflow_id: Optional[StrictStr] = Field(default=None, alias="workflowId") + 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"]}) __properties: ClassVar[List[str]] = ["jobId", "workflowId"] model_config = ConfigDict( 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 f7e5cf17..697bb523 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 @@ -27,8 +27,8 @@ class V1DevicesDeviceIdControllerPeersPutRequest(BaseModel): """ V1DevicesDeviceIdControllerPeersPutRequest """ # noqa: E501 - action: Optional[StrictStr] = None - controller_device_id: Optional[StrictInt] = Field(default=None, alias="controllerDeviceId") + 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]}) __properties: ClassVar[List[str]] = ["action", "controllerDeviceId"] model_config = ConfigDict( 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 6d2fb90d..5e2fea76 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 @@ -28,8 +28,8 @@ class V1DevicesDeviceIdDraftPostRequest(BaseModel): """ V1DevicesDeviceIdDraftPostRequest """ # noqa: E501 - base_version: Optional[StrictInt] = Field(default=None, alias="baseVersion") - description: Optional[StrictStr] = None + 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"]}) draft: Optional[ManaV2Device] = None __properties: ClassVar[List[str]] = ["baseVersion", "description", "draft"] 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 ce88750e..b4df8ccc 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class V1DevicesDeviceIdDraftPostResponse(BaseModel): """ V1DevicesDeviceIdDraftPostResponse """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( 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 e7379fb2..0d06335e 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 @@ -28,7 +28,7 @@ class V1DevicesDeviceIdJobsJobIdGetResponse(BaseModel): """ V1DevicesDeviceIdJobsJobIdGetResponse """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) job_status: Optional[ConfigWorkerJobStatus] = Field(default=None, alias="jobStatus") __properties: ClassVar[List[str]] = ["deviceId", "jobStatus"] 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 a40c201a..41d6bf96 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 @@ -27,10 +27,10 @@ class V1DevicesDeviceIdPolicyApplicationsGetResponseApplication(BaseModel): """ V1DevicesDeviceIdPolicyApplicationsGetResponseApplication """ # noqa: E501 - app_id: Optional[StrictInt] = Field(default=None, alias="appId") - description: Optional[StrictStr] = None - kind: Optional[StrictStr] = None - name: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["appId", "description", "kind", "name"] model_config = ConfigDict( 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 5d84e81a..8452ff9e 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,12 +27,12 @@ class V1DevicesDeviceIdVrfProtocolsGetResponse(BaseModel): """ V1DevicesDeviceIdVrfProtocolsGetResponse """ # noqa: E501 - bgp: Optional[StrictBool] = None - connected: Optional[StrictBool] = None - graphiant: Optional[StrictBool] = None - ospfv2: Optional[StrictBool] = None - ospfv3: Optional[StrictBool] = None - static: Optional[StrictBool] = None + 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]}) __properties: ClassVar[List[str]] = ["bgp", "connected", "graphiant", "ospfv2", "ospfv3", "static"] model_config = ConfigDict( 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 7bf26dca..c5a6b1ec 100644 --- a/graphiant_sdk/models/v1_devices_inventory_enterprise_put_request.py +++ b/graphiant_sdk/models/v1_devices_inventory_enterprise_put_request.py @@ -28,7 +28,7 @@ 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") + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["deviceSerials", "enterpriseId"] model_config = ConfigDict( 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 af5de1e3..0cb4aff5 100644 --- a/graphiant_sdk/models/v1_devices_inventory_post_response_data.py +++ b/graphiant_sdk/models/v1_devices_inventory_post_response_data.py @@ -27,8 +27,8 @@ class V1DevicesInventoryPostResponseData(BaseModel): """ V1DevicesInventoryPostResponseData """ # noqa: E501 - device_serial: Optional[StrictStr] = Field(default=None, alias="deviceSerial") - uuid: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["deviceSerial", "uuid"] model_config = ConfigDict( 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 fcad3086..b5533710 100644 --- a/graphiant_sdk/models/v1_devices_oauth_authorization_get_response.py +++ b/graphiant_sdk/models/v1_devices_oauth_authorization_get_response.py @@ -27,7 +27,7 @@ class V1DevicesOauthAuthorizationGetResponse(BaseModel): """ V1DevicesOauthAuthorizationGetResponse """ # noqa: E501 - auth_code: Optional[StrictStr] = Field(default=None, description="OAuth authorization code") + auth_code: Optional[StrictStr] = Field(default=None, description="OAuth authorization code", json_schema_extra={"examples": ["auth-code-12345"]}) __properties: ClassVar[List[str]] = ["auth_code"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_devices_oauth_post_request.py b/graphiant_sdk/models/v1_devices_oauth_post_request.py index 260613c8..9edd57bd 100644 --- a/graphiant_sdk/models/v1_devices_oauth_post_request.py +++ b/graphiant_sdk/models/v1_devices_oauth_post_request.py @@ -27,12 +27,12 @@ class V1DevicesOauthPostRequest(BaseModel): """ V1DevicesOauthPostRequest """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["grant_type", "scope", "state", "code_verify", "pt", "bm"] @field_validator('grant_type') diff --git a/graphiant_sdk/models/v1_devices_oauth_post_response.py b/graphiant_sdk/models/v1_devices_oauth_post_response.py index d64c8461..0399a738 100644 --- a/graphiant_sdk/models/v1_devices_oauth_post_response.py +++ b/graphiant_sdk/models/v1_devices_oauth_post_response.py @@ -27,9 +27,9 @@ class V1DevicesOauthPostResponse(BaseModel): """ V1DevicesOauthPostResponse """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["access_token", "expires_in", "token_type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_devices_rma_post_request.py b/graphiant_sdk/models/v1_devices_rma_post_request.py index c33bfe51..316a026c 100644 --- a/graphiant_sdk/models/v1_devices_rma_post_request.py +++ b/graphiant_sdk/models/v1_devices_rma_post_request.py @@ -28,8 +28,8 @@ class V1DevicesRmaPostRequest(BaseModel): """ V1DevicesRmaPostRequest """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["currentDeviceId", "newDeviceId"] model_config = ConfigDict( 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 1baf01d6..47e357b9 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 @@ -28,7 +28,7 @@ class V1DevicesRoutingVrfProtocolRouteCountGetResponseProtocolCount(BaseModel): """ V1DevicesRoutingVrfProtocolRouteCountGetResponseProtocolCount """ # noqa: E501 - protocol: Optional[StrictStr] = Field(default=None, description="Configured protocol (required)") + protocol: Optional[StrictStr] = Field(default=None, description="Configured protocol (required)", json_schema_extra={"examples": ["OSPF"]}) route_count: Optional[RoutingAfiRouteCount] = Field(default=None, alias="routeCount") __properties: ClassVar[List[str]] = ["protocol", "routeCount"] 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 a152e5d4..d7ab2707 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 @@ -27,10 +27,10 @@ class V1DevicesSessionStatusPostResponseData(BaseModel): """ V1DevicesSessionStatusPostResponseData """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["coreBgpNeighborsCount", "deviceId", "odpBgpNeighborsCount", "wanInterfacesCount"] model_config = ConfigDict( 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 a3225c46..49c99f9f 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 @@ -29,8 +29,8 @@ class V1DevicesSummaryGetResponseSiteSummary(BaseModel): V1DevicesSummaryGetResponseSiteSummary """ # noqa: E501 devices: Optional[List[V1DevicesSummaryGetResponseSiteSummaryDeviceSummary]] = None - site_id: Optional[StrictInt] = Field(default=None, alias="siteId") - site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + 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"]}) __properties: ClassVar[List[str]] = ["devices", "siteId", "siteName"] model_config = ConfigDict( 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 44a4ca9d..41ead911 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 @@ -28,14 +28,14 @@ class V1DevicesSummaryGetResponseSiteSummaryDeviceSummary(BaseModel): """ V1DevicesSummaryGetResponseSiteSummaryDeviceSummary """ # noqa: E501 - id: Optional[StrictInt] = None - is_virtual: Optional[StrictBool] = Field(default=None, alias="isVirtual") - name: Optional[StrictStr] = None + 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"]}) override_region: Optional[ManaV2Region] = Field(default=None, alias="overrideRegion") - platform_name: Optional[StrictStr] = Field(default=None, alias="platformName") + platform_name: Optional[StrictStr] = Field(default=None, alias="platformName", json_schema_extra={"examples": ["example string"]}) region: Optional[ManaV2Region] = None - role: Optional[StrictStr] = None - status: Optional[StrictStr] = 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"]}) __properties: ClassVar[List[str]] = ["id", "isVirtual", "name", "overrideRegion", "platformName", "region", "role", "status"] model_config = ConfigDict( 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 96bbe156..a49017b9 100644 --- a/graphiant_sdk/models/v1_devices_upgrade_schedule_put_request.py +++ b/graphiant_sdk/models/v1_devices_upgrade_schedule_put_request.py @@ -30,7 +30,7 @@ class V1DevicesUpgradeSchedulePutRequest(BaseModel): """ V1DevicesUpgradeSchedulePutRequest """ # noqa: E501 - action: Optional[StrictStr] = None + action: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) device_ids: Optional[List[StrictInt]] = Field(default=None, alias="deviceIds") device_versions: Optional[List[V1DevicesUpgradeSchedulePutRequestDeviceVersion]] = Field(default=None, alias="deviceVersions") ts: Optional[GoogleProtobufTimestamp] = None 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 a583e19c..f912f9bc 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 @@ -28,7 +28,7 @@ class V1DevicesUpgradeSchedulePutRequestDeviceVersion(BaseModel): """ V1DevicesUpgradeSchedulePutRequestDeviceVersion """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) version: Optional[UpgradeSwVersion] = None __properties: ClassVar[List[str]] = ["deviceId", "version"] 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 01f8d2d4..358f56c2 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 @@ -27,7 +27,7 @@ class V1DiagnosticArchiveCreateDeviceIdPostRequest(BaseModel): """ V1DiagnosticArchiveCreateDeviceIdPostRequest """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="Description of the requested archive") + 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"]}) __properties: ClassVar[List[str]] = ["description"] model_config = ConfigDict( 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 8c252f0e..e294189a 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 @@ -27,7 +27,7 @@ class V1DiagnosticArchiveCreateDeviceIdPostResponse(BaseModel): """ V1DiagnosticArchiveCreateDeviceIdPostResponse """ # noqa: E501 - archive_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific archive", alias="archiveId") + archive_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific archive", alias="archiveId", json_schema_extra={"examples": [1000000]}) __properties: ClassVar[List[str]] = ["archiveId"] model_config = ConfigDict( 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 1554b47f..7aa82d38 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 @@ -27,7 +27,7 @@ class V1DiagnosticArchiveEditArchiveIdPutRequest(BaseModel): """ V1DiagnosticArchiveEditArchiveIdPutRequest """ # noqa: E501 - description: Optional[StrictStr] = Field(default=None, description="Description of the requested archive") + 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"]}) __properties: ClassVar[List[str]] = ["description"] model_config = ConfigDict( 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 964737f2..8088ecf0 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 @@ -27,10 +27,10 @@ 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") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["hard", "lanSegment", "localInterface", "neighbor"] model_config = ConfigDict( 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 aa31fe1b..3d0e86c7 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 @@ -28,10 +28,10 @@ class V1DiagnosticGnmiPingGetResponseResult(BaseModel): """ V1DiagnosticGnmiPingGetResponseResult """ # noqa: E501 - 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") + 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"]}) rtt: Optional[GoogleProtobufDuration] = None - tt_device_id: Optional[StrictInt] = Field(default=None, alias="ttDeviceId") + tt_device_id: Optional[StrictInt] = Field(default=None, alias="ttDeviceId", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["address", "error", "rtt", "ttDeviceId"] model_config = ConfigDict( 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 19730b8d..cd81a247 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 @@ -27,7 +27,7 @@ class V1DiagnosticInterfaceResetDeviceIdPutRequest(BaseModel): """ V1DiagnosticInterfaceResetDeviceIdPutRequest """ # noqa: E501 - interface: Optional[StrictStr] = Field(default=None, description="interface name") + interface: Optional[StrictStr] = Field(default=None, description="interface name", json_schema_extra={"examples": ["GigabitEthernet0/2"]}) __properties: ClassVar[List[str]] = ["interface"] model_config = ConfigDict( 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 47afe600..546843b0 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 @@ -27,7 +27,7 @@ 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") + pass_code: Optional[StrictStr] = Field(default=None, description="six digit one-time passcode to access the device", alias="passCode", json_schema_extra={"examples": ["123456"]}) __properties: ClassVar[List[str]] = ["passCode"] model_config = ConfigDict( 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 c3bf8457..b5f50f88 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 @@ -28,11 +28,11 @@ 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") - 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.") + 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"]}) __properties: ClassVar[List[str]] = ["failureReason", "fileName", "status", "uploadProgress", "url"] model_config = ConfigDict( 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 81651ab1..fa13752a 100644 --- a/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_request.py +++ b/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_request.py @@ -30,10 +30,10 @@ class V1DiagnosticPacketcaptureStartPostRequest(BaseModel): """ V1DiagnosticPacketcaptureStartPostRequest """ # noqa: E501 - 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)") + 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]}) filter: Optional[DiagnosticToolsPCapFilter] = None - max_packet_counter: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, description="Packet capture limit.", alias="maxPacketCounter") + 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]}) target: DiagnosticToolsTargetType __properties: ClassVar[List[str]] = ["deviceId", "duration", "filter", "maxPacketCounter", "target"] 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 cd47824c..43474b2e 100644 --- a/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_response.py +++ b/graphiant_sdk/models/v1_diagnostic_packetcapture_start_post_response.py @@ -27,7 +27,7 @@ class V1DiagnosticPacketcaptureStartPostResponse(BaseModel): """ V1DiagnosticPacketcaptureStartPostResponse """ # noqa: E501 - pcap_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific packet capture", alias="pcapId") + pcap_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific packet capture", alias="pcapId", json_schema_extra={"examples": [1000000]}) __properties: ClassVar[List[str]] = ["pcapId"] model_config = ConfigDict( 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 81504ee1..9958516d 100644 --- a/graphiant_sdk/models/v1_diagnostic_packetcapture_stop_post_request.py +++ b/graphiant_sdk/models/v1_diagnostic_packetcapture_stop_post_request.py @@ -27,7 +27,7 @@ class V1DiagnosticPacketcaptureStopPostRequest(BaseModel): """ V1DiagnosticPacketcaptureStopPostRequest """ # noqa: E501 - pcap_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific packet capture", alias="pcapId") + pcap_id: Optional[StrictInt] = Field(default=None, description="Unique identifier for a specific packet capture", alias="pcapId", json_schema_extra={"examples": [1000000]}) __properties: ClassVar[List[str]] = ["pcapId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_diagnostic_ping_post_request.py b/graphiant_sdk/models/v1_diagnostic_ping_post_request.py index 2217ec62..fc960c77 100644 --- a/graphiant_sdk/models/v1_diagnostic_ping_post_request.py +++ b/graphiant_sdk/models/v1_diagnostic_ping_post_request.py @@ -29,10 +29,10 @@ class V1DiagnosticPingPostRequest(BaseModel): """ V1DiagnosticPingPostRequest """ # noqa: E501 - device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Valid Provisioned device ID (required)", alias="deviceId") + device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Valid Provisioned device ID (required)", alias="deviceId", json_schema_extra={"examples": [10000000]}) params: Optional[DiagnosticToolsDiagnosticParams] = None - 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") + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "params", "token", "transportType"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_diagnostic_ping_post_response.py b/graphiant_sdk/models/v1_diagnostic_ping_post_response.py index 6ee8b48b..fc0d3efc 100644 --- a/graphiant_sdk/models/v1_diagnostic_ping_post_response.py +++ b/graphiant_sdk/models/v1_diagnostic_ping_post_response.py @@ -29,7 +29,7 @@ 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)") + token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup (required)", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["result", "token"] model_config = ConfigDict( 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 133880fb..479bda23 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 @@ -27,7 +27,7 @@ class V1DiagnosticRebootDeviceIdPutRequest(BaseModel): """ V1DiagnosticRebootDeviceIdPutRequest """ # noqa: E501 - reason: StrictStr = Field(description="Reason for reboot (required)") + reason: StrictStr = Field(description="Reason for reboot (required)", json_schema_extra={"examples": ["User requested reboot"]}) __properties: ClassVar[List[str]] = ["reason"] model_config = ConfigDict( 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 27a36aa1..1429fab2 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 @@ -27,9 +27,9 @@ class V1DiagnosticResetIpsecSessionDeviceIdPutRequest(BaseModel): """ V1DiagnosticResetIpsecSessionDeviceIdPutRequest """ # noqa: E501 - 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") + 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]}) vrf: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["all3RdParty", "allControllers", "allE2E", "vrf"] diff --git a/graphiant_sdk/models/v1_diagnostic_speedtest_post_request.py b/graphiant_sdk/models/v1_diagnostic_speedtest_post_request.py index 55e05a73..e7aa2553 100644 --- a/graphiant_sdk/models/v1_diagnostic_speedtest_post_request.py +++ b/graphiant_sdk/models/v1_diagnostic_speedtest_post_request.py @@ -29,7 +29,7 @@ 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") + 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]}) params: Optional[DiagnosticToolsSpeedtestParams] = None __properties: ClassVar[List[str]] = ["deviceId", "params"] diff --git a/graphiant_sdk/models/v1_diagnostic_speedtest_post_response.py b/graphiant_sdk/models/v1_diagnostic_speedtest_post_response.py index b8214452..01c7165f 100644 --- a/graphiant_sdk/models/v1_diagnostic_speedtest_post_response.py +++ b/graphiant_sdk/models/v1_diagnostic_speedtest_post_response.py @@ -29,7 +29,7 @@ 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)") + token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup (required)", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["result", "token"] model_config = ConfigDict( 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 7bad87dd..0c09cac6 100644 --- a/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_request.py +++ b/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_request.py @@ -28,8 +28,8 @@ 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["deviceId", "historyLength"] model_config = ConfigDict( 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 2b2b7291..cd76ac62 100644 --- a/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_response.py +++ b/graphiant_sdk/models/v1_diagnostic_speedtest_report_put_response.py @@ -27,8 +27,8 @@ class V1DiagnosticSpeedtestReportPutResponse(BaseModel): """ V1DiagnosticSpeedtestReportPutResponse """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["report", "reportId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_diagnostic_traceroute_post_request.py b/graphiant_sdk/models/v1_diagnostic_traceroute_post_request.py index 85c7960f..d61fa4f0 100644 --- a/graphiant_sdk/models/v1_diagnostic_traceroute_post_request.py +++ b/graphiant_sdk/models/v1_diagnostic_traceroute_post_request.py @@ -29,10 +29,10 @@ class V1DiagnosticTraceroutePostRequest(BaseModel): """ V1DiagnosticTraceroutePostRequest """ # noqa: E501 - device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Valid Provisioned device ID (required)", alias="deviceId") + device_id: Annotated[int, Field(strict=True, ge=0)] = Field(description="Valid Provisioned device ID (required)", alias="deviceId", json_schema_extra={"examples": [10000000]}) params: Optional[DiagnosticToolsDiagnosticParams] = None - 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") + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "params", "token", "transportType"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_diagnostic_traceroute_post_response.py b/graphiant_sdk/models/v1_diagnostic_traceroute_post_response.py index 591b8bde..2c912e30 100644 --- a/graphiant_sdk/models/v1_diagnostic_traceroute_post_response.py +++ b/graphiant_sdk/models/v1_diagnostic_traceroute_post_response.py @@ -29,7 +29,7 @@ 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)") + token: Optional[StrictStr] = Field(default=None, description="Token to be sent in subsequent lookup (required)", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["result", "token"] model_config = ConfigDict( 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 028867ed..97b41ced 100644 --- a/graphiant_sdk/models/v1_edges_hardware_unassigned_get_response.py +++ b/graphiant_sdk/models/v1_edges_hardware_unassigned_get_response.py @@ -30,7 +30,7 @@ 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") + is_new_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="isNewCount", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["inventory", "isNewCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_edges_summary_get_response.py b/graphiant_sdk/models/v1_edges_summary_get_response.py index 35f5c5c4..ecd11384 100644 --- a/graphiant_sdk/models/v1_edges_summary_get_response.py +++ b/graphiant_sdk/models/v1_edges_summary_get_response.py @@ -30,7 +30,7 @@ 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") + is_new_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="isNewCount", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["edgesSummary", "isNewCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_enterprise_contract_put_request.py b/graphiant_sdk/models/v1_enterprise_contract_put_request.py index 68ca41a4..c49f5a45 100644 --- a/graphiant_sdk/models/v1_enterprise_contract_put_request.py +++ b/graphiant_sdk/models/v1_enterprise_contract_put_request.py @@ -28,7 +28,7 @@ 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 monthly if no expiration date is provided", alias="contractedCredits") + 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]}) expiration_date: Optional[ManaV2TimePeriod] = Field(default=None, alias="expirationDate") __properties: ClassVar[List[str]] = ["contractedCredits", "expirationDate"] 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 e1ccf341..23961365 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 @@ -27,7 +27,7 @@ class V1EnterprisesEnterpriseIdAdminGetResponse(BaseModel): """ V1EnterprisesEnterpriseIdAdminGetResponse """ # noqa: E501 - admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail") + admin_email: Optional[StrictStr] = Field(default=None, alias="adminEmail", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["adminEmail"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_enterprises_patch_request.py b/graphiant_sdk/models/v1_enterprises_patch_request.py index e220b2dc..2dd97bf3 100644 --- a/graphiant_sdk/models/v1_enterprises_patch_request.py +++ b/graphiant_sdk/models/v1_enterprises_patch_request.py @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.common_billing_contract import CommonBillingContract from graphiant_sdk.models.v1_enterprises_patch_request_token_expiry import V1EnterprisesPatchRequestTokenExpiry from typing import Optional, Set from typing_extensions import Self @@ -28,20 +29,21 @@ class V1EnterprisesPatchRequest(BaseModel): """ V1EnterprisesPatchRequest """ # noqa: E501 - 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_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") + 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"]}) + 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"]}) token_expiry: Optional[V1EnterprisesPatchRequestTokenExpiry] = Field(default=None, alias="tokenExpiry") - __properties: ClassVar[List[str]] = ["adminEmail", "cloudProvider", "companyName", "creditLimit", "description", "enterpriseId", "impersonationEnabled", "logo", "marketplaceId", "portalBanner", "proxyTenantId", "smallLogo", "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, @@ -82,6 +84,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of enterprise_contract + if self.enterprise_contract: + _dict['enterpriseContract'] = self.enterprise_contract.to_dict() # override the default output from pydantic by calling `to_dict()` of token_expiry if self.token_expiry: _dict['tokenExpiry'] = self.token_expiry.to_dict() @@ -102,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "companyName": obj.get("companyName"), "creditLimit": obj.get("creditLimit"), "description": obj.get("description"), + "enterpriseContract": CommonBillingContract.from_dict(obj["enterpriseContract"]) if obj.get("enterpriseContract") is not None else None, "enterpriseId": obj.get("enterpriseId"), "impersonationEnabled": obj.get("impersonationEnabled"), "logo": obj.get("logo"), 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 7c5e494b..72df357e 100644 --- a/graphiant_sdk/models/v1_enterprises_patch_request_token_expiry.py +++ b/graphiant_sdk/models/v1_enterprises_patch_request_token_expiry.py @@ -27,8 +27,8 @@ class V1EnterprisesPatchRequestTokenExpiry(BaseModel): """ V1EnterprisesPatchRequestTokenExpiry """ # noqa: E501 - length: Optional[StrictInt] = None - time_unit: Optional[StrictStr] = Field(default=None, alias="timeUnit") + 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"]}) __properties: ClassVar[List[str]] = ["length", "timeUnit"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_enterprises_put_request.py b/graphiant_sdk/models/v1_enterprises_put_request.py index b1491c53..209753a7 100644 --- a/graphiant_sdk/models/v1_enterprises_put_request.py +++ b/graphiant_sdk/models/v1_enterprises_put_request.py @@ -19,6 +19,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional +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 @@ -27,19 +28,20 @@ class V1EnterprisesPutRequest(BaseModel): """ V1EnterprisesPutRequest """ # noqa: E501 - 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 - 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", "logo", "marketplaceId", "smallLogo"] + 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"]}) + 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"]}) + __properties: ClassVar[List[str]] = ["accountType", "adminEmail", "adminFirstName", "adminLastName", "adminTimeZone", "cloudProvider", "companyName", "creditLimit", "description", "enterpriseContract", "logo", "marketplaceId", "smallLogo"] model_config = ConfigDict( validate_by_name=True, @@ -80,6 +82,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of enterprise_contract + if self.enterprise_contract: + _dict['enterpriseContract'] = self.enterprise_contract.to_dict() return _dict @classmethod @@ -101,6 +106,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "companyName": obj.get("companyName"), "creditLimit": obj.get("creditLimit"), "description": obj.get("description"), + "enterpriseContract": CommonBillingContract.from_dict(obj["enterpriseContract"]) if obj.get("enterpriseContract") is not None else None, "logo": obj.get("logo"), "marketplaceId": obj.get("marketplaceId"), "smallLogo": obj.get("smallLogo") 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 3c6acf94..29d84f16 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 @@ -28,14 +28,14 @@ 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)") - 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") + 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"]}) 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") + 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]}) __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "serviceId", "siteId", "subscriptionName", "timeWindow", "vrfId"] model_config = ConfigDict( 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 b60f9769..d83053e7 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 @@ -28,7 +28,7 @@ class V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse(BaseModel) """ V1ExtranetB2bMonitoringPeeringServiceBandwidthUsagePostResponse """ # noqa: E501 - bw_allocation: Optional[StrictInt] = Field(default=None, description="the bandwidth allocation for the entity in kbps", alias="bwAllocation") + bw_allocation: Optional[StrictInt] = Field(default=None, description="the bandwidth allocation for the entity in kbps", alias="bwAllocation", json_schema_extra={"examples": [1000000]}) 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"] 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 7c0d0cc0..e793cbf5 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 @@ -28,9 +28,9 @@ class V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest(BaseMode """ V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostRequest """ # noqa: E501 - 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") + 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]}) time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "timeWindow"] 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 93cb90ce..b36de739 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 @@ -29,8 +29,8 @@ class V1ExtranetB2bMonitoringPeeringServiceConsumersUsageTopPostResponse(BaseMod 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") - total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage") + 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]}) __properties: ClassVar[List[str]] = ["topConsumers", "totalCustomers", "totalUsage"] model_config = ConfigDict( 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 a3564c93..dabd3fc2 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 @@ -28,14 +28,14 @@ class V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest(BaseMo """ V1ExtranetB2bMonitoringPeeringServiceConsumptionOverviewPostRequest """ # noqa: E501 - 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") + 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]}) 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") + vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId", json_schema_extra={"examples": [1]}) __properties: ClassVar[List[str]] = ["customerName", "flippedView", "id", "isB2B", "isProvider", "siteId", "timeWindow", "vrfId"] model_config = ConfigDict( 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 99ae67be..719b1e41 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 @@ -31,7 +31,7 @@ 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") + total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage", json_schema_extra={"examples": [1000000]}) __properties: ClassVar[List[str]] = ["firstLevel", "secondLevel", "thirdLevel", "totalUsage"] model_config = ConfigDict( 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 632d8d1c..b611d641 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 @@ -28,8 +28,8 @@ class V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest(BaseMo """ V1ExtranetB2bMonitoringPeeringServiceServiceCustomerListPostRequest """ # noqa: E501 - id: StrictInt = Field(description="service id (required)") - is_provider: StrictBool = Field(description="whether the entity is a provider or consumer (required)", alias="isProvider") + 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]}) time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isProvider", "timeWindow"] 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 0ec0ad55..02564d4d 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 @@ -27,8 +27,8 @@ class V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest(BaseModel): """ V1ExtranetB2bMonitoringPeeringServiceServiceHealthPostRequest """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["id", "isProvider"] model_config = ConfigDict( 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 cd136d7e..99ddc48a 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 @@ -28,13 +28,13 @@ class V1ExtranetB2bMonitoringPeeringServiceServiceOvertimeConsumptionPostRequest """ 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)") - 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") + 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"]}) 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") + vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId", json_schema_extra={"examples": [1]}) __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "siteId", "subscriptionName", "timeWindow", "vrfId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_extranet_public_vif_check_post_request.py b/graphiant_sdk/models/v1_extranet_public_vif_check_post_request.py new file mode 100644 index 00000000..acc84222 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_public_vif_check_post_request.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_public_vif_consumer_policy import ManaV2PublicVifConsumerPolicy +from graphiant_sdk.models.mana_v2_public_vif_producer_policy import ManaV2PublicVifProducerPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1ExtranetPublicVifCheckPostRequest(BaseModel): + """ + V1ExtranetPublicVifCheckPostRequest + """ # noqa: E501 + consumer_policy: ManaV2PublicVifConsumerPolicy = Field(alias="consumerPolicy") + producer_policy: ManaV2PublicVifProducerPolicy = Field(alias="producerPolicy") + 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"]}) + __properties: ClassVar[List[str]] = ["consumerPolicy", "producerPolicy", "serviceName", "type"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifCheckPostRequest 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 consumer_policy + if self.consumer_policy: + _dict['consumerPolicy'] = self.consumer_policy.to_dict() + # override the default output from pydantic by calling `to_dict()` of producer_policy + if self.producer_policy: + _dict['producerPolicy'] = self.producer_policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifCheckPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerPolicy": ManaV2PublicVifConsumerPolicy.from_dict(obj["consumerPolicy"]) if obj.get("consumerPolicy") is not None else None, + "producerPolicy": ManaV2PublicVifProducerPolicy.from_dict(obj["producerPolicy"]) if obj.get("producerPolicy") is not None else None, + "serviceName": obj.get("serviceName"), + "type": obj.get("type") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_public_vif_check_post_response.py b/graphiant_sdk/models/v1_extranet_public_vif_check_post_response.py new file mode 100644 index 00000000..181a1398 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_public_vif_check_post_response.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 graphiant_sdk.models.mana_v2_public_vif_consumer_policy_response import ManaV2PublicVifConsumerPolicyResponse +from graphiant_sdk.models.mana_v2_public_vif_producer_policy_response import ManaV2PublicVifProducerPolicyResponse +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1ExtranetPublicVifCheckPostResponse(BaseModel): + """ + V1ExtranetPublicVifCheckPostResponse + """ # noqa: E501 + consumer_policy: Optional[ManaV2PublicVifConsumerPolicyResponse] = Field(default=None, alias="consumerPolicy") + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + producer_policy: Optional[ManaV2PublicVifProducerPolicyResponse] = Field(default=None, alias="producerPolicy") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + __properties: ClassVar[List[str]] = ["consumerPolicy", "id", "producerPolicy", "serviceName", "type"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifCheckPostResponse 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 consumer_policy + if self.consumer_policy: + _dict['consumerPolicy'] = self.consumer_policy.to_dict() + # override the default output from pydantic by calling `to_dict()` of producer_policy + if self.producer_policy: + _dict['producerPolicy'] = self.producer_policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifCheckPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerPolicy": ManaV2PublicVifConsumerPolicyResponse.from_dict(obj["consumerPolicy"]) if obj.get("consumerPolicy") is not None else None, + "id": obj.get("id"), + "producerPolicy": ManaV2PublicVifProducerPolicyResponse.from_dict(obj["producerPolicy"]) if obj.get("producerPolicy") is not None else None, + "serviceName": obj.get("serviceName"), + "type": obj.get("type") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_public_vif_get_response.py b/graphiant_sdk/models/v1_extranet_public_vif_get_response.py new file mode 100644 index 00000000..a32180c4 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_public_vif_get_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_public_vif_summary import ManaV2PublicVifSummary +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1ExtranetPublicVifGetResponse(BaseModel): + """ + V1ExtranetPublicVifGetResponse + """ # noqa: E501 + summary: Optional[List[ManaV2PublicVifSummary]] = None + __properties: ClassVar[List[str]] = ["summary"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifGetResponse 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 V1ExtranetPublicVifGetResponse 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_extranet_public_vif_id_get_response.py b/graphiant_sdk/models/v1_extranet_public_vif_id_get_response.py new file mode 100644 index 00000000..d0ddfa4f --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_public_vif_id_get_response.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 graphiant_sdk.models.mana_v2_public_vif_consumer_policy_response import ManaV2PublicVifConsumerPolicyResponse +from graphiant_sdk.models.mana_v2_public_vif_producer_policy_response import ManaV2PublicVifProducerPolicyResponse +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1ExtranetPublicVifIdGetResponse(BaseModel): + """ + V1ExtranetPublicVifIdGetResponse + """ # noqa: E501 + consumer_policy: Optional[ManaV2PublicVifConsumerPolicyResponse] = Field(default=None, alias="consumerPolicy") + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + producer_policy: Optional[ManaV2PublicVifProducerPolicyResponse] = Field(default=None, alias="producerPolicy") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + __properties: ClassVar[List[str]] = ["consumerPolicy", "id", "producerPolicy", "serviceName", "type"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifIdGetResponse 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 consumer_policy + if self.consumer_policy: + _dict['consumerPolicy'] = self.consumer_policy.to_dict() + # override the default output from pydantic by calling `to_dict()` of producer_policy + if self.producer_policy: + _dict['producerPolicy'] = self.producer_policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifIdGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerPolicy": ManaV2PublicVifConsumerPolicyResponse.from_dict(obj["consumerPolicy"]) if obj.get("consumerPolicy") is not None else None, + "id": obj.get("id"), + "producerPolicy": ManaV2PublicVifProducerPolicyResponse.from_dict(obj["producerPolicy"]) if obj.get("producerPolicy") is not None else None, + "serviceName": obj.get("serviceName"), + "type": obj.get("type") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_public_vif_id_put_request.py b/graphiant_sdk/models/v1_extranet_public_vif_id_put_request.py new file mode 100644 index 00000000..e6f2f03a --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_public_vif_id_put_request.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +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_public_vif_consumer_policy import ManaV2PublicVifConsumerPolicy +from graphiant_sdk.models.mana_v2_public_vif_producer_policy import ManaV2PublicVifProducerPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1ExtranetPublicVifIdPutRequest(BaseModel): + """ + V1ExtranetPublicVifIdPutRequest + """ # noqa: E501 + consumer_policy: Optional[ManaV2PublicVifConsumerPolicy] = Field(default=None, alias="consumerPolicy") + producer_policy: ManaV2PublicVifProducerPolicy = Field(alias="producerPolicy") + __properties: ClassVar[List[str]] = ["consumerPolicy", "producerPolicy"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifIdPutRequest 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 consumer_policy + if self.consumer_policy: + _dict['consumerPolicy'] = self.consumer_policy.to_dict() + # override the default output from pydantic by calling `to_dict()` of producer_policy + if self.producer_policy: + _dict['producerPolicy'] = self.producer_policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifIdPutRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerPolicy": ManaV2PublicVifConsumerPolicy.from_dict(obj["consumerPolicy"]) if obj.get("consumerPolicy") is not None else None, + "producerPolicy": ManaV2PublicVifProducerPolicy.from_dict(obj["producerPolicy"]) if obj.get("producerPolicy") is not None else None + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_public_vif_id_put_response.py b/graphiant_sdk/models/v1_extranet_public_vif_id_put_response.py new file mode 100644 index 00000000..4ceff267 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_public_vif_id_put_response.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 graphiant_sdk.models.mana_v2_public_vif_consumer_policy_response import ManaV2PublicVifConsumerPolicyResponse +from graphiant_sdk.models.mana_v2_public_vif_producer_policy_response import ManaV2PublicVifProducerPolicyResponse +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1ExtranetPublicVifIdPutResponse(BaseModel): + """ + V1ExtranetPublicVifIdPutResponse + """ # noqa: E501 + consumer_policy: Optional[ManaV2PublicVifConsumerPolicyResponse] = Field(default=None, alias="consumerPolicy") + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + producer_policy: Optional[ManaV2PublicVifProducerPolicyResponse] = Field(default=None, alias="producerPolicy") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + __properties: ClassVar[List[str]] = ["consumerPolicy", "id", "producerPolicy", "serviceName", "type"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifIdPutResponse 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 consumer_policy + if self.consumer_policy: + _dict['consumerPolicy'] = self.consumer_policy.to_dict() + # override the default output from pydantic by calling `to_dict()` of producer_policy + if self.producer_policy: + _dict['producerPolicy'] = self.producer_policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifIdPutResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerPolicy": ManaV2PublicVifConsumerPolicyResponse.from_dict(obj["consumerPolicy"]) if obj.get("consumerPolicy") is not None else None, + "id": obj.get("id"), + "producerPolicy": ManaV2PublicVifProducerPolicyResponse.from_dict(obj["producerPolicy"]) if obj.get("producerPolicy") is not None else None, + "serviceName": obj.get("serviceName"), + "type": obj.get("type") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_public_vif_post_request.py b/graphiant_sdk/models/v1_extranet_public_vif_post_request.py new file mode 100644 index 00000000..bab9a739 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_public_vif_post_request.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from graphiant_sdk.models.mana_v2_public_vif_consumer_policy import ManaV2PublicVifConsumerPolicy +from graphiant_sdk.models.mana_v2_public_vif_producer_policy import ManaV2PublicVifProducerPolicy +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1ExtranetPublicVifPostRequest(BaseModel): + """ + V1ExtranetPublicVifPostRequest + """ # noqa: E501 + consumer_policy: ManaV2PublicVifConsumerPolicy = Field(alias="consumerPolicy") + producer_policy: ManaV2PublicVifProducerPolicy = Field(alias="producerPolicy") + 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"]}) + __properties: ClassVar[List[str]] = ["consumerPolicy", "producerPolicy", "serviceName", "type"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifPostRequest 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 consumer_policy + if self.consumer_policy: + _dict['consumerPolicy'] = self.consumer_policy.to_dict() + # override the default output from pydantic by calling `to_dict()` of producer_policy + if self.producer_policy: + _dict['producerPolicy'] = self.producer_policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifPostRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerPolicy": ManaV2PublicVifConsumerPolicy.from_dict(obj["consumerPolicy"]) if obj.get("consumerPolicy") is not None else None, + "producerPolicy": ManaV2PublicVifProducerPolicy.from_dict(obj["producerPolicy"]) if obj.get("producerPolicy") is not None else None, + "serviceName": obj.get("serviceName"), + "type": obj.get("type") + }) + return _obj + + diff --git a/graphiant_sdk/models/v1_extranet_public_vif_post_response.py b/graphiant_sdk/models/v1_extranet_public_vif_post_response.py new file mode 100644 index 00000000..7999efa4 --- /dev/null +++ b/graphiant_sdk/models/v1_extranet_public_vif_post_response.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 graphiant_sdk.models.mana_v2_public_vif_consumer_policy_response import ManaV2PublicVifConsumerPolicyResponse +from graphiant_sdk.models.mana_v2_public_vif_producer_policy_response import ManaV2PublicVifProducerPolicyResponse +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1ExtranetPublicVifPostResponse(BaseModel): + """ + V1ExtranetPublicVifPostResponse + """ # noqa: E501 + consumer_policy: Optional[ManaV2PublicVifConsumerPolicyResponse] = Field(default=None, alias="consumerPolicy") + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + producer_policy: Optional[ManaV2PublicVifProducerPolicyResponse] = Field(default=None, alias="producerPolicy") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) + type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) + __properties: ClassVar[List[str]] = ["consumerPolicy", "id", "producerPolicy", "serviceName", "type"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifPostResponse 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 consumer_policy + if self.consumer_policy: + _dict['consumerPolicy'] = self.consumer_policy.to_dict() + # override the default output from pydantic by calling `to_dict()` of producer_policy + if self.producer_policy: + _dict['producerPolicy'] = self.producer_policy.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1ExtranetPublicVifPostResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "consumerPolicy": ManaV2PublicVifConsumerPolicyResponse.from_dict(obj["consumerPolicy"]) if obj.get("consumerPolicy") is not None else None, + "id": obj.get("id"), + "producerPolicy": ManaV2PublicVifProducerPolicyResponse.from_dict(obj["producerPolicy"]) if obj.get("producerPolicy") is not None else None, + "serviceName": obj.get("serviceName"), + "type": obj.get("type") + }) + 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 cd6a72e9..01598c6c 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 @@ -28,10 +28,10 @@ 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)") - 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") + 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]}) time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "serviceId", "timeWindow"] 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 884f5dc8..03605020 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 @@ -27,9 +27,9 @@ class V1ExtranetSitesUsageTopPostResponseSiteUsage(BaseModel): """ V1ExtranetSitesUsageTopPostResponseSiteUsage """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["siteId", "siteName", "usage"] model_config = ConfigDict( 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 f762f20e..19798a9a 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 @@ -28,7 +28,7 @@ class V1ExtranetsB2bConsumerDeviceStatusIdGetResponse(BaseModel): """ V1ExtranetsB2bConsumerDeviceStatusIdGetResponse """ # noqa: E501 - service_status: Optional[StrictStr] = Field(default=None, alias="serviceStatus") + service_status: Optional[StrictStr] = Field(default=None, alias="serviceStatus", json_schema_extra={"examples": ["ENUM_VALUE"]}) summary: Optional[List[ManaV2B2bExtranetStatusSummary]] = None __properties: ClassVar[List[str]] = ["serviceStatus", "summary"] 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 e9459dbd..bc23e3e2 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 @@ -29,9 +29,9 @@ class V1ExtranetsB2bConsumerIdGetResponse(BaseModel): """ V1ExtranetsB2bConsumerIdGetResponse """ # noqa: E501 - consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId") + consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId", json_schema_extra={"examples": [1234567891011]}) policy: Optional[List[ManaV2ExtranetConsumerLanSegmentPolicyResponse]] = None - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + service_name: Optional[StrictStr] = Field(default=None, alias="serviceName", json_schema_extra={"examples": ["example string"]}) site_information: Optional[List[ManaV2B2bSiteInformation]] = Field(default=None, alias="siteInformation") __properties: ClassVar[List[str]] = ["consumerId", "policy", "serviceName", "siteInformation"] 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 717e6477..c16385ec 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_consumer_post_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_consumer_post_request.py @@ -30,8 +30,8 @@ class V1ExtranetsB2bConsumerPostRequest(BaseModel): V1ExtranetsB2bConsumerPostRequest """ # noqa: E501 policy: Optional[List[ManaV2ExtranetConsumerLanSegmentPolicy]] = None - provider_enterprise_id: Optional[StrictInt] = Field(default=None, alias="providerEnterpriseId") - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + 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"]}) site_information: Optional[List[ManaV2B2bSiteInformation]] = Field(default=None, alias="siteInformation") __properties: ClassVar[List[str]] = ["policy", "providerEnterpriseId", "serviceName", "siteInformation"] 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 144eb700..2519a1ca 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_consumer_post_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_consumer_post_response.py @@ -31,7 +31,7 @@ class V1ExtranetsB2bConsumerPostResponse(BaseModel): V1ExtranetsB2bConsumerPostResponse """ # noqa: E501 device: Optional[List[ManaV2ConsumerDeviceInformation]] = None - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) policy: Optional[List[ManaV2ExtranetConsumerLanSegmentPolicyResponse]] = None site_information: Optional[List[ManaV2B2bSiteInformation]] = Field(default=None, alias="siteInformation") __properties: ClassVar[List[str]] = ["device", "id", "policy", "siteInformation"] 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 b27ab9ef..6ea1818a 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 @@ -27,10 +27,10 @@ class V1ExtranetsB2bCustomerInfoIdGetResponse(BaseModel): """ V1ExtranetsB2bCustomerInfoIdGetResponse """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["id", "providerEnterpriseId", "serviceName", "status"] model_config = ConfigDict( 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 d27c5c7a..41629781 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,7 +28,7 @@ class V1ExtranetsB2bIdProducerGetResponse(BaseModel): """ V1ExtranetsB2bIdProducerGetResponse """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) policy: Optional[ManaV2B2bExtranetPolicyResponse] = None __properties: ClassVar[List[str]] = ["id", "policy"] 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 9d6d56bd..ea3fc8e4 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_id_put_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_id_put_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,7 +28,7 @@ class V1ExtranetsB2bIdPutResponse(BaseModel): """ V1ExtranetsB2bIdPutResponse """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) policy: Optional[ManaV2B2bExtranetPolicyResponse] = None __properties: ClassVar[List[str]] = ["id", "policy"] 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 9af58fdb..cf1848e8 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 @@ -33,18 +33,18 @@ class V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse(BaseMode """ V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponse """ # noqa: E501 - consumer_id: Optional[StrictInt] = Field(default=None, alias="consumerId") - consumer_name: Optional[StrictStr] = Field(default=None, alias="consumerName") + 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"]}) 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") + peer_type: Optional[StrictStr] = Field(default=None, alias="peerType", json_schema_extra={"examples": ["ENUM_VALUE"]}) 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] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["consumerId", "consumerName", "emails", "globalObjectDeviceSummaries", "globalObjectSummaries", "ipsecTunnelConfig", "matchDetails", "peerType", "policy", "siteInformation", "siteToSiteVpn", "status"] model_config = ConfigDict( 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 9efad8e0..187d7d4a 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 @@ -28,38 +28,38 @@ class V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponseIpsecVpnT """ V1ExtranetsB2bPeeringConsumerCustomerIdConsumerDetailsGetResponseIpsecVpnTunnelConfig """ # 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") + 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]}) __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( 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 1c70cc23..cb1822be 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 @@ -27,7 +27,7 @@ class V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse(BaseModel): """ V1ExtranetsB2bPeeringConsumerIdPrefixesPutResponse """ # noqa: E501 - consumer_activiy_id: Optional[StrictStr] = Field(default=None, alias="consumerActiviyId") + consumer_activiy_id: Optional[StrictStr] = Field(default=None, alias="consumerActiviyId", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["consumerActiviyId"] model_config = ConfigDict( 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 4eb6d31d..0bf84a11 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 @@ -32,9 +32,9 @@ class V1ExtranetsB2bPeeringConsumerMatchIdPostRequest(BaseModel): """ V1ExtranetsB2bPeeringConsumerMatchIdPostRequest """ # noqa: E501 - customer_id: Optional[StrictInt] = Field(default=None, alias="customerId") + customer_id: Optional[StrictInt] = Field(default=None, alias="customerId", json_schema_extra={"examples": [1234567891011]}) 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)") + id: StrictInt = Field(description="ID of the service which is being consumed by the customer (required)", json_schema_extra={"examples": [1234567891011]}) nat: List[ManaV2B2bNat] policy: List[ManaV2B2bExtranetPeeringServiceConsumerLanSegmentPolicy] site_information: List[ManaV2B2bSiteInformation] = Field(alias="siteInformation") 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 707ebdd9..04f30e46 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 @@ -29,9 +29,9 @@ class V1ExtranetsB2bPeeringConsumerMatchIdPostResponse(BaseModel): """ V1ExtranetsB2bPeeringConsumerMatchIdPostResponse """ # noqa: E501 - consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId") - id: Optional[StrictInt] = None - lan_segment: Optional[StrictInt] = Field(default=None, alias="lanSegment") + 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]}) nat: Optional[List[ManaV2B2bNat]] = None site_information: Optional[List[ManaV2B2bSiteInformation]] = Field(default=None, alias="siteInformation") __properties: ClassVar[List[str]] = ["consumerActivityId", "id", "lanSegment", "nat", "siteInformation"] 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 09167da0..811c85d0 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 @@ -27,8 +27,8 @@ class V1ExtranetsB2bPeeringCustomerIdDeleteResponse(BaseModel): """ V1ExtranetsB2bPeeringCustomerIdDeleteResponse """ # noqa: E501 - activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") - consumer_activity_id: Optional[StrictStr] = Field(default=None, alias="consumerActivityId") + 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"]}) __properties: ClassVar[List[str]] = ["activityId", "consumerActivityId"] model_config = ConfigDict( 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 91a5aa54..a043b108 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 @@ -28,11 +28,11 @@ class V1ExtranetsB2bPeeringCustomerIdGetResponse(BaseModel): """ V1ExtranetsB2bPeeringCustomerIdGetResponse """ # noqa: E501 - customer_name: Optional[StrictStr] = Field(default=None, alias="customerName") + customer_name: Optional[StrictStr] = Field(default=None, alias="customerName", json_schema_extra={"examples": ["example string"]}) emails: Optional[List[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 + 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"]}) __properties: ClassVar[List[str]] = ["customerName", "emails", "numSites", "status", "type"] model_config = ConfigDict( 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 91e0900b..1ba1056b 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 @@ -29,8 +29,8 @@ class V1ExtranetsB2bPeeringCustomerPostRequest(BaseModel): V1ExtranetsB2bPeeringCustomerPostRequest """ # noqa: E501 invite: ManaV2B2bExtranetPeeringServiceCustomerInvite - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["invite", "name", "type"] model_config = ConfigDict( 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 baa9ef9c..902e3949 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,7 +28,7 @@ class V1ExtranetsB2bPeeringCustomerPostResponse(BaseModel): """ V1ExtranetsB2bPeeringCustomerPostResponse """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) response: Optional[ManaV2B2bExtranetPeeringServiceCustomerInvite] = None __properties: ClassVar[List[str]] = ["id", "response"] 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 dff4769d..14c6db9b 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 @@ -27,8 +27,8 @@ class V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse(BaseModel): """ V1ExtranetsB2bPeeringMatchServiceToCustomerIdDeleteResponse """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["activityId", "consumerActivityId"] model_config = ConfigDict( 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 8ad18bec..8f5425ae 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 @@ -28,11 +28,11 @@ class V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse(BaseModel): """ V1ExtranetsB2bPeeringMatchServiceToCustomerIdGetResponse """ # noqa: E501 - customer_name: Optional[StrictStr] = Field(default=None, alias="customerName") + customer_name: Optional[StrictStr] = Field(default=None, alias="customerName", json_schema_extra={"examples": ["example string"]}) match_details: Optional[ManaV2B2bExtranetMatchServiceToCustomer] = Field(default=None, alias="matchDetails") - match_id: Optional[StrictInt] = Field(default=None, alias="matchId") - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") - status: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["customerName", "matchDetails", "matchId", "serviceName", "status"] model_config = ConfigDict( 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 d964427c..563b464a 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 @@ -28,7 +28,7 @@ class V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest(BaseModel): """ V1ExtranetsB2bPeeringMatchServiceToCustomerPostRequest """ # noqa: E501 - id: StrictInt = Field(description="ID of the customer (required)") + id: StrictInt = Field(description="ID of the customer (required)", json_schema_extra={"examples": [1234567891011]}) service: ManaV2B2bExtranetMatchServiceToCustomer __properties: ClassVar[List[str]] = ["id", "service"] 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 576fad1c..d4c068d9 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 @@ -28,7 +28,7 @@ class V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse(BaseModel): """ V1ExtranetsB2bPeeringMatchServiceToCustomerPostResponse """ # noqa: E501 - match_id: Optional[StrictInt] = Field(default=None, alias="matchId") + match_id: Optional[StrictInt] = Field(default=None, alias="matchId", json_schema_extra={"examples": [1234567891011]}) service: Optional[List[ManaV2B2bExtranetMatchServiceToCustomer]] = None __properties: ClassVar[List[str]] = ["matchId", "service"] 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 f33f189b..2476d4b5 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 @@ -27,8 +27,8 @@ class V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest(BaseMod """ V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutRequest """ # noqa: E501 - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["id", "status"] model_config = ConfigDict( 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 0e95bfc7..c2242879 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse(BaseMo """ V1ExtranetsB2bPeeringMatchServiceToCustomerServiceStatusPutResponse """ # noqa: E501 - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["status"] model_config = ConfigDict( 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 c4b685f7..10d18d33 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,9 +28,9 @@ class V1ExtranetsB2bPeeringProducerIdGetResponse(BaseModel): """ V1ExtranetsB2bPeeringProducerIdGetResponse """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) policy: Optional[ManaV2B2bExtranetPeeringServicePolicyResponse] = None - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["id", "policy", "status"] model_config = ConfigDict( 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 8cb93074..9aba0196 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 @@ -29,8 +29,8 @@ class V1ExtranetsB2bPeeringProducerPostRequest(BaseModel): V1ExtranetsB2bPeeringProducerPostRequest """ # noqa: E501 policy: ManaV2B2bExtranetPeeringServiceProducerPolicy - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") - type: StrictStr = Field(description="Type of the service whether it is application or peering (required)") + 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"]}) __properties: ClassVar[List[str]] = ["policy", "serviceName", "type"] model_config = ConfigDict( 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 cdd06fb0..c0395cac 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 @@ -28,8 +28,8 @@ class V1ExtranetsB2bPeeringProducerPostResponse(BaseModel): """ V1ExtranetsB2bPeeringProducerPostResponse """ # noqa: E501 - activity_id: Optional[StrictStr] = Field(default=None, alias="activityId") - id: Optional[StrictInt] = None + 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]}) policy: Optional[ManaV2B2bExtranetPeeringServicePolicyResponse] = None __properties: ClassVar[List[str]] = ["activityId", "id", "policy"] diff --git a/graphiant_sdk/models/v1_extranets_b2b_post_request.py b/graphiant_sdk/models/v1_extranets_b2b_post_request.py index f9f81aa9..f7797a04 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_post_request.py +++ b/graphiant_sdk/models/v1_extranets_b2b_post_request.py @@ -29,8 +29,8 @@ class V1ExtranetsB2bPostRequest(BaseModel): V1ExtranetsB2bPostRequest """ # noqa: E501 policy: ManaV2B2bExtranetProducerPolicy - 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)") + 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"]}) __properties: ClassVar[List[str]] = ["policy", "serviceName", "type"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_extranets_b2b_post_response.py b/graphiant_sdk/models/v1_extranets_b2b_post_response.py index ea4fa0cc..556a6051 100644 --- a/graphiant_sdk/models/v1_extranets_b2b_post_response.py +++ b/graphiant_sdk/models/v1_extranets_b2b_post_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,7 +28,7 @@ class V1ExtranetsB2bPostResponse(BaseModel): """ V1ExtranetsB2bPostResponse """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) policy: Optional[ManaV2B2bExtranetPolicyResponse] = None __properties: ClassVar[List[str]] = ["id", "policy"] 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 19fc1754..11cc261e 100644 --- a/graphiant_sdk/models/v1_extranets_id_apply_post_response.py +++ b/graphiant_sdk/models/v1_extranets_id_apply_post_response.py @@ -29,7 +29,7 @@ class V1ExtranetsIdApplyPostResponse(BaseModel): V1ExtranetsIdApplyPostResponse """ # noqa: E501 devices: Optional[List[ManaV2ExtranetDeviceStatus]] = None - job_id: Optional[StrictInt] = Field(default=None, alias="jobId") + job_id: Optional[StrictInt] = Field(default=None, alias="jobId", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["devices", "jobId"] model_config = ConfigDict( 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 b3b50cc9..fdddb33e 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,8 +27,8 @@ class V1ExtranetsMonitoringLanSegmentsGetResponseVrf(BaseModel): """ V1ExtranetsMonitoringLanSegmentsGetResponseVrf """ # noqa: E501 - id: Optional[StrictInt] = None - name: Optional[StrictStr] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["id", "name"] model_config = ConfigDict( 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 e776d8d9..94d1afab 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 @@ -29,9 +29,9 @@ class V1ExtranetsMonitoringNatUsageGetResponse(BaseModel): """ V1ExtranetsMonitoringNatUsageGetResponse """ # noqa: E501 - allocated_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="allocatedCount") + allocated_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="allocatedCount", json_schema_extra={"examples": [123]}) allocations: Optional[List[V1ExtranetsMonitoringNatUsageGetResponseAllocation]] = None - usage_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="usageCount") + usage_count: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="usageCount", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["allocatedCount", "allocations", "usageCount"] model_config = ConfigDict( 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 a2533dc6..ff55e6ae 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 @@ -27,11 +27,11 @@ class V1ExtranetsMonitoringNatUsageGetResponseAllocation(BaseModel): """ V1ExtranetsMonitoringNatUsageGetResponseAllocation """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "hostname", "ipAddress", "siteId", "siteName"] model_config = ConfigDict( 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 866464fd..d16b9948 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 @@ -27,8 +27,8 @@ class V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest(BaseModel): """ V1ExtranetsMonitoringTrafficSecurityPolicyPostRequest """ # noqa: E501 - id: Optional[StrictInt] = None - is_provider: Optional[StrictBool] = Field(default=None, alias="isProvider") + 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]}) __properties: ClassVar[List[str]] = ["id", "isProvider"] model_config = ConfigDict( 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 cd6862e9..5649a3af 100644 --- a/graphiant_sdk/models/v1_extranets_source_segments_post_request.py +++ b/graphiant_sdk/models/v1_extranets_source_segments_post_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,7 +28,7 @@ class V1ExtranetsSourceSegmentsPostRequest(BaseModel): """ V1ExtranetsSourceSegmentsPostRequest """ # noqa: E501 - filter: Optional[StrictStr] = None + filter: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) target: Optional[ManaV2PolicyTargetInput] = None __properties: ClassVar[List[str]] = ["filter", "target"] 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 de1f87aa..3654d288 100644 --- a/graphiant_sdk/models/v1_flows_flow_table_post_request.py +++ b/graphiant_sdk/models/v1_flows_flow_table_post_request.py @@ -31,12 +31,12 @@ 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") - app_name: Optional[StrictStr] = Field(default=None, alias="appName") + 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"]}) cursor_ref: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="cursorRef") - 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") + 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]}) 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"] diff --git a/graphiant_sdk/models/v1_flows_topology_post_request.py b/graphiant_sdk/models/v1_flows_topology_post_request.py index 0e28ea50..62e4dfe8 100644 --- a/graphiant_sdk/models/v1_flows_topology_post_request.py +++ b/graphiant_sdk/models/v1_flows_topology_post_request.py @@ -30,7 +30,7 @@ class V1FlowsTopologyPostRequest(BaseModel): V1FlowsTopologyPostRequest """ # noqa: E501 app_selector: Optional[IpfixAppTopologySelector] = Field(default=None, alias="appSelector") - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") + device_id: Optional[StrictInt] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [1234567891011]}) time_window: Optional[StatsmonTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["appSelector", "deviceId", "timeWindow"] 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 6c6d2e2a..f61fbb82 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 @@ -28,38 +28,38 @@ class V1GatewaysGuestConsumerMatchIdGetResponseIpsecVpnTunnelConfig(BaseModel): """ V1GatewaysGuestConsumerMatchIdGetResponseIpsecVpnTunnelConfig """ # 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") + 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]}) __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( 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 847eaa4b..13cbe7e2 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 @@ -27,8 +27,8 @@ class V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse(BaseModel): """ V1GatewaysIpsecRegionsRegionIdVrfsVrfIdInsideSubnetGetResponse """ # noqa: E501 - ipv4_subnet: Optional[StrictStr] = Field(default=None, alias="ipv4Subnet") - ipv6_subnet: Optional[StrictStr] = Field(default=None, alias="ipv6Subnet") + 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"]}) __properties: ClassVar[List[str]] = ["ipv4Subnet", "ipv6Subnet"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_gateways_post_response.py b/graphiant_sdk/models/v1_gateways_post_response.py index 63ebe881..534489eb 100644 --- a/graphiant_sdk/models/v1_gateways_post_response.py +++ b/graphiant_sdk/models/v1_gateways_post_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,8 +27,8 @@ class V1GatewaysPostResponse(BaseModel): """ V1GatewaysPostResponse """ # noqa: E501 - id: Optional[StrictInt] = None - status: Optional[StrictStr] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["id", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_gateways_put_request.py b/graphiant_sdk/models/v1_gateways_put_request.py index c40e92e0..7169103a 100644 --- a/graphiant_sdk/models/v1_gateways_put_request.py +++ b/graphiant_sdk/models/v1_gateways_put_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.mana_v2_gateway_details import ManaV2GatewayDetails from typing import Optional, Set @@ -29,7 +29,7 @@ class V1GatewaysPutRequest(BaseModel): V1GatewaysPutRequest """ # noqa: E501 details: Optional[ManaV2GatewayDetails] = None - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["details", "id"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_gateways_status_post_request.py b/graphiant_sdk/models/v1_gateways_status_post_request.py index 74cc5d84..8fd39427 100644 --- a/graphiant_sdk/models/v1_gateways_status_post_request.py +++ b/graphiant_sdk/models/v1_gateways_status_post_request.py @@ -29,9 +29,9 @@ class V1GatewaysStatusPostRequest(BaseModel): V1GatewaysStatusPostRequest """ # noqa: E501 device_info: Optional[List[V1GatewaysStatusPostRequestDeviceInfo]] = Field(default=None, alias="deviceInfo") - id: Optional[StrictInt] = None - status: Optional[StrictStr] = None - support_status: Optional[StrictStr] = Field(default=None, alias="supportStatus") + 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"]}) __properties: ClassVar[List[str]] = ["deviceInfo", "id", "status", "supportStatus"] model_config = ConfigDict( 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 3f2c63e3..20a38efb 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 @@ -27,8 +27,8 @@ class V1GatewaysStatusPostRequestDeviceInfo(BaseModel): """ V1GatewaysStatusPostRequestDeviceInfo """ # noqa: E501 - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") - interface_id: Optional[StrictInt] = Field(default=None, alias="interfaceId") + 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]}) __properties: ClassVar[List[str]] = ["deviceId", "interfaceId"] model_config = ConfigDict( 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 547c454a..ea4f5762 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 @@ -28,9 +28,9 @@ class V1GlobalAppsAppListsGetResponseEntry(BaseModel): """ V1GlobalAppsAppListsGetResponseEntry """ # noqa: E501 - app_count: Optional[StrictInt] = Field(default=None, alias="appCount") + app_count: Optional[StrictInt] = Field(default=None, alias="appCount", json_schema_extra={"examples": [123]}) app_list: Optional[ManaV2App] = Field(default=None, alias="appList") - policy_reference_count: Optional[StrictInt] = Field(default=None, alias="policyReferenceCount") + policy_reference_count: Optional[StrictInt] = Field(default=None, alias="policyReferenceCount", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["appCount", "appList", "policyReferenceCount"] model_config = ConfigDict( 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 9db62f42..9745b3a4 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 @@ -28,7 +28,7 @@ class V1GlobalAppsCategoriesGetResponseEntry(BaseModel): """ V1GlobalAppsCategoriesGetResponseEntry """ # noqa: E501 - app_count: Optional[StrictInt] = Field(default=None, alias="appCount") + app_count: Optional[StrictInt] = Field(default=None, alias="appCount", json_schema_extra={"examples": [123]}) category: Optional[ManaV2App] = None __properties: ClassVar[List[str]] = ["appCount", "category"] 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 564afa7b..7ee4360e 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 @@ -31,8 +31,8 @@ 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") - policy_reference_count: Optional[StrictInt] = Field(default=None, alias="policyReferenceCount") + 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]}) __properties: ClassVar[List[str]] = ["app", "appConfig", "appListReferenceCount", "policyReferenceCount"] model_config = ConfigDict( 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 c55037bb..117445a0 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 @@ -29,8 +29,8 @@ class V1GlobalAppsGraphiantGetResponseEntry(BaseModel): V1GlobalAppsGraphiantGetResponseEntry """ # noqa: E501 app: Optional[ManaV2App] = None - app_list_reference_count: Optional[StrictInt] = Field(default=None, alias="appListReferenceCount") - policy_reference_count: Optional[StrictInt] = Field(default=None, alias="policyReferenceCount") + 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]}) __properties: ClassVar[List[str]] = ["app", "appListReferenceCount", "policyReferenceCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_global_config_patch_response.py b/graphiant_sdk/models/v1_global_config_patch_response.py index 9d894df9..3d8b0a06 100644 --- a/graphiant_sdk/models/v1_global_config_patch_response.py +++ b/graphiant_sdk/models/v1_global_config_patch_response.py @@ -33,7 +33,7 @@ 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] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) 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") 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 bac37c0c..1fcea86b 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 @@ -32,8 +32,8 @@ class V1GlobalContentFiltersGetResponseRow(BaseModel): V1GlobalContentFiltersGetResponseRow """ # noqa: E501 created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - global_content_filter_id: Optional[StrictInt] = Field(default=None, description="ID for the global content filter.", alias="globalContentFilterId") - global_content_filter_name: Optional[StrictStr] = Field(default=None, description="Given name of this global content filter.", alias="globalContentFilterName") + 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"]}) lans: Optional[List[V1GlobalContentFiltersGetResponseRowLanEntry]] = None rules: Optional[List[V1GlobalContentFiltersGetResponseRowRuleEntry]] = None sites: Optional[List[V1GlobalContentFiltersGetResponseRowSiteEntry]] = None 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 43dd2b41..db929189 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 @@ -27,7 +27,7 @@ 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") + 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"]}) __properties: ClassVar[List[str]] = ["lanName"] model_config = ConfigDict( 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 4d403b2d..d4ff20e9 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 @@ -27,7 +27,7 @@ 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") + 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"]}) exception_wildcards: Optional[List[StrictStr]] = Field(default=None, alias="exceptionWildcards") __properties: ClassVar[List[str]] = ["domainCategory", "exceptionWildcards"] 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 cb306e2b..67dda698 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 @@ -27,7 +27,7 @@ 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") + 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"]}) __properties: ClassVar[List[str]] = ["siteName"] model_config = ConfigDict( 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 e5f0e9eb..bd330406 100644 --- a/graphiant_sdk/models/v1_global_content_filters_post_response.py +++ b/graphiant_sdk/models/v1_global_content_filters_post_response.py @@ -27,7 +27,7 @@ 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") + 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]}) __properties: ClassVar[List[str]] = ["globalContentFilterId"] model_config = ConfigDict( 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 fea58d6f..1c4f7cc7 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 @@ -28,9 +28,9 @@ class V1GlobalIpsecProfileGetResponseIPsecProfileCount(BaseModel): """ V1GlobalIpsecProfileGetResponseIPsecProfileCount """ # noqa: E501 - count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - id: Optional[StrictInt] = None - ipsec_profile_name: Optional[StrictStr] = Field(default=None, alias="ipsecProfileName") + 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"]}) __properties: ClassVar[List[str]] = ["count", "id", "ipsecProfileName"] model_config = ConfigDict( 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 39012d9a..787e0a01 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 @@ -28,10 +28,10 @@ class V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponseSiteToSiteVpn(BaseMod """ V1GlobalIpsecProfileVpnProfileIdSiteToSiteGetResponseSiteToSiteVpn """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "id", "name", "type"] model_config = ConfigDict( 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 2788ae5c..d2e1690a 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 @@ -28,13 +28,13 @@ class V1GlobalLanSegmentsGetResponseEntry(BaseModel): """ V1GlobalLanSegmentsGetResponseEntry """ # noqa: E501 - associated_interfaces: Optional[StrictInt] = Field(default=None, alias="associatedInterfaces") + associated_interfaces: Optional[StrictInt] = Field(default=None, alias="associatedInterfaces", json_schema_extra={"examples": [123]}) created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - 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") + 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]}) __properties: ClassVar[List[str]] = ["associatedInterfaces", "createdAt", "description", "edgeReferences", "id", "name", "siteListReferences"] model_config = ConfigDict( 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 f0fc1d4c..f3ebbd14 100644 --- a/graphiant_sdk/models/v1_global_lan_segments_post_request.py +++ b/graphiant_sdk/models/v1_global_lan_segments_post_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,8 +27,8 @@ class V1GlobalLanSegmentsPostRequest(BaseModel): """ V1GlobalLanSegmentsPostRequest """ # noqa: E501 - description: Optional[StrictStr] = None - name: Optional[StrictStr] = 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"]}) __properties: ClassVar[List[str]] = ["description", "name"] model_config = ConfigDict( 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 0f67b829..e0fc0eb3 100644 --- a/graphiant_sdk/models/v1_global_lan_segments_post_response.py +++ b/graphiant_sdk/models/v1_global_lan_segments_post_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,8 +27,8 @@ class V1GlobalLanSegmentsPostResponse(BaseModel): """ V1GlobalLanSegmentsPostResponse """ # noqa: E501 - id: Optional[StrictInt] = None - status: Optional[StrictStr] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["id", "status"] model_config = ConfigDict( 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 21e28c04..3885a75a 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -29,7 +29,7 @@ class V1GlobalLanSegmentsVrfIdDevicesGetResponse(BaseModel): V1GlobalLanSegmentsVrfIdDevicesGetResponse """ # noqa: E501 entries: Optional[List[V1GlobalLanSegmentsVrfIdDevicesGetResponseEntry]] = None - status: Optional[StrictStr] = None + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["entries", "status"] model_config = ConfigDict( 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 ef5317b6..3c6b4b9d 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 @@ -27,11 +27,11 @@ class V1GlobalLanSegmentsVrfIdDevicesGetResponseEntry(BaseModel): """ V1GlobalLanSegmentsVrfIdDevicesGetResponseEntry """ # noqa: E501 - 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 + 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]}) __properties: ClassVar[List[str]] = ["deviceId", "hostName", "numInterfaces", "site", "status"] model_config = ConfigDict( 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 240b461b..7d34d0fa 100644 --- a/graphiant_sdk/models/v1_global_site_lists_get_response.py +++ b/graphiant_sdk/models/v1_global_site_lists_get_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,7 +28,7 @@ class V1GlobalSiteListsGetResponse(BaseModel): """ V1GlobalSiteListsGetResponse """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) entries: Optional[List[V1GlobalSiteListsGetResponseEntry]] = None __properties: ClassVar[List[str]] = ["description", "entries"] 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 6878fdb8..6847c49e 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 @@ -29,12 +29,12 @@ class V1GlobalSiteListsGetResponseEntry(BaseModel): V1GlobalSiteListsGetResponseEntry """ # noqa: E501 created_at: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="createdAt") - 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") + 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]}) __properties: ClassVar[List[str]] = ["createdAt", "description", "edgeReferences", "id", "name", "policyReferences", "siteListReferences"] model_config = ConfigDict( 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 ab70fde2..8a33d7d1 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,7 +28,7 @@ class V1GlobalSiteListsIdGetResponse(BaseModel): """ V1GlobalSiteListsIdGetResponse """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) entries: Optional[List[ManaV2SiteListEntry]] = None __properties: ClassVar[List[str]] = ["description", "entries"] 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 3dda3f50..9789752c 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,7 +28,7 @@ class V1GlobalSiteListsIdPutRequest(BaseModel): """ V1GlobalSiteListsIdPutRequest """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) entries: Optional[List[ManaV2SiteListEntry]] = None __properties: ClassVar[List[str]] = ["description", "entries"] 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 ea0ecc01..b22ec9ef 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,8 +27,8 @@ class V1GlobalSiteListsIdPutResponse(BaseModel): """ V1GlobalSiteListsIdPutResponse """ # noqa: E501 - id: Optional[StrictInt] = None - status: Optional[StrictStr] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["id", "status"] model_config = ConfigDict( 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 8d056fba..ce73024b 100644 --- a/graphiant_sdk/models/v1_global_site_lists_post_request.py +++ b/graphiant_sdk/models/v1_global_site_lists_post_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, 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 @@ -28,9 +28,9 @@ class V1GlobalSiteListsPostRequest(BaseModel): """ V1GlobalSiteListsPostRequest """ # noqa: E501 - description: Optional[StrictStr] = None + description: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) entries: Optional[List[ManaV2SiteListEntry]] = None - name: Optional[StrictStr] = None + name: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["description", "entries", "name"] model_config = ConfigDict( 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 809248d6..9e933bb8 100644 --- a/graphiant_sdk/models/v1_global_site_lists_post_response.py +++ b/graphiant_sdk/models/v1_global_site_lists_post_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,8 +27,8 @@ class V1GlobalSiteListsPostResponse(BaseModel): """ V1GlobalSiteListsPostResponse """ # noqa: E501 - id: Optional[StrictInt] = None - status: Optional[StrictStr] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) + status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["id", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_global_summary_post_request.py b/graphiant_sdk/models/v1_global_summary_post_request.py index a9f7fcae..5aa25b61 100644 --- a/graphiant_sdk/models/v1_global_summary_post_request.py +++ b/graphiant_sdk/models/v1_global_summary_post_request.py @@ -27,13 +27,13 @@ class V1GlobalSummaryPostRequest(BaseModel): """ V1GlobalSummaryPostRequest """ # noqa: E501 - 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") + 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]}) __properties: ClassVar[List[str]] = ["ipfixExportedType", "ntpType", "prefixSetType", "routingPolicyType", "snmpType", "syslogServerType", "trafficPolicyType"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_global_sync_post_request.py b/graphiant_sdk/models/v1_global_sync_post_request.py index f0c4c749..8915a11c 100644 --- a/graphiant_sdk/models/v1_global_sync_post_request.py +++ b/graphiant_sdk/models/v1_global_sync_post_request.py @@ -28,13 +28,13 @@ 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") - 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") + 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]}) __properties: ClassVar[List[str]] = ["deviceIds", "ipfixExportedId", "ntpId", "prefixSetId", "routingPolicyId", "snmpId", "syslogServerId", "trafficPolicyId"] model_config = ConfigDict( 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 b228e772..6a96a88d 100644 --- a/graphiant_sdk/models/v1_groups_id_members_post_request.py +++ b/graphiant_sdk/models/v1_groups_id_members_post_request.py @@ -28,7 +28,7 @@ class V1GroupsIdMembersPostRequest(BaseModel): V1GroupsIdMembersPostRequest """ # noqa: E501 member_ids: List[StrictStr] = Field(alias="memberIds") - replace_existing: Optional[StrictBool] = Field(default=None, alias="replaceExisting") + replace_existing: Optional[StrictBool] = Field(default=None, alias="replaceExisting", json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["memberIds", "replaceExisting"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_groups_id_patch_request.py b/graphiant_sdk/models/v1_groups_id_patch_request.py index b56e6775..616421c2 100644 --- a/graphiant_sdk/models/v1_groups_id_patch_request.py +++ b/graphiant_sdk/models/v1_groups_id_patch_request.py @@ -28,12 +28,12 @@ class V1GroupsIdPatchRequest(BaseModel): """ V1GroupsIdPatchRequest """ # noqa: E501 - description: Optional[StrictStr] = None - display_name: Optional[StrictStr] = Field(default=None, alias="displayName") - group_type: Optional[StrictStr] = Field(default=None, alias="groupType") + 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"]}) permissions: Optional[CommonPermissions] = None - time_window_end: Optional[StrictInt] = Field(default=None, alias="timeWindowEnd") - time_window_start: Optional[StrictInt] = Field(default=None, alias="timeWindowStart") + 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]}) __properties: ClassVar[List[str]] = ["description", "displayName", "groupType", "permissions", "timeWindowEnd", "timeWindowStart"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_groups_put_request.py b/graphiant_sdk/models/v1_groups_put_request.py index 4b75d27d..068e8ffa 100644 --- a/graphiant_sdk/models/v1_groups_put_request.py +++ b/graphiant_sdk/models/v1_groups_put_request.py @@ -28,14 +28,14 @@ class V1GroupsPutRequest(BaseModel): """ V1GroupsPutRequest """ # noqa: E501 - 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)") + 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"]}) permissions: Optional[CommonPermissions] = None - time_window_end: Optional[StrictInt] = Field(default=None, alias="timeWindowEnd") - time_window_start: Optional[StrictInt] = Field(default=None, alias="timeWindowStart") + 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]}) __properties: ClassVar[List[str]] = ["description", "groupId", "groupType", "managesEnterprises", "name", "permissions", "timeWindowEnd", "timeWindowStart"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_invitation_email_post_request.py b/graphiant_sdk/models/v1_invitation_email_post_request.py index c1b05983..5b113e76 100644 --- a/graphiant_sdk/models/v1_invitation_email_post_request.py +++ b/graphiant_sdk/models/v1_invitation_email_post_request.py @@ -27,13 +27,13 @@ class V1InvitationEmailPostRequest(BaseModel): """ V1InvitationEmailPostRequest """ # noqa: E501 - 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") + 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"] model_config = ConfigDict( 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 c3cd10b2..cd6ee47f 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 @@ -27,8 +27,8 @@ class V1LldpInterfaceIdSummaryGetResponse(BaseModel): """ V1LldpInterfaceIdSummaryGetResponse """ # noqa: E501 - num_neighbors: Optional[StrictInt] = Field(default=None, alias="numNeighbors") - num_vendors: Optional[StrictInt] = Field(default=None, alias="numVendors") + 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]}) __properties: ClassVar[List[str]] = ["numNeighbors", "numVendors"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_logs_post_request.py b/graphiant_sdk/models/v1_logs_post_request.py index 2d0a176f..b97f2cf2 100644 --- a/graphiant_sdk/models/v1_logs_post_request.py +++ b/graphiant_sdk/models/v1_logs_post_request.py @@ -30,11 +30,11 @@ class V1LogsPostRequest(BaseModel): """ V1LogsPostRequest """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") - customer_view: Optional[StrictBool] = Field(default=None, alias="customerView") + 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]}) 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") - num_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numLogs") + 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]}) old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") selectors: Optional[List[SyslogmonSyslogsSelector]] = None diff --git a/graphiant_sdk/models/v1_logs_post_response.py b/graphiant_sdk/models/v1_logs_post_response.py index 4e672f17..0e404dc9 100644 --- a/graphiant_sdk/models/v1_logs_post_response.py +++ b/graphiant_sdk/models/v1_logs_post_response.py @@ -30,10 +30,10 @@ class V1LogsPostResponse(BaseModel): """ V1LogsPostResponse """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) 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") + total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs", json_schema_extra={"examples": [12345678910]}) __properties: ClassVar[List[str]] = ["cursorRef", "histogram", "logs", "totalLogs"] model_config = ConfigDict( 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 new file mode 100644 index 00000000..56d10528 --- /dev/null +++ b/graphiant_sdk/models/v1_msp_managed_enterprise_contract_info_get_response.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, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from graphiant_sdk.models.common_billing_contract import CommonBillingContract +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_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, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1MspManagedEnterpriseContractInfoGetResponse 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 enterprises (list) + _items = [] + if self.enterprises: + for _item_enterprises in self.enterprises: + if _item_enterprises: + _items.append(_item_enterprises.to_dict()) + _dict['enterprises'] = _items + # override the default output from pydantic by calling `to_dict()` of msp_contract + if self.msp_contract: + _dict['mspContract'] = self.msp_contract.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of V1MspManagedEnterpriseContractInfoGetResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "enterprises": [ManaV2ManagedEnterpriseContractInfo.from_dict(_item) for _item in obj["enterprises"]] if obj.get("enterprises") is not None else None, + "mspConsumedCredits": obj.get("mspConsumedCredits"), + "mspContract": CommonBillingContract.from_dict(obj["mspContract"]) if obj.get("mspContract") is not None else None + }) + return _obj + + 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 160ee032..6a5d76d9 100644 --- a/graphiant_sdk/models/v1_policy_applications_get_response_application.py +++ b/graphiant_sdk/models/v1_policy_applications_get_response_application.py @@ -27,10 +27,10 @@ class V1PolicyApplicationsGetResponseApplication(BaseModel): """ V1PolicyApplicationsGetResponseApplication """ # noqa: E501 - app_id: Optional[StrictInt] = Field(default=None, alias="appId") - description: Optional[StrictStr] = None - kind: Optional[StrictStr] = None - name: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["appId", "description", "kind", "name"] model_config = ConfigDict( 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 d23bbc35..230f56c5 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class V1PolicyRouteTagSetsIdDeleteResponse(BaseModel): """ V1PolicyRouteTagSetsIdDeleteResponse """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( 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 18f1b195..a2d5d52b 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class V1PolicyRouteTagSetsPostResponse(BaseModel): """ V1PolicyRouteTagSetsPostResponse """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_presharedkey_get_response.py b/graphiant_sdk/models/v1_presharedkey_get_response.py index 22e3e377..ba21e682 100644 --- a/graphiant_sdk/models/v1_presharedkey_get_response.py +++ b/graphiant_sdk/models/v1_presharedkey_get_response.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +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 @@ -27,7 +27,7 @@ class V1PresharedkeyGetResponse(BaseModel): """ V1PresharedkeyGetResponse """ # noqa: E501 - presharedkey: Optional[StrictStr] = None + presharedkey: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["presharedkey"] model_config = ConfigDict( 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 7c6d50d2..b5c4c348 100644 --- a/graphiant_sdk/models/v1_site_details_sitelists_post_request.py +++ b/graphiant_sdk/models/v1_site_details_sitelists_post_request.py @@ -27,7 +27,7 @@ class V1SiteDetailsSitelistsPostRequest(BaseModel): """ V1SiteDetailsSitelistsPostRequest """ # noqa: E501 - site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + site_id: Optional[StrictInt] = Field(default=None, alias="siteId", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["siteId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_sites_map_details_get_response.py b/graphiant_sdk/models/v1_sites_map_details_get_response.py new file mode 100644 index 00000000..6e3c448e --- /dev/null +++ b/graphiant_sdk/models/v1_sites_map_details_get_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The 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_sites_map import ManaV2LanSegmentSitesMap +from typing import Optional, Set +from typing_extensions import Self +from pydantic_core import to_jsonable_python + +class V1SitesMapDetailsGetResponse(BaseModel): + """ + V1SitesMapDetailsGetResponse + """ # noqa: E501 + lan_segment_ids: Optional[Dict[str, ManaV2LanSegmentSitesMap]] = Field(default=None, alias="lanSegmentIds") + __properties: ClassVar[List[str]] = ["lanSegmentIds"] + + model_config = ConfigDict( + validate_by_name=True, + validate_by_alias=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(to_jsonable_python(self.to_dict())) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of V1SitesMapDetailsGetResponse 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 V1SitesMapDetailsGetResponse 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, ManaV2LanSegmentSitesMap.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_sites_post_request.py b/graphiant_sdk/models/v1_sites_post_request.py index 17390dd0..0ea4db49 100644 --- a/graphiant_sdk/models/v1_sites_post_request.py +++ b/graphiant_sdk/models/v1_sites_post_request.py @@ -28,7 +28,7 @@ class V1SitesPostRequest(BaseModel): """ V1SitesPostRequest """ # noqa: E501 - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") + enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId", json_schema_extra={"examples": [1234567891011]}) site: Optional[ManaV2NewSite] = None __properties: ClassVar[List[str]] = ["enterpriseId", "site"] 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 bb79ae23..373660e6 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 @@ -30,7 +30,7 @@ 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") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) __properties: ClassVar[List[str]] = ["circuits", "deviceId"] model_config = ConfigDict( 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 b07e75ad..064d3d62 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.upgrade_upgrade_canary_profile import UpgradeUpgradeCanaryProfile from typing import Optional, Set @@ -29,7 +29,7 @@ class V1SoftwareAutoUpgradeDefaultGetResponse(BaseModel): V1SoftwareAutoUpgradeDefaultGetResponse """ # noqa: E501 profile: Optional[UpgradeUpgradeCanaryProfile] = None - release: Optional[StrictStr] = None + release: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["profile", "release"] model_config = ConfigDict( 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 bb71960e..8446ee68 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictStr +from pydantic import BaseModel, ConfigDict, Field, StrictStr from typing import Any, ClassVar, Dict, List, Optional from graphiant_sdk.models.upgrade_upgrade_canary_profile import UpgradeUpgradeCanaryProfile from typing import Optional, Set @@ -29,7 +29,7 @@ class V1SoftwareAutoUpgradeDefaultPutRequest(BaseModel): V1SoftwareAutoUpgradeDefaultPutRequest """ # noqa: E501 profile: Optional[UpgradeUpgradeCanaryProfile] = None - release: Optional[StrictStr] = None + release: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["profile", "release"] model_config = ConfigDict( 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 19f249bc..e310a8e0 100644 --- a/graphiant_sdk/models/v1_software_releases_download_get_response.py +++ b/graphiant_sdk/models/v1_software_releases_download_get_response.py @@ -27,7 +27,7 @@ class V1SoftwareReleasesDownloadGetResponse(BaseModel): """ V1SoftwareReleasesDownloadGetResponse """ # noqa: E501 - image_link: Optional[StrictStr] = Field(default=None, alias="imageLink") + image_link: Optional[StrictStr] = Field(default=None, alias="imageLink", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["imageLink"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_software_rollouts_post_response.py b/graphiant_sdk/models/v1_software_rollouts_post_response.py index e81015f7..bb239628 100644 --- a/graphiant_sdk/models/v1_software_rollouts_post_response.py +++ b/graphiant_sdk/models/v1_software_rollouts_post_response.py @@ -27,7 +27,7 @@ class V1SoftwareRolloutsPostResponse(BaseModel): """ V1SoftwareRolloutsPostResponse """ # noqa: E501 - id: Optional[StrictInt] = Field(default=None, description="Identifier of the created rollout. (required)") + id: Optional[StrictInt] = Field(default=None, description="Identifier of the created rollout. (required)", json_schema_extra={"examples": [42]}) __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_software_rollouts_put_request.py b/graphiant_sdk/models/v1_software_rollouts_put_request.py index 93c0b7a3..046a515c 100644 --- a/graphiant_sdk/models/v1_software_rollouts_put_request.py +++ b/graphiant_sdk/models/v1_software_rollouts_put_request.py @@ -28,7 +28,7 @@ class V1SoftwareRolloutsPutRequest(BaseModel): """ V1SoftwareRolloutsPutRequest """ # noqa: E501 - id: StrictInt = Field(description="Rollout identifier to update. (required)") + id: StrictInt = Field(description="Rollout identifier to update. (required)", json_schema_extra={"examples": [42]}) rollout_config: UpgradeRolloutConfig = Field(alias="rolloutConfig") __properties: ClassVar[List[str]] = ["id", "rolloutConfig"] 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 0acedd78..9a7b3a4b 100644 --- a/graphiant_sdk/models/v1_software_rollouts_schedule_post_request.py +++ b/graphiant_sdk/models/v1_software_rollouts_schedule_post_request.py @@ -28,8 +28,8 @@ class V1SoftwareRolloutsSchedulePostRequest(BaseModel): """ V1SoftwareRolloutsSchedulePostRequest """ # noqa: E501 - failed_only: Optional[StrictBool] = Field(default=None, description="When true, only devices previously marked failed are rescheduled.", alias="failedOnly") - id: StrictInt = Field(description="Rollout identifier to schedule. (required)") + 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]}) ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["failedOnly", "id", "ts"] 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 91b61e66..9fa3a17a 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 @@ -27,10 +27,10 @@ class V1SoftwareRunningDetailsGetResponseDevice(BaseModel): """ V1SoftwareRunningDetailsGetResponseDevice """ # noqa: E501 - 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 + 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"]}) __properties: ClassVar[List[str]] = ["deviceId", "enterpriseId", "enterpriseName", "hostname"] model_config = ConfigDict( 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 26eff39f..659af3b9 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 @@ -28,9 +28,9 @@ class V1SoftwareRunningSummaryGetResponseVersionSummary(BaseModel): """ V1SoftwareRunningSummaryGetResponseVersionSummary """ # noqa: E501 - count: Optional[Annotated[int, Field(strict=True, ge=0)]] = None - name: Optional[StrictStr] = None - version: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["count", "name", "version"] model_config = ConfigDict( 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 f73153e0..c546dfba 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 @@ -29,7 +29,7 @@ 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") + 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]}) time_window: Optional[IpfixTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["numClients", "timeWindow"] 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 93516080..76dfa6c2 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 @@ -29,7 +29,7 @@ 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") + 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]}) time_window: Optional[IpfixTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["numClients", "timeWindow"] diff --git a/graphiant_sdk/models/v1_temp_password_put_request.py b/graphiant_sdk/models/v1_temp_password_put_request.py index d5e4107f..3780dc17 100644 --- a/graphiant_sdk/models/v1_temp_password_put_request.py +++ b/graphiant_sdk/models/v1_temp_password_put_request.py @@ -27,10 +27,10 @@ class V1TempPasswordPutRequest(BaseModel): """ V1TempPasswordPutRequest """ # noqa: E501 - customer_name: Optional[StrictStr] = Field(default=None, alias="customerName") + customer_name: Optional[StrictStr] = Field(default=None, alias="customerName", json_schema_extra={"examples": ["example string"]}) emails: List[StrictStr] - match_id: Optional[StrictInt] = Field(default=None, alias="matchId") - service_name: Optional[StrictStr] = Field(default=None, alias="serviceName") + 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"]}) __properties: ClassVar[List[str]] = ["customerName", "emails", "matchId", "serviceName"] model_config = ConfigDict( 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 d9b8febb..9420cc67 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 @@ -33,14 +33,14 @@ class V1TroubleshootingDeviceDeviceIdPostResponse(BaseModel): """ V1TroubleshootingDeviceDeviceIdPostResponse """ # noqa: E501 - maintenance_mode: Optional[StrictBool] = Field(default=None, alias="MaintenanceMode") - colr_active: Optional[StrictBool] = Field(default=None, alias="colrActive") + 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]}) 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") - status: Optional[StrictStr] = None - sw_version: Optional[StrictStr] = Field(default=None, alias="swVersion") + 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"]}) 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") 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 755228e0..0185db15 100644 --- a/graphiant_sdk/models/v1_troubleshooting_enterprise_post_request_dimensions.py +++ b/graphiant_sdk/models/v1_troubleshooting_enterprise_post_request_dimensions.py @@ -27,22 +27,22 @@ class V1TroubleshootingEnterprisePostRequestDimensions(BaseModel): """ V1TroubleshootingEnterprisePostRequestDimensions """ # noqa: E501 - 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 + 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]}) __properties: ClassVar[List[str]] = ["certificateExpiry", "coreConnectivity", "coreTransitions", "cpu", "crashes", "creditExpiry", "disk", "fanSpeed", "licenseExpiry", "memory", "odpConnectivity", "odpTransitions", "slaPerformance", "t2Connectivity", "t2Transitions", "temperature"] model_config = ConfigDict( 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 632546a8..2c991dc1 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 @@ -28,14 +28,14 @@ class V1TroubleshootingEnterprisePostResponseSiteSummary(BaseModel): """ V1TroubleshootingEnterprisePostResponseSiteSummary """ # noqa: E501 - 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") + 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"]}) region: Optional[StatsmonTroubleshootingRegion] = None - 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") + 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"]}) __properties: ClassVar[List[str]] = ["controlStatus", "dataStatus", "overallStatus", "region", "selectedStatus", "siteId", "siteName", "systemStatus"] model_config = ConfigDict( 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 f37866a1..689fe240 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 @@ -27,8 +27,8 @@ class V1TroubleshootingSiteConnectivityStatusGetResponseSiteStatus(BaseModel): """ V1TroubleshootingSiteConnectivityStatusGetResponseSiteStatus """ # noqa: E501 - site_id: Optional[StrictInt] = Field(default=None, alias="siteId") - status: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["siteId", "status"] model_config = ConfigDict( 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 59cee914..3e356a8e 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 @@ -29,8 +29,8 @@ 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") - site_status: Optional[StrictStr] = Field(default=None, alias="siteStatus") + 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"]}) __properties: ClassVar[List[str]] = ["edgeStatuses", "siteName", "siteStatus"] model_config = ConfigDict( 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 484300ae..52a3db38 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 @@ -27,8 +27,8 @@ class V1TroubleshootingTopSitesByAlertsPostResponseSiteCountsSiteCount(BaseModel """ V1TroubleshootingTopSitesByAlertsPostResponseSiteCountsSiteCount """ # noqa: E501 - num_alerts: Optional[StrictInt] = Field(default=None, alias="numAlerts") - site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + 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"]}) __properties: ClassVar[List[str]] = ["numAlerts", "siteName"] model_config = ConfigDict( 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 c2f11d76..dd496857 100644 --- a/graphiant_sdk/models/v1_users_email_password_patch_request.py +++ b/graphiant_sdk/models/v1_users_email_password_patch_request.py @@ -27,7 +27,7 @@ class V1UsersEmailPasswordPatchRequest(BaseModel): """ V1UsersEmailPasswordPatchRequest """ # noqa: E501 - password: StrictStr = Field(description="New password for the user") + password: StrictStr = Field(description="New password for the user", json_schema_extra={"examples": ["newPassword123"]}) __properties: ClassVar[List[str]] = ["password"] model_config = ConfigDict( 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 183d5fe4..0ce9549a 100644 --- a/graphiant_sdk/models/v1_users_passwords_expire_post_response.py +++ b/graphiant_sdk/models/v1_users_passwords_expire_post_response.py @@ -28,9 +28,9 @@ class V1UsersPasswordsExpirePostResponse(BaseModel): """ V1UsersPasswordsExpirePostResponse """ # noqa: E501 - failed_count: Optional[StrictInt] = Field(default=None, alias="failedCount") + failed_count: Optional[StrictInt] = Field(default=None, alias="failedCount", json_schema_extra={"examples": [123]}) failed_users: Optional[List[IamFailedUser]] = Field(default=None, alias="failedUsers") - success_count: Optional[StrictInt] = Field(default=None, alias="successCount") + success_count: Optional[StrictInt] = Field(default=None, alias="successCount", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["failedCount", "failedUsers", "successCount"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_users_put_request.py b/graphiant_sdk/models/v1_users_put_request.py index 3026dde9..7bdafc48 100644 --- a/graphiant_sdk/models/v1_users_put_request.py +++ b/graphiant_sdk/models/v1_users_put_request.py @@ -27,11 +27,11 @@ class V1UsersPutRequest(BaseModel): """ V1UsersPutRequest """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["email", "firstName", "groupId", "lastName", "timeZone"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_version_post_request.py b/graphiant_sdk/models/v1_version_post_request.py index 6447b2e7..fb7644c2 100644 --- a/graphiant_sdk/models/v1_version_post_request.py +++ b/graphiant_sdk/models/v1_version_post_request.py @@ -29,8 +29,8 @@ class V1VersionPostRequest(BaseModel): V1VersionPostRequest """ # noqa: E501 configuration_metadata: Optional[ManaV2ConfigurationMetadata] = Field(default=None, alias="configurationMetadata") - device_id: Optional[StrictInt] = Field(default=None, alias="deviceId") - version: Optional[StrictInt] = None + 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]}) __properties: ClassVar[List[str]] = ["configurationMetadata", "deviceId", "version"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_ztagent_bindings_get_response.py b/graphiant_sdk/models/v1_ztagent_bindings_get_response.py index 61e8fc70..33390d77 100644 --- a/graphiant_sdk/models/v1_ztagent_bindings_get_response.py +++ b/graphiant_sdk/models/v1_ztagent_bindings_get_response.py @@ -27,9 +27,9 @@ class V1ZtagentBindingsGetResponse(BaseModel): """ V1ZtagentBindingsGetResponse """ # noqa: E501 - customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") - site_id: Optional[StrictStr] = Field(default=None, alias="siteId") + 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"]}) __properties: ClassVar[List[str]] = ["customerId", "enterpriseId", "siteId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v1_ztagent_bindings_put_request.py b/graphiant_sdk/models/v1_ztagent_bindings_put_request.py index 5f10a09d..67a7ce6e 100644 --- a/graphiant_sdk/models/v1_ztagent_bindings_put_request.py +++ b/graphiant_sdk/models/v1_ztagent_bindings_put_request.py @@ -27,9 +27,9 @@ class V1ZtagentBindingsPutRequest(BaseModel): """ V1ZtagentBindingsPutRequest """ # noqa: E501 - customer_id: Optional[StrictStr] = Field(default=None, alias="customerId") - enterprise_id: Optional[StrictInt] = Field(default=None, alias="enterpriseId") - site_id: Optional[StrictStr] = Field(default=None, alias="siteId") + 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"]}) __properties: ClassVar[List[str]] = ["customerId", "enterpriseId", "siteId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v2_ack_createupdate_post_request.py b/graphiant_sdk/models/v2_ack_createupdate_post_request.py index a501bed9..d130e7d2 100644 --- a/graphiant_sdk/models/v2_ack_createupdate_post_request.py +++ b/graphiant_sdk/models/v2_ack_createupdate_post_request.py @@ -28,7 +28,7 @@ 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") + reason: Optional[StrictStr] = Field(default=None, description="Optional triage message in acknowledgement", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["alertIdList", "reason"] model_config = ConfigDict( 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 97caa2c2..2dd7c7f7 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 @@ -27,7 +27,7 @@ class V2AggregatedNotificationEnableDisablePostRequest(BaseModel): """ V2AggregatedNotificationEnableDisablePostRequest """ # noqa: E501 - enable: StrictBool = Field(description="Enable or disable aggregated notifications. True means enabled (required)") + enable: StrictBool = Field(description="Enable or disable aggregated notifications. True means enabled (required)", json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["enable"] model_config = ConfigDict( 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 f64972c6..c819fae5 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class V2AggregatedNotificationGetStateGetResponse(BaseModel): """ V2AggregatedNotificationGetStateGetResponse """ # noqa: E501 - state: Optional[StrictBool] = None + state: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["state"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v2_allowlist_create_post_request.py b/graphiant_sdk/models/v2_allowlist_create_post_request.py index cc03a7e2..62aeecc7 100644 --- a/graphiant_sdk/models/v2_allowlist_create_post_request.py +++ b/graphiant_sdk/models/v2_allowlist_create_post_request.py @@ -27,8 +27,8 @@ class V2AllowlistCreatePostRequest(BaseModel): """ V2AllowlistCreatePostRequest """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["alertId", "noteText"] model_config = ConfigDict( 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 117c2cce..05a61697 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 @@ -28,7 +28,7 @@ class V2AssistantAddToConversationPostRequest(BaseModel): """ V2AssistantAddToConversationPostRequest """ # noqa: E501 - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) question: Optional[AssistantAssistantQuestion] = None __properties: ClassVar[List[str]] = ["conversationId", "question"] 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 f243733e..3f2992b4 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 @@ -29,15 +29,15 @@ class V2AssistantAddToConversationPostResponse(BaseModel): """ V2AssistantAddToConversationPostResponse """ # noqa: E501 - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) 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") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["conversationId", "dataframeDictionary", "originalQuestion", "responseId", "responseLanguage", "responseText", "responseTimestamp", "responseType", "visualizationSummary"] model_config = ConfigDict( 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 20a1368a..0d476a6f 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class V2AssistantConversationContextHistoryPostRequest(BaseModel): """ V2AssistantConversationContextHistoryPostRequest """ # noqa: E501 - enable: Optional[StrictBool] = None + enable: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["enable"] model_config = ConfigDict( 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 a6549d4b..cdb386f6 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class V2AssistantConversationInterfaceEnableDisablePostRequest(BaseModel): """ V2AssistantConversationInterfaceEnableDisablePostRequest """ # noqa: E501 - enable: Optional[StrictBool] = None + enable: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["enable"] model_config = ConfigDict( 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 cc5fa13d..a9f39402 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,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictBool +from pydantic import BaseModel, ConfigDict, Field, StrictBool from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class V2AssistantConversationInterfaceStateGetResponse(BaseModel): """ V2AssistantConversationInterfaceStateGetResponse """ # noqa: E501 - enabled: Optional[StrictBool] = None + enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["enabled"] model_config = ConfigDict( 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 4aebaee8..18ddfc1e 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 @@ -28,9 +28,9 @@ class V2AssistantGetConversationDetailsPostRequest(BaseModel): """ V2AssistantGetConversationDetailsPostRequest """ # noqa: E501 - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) time_window: Optional[AssistantTimeWindow] = Field(default=None, alias="timeWindow") - user_id: Optional[StrictStr] = Field(default=None, alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["conversationId", "timeWindow", "userId"] model_config = ConfigDict( 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 e3657298..f2b03286 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 @@ -28,9 +28,9 @@ class V2AssistantGetConversationDetailsPostResponse(BaseModel): """ V2AssistantGetConversationDetailsPostResponse """ # noqa: E501 - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") + conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId", json_schema_extra={"examples": ["example string"]}) response_list: Optional[List[AssistantAssistantResponse]] = Field(default=None, alias="responseList") - user_id: Optional[StrictStr] = Field(default=None, alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["conversationId", "responseList", "userId"] model_config = ConfigDict( 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 c1fa64f6..1ec3b9e7 100644 --- a/graphiant_sdk/models/v2_assistant_get_conversations_post_request.py +++ b/graphiant_sdk/models/v2_assistant_get_conversations_post_request.py @@ -29,7 +29,7 @@ class V2AssistantGetConversationsPostRequest(BaseModel): V2AssistantGetConversationsPostRequest """ # noqa: E501 time_window: Optional[AssistantTimeWindow] = Field(default=None, alias="timeWindow") - user_id: Optional[StrictStr] = Field(default=None, alias="userId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["timeWindow", "userId"] model_config = ConfigDict( 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 fe4d4eb2..b8a260d1 100644 --- a/graphiant_sdk/models/v2_assistant_get_conversations_post_response.py +++ b/graphiant_sdk/models/v2_assistant_get_conversations_post_response.py @@ -29,7 +29,7 @@ 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") + enable_context_history: Optional[StrictBool] = Field(default=None, alias="enableContextHistory", json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["conversationList", "enableContextHistory"] model_config = ConfigDict( 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 b2d66b59..bf785053 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 @@ -27,8 +27,8 @@ class V2AssistantUpdateConversationNamePostRequest(BaseModel): """ V2AssistantUpdateConversationNamePostRequest """ # noqa: E501 - conversation_header: Optional[StrictStr] = Field(default=None, alias="conversationHeader") - conversation_id: Optional[StrictStr] = Field(default=None, alias="conversationId") + 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"]}) __properties: ClassVar[List[str]] = ["conversationHeader", "conversationId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v2_assistant_version_post_response.py b/graphiant_sdk/models/v2_assistant_version_post_response.py index 11b6a1c4..4db6de31 100644 --- a/graphiant_sdk/models/v2_assistant_version_post_response.py +++ b/graphiant_sdk/models/v2_assistant_version_post_response.py @@ -27,7 +27,7 @@ class V2AssistantVersionPostResponse(BaseModel): """ V2AssistantVersionPostResponse """ # noqa: E501 - version_id: Optional[StrictStr] = Field(default=None, alias="versionId") + version_id: Optional[StrictStr] = Field(default=None, alias="versionId", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["versionId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_request.py b/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_request.py index d8f95403..064fc51d 100644 --- a/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_request.py +++ b/graphiant_sdk/models/v2_assurance_applicationdetailsbyname_post_request.py @@ -28,12 +28,13 @@ class V2AssuranceApplicationdetailsbynamePostRequest(BaseModel): """ V2AssuranceApplicationdetailsbynamePostRequest """ # noqa: E501 - 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") - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") + 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]}) time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") - __properties: ClassVar[List[str]] = ["appIdKey", "appName", "bucketId", "flexAlgoId", "timeWindow"] + __properties: ClassVar[List[str]] = ["appIdKey", "appName", "bucketId", "exchangeServiceId", "flexAlgoId", "timeWindow"] model_config = ConfigDict( validate_by_name=True, @@ -92,6 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "appIdKey": obj.get("appIdKey"), "appName": obj.get("appName"), "bucketId": obj.get("bucketId"), + "exchangeServiceId": obj.get("exchangeServiceId"), "flexAlgoId": obj.get("flexAlgoId"), "timeWindow": AssuranceTimeWindow.from_dict(obj["timeWindow"]) if obj.get("timeWindow") is not None else None }) 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 5f6c3b6f..bbb2d136 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 @@ -28,10 +28,10 @@ class V2AssuranceBucketAppServersPostRequest(BaseModel): """ V2AssuranceBucketAppServersPostRequest """ # noqa: E501 - 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") + 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]}) time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["appName", "bucketId", "exchangeServiceId", "flexAlgoId", "timeWindow"] 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 dd336c07..b4d98112 100644 --- a/graphiant_sdk/models/v2_assurance_bucket_apps_post_request.py +++ b/graphiant_sdk/models/v2_assurance_bucket_apps_post_request.py @@ -28,11 +28,11 @@ class V2AssuranceBucketAppsPostRequest(BaseModel): """ V2AssuranceBucketAppsPostRequest """ # noqa: E501 - 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") + 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]}) time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") - unclassified_only: Optional[StrictBool] = Field(default=None, alias="unclassifiedOnly") + unclassified_only: Optional[StrictBool] = Field(default=None, alias="unclassifiedOnly", json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["bucketId", "exchangeServiceId", "flexAlgoId", "timeWindow", "unclassifiedOnly"] model_config = ConfigDict( 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 76bf20bb..87e4524e 100644 --- a/graphiant_sdk/models/v2_assurance_bucket_services_post_request.py +++ b/graphiant_sdk/models/v2_assurance_bucket_services_post_request.py @@ -27,7 +27,7 @@ class V2AssuranceBucketServicesPostRequest(BaseModel): """ V2AssuranceBucketServicesPostRequest """ # noqa: E501 - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["bucketId"] model_config = ConfigDict( 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 3106437c..74ef3bcc 100644 --- a/graphiant_sdk/models/v2_assurance_bucket_topologies_post_request.py +++ b/graphiant_sdk/models/v2_assurance_bucket_topologies_post_request.py @@ -27,7 +27,7 @@ class V2AssuranceBucketTopologiesPostRequest(BaseModel): """ V2AssuranceBucketTopologiesPostRequest """ # noqa: E501 - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["bucketId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v2_assurance_bucketdetails_post_request.py b/graphiant_sdk/models/v2_assurance_bucketdetails_post_request.py index 8fd7ab25..6937246e 100644 --- a/graphiant_sdk/models/v2_assurance_bucketdetails_post_request.py +++ b/graphiant_sdk/models/v2_assurance_bucketdetails_post_request.py @@ -28,9 +28,9 @@ class V2AssuranceBucketdetailsPostRequest(BaseModel): """ V2AssuranceBucketdetailsPostRequest """ # noqa: E501 - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") - unclassified_only: Optional[StrictBool] = Field(default=None, alias="unclassifiedOnly") + unclassified_only: Optional[StrictBool] = Field(default=None, alias="unclassifiedOnly", json_schema_extra={"examples": [True]}) __properties: ClassVar[List[str]] = ["bucketId", "timeWindow", "unclassifiedOnly"] model_config = ConfigDict( 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 58092010..16303ac5 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 @@ -27,7 +27,7 @@ class V2AssuranceCreateDnsproxyEntryPostResponse(BaseModel): """ V2AssuranceCreateDnsproxyEntryPostResponse """ # noqa: E501 - dnsproxy_entry_id: Optional[StrictStr] = Field(default=None, description="dns proxy table entry id (required)", alias="dnsproxyEntryId") + dnsproxy_entry_id: Optional[StrictStr] = Field(default=None, description="dns proxy table entry id (required)", alias="dnsproxyEntryId", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["dnsproxyEntryId"] model_config = ConfigDict( 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 779b1d69..7139a854 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 @@ -27,13 +27,13 @@ class V2AssuranceCreateUserReportPostRequest(BaseModel): """ V2AssuranceCreateUserReportPostRequest """ # noqa: E501 - created_on: Optional[StrictInt] = Field(default=None, alias="createdOn") + created_on: Optional[StrictInt] = Field(default=None, alias="createdOn", json_schema_extra={"examples": [1234567891011]}) email_list: Optional[List[StrictStr]] = Field(default=None, alias="emailList") - pdf_content: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="pdfContent") + pdf_content: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="pdfContent", json_schema_extra={"examples": ["WW5sMFpYTT0="]}) raw_content: Optional[List[Union[StrictBytes, StrictStr]]] = Field(default=None, alias="rawContent") - 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") + 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"]}) __properties: ClassVar[List[str]] = ["createdOn", "emailList", "pdfContent", "rawContent", "reportName", "reportType", "timePeriod"] model_config = ConfigDict( 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 3d67d435..f16f01e6 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 @@ -27,7 +27,7 @@ class V2AssuranceCreateUserReportPostResponse(BaseModel): """ V2AssuranceCreateUserReportPostResponse """ # noqa: E501 - report_id: Optional[StrictInt] = Field(default=None, alias="reportId") + report_id: Optional[StrictInt] = Field(default=None, alias="reportId", json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["reportId"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_request.py b/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_request.py index a11641fa..9670767f 100644 --- a/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_request.py +++ b/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_request.py @@ -27,7 +27,7 @@ class V2AssuranceCreateclassifiedapplicationPostRequest(BaseModel): """ V2AssuranceCreateclassifiedapplicationPostRequest """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName") + app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) 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") diff --git a/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_response.py b/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_response.py index 23c9be51..f4eea2dd 100644 --- a/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_response.py +++ b/graphiant_sdk/models/v2_assurance_createclassifiedapplication_post_response.py @@ -27,7 +27,7 @@ class V2AssuranceCreateclassifiedapplicationPostResponse(BaseModel): """ V2AssuranceCreateclassifiedapplicationPostResponse """ # noqa: E501 - classification_entry_id: Optional[StrictStr] = Field(default=None, alias="classificationEntryId") + classification_entry_id: Optional[StrictStr] = Field(default=None, alias="classificationEntryId", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["classificationEntryId"] model_config = ConfigDict( 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 a1c5a6a6..23a2c226 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 @@ -27,7 +27,7 @@ class V2AssuranceDownloadUserReportGetResponse(BaseModel): """ V2AssuranceDownloadUserReportGetResponse """ # noqa: E501 - pdf_content: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="pdfContent") + pdf_content: Optional[Union[StrictBytes, StrictStr]] = Field(default=None, alias="pdfContent", json_schema_extra={"examples": ["WW5sMFpYTT0="]}) __properties: ClassVar[List[str]] = ["pdfContent"] model_config = ConfigDict( 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 03674121..20aafcce 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 @@ -27,7 +27,7 @@ class V2AssuranceTopologyClientSessionDetailsPostRequest(BaseModel): """ V2AssuranceTopologyClientSessionDetailsPostRequest """ # noqa: E501 - session_id: Optional[StrictStr] = Field(default=None, alias="sessionId") + session_id: Optional[StrictStr] = Field(default=None, alias="sessionId", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["sessionId"] model_config = ConfigDict( 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 8a98f04b..cd029546 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 @@ -29,15 +29,16 @@ class V2AssuranceTopologyClientSessionsPostRequest(BaseModel): """ V2AssuranceTopologyClientSessionsPostRequest """ # noqa: E501 - 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") + 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]}) filter: Optional[AssuranceTopologyFilter] = None - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") - site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + 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]}) time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") - __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "clientIp", "filter", "flexAlgoId", "siteId", "timeWindow"] + __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "clientIp", "exchangeServiceId", "filter", "flexAlgoId", "siteId", "timeWindow"] model_config = ConfigDict( validate_by_name=True, @@ -100,6 +101,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "appServerKey": obj.get("appServerKey"), "bucketId": obj.get("bucketId"), "clientIp": obj.get("clientIp"), + "exchangeServiceId": obj.get("exchangeServiceId"), "filter": AssuranceTopologyFilter.from_dict(obj["filter"]) if obj.get("filter") is not None else None, "flexAlgoId": obj.get("flexAlgoId"), "siteId": obj.get("siteId"), 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 a3b355d9..d968a66b 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 @@ -29,14 +29,15 @@ class V2AssuranceTopologyClientSummariesPostRequest(BaseModel): """ V2AssuranceTopologyClientSummariesPostRequest """ # noqa: E501 - 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") + 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]}) filter: Optional[AssuranceTopologyFilter] = None - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") - site_id: Optional[StrictInt] = Field(default=None, alias="siteId") + 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]}) time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") - __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "filter", "flexAlgoId", "siteId", "timeWindow"] + __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "exchangeServiceId", "filter", "flexAlgoId", "siteId", "timeWindow"] model_config = ConfigDict( validate_by_name=True, @@ -98,6 +99,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "appName": obj.get("appName"), "appServerKey": obj.get("appServerKey"), "bucketId": obj.get("bucketId"), + "exchangeServiceId": obj.get("exchangeServiceId"), "filter": AssuranceTopologyFilter.from_dict(obj["filter"]) if obj.get("filter") is not None else None, "flexAlgoId": obj.get("flexAlgoId"), "siteId": obj.get("siteId"), 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 e9303a68..5a126659 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 @@ -27,15 +27,16 @@ class V2AssuranceTopologyClientSummariesPostResponseSummary(BaseModel): """ V2AssuranceTopologyClientSummariesPostResponseSummary """ # noqa: E501 - app_server_key: Optional[StrictStr] = Field(default=None, alias="appServerKey") - client_ip: Optional[StrictStr] = Field(default=None, alias="clientIp") - client_username: Optional[StrictStr] = Field(default=None, alias="clientUsername") + 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"]}) lan_segments: Optional[List[StrictStr]] = Field(default=None, alias="lanSegments") - server_ip: Optional[StrictStr] = Field(default=None, alias="serverIp") - server_port: Optional[StrictInt] = Field(default=None, alias="serverPort") - server_site_name: Optional[StrictStr] = Field(default=None, alias="serverSiteName") - session_count: Optional[StrictInt] = Field(default=None, alias="sessionCount") - __properties: ClassVar[List[str]] = ["appServerKey", "clientIp", "clientUsername", "lanSegments", "serverIp", "serverPort", "serverSiteName", "sessionCount"] + 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]}) + __properties: ClassVar[List[str]] = ["appServerKey", "clientIp", "clientUsername", "lanSegments", "serverIp", "serverPort", "serverSiteEnterpriseName", "serverSiteName", "sessionCount"] model_config = ConfigDict( validate_by_name=True, @@ -94,6 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "lanSegments": obj.get("lanSegments"), "serverIp": obj.get("serverIp"), "serverPort": obj.get("serverPort"), + "serverSiteEnterpriseName": obj.get("serverSiteEnterpriseName"), "serverSiteName": obj.get("serverSiteName"), "sessionCount": obj.get("sessionCount") }) 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 c7e052ca..38dbaa81 100644 --- a/graphiant_sdk/models/v2_assurance_topology_inventory_post_request.py +++ b/graphiant_sdk/models/v2_assurance_topology_inventory_post_request.py @@ -28,9 +28,9 @@ class V2AssuranceTopologyInventoryPostRequest(BaseModel): """ V2AssuranceTopologyInventoryPostRequest """ # noqa: E501 - bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId") + bucket_id: Optional[StrictStr] = Field(default=None, alias="bucketId", json_schema_extra={"examples": ["ENUM_VALUE"]}) time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") - topology_type: Optional[StrictStr] = Field(default=None, alias="topologyType") + topology_type: Optional[StrictStr] = Field(default=None, alias="topologyType", json_schema_extra={"examples": ["ENUM_VALUE"]}) __properties: ClassVar[List[str]] = ["bucketId", "timeWindow", "topologyType"] model_config = ConfigDict( 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 18aa1682..cbf6df84 100644 --- a/graphiant_sdk/models/v2_assurance_topology_overview_post_request.py +++ b/graphiant_sdk/models/v2_assurance_topology_overview_post_request.py @@ -30,16 +30,17 @@ class V2AssuranceTopologyOverviewPostRequest(BaseModel): """ V2AssuranceTopologyOverviewPostRequest """ # noqa: E501 - 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") + 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]}) filter: Optional[V2AssuranceTopologyOverviewPostRequestTopologyFilter] = None - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") + flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId", json_schema_extra={"examples": [1234567891011]}) 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") - __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "filter", "flexAlgoId", "sliderTimeWindow", "timeWindow", "topologyTs", "topologyType"] + topology_type: Optional[StrictStr] = Field(default=None, alias="topologyType", json_schema_extra={"examples": ["ENUM_VALUE"]}) + __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "exchangeServiceId", "filter", "flexAlgoId", "sliderTimeWindow", "timeWindow", "topologyTs", "topologyType"] model_config = ConfigDict( validate_by_name=True, @@ -107,6 +108,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "appName": obj.get("appName"), "appServerKey": obj.get("appServerKey"), "bucketId": obj.get("bucketId"), + "exchangeServiceId": obj.get("exchangeServiceId"), "filter": V2AssuranceTopologyOverviewPostRequestTopologyFilter.from_dict(obj["filter"]) if obj.get("filter") is not None else None, "flexAlgoId": obj.get("flexAlgoId"), "sliderTimeWindow": AssuranceTimeWindow.from_dict(obj["sliderTimeWindow"]) if obj.get("sliderTimeWindow") is not None else None, 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 12f60209..8806872b 100644 --- a/graphiant_sdk/models/v2_assurance_topology_overview_post_response.py +++ b/graphiant_sdk/models/v2_assurance_topology_overview_post_response.py @@ -30,8 +30,8 @@ class V2AssuranceTopologyOverviewPostResponse(BaseModel): """ V2AssuranceTopologyOverviewPostResponse """ # noqa: E501 - num_applications: Optional[StrictInt] = Field(default=None, alias="numApplications") - num_flows: Optional[StrictInt] = Field(default=None, alias="numFlows") + 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]}) 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") 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 e8b5c417..752cbb21 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 @@ -28,7 +28,7 @@ class V2AssuranceTopologyOverviewPostResponseGeoregion(BaseModel): """ V2AssuranceTopologyOverviewPostResponseGeoregion """ # noqa: E501 - num_sites: Optional[StrictInt] = Field(default=None, alias="numSites") + num_sites: Optional[StrictInt] = Field(default=None, alias="numSites", json_schema_extra={"examples": [123]}) region: Optional[AssuranceRegion] = None __properties: ClassVar[List[str]] = ["numSites", "region"] 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 dfbba9d4..a838cb01 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 @@ -27,7 +27,7 @@ class V2AssuranceTopologyRegionSummaryPostRequest(BaseModel): """ V2AssuranceTopologyRegionSummaryPostRequest """ # noqa: E501 - region_id: Optional[StrictInt] = Field(default=None, alias="regionId") + region_id: Optional[StrictInt] = Field(default=None, alias="regionId", json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["regionId"] model_config = ConfigDict( 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 2a07fced..1a019715 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 @@ -27,12 +27,12 @@ class V2AssuranceTopologyRegionSummaryPostResponseSiteEntry(BaseModel): """ V2AssuranceTopologyRegionSummaryPostResponseSiteEntry """ # noqa: E501 - edge_count: Optional[StrictInt] = Field(default=None, alias="edgeCount") + edge_count: Optional[StrictInt] = Field(default=None, alias="edgeCount", json_schema_extra={"examples": [123]}) 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") - site_id: Optional[StrictInt] = Field(default=None, alias="siteId") - site_name: Optional[StrictStr] = Field(default=None, alias="siteName") + 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"]}) tags: Optional[List[StrictStr]] = None __properties: ClassVar[List[str]] = ["edgeCount", "lanSegments", "popNames", "regionName", "siteId", "siteName", "tags"] 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 65b3e23d..c00fac28 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 @@ -29,13 +29,14 @@ class V2AssuranceTopologySiteSummariesPostRequest(BaseModel): """ V2AssuranceTopologySiteSummariesPostRequest """ # noqa: E501 - 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") + 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]}) filter: Optional[AssuranceTopologyFilter] = None - flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId") + flex_algo_id: Optional[StrictInt] = Field(default=None, alias="flexAlgoId", json_schema_extra={"examples": [1234567891011]}) time_window: Optional[AssuranceTimeWindow] = Field(default=None, alias="timeWindow") - __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "filter", "flexAlgoId", "timeWindow"] + __properties: ClassVar[List[str]] = ["appName", "appServerKey", "bucketId", "exchangeServiceId", "filter", "flexAlgoId", "timeWindow"] model_config = ConfigDict( validate_by_name=True, @@ -97,6 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "appName": obj.get("appName"), "appServerKey": obj.get("appServerKey"), "bucketId": obj.get("bucketId"), + "exchangeServiceId": obj.get("exchangeServiceId"), "filter": AssuranceTopologyFilter.from_dict(obj["filter"]) if obj.get("filter") is not None else None, "flexAlgoId": obj.get("flexAlgoId"), "timeWindow": AssuranceTimeWindow.from_dict(obj["timeWindow"]) if obj.get("timeWindow") is not None else None 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 3f4452cd..2f776b20 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 @@ -28,9 +28,9 @@ class V2AssuranceTopologySiteSummariesPostResponseSummary(BaseModel): """ V2AssuranceTopologySiteSummariesPostResponseSummary """ # noqa: E501 - app_name: Optional[StrictStr] = Field(default=None, alias="appName") + app_name: Optional[StrictStr] = Field(default=None, alias="appName", json_schema_extra={"examples": ["example string"]}) lan_segments: Optional[List[StrictStr]] = Field(default=None, alias="lanSegments") - session_count: Optional[StrictInt] = Field(default=None, alias="sessionCount") + session_count: Optional[StrictInt] = Field(default=None, alias="sessionCount", json_schema_extra={"examples": [123]}) site: Optional[AssuranceSite] = None __properties: ClassVar[List[str]] = ["appName", "lanSegments", "sessionCount", "site"] diff --git a/graphiant_sdk/models/v2_audit_logs_post_request.py b/graphiant_sdk/models/v2_audit_logs_post_request.py index e34e1644..517ceea9 100644 --- a/graphiant_sdk/models/v2_audit_logs_post_request.py +++ b/graphiant_sdk/models/v2_audit_logs_post_request.py @@ -30,8 +30,8 @@ class V2AuditLogsPostRequest(BaseModel): """ V2AuditLogsPostRequest """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") - num_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="numLogs") + 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]}) old_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="oldTs") recent_ts: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="recentTs") selector: Optional[AuditmonAuditLogsV2Selector] = None diff --git a/graphiant_sdk/models/v2_audit_logs_post_response.py b/graphiant_sdk/models/v2_audit_logs_post_response.py index 60e3d036..9e937353 100644 --- a/graphiant_sdk/models/v2_audit_logs_post_response.py +++ b/graphiant_sdk/models/v2_audit_logs_post_response.py @@ -29,9 +29,9 @@ class V2AuditLogsPostResponse(BaseModel): """ V2AuditLogsPostResponse """ # noqa: E501 - cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef") + cursor_ref: Optional[StrictStr] = Field(default=None, alias="cursorRef", json_schema_extra={"examples": ["example string"]}) logs: Optional[List[AuditmonAuditLog]] = None - total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs") + total_logs: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="totalLogs", json_schema_extra={"examples": [12345678910]}) __properties: ClassVar[List[str]] = ["cursorRef", "logs", "totalLogs"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v2_childalertlist_post_request.py b/graphiant_sdk/models/v2_childalertlist_post_request.py index 7ad53c81..29d07158 100644 --- a/graphiant_sdk/models/v2_childalertlist_post_request.py +++ b/graphiant_sdk/models/v2_childalertlist_post_request.py @@ -27,7 +27,7 @@ class V2ChildalertlistPostRequest(BaseModel): """ V2ChildalertlistPostRequest """ # noqa: E501 - alert_id: StrictStr = Field(description="Alert id of the parent alert (required)", alias="alertId") + alert_id: StrictStr = Field(description="Alert id of the parent alert (required)", alias="alertId", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["alertId"] model_config = ConfigDict( 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 b0573b42..db5d311b 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 @@ -31,7 +31,7 @@ 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] = None + version: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [123]}) __properties: ClassVar[List[str]] = ["snapshotTime", "timeWindow", "version"] model_config = ConfigDict( 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 07065554..32e010f5 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 @@ -28,7 +28,7 @@ class V2DeviceDeviceIdTopologyPostResponseSnapshot(BaseModel): """ V2DeviceDeviceIdTopologyPostResponseSnapshot """ # noqa: E501 - quality: Optional[StrictStr] = None + quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) snapshot_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="snapshotTime") __properties: ClassVar[List[str]] = ["quality", "snapshotTime"] 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 be66d8b1..cc448027 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 @@ -28,9 +28,9 @@ class V2ExtranetConsumersUsageTopPostRequest(BaseModel): """ V2ExtranetConsumersUsageTopPostRequest """ # noqa: E501 - 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") + 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]}) time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "timeWindow"] 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 25ea17ae..2787ebf3 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 @@ -29,8 +29,8 @@ 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") - total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage") + 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]}) __properties: ClassVar[List[str]] = ["topConsumers", "totalCustomers", "totalUsage"] model_config = ConfigDict( 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 416488ba..e9c27b08 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 @@ -28,9 +28,9 @@ 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)") - 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") + 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]}) time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "timeWindow"] 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 f4a671e7..0adcda49 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 @@ -28,13 +28,13 @@ 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)") - 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") + 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"]}) 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") + vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId", json_schema_extra={"examples": [1]}) __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "siteId", "subscriptionName", "timeWindow", "vrfId"] model_config = ConfigDict( 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 710cb6ff..6d7baa4a 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 @@ -28,14 +28,14 @@ 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") - 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") + 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]}) 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") + vrf_id: Optional[StrictInt] = Field(default=None, description="a filter to get usage for a specific vrf", alias="vrfId", json_schema_extra={"examples": [1]}) __properties: ClassVar[List[str]] = ["customerName", "flippedView", "id", "isB2B", "isProvider", "siteId", "timeWindow", "vrfId"] model_config = ConfigDict( 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 6348c601..fb072231 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 @@ -31,7 +31,7 @@ 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") + total_usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", alias="totalUsage", json_schema_extra={"examples": [1000000]}) __properties: ClassVar[List[str]] = ["lanSegments", "regions", "sites", "totalUsage"] model_config = ConfigDict( 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 9305f489..61c4f105 100644 --- a/graphiant_sdk/models/v2_extranet_sites_usage_post_request.py +++ b/graphiant_sdk/models/v2_extranet_sites_usage_post_request.py @@ -28,14 +28,14 @@ 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)") - 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") + 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"]}) 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") + 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]}) __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "serviceId", "siteId", "subscriptionName", "timeWindow", "vrfId"] model_config = ConfigDict( 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 1bda7c50..d2df1ad3 100644 --- a/graphiant_sdk/models/v2_extranet_sites_usage_post_response.py +++ b/graphiant_sdk/models/v2_extranet_sites_usage_post_response.py @@ -28,7 +28,7 @@ class V2ExtranetSitesUsagePostResponse(BaseModel): """ V2ExtranetSitesUsagePostResponse """ # noqa: E501 - bw_allocation: Optional[StrictInt] = Field(default=None, description="the bandwidth allocation for the entity in kbps", alias="bwAllocation") + bw_allocation: Optional[StrictInt] = Field(default=None, description="the bandwidth allocation for the entity in kbps", alias="bwAllocation", json_schema_extra={"examples": [1000000]}) 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"] 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 0c55adb6..76b405e8 100644 --- a/graphiant_sdk/models/v2_extranet_total_usage_post_request.py +++ b/graphiant_sdk/models/v2_extranet_total_usage_post_request.py @@ -28,9 +28,9 @@ 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)") - 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") + 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]}) time_window: StatsmonTimeWindow = Field(alias="timeWindow") __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider", "timeWindow"] 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 865a246c..752f9a7d 100644 --- a/graphiant_sdk/models/v2_extranet_total_usage_post_response.py +++ b/graphiant_sdk/models/v2_extranet_total_usage_post_response.py @@ -27,7 +27,7 @@ class V2ExtranetTotalUsagePostResponse(BaseModel): """ V2ExtranetTotalUsagePostResponse """ # noqa: E501 - usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes") + usage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="total service usage in kilo bytes", json_schema_extra={"examples": [1000000]}) __properties: ClassVar[List[str]] = ["usage"] model_config = ConfigDict( 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 f537046b..a0c32f17 100644 --- a/graphiant_sdk/models/v2_extranets_monitoring_consumers_post_request.py +++ b/graphiant_sdk/models/v2_extranets_monitoring_consumers_post_request.py @@ -17,7 +17,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt +from pydantic import BaseModel, ConfigDict, Field, StrictInt from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -27,7 +27,7 @@ class V2ExtranetsMonitoringConsumersPostRequest(BaseModel): """ V2ExtranetsMonitoringConsumersPostRequest """ # noqa: E501 - id: Optional[StrictInt] = None + id: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1234567891011]}) __properties: ClassVar[List[str]] = ["id"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v2_monitoring_bfd_post_request.py b/graphiant_sdk/models/v2_monitoring_bfd_post_request.py index 73430484..fa0b4679 100644 --- a/graphiant_sdk/models/v2_monitoring_bfd_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_bfd_post_request.py @@ -30,7 +30,7 @@ class V2MonitoringBfdPostRequest(BaseModel): """ V2MonitoringBfdPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) selectors: Optional[List[StatsmonV2BfdStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] diff --git a/graphiant_sdk/models/v2_monitoring_bgp_post_request.py b/graphiant_sdk/models/v2_monitoring_bgp_post_request.py index b3356506..25e9a34e 100644 --- a/graphiant_sdk/models/v2_monitoring_bgp_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_bgp_post_request.py @@ -30,7 +30,7 @@ class V2MonitoringBgpPostRequest(BaseModel): """ V2MonitoringBgpPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) selectors: Optional[List[StatsmonV2BgpStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] 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 cbec44f8..ec79c8c7 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_bandwidth_post_request.py @@ -30,7 +30,7 @@ class V2MonitoringCircuitsBandwidthPostRequest(BaseModel): """ V2MonitoringCircuitsBandwidthPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) selectors: Optional[List[StatsmonV2CircuitBandwidthStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] 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 0fc24aba..51b576ad 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 @@ -30,8 +30,8 @@ class V2MonitoringCircuitsBandwidthPostResponseData(BaseModel): """ V2MonitoringCircuitsBandwidthPostResponseData """ # noqa: E501 - carrier: Optional[StrictStr] = None - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + 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]}) 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") 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 63c7d9dc..4593f171 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_summary_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_summary_post_request.py @@ -29,7 +29,7 @@ class V2MonitoringCircuitsSummaryPostRequest(BaseModel): """ V2MonitoringCircuitsSummaryPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "timeWindow"] 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 a321fe2f..143a1843 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_utilization_post_request.py @@ -30,7 +30,7 @@ class V2MonitoringCircuitsUtilizationPostRequest(BaseModel): """ V2MonitoringCircuitsUtilizationPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) selectors: Optional[List[StatsmonV2CircuitUtilizationSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] 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 c7f20cc4..fece62dc 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 @@ -30,7 +30,7 @@ class V2MonitoringCircuitsUtilizationPostResponseData(BaseModel): """ V2MonitoringCircuitsUtilizationPostResponseData """ # noqa: E501 - config_link_up_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="configLinkUpSpeedMbps") + config_link_up_speed_mbps: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="configLinkUpSpeedMbps", json_schema_extra={"examples": [123]}) queue_utilization: Optional[List[StatsmonV2QueueUtilization]] = Field(default=None, alias="queueUtilization") selector: Optional[StatsmonV2CircuitUtilizationSelector] = None __properties: ClassVar[List[str]] = ["configLinkUpSpeedMbps", "queueUtilization", "selector"] 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 268f4e3b..36fadf71 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_request.py @@ -30,7 +30,7 @@ class V2MonitoringCircuitsVisualizationPostRequest(BaseModel): """ V2MonitoringCircuitsVisualizationPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) selectors: Optional[List[StatsmonV2TwampVisualSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] 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 ea8c5c90..c37ff8b6 100644 --- a/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_response.py +++ b/graphiant_sdk/models/v2_monitoring_circuits_visualization_post_response.py @@ -29,7 +29,7 @@ class V2MonitoringCircuitsVisualizationPostResponse(BaseModel): V2MonitoringCircuitsVisualizationPostResponse """ # noqa: E501 data: Optional[List[V2MonitoringCircuitsVisualizationPostResponseData]] = None - hostname: Optional[StrictStr] = Field(default=None, description="hostname of the device.") + hostname: Optional[StrictStr] = Field(default=None, description="hostname of the device.", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["data", "hostname"] model_config = ConfigDict( 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 975100b5..bc8f47c4 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 @@ -27,9 +27,9 @@ 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)") - 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") + 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]}) __properties: ClassVar[List[str]] = ["id", "isB2B", "isProvider"] model_config = ConfigDict( 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 6b9948d9..70255446 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 @@ -28,10 +28,10 @@ class V2MonitoringExtranetLogDetailsPostResponseLogDetails(BaseModel): """ V2MonitoringExtranetLogDetailsPostResponseLogDetails """ # noqa: E501 - 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") + 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"]}) ts: Optional[GoogleProtobufTimestamp] = None __properties: ClassVar[List[str]] = ["hostname", "reason", "serverAddress", "siteName", "ts"] 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 8048a8d1..c026d620 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 @@ -30,8 +30,8 @@ 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") - region: Optional[StrictStr] = Field(default=None, description="the region of the site") + 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"]}) site_status: Optional[StatsmonExtranetSiteStatus] = Field(default=None, alias="siteStatus") __properties: ClassVar[List[str]] = ["edgeStatuses", "location", "region", "siteStatus"] 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 c4a6cfd2..29b7e9c2 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 @@ -29,9 +29,9 @@ class V2MonitoringIkeErrorHistoryPostRequest(BaseModel): """ V2MonitoringIkeErrorHistoryPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") - tunnel_name: Optional[StrictStr] = Field(default=None, alias="tunnelName") + tunnel_name: Optional[StrictStr] = Field(default=None, alias="tunnelName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["deviceId", "timeWindow", "tunnelName"] model_config = ConfigDict( 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 a9e0050d..8cfbdba2 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 @@ -28,12 +28,12 @@ class V2MonitoringIkeErrorHistoryPostResponseData(BaseModel): """ V2MonitoringIkeErrorHistoryPostResponseData """ # noqa: E501 - 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 + 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"]}) timestamp: Optional[GoogleProtobufTimestamp] = None - tunnel_name: Optional[StrictStr] = Field(default=None, alias="tunnelName") + tunnel_name: Optional[StrictStr] = Field(default=None, alias="tunnelName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["destinationAddress", "destinationPort", "errorType", "message", "timestamp", "tunnelName"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v2_monitoring_interface_post_request.py b/graphiant_sdk/models/v2_monitoring_interface_post_request.py index f737e1e4..024b60f4 100644 --- a/graphiant_sdk/models/v2_monitoring_interface_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_interface_post_request.py @@ -30,7 +30,7 @@ class V2MonitoringInterfacePostRequest(BaseModel): """ V2MonitoringInterfacePostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) selectors: Optional[List[StatsmonV2InterfaceStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] diff --git a/graphiant_sdk/models/v2_monitoring_ipsec_post_request.py b/graphiant_sdk/models/v2_monitoring_ipsec_post_request.py index 5745fcfe..db5a593d 100644 --- a/graphiant_sdk/models/v2_monitoring_ipsec_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_ipsec_post_request.py @@ -30,7 +30,7 @@ class V2MonitoringIpsecPostRequest(BaseModel): """ V2MonitoringIpsecPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) selectors: Optional[List[StatsmonV2IpSecStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] 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 1e4c36b0..b8ae2247 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 @@ -27,8 +27,8 @@ class V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus(BaseModel): """ V2MonitoringMacsecDeviceIdStatusGetResponseMaCsecStatus """ # noqa: E501 - interface_name: Optional[StrictStr] = Field(default=None, alias="interfaceName") - status: Optional[StrictStr] = None + 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"]}) __properties: ClassVar[List[str]] = ["interfaceName", "status"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v2_monitoring_policy_post_request.py b/graphiant_sdk/models/v2_monitoring_policy_post_request.py index 75c99764..bdafc7c6 100644 --- a/graphiant_sdk/models/v2_monitoring_policy_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_policy_post_request.py @@ -30,7 +30,7 @@ class V2MonitoringPolicyPostRequest(BaseModel): """ V2MonitoringPolicyPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) selectors: Optional[List[StatsmonV2PolicyStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] 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 76e7f3e7..85f41244 100644 --- a/graphiant_sdk/models/v2_monitoring_queue_instant_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_queue_instant_post_request.py @@ -30,9 +30,9 @@ class V2MonitoringQueueInstantPostRequest(BaseModel): """ V2MonitoringQueueInstantPostRequest """ # noqa: E501 - 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") + 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]}) selectors: Optional[List[StatsmonV2QueueInstantStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "isDelta", "isTotal", "selectors", "timeWindow"] 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 b77b0cf0..4b963e79 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 @@ -29,10 +29,10 @@ class V2MonitoringSegmentRouteCountsPostResponseData(BaseModel): """ V2MonitoringSegmentRouteCountsPostResponseData """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) 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") + segment_name: Optional[StrictStr] = Field(default=None, alias="segmentName", json_schema_extra={"examples": ["example string"]}) __properties: ClassVar[List[str]] = ["deviceId", "ipv4RouteCount", "ipv6RouteCount", "segmentName"] model_config = ConfigDict( 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 f17aca81..0a365012 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 @@ -30,8 +30,8 @@ class V2MonitoringSiteTwampSiteIdPostResponseData(BaseModel): """ V2MonitoringSiteTwampSiteIdPostResponseData """ # noqa: E501 - carrier: Optional[StrictStr] = None - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + 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]}) samples: Optional[List[StatsmonV2StatsSample]] = None selector: Optional[StatsmonV2TwampStatsSelector] = None __properties: ClassVar[List[str]] = ["carrier", "deviceId", "samples", "selector"] diff --git a/graphiant_sdk/models/v2_monitoring_system_post_request.py b/graphiant_sdk/models/v2_monitoring_system_post_request.py index 5015f35e..3870d926 100644 --- a/graphiant_sdk/models/v2_monitoring_system_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_system_post_request.py @@ -30,7 +30,7 @@ class V2MonitoringSystemPostRequest(BaseModel): """ V2MonitoringSystemPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) selectors: Optional[List[StatsmonV2SystemStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] diff --git a/graphiant_sdk/models/v2_monitoring_twamp_post_request.py b/graphiant_sdk/models/v2_monitoring_twamp_post_request.py index 5dc23c6f..cfc5cf54 100644 --- a/graphiant_sdk/models/v2_monitoring_twamp_post_request.py +++ b/graphiant_sdk/models/v2_monitoring_twamp_post_request.py @@ -30,7 +30,7 @@ class V2MonitoringTwampPostRequest(BaseModel): """ V2MonitoringTwampPostRequest """ # noqa: E501 - device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId") + device_id: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="deviceId", json_schema_extra={"examples": [12345678910]}) selectors: Optional[List[StatsmonV2TwampStatsSelector]] = None time_window: Optional[StatsmonV2TimeWindow] = Field(default=None, alias="timeWindow") __properties: ClassVar[List[str]] = ["deviceId", "selectors", "timeWindow"] diff --git a/graphiant_sdk/models/v2_notification_enabledisable_post_request.py b/graphiant_sdk/models/v2_notification_enabledisable_post_request.py index 48f434bf..222fcc12 100644 --- a/graphiant_sdk/models/v2_notification_enabledisable_post_request.py +++ b/graphiant_sdk/models/v2_notification_enabledisable_post_request.py @@ -27,7 +27,7 @@ class V2NotificationEnabledisablePostRequest(BaseModel): """ V2NotificationEnabledisablePostRequest """ # noqa: E501 - enable: StrictBool = Field(description="Enable or disable. True means enable (required)") + enable: StrictBool = Field(description="Enable or disable. True means enable (required)", json_schema_extra={"examples": [True]}) notification_id_list: List[StrictStr] = Field(alias="notificationIdList") __properties: ClassVar[List[str]] = ["enable", "notificationIdList"] diff --git a/graphiant_sdk/models/v2_notificationmutelist_create_post_request.py b/graphiant_sdk/models/v2_notificationmutelist_create_post_request.py index c32e1c41..89fd505d 100644 --- a/graphiant_sdk/models/v2_notificationmutelist_create_post_request.py +++ b/graphiant_sdk/models/v2_notificationmutelist_create_post_request.py @@ -27,8 +27,8 @@ class V2NotificationmutelistCreatePostRequest(BaseModel): """ V2NotificationmutelistCreatePostRequest """ # noqa: E501 - 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") + 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"]}) __properties: ClassVar[List[str]] = ["alertId", "noteText"] model_config = ConfigDict( diff --git a/graphiant_sdk/models/v2_rule_enabledisable_post_request.py b/graphiant_sdk/models/v2_rule_enabledisable_post_request.py index 4fab1fc9..7766e93c 100644 --- a/graphiant_sdk/models/v2_rule_enabledisable_post_request.py +++ b/graphiant_sdk/models/v2_rule_enabledisable_post_request.py @@ -27,7 +27,7 @@ class V2RuleEnabledisablePostRequest(BaseModel): """ V2RuleEnabledisablePostRequest """ # noqa: E501 - enable: StrictBool = Field(description="Enable or disable. True means enable (required)") + enable: StrictBool = Field(description="Enable or disable. True means enable (required)", json_schema_extra={"examples": [True]}) rule_id_list: List[StrictStr] = Field(alias="ruleIdList") __properties: ClassVar[List[str]] = ["enable", "ruleIdList"] 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 960e26fc..bce37cba 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 @@ -28,7 +28,7 @@ class V2SiteSiteIdTopologyPostResponseSnapshot(BaseModel): """ V2SiteSiteIdTopologyPostResponseSnapshot """ # noqa: E501 - quality: Optional[StrictStr] = None + quality: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ENUM_VALUE"]}) snapshot_time: Optional[GoogleProtobufTimestamp] = Field(default=None, alias="snapshotTime") __properties: ClassVar[List[str]] = ["quality", "snapshotTime"] diff --git a/pyproject.toml b/pyproject.toml index 1e971be9..d9b16a96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "graphiant_sdk" -version = "26.4.0" +version = "26.5.0" description = "Graphiant APIs" authors = [ {name = "OpenAPI Generator Community",email = "team@openapitools.org"}, diff --git a/requirements.txt b/requirements.txt index 10b5d77c..c91c0788 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ typer >= 0.9.0, < 1.0.0 rich >= 13.0.0, < 15.0.0 pygments >= 2.20, < 3.0.0 playwright >= 1.40.0, < 2.0.0 +click >= 8.4.1 diff --git a/setup.py b/setup.py index ce61b553..0bc9bca5 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "graphiant_sdk" -VERSION = "26.4.0" +VERSION = "26.5.0" PYTHON_REQUIRES = ">= 3.10" REQUIRES = [ "urllib3 >= 2.1.0, < 3.0.0", diff --git a/test/test_common_billing_contract.py b/test/test_common_billing_contract.py new file mode 100644 index 00000000..2a5eac7c --- /dev/null +++ b/test/test_common_billing_contract.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.common_billing_contract import CommonBillingContract + +class TestCommonBillingContract(unittest.TestCase): + """CommonBillingContract unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CommonBillingContract: + """Test CommonBillingContract + 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 `CommonBillingContract` + """ + model = CommonBillingContract() + if include_optional: + return CommonBillingContract( + contracted_credits = 12.34, + expiration_date = graphiant_sdk.models.common_billing_time_period.commonBillingTimePeriod( + month = 123, + year = 123, ) + ) + else: + return CommonBillingContract( + ) + """ + + def testCommonBillingContract(self): + """Test CommonBillingContract""" + # 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_common_billing_time_period.py b/test/test_common_billing_time_period.py new file mode 100644 index 00000000..52a0a602 --- /dev/null +++ b/test/test_common_billing_time_period.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.common_billing_time_period import CommonBillingTimePeriod + +class TestCommonBillingTimePeriod(unittest.TestCase): + """CommonBillingTimePeriod unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CommonBillingTimePeriod: + """Test CommonBillingTimePeriod + 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 `CommonBillingTimePeriod` + """ + model = CommonBillingTimePeriod() + if include_optional: + return CommonBillingTimePeriod( + month = 123, + year = 123 + ) + else: + return CommonBillingTimePeriod( + ) + """ + + def testCommonBillingTimePeriod(self): + """Test CommonBillingTimePeriod""" + # 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_sites_map.py b/test/test_mana_v2_lan_segment_sites_map.py new file mode 100644 index 00000000..1d3c69ff --- /dev/null +++ b/test/test_mana_v2_lan_segment_sites_map.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from graphiant_sdk.models.mana_v2_lan_segment_sites_map import ManaV2LanSegmentSitesMap + +class TestManaV2LanSegmentSitesMap(unittest.TestCase): + """ManaV2LanSegmentSitesMap unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2LanSegmentSitesMap: + """Test ManaV2LanSegmentSitesMap + 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 `ManaV2LanSegmentSitesMap` + """ + model = ManaV2LanSegmentSitesMap() + if include_optional: + return ManaV2LanSegmentSitesMap( + site_ids = { + 'key' : graphiant_sdk.models.mana_v2_site_lan_segment_device_buckets.manaV2SiteLanSegmentDeviceBuckets( + lan_segment_exists = [ + graphiant_sdk.models.mana_v2_site_device_summary.manaV2SiteDeviceSummary( + device_id = 12345678910, + hostname = 'example string', ) + ], + lan_segment_missing = [ + graphiant_sdk.models.mana_v2_site_device_summary.manaV2SiteDeviceSummary( + device_id = 12345678910, + hostname = 'example string', ) + ], ) + }, + site_list_ids = { + 'key' : graphiant_sdk.models.mana_v2_site_lan_segment_device_buckets.manaV2SiteLanSegmentDeviceBuckets( + lan_segment_exists = [ + graphiant_sdk.models.mana_v2_site_device_summary.manaV2SiteDeviceSummary( + device_id = 12345678910, + hostname = 'example string', ) + ], + lan_segment_missing = [ + graphiant_sdk.models.mana_v2_site_device_summary.manaV2SiteDeviceSummary( + device_id = 12345678910, + hostname = 'example string', ) + ], ) + } + ) + else: + return ManaV2LanSegmentSitesMap( + ) + """ + + def testManaV2LanSegmentSitesMap(self): + """Test ManaV2LanSegmentSitesMap""" + # 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_managed_enterprise_contract_info.py b/test/test_mana_v2_managed_enterprise_contract_info.py new file mode 100644 index 00000000..37817743 --- /dev/null +++ b/test/test_mana_v2_managed_enterprise_contract_info.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_managed_enterprise_contract_info import ManaV2ManagedEnterpriseContractInfo + +class TestManaV2ManagedEnterpriseContractInfo(unittest.TestCase): + """ManaV2ManagedEnterpriseContractInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2ManagedEnterpriseContractInfo: + """Test ManaV2ManagedEnterpriseContractInfo + 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 `ManaV2ManagedEnterpriseContractInfo` + """ + model = ManaV2ManagedEnterpriseContractInfo() + if include_optional: + return ManaV2ManagedEnterpriseContractInfo( + consumed_credits = 12.34, + enterprise_contract = graphiant_sdk.models.common_billing_contract.commonBillingContract( + contracted_credits = 12.34, + expiration_date = graphiant_sdk.models.common_billing_time_period.commonBillingTimePeriod( + month = 123, + year = 123, ), ), + enterprise_id = 1234567891011, + enterprise_name = 'example string' + ) + else: + return ManaV2ManagedEnterpriseContractInfo( + ) + """ + + def testManaV2ManagedEnterpriseContractInfo(self): + """Test ManaV2ManagedEnterpriseContractInfo""" + # 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.py b/test/test_mana_v2_public_vif.py new file mode 100644 index 00000000..5b42ddd5 --- /dev/null +++ b/test/test_mana_v2_public_vif.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.mana_v2_public_vif import ManaV2PublicVif + +class TestManaV2PublicVif(unittest.TestCase): + """ManaV2PublicVif unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVif: + """Test ManaV2PublicVif + 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 `ManaV2PublicVif` + """ + model = ManaV2PublicVif() + if include_optional: + return ManaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed( + entries = [ + graphiant_sdk.models.mana_v2_public_vif_fixed_nat.manaV2PublicVifFixedNat( + outside_nat_prefix = 'example string', + service_prefix = 'example string', ) + ], ), + type = 'ENUM_VALUE' + ) + else: + return ManaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed( + entries = [ + graphiant_sdk.models.mana_v2_public_vif_fixed_nat.manaV2PublicVifFixedNat( + outside_nat_prefix = 'example string', + service_prefix = 'example string', ) + ], ), + type = 'ENUM_VALUE', + ) + """ + + def testManaV2PublicVif(self): + """Test ManaV2PublicVif""" + # 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_consumer_lan_segment.py b/test/test_mana_v2_public_vif_consumer_lan_segment.py new file mode 100644 index 00000000..55c977b5 --- /dev/null +++ b/test/test_mana_v2_public_vif_consumer_lan_segment.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_consumer_lan_segment import ManaV2PublicVifConsumerLanSegment + +class TestManaV2PublicVifConsumerLanSegment(unittest.TestCase): + """ManaV2PublicVifConsumerLanSegment unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifConsumerLanSegment: + """Test ManaV2PublicVifConsumerLanSegment + 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 `ManaV2PublicVifConsumerLanSegment` + """ + model = ManaV2PublicVifConsumerLanSegment() + if include_optional: + return ManaV2PublicVifConsumerLanSegment( + allowed_prefixes = [ + 'example string' + ], + service_lan_segment = 1234567891011 + ) + else: + return ManaV2PublicVifConsumerLanSegment( + allowed_prefixes = [ + 'example string' + ], + service_lan_segment = 1234567891011, + ) + """ + + def testManaV2PublicVifConsumerLanSegment(self): + """Test ManaV2PublicVifConsumerLanSegment""" + # 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_consumer_lan_segment_response.py b/test/test_mana_v2_public_vif_consumer_lan_segment_response.py new file mode 100644 index 00000000..d7bc43af --- /dev/null +++ b/test/test_mana_v2_public_vif_consumer_lan_segment_response.py @@ -0,0 +1,85 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The 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_consumer_lan_segment_response import ManaV2PublicVifConsumerLanSegmentResponse + +class TestManaV2PublicVifConsumerLanSegmentResponse(unittest.TestCase): + """ManaV2PublicVifConsumerLanSegmentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifConsumerLanSegmentResponse: + """Test ManaV2PublicVifConsumerLanSegmentResponse + 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 `ManaV2PublicVifConsumerLanSegmentResponse` + """ + model = ManaV2PublicVifConsumerLanSegmentResponse() + if include_optional: + return ManaV2PublicVifConsumerLanSegmentResponse( + allowed_prefixes = [ + 'example string' + ], + outbound_security_rules = [ + graphiant_sdk.models.mana_v2_security_policy_rule.manaV2SecurityPolicyRule( + action = 'ENUM_VALUE', + implicit = True, + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + service_lan_segment = 1234567891011, + traffic_rules = [ + graphiant_sdk.models.mana_v2_traffic_policy_rule.manaV2TrafficPolicyRule( + action = graphiant_sdk.models.mana_v2_traffic_policy_action.manaV2TrafficPolicyAction( + backup = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary = 'ENUM_VALUE', + result = 'ENUM_VALUE', ), + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ] + ) + else: + return ManaV2PublicVifConsumerLanSegmentResponse( + ) + """ + + def testManaV2PublicVifConsumerLanSegmentResponse(self): + """Test ManaV2PublicVifConsumerLanSegmentResponse""" + # 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_consumer_policy.py b/test/test_mana_v2_public_vif_consumer_policy.py new file mode 100644 index 00000000..336d8664 --- /dev/null +++ b/test/test_mana_v2_public_vif_consumer_policy.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.mana_v2_public_vif_consumer_policy import ManaV2PublicVifConsumerPolicy + +class TestManaV2PublicVifConsumerPolicy(unittest.TestCase): + """ManaV2PublicVifConsumerPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifConsumerPolicy: + """Test ManaV2PublicVifConsumerPolicy + 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 `ManaV2PublicVifConsumerPolicy` + """ + model = ManaV2PublicVifConsumerPolicy() + if include_optional: + return ManaV2PublicVifConsumerPolicy( + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment.manaV2PublicVifConsumerLanSegment( + allowed_prefixes = [ + 'example string' + ], + service_lan_segment = 1234567891011, ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ) + ) + else: + return ManaV2PublicVifConsumerPolicy( + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment.manaV2PublicVifConsumerLanSegment( + allowed_prefixes = [ + 'example string' + ], + service_lan_segment = 1234567891011, ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + ) + """ + + def testManaV2PublicVifConsumerPolicy(self): + """Test ManaV2PublicVifConsumerPolicy""" + # 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_consumer_policy_response.py b/test/test_mana_v2_public_vif_consumer_policy_response.py new file mode 100644 index 00000000..77f12d17 --- /dev/null +++ b/test/test_mana_v2_public_vif_consumer_policy_response.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.mana_v2_public_vif_consumer_policy_response import ManaV2PublicVifConsumerPolicyResponse + +class TestManaV2PublicVifConsumerPolicyResponse(unittest.TestCase): + """ManaV2PublicVifConsumerPolicyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifConsumerPolicyResponse: + """Test ManaV2PublicVifConsumerPolicyResponse + 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 `ManaV2PublicVifConsumerPolicyResponse` + """ + model = ManaV2PublicVifConsumerPolicyResponse() + if include_optional: + return ManaV2PublicVifConsumerPolicyResponse( + consumer_service_id = 1234567891011, + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment_response.manaV2PublicVifConsumerLanSegmentResponse( + allowed_prefixes = [ + 'example string' + ], + outbound_security_rules = [ + graphiant_sdk.models.mana_v2_security_policy_rule.manaV2SecurityPolicyRule( + action = 'ENUM_VALUE', + implicit = True, + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + service_lan_segment = 1234567891011, + traffic_rules = [ + graphiant_sdk.models.mana_v2_traffic_policy_rule.manaV2TrafficPolicyRule( + action = graphiant_sdk.models.mana_v2_traffic_policy_action.manaV2TrafficPolicyAction( + backup = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary = 'ENUM_VALUE', + result = 'ENUM_VALUE', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ) + ) + else: + return ManaV2PublicVifConsumerPolicyResponse( + ) + """ + + def testManaV2PublicVifConsumerPolicyResponse(self): + """Test ManaV2PublicVifConsumerPolicyResponse""" + # 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_device.py b/test/test_mana_v2_public_vif_device.py new file mode 100644 index 00000000..a781d988 --- /dev/null +++ b/test/test_mana_v2_public_vif_device.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.mana_v2_public_vif_device import ManaV2PublicVifDevice + +class TestManaV2PublicVifDevice(unittest.TestCase): + """ManaV2PublicVifDevice unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifDevice: + """Test ManaV2PublicVifDevice + 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 `ManaV2PublicVifDevice` + """ + model = ManaV2PublicVifDevice() + if include_optional: + return ManaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ] + ) + else: + return ManaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], + ) + """ + + def testManaV2PublicVifDevice(self): + """Test ManaV2PublicVifDevice""" + # 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_dynamic.py b/test/test_mana_v2_public_vif_dynamic.py new file mode 100644 index 00000000..67543e4a --- /dev/null +++ b/test/test_mana_v2_public_vif_dynamic.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_dynamic import ManaV2PublicVifDynamic + +class TestManaV2PublicVifDynamic(unittest.TestCase): + """ManaV2PublicVifDynamic unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifDynamic: + """Test ManaV2PublicVifDynamic + 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 `ManaV2PublicVifDynamic` + """ + model = ManaV2PublicVifDynamic() + if include_optional: + return ManaV2PublicVifDynamic( + entries = [ + 'example string' + ] + ) + else: + return ManaV2PublicVifDynamic( + ) + """ + + def testManaV2PublicVifDynamic(self): + """Test ManaV2PublicVifDynamic""" + # 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_fixed.py b/test/test_mana_v2_public_vif_fixed.py new file mode 100644 index 00000000..0c87a793 --- /dev/null +++ b/test/test_mana_v2_public_vif_fixed.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_public_vif_fixed import ManaV2PublicVifFixed + +class TestManaV2PublicVifFixed(unittest.TestCase): + """ManaV2PublicVifFixed unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifFixed: + """Test ManaV2PublicVifFixed + 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 `ManaV2PublicVifFixed` + """ + model = ManaV2PublicVifFixed() + if include_optional: + return ManaV2PublicVifFixed( + entries = [ + graphiant_sdk.models.mana_v2_public_vif_fixed_nat.manaV2PublicVifFixedNat( + outside_nat_prefix = 'example string', + service_prefix = 'example string', ) + ] + ) + else: + return ManaV2PublicVifFixed( + ) + """ + + def testManaV2PublicVifFixed(self): + """Test ManaV2PublicVifFixed""" + # 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_fixed_nat.py b/test/test_mana_v2_public_vif_fixed_nat.py new file mode 100644 index 00000000..46aab922 --- /dev/null +++ b/test/test_mana_v2_public_vif_fixed_nat.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_public_vif_fixed_nat import ManaV2PublicVifFixedNat + +class TestManaV2PublicVifFixedNat(unittest.TestCase): + """ManaV2PublicVifFixedNat unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifFixedNat: + """Test ManaV2PublicVifFixedNat + 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 `ManaV2PublicVifFixedNat` + """ + model = ManaV2PublicVifFixedNat() + if include_optional: + return ManaV2PublicVifFixedNat( + outside_nat_prefix = 'example string', + service_prefix = 'example string' + ) + else: + return ManaV2PublicVifFixedNat( + ) + """ + + def testManaV2PublicVifFixedNat(self): + """Test ManaV2PublicVifFixedNat""" + # 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_producer_policy.py b/test/test_mana_v2_public_vif_producer_policy.py new file mode 100644 index 00000000..41d9cb2a --- /dev/null +++ b/test/test_mana_v2_public_vif_producer_policy.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 + + +import unittest + +from graphiant_sdk.models.mana_v2_public_vif_producer_policy import ManaV2PublicVifProducerPolicy + +class TestManaV2PublicVifProducerPolicy(unittest.TestCase): + """ManaV2PublicVifProducerPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifProducerPolicy: + """Test ManaV2PublicVifProducerPolicy + 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 `ManaV2PublicVifProducerPolicy` + """ + model = ManaV2PublicVifProducerPolicy() + if include_optional: + return ManaV2PublicVifProducerPolicy( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ) + ) + else: + return ManaV2PublicVifProducerPolicy( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + service_lan_segment = 1234567891011, + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ), + ) + """ + + def testManaV2PublicVifProducerPolicy(self): + """Test ManaV2PublicVifProducerPolicy""" + # 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_producer_policy_response.py b/test/test_mana_v2_public_vif_producer_policy_response.py new file mode 100644 index 00000000..7368c3ac --- /dev/null +++ b/test/test_mana_v2_public_vif_producer_policy_response.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 + + +import unittest + +from graphiant_sdk.models.mana_v2_public_vif_producer_policy_response import ManaV2PublicVifProducerPolicyResponse + +class TestManaV2PublicVifProducerPolicyResponse(unittest.TestCase): + """ManaV2PublicVifProducerPolicyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifProducerPolicyResponse: + """Test ManaV2PublicVifProducerPolicyResponse + 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 `ManaV2PublicVifProducerPolicyResponse` + """ + model = ManaV2PublicVifProducerPolicyResponse() + if include_optional: + return ManaV2PublicVifProducerPolicyResponse( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + inbound_security_rules = [ + graphiant_sdk.models.mana_v2_security_policy_rule.manaV2SecurityPolicyRule( + action = 'ENUM_VALUE', + implicit = True, + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + traffic_rules = [ + graphiant_sdk.models.mana_v2_traffic_policy_rule.manaV2TrafficPolicyRule( + action = graphiant_sdk.models.mana_v2_traffic_policy_action.manaV2TrafficPolicyAction( + backup = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary = 'ENUM_VALUE', + result = 'ENUM_VALUE', ), + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ) + ) + else: + return ManaV2PublicVifProducerPolicyResponse( + ) + """ + + def testManaV2PublicVifProducerPolicyResponse(self): + """Test ManaV2PublicVifProducerPolicyResponse""" + # 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_summary.py b/test/test_mana_v2_public_vif_summary.py new file mode 100644 index 00000000..ede30e04 --- /dev/null +++ b/test/test_mana_v2_public_vif_summary.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_summary import ManaV2PublicVifSummary + +class TestManaV2PublicVifSummary(unittest.TestCase): + """ManaV2PublicVifSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2PublicVifSummary: + """Test ManaV2PublicVifSummary + 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 `ManaV2PublicVifSummary` + """ + model = ManaV2PublicVifSummary() + if include_optional: + return 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 ManaV2PublicVifSummary( + ) + """ + + def testManaV2PublicVifSummary(self): + """Test ManaV2PublicVifSummary""" + # 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_site_device_summary.py b/test/test_mana_v2_site_device_summary.py new file mode 100644 index 00000000..23c5839d --- /dev/null +++ b/test/test_mana_v2_site_device_summary.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_site_device_summary import ManaV2SiteDeviceSummary + +class TestManaV2SiteDeviceSummary(unittest.TestCase): + """ManaV2SiteDeviceSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2SiteDeviceSummary: + """Test ManaV2SiteDeviceSummary + 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 `ManaV2SiteDeviceSummary` + """ + model = ManaV2SiteDeviceSummary() + if include_optional: + return ManaV2SiteDeviceSummary( + device_id = 12345678910, + hostname = 'example string' + ) + else: + return ManaV2SiteDeviceSummary( + ) + """ + + def testManaV2SiteDeviceSummary(self): + """Test ManaV2SiteDeviceSummary""" + # 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_site_information.py b/test/test_mana_v2_site_information.py new file mode 100644 index 00000000..cdebbda3 --- /dev/null +++ b/test/test_mana_v2_site_information.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_site_information import ManaV2SiteInformation + +class TestManaV2SiteInformation(unittest.TestCase): + """ManaV2SiteInformation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2SiteInformation: + """Test ManaV2SiteInformation + 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 `ManaV2SiteInformation` + """ + model = ManaV2SiteInformation() + if include_optional: + return ManaV2SiteInformation( + site_lists = [ + 1234567891011 + ], + sites = [ + 1234567891011 + ] + ) + else: + return ManaV2SiteInformation( + ) + """ + + def testManaV2SiteInformation(self): + """Test ManaV2SiteInformation""" + # 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_site_lan_segment_device_buckets.py b/test/test_mana_v2_site_lan_segment_device_buckets.py new file mode 100644 index 00000000..d11b4d38 --- /dev/null +++ b/test/test_mana_v2_site_lan_segment_device_buckets.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.mana_v2_site_lan_segment_device_buckets import ManaV2SiteLanSegmentDeviceBuckets + +class TestManaV2SiteLanSegmentDeviceBuckets(unittest.TestCase): + """ManaV2SiteLanSegmentDeviceBuckets unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ManaV2SiteLanSegmentDeviceBuckets: + """Test ManaV2SiteLanSegmentDeviceBuckets + 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 `ManaV2SiteLanSegmentDeviceBuckets` + """ + model = ManaV2SiteLanSegmentDeviceBuckets() + if include_optional: + return ManaV2SiteLanSegmentDeviceBuckets( + lan_segment_exists = [ + graphiant_sdk.models.mana_v2_site_device_summary.manaV2SiteDeviceSummary( + device_id = 12345678910, + hostname = 'example string', ) + ], + lan_segment_missing = [ + graphiant_sdk.models.mana_v2_site_device_summary.manaV2SiteDeviceSummary( + device_id = 12345678910, + hostname = 'example string', ) + ] + ) + else: + return ManaV2SiteLanSegmentDeviceBuckets( + ) + """ + + def testManaV2SiteLanSegmentDeviceBuckets(self): + """Test ManaV2SiteLanSegmentDeviceBuckets""" + # 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_public_vif_check_post_request.py b/test/test_v1_extranet_public_vif_check_post_request.py new file mode 100644 index 00000000..94a79b93 --- /dev/null +++ b/test/test_v1_extranet_public_vif_check_post_request.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 + + +import unittest + +from graphiant_sdk.models.v1_extranet_public_vif_check_post_request import V1ExtranetPublicVifCheckPostRequest + +class TestV1ExtranetPublicVifCheckPostRequest(unittest.TestCase): + """V1ExtranetPublicVifCheckPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetPublicVifCheckPostRequest: + """Test V1ExtranetPublicVifCheckPostRequest + 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 `V1ExtranetPublicVifCheckPostRequest` + """ + model = V1ExtranetPublicVifCheckPostRequest() + if include_optional: + return V1ExtranetPublicVifCheckPostRequest( + consumer_policy = graphiant_sdk.models.mana_v2_public_vif_consumer_policy.manaV2PublicVifConsumerPolicy( + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment.manaV2PublicVifConsumerLanSegment( + allowed_prefixes = [ + 'example string' + ], + service_lan_segment = 1234567891011, ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), ), + producer_policy = graphiant_sdk.models.mana_v2_public_vif_producer_policy.manaV2PublicVifProducerPolicy( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ), ), + service_name = 'example string', + type = 'ENUM_VALUE' + ) + else: + return V1ExtranetPublicVifCheckPostRequest( + consumer_policy = graphiant_sdk.models.mana_v2_public_vif_consumer_policy.manaV2PublicVifConsumerPolicy( + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment.manaV2PublicVifConsumerLanSegment( + allowed_prefixes = [ + 'example string' + ], + service_lan_segment = 1234567891011, ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), ), + producer_policy = graphiant_sdk.models.mana_v2_public_vif_producer_policy.manaV2PublicVifProducerPolicy( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ), ), + type = 'ENUM_VALUE', + ) + """ + + def testV1ExtranetPublicVifCheckPostRequest(self): + """Test V1ExtranetPublicVifCheckPostRequest""" + # 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_public_vif_check_post_response.py b/test/test_v1_extranet_public_vif_check_post_response.py new file mode 100644 index 00000000..80bda467 --- /dev/null +++ b/test/test_v1_extranet_public_vif_check_post_response.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The 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_public_vif_check_post_response import V1ExtranetPublicVifCheckPostResponse + +class TestV1ExtranetPublicVifCheckPostResponse(unittest.TestCase): + """V1ExtranetPublicVifCheckPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetPublicVifCheckPostResponse: + """Test V1ExtranetPublicVifCheckPostResponse + 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 `V1ExtranetPublicVifCheckPostResponse` + """ + model = V1ExtranetPublicVifCheckPostResponse() + if include_optional: + return V1ExtranetPublicVifCheckPostResponse( + consumer_policy = graphiant_sdk.models.mana_v2_public_vif_consumer_policy_response.manaV2PublicVifConsumerPolicyResponse( + consumer_service_id = 1234567891011, + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment_response.manaV2PublicVifConsumerLanSegmentResponse( + allowed_prefixes = [ + 'example string' + ], + outbound_security_rules = [ + graphiant_sdk.models.mana_v2_security_policy_rule.manaV2SecurityPolicyRule( + action = 'ENUM_VALUE', + implicit = True, + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + service_lan_segment = 1234567891011, + traffic_rules = [ + graphiant_sdk.models.mana_v2_traffic_policy_rule.manaV2TrafficPolicyRule( + action = graphiant_sdk.models.mana_v2_traffic_policy_action.manaV2TrafficPolicyAction( + backup = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary = 'ENUM_VALUE', + result = 'ENUM_VALUE', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), ), + id = 1234567891011, + producer_policy = graphiant_sdk.models.mana_v2_public_vif_producer_policy_response.manaV2PublicVifProducerPolicyResponse( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + inbound_security_rules = [ + graphiant_sdk.models.mana_v2_security_policy_rule.manaV2SecurityPolicyRule( + action = 'ENUM_VALUE', + implicit = True, + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + traffic_rules = [ + graphiant_sdk.models.mana_v2_traffic_policy_rule.manaV2TrafficPolicyRule( + action = graphiant_sdk.models.mana_v2_traffic_policy_action.manaV2TrafficPolicyAction( + backup = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary = 'ENUM_VALUE', + result = 'ENUM_VALUE', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ), ), + service_name = 'example string', + type = 'ENUM_VALUE' + ) + else: + return V1ExtranetPublicVifCheckPostResponse( + ) + """ + + def testV1ExtranetPublicVifCheckPostResponse(self): + """Test V1ExtranetPublicVifCheckPostResponse""" + # 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_public_vif_get_response.py b/test/test_v1_extranet_public_vif_get_response.py new file mode 100644 index 00000000..262436e5 --- /dev/null +++ b/test/test_v1_extranet_public_vif_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_extranet_public_vif_get_response import V1ExtranetPublicVifGetResponse + +class TestV1ExtranetPublicVifGetResponse(unittest.TestCase): + """V1ExtranetPublicVifGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetPublicVifGetResponse: + """Test V1ExtranetPublicVifGetResponse + 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 `V1ExtranetPublicVifGetResponse` + """ + model = V1ExtranetPublicVifGetResponse() + if include_optional: + return V1ExtranetPublicVifGetResponse( + 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 V1ExtranetPublicVifGetResponse( + ) + """ + + def testV1ExtranetPublicVifGetResponse(self): + """Test V1ExtranetPublicVifGetResponse""" + # 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_public_vif_id_get_response.py b/test/test_v1_extranet_public_vif_id_get_response.py new file mode 100644 index 00000000..c3727dd7 --- /dev/null +++ b/test/test_v1_extranet_public_vif_id_get_response.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The 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_public_vif_id_get_response import V1ExtranetPublicVifIdGetResponse + +class TestV1ExtranetPublicVifIdGetResponse(unittest.TestCase): + """V1ExtranetPublicVifIdGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetPublicVifIdGetResponse: + """Test V1ExtranetPublicVifIdGetResponse + 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 `V1ExtranetPublicVifIdGetResponse` + """ + model = V1ExtranetPublicVifIdGetResponse() + if include_optional: + return V1ExtranetPublicVifIdGetResponse( + consumer_policy = graphiant_sdk.models.mana_v2_public_vif_consumer_policy_response.manaV2PublicVifConsumerPolicyResponse( + consumer_service_id = 1234567891011, + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment_response.manaV2PublicVifConsumerLanSegmentResponse( + allowed_prefixes = [ + 'example string' + ], + outbound_security_rules = [ + graphiant_sdk.models.mana_v2_security_policy_rule.manaV2SecurityPolicyRule( + action = 'ENUM_VALUE', + implicit = True, + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + service_lan_segment = 1234567891011, + traffic_rules = [ + graphiant_sdk.models.mana_v2_traffic_policy_rule.manaV2TrafficPolicyRule( + action = graphiant_sdk.models.mana_v2_traffic_policy_action.manaV2TrafficPolicyAction( + backup = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary = 'ENUM_VALUE', + result = 'ENUM_VALUE', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), ), + id = 1234567891011, + producer_policy = graphiant_sdk.models.mana_v2_public_vif_producer_policy_response.manaV2PublicVifProducerPolicyResponse( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + inbound_security_rules = [ + graphiant_sdk.models.mana_v2_security_policy_rule.manaV2SecurityPolicyRule( + action = 'ENUM_VALUE', + implicit = True, + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + traffic_rules = [ + graphiant_sdk.models.mana_v2_traffic_policy_rule.manaV2TrafficPolicyRule( + action = graphiant_sdk.models.mana_v2_traffic_policy_action.manaV2TrafficPolicyAction( + backup = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary = 'ENUM_VALUE', + result = 'ENUM_VALUE', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ), ), + service_name = 'example string', + type = 'ENUM_VALUE' + ) + else: + return V1ExtranetPublicVifIdGetResponse( + ) + """ + + def testV1ExtranetPublicVifIdGetResponse(self): + """Test V1ExtranetPublicVifIdGetResponse""" + # 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_public_vif_id_put_request.py b/test/test_v1_extranet_public_vif_id_put_request.py new file mode 100644 index 00000000..b2581e9e --- /dev/null +++ b/test/test_v1_extranet_public_vif_id_put_request.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The 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_public_vif_id_put_request import V1ExtranetPublicVifIdPutRequest + +class TestV1ExtranetPublicVifIdPutRequest(unittest.TestCase): + """V1ExtranetPublicVifIdPutRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetPublicVifIdPutRequest: + """Test V1ExtranetPublicVifIdPutRequest + 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 `V1ExtranetPublicVifIdPutRequest` + """ + model = V1ExtranetPublicVifIdPutRequest() + if include_optional: + return V1ExtranetPublicVifIdPutRequest( + consumer_policy = graphiant_sdk.models.mana_v2_public_vif_consumer_policy.manaV2PublicVifConsumerPolicy( + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment.manaV2PublicVifConsumerLanSegment( + allowed_prefixes = [ + 'example string' + ], + service_lan_segment = 1234567891011, ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), ), + producer_policy = graphiant_sdk.models.mana_v2_public_vif_producer_policy.manaV2PublicVifProducerPolicy( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ), ) + ) + else: + return V1ExtranetPublicVifIdPutRequest( + producer_policy = graphiant_sdk.models.mana_v2_public_vif_producer_policy.manaV2PublicVifProducerPolicy( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ), ), + ) + """ + + def testV1ExtranetPublicVifIdPutRequest(self): + """Test V1ExtranetPublicVifIdPutRequest""" + # 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_public_vif_id_put_response.py b/test/test_v1_extranet_public_vif_id_put_response.py new file mode 100644 index 00000000..d18a66c1 --- /dev/null +++ b/test/test_v1_extranet_public_vif_id_put_response.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The 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_public_vif_id_put_response import V1ExtranetPublicVifIdPutResponse + +class TestV1ExtranetPublicVifIdPutResponse(unittest.TestCase): + """V1ExtranetPublicVifIdPutResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetPublicVifIdPutResponse: + """Test V1ExtranetPublicVifIdPutResponse + 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 `V1ExtranetPublicVifIdPutResponse` + """ + model = V1ExtranetPublicVifIdPutResponse() + if include_optional: + return V1ExtranetPublicVifIdPutResponse( + consumer_policy = graphiant_sdk.models.mana_v2_public_vif_consumer_policy_response.manaV2PublicVifConsumerPolicyResponse( + consumer_service_id = 1234567891011, + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment_response.manaV2PublicVifConsumerLanSegmentResponse( + allowed_prefixes = [ + 'example string' + ], + outbound_security_rules = [ + graphiant_sdk.models.mana_v2_security_policy_rule.manaV2SecurityPolicyRule( + action = 'ENUM_VALUE', + implicit = True, + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + service_lan_segment = 1234567891011, + traffic_rules = [ + graphiant_sdk.models.mana_v2_traffic_policy_rule.manaV2TrafficPolicyRule( + action = graphiant_sdk.models.mana_v2_traffic_policy_action.manaV2TrafficPolicyAction( + backup = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary = 'ENUM_VALUE', + result = 'ENUM_VALUE', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), ), + id = 1234567891011, + producer_policy = graphiant_sdk.models.mana_v2_public_vif_producer_policy_response.manaV2PublicVifProducerPolicyResponse( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + inbound_security_rules = [ + graphiant_sdk.models.mana_v2_security_policy_rule.manaV2SecurityPolicyRule( + action = 'ENUM_VALUE', + implicit = True, + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + traffic_rules = [ + graphiant_sdk.models.mana_v2_traffic_policy_rule.manaV2TrafficPolicyRule( + action = graphiant_sdk.models.mana_v2_traffic_policy_action.manaV2TrafficPolicyAction( + backup = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary = 'ENUM_VALUE', + result = 'ENUM_VALUE', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ), ), + service_name = 'example string', + type = 'ENUM_VALUE' + ) + else: + return V1ExtranetPublicVifIdPutResponse( + ) + """ + + def testV1ExtranetPublicVifIdPutResponse(self): + """Test V1ExtranetPublicVifIdPutResponse""" + # 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_public_vif_post_request.py b/test/test_v1_extranet_public_vif_post_request.py new file mode 100644 index 00000000..29b5ee6d --- /dev/null +++ b/test/test_v1_extranet_public_vif_post_request.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 + + +import unittest + +from graphiant_sdk.models.v1_extranet_public_vif_post_request import V1ExtranetPublicVifPostRequest + +class TestV1ExtranetPublicVifPostRequest(unittest.TestCase): + """V1ExtranetPublicVifPostRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetPublicVifPostRequest: + """Test V1ExtranetPublicVifPostRequest + 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 `V1ExtranetPublicVifPostRequest` + """ + model = V1ExtranetPublicVifPostRequest() + if include_optional: + return V1ExtranetPublicVifPostRequest( + consumer_policy = graphiant_sdk.models.mana_v2_public_vif_consumer_policy.manaV2PublicVifConsumerPolicy( + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment.manaV2PublicVifConsumerLanSegment( + allowed_prefixes = [ + 'example string' + ], + service_lan_segment = 1234567891011, ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), ), + producer_policy = graphiant_sdk.models.mana_v2_public_vif_producer_policy.manaV2PublicVifProducerPolicy( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ), ), + service_name = 'example string', + type = 'ENUM_VALUE' + ) + else: + return V1ExtranetPublicVifPostRequest( + consumer_policy = graphiant_sdk.models.mana_v2_public_vif_consumer_policy.manaV2PublicVifConsumerPolicy( + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment.manaV2PublicVifConsumerLanSegment( + allowed_prefixes = [ + 'example string' + ], + service_lan_segment = 1234567891011, ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), ), + producer_policy = graphiant_sdk.models.mana_v2_public_vif_producer_policy.manaV2PublicVifProducerPolicy( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ), ), + type = 'ENUM_VALUE', + ) + """ + + def testV1ExtranetPublicVifPostRequest(self): + """Test V1ExtranetPublicVifPostRequest""" + # 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_public_vif_post_response.py b/test/test_v1_extranet_public_vif_post_response.py new file mode 100644 index 00000000..30068598 --- /dev/null +++ b/test/test_v1_extranet_public_vif_post_response.py @@ -0,0 +1,148 @@ +# coding: utf-8 + +""" + Graphiant APIs + + Graphiant API documentation. + + The 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_public_vif_post_response import V1ExtranetPublicVifPostResponse + +class TestV1ExtranetPublicVifPostResponse(unittest.TestCase): + """V1ExtranetPublicVifPostResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1ExtranetPublicVifPostResponse: + """Test V1ExtranetPublicVifPostResponse + 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 `V1ExtranetPublicVifPostResponse` + """ + model = V1ExtranetPublicVifPostResponse() + if include_optional: + return V1ExtranetPublicVifPostResponse( + consumer_policy = graphiant_sdk.models.mana_v2_public_vif_consumer_policy_response.manaV2PublicVifConsumerPolicyResponse( + consumer_service_id = 1234567891011, + lan_segments = [ + graphiant_sdk.models.mana_v2_public_vif_consumer_lan_segment_response.manaV2PublicVifConsumerLanSegmentResponse( + allowed_prefixes = [ + 'example string' + ], + outbound_security_rules = [ + graphiant_sdk.models.mana_v2_security_policy_rule.manaV2SecurityPolicyRule( + action = 'ENUM_VALUE', + implicit = True, + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + service_lan_segment = 1234567891011, + traffic_rules = [ + graphiant_sdk.models.mana_v2_traffic_policy_rule.manaV2TrafficPolicyRule( + action = graphiant_sdk.models.mana_v2_traffic_policy_action.manaV2TrafficPolicyAction( + backup = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary = 'ENUM_VALUE', + result = 'ENUM_VALUE', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], ) + ], + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), ), + id = 1234567891011, + producer_policy = graphiant_sdk.models.mana_v2_public_vif_producer_policy_response.manaV2PublicVifProducerPolicyResponse( + devices = { + 'key' : graphiant_sdk.models.mana_v2_public_vif_device.manaV2PublicVifDevice( + consumer_burst_size = 123, + consumer_bw_site = 123, + nat_pools = [ + 'example string' + ], ) + }, + inbound_security_rules = [ + graphiant_sdk.models.mana_v2_security_policy_rule.manaV2SecurityPolicyRule( + action = 'ENUM_VALUE', + implicit = True, + match = graphiant_sdk.models.mana_v2_policy_match.manaV2PolicyMatch( + destination_port = 123, + destination_prefix = 'example string', + icmp_type = 123, + protocol = 123, + source_port = 123, + source_prefix = 'example string', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + profiles = [ + graphiant_sdk.models.mana_v2_application_profile.manaV2ApplicationProfile( + port_range = 'example string', + ports = [ + 123 + ], + protocol = 123, ) + ], + service_lan_segment = 1234567891011, + service_name = 'example string', + sites = graphiant_sdk.models.mana_v2_site_information.manaV2SiteInformation( + site_lists = [ + 1234567891011 + ], ), + sla = graphiant_sdk.models.mana_v2_sla_information.manaV2SlaInformation( + backup_circuit = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary_circuit = 'ENUM_VALUE', ), + traffic_rules = [ + graphiant_sdk.models.mana_v2_traffic_policy_rule.manaV2TrafficPolicyRule( + action = graphiant_sdk.models.mana_v2_traffic_policy_action.manaV2TrafficPolicyAction( + backup = 'ENUM_VALUE', + class = 'ENUM_VALUE', + primary = 'ENUM_VALUE', + result = 'ENUM_VALUE', ), + policy_rule_index = 1234567891011, + seq = 123, ) + ], + vifs = graphiant_sdk.models.mana_v2_public_vif.manaV2PublicVif( + covering_prefixes = graphiant_sdk.models.mana_v2_public_vif_dynamic.manaV2PublicVifDynamic( + entries = [ + 'example string' + ], ), + fixed_prefixes = graphiant_sdk.models.mana_v2_public_vif_fixed.manaV2PublicVifFixed(), + type = 'ENUM_VALUE', ), ), + service_name = 'example string', + type = 'ENUM_VALUE' + ) + else: + return V1ExtranetPublicVifPostResponse( + ) + """ + + def testV1ExtranetPublicVifPostResponse(self): + """Test V1ExtranetPublicVifPostResponse""" + # 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_msp_managed_enterprise_contract_info_get_response.py b/test/test_v1_msp_managed_enterprise_contract_info_get_response.py new file mode 100644 index 00000000..cc102c9f --- /dev/null +++ b/test/test_v1_msp_managed_enterprise_contract_info_get_response.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.v1_msp_managed_enterprise_contract_info_get_response import V1MspManagedEnterpriseContractInfoGetResponse + +class TestV1MspManagedEnterpriseContractInfoGetResponse(unittest.TestCase): + """V1MspManagedEnterpriseContractInfoGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1MspManagedEnterpriseContractInfoGetResponse: + """Test V1MspManagedEnterpriseContractInfoGetResponse + 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 `V1MspManagedEnterpriseContractInfoGetResponse` + """ + model = V1MspManagedEnterpriseContractInfoGetResponse() + if include_optional: + return V1MspManagedEnterpriseContractInfoGetResponse( + enterprises = [ + graphiant_sdk.models.mana_v2_managed_enterprise_contract_info.manaV2ManagedEnterpriseContractInfo( + consumed_credits = 12.34, + enterprise_contract = graphiant_sdk.models.common_billing_contract.commonBillingContract( + contracted_credits = 12.34, + expiration_date = graphiant_sdk.models.common_billing_time_period.commonBillingTimePeriod( + month = 123, + year = 123, ), ), + enterprise_id = 1234567891011, + enterprise_name = 'example string', ) + ], + msp_consumed_credits = 12.34, + msp_contract = graphiant_sdk.models.common_billing_contract.commonBillingContract( + contracted_credits = 12.34, + expiration_date = graphiant_sdk.models.common_billing_time_period.commonBillingTimePeriod( + month = 123, + year = 123, ), ) + ) + else: + return V1MspManagedEnterpriseContractInfoGetResponse( + ) + """ + + def testV1MspManagedEnterpriseContractInfoGetResponse(self): + """Test V1MspManagedEnterpriseContractInfoGetResponse""" + # 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_sites_map_details_get_response.py b/test/test_v1_sites_map_details_get_response.py new file mode 100644 index 00000000..9f08beea --- /dev/null +++ b/test/test_v1_sites_map_details_get_response.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_sites_map_details_get_response import V1SitesMapDetailsGetResponse + +class TestV1SitesMapDetailsGetResponse(unittest.TestCase): + """V1SitesMapDetailsGetResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> V1SitesMapDetailsGetResponse: + """Test V1SitesMapDetailsGetResponse + 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 `V1SitesMapDetailsGetResponse` + """ + model = V1SitesMapDetailsGetResponse() + if include_optional: + return V1SitesMapDetailsGetResponse( + lan_segment_ids = { + 'key' : graphiant_sdk.models.mana_v2_lan_segment_sites_map.manaV2LanSegmentSitesMap( + site_ids = { + 'key' : graphiant_sdk.models.mana_v2_site_lan_segment_device_buckets.manaV2SiteLanSegmentDeviceBuckets( + lan_segment_exists = [ + graphiant_sdk.models.mana_v2_site_device_summary.manaV2SiteDeviceSummary( + device_id = 12345678910, + hostname = 'example string', ) + ], + lan_segment_missing = [ + graphiant_sdk.models.mana_v2_site_device_summary.manaV2SiteDeviceSummary( + device_id = 12345678910, + hostname = 'example string', ) + ], ) + }, + site_list_ids = { + 'key' : graphiant_sdk.models.mana_v2_site_lan_segment_device_buckets.manaV2SiteLanSegmentDeviceBuckets() + }, ) + } + ) + else: + return V1SitesMapDetailsGetResponse( + ) + """ + + def testV1SitesMapDetailsGetResponse(self): + """Test V1SitesMapDetailsGetResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main()